Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2204)

Unified Diff: chrome/browser/supervised_user/child_accounts/child_account_service.cc

Issue 993513002: Revert of Disable fetching account flags for signed in users. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698