Chromium Code Reviews| Index: chrome/browser/chromeos/policy/user_policy_manager_factory_chromeos.cc |
| diff --git a/chrome/browser/chromeos/policy/user_policy_manager_factory_chromeos.cc b/chrome/browser/chromeos/policy/user_policy_manager_factory_chromeos.cc |
| index 835f51160734be5a8533f7ff97ce02bd1ed42c63..cbf3e75c425f1d7fd57891954b1c8d665d655d0d 100644 |
| --- a/chrome/browser/chromeos/policy/user_policy_manager_factory_chromeos.cc |
| +++ b/chrome/browser/chromeos/policy/user_policy_manager_factory_chromeos.cc |
| @@ -176,9 +176,10 @@ UserPolicyManagerFactoryChromeOS::CreateManagerForProfile( |
| bool is_active_directory = false; |
| switch (account_id.GetAccountType()) { |
| case AccountType::UNKNOWN: |
| + // At the time of login, the account type must be well-defined. |
| + CHECK(false); |
|
Andrew T Wilson (Slow)
2017/05/18 15:26:03
Is CHECK the right thing here, nor AttemptUserExit
Thiemo Nagel
2017/05/18 16:00:24
I guess AttemptUserExit() is just as good, except
|
| + break; |
| case AccountType::GOOGLE: |
| - // TODO(tnagel): Return nullptr for unknown accounts once AccountId |
| - // migration is finished. |
| if (!user->HasGaiaAccount()) { |
| return {}; |
| } |