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

Unified Diff: chrome/utility/local_discovery/service_discovery_message_handler.cc

Issue 87693002: Refactored to make MDnsSocketFactory return array of sockets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | « chrome/utility/local_discovery/service_discovery_client_unittest.cc ('k') | net/dns/mdns_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/utility/local_discovery/service_discovery_message_handler.cc
diff --git a/chrome/utility/local_discovery/service_discovery_message_handler.cc b/chrome/utility/local_discovery/service_discovery_message_handler.cc
index e03853f77d00c621abaca271418f9ec404b7564f..d685e810ccf7d867a3cc11393396adbe97ce5264 100644
--- a/chrome/utility/local_discovery/service_discovery_message_handler.cc
+++ b/chrome/utility/local_discovery/service_discovery_message_handler.cc
@@ -162,7 +162,9 @@ void ServiceDiscoveryMessageHandler::InitializeMdns() {
{
// Temporarily redirect network code to use pre-created sockets.
ScopedSocketFactorySetter socket_factory_setter;
- if (!mdns_client_->StartListening()) {
+ scoped_ptr<net::MDnsSocketFactory> mdns_sockets =
+ net::MDnsSocketFactory::CreateDefault();
+ if (!mdns_client_->StartListening(mdns_sockets.get())) {
VLOG(1) << "Failed to start MDnsClient";
Send(new LocalDiscoveryHostMsg_Error());
return;
« no previous file with comments | « chrome/utility/local_discovery/service_discovery_client_unittest.cc ('k') | net/dns/mdns_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698