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

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

Issue 5736004: Added 'dry run' tag to the print job, to test proxy health without wasting pa... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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/printer_job_handler.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/service/cloud_print/printer_job_handler.cc
===================================================================
--- chrome/service/cloud_print/printer_job_handler.cc (revision 68909)
+++ chrome/service/cloud_print/printer_job_handler.cc (working copy)
@@ -350,6 +350,17 @@
std::string print_ticket_url;
job_data->GetString(kTicketUrlValue, &print_ticket_url);
job_data->GetString(kFileUrlValue, &print_data_url_);
+
+ // Get tags for print job.
+ job_details_.tags_.clear();
+ ListValue* tags = NULL;
+ if (job_data->GetList(kTagsValue, &tags)) {
+ for (size_t i = 0; i < tags->GetSize(); i++) {
+ std::string value;
+ if (tags->GetString(i, &value))
+ job_details_.tags_.push_back(value);
+ }
+ }
SetNextDataHandler(&PrinterJobHandler::HandlePrintTicketResponse);
request_ = new CloudPrintURLFetcher;
request_->StartGetRequest(GURL(print_ticket_url.c_str()),
@@ -567,6 +578,7 @@
job_details.print_data_mime_type_,
printer_name,
job_details.job_title_,
+ job_details.tags_,
this)) {
OnJobSpoolFailed();
}
« no previous file with comments | « chrome/service/cloud_print/printer_job_handler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698