Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(384)

Unified Diff: components/nacl/renderer/ppb_nacl_private_impl.cc

Issue 181153002: Have PNaCl use debug pexe URL instead of stripped pexe w/ kEnableNaClDebug (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nosandbox win Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698