summaryrefslogtreecommitdiffstats
path: root/win8
diff options
context:
space:
mode:
Diffstat (limited to 'win8')
-rw-r--r--win8/delegate_execute/command_execute_impl.cc10
-rw-r--r--win8/delegate_execute/command_execute_impl.h2
2 files changed, 0 insertions, 12 deletions
diff --git a/win8/delegate_execute/command_execute_impl.cc b/win8/delegate_execute/command_execute_impl.cc
index a120828..f6ce0f1 100644
--- a/win8/delegate_execute/command_execute_impl.cc
+++ b/win8/delegate_execute/command_execute_impl.cc
@@ -208,13 +208,6 @@ STDMETHODIMP CommandExecuteImpl::SetDirectory(LPCWSTR directory) {
return S_OK;
}
-void CommandExecuteImpl::SetHighDPIRegistryKey(bool enable) {
- uint32 key_value = enable ? 1 : 2;
- base::win::RegKey high_dpi_key(HKEY_CURRENT_USER);
- high_dpi_key.CreateKey(gfx::win::kRegistryProfilePath, KEY_SET_VALUE);
- high_dpi_key.WriteValue(gfx::win::kHighDPISupportW, key_value);
-}
-
STDMETHODIMP CommandExecuteImpl::GetValue(enum AHE_TYPE* pahe) {
if (!GetLaunchScheme(&display_name_, &launch_scheme_)) {
AtlTrace("Failed to get scheme, E_FAIL\n");
@@ -231,7 +224,6 @@ STDMETHODIMP CommandExecuteImpl::GetValue(enum AHE_TYPE* pahe) {
// the browser process as well, it will appear laggy while they connect to
// each other, so we pre-launch the browser process now.
if (*pahe == AHE_IMMERSIVE && verb_ != win8::kMetroViewerConnectVerb) {
- SetHighDPIRegistryKey(true);
LaunchChromeBrowserProcess();
}
return S_OK;
@@ -398,8 +390,6 @@ HRESULT CommandExecuteImpl::LaunchDesktopChrome() {
break;
}
- SetHighDPIRegistryKey(false);
-
CommandLine chrome(
delegate_execute::MakeChromeCommandLine(chrome_exe_, parameters_,
display_name));
diff --git a/win8/delegate_execute/command_execute_impl.h b/win8/delegate_execute/command_execute_impl.h
index 20b5779..72e1085 100644
--- a/win8/delegate_execute/command_execute_impl.h
+++ b/win8/delegate_execute/command_execute_impl.h
@@ -88,8 +88,6 @@ class ATL_NO_VTABLE DECLSPEC_UUID("071BB5F2-85A4-424F-BFE7-5F1609BE4C2C")
static bool path_provider_initialized_;
- void SetHighDPIRegistryKey(bool enable);
-
bool GetLaunchScheme(base::string16* display_name, INTERNET_SCHEME* scheme);
HRESULT LaunchDesktopChrome();
// Returns the launch mode, i.e. desktop launch/metro launch, etc.