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

Unified Diff: chromeos/login/auth/user_context.h

Issue 1097663003: Fetch OAuth2 tokens prior to profile creation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: OAuth2TokenInitializer for non-SAML only Created 5 years, 8 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/chrome_browser_chromeos.gypi ('k') | chromeos/login/auth/user_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/login/auth/user_context.h
diff --git a/chromeos/login/auth/user_context.h b/chromeos/login/auth/user_context.h
index bac7f4f5d4ea1a908ddd53db2cc1077b14f953a3..727df7f484649b5759be9fdac81eb0bd310f0d45 100644
--- a/chromeos/login/auth/user_context.h
+++ b/chromeos/login/auth/user_context.h
@@ -48,6 +48,7 @@ class CHROMEOS_EXPORT UserContext {
Key* GetKey();
const std::string& GetAuthCode() const;
const std::string& GetRefreshToken() const;
+ const std::string& GetAccessToken() const;
const std::string& GetUserIDHash() const;
bool IsUsingOAuth() const;
AuthFlow GetAuthFlow() const;
@@ -63,6 +64,7 @@ class CHROMEOS_EXPORT UserContext {
void SetKey(const Key& key);
void SetAuthCode(const std::string& auth_code);
void SetRefreshToken(const std::string& refresh_token);
+ void SetAccessToken(const std::string& access_token);
void SetUserIDHash(const std::string& user_id_hash);
void SetIsUsingOAuth(bool is_using_oauth);
void SetAuthFlow(AuthFlow auth_flow);
@@ -79,6 +81,7 @@ class CHROMEOS_EXPORT UserContext {
Key key_;
std::string auth_code_;
std::string refresh_token_;
+ std::string access_token_; // OAuthLogin scoped access token.
std::string user_id_hash_;
bool is_using_oauth_;
AuthFlow auth_flow_;
« no previous file with comments | « chrome/chrome_browser_chromeos.gypi ('k') | chromeos/login/auth/user_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698