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

Unified Diff: content/ppapi_plugin/ppapi_thread.cc

Issue 10541088: Propogate the UI language on the command line and expose to Flash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 | « content/ppapi_plugin/ppapi_thread.h ('k') | ppapi/api/private/ppb_flash.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/ppapi_plugin/ppapi_thread.cc
diff --git a/content/ppapi_plugin/ppapi_thread.cc b/content/ppapi_plugin/ppapi_thread.cc
index e5ae2106e417dd2060eb9c069f5f2d81391f3cdb..e1065718a18a57d82d8339c93b82515c57de2ca6 100644
--- a/content/ppapi_plugin/ppapi_thread.cc
+++ b/content/ppapi_plugin/ppapi_thread.cc
@@ -28,6 +28,7 @@
#include "ppapi/proxy/ppapi_messages.h"
#include "ppapi/proxy/interface_list.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h"
+#include "ui/base/ui_base_switches.h"
#include "webkit/plugins/plugin_switches.h"
#if defined(OS_WIN)
@@ -161,6 +162,11 @@ bool PpapiThread::SendToBrowser(IPC::Message* msg) {
return sync_message_filter()->Send(msg);
}
+std::string PpapiThread::GetUILanguage() {
+ CommandLine* command_line = CommandLine::ForCurrentProcess();
+ return command_line->GetSwitchValueASCII(switches::kLang);
+}
+
void PpapiThread::PreCacheFont(const void* logfontw) {
#if defined(OS_WIN)
Send(new ChildProcessHostMsg_PreCacheFont(
« no previous file with comments | « content/ppapi_plugin/ppapi_thread.h ('k') | ppapi/api/private/ppb_flash.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698