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

Unified Diff: chrome/browser/media_gallery/media_file_system_registry.cc

Issue 11490010: [Media Galleries] Introduce a new type for Mac Image Capture. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix FILE_PATH_LITERAL Created 8 years 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
« no previous file with comments | « no previous file | chrome/browser/system_monitor/disk_info_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 07dbfba9a1f8c97fbd5bc1c257411bfb3248f385..062388300a09bbd5ac61e0918bee65b92042ed32 100644
--- a/chrome/browser/media_gallery/media_file_system_registry.cc
+++ b/chrome/browser/media_gallery/media_file_system_registry.cc
@@ -256,7 +256,7 @@ class ExtensionGalleriesHost
}
FilePath path = gallery_info.AbsolutePath();
- if (!path.IsAbsolute())
+ if (!MediaStorageUtil::CanCreateFileSystem(device_id, path))
continue;
std::string fsid;
@@ -602,8 +602,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(
« no previous file with comments | « no previous file | chrome/browser/system_monitor/disk_info_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698