| Index: chrome/browser/ui/webui/components_ui.cc
|
| diff --git a/chrome/browser/ui/webui/components_ui.cc b/chrome/browser/ui/webui/components_ui.cc
|
| index cbd4e2f2d0f96ee0eba66dd0b5ed2ee32393a184..e5cce27f49a3874dd03e8144820f3d736545d4e2 100644
|
| --- a/chrome/browser/ui/webui/components_ui.cc
|
| +++ b/chrome/browser/ui/webui/components_ui.cc
|
| @@ -32,7 +32,7 @@ using content::WebUIMessageHandler;
|
|
|
| namespace {
|
|
|
| -content::WebUIDataSource* CreateComponentsUIHTMLSource() {
|
| +content::WebUIDataSource* CreateComponentsUIHTMLSource(Profile* profile) {
|
| content::WebUIDataSource* source =
|
| content::WebUIDataSource::Create(chrome::kChromeUIComponentsHost);
|
| source->SetUseJsonJSFormatV2();
|
| @@ -48,7 +48,7 @@ content::WebUIDataSource* CreateComponentsUIHTMLSource() {
|
| source->AddResourcePath("components.js", IDR_COMPONENTS_JS);
|
| source->SetDefaultResource(IDR_COMPONENTS_HTML);
|
| #if defined(OS_CHROMEOS)
|
| - chromeos::AddAccountUITweaksLocalizedValues(source);
|
| + chromeos::AddAccountUITweaksLocalizedValues(source, profile);
|
| #endif
|
| return source;
|
| }
|
| @@ -156,7 +156,7 @@ ComponentsUI::ComponentsUI(content::WebUI* web_ui) : WebUIController(web_ui) {
|
|
|
| // Set up the chrome://components/ source.
|
| Profile* profile = Profile::FromWebUI(web_ui);
|
| - content::WebUIDataSource::Add(profile, CreateComponentsUIHTMLSource());
|
| + content::WebUIDataSource::Add(profile, CreateComponentsUIHTMLSource(profile));
|
| }
|
|
|
| // static
|
|
|