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

Unified Diff: remoting/host/chromoting_host.cc

Issue 9433027: Delete Session and SessionManager object synchronously. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 8 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/protocol/connection_to_client.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 920ad1e39b4e34b1b2b1173bdd1c5e09c88616b9..0b9ee8f5fb45014b9d32161545d966127a9f489d 100644
--- a/remoting/host/chromoting_host.cc
+++ b/remoting/host/chromoting_host.cc
@@ -39,7 +39,6 @@ ChromotingHost::ChromotingHost(
: context_(context),
desktop_environment_(environment),
network_settings_(network_settings),
- have_shared_secret_(false),
signal_strategy_(signal_strategy),
stopping_recorders_(0),
state_(kInitial),
@@ -101,18 +100,10 @@ void ChromotingHost::Shutdown(const base::Closure& shutdown_task) {
clients_.front()->Disconnect();
}
- // Stop session manager.
- if (session_manager_.get()) {
- session_manager_->Close();
- // It may not be safe to delete |session_manager_| here becase
- // this method may be invoked in response to a libjingle event and
- // libjingle's sigslot doesn't handle it properly, so postpone the
- // deletion.
- context_->network_message_loop()->DeleteSoon(
- FROM_HERE, session_manager_.release());
- have_shared_secret_ = false;
- }
+ // Destroy session manager.
+ session_manager_.reset();
+ // Stop screen recorder
if (recorder_.get()) {
StopScreenRecorder();
} else if (!stopping_recorders_) {
« no previous file with comments | « remoting/host/chromoting_host.h ('k') | remoting/protocol/connection_to_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698