Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(274)

Unified Diff: chrome/browser/renderer_context_menu/render_view_context_menu.cc

Issue 2860593003: Refactoring DownloadManager::DownloadURL to add proper annotation. (Closed)
Patch Set: Comment addressed. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/extensions/webstore_installer.cc ('k') | components/download/content/download_driver_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_context_menu/render_view_context_menu.cc
diff --git a/chrome/browser/renderer_context_menu/render_view_context_menu.cc b/chrome/browser/renderer_context_menu/render_view_context_menu.cc
index 2d32b98f7bfc944159d0e608c5f0c0bb5291baf0..fa436c004d6c3324bc6d0c33de2638620ea8a346 100644
--- a/chrome/browser/renderer_context_menu/render_view_context_menu.cc
+++ b/chrome/browser/renderer_context_menu/render_view_context_menu.cc
@@ -108,6 +108,7 @@
#include "content/public/common/url_utils.h"
#include "extensions/features/features.h"
#include "net/base/escape.h"
+#include "net/traffic_annotation/network_traffic_annotation.h"
#include "ppapi/features/features.h"
#include "printing/features/features.h"
#include "services/service_manager/public/cpp/interface_provider.h"
@@ -2221,8 +2222,8 @@ void RenderViewContextMenu::ExecSaveLinkAs() {
dl_params->set_suggested_name(params_.suggested_filename);
dl_params->set_prompt(true);
- BrowserContext::GetDownloadManager(browser_context_)->DownloadUrl(
- std::move(dl_params));
+ BrowserContext::GetDownloadManager(browser_context_)
+ ->DownloadUrl(std::move(dl_params), NO_TRAFFIC_ANNOTATION_YET);
}
void RenderViewContextMenu::ExecSaveAs() {
« no previous file with comments | « chrome/browser/extensions/webstore_installer.cc ('k') | components/download/content/download_driver_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698