diff options
author | gene@google.com <gene@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-03 21:53:40 +0000 |
---|---|---|
committer | gene@google.com <gene@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-03 21:53:40 +0000 |
commit | 3296839602c5c54cae0b0fb0a9d6623a5ba65895 (patch) | |
tree | d040575a060360dc0be71908f747a00cd8020b82 /chrome/service/cloud_print/printer_job_handler.cc | |
parent | 192c08625449016b0a9f5ab9bb40e298c0bbd00f (diff) | |
download | chromium_src-3296839602c5c54cae0b0fb0a9d6623a5ba65895.zip chromium_src-3296839602c5c54cae0b0fb0a9d6623a5ba65895.tar.gz chromium_src-3296839602c5c54cae0b0fb0a9d6623a5ba65895.tar.bz2 |
Make CUPS cloud print proxy to support multiple print servers.
Add notifications for printer settings changed, and periodic update to check for new printers.
BUG=none
TEST=Make sure CP proxy works on Linux.
Review URL: http://codereview.chromium.org/4233004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64970 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/service/cloud_print/printer_job_handler.cc')
-rw-r--r-- | chrome/service/cloud_print/printer_job_handler.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/service/cloud_print/printer_job_handler.cc b/chrome/service/cloud_print/printer_job_handler.cc index a1c7768..e25faa4 100644 --- a/chrome/service/cloud_print/printer_job_handler.cc +++ b/chrome/service/cloud_print/printer_job_handler.cc @@ -45,7 +45,7 @@ PrinterJobHandler::PrinterJobHandler( } bool PrinterJobHandler::Initialize() { - if (print_system_->GetPrintBackend()->IsValidPrinter( + if (print_system_->IsValidPrinter( printer_info_.printer_name)) { printer_watcher_ = print_system_->CreatePrinterWatcher( printer_info_.printer_name); @@ -145,7 +145,7 @@ bool PrinterJobHandler::UpdatePrinterInfo() { std::string post_data; std::string mime_boundary; CloudPrintHelpers::CreateMimeBoundaryForUpload(&mime_boundary); - if (print_system_->GetPrintBackend()->GetPrinterCapsAndDefaults( + if (print_system_->GetPrinterCapsAndDefaults( printer_info.printer_name, &printer_caps)) { std::string caps_hash = MD5String(printer_caps.printer_capabilities); if (caps_hash != printer_info_cloud_.caps_hash) { |