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

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: 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/user_flow.h
diff --git a/chrome/browser/chromeos/login/user_flow.h b/chrome/browser/chromeos/login/user_flow.h
index aa5d2558b08ee03949e85acc05304e76a8114cf3..08232e529ce698770af30c2ef3118fe1f81bb158 100644
--- a/chrome/browser/chromeos/login/user_flow.h
+++ b/chrome/browser/chromeos/login/user_flow.h
@@ -8,8 +8,11 @@
#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"
+class AccountId;
achuithb 2015/12/04 10:12:52 don't think you need this?
Alexander Alekseev 2015/12/04 12:44:06 Done.
+
namespace chromeos {
class UserContext;
@@ -69,7 +72,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 +83,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_;
+ AccountId account_id_;
achuithb 2015/12/04 10:12:52 const?
Alexander Alekseev 2015/12/04 12:44:06 Done.
};
} // namespace chromeos

Powered by Google App Engine
This is Rietveld 408576698