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

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

Issue 10821014: Ensure that printer job handler is stopped and task_in_progress_ is reset in OnAuthError (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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
« no previous file with comments | « no previous file | 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
diff --git a/chrome/service/cloud_print/printer_job_handler.cc b/chrome/service/cloud_print/printer_job_handler.cc
index d0d693c6992c9fec6fed262af3b02b9d4902c90c..88aa5f1f3b3417ae298ac71d771f7fadaf185e29 100644
--- a/chrome/service/cloud_print/printer_job_handler.cc
+++ b/chrome/service/cloud_print/printer_job_handler.cc
@@ -178,6 +178,8 @@ bool PrinterJobHandler::OnJobCompleted(JobStatusUpdater* updater) {
void PrinterJobHandler::OnAuthError() {
if (delegate_)
delegate_->OnAuthError();
+ MessageLoop::current()->PostTask(
gene 2012/07/25 18:45:43 Move to the top of the function? It probably does
Alex Yu 2012/07/25 18:51:44 Done.
+ FROM_HERE, base::Bind(&PrinterJobHandler::Stop, this))
}
void PrinterJobHandler::OnPrinterDeleted() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698