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

Unified Diff: content/browser/download/download_state_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
Index: content/browser/download/download_state_info.cc
===================================================================
--- content/browser/download/download_state_info.cc (revision 97032)
+++ content/browser/download/download_state_info.cc (working copy)
@@ -9,6 +9,7 @@
DownloadStateInfo::DownloadStateInfo()
: path_uniquifier(0),
has_user_gesture(false),
+ transition_type(PageTransition::LINK),
prompt_user_for_save_location(false),
is_dangerous_file(false),
is_dangerous_url(false),
@@ -20,6 +21,7 @@
bool prompt_user_for_save_location)
: path_uniquifier(0),
has_user_gesture(has_user_gesture),
+ transition_type(PageTransition::LINK),
prompt_user_for_save_location(prompt_user_for_save_location),
is_dangerous_file(false),
is_dangerous_url(false),
@@ -30,6 +32,7 @@
const FilePath& target,
const FilePath& forced_name,
bool has_user_gesture,
+ PageTransition::Type transition_type,
bool prompt_user_for_save_location,
int uniquifier,
bool dangerous_file,
@@ -38,6 +41,7 @@
: target_name(target),
path_uniquifier(uniquifier),
has_user_gesture(has_user_gesture),
+ transition_type(transition_type),
prompt_user_for_save_location(prompt_user_for_save_location),
is_dangerous_file(dangerous_file),
is_dangerous_url(dangerous_url),

Powered by Google App Engine
This is Rietveld 408576698