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

Unified Diff: chrome/browser/chromeos/policy/user_policy_manager_factory_chromeos.cc

Issue 2891933002: UserPolicyManagerFactoryChromeOS: Elaborate comment (Closed)
Patch Set: Created 3 years, 7 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/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 {};
}
« 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