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

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

Issue 1020173002: Enable child account detection by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@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 76e3e65e0e5d58bf31bf90881a5297c610b2b0d4..c192d83d68710a5c872b50e5e05bc0cacdf3d2a3 100644
--- a/chrome/browser/supervised_user/child_accounts/child_account_service.cc
+++ b/chrome/browser/supervised_user/child_accounts/child_account_service.cc
@@ -92,7 +92,9 @@ bool ChildAccountService::IsChildAccountDetectionEnabled() {
if (command_line->HasSwitch(switches::kEnableChildAccountDetection))
return true;
- return group_name == "Enabled";
+ if (group_name == "Disabled")
+ return false;
+ return true;
}
void ChildAccountService::RegisterProfilePrefs(
« 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