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

Unified Diff: remoting/host/chromoting_host.cc

Issue 9288040: Log client IP addresses to syslog in Me2Me host. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 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 | « no previous file | remoting/host/host_event_logger.h » ('j') | remoting/host/host_event_logger.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/chromoting_host.cc
diff --git a/remoting/host/chromoting_host.cc b/remoting/host/chromoting_host.cc
index 0e8561a6719f4e41c6677aa112017fa07c739ab3..33ce12a909b110d1ee700df2f4a0935f18870ba6 100644
--- a/remoting/host/chromoting_host.cc
+++ b/remoting/host/chromoting_host.cc
@@ -228,8 +228,12 @@ void ChromotingHost::OnSessionSequenceNumber(ClientSession* session,
void ChromotingHost::OnSessionIpAddress(ClientSession* session,
const std::string& channel_name,
const net::IPEndPoint& end_point) {
- // TODO(lambroslambrou): Notify the HostStatusObservers via a new interface
- // method.
+ DCHECK(context_->network_message_loop()->BelongsToCurrentThread());
+
+ // Notify observers.
Sergey Ulanov 2012/01/26 00:48:56 this comment is redundant
Lambros 2012/01/26 19:40:14 Done (it was a copy-paste).
+ FOR_EACH_OBSERVER(HostStatusObserver, status_observers_,
+ OnClientIpAddress(session->client_jid(), channel_name,
+ end_point));
}
void ChromotingHost::OnSessionManagerReady() {
« no previous file with comments | « no previous file | remoting/host/host_event_logger.h » ('j') | remoting/host/host_event_logger.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698