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

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
« no previous file with comments | « no previous file | cloud_print/gcp20/prototype/cloud_print_requester.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..d8baec2d557a6e435f7c4d72110384985c416b32 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()));
@@ -106,13 +105,13 @@ void CloudPrintRequest::OnURLFetchComplete(const URLFetcher* source) {
// this call.
} else {
- // TODO(maksymb): Add |server_http_code| and |server_api| info for errors.
+ // TODO(maksymb): Add Privet |server_http_code| and |server_api| support in
+ // case of server 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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698