| Index: chrome/browser/ui/webui/options/chromeos/accounts_options_handler.h
|
| diff --git a/chrome/browser/ui/webui/options/chromeos/accounts_options_handler.h b/chrome/browser/ui/webui/options/chromeos/accounts_options_handler.h
|
| index 31ee9f07903f68b900753ca6fcd763b53fb8c3bc..3b6fe344771b47f5e09c86b1a971dfcb96e5905a 100644
|
| --- a/chrome/browser/ui/webui/options/chromeos/accounts_options_handler.h
|
| +++ b/chrome/browser/ui/webui/options/chromeos/accounts_options_handler.h
|
| @@ -26,13 +26,22 @@ class AccountsOptionsHandler : public OptionsPageUIHandler {
|
| virtual void GetLocalizedValues(
|
| base::DictionaryValue* localized_strings) OVERRIDE;
|
|
|
| + // Creates a user info dictionary to be stored in the |ListValue| that is
|
| + // passed to Javascript for the |kAccountsPrefUsers| preference.
|
| + static base::DictionaryValue* CreateUserInfo(const std::string& username,
|
| + const std::string& display_email,
|
| + const std::string& display_name);
|
| +
|
| private:
|
| // Javascript callbacks to whitelist/unwhitelist user.
|
| - void WhitelistUser(const base::ListValue* args);
|
| - void UnwhitelistUser(const base::ListValue* args);
|
| + void HandleWhitelistUser(const base::ListValue* args);
|
| + void HandleUnwhitelistUser(const base::ListValue* args);
|
|
|
| // Javascript callback to auto add existing users to white list.
|
| - void WhitelistExistingUsers(const base::ListValue* args);
|
| + void HandleWhitelistExistingUsers(const base::ListValue* args);
|
| +
|
| + // Returns true if |username| is the logged-in owner.
|
| + static bool IsLoggedInOwner(const std::string& username);
|
|
|
| DISALLOW_COPY_AND_ASSIGN(AccountsOptionsHandler);
|
| };
|
|
|