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

Unified Diff: chrome/browser/signin/profile_oauth2_token_service_factory.cc

Issue 1256283002: GAIA ID migration for Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 5 years, 3 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/browser/signin/oauth2_token_service_delegate_android.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/signin/profile_oauth2_token_service_factory.cc
diff --git a/chrome/browser/signin/profile_oauth2_token_service_factory.cc b/chrome/browser/signin/profile_oauth2_token_service_factory.cc
index 854c5b4736815cb850d1efe0acd3f6c21a88312f..a8b65afc0a9e70fc8f5230aee26455dc2f700b58 100644
--- a/chrome/browser/signin/profile_oauth2_token_service_factory.cc
+++ b/chrome/browser/signin/profile_oauth2_token_service_factory.cc
@@ -49,12 +49,12 @@ ProfileOAuth2TokenServiceFactory*
KeyedService* ProfileOAuth2TokenServiceFactory::BuildServiceInstanceFor(
content::BrowserContext* context) const {
+ Profile* profile = static_cast<Profile*>(context);
#if defined(OS_ANDROID)
OAuth2TokenServiceDelegateAndroid* delegate =
- new OAuth2TokenServiceDelegateAndroid();
- delegate->Initialize();
+ new OAuth2TokenServiceDelegateAndroid(
+ AccountTrackerServiceFactory::GetInstance()->GetForProfile(profile));
#else
- Profile* profile = static_cast<Profile*>(context);
MutableProfileOAuth2TokenServiceDelegate* delegate =
new MutableProfileOAuth2TokenServiceDelegate(
ChromeSigninClientFactory::GetInstance()->GetForProfile(profile),
« no previous file with comments | « chrome/browser/signin/oauth2_token_service_delegate_android.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698