Index: chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc |
diff --git a/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc b/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc |
index 21375335366c7f380a4e378bb8fdbc4a98afa155..d0157be18043a254272aace778c8676788b46e56 100644 |
--- a/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc |
+++ b/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc |
@@ -152,9 +152,10 @@ void ChromeResourceDispatcherHostDelegate::RequestBeginning( |
throttles); |
ProfileIOData* io_data = ProfileIOData::FromResourceContext(resource_context); |
- if (io_data->resource_prefetch_predictor_observer()) |
+ if (io_data->resource_prefetch_predictor_observer()) { |
io_data->resource_prefetch_predictor_observer()->OnRequestStarted( |
request, resource_type, child_id, route_id); |
+ } |
} |
void ChromeResourceDispatcherHostDelegate::DownloadStarting( |
@@ -360,6 +361,7 @@ void ChromeResourceDispatcherHostDelegate::OnResponseStarted( |
} |
void ChromeResourceDispatcherHostDelegate::OnRequestRedirected( |
+ const GURL& redirect_url, |
net::URLRequest* request, |
content::ResourceContext* resource_context, |
content::ResourceResponse* response) { |
@@ -376,9 +378,10 @@ void ChromeResourceDispatcherHostDelegate::OnRequestRedirected( |
#endif |
ProfileIOData* io_data = ProfileIOData::FromResourceContext(resource_context); |
- if (io_data->resource_prefetch_predictor_observer()) |
+ if (io_data->resource_prefetch_predictor_observer()) { |
io_data->resource_prefetch_predictor_observer()->OnRequestRedirected( |
- request); |
+ redirect_url, request); |
+ } |
} |
void ChromeResourceDispatcherHostDelegate::OnFieldTrialGroupFinalized( |