| 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 6c406e1965c64f9c7912e029600711f896142247..d5d9d76f25780b90815657e34ca1b3f58fbd2303 100644
|
| --- a/components/nacl/renderer/ppb_nacl_private_impl.cc
|
| +++ b/components/nacl/renderer/ppb_nacl_private_impl.cc
|
| @@ -1291,14 +1291,20 @@ void DownloadNexeCompletion(const DownloadNexeRequest& request,
|
|
|
| void DownloadNexe(PP_Instance instance,
|
| const char* url,
|
| - PP_Bool download_resource_files,
|
| PP_NaClFileInfo* out_file_info,
|
| PP_NaClResourceFileHandle** out_resource_file_handles,
|
| uint32_t* out_resource_file_handles_len,
|
| PP_CompletionCallback callback) {
|
| CHECK(url);
|
| CHECK(out_file_info);
|
| - CHECK(!download_resource_files || out_resource_file_handles);
|
| + CHECK(out_resource_file_handles);
|
| +
|
| +#if defined(OS_POSIX)
|
| + const bool kDownloadResourceFiles = true;
|
| +#else
|
| + // TODO(yusukes): Support Windows.
|
| + const bool kDownloadResourceFiles = false;
|
| +#endif
|
|
|
| DownloadNexeRequest request;
|
| request.instance = instance;
|
| @@ -1310,7 +1316,7 @@ void DownloadNexe(PP_Instance instance,
|
| std::pair<std::string /*url*/, std::string /*key*/> > resource_files;
|
| std::vector<std::string> resource_file_urls;
|
|
|
| - if (download_resource_files) {
|
| + if (kDownloadResourceFiles) {
|
| JsonManifest* manifest = GetJsonManifest(instance);
|
| if (manifest)
|
| manifest->GetFiles(&resource_files);
|
|
|