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

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

Issue 777993003: Add ProfileInfoCache::ProfileIsChild/IsLegacySupervisedAtIndex. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@unicorn_upstream
Patch Set: 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
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 61d6761cecc53bc5f66e0250296becc6d539e72d..3b8e4997349ee9b1086e893d2c225efbd18efa51 100644
--- a/chrome/browser/supervised_user/child_accounts/child_account_service.cc
+++ b/chrome/browser/supervised_user/child_accounts/child_account_service.cc
@@ -35,7 +35,6 @@
#endif
const char kIsChildAccountServiceFlagName[] = "uca";
-const char kChildAccountSUID[] = "ChildAccountSUID";
ChildAccountService::ChildAccountService(Profile* profile)
: profile_(profile), active_(false), weak_ptr_factory_(this) {}
@@ -68,7 +67,7 @@ void ChildAccountService::Shutdown() {
bool ChildAccountService::IsChildAccount() const {
return profile_->GetPrefs()->GetString(prefs::kSupervisedUserId) ==
- kChildAccountSUID;
+ supervised_users::kChildAccountSUID;
}
bool ChildAccountService::SetActive(bool active) {
@@ -285,7 +284,7 @@ void ChildAccountService::SetIsChildAccount(bool is_child_account) {
if (is_child_account) {
profile_->GetPrefs()->SetString(prefs::kSupervisedUserId,
- kChildAccountSUID);
+ supervised_users::kChildAccountSUID);
} else {
profile_->GetPrefs()->ClearPref(prefs::kSupervisedUserId);
}
« no previous file with comments | « chrome/browser/profiles/profile_manager.cc ('k') | chrome/browser/supervised_user/supervised_user_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698