Index: remoting/host/remoting_me2me_host.cc |
diff --git a/remoting/host/remoting_me2me_host.cc b/remoting/host/remoting_me2me_host.cc |
index 3af312364861ee8e1c456dcc9d0071d7fdcc6059..af8861bdff8aa122a717e04a5d4273309d9b5a18 100644 |
--- a/remoting/host/remoting_me2me_host.cc |
+++ b/remoting/host/remoting_me2me_host.cc |
@@ -482,12 +482,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; |