| 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 0c9eeb5ef31306ed0f65d3be6b8985f0803cdb71..4f76bfd78ae9ec9198388edb258c58c42258abf0 100644
|
| --- a/components/nacl/renderer/ppb_nacl_private_impl.cc
|
| +++ b/components/nacl/renderer/ppb_nacl_private_impl.cc
|
| @@ -12,6 +12,7 @@
|
| #include "base/metrics/histogram.h"
|
| #include "base/rand_util.h"
|
| #include "components/nacl/common/nacl_host_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 "content/public/common/content_client.h"
|
| @@ -506,6 +507,11 @@ void ReportLoadError(PP_Instance instance,
|
| HistogramEnumerate(uma_name, error, PP_NACL_ERROR_MAX);
|
| }
|
|
|
| +PP_Bool NaClDebugStubEnabled() {
|
| + return PP_FromBool(CommandLine::ForCurrentProcess()->HasSwitch(
|
| + switches::kEnableNaClDebug));
|
| +}
|
| +
|
| const PPB_NaCl_Private nacl_interface = {
|
| &LaunchSelLdr,
|
| &StartPpapiProxy,
|
| @@ -520,7 +526,8 @@ const PPB_NaCl_Private nacl_interface = {
|
| &OpenNaClExecutable,
|
| &DispatchEvent,
|
| &SetReadOnlyProperty,
|
| - &ReportLoadError
|
| + &ReportLoadError,
|
| + &NaClDebugStubEnabled
|
| };
|
|
|
| } // namespace
|
|
|