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

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: full version Created 5 years, 4 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/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 55bca667335bcd51bc6858b9e06a6f40ceaf6085..72d52bdf5e77999d7de5d135c5d26615c3c70c6d 100644
--- a/chrome/browser/signin/profile_oauth2_token_service_factory.cc
+++ b/chrome/browser/signin/profile_oauth2_token_service_factory.cc
@@ -47,12 +47,13 @@ ProfileOAuth2TokenServiceFactory*
KeyedService* ProfileOAuth2TokenServiceFactory::BuildServiceInstanceFor(
content::BrowserContext* context) const {
+ Profile* profile = static_cast<Profile*>(context);
#if defined(OS_ANDROID)
OAuth2TokenServiceDelegateAndroid* delegate =
new OAuth2TokenServiceDelegateAndroid();
- delegate->Initialize();
+ delegate->Initialize(
+ AccountTrackerServiceFactory::GetInstance()->GetForProfile(profile));
Roger Tawa OOO till Jul 10th 2015/08/14 15:01:22 Please pass the ATS in the ctor of OAuth2TokenServ
gogerald1 2015/08/18 01:14:27 Done.
#else
- Profile* profile = static_cast<Profile*>(context);
MutableProfileOAuth2TokenServiceDelegate* delegate =
new MutableProfileOAuth2TokenServiceDelegate(
ChromeSigninClientFactory::GetInstance()->GetForProfile(profile),

Powered by Google App Engine
This is Rietveld 408576698