Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1630)

Unified Diff: chrome/browser/chromeos/arc/fileapi/arc_content_file_system_url_util.cc

Issue 2914433002: arc: Use the MIME type returned by the container to handle content URLs (Closed)
Patch Set: Comment drop. Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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());

Powered by Google App Engine
This is Rietveld 408576698