| Index: chrome/browser/managed_mode/managed_user_registration_utility.cc
|
| diff --git a/chrome/browser/managed_mode/managed_user_registration_utility.cc b/chrome/browser/managed_mode/managed_user_registration_utility.cc
|
| index e1f869190716c62e53a75869360393d331c60613..1b57c9c75abb779a0325a39a92faf0dfe2b7cb88 100644
|
| --- a/chrome/browser/managed_mode/managed_user_registration_utility.cc
|
| +++ b/chrome/browser/managed_mode/managed_user_registration_utility.cc
|
| @@ -56,9 +56,12 @@ ManagedUserRegistrationUtility::~ManagedUserRegistrationUtility() {
|
| // static
|
| scoped_ptr<ManagedUserRegistrationUtility>
|
| ManagedUserRegistrationUtility::Create(Profile* profile) {
|
| + ProfileOAuth2TokenService* token_service =
|
| + ProfileOAuth2TokenServiceFactory::GetForProfile(profile);
|
| scoped_ptr<ManagedUserRefreshTokenFetcher> token_fetcher =
|
| ManagedUserRefreshTokenFetcher::Create(
|
| - ProfileOAuth2TokenServiceFactory::GetForProfile(profile),
|
| + token_service,
|
| + token_service->GetPrimaryAccountId(),
|
| profile->GetRequestContext());
|
| ManagedUserSyncService* managed_user_sync_service =
|
| ManagedUserSyncServiceFactory::GetForProfile(profile);
|
|
|