Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / ui / webui / plugins_ui.cc
index 635ca3e..dd38da0 100644 (file)
@@ -62,7 +62,7 @@ void AssertPluginEnabled(bool did_enable) {
   DCHECK(did_enable);
 }
 
-content::WebUIDataSource* CreatePluginsUIHTMLSource() {
+content::WebUIDataSource* CreatePluginsUIHTMLSource(Profile* profile) {
   content::WebUIDataSource* source =
       content::WebUIDataSource::Create(chrome::kChromeUIPluginsHost);
   source->SetUseJsonJSFormatV2();
@@ -101,7 +101,7 @@ content::WebUIDataSource* CreatePluginsUIHTMLSource() {
   source->AddResourcePath("plugins.js", IDR_PLUGINS_JS);
   source->SetDefaultResource(IDR_PLUGINS_HTML);
 #if defined(OS_CHROMEOS)
-  chromeos::AddAccountUITweaksLocalizedValues(source);
+  chromeos::AddAccountUITweaksLocalizedValues(source, profile);
 #endif
   return source;
 }
@@ -485,7 +485,7 @@ PluginsUI::PluginsUI(content::WebUI* web_ui) : WebUIController(web_ui) {
 
   // Set up the chrome://plugins/ source.
   Profile* profile = Profile::FromWebUI(web_ui);
-  content::WebUIDataSource::Add(profile, CreatePluginsUIHTMLSource());
+  content::WebUIDataSource::Add(profile, CreatePluginsUIHTMLSource(profile));
 }
 
 // static