summaryrefslogtreecommitdiffstats
path: root/remoting/host/log_to_server.h
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-17 20:30:11 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-17 20:30:11 +0000
commit8144871ca2fb49c62c3a77aa95a3045e3c7a9c99 (patch)
treebbc3ca14e2daf8f0cbc0877b7ee81a7275da7710 /remoting/host/log_to_server.h
parentf47a5b90a630194445e4c5cafc331acdddcc0778 (diff)
downloadchromium_src-8144871ca2fb49c62c3a77aa95a3045e3c7a9c99.zip
chromium_src-8144871ca2fb49c62c3a77aa95a3045e3c7a9c99.tar.gz
chromium_src-8144871ca2fb49c62c3a77aa95a3045e3c7a9c99.tar.bz2
Add ChromotingHost::RemoveStatusObserver().
Now HostStatusObservers can be added or removed at any time. ObserverList<> is used to store the list of observers. This allows deletion of status observers before host is destroyed. It was previously causing a crash described in http://crbug.com/110196 . BUG=110196 Review URL: https://chromiumcodereview.appspot.com/9231002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117947 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/log_to_server.h')
-rw-r--r--remoting/host/log_to_server.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/remoting/host/log_to_server.h b/remoting/host/log_to_server.h
index 4d5d77d7..76fba6c 100644
--- a/remoting/host/log_to_server.h
+++ b/remoting/host/log_to_server.h
@@ -34,7 +34,8 @@ class LogToServer : public base::NonThreadSafe,
public HostStatusObserver,
public SignalStrategy::Listener {
public:
- explicit LogToServer(SignalStrategy* signal_strategy);
+ explicit LogToServer(ChromotingHost* host,
+ SignalStrategy* signal_strategy);
virtual ~LogToServer();
// Logs a session state change. Currently, this is either