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

Unified Diff: remoting/host/remoting_me2me_host.cc

Issue 12703020: Destroy NetworkChangeNotifier on the thread on which it is created (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 | no next file » | 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 8ef959a6c0af2f0aeb36430340f993be1ea14186..05b941ba995d6277969c519365c245d60628c8f3 100644
--- a/remoting/host/remoting_me2me_host.cc
+++ b/remoting/host/remoting_me2me_host.cc
@@ -331,9 +331,6 @@ HostProcess::HostProcess(scoped_ptr<ChromotingHostContext> context,
#endif // defined(REMOTING_MULTI_PROCESS)
ALLOW_THIS_IN_INITIALIZER_LIST(self_(this)),
exit_code_out_(exit_code_out) {
- // Create a NetworkChangeNotifier for use by the signalling connector.
- network_change_notifier_.reset(net::NetworkChangeNotifier::Create());
-
// Create the platform-specific curtain-mode implementation.
// TODO(wez): Create this on the network thread?
curtain_ = CurtainMode::Create(
@@ -913,6 +910,9 @@ void HostProcess::StartHost() {
new DnsBlackholeChecker(context_->url_request_context_getter(),
talkgadget_prefix_));
+ // Create a NetworkChangeNotifier for use by the signaling connector.
+ network_change_notifier_.reset(net::NetworkChangeNotifier::Create());
+
signaling_connector_.reset(new SignalingConnector(
signal_strategy_.get(),
context_->url_request_context_getter(),
@@ -1072,6 +1072,7 @@ void HostProcess::ShutdownOnNetworkThread() {
host_change_notification_listener_.reset();
signaling_connector_.reset();
signal_strategy_.reset();
+ network_change_notifier_.reset();
if (state_ == HOST_STOPPING_TO_RESTART) {
StartHost();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698