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

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

Issue 1401873004: Remove check for valid account info in ChildAccountService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review Created 5 years, 2 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 6149a254378909799b59c9d5107a94287ce4c3e7..0ec2b71fc03ed187ab018bc2547c96a3d4730139 100644
--- a/chrome/browser/supervised_user/child_accounts/child_account_service.cc
+++ b/chrome/browser/supervised_user/child_accounts/child_account_service.cc
@@ -203,16 +203,16 @@ void ChildAccountService::SetIsChildAccount(bool is_child_account) {
}
void ChildAccountService::OnAccountUpdated(const AccountInfo& info) {
- std::string auth_account_id = SigninManagerFactory::GetForProfile(profile_)
- ->GetAuthenticatedAccountId();
- if (!info.IsValid() || info.account_id != auth_account_id)
- return;
-
if (!IsChildAccountDetectionEnabled()) {
SetIsChildAccount(false);
return;
}
+ std::string auth_account_id = SigninManagerFactory::GetForProfile(profile_)
+ ->GetAuthenticatedAccountId();
+ if (info.account_id != auth_account_id)
+ return;
+
SetIsChildAccount(info.is_child_account);
}
« 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