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

Unified Diff: webkit/browser/fileapi/isolated_context.cc

Issue 203043002: Fix "unreachable code" warnings (MSVC warning 4702), misc. edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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
« sync/syncable/model_type.cc ('K') | « tools/gn/gn_main.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/browser/fileapi/isolated_context.cc
===================================================================
--- webkit/browser/fileapi/isolated_context.cc (revision 256983)
+++ webkit/browser/fileapi/isolated_context.cc (working copy)
@@ -41,21 +41,10 @@
}
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 =
« sync/syncable/model_type.cc ('K') | « tools/gn/gn_main.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698