| 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);
|
| }
|
|
|
|
|