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

Unified Diff: net/dns/dns_client.cc

Issue 11573012: patch from issue 10878090 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 | net/dns/dns_session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/dns_client.cc
diff --git a/net/dns/dns_client.cc b/net/dns/dns_client.cc
index b9c2279a140c2635dc1eb8120ee3fa0f01e86d2e..91141fd22bf1282fcd57657c69871b85985d5d58 100644
--- a/net/dns/dns_client.cc
+++ b/net/dns/dns_client.cc
@@ -10,6 +10,7 @@
#include "net/dns/address_sorter.h"
#include "net/dns/dns_config_service.h"
#include "net/dns/dns_session.h"
+#include "net/dns/dns_socket_pool.h"
#include "net/dns/dns_transaction.h"
#include "net/socket/client_socket_factory.h"
@@ -27,8 +28,9 @@ class DnsClientImpl : public DnsClient {
factory_.reset();
session_ = NULL;
if (config.IsValid()) {
+ ClientSocketFactory* factory = ClientSocketFactory::GetDefaultFactory();
session_ = new DnsSession(config,
- ClientSocketFactory::GetDefaultFactory(),
+ DnsSocketPool::CreateDefault(factory),
base::Bind(&base::RandInt),
net_log_);
factory_ = DnsTransactionFactory::CreateFactory(session_);
« no previous file with comments | « no previous file | net/dns/dns_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698