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

Unified Diff: chrome/browser/external_protocol/external_protocol_observer.cc

Issue 1748553002: Replace MouseWheel events with GestureScrollBegin in WebContentsObserver::DidGetUserInteraction (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-didgetusergesture
Patch Set: Addressing reviewer comments Created 4 years, 10 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
Index: chrome/browser/external_protocol/external_protocol_observer.cc
diff --git a/chrome/browser/external_protocol/external_protocol_observer.cc b/chrome/browser/external_protocol/external_protocol_observer.cc
index ec6650322db18df34edf6252f4a4f4d5a37a52f5..d6ac7a8a16e6bde3285e6ba3b18e7982f3030598 100644
--- a/chrome/browser/external_protocol/external_protocol_observer.cc
+++ b/chrome/browser/external_protocol/external_protocol_observer.cc
@@ -20,6 +20,6 @@ ExternalProtocolObserver::~ExternalProtocolObserver() {
void ExternalProtocolObserver::DidGetUserInteraction(
const blink::WebInputEvent::Type type) {
// Ignore scroll events for allowing external protocol launch.
- if (type != blink::WebInputEvent::MouseWheel)
+ if (type != blink::WebInputEvent::GestureScrollBegin)
ExternalProtocolHandler::PermitLaunchUrl();
}

Powered by Google App Engine
This is Rietveld 408576698