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

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: 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
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 c76c358083c22d1361b6a5de0106900036d48a03..73c7e9fe5f761435a50643c9b492a92e1bcda41b 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());
@@ -1141,7 +1141,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,

Powered by Google App Engine
This is Rietveld 408576698