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

Unified Diff: remoting/host/host_status_logger.cc

Issue 1506383004: Enable WebRTC support in the remoting host. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@webrtc_protocol
Patch Set: Created 5 years 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 | « remoting/host/chromoting_host_unittest.cc ('k') | remoting/host/remoting_me2me_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
}
« no previous file with comments | « remoting/host/chromoting_host_unittest.cc ('k') | remoting/host/remoting_me2me_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698