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

Unified Diff: components/signin/core/browser/gaia_cookie_manager_service.h

Issue 1129463004: Let Ubertoken Fetch be primed with an access token. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: split access token methods into new methods. Created 5 years, 7 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: components/signin/core/browser/gaia_cookie_manager_service.h
diff --git a/components/signin/core/browser/gaia_cookie_manager_service.h b/components/signin/core/browser/gaia_cookie_manager_service.h
index d5b6c51fcfd9e7bd0275b348500cbf99003b77ef..17cef117a659c39b0528731ba26189ee9817fa3b 100644
--- a/components/signin/core/browser/gaia_cookie_manager_service.h
+++ b/components/signin/core/browser/gaia_cookie_manager_service.h
@@ -160,6 +160,8 @@ class GaiaCookieManagerService : public KeyedService,
void Shutdown() override;
void AddAccountToCookie(const std::string& account_id);
+ void AddAccountToCookieWithToken(const std::string& account_id,
+ const std::string& access_token);
// Returns if the listed accounts are up to date or not (ignore the out
// parameter if return is false). The parameter will be assigned the current
@@ -217,6 +219,8 @@ class GaiaCookieManagerService : public KeyedService,
// Starts the proess of fetching the uber token and performing a merge session
// for the next account. Virtual so that it can be overriden in tests.
virtual void StartFetchingUbertoken();
+ virtual void StartFetchingUbertokenWithAccessToken(
+ const std::string& access_token);
// Virtual for testing purposes.
virtual void StartFetchingMergeSession();

Powered by Google App Engine
This is Rietveld 408576698