| Index: chrome/browser/io_thread.cc
|
| diff --git a/chrome/browser/io_thread.cc b/chrome/browser/io_thread.cc
|
| index 050589af94573b04148dd6139778dfd2247224f5..afc1806c8c142127bd2b68a4460cc11ef57d7555 100644
|
| --- a/chrome/browser/io_thread.cc
|
| +++ b/chrome/browser/io_thread.cc
|
| @@ -748,12 +748,13 @@ void IOThread::CreateDefaultAuthHandlerFactory() {
|
| globals_->http_auth_preferences.get(), globals_->host_resolver.get());
|
| }
|
|
|
| -void IOThread::ClearHostCache() {
|
| +void IOThread::ClearHostCache(
|
| + const base::Callback<bool(const std::string&)>& host_filter) {
|
| DCHECK_CURRENTLY_ON(BrowserThread::IO);
|
|
|
| net::HostCache* host_cache = globals_->host_resolver->GetHostCache();
|
| if (host_cache)
|
| - host_cache->clear();
|
| + host_cache->ClearForHosts(host_filter);
|
| }
|
|
|
| const net::HttpNetworkSession::Params& IOThread::NetworkSessionParams() const {
|
| @@ -773,7 +774,7 @@ void IOThread::ChangedToOnTheRecordOnIOThread() {
|
|
|
| // Clear the host cache to avoid showing entries from the OTR session
|
| // in about:net-internals.
|
| - ClearHostCache();
|
| + ClearHostCache(base::Callback<bool(const std::string&)>());
|
| }
|
|
|
| void IOThread::InitSystemRequestContext() {
|
|
|