| Index: chrome/browser/chromeos/arc/fileapi/arc_content_file_system_url_util.cc
|
| diff --git a/chrome/browser/chromeos/arc/fileapi/arc_content_file_system_url_util.cc b/chrome/browser/chromeos/arc/fileapi/arc_content_file_system_url_util.cc
|
| index 4603258e49cd17a56faf3013201371340930ebf4..c0a9a8c3c5e98b5c8f22e752d0d1101ee2fbbd40 100644
|
| --- a/chrome/browser/chromeos/arc/fileapi/arc_content_file_system_url_util.cc
|
| +++ b/chrome/browser/chromeos/arc/fileapi/arc_content_file_system_url_util.cc
|
| @@ -47,9 +47,13 @@ GURL ExternalFileUrlToArcUrl(const GURL& external_file_url) {
|
| }
|
|
|
| GURL FileSystemUrlToArcUrl(const storage::FileSystemURL& url) {
|
| + return PathToArcUrl(url.path());
|
| +}
|
| +
|
| +GURL PathToArcUrl(const base::FilePath& path) {
|
| base::FilePath path_after_mount_point;
|
| if (!base::FilePath(kContentFileSystemMountPointPath)
|
| - .AppendRelativePath(url.path(), &path_after_mount_point)) {
|
| + .AppendRelativePath(path, &path_after_mount_point)) {
|
| return GURL();
|
| }
|
| return UnescapeArcUrl(path_after_mount_point.AsUTF8Unsafe());
|
|
|