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

Unified Diff: chrome/browser/renderer_host/resource_dispatcher_host.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.cc
===================================================================
--- chrome/browser/renderer_host/resource_dispatcher_host.cc (revision 68377)
+++ chrome/browser/renderer_host/resource_dispatcher_host.cc (working copy)
@@ -519,6 +519,7 @@
upload_size,
false, // is download
ResourceType::IsFrame(request_data.resource_type), // allow_download
+ request_data.has_user_gesture,
request_data.host_renderer_id,
request_data.host_render_view_id);
ApplyExtensionLocalizationFilter(request_data.url, request_data.resource_type,
@@ -656,6 +657,7 @@
0, // upload_size
download, // is_download
download, // allow_download
+ false, // has_user_gesture
-1, // Host renderer id
-1); // Host render view id
}

Powered by Google App Engine
This is Rietveld 408576698