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

Unified Diff: remoting/host/chromoting_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/chromoting_host.h ('k') | remoting/host/curtaining_host_observer.h » ('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 848b926c7f8c014b48fde844b40ddac48123721b..68009d493aec35b94183ba1eb3aae394aa44fc28 100644
--- a/remoting/host/chromoting_host.cc
+++ b/remoting/host/chromoting_host.cc
@@ -78,7 +78,8 @@ ChromotingHost::ChromotingHost(
protocol_config_(protocol::CandidateSessionConfig::CreateDefault()),
login_backoff_(&kDefaultBackoffPolicy),
authenticating_client_(false),
- reject_authenticating_client_(false) {
+ reject_authenticating_client_(false),
+ ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)) {
DCHECK(signal_strategy);
DCHECK(network_task_runner_->BelongsToCurrentThread());
@@ -409,6 +410,8 @@ void ChromotingHost::ShutdownFinish() {
it->Run();
}
shutdown_tasks_.clear();
+
+ weak_factory_.InvalidateWeakPtrs();
}
} // namespace remoting
« no previous file with comments | « remoting/host/chromoting_host.h ('k') | remoting/host/curtaining_host_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698