// in the whitelist.
bool WhitelistUser(const std::string& username) {
CrosSettings* cros_settings = CrosSettings::Get();
- if (cros_settings->FindEmailInList(kAccountsPrefUsers, username))
+ if (cros_settings->FindEmailInList(kAccountsPrefUsers, username, NULL))
return false;
base::StringValue username_value(username);
cros_settings->AppendToList(kAccountsPrefUsers, &username_value);
localized_strings->SetBoolean("whitelist_is_managed",
connector->IsEnterpriseManaged());
- AddAccountUITweaksLocalizedValues(localized_strings);
+ AddAccountUITweaksLocalizedValues(localized_strings,
+ Profile::FromWebUI(web_ui()));
}
void AccountsOptionsHandler::HandleWhitelistUser(const base::ListValue* args) {