Put DnsProbeService on IOThread.
Instantiate the DnsProbeService in IOThread::Globals. We'll access it from
the NetErrorTabHelper using a couple of stubs that are run on the IO thread.
BUG=156415
TEST=doesn't change how the service works
Review URL: https://chromiumcodereview.appspot.com/11395002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167527 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/io_thread.cc b/chrome/browser/io_thread.cc
index c9bd57b7..29c6c4a0 100644
--- a/chrome/browser/io_thread.cc
+++ b/chrome/browser/io_thread.cc
@@ -27,6 +27,7 @@
#include "chrome/browser/net/chrome_network_delegate.h"
#include "chrome/browser/net/chrome_url_request_context.h"
#include "chrome/browser/net/connect_interceptor.h"
+#include "chrome/browser/net/dns_probe_service.h"
#include "chrome/browser/net/http_pipelining_compatibility_client.h"
#include "chrome/browser/net/load_time_stats.h"
#include "chrome/browser/net/pref_proxy_config_tracker.h"
@@ -464,6 +465,7 @@
new net::ServerBoundCertService(
new net::DefaultServerBoundCertStore(NULL),
base::WorkerPool::GetTaskRunner(true)));
+ globals_->dns_probe_service.reset(new chrome_browser_net::DnsProbeService());
globals_->load_time_stats.reset(new chrome_browser_net::LoadTimeStats());
globals_->host_mapping_rules.reset(new net::HostMappingRules());
globals_->http_user_agent_settings.reset(