Commit 8f122894 authored by alexyu@google.com's avatar alexyu@google.com

Ensure that printer job handler is stopped and task_in_progress_ is reset in OnAuthError

BUG=138959
TEST=

Review URL: https://chromiumcodereview.appspot.com/10821014

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148485 0039d316-1c4b-4281-b951-d872f2087c98
parent a2f52695
......@@ -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();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment