summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chrome_browser_main_win.cc
diff options
context:
space:
mode:
authorananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-19 00:03:08 +0000
committerananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-19 00:03:08 +0000
commit26af27ce9821548ca25c5c52437dc2a6121fcc4a (patch)
treea64ab85ab56d4905dfa764c9361342fd2471d418 /chrome/browser/chrome_browser_main_win.cc
parent10f0ec5bda8cd2170cf76c47a0e207c5d3cd8cbc (diff)
downloadchromium_src-26af27ce9821548ca25c5c52437dc2a6121fcc4a.zip
chromium_src-26af27ce9821548ca25c5c52437dc2a6121fcc4a.tar.gz
chromium_src-26af27ce9821548ca25c5c52437dc2a6121fcc4a.tar.bz2
Adding --enable-touch-events to the browser command line for Windows 8 and up. This will
be taken out once the touch events feature stabilizes. BUG=none R=cpu Review URL: https://chromiumcodereview.appspot.com/10583007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142868 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chrome_browser_main_win.cc')
-rw-r--r--chrome/browser/chrome_browser_main_win.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/chrome_browser_main_win.cc b/chrome/browser/chrome_browser_main_win.cc
index 07aabe5..1166ee1 100644
--- a/chrome/browser/chrome_browser_main_win.cc
+++ b/chrome/browser/chrome_browser_main_win.cc
@@ -162,6 +162,10 @@ int DoUninstallTasks(bool chrome_still_running) {
ChromeBrowserMainPartsWin::ChromeBrowserMainPartsWin(
const content::MainFunctionParams& parameters)
: ChromeBrowserMainParts(parameters) {
+ if (base::win::GetVersion() >= base::win::VERSION_WIN8) {
+ CommandLine::ForCurrentProcess()->AppendSwitch(
+ switches::kEnableTouchEvents);
+ }
}
ChromeBrowserMainPartsWin::~ChromeBrowserMainPartsWin() {