Index: chrome/browser/supervised_user/child_accounts/child_account_service.cc |
diff --git a/chrome/browser/supervised_user/child_accounts/child_account_service.cc b/chrome/browser/supervised_user/child_accounts/child_account_service.cc |
index ebba0fc8293ce60099398660c29e34b8f35fd1a8..76e3e65e0e5d58bf31bf90881a5297c610b2b0d4 100644 |
--- a/chrome/browser/supervised_user/child_accounts/child_account_service.cc |
+++ b/chrome/browser/supervised_user/child_accounts/child_account_service.cc |
@@ -306,6 +306,12 @@ void ChildAccountService::StartFetchingServiceFlags() { |
} |
account_id_ = SigninManagerFactory::GetForProfile(profile_) |
->GetAuthenticatedAccountId(); |
+ flag_fetcher_.reset(new AccountServiceFlagFetcher( |
+ account_id_, |
+ ProfileOAuth2TokenServiceFactory::GetForProfile(profile_), |
+ profile_->GetRequestContext(), |
+ base::Bind(&ChildAccountService::OnFlagsFetched, |
+ weak_ptr_factory_.GetWeakPtr()))); |
} |
void ChildAccountService::CancelFetchingServiceFlags() { |