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

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: 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..750a47c6109fef7a358937c78a7838cc6fffbac7 100644
--- a/chrome/browser/supervised_user/child_accounts/child_account_service.cc
+++ b/chrome/browser/supervised_user/child_accounts/child_account_service.cc
@@ -298,9 +298,9 @@ void ChildAccountService::PropagateChildStatusToUser(bool is_child) {
chromeos::ProfileHelper::Get()->GetUserByProfile(profile_);
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(WARNING)
Bernhard Bauer 2016/08/10 14:23:57 Actually, would it make sense to have a DCHECK/CHE
Daniel Erat 2016/08/10 15:08:40 sorry, i have no idea -- i've never looked at this
Bernhard Bauer 2016/08/10 17:17:29 Hm, I'm thinking this is a situation that is _supp
Daniel Erat 2016/08/10 20:12:12 how about LOG(DFATAL)? then we get a crash in debu
+ << "User instance wasn't 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