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

Unified Diff: chrome/browser/chromeos/login/auth/user_context.h

Issue 324463003: ChromeOS login webui refactoring : Simplify login methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge with ToT Created 6 years, 6 months 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/auth/user_context.h
diff --git a/chrome/browser/chromeos/login/auth/user_context.h b/chrome/browser/chromeos/login/auth/user_context.h
index 003576cc5aafb2b3131bab6df8db4efaf208cbbf..9cdc1f0d94eec71db4dcc1f239d6eff09336fa25 100644
--- a/chrome/browser/chromeos/login/auth/user_context.h
+++ b/chrome/browser/chromeos/login/auth/user_context.h
@@ -8,6 +8,7 @@
#include <string>
#include "chrome/browser/chromeos/login/auth/key.h"
+#include "chrome/browser/chromeos/login/users/user.h"
namespace chromeos {
@@ -30,6 +31,7 @@ class UserContext {
UserContext();
UserContext(const UserContext& other);
explicit UserContext(const std::string& user_id);
+ UserContext(User::UserType user_type, const std::string& user_id);
~UserContext();
bool operator==(const UserContext& context) const;
@@ -42,6 +44,7 @@ class UserContext {
const std::string& GetUserIDHash() const;
bool IsUsingOAuth() const;
AuthFlow GetAuthFlow() const;
+ User::UserType GetUserType() const;
bool HasCredentials() const;
@@ -51,6 +54,7 @@ class UserContext {
void SetUserIDHash(const std::string& user_id_hash);
void SetIsUsingOAuth(bool is_using_oauth);
void SetAuthFlow(AuthFlow auth_flow);
+ void SetUserType(User::UserType user_type);
void ClearSecrets();
@@ -61,6 +65,7 @@ class UserContext {
std::string user_id_hash_;
bool is_using_oauth_;
AuthFlow auth_flow_;
+ User::UserType user_type_;
};
} // namespace chromeos
« no previous file with comments | « chrome/browser/chromeos/login/app_launch_signin_screen.cc ('k') | chrome/browser/chromeos/login/auth/user_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698