| Index: remoting/host/log_to_server.cc
|
| diff --git a/remoting/host/log_to_server.cc b/remoting/host/log_to_server.cc
|
| index 6799589c8bbaa1b6fe74424cbee07748c5e0b57f..dfe89e06897e819b922f5b5d0c2065679e474081 100644
|
| --- a/remoting/host/log_to_server.cc
|
| +++ b/remoting/host/log_to_server.cc
|
| @@ -8,15 +8,17 @@
|
| #include "base/message_loop/message_loop_proxy.h"
|
| #include "remoting/base/constants.h"
|
| #include "remoting/host/host_status_monitor.h"
|
| -#include "remoting/host/server_log_entry.h"
|
| +#include "remoting/host/server_log_entry_host.h"
|
| #include "remoting/jingle_glue/iq_sender.h"
|
| #include "remoting/jingle_glue/signal_strategy.h"
|
| +#include "remoting/protocol/server_log_entry.h"
|
| #include "remoting/protocol/transport.h"
|
| #include "third_party/libjingle/source/talk/xmllite/xmlelement.h"
|
| #include "third_party/libjingle/source/talk/xmpp/constants.h"
|
|
|
| using buzz::QName;
|
| using buzz::XmlElement;
|
| +using remoting::protocol::ServerLogEntry;
|
|
|
| namespace remoting {
|
|
|
| @@ -43,13 +45,13 @@ void LogToServer::LogSessionStateChange(const std::string& jid,
|
| DCHECK(CalledOnValidThread());
|
|
|
| scoped_ptr<ServerLogEntry> entry(
|
| - ServerLogEntry::MakeForSessionStateChange(connected));
|
| - entry->AddHostFields();
|
| + MakeLogEntryForSessionStateChange(connected));
|
| + AddHostFieldsToLogEntry(entry.get());
|
| entry->AddModeField(mode_);
|
|
|
| if (connected) {
|
| DCHECK(connection_route_type_.count(jid) == 1);
|
| - entry->AddConnectionTypeField(connection_route_type_[jid]);
|
| + AddConnectionTypeToLogEntry(entry.get(), connection_route_type_[jid]);
|
| }
|
| Log(*entry.get());
|
| }
|
|
|