summaryrefslogtreecommitdiffstats
path: root/remoting/client/plugin/pepper_entrypoints.cc
diff options
context:
space:
mode:
authorwez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-16 01:10:03 +0000
committerwez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-16 01:10:03 +0000
commit4fdc469807bd47c738421484bc77e3860416ddcd (patch)
treea7c7c067eee23fbede78625d1356628c18b729f6 /remoting/client/plugin/pepper_entrypoints.cc
parent3e8bc455f859bc01a8db15b3e73983d04f5316c4 (diff)
downloadchromium_src-4fdc469807bd47c738421484bc77e3860416ddcd.zip
chromium_src-4fdc469807bd47c738421484bc77e3860416ddcd.tar.gz
chromium_src-4fdc469807bd47c738421484bc77e3860416ddcd.tar.bz2
Only trap LOG() events in Debug builds.
BUG=253624 Review URL: https://chromiumcodereview.appspot.com/23254003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@217902 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/client/plugin/pepper_entrypoints.cc')
-rw-r--r--remoting/client/plugin/pepper_entrypoints.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/remoting/client/plugin/pepper_entrypoints.cc b/remoting/client/plugin/pepper_entrypoints.cc
index 00af8bf..c6923e3 100644
--- a/remoting/client/plugin/pepper_entrypoints.cc
+++ b/remoting/client/plugin/pepper_entrypoints.cc
@@ -41,8 +41,10 @@ int32_t PPP_InitializeModule(PP_Module module_id,
return PP_ERROR_FAILED;
}
- // Register a global log handler.
+#if !defined(NDEBUG)
+ // Register a global log handler, but only in Debug builds.
ChromotingInstance::RegisterLogMessageHandler();
+#endif
g_module_singleton = module;
return PP_OK;