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

Unified Diff: chrome/browser/ui/ash/session_controller_client.cc

Issue 2661283002: cros: Clean up SessionStateDelegate refs in Chrome (Closed)
Patch Set: update browser_finder_chromeos_unittest Created 3 years, 10 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
Index: chrome/browser/ui/ash/session_controller_client.cc
diff --git a/chrome/browser/ui/ash/session_controller_client.cc b/chrome/browser/ui/ash/session_controller_client.cc
index bc659c8e04ac89676e4eba6a68683bcab826b4c4..38f5b27dfa57803b3a987170f4e03059e1a204c9 100644
--- a/chrome/browser/ui/ash/session_controller_client.cc
+++ b/chrome/browser/ui/ash/session_controller_client.cc
@@ -190,10 +190,6 @@ void SessionControllerClient::DoLockScreen() {
// static
void SessionControllerClient::DoSwitchActiveUser(const AccountId& account_id) {
// Disallow switching to an already active user since that might crash.
- // Also check that we got a user id and not an email address.
- DCHECK_EQ(
- account_id.GetUserEmail(),
- gaia::CanonicalizeEmail(gaia::SanitizeEmail(account_id.GetUserEmail())));
if (account_id == UserManager::Get()->GetActiveUser()->GetAccountId())
return;
« no previous file with comments | « chrome/browser/ui/ash/palette_delegate_chromeos.cc ('k') | chrome/browser/ui/browser_finder_chromeos_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698