Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3982)

Unified Diff: chrome/renderer/chrome_content_renderer_client.cc

Issue 880313002: webui: add [lang] attribute to <html> element on all webui pages so (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cros Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/localized_error.cc ('k') | chrome/renderer/resources/error_app.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/chrome_content_renderer_client.cc
diff --git a/chrome/renderer/chrome_content_renderer_client.cc b/chrome/renderer/chrome_content_renderer_client.cc
index b09b82009051284f0807dc031997b1ade05edd1f..7bd91af0a1a404df35040994c63f545fbdd4a94d 100644
--- a/chrome/renderer/chrome_content_renderer_client.cc
+++ b/chrome/renderer/chrome_content_renderer_client.cc
@@ -326,7 +326,7 @@ void ChromeContentRendererClient::RenderThreadStarted() {
prerender_dispatcher_.reset(new prerender::PrerenderDispatcher());
#if defined(ENABLE_WEBRTC)
webrtc_logging_message_filter_ = new WebRtcLoggingMessageFilter(
- content::RenderThread::Get()->GetIOMessageLoopProxy());
+ RenderThread::Get()->GetIOMessageLoopProxy());
#endif
search_bouncer_.reset(new SearchBouncer());
@@ -347,7 +347,7 @@ void ChromeContentRendererClient::RenderThreadStarted() {
#endif
#if defined(ENABLE_EXTENSIONS)
thread->AddFilter(new CastIPCDispatcher(
- content::RenderThread::Get()->GetIOMessageLoopProxy()));
+ RenderThread::Get()->GetIOMessageLoopProxy()));
#endif
thread->RegisterExtension(extensions_v8::ExternalExtension::Get());
@@ -1142,7 +1142,8 @@ void ChromeContentRendererClient::GetNavigationErrorStrings(
NOTREACHED() << "unable to load template. ID: " << resource_id;
} else {
base::DictionaryValue error_strings;
- LocalizedError::GetAppErrorStrings(failed_url, extension,
+ const std::string locale = RenderThread::Get()->GetLocale();
+ LocalizedError::GetAppErrorStrings(failed_url, extension, locale,
&error_strings);
// "t" is the id of the template's root node.
*error_html = webui::GetTemplatesHtml(template_html, &error_strings,
« no previous file with comments | « chrome/common/localized_error.cc ('k') | chrome/renderer/resources/error_app.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698