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( |