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

Unified Diff: chrome/browser/io_thread.cc

Issue 556094: Add fine grain tracing to HostResolverImpl.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Add explicit to ctors Created 10 years, 11 months 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/base/fixed_host_resolver.h » ('j') | net/base/host_resolver.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/io_thread.cc
===================================================================
--- chrome/browser/io_thread.cc (revision 37608)
+++ chrome/browser/io_thread.cc (working copy)
@@ -14,6 +14,7 @@
#include "net/base/fixed_host_resolver.h"
#include "net/base/host_cache.h"
#include "net/base/host_resolver.h"
+#include "net/base/host_resolver_impl.h"
#include "net/url_request/url_request.h"
namespace {
@@ -177,7 +178,10 @@
// Clear the host cache to avoid showing entries from the OTR session
// in about:net-internals.
- net::HostCache* host_cache = host_resolver_->GetHostCache();
- if (host_cache)
- host_cache->clear();
+ if (host_resolver_->IsHostResolverImpl()) {
+ net::HostCache* host_cache = static_cast<net::HostResolverImpl*>(
+ host_resolver_)->cache();
+ if (host_cache)
+ host_cache->clear();
+ }
}
Property changes on: chrome\browser\io_thread.cc
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « no previous file | net/base/fixed_host_resolver.h » ('j') | net/base/host_resolver.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698