X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fchrome%2Fbrowser%2Fui%2Fwebui%2Fcomponents_ui.cc;h=e5cce27f49a3874dd03e8144820f3d736545d4e2;hb=ff3e2503a20db9193d323c1d19c38c68004dec4a;hp=cbd4e2f2d0f96ee0eba66dd0b5ed2ee32393a184;hpb=7338fba38ba696536d1cc9d389afd716a6ab2fe6;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/chrome/browser/ui/webui/components_ui.cc b/src/chrome/browser/ui/webui/components_ui.cc index cbd4e2f..e5cce27 100644 --- a/src/chrome/browser/ui/webui/components_ui.cc +++ b/src/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