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

Unified Diff: google_apis/gaia/oauth2_access_token_fetcher.h

Issue 57993006: signin: record http response codes and net errors in OAuth2AccessTokenFetcher. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: eof Created 7 years, 1 month 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/browser/sync/profile_sync_service.cc ('k') | google_apis/gaia/oauth2_access_token_fetcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/gaia/oauth2_access_token_fetcher.h
diff --git a/google_apis/gaia/oauth2_access_token_fetcher.h b/google_apis/gaia/oauth2_access_token_fetcher.h
index 11ac6ea8b5c702a9611802b444444fdf7c80cce4..90805c0996353a28d5c118e1403ec6071946c657 100644
--- a/google_apis/gaia/oauth2_access_token_fetcher.h
+++ b/google_apis/gaia/oauth2_access_token_fetcher.h
@@ -90,9 +90,15 @@ class OAuth2AccessTokenFetcher : public net::URLFetcherDelegate {
const std::string& client_secret,
const std::string& refresh_token,
const std::vector<std::string>& scopes);
- static bool ParseGetAccessTokenResponse(const net::URLFetcher* source,
- std::string* access_token,
- int* expires_in);
+
+ static bool ParseGetAccessTokenSuccessResponse(
+ const net::URLFetcher* source,
+ std::string* access_token,
+ int* expires_in);
+
+ static bool ParseGetAccessTokenFailureResponse(
+ const net::URLFetcher* source,
+ std::string* error);
// State that is set during construction.
OAuth2AccessTokenConsumer* const consumer_;
« no previous file with comments | « chrome/browser/sync/profile_sync_service.cc ('k') | google_apis/gaia/oauth2_access_token_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698