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

Unified Diff: chrome/browser/download/download_request_limiter.h

Issue 1701593002: Replace DidGetUserGesture with DidGetUserInteraction in the download request limiter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@download-request-limiter
Patch Set: Fix comment 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/download/download_request_limiter.h
diff --git a/chrome/browser/download/download_request_limiter.h b/chrome/browser/download/download_request_limiter.h
index d621851f77010bfa7598e8faff9612af97fba72c..caae103f9bc01e355416227d6a128dfa951a8030 100644
--- a/chrome/browser/download/download_request_limiter.h
+++ b/chrome/browser/download/download_request_limiter.h
@@ -109,9 +109,9 @@ class DownloadRequestLimiter
void DidNavigateMainFrame(
const content::LoadCommittedDetails& details,
const content::FrameNavigateParams& params) override;
- // Invoked when a user gesture occurs (mouse click, enter or space). This
- // may result in invoking Remove on DownloadRequestLimiter.
- void DidGetUserGesture() override;
+ // Invoked when a user gesture occurs (mouse click, mouse scroll, tap, or
+ // key down). This may result in invoking Remove on DownloadRequestLimiter.
+ void DidGetUserInteraction(const blink::WebInputEvent::Type type) override;
void WebContentsDestroyed() override;
// Asks the user if they really want to allow the download.

Powered by Google App Engine
This is Rietveld 408576698