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

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

Issue 121123002: Update uses of UTF conversions in ppapi/, printing/, remoting/, rlz/, sandbox/, skia/, sql/, sync/,… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 12 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
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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 // Fall through. 261 // Fall through.
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 UTF16ToUTF8(file_path.value()); 271 return base::UTF16ToUTF8(file_path.value());
272 #elif defined(OS_POSIX) 272 #elif defined(OS_POSIX)
273 return file_path.value(); 273 return file_path.value();
274 #endif 274 #endif
275 } 275 }
276 276
277 base::FilePath StringToFilePath(const std::string& file_path_string) { 277 base::FilePath StringToFilePath(const std::string& file_path_string) {
278 #if defined(OS_WIN) 278 #if defined(OS_WIN)
279 return base::FilePath(UTF8ToUTF16(file_path_string)); 279 return base::FilePath(base::UTF8ToUTF16(file_path_string));
280 #elif defined(OS_POSIX) 280 #elif defined(OS_POSIX)
281 return base::FilePath(file_path_string); 281 return base::FilePath(file_path_string);
282 #endif 282 #endif
283 } 283 }
284 284
285 blink::WebFileError PlatformFileErrorToWebFileError( 285 blink::WebFileError PlatformFileErrorToWebFileError(
286 base::PlatformFileError error_code) { 286 base::PlatformFileError error_code) {
287 switch (error_code) { 287 switch (error_code) {
288 case base::PLATFORM_FILE_ERROR_NOT_FOUND: 288 case base::PLATFORM_FILE_ERROR_NOT_FOUND:
289 return blink::WebFileErrorNotFound; 289 return blink::WebFileErrorNotFound;
(...skipping 156 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/common/database/database_connections_unittest.cc ('k') | webkit/common/webpreferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698