| 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 237e6d9a02489276b1cff798c15867f722197055..beb36b1a9ace51508874c44f598a1c3cb5e2cacb 100644
|
| --- a/components/nacl/renderer/ppb_nacl_private_impl.cc
|
| +++ b/components/nacl/renderer/ppb_nacl_private_impl.cc
|
| @@ -13,6 +13,7 @@
|
| #include "base/rand_util.h"
|
| #include "components/nacl/common/nacl_host_messages.h"
|
| #include "components/nacl/common/nacl_messages.h"
|
| +#include "components/nacl/common/nacl_switches.h"
|
| #include "components/nacl/common/nacl_types.h"
|
| #include "components/nacl/renderer/pnacl_translation_resource_host.h"
|
| #include "components/nacl/renderer/trusted_plugin_channel.h"
|
| @@ -540,6 +541,11 @@ void InstanceDestroyed(PP_Instance instance) {
|
| delete instance_info;
|
| }
|
|
|
| +PP_Bool NaClDebugStubEnabled() {
|
| + return PP_FromBool(CommandLine::ForCurrentProcess()->HasSwitch(
|
| + switches::kEnableNaClDebug));
|
| +}
|
| +
|
| const PPB_NaCl_Private nacl_interface = {
|
| &LaunchSelLdr,
|
| &StartPpapiProxy,
|
| @@ -555,7 +561,8 @@ const PPB_NaCl_Private nacl_interface = {
|
| &DispatchEvent,
|
| &SetReadOnlyProperty,
|
| &ReportLoadError,
|
| - &InstanceDestroyed
|
| + &InstanceDestroyed,
|
| + &NaClDebugStubEnabled
|
| };
|
|
|
| } // namespace
|
|
|