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

Unified Diff: content/browser/download/download_create_info.cc

Issue 7624031: Treat files downloaded from the address bar as "always safe" (including extensions per discussion... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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
« no previous file with comments | « content/browser/download/download_create_info.h ('k') | content/browser/download/download_item.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/download_create_info.cc
===================================================================
--- content/browser/download/download_create_info.cc (revision 98485)
+++ content/browser/download/download_create_info.cc (working copy)
@@ -16,7 +16,8 @@
int64 total_bytes,
int32 state,
int32 download_id,
- bool has_user_gesture)
+ bool has_user_gesture,
+ PageTransition::Type transition_type)
: path(path),
url_chain(1, url),
path_uniquifier(0),
@@ -26,6 +27,7 @@
state(state),
download_id(download_id),
has_user_gesture(has_user_gesture),
+ transition_type(transition_type),
db_handle(0),
prompt_user_for_save_location(false) {
}
@@ -37,6 +39,7 @@
state(-1),
download_id(-1),
has_user_gesture(false),
+ transition_type(PageTransition::LINK),
db_handle(0),
prompt_user_for_save_location(false) {
}
« no previous file with comments | « content/browser/download/download_create_info.h ('k') | content/browser/download/download_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698