From 9e2a3137641bc104980e13388b6088d3f4a9b52f Mon Sep 17 00:00:00 2001 From: "sergeyu@chromium.org" Date: Fri, 7 Oct 2011 05:07:40 +0000 Subject: Switch remoting/protocol to new callbacks There is still some code that uses old callbacks (particularly unittests) - I will convert them in a separate CL. BUG=None TEST=Unittests Review URL: http://codereview.chromium.org/8116021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104440 0039d316-1c4b-4281-b951-d872f2087c98 --- remoting/protocol/fake_session.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'remoting/protocol/fake_session.cc') diff --git a/remoting/protocol/fake_session.cc b/remoting/protocol/fake_session.cc index 0cda8bb..a794e41 100644 --- a/remoting/protocol/fake_session.cc +++ b/remoting/protocol/fake_session.cc @@ -220,8 +220,8 @@ FakeUdpSocket* FakeSession::GetDatagramChannel(const std::string& name) { return datagram_channels_[name]; } -void FakeSession::SetStateChangeCallback(StateChangeCallback* callback) { - callback_.reset(callback); +void FakeSession::SetStateChangeCallback(const StateChangeCallback& callback) { + callback_ = callback; } Session::Error FakeSession::error() { -- cgit v1.1