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

Unified Diff: remoting/host/remoting_me2me_host.cc

Issue 903963002: Don't create a pairing registry on platforms that don't provide a delegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 | no next file » | 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 291aba6b7d684f0c1055e574ca371e50439c8821..1f0fc5559c79b05ce102eb7ade7d38533f68a038 100644
--- a/remoting/host/remoting_me2me_host.cc
+++ b/remoting/host/remoting_me2me_host.cc
@@ -629,8 +629,9 @@ void HostProcess::CreateAuthenticatorFactory() {
scoped_ptr<PairingRegistry::Delegate> delegate =
CreatePairingRegistryDelegate();
- pairing_registry_ = new PairingRegistry(context_->file_task_runner(),
- delegate.Pass());
+ if (delegate)
+ pairing_registry_ = new PairingRegistry(context_->file_task_runner(),
+ delegate.Pass());
}
#endif // defined(OS_WIN)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698