Chromium Code Reviews| Index: content/browser/ppapi_plugin_process_host.cc |
| diff --git a/content/browser/ppapi_plugin_process_host.cc b/content/browser/ppapi_plugin_process_host.cc |
| index 3dd06594bbe1f06a1058c4d81f114f2f87d301fb..794a5a108034f13d46a3dc8d49a14f746891e62d 100644 |
| --- a/content/browser/ppapi_plugin_process_host.cc |
| +++ b/content/browser/ppapi_plugin_process_host.cc |
| @@ -10,6 +10,7 @@ |
| #include "base/command_line.h" |
| #include "base/files/file_path.h" |
| #include "base/metrics/field_trial.h" |
| +#include "base/strings/string_number_conversions.h" |
|
palmer
2015/09/15 21:43:43
You don't use this.
forshaw
2015/09/16 12:46:57
Used for DoubleToString below.
|
| #include "base/strings/utf_string_conversions.h" |
| #include "content/browser/browser_child_process_host_impl.h" |
| #include "content/browser/plugin_service_impl.h" |
| @@ -33,6 +34,7 @@ |
| #include "content/common/sandbox_win.h" |
| #include "sandbox/win/src/process_mitigations.h" |
| #include "sandbox/win/src/sandbox_policy.h" |
| +#include "ui/gfx/win/dpi.h" |
| #endif |
| namespace content { |
| @@ -396,6 +398,11 @@ bool PpapiPluginProcessHost::Init(const PepperPluginInfo& info) { |
| cmd_line->AppendSwitchASCII(switches::kLang, locale); |
| } |
| +#if defined(OS_WIN) |
| + cmd_line->AppendSwitchASCII(switches::kDeviceScaleFactor, |
| + base::DoubleToString(gfx::GetDPIScale())); |
| +#endif |
| + |
| if (!plugin_launcher.empty()) |
| cmd_line->PrependWrapper(plugin_launcher); |