| Index: remoting/protocol/fake_authenticator.cc
|
| diff --git a/remoting/protocol/fake_authenticator.cc b/remoting/protocol/fake_authenticator.cc
|
| index 2d25898a75a57b05ee27f16555798459190b2446..416d391ad409f97ac75b165693abb81a8457890c 100644
|
| --- a/remoting/protocol/fake_authenticator.cc
|
| +++ b/remoting/protocol/fake_authenticator.cc
|
| @@ -37,9 +37,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.
|
|
|