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

Unified Diff: chrome/browser/ui/webui/print_preview/extension_printer_handler.cc

Issue 1006583003: Add title property to chrome.printerProvider pritn job (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
Index: chrome/browser/ui/webui/print_preview/extension_printer_handler.cc
diff --git a/chrome/browser/ui/webui/print_preview/extension_printer_handler.cc b/chrome/browser/ui/webui/print_preview/extension_printer_handler.cc
index e6753e4d2c184c896189d94a9eaec057ef9acfda..3236e3ecda46426e5261994ef313b501b8fbc0f7 100644
--- a/chrome/browser/ui/webui/print_preview/extension_printer_handler.cc
+++ b/chrome/browser/ui/webui/print_preview/extension_printer_handler.cc
@@ -108,6 +108,7 @@ void ExtensionPrinterHandler::StartGetCapability(
void ExtensionPrinterHandler::StartPrint(
const std::string& destination_id,
const std::string& capability,
+ const base::string16& job_title,
const std::string& ticket_json,
const gfx::Size& page_size,
const scoped_refptr<base::RefCountedMemory>& print_data,
@@ -115,6 +116,7 @@ void ExtensionPrinterHandler::StartPrint(
scoped_ptr<extensions::PrinterProviderPrintJob> print_job(
new extensions::PrinterProviderPrintJob());
print_job->printer_id = destination_id;
+ print_job->job_title = job_title;
print_job->ticket_json = ticket_json;
cloud_devices::CloudDeviceDescription printer_description;

Powered by Google App Engine
This is Rietveld 408576698