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

Unified Diff: chrome/browser/file_select_helper.cc

Issue 10697010: Make saving files from flash less annoying. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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/file_select_helper.cc
===================================================================
--- chrome/browser/file_select_helper.cc (revision 151539)
+++ chrome/browser/file_select_helper.cc (working copy)
@@ -401,10 +401,11 @@
dialog_type_ = ui::SelectFileDialog::SELECT_OPEN_FILE;
NOTREACHED();
}
- FilePath default_file_name = params.default_file_name;
- if (default_file_name.empty())
- default_file_name = profile_->last_selected_directory();
+ FilePath default_file_name = params.default_file_name.IsAbsolute() ?
+ params.default_file_name :
+ profile_->last_selected_directory().Append(params.default_file_name);
+
gfx::NativeWindow owning_window =
platform_util::GetTopLevel(render_view_host_->GetView()->GetNativeView());
« no previous file with comments | « no previous file | ui/base/dialogs/gtk/select_file_dialog_impl_gtk.cc » ('j') | ui/base/dialogs/select_file_dialog_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698