From 7bea1c588a1951e65f525cdab0e99c0839be691c Mon Sep 17 00:00:00 2001 From: "avi@google.com" Date: Tue, 14 Apr 2009 20:08:00 +0000 Subject: 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 --- chrome/browser/download/save_package.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'chrome/browser/download/save_package.cc') 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; -- cgit v1.1