Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6004)

Unified Diff: chrome/browser/ui/views/shell_dialogs_win.cc

Issue 6246036: FilePath: Remove most of ToWStringHack, adding a LossyDisplayName() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: bug link Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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,
« no previous file with comments | « chrome/browser/ui/views/options/advanced_contents_view.cc ('k') | chrome/browser/ui/views/user_data_dir_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698