Index: chrome/browser/extensions/extension_view_host.cc |
diff --git a/chrome/browser/extensions/extension_view_host.cc b/chrome/browser/extensions/extension_view_host.cc |
index 2a8b5b8a25d0886a88b4eade12e1103f124672ae..ae20256a3351642b08d8709f8f6617186452dcd6 100644 |
--- a/chrome/browser/extensions/extension_view_host.cc |
+++ b/chrome/browser/extensions/extension_view_host.cc |
@@ -208,9 +208,7 @@ bool ExtensionViewHost::PreHandleGestureEvent( |
content::WebContents* source, |
const blink::WebGestureEvent& event) { |
// Disable pinch zooming. |
- return event.GetType() == blink::WebGestureEvent::kGesturePinchBegin || |
- event.GetType() == blink::WebGestureEvent::kGesturePinchUpdate || |
- event.GetType() == blink::WebGestureEvent::kGesturePinchEnd; |
+ return blink::WebInputEvent::IsPinchGestureEventType(event.GetType()); |
} |
content::ColorChooser* ExtensionViewHost::OpenColorChooser( |