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

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

Issue 12704002: Support for auth code based authentication flow for both app and web UI driven flow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase4 Created 7 years, 9 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/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 3f358d56e9d0b982ac05b0272035e3ec1be3cba3..a133f1a9b626a2544ce5bd725e4535b022ae55e0 100644
--- a/chrome/browser/chromeos/login/oauth2_login_manager.h
+++ b/chrome/browser/chromeos/login/oauth2_login_manager.h
@@ -40,7 +40,9 @@ class OAuth2LoginManager : public OAuthLoginManager,
virtual void RestoreSession(
Profile* user_profile,
net::URLRequestContextGetter* auth_request_context,
- bool restore_from_auth_cookies) OVERRIDE;
+ SessionRestoreStrategy restore_strategy,
+ const std::string& oauth2_refresh_token,
+ const std::string& auth_code) OVERRIDE;
virtual void ContinueSessionRestore() OVERRIDE;
virtual void Stop() OVERRIDE;
@@ -118,6 +120,8 @@ class OAuth2LoginManager : public OAuthLoginManager,
scoped_ptr<OAuth2PolicyFetcher> oauth2_policy_fetcher_;
// OAuth2 refresh token.
std::string refresh_token_;
+ // Authorization code for fetching OAuth2 tokens.
+ std::string auth_code_;
DISALLOW_COPY_AND_ASSIGN(OAuth2LoginManager);
};
« no previous file with comments | « chrome/browser/chromeos/login/mock_login_utils.h ('k') | chrome/browser/chromeos/login/oauth2_login_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698