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

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

Issue 5603008: Modify the "dangerous download" algorithm as follows. Original patch by Pier... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 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
===================================================================
--- chrome/browser/renderer_host/resource_dispatcher_host_request_info.cc (revision 68377)
+++ chrome/browser/renderer_host/resource_dispatcher_host_request_info.cc (working copy)
@@ -21,6 +21,7 @@
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 @@
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