Index: components/nacl/renderer/ppb_nacl_private_impl.cc |
diff --git a/components/nacl/renderer/ppb_nacl_private_impl.cc b/components/nacl/renderer/ppb_nacl_private_impl.cc |
index 048130aea5346020ad58e8ac1c52ce4fe6b86efb..a105d490f207ca5a3a321b411e8cbd65090a66fb 100644 |
--- a/components/nacl/renderer/ppb_nacl_private_impl.cc |
+++ b/components/nacl/renderer/ppb_nacl_private_impl.cc |
@@ -1113,9 +1113,9 @@ bool ManifestResolveKey(PP_Instance instance, |
} |
PP_Bool GetPNaClResourceInfo(PP_Instance instance, |
- const char* filename, |
PP_Var* llc_tool_name, |
PP_Var* ld_tool_name) { |
+ static const char kFilename[] = "chrome://pnacl-translator/pnacl.json"; |
NexeLoadManager* load_manager = GetNexeLoadManager(instance); |
DCHECK(load_manager); |
if (!load_manager) |
@@ -1123,7 +1123,7 @@ PP_Bool GetPNaClResourceInfo(PP_Instance instance, |
uint64_t nonce_lo = 0; |
uint64_t nonce_hi = 0; |
- base::File file(GetReadonlyPnaclFd(filename, false /* is_executable */, |
+ base::File file(GetReadonlyPnaclFd(kFilename, false /* is_executable */, |
&nonce_lo, &nonce_hi)); |
if (!file.IsValid()) { |
load_manager->ReportLoadError( |
@@ -1139,14 +1139,14 @@ PP_Bool GetPNaClResourceInfo(PP_Instance instance, |
load_manager->ReportLoadError( |
PP_NACL_ERROR_PNACL_RESOURCE_FETCH, |
std::string("GetPNaClResourceInfo, GetFileInfo failed for: ") + |
- filename); |
+ kFilename); |
return PP_FALSE; |
} |
if (file_info.size > 1 << 20) { |
load_manager->ReportLoadError( |
PP_NACL_ERROR_PNACL_RESOURCE_FETCH, |
- std::string("GetPNaClResourceInfo, file too large: ") + filename); |
+ std::string("GetPNaClResourceInfo, file too large: ") + kFilename); |
return PP_FALSE; |
} |
@@ -1155,7 +1155,7 @@ PP_Bool GetPNaClResourceInfo(PP_Instance instance, |
load_manager->ReportLoadError( |
PP_NACL_ERROR_PNACL_RESOURCE_FETCH, |
std::string("GetPNaClResourceInfo, couldn't allocate for: ") + |
- filename); |
+ kFilename); |
return PP_FALSE; |
} |
@@ -1163,7 +1163,7 @@ PP_Bool GetPNaClResourceInfo(PP_Instance instance, |
if (rc < 0) { |
load_manager->ReportLoadError( |
PP_NACL_ERROR_PNACL_RESOURCE_FETCH, |
- std::string("GetPNaClResourceInfo, reading failed for: ") + filename); |
+ std::string("GetPNaClResourceInfo, reading failed for: ") + kFilename); |
return PP_FALSE; |
} |