Index: chrome/browser/renderer_host/chrome_render_message_filter.cc |
diff --git a/chrome/browser/renderer_host/chrome_render_message_filter.cc b/chrome/browser/renderer_host/chrome_render_message_filter.cc |
index 0c90d4bf7e2bb7da7f74bcb10ca7682b3e76e32c..5cc12936ca325bae200dd1f2832ab997aa4d0cb2 100644 |
--- a/chrome/browser/renderer_host/chrome_render_message_filter.cc |
+++ b/chrome/browser/renderer_host/chrome_render_message_filter.cc |
@@ -17,7 +17,7 @@ |
#include "chrome/browser/metrics/histogram_synchronizer.h" |
#include "chrome/browser/nacl_host/nacl_process_host.h" |
#include "chrome/browser/net/chrome_url_request_context.h" |
-#include "chrome/browser/net/predictor.h" |
+#include "chrome/browser/net/predictor_api.h" |
#include "chrome/browser/prefs/pref_member.h" |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/browser/task_manager/task_manager.h" |
@@ -191,8 +191,7 @@ void ChromeRenderMessageFilter::OnLaunchNaCl( |
void ChromeRenderMessageFilter::OnDnsPrefetch( |
const std::vector<std::string>& hostnames) { |
- if (profile_->GetNetworkPredictor()) |
- profile_->GetNetworkPredictor()->DnsPrefetchList(hostnames); |
+ chrome_browser_net::DnsPrefetchList(hostnames); |
} |
void ChromeRenderMessageFilter::OnRendererHistograms( |
@@ -521,9 +520,7 @@ void ChromeRenderMessageFilter::OnCanTriggerClipboardWrite(const GURL& url, |
void ChromeRenderMessageFilter::OnClearPredictorCache(int* result) { |
// This function is disabled unless the user has enabled |
// benchmarking extensions. |
- chrome_browser_net::Predictor* predictor = profile_->GetNetworkPredictor(); |
- if (predictor) |
- predictor->DiscardAllResults(); |
+ chrome_browser_net::ClearPredictorCache(); |
*result = 0; |
} |