Commit 0beca257 authored by shrikant@chromium.org's avatar shrikant@chromium.org

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
parent a1b74d50
......@@ -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));
......
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment