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

Unified Diff: remoting/host/chromoting_host.cc

Issue 10893009: Log when the host is started for an account. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change shutdown log to a TODO, update unit test expectations. Created 8 years, 4 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 | « remoting/host/chromoting_host.h ('k') | remoting/host/chromoting_host_unittest.cc » ('j') | no next file with comments »
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 9a9abee43c591ea9728d257d29b1bc55a1c25eb9..e902ce6d943381120ab6495bfcef3ffbda296ec0 100644
--- a/remoting/host/chromoting_host.cc
+++ b/remoting/host/chromoting_host.cc
@@ -96,7 +96,7 @@ ChromotingHost::~ChromotingHost() {
DCHECK(clients_.empty());
}
-void ChromotingHost::Start() {
+void ChromotingHost::Start(const std::string& xmpp_login) {
DCHECK(context_->network_task_runner()->BelongsToCurrentThread());
LOG(INFO) << "Starting host";
@@ -106,6 +106,9 @@ void ChromotingHost::Start() {
return;
state_ = kStarted;
+ FOR_EACH_OBSERVER(HostStatusObserver, status_observers_,
+ OnStart(xmpp_login));
+
// Start the SessionManager, supplying this ChromotingHost as the listener.
session_manager_->Init(signal_strategy_, this);
}
« no previous file with comments | « remoting/host/chromoting_host.h ('k') | remoting/host/chromoting_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698