diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-11 02:51:34 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-11 02:51:34 +0000 |
commit | dee7ab58e1a59241891e85f43d2996b54c5ea7ec (patch) | |
tree | 8ad5431d969f29ace1ff3842f1909a62d9a7d96d /remoting/protocol/protobuf_video_writer.cc | |
parent | cec09ef0ecb8f5e2f2171797d27b7ea1a496ddfb (diff) | |
download | chromium_src-dee7ab58e1a59241891e85f43d2996b54c5ea7ec.zip chromium_src-dee7ab58e1a59241891e85f43d2996b54c5ea7ec.tar.gz chromium_src-dee7ab58e1a59241891e85f43d2996b54c5ea7ec.tar.bz2 |
Simplify channel creation callbacks in remoting::Session interface.
Remove name parameters from StreamChannelCallback and
DatagramChannelCallback. This argument is redundant: callback currying
can be used instead where neccessary.
BUG=None
TEST=compiles.
Review URL: http://codereview.chromium.org/7605018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96310 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/protocol/protobuf_video_writer.cc')
-rw-r--r-- | remoting/protocol/protobuf_video_writer.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/remoting/protocol/protobuf_video_writer.cc b/remoting/protocol/protobuf_video_writer.cc index 2d37f65..0b1705a 100644 --- a/remoting/protocol/protobuf_video_writer.cc +++ b/remoting/protocol/protobuf_video_writer.cc @@ -29,9 +29,7 @@ void ProtobufVideoWriter::Init(protocol::Session* session, base::Bind(&ProtobufVideoWriter::OnChannelReady, base::Unretained(this))); } -void ProtobufVideoWriter::OnChannelReady(const std::string& name, - net::StreamSocket* socket) { - DCHECK_EQ(name, std::string(kVideoChannelName)); +void ProtobufVideoWriter::OnChannelReady(net::StreamSocket* socket) { if (!socket) { initialized_callback_.Run(false); return; |