DCHECK(did_enable);
}
-content::WebUIDataSource* CreatePluginsUIHTMLSource() {
+content::WebUIDataSource* CreatePluginsUIHTMLSource(Profile* profile) {
content::WebUIDataSource* source =
content::WebUIDataSource::Create(chrome::kChromeUIPluginsHost);
source->SetUseJsonJSFormatV2();
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;
}
// Set up the chrome://plugins/ source.
Profile* profile = Profile::FromWebUI(web_ui);
- content::WebUIDataSource::Add(profile, CreatePluginsUIHTMLSource());
+ content::WebUIDataSource::Add(profile, CreatePluginsUIHTMLSource(profile));
}
// static