| Index: chrome/browser/ui/webui/plugins_ui.cc
|
| diff --git a/chrome/browser/ui/webui/plugins_ui.cc b/chrome/browser/ui/webui/plugins_ui.cc
|
| index 635ca3e5207175ac0413a5a66c8e159a6c273bdb..dd38da0bb7b38d706429cb005eb8759ac75f0df7 100644
|
| --- a/chrome/browser/ui/webui/plugins_ui.cc
|
| +++ b/chrome/browser/ui/webui/plugins_ui.cc
|
| @@ -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
|
|
|