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 1e906124a4b7ba4cd6950fc33d535a2f32049a8e..25eb5ce9e906367e9d6c354caafe7c16257112d4 100644 |
--- a/chrome/browser/supervised_user/child_accounts/child_account_service.cc |
+++ b/chrome/browser/supervised_user/child_accounts/child_account_service.cc |
@@ -261,6 +261,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() { |