Index: net/base/net_errors.cc |
diff --git a/net/base/net_errors.cc b/net/base/net_errors.cc |
index 01fda3908ca581303726320956f10b644c71b496..a9d1443c913003615f2d4742deb06ecc6bf8d512 100644 |
--- a/net/base/net_errors.cc |
+++ b/net/base/net_errors.cc |
@@ -44,16 +44,15 @@ std::vector<int> GetAllErrorCodesForUma() { |
kAllErrorCodes, arraysize(kAllErrorCodes)); |
} |
-Error PlatformFileErrorToNetError( |
- base::PlatformFileError file_error) { |
+Error FileErrorToNetError(base::File::Error file_error) { |
switch (file_error) { |
- case base::PLATFORM_FILE_OK: |
+ case base::File::FILE_OK: |
return net::OK; |
- case base::PLATFORM_FILE_ERROR_ACCESS_DENIED: |
+ case base::File::FILE_ERROR_ACCESS_DENIED: |
return net::ERR_ACCESS_DENIED; |
- case base::PLATFORM_FILE_ERROR_INVALID_URL: |
+ case base::File::FILE_ERROR_INVALID_URL: |
return net::ERR_INVALID_URL; |
- case base::PLATFORM_FILE_ERROR_NOT_FOUND: |
+ case base::File::FILE_ERROR_NOT_FOUND: |
return net::ERR_FILE_NOT_FOUND; |
default: |
return net::ERR_FAILED; |