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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 148083009: Enable pinch-to-zoom on Windows 8 by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 11 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 | « no previous file | content/browser/frame_host/render_widget_host_view_guest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 9eba10011c861162cdcc9ce5000ee3e6f5d14664..dafa082439bee5ed6bc898d8e9b66b839e220e0b 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -151,6 +151,7 @@
#include "webkit/common/webpreferences.h"
#if defined(OS_WIN)
+#include "base/win/windows_version.h"
#include "chrome/browser/chrome_browser_main_win.h"
#include "sandbox/win/src/sandbox_policy.h"
#elif defined(OS_MACOSX)
@@ -1449,6 +1450,11 @@ void ChromeContentBrowserClient::AppendExtraCommandLineSwitches(
chromeos::switches::kLoginProfile, login_profile);
#endif
+#if defined(OS_WIN)
+ if (base::win::GetVersion() >= base::win::VERSION_WIN8)
+ command_line->AppendSwitch(switches::kEnablePinch);
+#endif
+
#if defined(ENABLE_WEBRTC)
if (VersionInfo::GetChannel() <= VersionInfo::CHANNEL_DEV) {
static const char* const kWebRtcDevSwitchNames[] = {
« no previous file with comments | « no previous file | content/browser/frame_host/render_widget_host_view_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698