Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(978)

Unified Diff: win8/delegate_execute/command_execute_impl.cc

Issue 385023002: Removing enable/disable of HiDPI from delegate execute. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « win8/delegate_execute/command_execute_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: win8/delegate_execute/command_execute_impl.cc
diff --git a/win8/delegate_execute/command_execute_impl.cc b/win8/delegate_execute/command_execute_impl.cc
index a1208281f0466aa8258b0772ecdf410d95815acc..f6ce0f110b7701f454db057336db21a5815e50c8 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));
« no previous file with comments | « win8/delegate_execute/command_execute_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698