Index: webkit/plugins/ppapi/host_globals.cc |
diff --git a/webkit/plugins/ppapi/host_globals.cc b/webkit/plugins/ppapi/host_globals.cc |
index d2c25161830fd045074233fabb451da18c19f222..e7ebc4dfd96826155e4c2b4cb3e0103c62e5557f 100644 |
--- a/webkit/plugins/ppapi/host_globals.cc |
+++ b/webkit/plugins/ppapi/host_globals.cc |
@@ -6,6 +6,7 @@ |
#include <limits> |
+#include "base/command_line.h" |
#include "base/logging.h" |
#include "base/rand_util.h" |
#include "base/utf_string_conversions.h" |
@@ -18,6 +19,7 @@ |
#include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" |
#include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
#include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginContainer.h" |
+#include "webkit/plugins/plugin_switches.h" |
#include "webkit/plugins/ppapi/plugin_module.h" |
#include "webkit/plugins/ppapi/ppapi_plugin_instance.h" |
#include "webkit/plugins/ppapi/ppb_flash_clipboard_impl.h" |
@@ -163,6 +165,15 @@ PP_Module HostGlobals::GetModuleForInstance(PP_Instance instance) { |
return inst->module()->pp_module(); |
} |
+std::string HostGlobals::GetCmdLine() { |
+ return CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
+ switches::kPpapiFlashArgs); |
+} |
+ |
+void HostGlobals::PreCacheFontForFlash(const void* logfontw) { |
+ // Not implemented in-process. |
+} |
+ |
base::Lock* HostGlobals::GetProxyLock() { |
// We do not lock on the host side. |
return NULL; |