Don't default to "Open", "Save", just let OS decide
This commit is contained in:
parent
40c531737d
commit
84cce6c2c1
4 changed files with 9 additions and 13 deletions
|
@ -84,7 +84,7 @@ void WebDialogHelper::RunFileChooser(content::WebContents* web_contents,
|
|||
base::FilePath path;
|
||||
if (file_dialog::ShowSaveDialog(window_,
|
||||
base::UTF16ToUTF8(params.title),
|
||||
"Save",
|
||||
"",
|
||||
params.default_file_name,
|
||||
filters,
|
||||
&path)) {
|
||||
|
@ -115,7 +115,7 @@ void WebDialogHelper::RunFileChooser(content::WebContents* web_contents,
|
|||
prefs::kSelectFileLastDirectory).Append(params.default_file_name);
|
||||
if (file_dialog::ShowOpenDialog(window_,
|
||||
base::UTF16ToUTF8(params.title),
|
||||
"Open",
|
||||
"",
|
||||
default_file_path,
|
||||
filters,
|
||||
flags,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue