Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / ui / webui / options / chromeos / accounts_options_handler.cc
index 353c098..321e344 100644 (file)
@@ -32,7 +32,7 @@ namespace {
 // 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);
@@ -88,7 +88,8 @@ void AccountsOptionsHandler::GetLocalizedValues(
   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) {