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

Unified Diff: components/user_manager/user.cc

Issue 785893003: Adapt Chrome OS related part of ChildAccountService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: User type check removed. Created 6 years 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 | « chrome/browser/ui/ash/system_tray_delegate_chromeos.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/user_manager/user.cc
diff --git a/components/user_manager/user.cc b/components/user_manager/user.cc
index 7035096fe374448b5547ab67913f6b0ecacab11b..2fbd910e923e0957998908402ac924dec86da170 100644
--- a/components/user_manager/user.cc
+++ b/components/user_manager/user.cc
@@ -136,7 +136,10 @@ std::string User::GetUserID() const {
void User::SetIsSupervised(bool is_supervised) {
VLOG(1) << "Ignoring SetIsSupervised call with param " << is_supervised;
- NOTREACHED() << "Calling SetIsSupervised for base User class.";
+ if (is_supervised) {
+ NOTREACHED() << "Calling SetIsSupervised(true) for base User class. "
+ << "Base class cannot be set as supervised";
+ }
}
bool User::HasGaiaAccount() const {
« no previous file with comments | « chrome/browser/ui/ash/system_tray_delegate_chromeos.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698