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

Unified Diff: chrome/browser/chromeos/login/signin/oauth2_token_fetcher.h

Issue 382983003: Pass signin_scoped_device_id to refresh token request on ChromeOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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: chrome/browser/chromeos/login/signin/oauth2_token_fetcher.h
diff --git a/chrome/browser/chromeos/login/signin/oauth2_token_fetcher.h b/chrome/browser/chromeos/login/signin/oauth2_token_fetcher.h
index 7f11d0cfcd5b6d364e661d8c3373a09768516e35..ceda7c1c092794dfc6adf5aff6472ec0fe12b1e0 100644
--- a/chrome/browser/chromeos/login/signin/oauth2_token_fetcher.h
+++ b/chrome/browser/chromeos/login/signin/oauth2_token_fetcher.h
@@ -38,7 +38,8 @@ class OAuth2TokenFetcher : public base::SupportsWeakPtr<OAuth2TokenFetcher>,
net::URLRequestContextGetter* context_getter);
virtual ~OAuth2TokenFetcher();
- void StartExchangeFromCookies(const std::string& session_index);
+ void StartExchangeFromCookies(const std::string& session_index,
+ const std::string& signin_scoped_device_id);
void StartExchangeFromAuthCode(const std::string& auth_code);
dzhioev (left Google) 2014/07/18 13:31:52 Don't we need device id for auth code authenticati
pavely 2014/07/18 22:30:04 The way how (I think) exchange with gaia works is:
private:
@@ -63,6 +64,7 @@ class OAuth2TokenFetcher : public base::SupportsWeakPtr<OAuth2TokenFetcher>,
// The retry counter. Increment this only when failure happened.
int retry_count_;
std::string session_index_;
+ std::string signin_scoped_device_id_;
std::string auth_code_;
DISALLOW_COPY_AND_ASSIGN(OAuth2TokenFetcher);

Powered by Google App Engine
This is Rietveld 408576698