| Index: remoting/host/screen_recorder.cc
|
| diff --git a/remoting/host/screen_recorder.cc b/remoting/host/screen_recorder.cc
|
| index cca7c37341ab5f4b093e7e454da1b9351f9efefa..98266e3cf02bf768fe5cd5ec1f5eca3e2fc39a76 100644
|
| --- a/remoting/host/screen_recorder.cc
|
| +++ b/remoting/host/screen_recorder.cc
|
| @@ -268,17 +268,16 @@ void ScreenRecorder::DoSendVideoPacket(VideoPacket* packet) {
|
|
|
| for (ConnectionToClientList::const_iterator i = connections_.begin();
|
| i < connections_.end(); ++i) {
|
| - Task* done_task = NULL;
|
| + base::Closure done_task;
|
|
|
| // Call FrameSentCallback() only for the last packet in the first
|
| // connection.
|
| if (last && i == connections_.begin()) {
|
| - done_task = NewRunnableMethod(this, &ScreenRecorder::FrameSentCallback,
|
| - packet);
|
| + done_task = base::Bind(&ScreenRecorder::FrameSentCallback, this, packet);
|
| } else {
|
| // TODO(hclam): Fix this code since it causes multiple deletion if there's
|
| // more than one connection.
|
| - done_task = new DeleteTask<VideoPacket>(packet);
|
| + done_task = base::Bind(&DeletePointer<VideoPacket>, packet);
|
| }
|
|
|
| (*i)->video_stub()->ProcessVideoPacket(packet, done_task);
|
|
|