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

Unified Diff: remoting/host/remoting_me2me_host.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 | « no previous file | remoting/host/simple_host_process.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/remoting_me2me_host.cc
diff --git a/remoting/host/remoting_me2me_host.cc b/remoting/host/remoting_me2me_host.cc
index 21a4f408e751153b8353f8ccf3c92c6d4f3d10b9..3a3192b41092c6d1a765c22128f33fc608a717df 100644
--- a/remoting/host/remoting_me2me_host.cc
+++ b/remoting/host/remoting_me2me_host.cc
@@ -30,7 +30,7 @@
#include "remoting/host/json_host_config.h"
#include "remoting/host/signaling_connector.h"
#include "remoting/jingle_glue/xmpp_signal_strategy.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"
@@ -161,13 +161,14 @@ class HostProcess {
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 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 .
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 | « no previous file | remoting/host/simple_host_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698