Chromium Code Reviews| 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), |