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

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

Issue 2034393004: Allow multiple logging::LogMessage{Handler,Listener}s Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix installation_validator_unittest Created 4 years, 6 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 | « net/tools/stress_cache/stress_cache.cc ('k') | remoting/host/logging_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/plugin/chromoting_instance.cc
diff --git a/remoting/client/plugin/chromoting_instance.cc b/remoting/client/plugin/chromoting_instance.cc
index 90db58344b3f2324574d56baa893dca5d9181a33..156feb290bfe4057b7506fc2a0037bb2b468d674 100644
--- a/remoting/client/plugin/chromoting_instance.cc
+++ b/remoting/client/plugin/chromoting_instance.cc
@@ -1034,7 +1034,7 @@ void ChromotingInstance::RegisterLogMessageHandler() {
// Set up log message handler.
// This is not thread-safe so we need it within our lock.
- logging::SetLogMessageHandler(&LogToUI);
+ logging::PushLogMessageHandler(&LogToUI);
Dan Beam 2016/06/09 18:52:50 does this call ever need to be balanced by a PopLo
wychen 2016/06/09 21:04:17 I was a bit curious when I changed this. The handl
}
void ChromotingInstance::RegisterLoggingInstance() {
« no previous file with comments | « net/tools/stress_cache/stress_cache.cc ('k') | remoting/host/logging_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698