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

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

Issue 2232653002: chromeos: Avoid bogus child account warning at startup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: switch to LOG(DFATAL) Created 4 years, 4 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 5081a2d60d4669e1f3d6d689c3f357b6b1a024e5..a624431c636a7aeb796c3dcd77843394bc5d8c91 100644
--- a/chrome/browser/supervised_user/child_accounts/child_account_service.cc
+++ b/chrome/browser/supervised_user/child_accounts/child_account_service.cc
@@ -296,12 +296,10 @@ void ChildAccountService::PropagateChildStatusToUser(bool is_child) {
#if defined(OS_CHROMEOS)
user_manager::User* user =
chromeos::ProfileHelper::Get()->GetUserByProfile(profile_);
- if (user) {
+ if (user)
user_manager::UserManager::Get()->ChangeUserChildStatus(user, is_child);
- } else {
- LOG(WARNING) <<
- "User instance wasn't found while setting child account flag.";
- }
+ else if (!chromeos::ProfileHelper::Get()->IsSigninProfile(profile_))
+ LOG(DFATAL) << "User instance not found while setting child account flag.";
#endif
}
« 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