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

Side by Side Diff: webkit/common/fileapi/file_system_util.cc

Issue 12310041: experiment with -Wimplicit-fallthrough Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: rebase Created 6 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/browser/fileapi/sandbox_origin_database.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "webkit/common/fileapi/file_system_util.h" 5 #include "webkit/common/fileapi/file_system_util.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 return "Syncable"; 251 return "Syncable";
252 case kFileSystemTypeNativeForPlatformApp: 252 case kFileSystemTypeNativeForPlatformApp:
253 return "NativeForPlatformApp"; 253 return "NativeForPlatformApp";
254 case kFileSystemTypeForTransientFile: 254 case kFileSystemTypeForTransientFile:
255 return "TransientFile"; 255 return "TransientFile";
256 case kFileSystemTypePluginPrivate: 256 case kFileSystemTypePluginPrivate:
257 return "PluginPrivate"; 257 return "PluginPrivate";
258 case kFileSystemInternalTypeEnumStart: 258 case kFileSystemInternalTypeEnumStart:
259 case kFileSystemInternalTypeEnumEnd: 259 case kFileSystemInternalTypeEnumEnd:
260 NOTREACHED(); 260 NOTREACHED();
261 // Fall through. 261 FALLTHROUGH_INTENDED;
262 case kFileSystemTypeUnknown: 262 case kFileSystemTypeUnknown:
263 return "Unknown"; 263 return "Unknown";
264 } 264 }
265 NOTREACHED(); 265 NOTREACHED();
266 return std::string(); 266 return std::string();
267 } 267 }
268 268
269 std::string FilePathToString(const base::FilePath& file_path) { 269 std::string FilePathToString(const base::FilePath& file_path) {
270 #if defined(OS_WIN) 270 #if defined(OS_WIN)
271 return base::UTF16ToUTF8(file_path.value()); 271 return base::UTF16ToUTF8(file_path.value());
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 #if defined(OS_CHROMEOS) 446 #if defined(OS_CHROMEOS)
447 FileSystemInfo GetFileSystemInfoForChromeOS(const GURL& origin_url) { 447 FileSystemInfo GetFileSystemInfoForChromeOS(const GURL& origin_url) {
448 FileSystemType mount_type = fileapi::kFileSystemTypeExternal; 448 FileSystemType mount_type = fileapi::kFileSystemTypeExternal;
449 return FileSystemInfo(fileapi::GetFileSystemName(origin_url, mount_type), 449 return FileSystemInfo(fileapi::GetFileSystemName(origin_url, mount_type),
450 fileapi::GetFileSystemRootURI(origin_url, mount_type), 450 fileapi::GetFileSystemRootURI(origin_url, mount_type),
451 mount_type); 451 mount_type);
452 } 452 }
453 #endif 453 #endif
454 454
455 } // namespace fileapi 455 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/browser/fileapi/sandbox_origin_database.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698