| Index: chrome/renderer/chrome_ppapi_interfaces.cc
|
| diff --git a/chrome/renderer/chrome_ppapi_interfaces.cc b/chrome/renderer/chrome_ppapi_interfaces.cc
|
| index 321f86b6c0ae478ebe6101fc6632e91c99267fef..243039176eb524f887ffd8788aeb0e9464c85969 100644
|
| --- a/chrome/renderer/chrome_ppapi_interfaces.cc
|
| +++ b/chrome/renderer/chrome_ppapi_interfaces.cc
|
| @@ -23,6 +23,10 @@
|
| #include "ppapi/native_client/src/trusted/plugin/nacl_entry_points.h"
|
| #endif
|
|
|
| +#if defined(OS_WIN)
|
| +#include "content/public/common/sandbox_init.h"
|
| +#endif
|
| +
|
| using content::RenderThread;
|
|
|
| namespace chrome {
|
| @@ -78,11 +82,26 @@ void EnableBackgroundSelLdrLaunch() {
|
| RenderThread::Get()->GetSyncMessageFilter();
|
| }
|
|
|
| +int BrokerDuplicateHandle(void* source_handle,
|
| + unsigned int process_id,
|
| + void** target_handle,
|
| + unsigned int desired_access,
|
| + unsigned int options) {
|
| +#if defined(OS_WIN)
|
| + return content::BrokerDuplicateHandle(source_handle, process_id,
|
| + target_handle, desired_access,
|
| + options);
|
| +#else
|
| + return 0;
|
| +#endif
|
| +}
|
| +
|
| const PPB_NaCl_Private ppb_nacl = {
|
| &LaunchSelLdr,
|
| &UrandomFD,
|
| &Are3DInterfacesDisabled,
|
| &EnableBackgroundSelLdrLaunch,
|
| + &BrokerDuplicateHandle,
|
| };
|
|
|
| class PPB_NaCl_Impl {
|
|
|