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

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: rebase 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
« no previous file with comments | « ui/base/dialogs/selected_file_info.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..9111f05a3ba14f8ea04a8a227a8c67f084002f4b 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_local_path)
+ : file_path(in_file_path),
+ local_path(in_local_path) {
+ if (local_path.empty())
+ local_path = file_path;
+ display_name = in_file_path.BaseName().value();
}
SelectedFileInfo::~SelectedFileInfo() {}
« no previous file with comments | « 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