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

Unified Diff: remoting/client/plugin/pepper_entrypoints.cc

Issue 23254003: Only trap LOG() events in Debug builds. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/plugin/pepper_entrypoints.cc
diff --git a/remoting/client/plugin/pepper_entrypoints.cc b/remoting/client/plugin/pepper_entrypoints.cc
index 00af8bf78a3d8040e6620c540d6b960a17a0c4a3..c6923e322a6b084b003f4d83611708e044b99485 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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698