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

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

Issue 2497833002: support multiple log message handlers in base/logging.h (Closed)
Patch Set: Created 4 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 | « 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 1fa13ebd3a45516d7e2f7fc4beb7bff89830d8a3..4d83850240c453a1e61a4cf7c400ee5e88877614 100644
--- a/remoting/client/plugin/chromoting_instance.cc
+++ b/remoting/client/plugin/chromoting_instance.cc
@@ -1043,7 +1043,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::AddLogMessageHandler(&LogToUI);
}
void ChromotingInstance::RegisterLoggingInstance() {
@@ -1063,9 +1063,8 @@ void ChromotingInstance::UnregisterLoggingInstance() {
}
// static
-bool ChromotingInstance::LogToUI(int severity, const char* file, int line,
- size_t message_start,
- const std::string& str) {
+bool ChromotingInstance::LogToUI(int severity, const std::string& file,
+ int line, const std::string& str) {
PP_LogLevel log_level = PP_LOGLEVEL_ERROR;
switch (severity) {
case logging::LOG_INFO:
« 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