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

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..b34de253e3aa250659218b7c0f7932d620272923 100644
--- a/chrome/service/cloud_print/printer_job_handler.cc
+++ b/chrome/service/cloud_print/printer_job_handler.cc
@@ -176,6 +176,8 @@ bool PrinterJobHandler::OnJobCompleted(JobStatusUpdater* updater) {
}
void PrinterJobHandler::OnAuthError() {
+ MessageLoop::current()->PostTask(
+ FROM_HERE, base::Bind(&PrinterJobHandler::Stop, this));
if (delegate_)
delegate_->OnAuthError();
}
« 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