diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-18 19:04:21 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-18 19:04:21 +0000 |
commit | 03cf96e71f1855f80a4b9214aab7c7fae60ec87c (patch) | |
tree | af118309b7e143c83f20456858c68b3ac62e0da1 /webkit | |
parent | 89d1a8b163dc905efeea6d391f4d02deafccf59c (diff) | |
download | chromium_src-03cf96e71f1855f80a4b9214aab7c7fae60ec87c.zip chromium_src-03cf96e71f1855f80a4b9214aab7c7fae60ec87c.tar.gz chromium_src-03cf96e71f1855f80a4b9214aab7c7fae60ec87c.tar.bz2 |
Fix "unreachable code" warnings (MSVC warning 4702), misc. edition.
This CL covers top-level directories that only had one or two modified files.
BUG=346399
TEST=none
R=darin@chromium.org
Review URL: https://codereview.chromium.org/203043002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@257705 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/browser/fileapi/isolated_context.cc | 19 |
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 = |