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

Unified Diff: net/disk_cache/simple/simple_synchronous_entry.cc

Issue 145303002: Convert Media Galleries to use base::File (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/disk_cache/simple/simple_index_file_unittest.cc ('k') | ppapi/proxy/file_io_resource.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/simple/simple_synchronous_entry.cc
diff --git a/net/disk_cache/simple/simple_synchronous_entry.cc b/net/disk_cache/simple/simple_synchronous_entry.cc
index 4357e6e64e0acdb1e3f5cb437854189f38fbdbe2..14be1d4d317ae1f9779d7cca22346a1465bd3910 100644
--- a/net/disk_cache/simple/simple_synchronous_entry.cc
+++ b/net/disk_cache/simple/simple_synchronous_entry.cc
@@ -768,16 +768,16 @@ bool SimpleSynchronousEntry::OpenFiles(
cache_type_, OPEN_ENTRY_PLATFORM_FILE_ERROR, had_index);
SIMPLE_CACHE_UMA(ENUMERATION,
"SyncOpenPlatformFileError", cache_type_,
- -error, -base::PLATFORM_FILE_ERROR_MAX);
+ -error, -base::File::FILE_ERROR_MAX);
if (had_index) {
SIMPLE_CACHE_UMA(ENUMERATION,
"SyncOpenPlatformFileError_WithIndex", cache_type_,
- -error, -base::PLATFORM_FILE_ERROR_MAX);
+ -error, -base::File::FILE_ERROR_MAX);
} else {
SIMPLE_CACHE_UMA(ENUMERATION,
"SyncOpenPlatformFileError_WithoutIndex",
cache_type_,
- -error, -base::PLATFORM_FILE_ERROR_MAX);
+ -error, -base::File::FILE_ERROR_MAX);
}
while (--i >= 0)
CloseFile(i);
@@ -847,16 +847,16 @@ bool SimpleSynchronousEntry::CreateFiles(
RecordSyncCreateResult(CREATE_ENTRY_PLATFORM_FILE_ERROR, had_index);
SIMPLE_CACHE_UMA(ENUMERATION,
"SyncCreatePlatformFileError", cache_type_,
- -error, -base::PLATFORM_FILE_ERROR_MAX);
+ -error, -base::File::FILE_ERROR_MAX);
if (had_index) {
SIMPLE_CACHE_UMA(ENUMERATION,
"SyncCreatePlatformFileError_WithIndex", cache_type_,
- -error, -base::PLATFORM_FILE_ERROR_MAX);
+ -error, -base::File::FILE_ERROR_MAX);
} else {
SIMPLE_CACHE_UMA(ENUMERATION,
"SyncCreatePlatformFileError_WithoutIndex",
cache_type_,
- -error, -base::PLATFORM_FILE_ERROR_MAX);
+ -error, -base::File::FILE_ERROR_MAX);
}
while (--i >= 0)
CloseFile(i);
« no previous file with comments | « net/disk_cache/simple/simple_index_file_unittest.cc ('k') | ppapi/proxy/file_io_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698