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

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

Issue 8387011: Chrome proxy refactoring. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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 | « chrome/service/cloud_print/job_status_updater.h ('k') | chrome/service/cloud_print/printer_job_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/service/cloud_print/job_status_updater.cc
===================================================================
--- chrome/service/cloud_print/job_status_updater.cc (revision 107156)
+++ chrome/service/cloud_print/job_status_updater.cc (working copy)
@@ -89,7 +89,17 @@
return CloudPrintURLFetcher::STOP_PROCESSING;
}
-void JobStatusUpdater::OnRequestAuthError() {
+CloudPrintURLFetcher::ResponseAction JobStatusUpdater::OnRequestAuthError() {
+ // We got an Auth error and have no idea how long it will take to refresh
+ // auth information (may take forever). We'll drop current request and
+ // propagate this error to the upper level. After auth issues will be
+ // resolved, GCP connector will restart.
if (delegate_)
delegate_->OnAuthError();
+ return CloudPrintURLFetcher::STOP_PROCESSING;
}
+
+std::string JobStatusUpdater::GetAuthHeader() {
+ return CloudPrintHelpers::GetCloudPrintAuthHeader();
+}
+
« no previous file with comments | « chrome/service/cloud_print/job_status_updater.h ('k') | chrome/service/cloud_print/printer_job_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698