summaryrefslogtreecommitdiffstats
path: root/webkit/browser/fileapi/isolated_context.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/browser/fileapi/isolated_context.cc')
-rw-r--r--webkit/browser/fileapi/isolated_context.cc19
1 files changed, 4 insertions, 15 deletions
diff --git a/webkit/browser/fileapi/isolated_context.cc b/webkit/browser/fileapi/isolated_context.cc
index 7471610..f126330 100644
--- a/webkit/browser/fileapi/isolated_context.cc
+++ b/webkit/browser/fileapi/isolated_context.cc
@@ -41,21 +41,10 @@ base::FilePath::StringType GetRegisterNameForPath(const base::FilePath& path) {
}
bool IsSinglePathIsolatedFileSystem(FileSystemType type) {
- switch (type) {
- // As of writing dragged file system is the only filesystem
- // which could have multiple top-level paths.
- case kFileSystemTypeDragged:
- return false;
-
- case kFileSystemTypeUnknown:
- NOTREACHED();
- return true;
-
- default:
- return true;
- }
- NOTREACHED();
- return true;
+ DCHECK_NE(kFileSystemTypeUnknown, type);
+ // As of writing dragged file system is the only filesystem which could have
+ // multiple top-level paths.
+ return type != kFileSystemTypeDragged;
}
static base::LazyInstance<IsolatedContext>::Leaky g_isolated_context =