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

Unified Diff: chrome/browser/chromeos/login/user_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/user_flow.cc
diff --git a/chrome/browser/chromeos/login/user_flow.cc b/chrome/browser/chromeos/login/user_flow.cc
index 74e37c34cd7a55bb115c242a19c0de04c514c6b8..5df5639c2b0473680277f02e2df58777f2474442 100644
--- a/chrome/browser/chromeos/login/user_flow.cc
+++ b/chrome/browser/chromeos/login/user_flow.cc
@@ -10,15 +10,6 @@
namespace chromeos {
-namespace {
-
-void UnregisterFlow(const std::string& user_id) {
- ChromeUserManager::Get()->ResetUserFlow(AccountId::FromUserEmail(user_id));
-}
-
-} // namespace
-
-
UserFlow::UserFlow() : host_(NULL) {}
UserFlow::~UserFlow() {}
@@ -70,9 +61,8 @@ void DefaultUserFlow::HandleOAuthTokenStatusChange(
void DefaultUserFlow::LaunchExtraSteps(Profile* profile) {
}
-ExtendedUserFlow::ExtendedUserFlow(const std::string& user_id)
- : user_id_(user_id) {
-}
+ExtendedUserFlow::ExtendedUserFlow(const AccountId& account_id)
+ : account_id_(account_id) {}
ExtendedUserFlow::~ExtendedUserFlow() {
}
@@ -89,10 +79,10 @@ void ExtendedUserFlow::HandleOAuthTokenStatusChange(
}
void ExtendedUserFlow::UnregisterFlowSoon() {
- std::string id_copy(user_id());
- base::MessageLoop::current()->PostTask(FROM_HERE,
- base::Bind(&UnregisterFlow,
- id_copy));
+ base::MessageLoop::current()->PostTask(
+ FROM_HERE,
+ base::Bind(&ChromeUserManager::ResetUserFlow,
+ base::Unretained(ChromeUserManager::Get()), account_id()));
}
} // namespace chromeos
« no previous file with comments | « chrome/browser/chromeos/login/user_flow.h ('k') | chrome/browser/chromeos/login/users/chrome_user_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698