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

Unified Diff: components/user_manager/user.h

Issue 1865133002: kiosk: Fix kiosk session restart (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase, comments in #4 Created 4 years, 8 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: components/user_manager/user.h
diff --git a/components/user_manager/user.h b/components/user_manager/user.h
index 61ce0b4b1eaca3ed7558693d99a1de0e05eb57d9..b004e4dc7eefd658f6b9df550512ef7d70ddd88e 100644
--- a/components/user_manager/user.h
+++ b/components/user_manager/user.h
@@ -82,6 +82,9 @@ class USER_MANAGER_EXPORT User : public UserInfo {
// Returns true if user type has gaia account.
static bool TypeHasGaiaAccount(UserType user_type);
+ explicit User(const AccountId& account_id);
+ ~User() override;
+
// UserInfo
std::string GetEmail() const override;
base::string16 GetDisplayName() const override;
@@ -111,6 +114,9 @@ class USER_MANAGER_EXPORT User : public UserInfo {
// True if the user is affiliated to the device.
virtual bool IsAffiliated() const;
+ // True if the user is a device local account user.
+ virtual bool IsDeviceLocalAccountUser() const;
bartfab (slow) 2016/04/18 13:09:25 Nit: The "User" is redundant.
xiyuan 2016/04/18 16:53:27 Done.
+
// The email the user used to log in.
// TODO(alemate): rename this to GetUserEmail() (see crbug.com/548923)
const std::string& email() const;
@@ -193,9 +199,6 @@ class USER_MANAGER_EXPORT User : public UserInfo {
static User* CreateSupervisedUser(const AccountId& account_id);
static User* CreatePublicAccountUser(const AccountId& account_id);
- explicit User(const AccountId& account_id);
- ~User() override;
-
const std::string* GetAccountLocale() const { return account_locale_.get(); }
// Setters are private so only UserManager can call them.

Powered by Google App Engine
This is Rietveld 408576698