diff options
author | shrikant@chromium.org <shrikant@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-11 21:46:48 +0000 |
---|---|---|
committer | shrikant@chromium.org <shrikant@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-11 21:46:48 +0000 |
commit | 0beca2578b648fc8ab585c9cea26cf9941857271 (patch) | |
tree | e4af0154ae64b8a4a93057d7f65b661b9f2f72eb | |
parent | a1b74d504cc72efb0e843ec86dd5d66b3abac6c8 (diff) | |
download | chromium_src-0beca2578b648fc8ab585c9cea26cf9941857271.zip chromium_src-0beca2578b648fc8ab585c9cea26cf9941857271.tar.gz chromium_src-0beca2578b648fc8ab585c9cea26cf9941857271.tar.bz2 |
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
-rw-r--r-- | win8/delegate_execute/command_execute_impl.cc | 10 | ||||
-rw-r--r-- | win8/delegate_execute/command_execute_impl.h | 2 |
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. |