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

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: 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..21c8dc2ee7d1effb417db06acbdd87dfb4ab5ea4 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 {
@@ -42,6 +43,7 @@ class UserContext {
const std::string& GetUserIDHash() const;
bool IsUsingOAuth() const;
AuthFlow GetAuthFlow() const;
+ User::UserType GetUserType() const;
bool HasCredentials() const;
@@ -51,6 +53,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 +64,7 @@ class UserContext {
std::string user_id_hash_;
bool is_using_oauth_;
AuthFlow auth_flow_;
+ User::UserType user_type_;
};
} // namespace chromeos

Powered by Google App Engine
This is Rietveld 408576698