From 0beca2578b648fc8ab585c9cea26cf9941857271 Mon Sep 17 00:00:00 2001 From: "shrikant@chromium.org" Date: Fri, 11 Jul 2014 21:46:48 +0000 Subject: Removing enable/disable of HiDPI from delegate execute. As of current code, HiDPI should be enabled by default for both Desktop and Metro mode unless someone overrides with registry key. BUG=393050 R=cpu,ananta Review URL: https://codereview.chromium.org/385023002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282706 0039d316-1c4b-4281-b951-d872f2087c98 --- win8/delegate_execute/command_execute_impl.cc | 10 ---------- win8/delegate_execute/command_execute_impl.h | 2 -- 2 files changed, 12 deletions(-) (limited to 'win8') 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. -- cgit v1.1