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

Unified Diff: remoting/protocol/fake_session.cc

Issue 7605018: Simplify channel creation callbacks in remoting::Session interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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
Index: remoting/protocol/fake_session.cc
diff --git a/remoting/protocol/fake_session.cc b/remoting/protocol/fake_session.cc
index a2496a7a674efd4c58e0a09207348cc2604561c7..65792089ca6685e8f4facc6fa180e4ed6e2a331f 100644
--- a/remoting/protocol/fake_session.cc
+++ b/remoting/protocol/fake_session.cc
@@ -210,17 +210,16 @@ void FakeSession::SetStateChangeCallback(StateChangeCallback* callback) {
void FakeSession::CreateStreamChannel(
const std::string& name, const StreamChannelCallback& callback) {
- LOG(ERROR) << " creating channel " << name;
FakeSocket* channel = new FakeSocket();
stream_channels_[name] = channel;
- callback.Run(name, channel);
+ callback.Run(channel);
}
void FakeSession::CreateDatagramChannel(
const std::string& name, const DatagramChannelCallback& callback) {
FakeUdpSocket* channel = new FakeUdpSocket();
datagram_channels_[name] = channel;
- callback.Run(name, channel);
+ callback.Run(channel);
}
FakeSocket* FakeSession::control_channel() {
« no previous file with comments | « no previous file | remoting/protocol/jingle_datagram_connector.cc » ('j') | remoting/protocol/rtp_video_reader.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698