Index: components/nacl/renderer/nexe_load_manager.cc |
diff --git a/components/nacl/renderer/nexe_load_manager.cc b/components/nacl/renderer/nexe_load_manager.cc |
index d2efba4cccbf955723a968a04971bbdf23da791b..0c937392230c0cb5dd4f92ed0850e61f4e67c6e0 100644 |
--- a/components/nacl/renderer/nexe_load_manager.cc |
+++ b/components/nacl/renderer/nexe_load_manager.cc |
@@ -107,7 +107,7 @@ NexeLoadManager::~NexeLoadManager() { |
} |
void NexeLoadManager::NexeFileDidOpen(int32_t pp_error, |
- base::PlatformFile file, |
+ const base::File& file, |
int32_t http_status, |
int64_t nexe_bytes_read, |
const std::string& url, |
@@ -120,7 +120,7 @@ void NexeLoadManager::NexeFileDidOpen(int32_t pp_error, |
"NaCl.HttpStatusCodeClass.Nexe.NotInstalledApp", |
http_status); |
- if (pp_error != PP_OK || file == base::kInvalidPlatformFileValue) { |
+ if (pp_error != PP_OK || !file.IsValid()) { |
if (pp_error == PP_ERROR_ABORTED) { |
ReportLoadAbort(); |
} else if (pp_error == PP_ERROR_NOACCESS) { |