Fixing an off by one error in screenshot manager code.
[chromium-blink-merge.git] / ui / shell_dialogs / selected_file_info.cc
blob8bc68abac70a10bfbad949a4499f23be10199cdc
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
3 // found in the LICENSE file.
5 #include "ui/shell_dialogs/selected_file_info.h"
7 namespace ui {
9 SelectedFileInfo::SelectedFileInfo() {}
11 SelectedFileInfo::SelectedFileInfo(const base::FilePath& in_file_path,
12 const base::FilePath& in_local_path)
13 : file_path(in_file_path),
14 local_path(in_local_path) {
15 if (local_path.empty())
16 local_path = file_path;
17 display_name = in_file_path.BaseName().value();
20 SelectedFileInfo::~SelectedFileInfo() {}
22 } // namespace ui