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

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

Issue 2661283002: cros: Clean up SessionStateDelegate refs in Chrome (Closed)
Patch Set: rebase 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 76a8a4865c96c9b7ae15afe793a363df2bd4e3ca..a6748b58a4b186614a9b8355f4e8ec27fd57406d 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())));
xiyuan 2017/02/27 17:43:24 Tests uses "a", "b" as user emails and this DCHECK
if (account_id == UserManager::Get()->GetActiveUser()->GetAccountId())
return;

Powered by Google App Engine
This is Rietveld 408576698