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 72404c6c8422bb03b934f627d017c026d3fb920a..4b9b5b5de635c52b4c9933270db0a97fd239d010 100644 |
--- a/chrome/browser/managed_mode/managed_user_registration_utility.cc |
+++ b/chrome/browser/managed_mode/managed_user_registration_utility.cc |
@@ -130,9 +130,13 @@ ManagedUserRegistrationUtility::Create(Profile* profile) { |
g_instance_for_tests = NULL; |
return make_scoped_ptr(result); |
} |
+ |
+ ProfileOAuth2TokenService* token_service = |
+ ProfileOAuth2TokenServiceFactory::GetForProfile(profile); |
scoped_ptr<ManagedUserRefreshTokenFetcher> token_fetcher = |
ManagedUserRefreshTokenFetcher::Create( |
- ProfileOAuth2TokenServiceFactory::GetForProfile(profile), |
+ token_service, |
+ token_service->GetPrimaryAccountId(), |
Andrew T Wilson (Slow)
2013/09/03 14:04:24
you might reach out to bauerb about this - it's no
fgorski
2013/09/03 20:50:40
I've sent an email to bauerb@ with questions relat
|
profile->GetRequestContext()); |
ManagedUserSyncService* managed_user_sync_service = |
ManagedUserSyncServiceFactory::GetForProfile(profile); |