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

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, fix nits 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
« no previous file with comments | « components/user_manager/fake_user_manager.cc ('k') | components/user_manager/user.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/user_manager/user.h
diff --git a/components/user_manager/user.h b/components/user_manager/user.h
index 20befa1eb9ef31f293b0ba54fb42b9c3974875de..9a6acbcd7896c04c3c3ebbf19e1e37f0598d4f35 100644
--- a/components/user_manager/user.h
+++ b/components/user_manager/user.h
@@ -83,6 +83,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;
@@ -112,6 +115,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 IsDeviceLocalAccount() const;
+
// The email the user used to log in.
// TODO(alemate): rename this to GetUserEmail() (see crbug.com/548923)
const std::string& email() const;
@@ -194,9 +200,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.
« no previous file with comments | « components/user_manager/fake_user_manager.cc ('k') | components/user_manager/user.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698