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

Unified Diff: chrome/service/cloud_print/cloud_print_wipeout.cc

Issue 2888763004: Network traffic annotation added to CloudPrintUrlFetcher. (Closed)
Patch Set: nits Created 3 years, 6 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/service/cloud_print/cloud_print_wipeout.h ('k') | chrome/service/cloud_print/job_status_updater.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/service/cloud_print/cloud_print_wipeout.cc
diff --git a/chrome/service/cloud_print/cloud_print_wipeout.cc b/chrome/service/cloud_print/cloud_print_wipeout.cc
index 2a552fd3761899cb07c1b972ee21f83dede6a16e..134ae98be032feb2be639a7925df5e477c3efd99 100644
--- a/chrome/service/cloud_print/cloud_print_wipeout.cc
+++ b/chrome/service/cloud_print/cloud_print_wipeout.cc
@@ -11,10 +11,13 @@ const int kMaxWipeoutAttempts = 3;
namespace cloud_print {
-CloudPrintWipeout::CloudPrintWipeout(Client* client,
- const GURL& cloud_print_server_url)
- : client_(client), cloud_print_server_url_(cloud_print_server_url) {
-}
+CloudPrintWipeout::CloudPrintWipeout(
+ Client* client,
+ const GURL& cloud_print_server_url,
+ const net::PartialNetworkTrafficAnnotationTag& partial_traffic_annotation)
+ : client_(client),
+ cloud_print_server_url_(cloud_print_server_url),
+ partial_traffic_annotation_(partial_traffic_annotation) {}
CloudPrintWipeout::~CloudPrintWipeout() {
}
@@ -38,7 +41,7 @@ void CloudPrintWipeout::UnregisterNextPrinter() {
GURL url = GetUrlForPrinterDelete(cloud_print_server_url_,
printer_id,
"connector_disabled");
- request_ = CloudPrintURLFetcher::Create();
+ request_ = CloudPrintURLFetcher::Create(partial_traffic_annotation_);
request_->StartGetRequest(CloudPrintURLFetcher::REQUEST_UNREGISTER,
url, this, kMaxWipeoutAttempts, std::string());
}
« no previous file with comments | « chrome/service/cloud_print/cloud_print_wipeout.h ('k') | chrome/service/cloud_print/job_status_updater.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698