summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/ui/views/shell_dialogs_win.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/ui/views/shell_dialogs_win.cc b/chrome/browser/ui/views/shell_dialogs_win.cc
index dc97e87..7fd9912 100644
--- a/chrome/browser/ui/views/shell_dialogs_win.cc
+++ b/chrome/browser/ui/views/shell_dialogs_win.cc
@@ -238,7 +238,7 @@ bool SaveFileAsWithFilter(HWND owner,
// Having an empty filter makes for a bad user experience. We should always
// specify a filter when saving.
DCHECK(!filter.empty());
- std::wstring file_part = file_util::GetFilenameFromPath(suggested_name);
+ std::wstring file_part = FilePath(suggested_name).BaseName().value();
// The size of the in/out buffer in number of characters we pass to win32
// GetSaveFileName. From MSDN "The buffer must be large enough to store the