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

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

Issue 143873012: Add local state flag to force online login for a user (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compilation. Created 6 years, 11 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
« no previous file with comments | « chrome/browser/chromeos/login/mock_user_manager.h ('k') | chrome/browser/chromeos/login/user.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/user.h
diff --git a/chrome/browser/chromeos/login/user.h b/chrome/browser/chromeos/login/user.h
index 2c6c406c4a138ca80cda122de4d89fa6eb86b7ec..293769d56a11b8fa7b08e8c6e7d1686ce3d1bf9e 100644
--- a/chrome/browser/chromeos/login/user.h
+++ b/chrome/browser/chromeos/login/user.h
@@ -171,6 +171,10 @@ class User {
// OAuth token status for this user.
OAuthTokenStatus oauth_token_status() const { return oauth_token_status_; }
+ // Whether online authentication against GAIA should be enforced during the
+ // user's next sign-in.
+ bool force_online_signin() const { return force_online_signin_; }
+
// True if the user's session can be locked (i.e. the user has a password with
// which to unlock the session).
virtual bool can_lock() const;
@@ -240,6 +244,10 @@ class User {
oauth_token_status_ = status;
}
+ void set_force_online_signin(bool force_online_signin) {
+ force_online_signin_ = force_online_signin;
+ }
+
void set_username_hash(const std::string& username_hash) {
username_hash_ = username_hash;
}
@@ -271,6 +279,7 @@ class User {
std::string display_email_;
UserImage user_image_;
OAuthTokenStatus oauth_token_status_;
+ bool force_online_signin_;
// This is set to chromeos locale if account data has been downloaded.
// (Or failed to download, but at least one download attempt finished).
« no previous file with comments | « chrome/browser/chromeos/login/mock_user_manager.h ('k') | chrome/browser/chromeos/login/user.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698