| Index: remoting/protocol/fake_authenticator.cc
|
| diff --git a/remoting/protocol/fake_authenticator.cc b/remoting/protocol/fake_authenticator.cc
|
| index 5cb2f21dd59bad821b33da6b80e56f0eb67e0c6d..705bdf19de4e3fbfd374d299bfec772f23cef058 100644
|
| --- a/remoting/protocol/fake_authenticator.cc
|
| +++ b/remoting/protocol/fake_authenticator.cc
|
| @@ -35,9 +35,9 @@ void FakeChannelAuthenticator::SecureAndAuthenticate(
|
| const DoneCallback& done_callback) {
|
| socket_ = std::move(socket);
|
|
|
| - if (async_) {
|
| - done_callback_ = done_callback;
|
| + done_callback_ = done_callback;
|
|
|
| + if (async_) {
|
| if (result_ != net::OK) {
|
| // Don't write anything if we are going to reject auth to make test
|
| // ordering deterministic.
|
|
|