| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ui/shell_dialogs/selected_file_info.h" | 5 #include "ui/shell_dialogs/selected_file_info.h" |
| 6 | 6 |
| 7 namespace ui { | 7 namespace ui { |
| 8 | 8 |
| 9 SelectedFileInfo::SelectedFileInfo() {} | 9 SelectedFileInfo::SelectedFileInfo() {} |
| 10 | 10 |
| 11 SelectedFileInfo::SelectedFileInfo(const FilePath& in_file_path, | 11 SelectedFileInfo::SelectedFileInfo(const base::FilePath& in_file_path, |
| 12 const FilePath& in_local_path) | 12 const base::FilePath& in_local_path) |
| 13 : file_path(in_file_path), | 13 : file_path(in_file_path), |
| 14 local_path(in_local_path) { | 14 local_path(in_local_path) { |
| 15 if (local_path.empty()) | 15 if (local_path.empty()) |
| 16 local_path = file_path; | 16 local_path = file_path; |
| 17 display_name = in_file_path.BaseName().value(); | 17 display_name = in_file_path.BaseName().value(); |
| 18 } | 18 } |
| 19 | 19 |
| 20 SelectedFileInfo::~SelectedFileInfo() {} | 20 SelectedFileInfo::~SelectedFileInfo() {} |
| 21 | 21 |
| 22 } // namespace ui | 22 } // namespace ui |
| OLD | NEW |