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

Unified Diff: chrome/browser/renderer_host/resource_dispatcher_host_request_info.cc

Issue 1403001: Modifying the "dangerous download" algorithm. (Closed)
Patch Set: Adding .sys and .drv as Dangerous extensions Created 10 years 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/renderer_host/resource_dispatcher_host_request_info.cc
diff --git a/chrome/browser/renderer_host/resource_dispatcher_host_request_info.cc b/chrome/browser/renderer_host/resource_dispatcher_host_request_info.cc
index bf936c31b6683c14036e44fa06c7c06f8e5068bb..65f89cb26178836fbf31a9fba9d03986cb5c13ab 100644
--- a/chrome/browser/renderer_host/resource_dispatcher_host_request_info.cc
+++ b/chrome/browser/renderer_host/resource_dispatcher_host_request_info.cc
@@ -21,6 +21,7 @@ ResourceDispatcherHostRequestInfo::ResourceDispatcherHostRequestInfo(
uint64 upload_size,
bool is_download,
bool allow_download,
+ bool has_user_gesture,
int host_renderer_id,
int host_render_view_id)
: resource_handler_(handler),
@@ -32,6 +33,7 @@ ResourceDispatcherHostRequestInfo::ResourceDispatcherHostRequestInfo(
pending_data_count_(0),
is_download_(is_download),
allow_download_(allow_download),
+ has_user_gesture_(has_user_gesture),
pause_count_(0),
frame_origin_(frame_origin),
main_frame_origin_(main_frame_origin),

Powered by Google App Engine
This is Rietveld 408576698