summaryrefslogtreecommitdiffstats
path: root/net/url_request
diff options
context:
space:
mode:
authoreroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-19 20:27:02 +0000
committereroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-19 20:27:02 +0000
commit970210cdcd03803acfe9f08bfa20edb5e84f07ce (patch)
treef45d20277969a6b33b27194e7604de9419ff67bb /net/url_request
parentfc9023fa5d45af40509a20263142ad7191620e00 (diff)
downloadchromium_src-970210cdcd03803acfe9f08bfa20edb5e84f07ce.zip
chromium_src-970210cdcd03803acfe9f08bfa20edb5e84f07ce.tar.gz
chromium_src-970210cdcd03803acfe9f08bfa20edb5e84f07ce.tar.bz2
Make MappedHostResolver display its internals on the about:net-internals page (so use of the --host-resolver-rules flag doesn't limit features), and run through the Shutdown() method on exit.
This reworks the "IsHostResolverImpl()" hack to be a bit more general. BUG=36053 Review URL: http://codereview.chromium.org/646003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39488 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request')
-rw-r--r--net/url_request/url_request_view_net_internals_job.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/net/url_request/url_request_view_net_internals_job.cc b/net/url_request/url_request_view_net_internals_job.cc
index 15986f6..38349a4 100644
--- a/net/url_request/url_request_view_net_internals_job.cc
+++ b/net/url_request/url_request_view_net_internals_job.cc
@@ -51,9 +51,7 @@ void DrawCommandButton(const std::string& title,
//------------------------------------------------------------------------------
net::HostResolverImpl* GetHostResolverImpl(URLRequestContext* context) {
- if (context->host_resolver()->IsHostResolverImpl())
- return static_cast<net::HostResolverImpl*> (context->host_resolver());
- return NULL;
+ return context->host_resolver()->GetAsHostResolverImpl();
}
net::HostCache* GetHostCache(URLRequestContext* context) {