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

Unified Diff: ui/base/dialogs/select_file_dialog.cc

Issue 10804026: Fix open dialog not remembering last opened folder on drive (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 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
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | ui/base/dialogs/selected_file_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/dialogs/select_file_dialog.cc
diff --git a/ui/base/dialogs/select_file_dialog.cc b/ui/base/dialogs/select_file_dialog.cc
index 190858edae7cb2715d7dc2735e6c8a245a97a0df..b35d0be8f1e7e335b17699a8fe616dc8fc9f7ba8 100644
--- a/ui/base/dialogs/select_file_dialog.cc
+++ b/ui/base/dialogs/select_file_dialog.cc
@@ -38,7 +38,8 @@ void SelectFileDialog::Listener::FileSelectedWithExtraInfo(
const ui::SelectedFileInfo& file,
int index,
void* params) {
- FileSelected(file.path, index, params);
+ // Most of the dialogs need actual local path, so default to it.
+ FileSelected(file.local_path, index, params);
}
void SelectFileDialog::Listener::MultiFilesSelectedWithExtraInfo(
@@ -46,7 +47,7 @@ void SelectFileDialog::Listener::MultiFilesSelectedWithExtraInfo(
void* params) {
std::vector<FilePath> file_paths;
for (size_t i = 0; i < files.size(); ++i)
- file_paths.push_back(files[i].path);
+ file_paths.push_back(files[i].local_path);
MultiFilesSelected(file_paths, params);
}
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | ui/base/dialogs/selected_file_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698