diff options
author | avi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-14 20:08:00 +0000 |
---|---|---|
committer | avi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-14 20:08:00 +0000 |
commit | 7bea1c588a1951e65f525cdab0e99c0839be691c (patch) | |
tree | 872e6a34522220a976c15b45759e665137deb5d1 /chrome/browser/download/save_package.cc | |
parent | 106c901495fac4d0a09656144e37c6c5abe7a6e0 (diff) | |
download | chromium_src-7bea1c588a1951e65f525cdab0e99c0839be691c.zip chromium_src-7bea1c588a1951e65f525cdab0e99c0839be691c.tar.gz chromium_src-7bea1c588a1951e65f525cdab0e99c0839be691c.tar.bz2 |
Add a Cocoa file picker.
Review URL: http://codereview.chromium.org/73044
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13695 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/download/save_package.cc')
-rw-r--r-- | chrome/browser/download/save_package.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/chrome/browser/download/save_package.cc b/chrome/browser/download/save_package.cc index 01a1b26..0c40a82 100644 --- a/chrome/browser/download/save_package.cc +++ b/chrome/browser/download/save_package.cc @@ -1025,7 +1025,6 @@ void SavePackage::GetSaveInfo() { file_type_index = 1; } -#if defined(OS_LINUX) || defined(OS_WIN) if (g_should_prompt_for_filename) { if (!select_file_dialog_.get()) select_file_dialog_ = SelectFileDialog::Create(this); @@ -1038,9 +1037,7 @@ void SavePackage::GetSaveInfo() { platform_util::GetTopLevel( web_contents_->GetNativeView()), save_params); - } else -#endif // defined(OS_LINUX) || defined(OS_WIN) - { + } else { // Just use 'suggested_path' instead of opening the dialog prompt. ContinueSave(save_params, suggested_path, file_type_index); delete save_params; |