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

Unified Diff: chrome/service/cloud_print/job_status_updater.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/job_status_updater.h ('k') | chrome/service/cloud_print/printer_job_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/service/cloud_print/job_status_updater.cc
diff --git a/chrome/service/cloud_print/job_status_updater.cc b/chrome/service/cloud_print/job_status_updater.cc
index 269702a5d297e091fd30e6740bf912c49fc932ed..bd7b85b0c2fba650eb84e0f72d06ea6cb281237d 100644
--- a/chrome/service/cloud_print/job_status_updater.cc
+++ b/chrome/service/cloud_print/job_status_updater.cc
@@ -28,12 +28,14 @@ bool IsTerminalJobState(PrintJobStatus status) {
} // namespace
-JobStatusUpdater::JobStatusUpdater(const std::string& printer_name,
- const std::string& job_id,
- PlatformJobId local_job_id,
- const GURL& cloud_print_server_url,
- PrintSystem* print_system,
- Delegate* delegate)
+JobStatusUpdater::JobStatusUpdater(
+ const std::string& printer_name,
+ const std::string& job_id,
+ PlatformJobId local_job_id,
+ const GURL& cloud_print_server_url,
+ PrintSystem* print_system,
+ Delegate* delegate,
+ const net::PartialNetworkTrafficAnnotationTag& partial_traffic_annotation)
: start_time_(base::Time::Now()),
printer_name_(printer_name),
job_id_(job_id),
@@ -41,7 +43,8 @@ JobStatusUpdater::JobStatusUpdater(const std::string& printer_name,
cloud_print_server_url_(cloud_print_server_url),
print_system_(print_system),
delegate_(delegate),
- stopped_(false) {
+ stopped_(false),
+ partial_traffic_annotation_(partial_traffic_annotation) {
DCHECK(delegate_);
}
@@ -77,7 +80,7 @@ void JobStatusUpdater::UpdateStatus() {
last_job_details_.status, PRINT_JOB_STATUS_MAX);
}
if (need_update) {
- request_ = CloudPrintURLFetcher::Create();
+ request_ = CloudPrintURLFetcher::Create(partial_traffic_annotation_);
request_->StartGetRequest(
CloudPrintURLFetcher::REQUEST_UPDATE_JOB,
GetUrlForJobStatusUpdate(
« no previous file with comments | « chrome/service/cloud_print/job_status_updater.h ('k') | chrome/service/cloud_print/printer_job_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698