Index: content/browser/download/download_state_info.cc |
diff --git a/content/browser/download/download_state_info.cc b/content/browser/download/download_state_info.cc |
index c4c17879e15300a4078885fd49d6de6841ee839d..ef539082779a034192e61801d62842584d1015a5 100644 |
--- a/content/browser/download/download_state_info.cc |
+++ b/content/browser/download/download_state_info.cc |
@@ -12,7 +12,9 @@ DownloadStateInfo::DownloadStateInfo() |
transition_type(content::PAGE_TRANSITION_LINK), |
prompt_user_for_save_location(false), |
is_dangerous_file(false), |
- is_dangerous_url(false) { |
+ is_dangerous_url(false), |
+ is_dangerous_content(false), |
+ needs_quarantine_file(false) { |
} |
DownloadStateInfo::DownloadStateInfo( |
@@ -23,7 +25,9 @@ DownloadStateInfo::DownloadStateInfo( |
transition_type(content::PAGE_TRANSITION_LINK), |
prompt_user_for_save_location(prompt_user_for_save_location), |
is_dangerous_file(false), |
- is_dangerous_url(false) { |
+ is_dangerous_url(false), |
+ is_dangerous_content(false), |
+ needs_quarantine_file(false) { |
} |
DownloadStateInfo::DownloadStateInfo( |
@@ -34,7 +38,9 @@ DownloadStateInfo::DownloadStateInfo( |
bool prompt_user_for_save_location, |
int uniquifier, |
bool dangerous_file, |
- bool dangerous_url) |
+ bool dangerous_url, |
+ bool dangerous_content, |
+ bool needs_tmp_file) |
: target_name(target), |
path_uniquifier(uniquifier), |
has_user_gesture(has_user_gesture), |
@@ -42,9 +48,11 @@ DownloadStateInfo::DownloadStateInfo( |
prompt_user_for_save_location(prompt_user_for_save_location), |
is_dangerous_file(dangerous_file), |
is_dangerous_url(dangerous_url), |
+ is_dangerous_content(dangerous_content), |
+ needs_quarantine_file(needs_tmp_file), |
force_file_name(forced_name) { |
} |
bool DownloadStateInfo::IsDangerous() const { |
- return is_dangerous_url || is_dangerous_file; |
+ return is_dangerous_url || is_dangerous_file || is_dangerous_content; |
} |