diff options
author | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-05 20:57:33 +0000 |
---|---|---|
committer | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-05 20:57:33 +0000 |
commit | e4d2dd820e629b628cd41da02af35b800a47cfce (patch) | |
tree | 19261e63509fb929c0038e3652acfb5e898c2fa8 /chrome/browser/io_thread.cc | |
parent | f94614d873ea7983b042dd37448c1b2e3aa82712 (diff) | |
download | chromium_src-e4d2dd820e629b628cd41da02af35b800a47cfce.zip chromium_src-e4d2dd820e629b628cd41da02af35b800a47cfce.tar.gz chromium_src-e4d2dd820e629b628cd41da02af35b800a47cfce.tar.bz2 |
Remove the HostResolver::Shutdown() method.
While this doesn't entirely remove the hack, it limits the scope of it to HostResolverImpl.
Hopefully in the future HostResolver will not be refcounted so this can go away altogether.
BUG=18373
Review URL: http://codereview.chromium.org/569035
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38243 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/io_thread.cc')
-rw-r--r-- | chrome/browser/io_thread.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/chrome/browser/io_thread.cc b/chrome/browser/io_thread.cc index da4bb20..39f4cf6 100644 --- a/chrome/browser/io_thread.cc +++ b/chrome/browser/io_thread.cc @@ -129,8 +129,11 @@ void IOThread::CleanUp() { prefetch_observer_ = NULL; } - // TODO(eroman): temp hack for http://crbug.com/15513 - globals_->host_resolver->Shutdown(); + // TODO(eroman): hack for http://crbug.com/15513 + if (globals_->host_resolver->IsHostResolverImpl()) { + static_cast<net::HostResolverImpl*>( + globals_->host_resolver.get())->Shutdown(); + } delete globals_; globals_ = NULL; |