| Index: remoting/protocol/fake_stream_socket.cc
|
| diff --git a/remoting/protocol/fake_stream_socket.cc b/remoting/protocol/fake_stream_socket.cc
|
| index 678b9f5caacdbf1d5eecc958e8e374b591ed94e4..4d0cb483ee13245c51ee5657a025dfa759da3846 100644
|
| --- a/remoting/protocol/fake_stream_socket.cc
|
| +++ b/remoting/protocol/fake_stream_socket.cc
|
| @@ -5,6 +5,7 @@
|
| #include "remoting/protocol/fake_stream_socket.h"
|
|
|
| #include "base/bind.h"
|
| +#include "base/callback_helpers.h"
|
| #include "base/single_thread_task_runner.h"
|
| #include "base/thread_task_runner_handle.h"
|
| #include "net/base/address_list.h"
|
| @@ -45,9 +46,7 @@ void FakeStreamSocket::AppendInputData(const std::string& data) {
|
| input_pos_ += result;
|
| read_buffer_ = nullptr;
|
|
|
| - net::CompletionCallback callback = read_callback_;
|
| - read_callback_.Reset();
|
| - callback.Run(result);
|
| + base::ResetAndReturn(&read_callback_).Run(result);
|
| }
|
| }
|
|
|
|
|