Chromium Code Reviews| 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. |