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

Unified Diff: chrome/browser/chromeos/login/user_flow.h

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
« no previous file with comments | « chrome/browser/chromeos/login/ui/webui_login_display.cc ('k') | chrome/browser/chromeos/login/user_flow.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/user_flow.h
diff --git a/chrome/browser/chromeos/login/user_flow.h b/chrome/browser/chromeos/login/user_flow.h
index aa5d2558b08ee03949e85acc05304e76a8114cf3..d90d3cc535c82309e044a5c27a8179e3813e4940 100644
--- a/chrome/browser/chromeos/login/user_flow.h
+++ b/chrome/browser/chromeos/login/user_flow.h
@@ -8,6 +8,7 @@
#include "base/compiler_specific.h"
#include "chrome/browser/profiles/profile.h"
#include "chromeos/login/auth/auth_status_consumer.h"
+#include "components/signin/core/account_id/account_id.h"
#include "components/user_manager/user.h"
namespace chromeos {
@@ -69,7 +70,7 @@ class DefaultUserFlow : public UserFlow {
// UserFlow stub for non-regular flows.
class ExtendedUserFlow : public UserFlow {
public:
- explicit ExtendedUserFlow(const std::string& user_id);
+ explicit ExtendedUserFlow(const AccountId& account_id);
~ExtendedUserFlow() override;
void AppendAdditionalCommandLineSwitches() override;
@@ -80,12 +81,10 @@ class ExtendedUserFlow : public UserFlow {
protected:
// Subclasses can call this method to unregister flow in the next event.
virtual void UnregisterFlowSoon();
- std::string user_id() {
- return user_id_;
- }
+ const AccountId& account_id() { return account_id_; }
private:
- std::string user_id_;
+ const AccountId account_id_;
};
} // namespace chromeos
« no previous file with comments | « chrome/browser/chromeos/login/ui/webui_login_display.cc ('k') | chrome/browser/chromeos/login/user_flow.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698