diff options
author | jeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-18 11:14:13 +0000 |
---|---|---|
committer | jeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-18 11:14:13 +0000 |
commit | e6875c1f87e04c966d490ba9bd04d267f3ebecbf (patch) | |
tree | e5ac735ea092c1deb8f67a10cb23214c8becc312 /chrome/browser/history | |
parent | 73f6547f0262578a96ab478c5d9e7f841e39d13e (diff) | |
download | chromium_src-e6875c1f87e04c966d490ba9bd04d267f3ebecbf.zip chromium_src-e6875c1f87e04c966d490ba9bd04d267f3ebecbf.tar.gz chromium_src-e6875c1f87e04c966d490ba9bd04d267f3ebecbf.tar.bz2 |
Recommit r52848 - Option-click to download should not display "Save As" UI.
Review URL: http://codereview.chromium.org/2825056
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52850 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/history')
-rw-r--r-- | chrome/browser/history/download_types.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/chrome/browser/history/download_types.h b/chrome/browser/history/download_types.h index 4db21e4..642ac5b 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. |