Index: chrome/browser/chrome_browser_main_win.cc |
diff --git a/chrome/browser/chrome_browser_main_win.cc b/chrome/browser/chrome_browser_main_win.cc |
index 047530b0371bdcc4ed40446069360d6a84db5e84..8136fe1a70d47bae16b1efe5735a66df28bf4cb5 100644 |
--- a/chrome/browser/chrome_browser_main_win.cc |
+++ b/chrome/browser/chrome_browser_main_win.cc |
@@ -150,6 +150,11 @@ int DoUninstallTasks(bool chrome_still_running) { |
ChromeBrowserMainPartsWin::ChromeBrowserMainPartsWin( |
const content::MainFunctionParams& parameters) |
: ChromeBrowserMainParts(parameters) { |
+ if ((base::win::GetVersion() >= base::win::VERSION_WIN7) && |
+ (base::win::IsTouchEnabled())) { |
+ CommandLine::ForCurrentProcess()->AppendSwitch( |
+ switches::kEnableTouchEvents); |
+ } |
if (base::win::IsMetroProcess()) { |
typedef const wchar_t* (*GetMetroSwitches)(void); |
GetMetroSwitches metro_switches_proc = reinterpret_cast<GetMetroSwitches>( |