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

Unified Diff: chrome/browser/chromeos/login/auth/chrome_login_performer.cc

Issue 1425093004: Revert of This CL replaces user_manager::UserID with AccountId. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@468875--Chrome-OS-handles-deletion-of-Gmail-account-poorly--Create-AccountID-structure-part2--user_names
Patch Set: Created 5 years, 2 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/chromeos/login/auth/chrome_login_performer.cc
diff --git a/chrome/browser/chromeos/login/auth/chrome_login_performer.cc b/chrome/browser/chromeos/login/auth/chrome_login_performer.cc
index e912445898288b10383a7b6267ed449bb75b9c89..e913bc17c8765c93c69a049b38ecbf5188d5979f 100644
--- a/chrome/browser/chromeos/login/auth/chrome_login_performer.cc
+++ b/chrome/browser/chromeos/login/auth/chrome_login_performer.cc
@@ -19,7 +19,6 @@
#include "chrome/browser/chromeos/policy/device_local_account_policy_service.h"
#include "chrome/browser/chromeos/profiles/profile_helper.h"
#include "chrome/browser/chromeos/settings/cros_settings.h"
-#include "components/signin/core/account_id/account_id.h"
namespace chromeos {
@@ -131,8 +130,7 @@
const UserContext& user_context) {
SupervisedUserAuthentication* authentication =
ChromeUserManager::Get()->GetSupervisedUserManager()->GetAuthentication();
- return authentication->GetPasswordSchema(
- user_context.GetAccountId().GetUserEmail()) ==
+ return authentication->GetPasswordSchema(user_context.GetUserID()) ==
SupervisedUserAuthentication::SCHEMA_SALT_HASHED;
}
@@ -145,15 +143,12 @@
void ChromeLoginPerformer::SetupSupervisedUserFlow(const std::string& user_id) {
SupervisedUserLoginFlow* new_flow = new SupervisedUserLoginFlow(user_id);
- new_flow->SetHost(ChromeUserManager::Get()
- ->GetUserFlow(AccountId::FromUserEmail(user_id))
- ->host());
- ChromeUserManager::Get()->SetUserFlow(AccountId::FromUserEmail(user_id),
- new_flow);
+ new_flow->SetHost(ChromeUserManager::Get()->GetUserFlow(user_id)->host());
+ ChromeUserManager::Get()->SetUserFlow(user_id, new_flow);
}
void ChromeLoginPerformer::SetupEasyUnlockUserFlow(const std::string& user_id) {
- ChromeUserManager::Get()->SetUserFlow(AccountId::FromUserEmail(user_id),
+ ChromeUserManager::Get()->SetUserFlow(user_id,
new EasyUnlockUserLoginFlow(user_id));
}

Powered by Google App Engine
This is Rietveld 408576698