Index: chrome/browser/chromeos/file_manager/file_browser_handlers.cc |
diff --git a/chrome/browser/chromeos/file_manager/file_browser_handlers.cc b/chrome/browser/chromeos/file_manager/file_browser_handlers.cc |
index e5935e4920b782992649d047e7472cf42739a415..21c3e89dcd1eb3ef79ff0bd079959a1c75c4991f 100644 |
--- a/chrome/browser/chromeos/file_manager/file_browser_handlers.cc |
+++ b/chrome/browser/chromeos/file_manager/file_browser_handlers.cc |
@@ -215,12 +215,15 @@ FileBrowserHandlerExecutor::SetupFileAccessPermissions( |
base::FilePath local_path = url.path(); |
base::FilePath virtual_path = url.virtual_path(); |
- bool is_drive_file = url.type() == fileapi::kFileSystemTypeDrive; |
+ const bool is_drive_file = url.type() == fileapi::kFileSystemTypeDrive; |
DCHECK(!is_drive_file || drive::util::IsUnderDriveMountPoint(local_path)); |
- // If the file is under drive mount point, there is no actual file to be |
- // found on the url.path(). |
- if (!is_drive_file) { |
+ const bool is_native_file = |
+ url.type() == fileapi::kFileSystemTypeNativeLocal || |
+ url.type() == fileapi::kFileSystemTypeRestrictedNativeLocal; |
+ |
+ // If the file is from a physical volume, actual file must be found. |
+ if (is_native_file) { |
if (!base::PathExists(local_path) || |
base::IsLink(local_path) || |
!base::GetFileInfo(local_path, &file_info)) { |