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

Unified Diff: cloud_print/gcp20/prototype/cloud_print_request.cc

Issue 22184007: GCP2.0 Device: Instant AccessToken update on AuthFailed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 4 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: cloud_print/gcp20/prototype/cloud_print_request.cc
diff --git a/cloud_print/gcp20/prototype/cloud_print_request.cc b/cloud_print/gcp20/prototype/cloud_print_request.cc
index 2d36dccce2fd64e8676d9c4859aa6aaca1c45030..e53eccd13c83dd7766a4354b0c3c624e95b87e68 100644
--- a/cloud_print/gcp20/prototype/cloud_print_request.cc
+++ b/cloud_print/gcp20/prototype/cloud_print_request.cc
@@ -60,7 +60,6 @@ scoped_ptr<CloudPrintRequest> CloudPrintRequest::CreatePost(
void CloudPrintRequest::Run(
const std::string& access_token,
scoped_refptr<net::URLRequestContextGetter> context_getter) {
-
if (!access_token.empty())
fetcher_->AddExtraRequestHeader(base::StringPrintf(
"Authorization: Bearer \"%s\"", access_token.c_str()));
@@ -107,12 +106,11 @@ void CloudPrintRequest::OnURLFetchComplete(const URLFetcher* source) {
} else {
// TODO(maksymb): Add |server_http_code| and |server_api| info for errors.
+ NOTIMPLEMENTED() << "HTTP code: " << http_code;
delegate_->OnFetchError("dummy", -1, http_code); // After this object can
// be deleted.
// Do *NOT* access members
// after this call.
-
- NOTIMPLEMENTED() << "HTTP code: " << http_code;
}
}
« no previous file with comments | « no previous file | cloud_print/gcp20/prototype/cloud_print_requester.h » ('j') | cloud_print/gcp20/prototype/printer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698