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

Unified Diff: chrome/browser/chromeos/login/easy_unlock/easy_unlock_user_login_flow.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: Bugfix in original easy unlock code' 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/easy_unlock_user_login_flow.cc
diff --git a/chrome/browser/chromeos/login/easy_unlock/easy_unlock_user_login_flow.cc b/chrome/browser/chromeos/login/easy_unlock/easy_unlock_user_login_flow.cc
index 6dec53e6b718fa58422b6176c277c548d7711652..2ba28ad9ef41969600bb77223a568c123e5e64ba 100644
--- a/chrome/browser/chromeos/login/easy_unlock/easy_unlock_user_login_flow.cc
+++ b/chrome/browser/chromeos/login/easy_unlock/easy_unlock_user_login_flow.cc
@@ -7,9 +7,8 @@
#include "chrome/browser/chromeos/profiles/profile_helper.h"
#include "chrome/browser/signin/easy_unlock_service.h"
-EasyUnlockUserLoginFlow::EasyUnlockUserLoginFlow(const std::string& user_id)
- : chromeos::ExtendedUserFlow(user_id) {
-}
+EasyUnlockUserLoginFlow::EasyUnlockUserLoginFlow(const AccountId& account_id)
+ : chromeos::ExtendedUserFlow(account_id) {}
EasyUnlockUserLoginFlow::~EasyUnlockUserLoginFlow() {}
@@ -31,8 +30,8 @@ bool EasyUnlockUserLoginFlow::HandleLoginFailure(
EasyUnlockService* service = EasyUnlockService::Get(profile);
if (!service)
return false;
- service->HandleAuthFailure(user_id());
- service->RecordEasySignInOutcome(user_id(), false);
+ service->HandleAuthFailure(account_id());
+ service->RecordEasySignInOutcome(account_id(), false);
UnregisterFlowSoon();
return true;
}
@@ -43,7 +42,7 @@ void EasyUnlockUserLoginFlow::HandleLoginSuccess(
EasyUnlockService* service = EasyUnlockService::Get(profile);
if (!service)
return;
- service->RecordEasySignInOutcome(user_id(), true);
+ service->RecordEasySignInOutcome(account_id(), true);
}
bool EasyUnlockUserLoginFlow::HandlePasswordChangeDetected() {

Powered by Google App Engine
This is Rietveld 408576698