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

Unified Diff: chrome/browser/extensions/api/identity/gaia_web_auth_flow.h

Issue 293063002: Multiple account support in chrome.identity.getAuthToken (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use full name of enable-new-profile-management Created 6 years, 6 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/extensions/api/identity/gaia_web_auth_flow.h
diff --git a/chrome/browser/extensions/api/identity/gaia_web_auth_flow.h b/chrome/browser/extensions/api/identity/gaia_web_auth_flow.h
index 684fb0bc556baf9f051d32047cb35f75570e58b1..1b2abae3a1bb37c147a4dcc43dd245142383e438 100644
--- a/chrome/browser/extensions/api/identity/gaia_web_auth_flow.h
+++ b/chrome/browser/extensions/api/identity/gaia_web_auth_flow.h
@@ -14,7 +14,7 @@ namespace extensions {
// Implements a web-based OAuth2 scope approval dialog. This flow has
// four parts:
-// 1. Fetch an ubertoken for the signed-in user.
+// 1. Fetch an ubertoken for a signed-in user.
// 2. Use the ubertoken to get session cookies using MergeSession.
// 3. Start the OAuth flow and wait for final redirect.
// 4. Parse results from the fragment component of the final redirect URI.
@@ -60,6 +60,7 @@ class GaiaWebAuthFlow : public UbertokenConsumer, public WebAuthFlow::Delegate {
GaiaWebAuthFlow(Delegate* delegate,
Profile* profile,
+ const std::string& account_id,
const std::string& extension_id,
const OAuth2Info& oauth2_info,
const std::string& locale);
@@ -84,6 +85,7 @@ class GaiaWebAuthFlow : public UbertokenConsumer, public WebAuthFlow::Delegate {
Delegate* delegate_;
Profile* profile_;
+ std::string account_id_;
chrome::HostDesktopType host_desktop_type_;
std::string redirect_scheme_;
std::string redirect_path_prefix_;
@@ -94,6 +96,6 @@ class GaiaWebAuthFlow : public UbertokenConsumer, public WebAuthFlow::Delegate {
DISALLOW_COPY_AND_ASSIGN(GaiaWebAuthFlow);
};
-} // extensions
+} // namespace extensions
#endif // CHROME_BROWSER_EXTENSIONS_API_IDENTITY_GAIA_WEB_AUTH_FLOW_H_

Powered by Google App Engine
This is Rietveld 408576698