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

Unified Diff: chrome/browser/chromeos/login/oauth2_login_manager.h

Issue 12052040: Added step that saves OAuth2 tokens fetched through policy into TokenService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 | chrome/browser/chromeos/login/oauth2_login_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/oauth2_login_manager.h
diff --git a/chrome/browser/chromeos/login/oauth2_login_manager.h b/chrome/browser/chromeos/login/oauth2_login_manager.h
index f283054da210a403a58214c553c5a226bf973f3b..1e55f04d20ecf23ac55844449cb3c70f0bf3fedf 100644
--- a/chrome/browser/chromeos/login/oauth2_login_manager.h
+++ b/chrome/browser/chromeos/login/oauth2_login_manager.h
@@ -76,6 +76,11 @@ class OAuth2LoginManager : public OAuthLoginManager,
// Removes legacy tokens form OAuth1 flow.
void RemoveLegacyTokens();
+ // Records OAuth2 tokens fetched through either policy fetcher or cookies-to-
+ // token exchange into TokenService.
+ void StoreOAuth2Tokens(
+ const GaiaAuthConsumer::ClientOAuthResult& oauth2_tokens);
+
// Loads previously stored OAuth2 tokens and kicks off its validation.
void LoadAndVerifyOAuth2Tokens();
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/oauth2_login_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698