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

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

Issue 4233004: Make CUPS cloud print proxy to support multiple print servers.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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 | « no previous file | 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/cloud_print_proxy_backend.cc
===================================================================
--- chrome/service/cloud_print/cloud_print_proxy_backend.cc (revision 64663)
+++ chrome/service/cloud_print/cloud_print_proxy_backend.cc (working copy)
@@ -326,6 +326,8 @@
return; // No print system available, fail initalization.
}
+ print_system_->Init();
+
// TODO(sanjeevr): Validate the tokens.
auth_token_ = cloud_print_token;
@@ -384,7 +386,7 @@
void CloudPrintProxyBackend::Core::StartRegistration() {
DCHECK(MessageLoop::current() == backend_->core_thread_.message_loop());
printer_list_.clear();
- print_system_->GetPrintBackend()->EnumeratePrinters(&printer_list_);
+ print_system_->EnumeratePrinters(&printer_list_);
// Now we need to ask the server about printers that were registered on the
// server so that we can trim this list.
GetRegisteredPrinters();
@@ -453,7 +455,7 @@
// and defaults again.
if (info.printer_name != last_uploaded_printer_name_) {
have_printer_info =
- print_system_->GetPrintBackend()->GetPrinterCapsAndDefaults(
+ print_system_->GetPrinterCapsAndDefaults(
info.printer_name.c_str(), &last_uploaded_printer_info_);
}
if (have_printer_info) {
« no previous file with comments | « no previous file | chrome/service/cloud_print/print_system.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698