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

Unified Diff: chrome/browser/chromeos/login/easy_unlock/bootstrap_user_context_initializer.cc

Issue 1494153002: This CL replaces e-mail with AccountId in easy signin code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build. Created 5 years 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/easy_unlock/bootstrap_user_context_initializer.cc
diff --git a/chrome/browser/chromeos/login/easy_unlock/bootstrap_user_context_initializer.cc b/chrome/browser/chromeos/login/easy_unlock/bootstrap_user_context_initializer.cc
index d42c5df3366e0d472e9f732e5610065e0f313e36..6b3a82be6887a6ce4833d2d4d11e44eb7b990dca 100644
--- a/chrome/browser/chromeos/login/easy_unlock/bootstrap_user_context_initializer.cc
+++ b/chrome/browser/chromeos/login/easy_unlock/bootstrap_user_context_initializer.cc
@@ -98,14 +98,14 @@ void BootstrapUserContextInitializer::OnGetEasyUnlockData(
service->AddObserver(this);
static_cast<EasyUnlockServiceSignin*>(service)
- ->SetCurrentUser(user_context_.GetAccountId().GetUserEmail());
+ ->SetCurrentUser(user_context_.GetAccountId());
OnScreenlockStateChanged(service->GetScreenlockState());
}
void BootstrapUserContextInitializer::OnEasyUnlockAuthenticated(
EasyUnlockAuthAttempt::Type auth_attempt_type,
bool success,
- const std::string& user_id,
+ const AccountId& account_id,
const std::string& key_secret,
const std::string& key_label) {
DCHECK_EQ(EasyUnlockAuthAttempt::TYPE_SIGNIN, auth_attempt_type);
@@ -202,7 +202,7 @@ void BootstrapUserContextInitializer::OnScreenlockStateChanged(
service->RemoveObserver(this);
service->AttemptAuth(
- user_context_.GetAccountId().GetUserEmail(),
+ user_context_.GetAccountId(),
base::Bind(&BootstrapUserContextInitializer::OnEasyUnlockAuthenticated,
weak_ptr_factory_.GetWeakPtr()));
}

Powered by Google App Engine
This is Rietveld 408576698