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

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: 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
Index: chrome/browser/chromeos/login/user.h
diff --git a/chrome/browser/chromeos/login/user.h b/chrome/browser/chromeos/login/user.h
index faf591395f62be3b96eadd8f61ae98df5b40ca8b..4d75b647a38a303f01a0f39302d323c3d3bd419f 100644
--- a/chrome/browser/chromeos/login/user.h
+++ b/chrome/browser/chromeos/login/user.h
@@ -171,6 +171,8 @@ class User {
// OAuth token status for this user.
OAuthTokenStatus oauth_token_status() const { return oauth_token_status_; }
+ bool force_online_signin() const { return force_online_signin_; }
Nikita (slow) 2014/01/23 16:06:56 nit: Please add comment.
bartfab (slow) 2014/01/24 12:08:05 Done.
+
// 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;
@@ -239,6 +241,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;
}
@@ -266,6 +272,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).

Powered by Google App Engine
This is Rietveld 408576698