summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/file_manager/url_util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/chromeos/file_manager/url_util.cc')
-rw-r--r--chrome/browser/chromeos/file_manager/url_util.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/browser/chromeos/file_manager/url_util.cc b/chrome/browser/chromeos/file_manager/url_util.cc
index 670a818..b670c96 100644
--- a/chrome/browser/chromeos/file_manager/url_util.cc
+++ b/chrome/browser/chromeos/file_manager/url_util.cc
@@ -67,14 +67,18 @@ GURL GetFileManagerMainPageUrl() {
GURL GetFileManagerMainPageUrlWithParams(
ui::SelectFileDialog::Type type,
const base::string16& title,
- const base::FilePath& default_virtual_path,
+ const base::FilePath& current_directory_virtual_path,
+ const base::FilePath& selection_virtual_path,
const ui::SelectFileDialog::FileTypeInfo* file_types,
int file_type_index,
const base::FilePath::StringType& default_extension) {
base::DictionaryValue arg_value;
arg_value.SetString("type", GetDialogTypeAsString(type));
arg_value.SetString("title", title);
- arg_value.SetString("defaultPath", default_virtual_path.value());
+ arg_value.SetString(
+ "currentDirectoryPath", current_directory_virtual_path.value());
+ arg_value.SetString("selectionPath", selection_virtual_path.value());
+ arg_value.SetString("targetName", selection_virtual_path.BaseName().value());
arg_value.SetString("defaultExtension", default_extension);
if (file_types) {