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

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

Issue 6356007: Added a diagnostic user message when enumerating printers fails. Also tweaked... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fixed build errors Created 9 years, 11 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/service/cloud_print/printer_job_handler.cc
===================================================================
--- chrome/service/cloud_print/printer_job_handler.cc (revision 72357)
+++ chrome/service/cloud_print/printer_job_handler.cc (working copy)
@@ -65,8 +65,10 @@
printer_watcher_->StartWatching(this);
CheckForJobs(kJobFetchReasonStartup);
} else {
- // This printer does not exist any more. Delete it from the server.
- OnPrinterDeleted();
+ // This printer does not exist any more. Check if we should delete it from
+ // the server.
+ if (delegate_->OnPrinterNotFound(printer_info_.printer_name))
+ OnPrinterDeleted();
}
return true;
}

Powered by Google App Engine
This is Rietveld 408576698