Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1779)

Unified Diff: remoting/host/simple_host_process.cc

Issue 9158003: Added Me2Me-specific authenticator factory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix clang build Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/remoting_me2me_host.cc ('k') | remoting/protocol/me2me_host_authenticator_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
}
}
« no previous file with comments | « remoting/host/remoting_me2me_host.cc ('k') | remoting/protocol/me2me_host_authenticator_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698