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

Unified Diff: third_party/libjingle/overrides/talk/base/logging.cc

Issue 71353010: Fix WebRTC logging so that logs from libpeerconnection make it to the log. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Code review. Created 7 years, 1 month 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 | « third_party/libjingle/overrides/talk/base/logging.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/libjingle/overrides/talk/base/logging.cc
diff --git a/third_party/libjingle/overrides/talk/base/logging.cc b/third_party/libjingle/overrides/talk/base/logging.cc
index e3acfc39e74c7c02e8f9669956060c8802ecc0bd..3e471817d737af6b8be9c392ae7fc4aad88f7db9 100644
--- a/third_party/libjingle/overrides/talk/base/logging.cc
+++ b/third_party/libjingle/overrides/talk/base/logging.cc
@@ -31,6 +31,8 @@
namespace talk_base {
void (*g_logging_delegate_function)(const std::string&) = NULL;
+void (*g_extra_logging_init_function)(
+ void (*logging_delegate_function)(const std::string&)) = NULL;
#ifndef NDEBUG
COMPILE_ASSERT(sizeof(base::subtle::Atomic32) == sizeof(base::PlatformThreadId),
atomic32_not_same_size_as_platformthreadid);
@@ -308,6 +310,16 @@ void InitDiagnosticLoggingDelegateFunction(
IPAddress::set_strip_sensitive(true);
#endif
g_logging_delegate_function = delegate;
+
+ if (g_extra_logging_init_function)
+ g_extra_logging_init_function(delegate);
+}
+
+void SetExtraLoggingInit(
+ void (*function)(void (*delegate)(const std::string&))) {
+ CHECK(function);
+ CHECK(!g_extra_logging_init_function);
+ g_extra_logging_init_function = function;
}
} // namespace talk_base
« no previous file with comments | « third_party/libjingle/overrides/talk/base/logging.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698