| Index: chrome/browser/ui/views/shell_dialogs_win.cc
|
| diff --git a/chrome/browser/ui/views/shell_dialogs_win.cc b/chrome/browser/ui/views/shell_dialogs_win.cc
|
| index b643c3481ff744ec5c6204012100cb1b6f64436d..0d3953c0d4d48a806676e3ece17de887158ed6ce 100644
|
| --- a/chrome/browser/ui/views/shell_dialogs_win.cc
|
| +++ b/chrome/browser/ui/views/shell_dialogs_win.cc
|
| @@ -698,13 +698,12 @@ void SelectFileDialogImpl::ExecuteSelectFile(
|
| params.run_state.owner,
|
| &path);
|
| } else if (params.type == SELECT_SAVEAS_FILE) {
|
| - std::wstring path_as_wstring = path.ToWStringHack();
|
| + std::wstring path_as_wstring = path.value();
|
| success = SaveFileAsWithFilter(params.run_state.owner,
|
| - params.default_path.ToWStringHack(), filter,
|
| + params.default_path.value(), filter,
|
| params.default_extension, false, &filter_index, &path_as_wstring);
|
| - if (success) {
|
| - path = FilePath::FromWStringHack(path_as_wstring);
|
| - }
|
| + if (success)
|
| + path = FilePath(path_as_wstring);
|
| DisableOwner(params.run_state.owner);
|
| } else if (params.type == SELECT_OPEN_FILE) {
|
| success = RunOpenFileDialog(params.title, filter,
|
|
|