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

Unified Diff: components/storage_monitor/media_storage_util.cc

Issue 185393012: Change media galleries to external file system type to add toURL support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 9 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: components/storage_monitor/media_storage_util.cc
diff --git a/components/storage_monitor/media_storage_util.cc b/components/storage_monitor/media_storage_util.cc
index 20190d427ede380048139d2a5f6b7ad032eb1446..c95f53404c880fb22d607d518832ebc8fc559858 100644
--- a/components/storage_monitor/media_storage_util.cc
+++ b/components/storage_monitor/media_storage_util.cc
@@ -116,7 +116,7 @@ bool MediaStorageUtil::CanCreateFileSystem(const std::string& device_id,
if (type == StorageInfo::MAC_IMAGE_CAPTURE)
return true;
- return path.IsAbsolute() && !path.ReferencesParent();
+ return !path.empty() && path.IsAbsolute() && !path.ReferencesParent();
}
// static

Powered by Google App Engine
This is Rietveld 408576698