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

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

Issue 2519002: Redesign cloud printing subsystem layer. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 10 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/print_system.h » ('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
===================================================================
--- chrome/service/cloud_print/job_status_updater.cc (revision 48976)
+++ chrome/service/cloud_print/job_status_updater.cc (working copy)
@@ -13,15 +13,16 @@
#include "googleurl/src/gurl.h"
JobStatusUpdater::JobStatusUpdater(const std::string& printer_name,
- const std::string& job_id,
- cloud_print::PlatformJobId& local_job_id,
- const std::string& auth_token,
- const GURL& cloud_print_server_url,
- Delegate* delegate)
+ const std::string& job_id,
+ cloud_print::PlatformJobId& local_job_id,
+ const std::string& auth_token,
+ const GURL& cloud_print_server_url,
+ cloud_print::PrintSystem* print_system,
+ Delegate* delegate)
: printer_name_(printer_name), job_id_(job_id),
local_job_id_(local_job_id), auth_token_(auth_token),
cloud_print_server_url_(cloud_print_server_url),
- delegate_(delegate), stopped_(false) {
+ print_system_(print_system), delegate_(delegate), stopped_(false) {
DCHECK(delegate_);
}
@@ -39,7 +40,8 @@
need_update = true;
} else {
cloud_print::PrintJobDetails details;
- if (cloud_print::GetJobDetails(printer_name_, local_job_id_, &details)) {
+ if (print_system_->GetJobDetails(printer_name_, local_job_id_,
+ &details)) {
if (details != last_job_details_) {
last_job_details_ = details;
need_update = true;
« no previous file with comments | « chrome/service/cloud_print/job_status_updater.h ('k') | chrome/service/cloud_print/print_system.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698