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

Unified Diff: chrome/browser/history/download_types.h

Issue 2927006: Option-click to download should not display "Save As" UI. (Closed)
Patch Set: Created 10 years, 5 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: chrome/browser/history/download_types.h
diff --git a/chrome/browser/history/download_types.h b/chrome/browser/history/download_types.h
index 4db21e4104330d2da9d5f80726701b5cd481f579..642ac5bd7d5bbc6405ba1d857f0918381257051a 100644
--- a/chrome/browser/history/download_types.h
+++ b/chrome/browser/history/download_types.h
@@ -39,7 +39,7 @@ struct DownloadCreateInfo {
render_view_id(-1),
request_id(-1),
db_handle(0),
- save_as(false),
+ prompt_user_for_save_location(false),
is_dangerous(false),
is_extension_install(false) {
}
@@ -54,7 +54,7 @@ struct DownloadCreateInfo {
render_view_id(-1),
request_id(-1),
db_handle(0),
- save_as(false),
+ prompt_user_for_save_location(false),
is_dangerous(false),
is_extension_install(false) {
}
@@ -82,7 +82,12 @@ struct DownloadCreateInfo {
// may be different from |mime_type|, which may be set based on heuristics
// which may look at the file extension and first few bytes of the file.
std::string original_mime_type;
- bool save_as;
+
+ // True if we should display the 'save as...' UI and prompt the user
+ // for the download location.
+ // False if the UI should be supressed and the download performed to the
+ // default location.
+ bool prompt_user_for_save_location;
// Whether this download is potentially dangerous (ex: exe, dll, ...).
bool is_dangerous;
// The original name for a dangerous download.

Powered by Google App Engine
This is Rietveld 408576698