| 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 7405ef6d312662fa0e2f4a00ccfe50e803a750a5..f1c59b4f7ce922d5ade3217a6e15303862e74e14 100644
|
| --- a/chrome/browser/ui/views/shell_dialogs_win.cc
|
| +++ b/chrome/browser/ui/views/shell_dialogs_win.cc
|
| @@ -270,7 +270,7 @@ bool SaveFileAsWithFilter(HWND owner,
|
| save_as.nMaxFileTitle = 0;
|
|
|
| // Set up the initial directory for the dialog.
|
| - std::wstring directory = file_util::GetDirectoryFromPath(suggested_name);
|
| + std::wstring directory = FilePath(suggested_name).DirName().value();
|
| save_as.lpstrInitialDir = directory.c_str();
|
| save_as.lpstrTitle = NULL;
|
| save_as.Flags = OFN_OVERWRITEPROMPT | OFN_EXPLORER | OFN_ENABLESIZING |
|
|
|