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

Unified Diff: ui/base/dialogs/selected_file_info.cc

Issue 10804026: Fix open dialog not remembering last opened folder on drive (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remofe file manager change Created 8 years, 5 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: ui/base/dialogs/selected_file_info.cc
diff --git a/ui/base/dialogs/selected_file_info.cc b/ui/base/dialogs/selected_file_info.cc
index 7c59f273aeb14b17072afae848303de17c3e082b..b2969888ee488477b130da4a36fe6adc6d0adc12 100644
--- a/ui/base/dialogs/selected_file_info.cc
+++ b/ui/base/dialogs/selected_file_info.cc
@@ -8,10 +8,13 @@ namespace ui {
SelectedFileInfo::SelectedFileInfo() {}
-SelectedFileInfo::SelectedFileInfo(const FilePath& in_path,
- const FilePath::StringType& in_display_name)
- : path(in_path),
- display_name(in_display_name) {
+SelectedFileInfo::SelectedFileInfo(const FilePath& in_file_path,
+ const FilePath& in_real_path)
+ : file_path(in_file_path),
+ real_path(in_real_path) {
+ if (real_path.empty())
+ real_path = file_path;
+ display_name = in_file_path.BaseName().value();
}
SelectedFileInfo::~SelectedFileInfo() {}
« ui/base/dialogs/selected_file_info.h ('K') | « ui/base/dialogs/selected_file_info.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698