| Index: chrome/browser/media_gallery/media_file_system_registry.cc
|
| diff --git a/chrome/browser/media_gallery/media_file_system_registry.cc b/chrome/browser/media_gallery/media_file_system_registry.cc
|
| index 69d247fd2603978b9d512d849b3a681ac9ee864d..3fe22952497baa7704b81fcac6d9028ba9093307 100644
|
| --- a/chrome/browser/media_gallery/media_file_system_registry.cc
|
| +++ b/chrome/browser/media_gallery/media_file_system_registry.cc
|
| @@ -335,7 +335,7 @@ class ExtensionGalleriesHost
|
| }
|
|
|
| FilePath path = gallery_info.AbsolutePath();
|
| - if (!path.IsAbsolute())
|
| + if (!MediaStorageUtil::CanCreateFileSystem(device_id, path))
|
| continue;
|
|
|
| std::string fsid;
|
| @@ -640,8 +640,7 @@ class MediaFileSystemRegistry::MediaFileSystemContextImpl
|
| DCHECK(!MediaStorageUtil::IsMassStorageDevice(device_id));
|
|
|
| // Sanity checks for |path|.
|
| - CHECK(path.IsAbsolute());
|
| - CHECK(!path.ReferencesParent());
|
| + CHECK(MediaStorageUtil::CanCreateFileSystem(device_id, path));
|
| std::string fs_name(extension_misc::kMediaFileSystemPathPart);
|
| const std::string fsid =
|
| IsolatedContext::GetInstance()->RegisterFileSystemForPath(
|
|
|