Stop fallback for empty local path in ui::SelectedFileInfo's constructor.
commit5092f4c7e56734679ae69b00ea910898208091a7
authorhirono <hirono@chromium.org>
Wed, 22 Oct 2014 04:15:13 +0000 (21 21:15 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 22 Oct 2014 04:15:30 +0000 (22 04:15 +0000)
tree73196535a9d5dc97546ef68c0a671b2f059317bb
parentd1d502258c50a929dd11d095b2f9aa5cfadabb9e
Stop fallback for empty local path in ui::SelectedFileInfo's constructor.

Previously ui::SelectedFileInfo's constructor has a fallback to use the file
path instead of an emtpy local path. But this fallback can assign non-native
paths like '/special/drive/xxx' to local_path variable when the file does not
have a snapshot.

The CL removes the fallback, and modify the default behavior of
FileSelectDialog::Lister so that it routes an empty local_path to file_path.

BUG=126902
TEST=manually

Review URL: https://codereview.chromium.org/666693004

Cr-Commit-Position: refs/heads/master@{#300628}
chrome/browser/chromeos/extensions/file_manager/private_api_util.cc
ui/shell_dialogs/select_file_dialog.cc
ui/shell_dialogs/selected_file_info.cc
ui/shell_dialogs/selected_file_info.h