Index: remoting/host/simple_host_process.cc |
diff --git a/remoting/host/simple_host_process.cc b/remoting/host/simple_host_process.cc |
index f7fbbe0ab20924586ef8caae15294af3401a55df..b34c1b8b3c21a22c3353f63980fedcd9be449815 100644 |
--- a/remoting/host/simple_host_process.cc |
+++ b/remoting/host/simple_host_process.cc |
@@ -47,7 +47,7 @@ |
#include "remoting/jingle_glue/xmpp_signal_strategy.h" |
#include "remoting/proto/video.pb.h" |
#include "remoting/protocol/it2me_host_authenticator_factory.h" |
-#include "remoting/protocol/v1_authenticator.h" |
+#include "remoting/protocol/me2me_host_authenticator_factory.h" |
#if defined(TOOLKIT_USES_GTK) |
#include "ui/gfx/gtk_util.h" |
@@ -235,13 +235,15 @@ class SimpleHost { |
host_->Start(); |
- // Set an empty shared-secret for Me2Me. |
- // TODO(sergeyu): This is a temporary hack pending us adding a way |
- // to set a PIN. crbug.com/105214 . |
+ // Create a Me2Me authenticator factory. |
+ // |
+ // TODO(sergeyu): Currently empty PIN is used. This is a temporary |
+ // hack pending us adding a way to set a PIN. crbug.com/105214 . |
if (!is_it2me_) { |
scoped_ptr<protocol::AuthenticatorFactory> factory( |
- new protocol::V1HostAuthenticatorFactory( |
- key_pair_.GenerateCertificate(), key_pair_.private_key(), "")); |
+ new protocol::Me2MeHostAuthenticatorFactory( |
+ xmpp_login_, key_pair_.GenerateCertificate(), |
+ key_pair_.private_key(), "")); |
host_->SetAuthenticatorFactory(factory.Pass()); |
} |
} |