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

Unified Diff: chrome/browser/plugins/flash_download_interception.cc

Issue 2524763002: make NavigationGesture part of public content API and use it outside content (Closed)
Patch Set: Created 4 years, 1 month 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/plugins/flash_download_interception.cc
diff --git a/chrome/browser/plugins/flash_download_interception.cc b/chrome/browser/plugins/flash_download_interception.cc
index c3181421e70f6611dbd2e06592d729eb5f223d46..3ec89f7246bff7b50d489b6ec11e23312f8cb182 100644
--- a/chrome/browser/plugins/flash_download_interception.cc
+++ b/chrome/browser/plugins/flash_download_interception.cc
@@ -135,9 +135,9 @@ FlashDownloadInterception::MaybeCreateThrottleFor(NavigationHandle* handle) {
handle->GetWebContents()->GetBrowserContext());
HostContentSettingsMap* host_content_settings_map =
HostContentSettingsMapFactory::GetForProfile(profile);
- if (!ShouldStopFlashDownloadAction(host_content_settings_map, source_url,
- handle->GetURL(),
- handle->HasUserGesture())) {
+ if (!ShouldStopFlashDownloadAction(
+ host_content_settings_map, source_url, handle->GetURL(),
+ handle->GetNavigationGesture() == content::NavigationGestureUser)) {
return nullptr;
}
« no previous file with comments | « chrome/browser/page_load_metrics/page_load_tracker.cc ('k') | chrome/browser/plugins/flash_download_interception_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698