| Index: remoting/host/it2me/it2me_host.cc
|
| diff --git a/remoting/host/it2me/it2me_host.cc b/remoting/host/it2me/it2me_host.cc
|
| index 0ea715f3231449342b66acbac4b380b5e30e9ff4..a67511cbe014a929b301f2159de6713804c55f16 100644
|
| --- a/remoting/host/it2me/it2me_host.cc
|
| +++ b/remoting/host/it2me/it2me_host.cc
|
| @@ -5,6 +5,7 @@
|
| #include "remoting/host/it2me/it2me_host.h"
|
|
|
| #include "base/bind.h"
|
| +#include "base/callback_helpers.h"
|
| #include "base/strings/string_util.h"
|
| #include "base/threading/platform_thread.h"
|
| #include "net/socket/client_socket_factory.h"
|
| @@ -371,8 +372,7 @@ void It2MeHost::OnPolicyUpdate(scoped_ptr<base::DictionaryValue> policies) {
|
| policy_received_ = true;
|
|
|
| if (!pending_connect_.is_null()) {
|
| - pending_connect_.Run();
|
| - pending_connect_.Reset();
|
| + base::ResetAndReturn(&pending_connect_).Run();
|
| }
|
| }
|
|
|
|
|