Index: remoting/host/remoting_me2me_host.cc |
diff --git a/remoting/host/remoting_me2me_host.cc b/remoting/host/remoting_me2me_host.cc |
index 7b7d3e3bb09cc8985738c476e40603ebbaee2262..f2dcdaed096142b2a2f2510d09135f8d4b439dab 100644 |
--- a/remoting/host/remoting_me2me_host.cc |
+++ b/remoting/host/remoting_me2me_host.cc |
@@ -481,12 +481,8 @@ void HostProcess::CreateAuthenticatorFactory() { |
return; |
} |
- scoped_refptr<protocol::PairingRegistry> pairing_registry = NULL; |
- scoped_ptr<protocol::PairingRegistry::Delegate> delegate( |
- CreatePairingRegistryDelegate(context_->file_task_runner())); |
- if (delegate) { |
- pairing_registry = new protocol::PairingRegistry(delegate.Pass()); |
- } |
+ scoped_refptr<protocol::PairingRegistry> pairing_registry = |
+ CreatePairingRegistry(context_->file_task_runner()); |
scoped_ptr<protocol::AuthenticatorFactory> factory; |