Commit 99993e49 authored by dominikg@chromium.org's avatar dominikg@chromium.org

Telemetry: IsGestureSourceTypeSupported returns false for touch on Mac.

While 'gestureSourceTypeSupported' has not rolled into stable,
IsGestureSourceTypeSupported returns false for touch input when on Mac.

BUG=372714

Review URL: https://codereview.chromium.org/296113005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272328 0039d316-1c4b-4281-b951-d872f2087c98
parent 4542eefa
...@@ -56,7 +56,8 @@ class GestureAction(page_action.PageAction): ...@@ -56,7 +56,8 @@ class GestureAction(page_action.PageAction):
if tab.EvaluateJavaScript(""" if tab.EvaluateJavaScript("""
typeof chrome.gpuBenchmarking.gestureSourceTypeSupported === typeof chrome.gpuBenchmarking.gestureSourceTypeSupported ===
'undefined'"""): 'undefined'"""):
return True return (tab.browser.platform.GetOSName() != 'mac' or
gesture_source_type.lower() != 'touch')
return tab.EvaluateJavaScript(""" return tab.EvaluateJavaScript("""
chrome.gpuBenchmarking.gestureSourceTypeSupported( chrome.gpuBenchmarking.gestureSourceTypeSupported(
......
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