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

Unified Diff: remoting/host/remoting_me2me_host.cc

Issue 12386035: Moving host status events monitoring to a separate interface (HostStatusMonitor). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 10 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/plugin/host_script_object.cc ('k') | remoting/host/resizing_host_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/remoting_me2me_host.cc
diff --git a/remoting/host/remoting_me2me_host.cc b/remoting/host/remoting_me2me_host.cc
index e645f8115f0924e213ef8c49be171cf72277f641..2d1a3b7c249dca496079ae9f3e490cd25bbac52f 100644
--- a/remoting/host/remoting_me2me_host.cc
+++ b/remoting/host/remoting_me2me_host.cc
@@ -935,17 +935,18 @@ void HostProcess::StartHost() {
this, host_id_, signal_strategy_.get(), directory_bot_jid_));
log_to_server_.reset(
- new LogToServer(host_, ServerLogEntry::ME2ME, signal_strategy_.get(),
- directory_bot_jid_));
- host_event_logger_ = HostEventLogger::Create(host_, kApplicationName);
+ new LogToServer(host_->AsWeakPtr(), ServerLogEntry::ME2ME,
+ signal_strategy_.get(), directory_bot_jid_));
+ host_event_logger_ =
+ HostEventLogger::Create(host_->AsWeakPtr(), kApplicationName);
resizing_host_observer_.reset(
- new ResizingHostObserver(desktop_resizer_.get(), host_));
+ new ResizingHostObserver(desktop_resizer_.get(), host_->AsWeakPtr()));
// Create a host observer to enable/disable curtain mode as clients connect
// and disconnect.
curtaining_host_observer_.reset(new CurtainingHostObserver(
- curtain_.get(), host_));
+ curtain_.get(), host_->AsWeakPtr()));
curtaining_host_observer_->SetEnableCurtaining(curtain_required_);
if (host_user_interface_.get()) {
« no previous file with comments | « remoting/host/plugin/host_script_object.cc ('k') | remoting/host/resizing_host_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698