Index: webkit/chromeos/fileapi/cros_mount_point_provider.cc |
diff --git a/webkit/chromeos/fileapi/cros_mount_point_provider.cc b/webkit/chromeos/fileapi/cros_mount_point_provider.cc |
index b5d40ae7f5c89f98c5df5addf9b681ea97609245..74df6d8f70bdce54125bdf2392bb80d83fb46dba 100644 |
--- a/webkit/chromeos/fileapi/cros_mount_point_provider.cc |
+++ b/webkit/chromeos/fileapi/cros_mount_point_provider.cc |
@@ -173,5 +173,19 @@ std::vector<FilePath> CrosMountPointProvider::GetRootDirectories() const { |
return root_dirs; |
} |
+bool CrosMountPointProvider::GetVirtualPath(const FilePath& filesystem_path, |
+ FilePath* virtual_path) { |
+ for (MountPointMap::const_iterator iter = mount_point_map_.begin(); |
+ iter != mount_point_map_.end(); |
+ ++iter) { |
+ FilePath mount_prefix = iter->second.Append(iter->first); |
+ *virtual_path = FilePath(iter->first); |
+ if (mount_prefix.AppendRelativePath(filesystem_path, virtual_path)) { |
+ return true; |
+ } |
+ } |
+ return false; |
+} |
+ |
} // namespace chromeos |