Index: remoting/protocol/it2me_host_authenticator_factory.cc |
diff --git a/remoting/protocol/it2me_host_authenticator_factory.cc b/remoting/protocol/it2me_host_authenticator_factory.cc |
index e9f6c094a3bce827242dd719d2fe299bf6a3636a..e5e446a81a7fbd29259d9fa8e0f62e6b665aa49c 100644 |
--- a/remoting/protocol/it2me_host_authenticator_factory.cc |
+++ b/remoting/protocol/it2me_host_authenticator_factory.cc |
@@ -27,8 +27,8 @@ scoped_ptr<Authenticator> It2MeHostAuthenticatorFactory::CreateAuthenticator( |
const std::string& local_jid, |
const std::string& remote_jid, |
const buzz::XmlElement* first_message) { |
- return scoped_ptr<Authenticator>(new NegotiatingHostAuthenticator( |
- local_cert_, key_pair_, shared_secret_, AuthenticationMethod::NONE)); |
+ return NegotiatingHostAuthenticator::CreateWithSharedSecret( |
+ local_cert_, key_pair_, shared_secret_, AuthenticationMethod::NONE); |
} |
} // namespace protocol |