Chromium Code Reviews| Index: remoting/host/host_status_logger.cc |
| diff --git a/remoting/host/host_status_logger.cc b/remoting/host/host_status_logger.cc |
| index d2407eeb8b0d94f16296fee4344a32881991f0ee..eeae93b5b1cae440b982ba862ada4cb918db9cfa 100644 |
| --- a/remoting/host/host_status_logger.cc |
| +++ b/remoting/host/host_status_logger.cc |
| @@ -36,10 +36,9 @@ void HostStatusLogger::LogSessionStateChange(const std::string& jid, |
| AddHostFieldsToLogEntry(entry.get()); |
| entry->AddModeField(log_to_server_.mode()); |
| - if (connected) { |
| - DCHECK_EQ(connection_route_type_.count(jid), 1u); |
| + if (connected && connection_route_type_.count(jid) > 0) |
|
Jamie
2015/12/10 18:34:15
Why this change? And why not just change the DCHEC
Sergey Ulanov
2015/12/10 22:18:17
Currently WebrtcTransport doesn't report route typ
Jamie
2015/12/10 22:29:17
Do you mean that with WebRTC LogSessionStateChange
Sergey Ulanov
2015/12/10 22:48:05
No. With WebrtcTransport LogSessionStateChange() i
|
| AddConnectionTypeToLogEntry(entry.get(), connection_route_type_[jid]); |
|
Jamie
2015/12/10 22:29:17
Is this line still correct, even if connection_rou
Sergey Ulanov
2015/12/10 22:48:05
connection_route_type_ is a map (not std::multimap
|
| - } |
| + |
| log_to_server_.Log(*entry.get()); |
| } |