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

Unified Diff: chrome/browser/history/download_create_info.cc

Issue 1403001: Modifying the "dangerous download" algorithm. (Closed)
Patch Set: Moving extension methods out of download_util.h Created 10 years, 1 month 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/history/download_create_info.cc
diff --git a/chrome/browser/history/download_create_info.cc b/chrome/browser/history/download_create_info.cc
index 955caede2239de99806f124d43e8b5790c45bec8..1eaaf66f19cbada8314ea91a865ea9751d2a2563 100644
--- a/chrome/browser/history/download_create_info.cc
+++ b/chrome/browser/history/download_create_info.cc
@@ -10,7 +10,8 @@ DownloadCreateInfo::DownloadCreateInfo(const FilePath& path,
int64 received_bytes,
int64 total_bytes,
int32 state,
- int32 download_id)
+ int32 download_id,
+ bool has_user_gesture)
: path(path),
url(url),
path_uniquifier(0),
@@ -19,6 +20,7 @@ DownloadCreateInfo::DownloadCreateInfo(const FilePath& path,
total_bytes(total_bytes),
state(state),
download_id(download_id),
+ has_user_gesture(has_user_gesture),
child_id(-1),
render_view_id(-1),
request_id(-1),
@@ -34,6 +36,7 @@ DownloadCreateInfo::DownloadCreateInfo()
total_bytes(0),
state(-1),
download_id(-1),
+ has_user_gesture(has_user_gesture),
child_id(-1),
render_view_id(-1),
request_id(-1),

Powered by Google App Engine
This is Rietveld 408576698