| 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 a9d909a5e322e8476a139b4205cf80f766e5e400..3534f81e5b975df420f8fd007f589fe4b34b3fa8 100644
|
| --- a/components/nacl/renderer/ppb_nacl_private_impl.cc
|
| +++ b/components/nacl/renderer/ppb_nacl_private_impl.cc
|
| @@ -10,6 +10,7 @@
|
| #include "base/lazy_instance.h"
|
| #include "base/logging.h"
|
| #include "base/rand_util.h"
|
| +#include "base/sys_info.h"
|
| #include "components/nacl/common/nacl_host_messages.h"
|
| #include "components/nacl/common/nacl_types.h"
|
| #include "components/nacl/renderer/pnacl_translation_resource_host.h"
|
| @@ -256,6 +257,10 @@ PP_FileHandle CreateTemporaryFile(PP_Instance instance) {
|
| return handle;
|
| }
|
|
|
| +int32_t GetNumberOfProcessors() {
|
| + return base::SysInfo::NumberOfProcessors();
|
| +}
|
| +
|
| int32_t GetNexeFd(PP_Instance instance,
|
| const char* pexe_url,
|
| uint32_t abi_version,
|
| @@ -465,6 +470,7 @@ const PPB_NaCl_Private nacl_interface = {
|
| &BrokerDuplicateHandle,
|
| &GetReadonlyPnaclFD,
|
| &CreateTemporaryFile,
|
| + &GetNumberOfProcessors,
|
| &GetNexeFd,
|
| &ReportTranslationFinished,
|
| &ReportNaClError,
|
|
|