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

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

Issue 866763002: User class update made independent of profile state update. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resetting user status to same as existing one prevented. Created 5 years, 11 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 | components/user_manager/user_manager_base.cc » ('j') | 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 a0c30ac724bbc2bcd38903d869b973eca26d8fb8..cc61ff2cf14e9ddf77c6dbc4f2bfd382de3c5f8c 100644
--- a/chrome/browser/supervised_user/child_accounts/child_account_service.cc
+++ b/chrome/browser/supervised_user/child_accounts/child_account_service.cc
@@ -74,6 +74,7 @@ ChildAccountService::ChildAccountService(Profile* profile)
ChildAccountService::~ChildAccountService() {}
void ChildAccountService::SetIsChildAccount(bool is_child_account) {
+ PropagateChildStatusToUser(is_child_account);
if (profile_->IsChild() == is_child_account)
return;
@@ -83,7 +84,6 @@ void ChildAccountService::SetIsChildAccount(bool is_child_account) {
} else {
profile_->GetPrefs()->ClearPref(prefs::kSupervisedUserId);
}
- PropagateChildStatusToUser(is_child_account);
}
void ChildAccountService::Init() {
« no previous file with comments | « no previous file | components/user_manager/user_manager_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698