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

Unified Diff: chrome/browser/predictors/resource_prefetch_predictor_tab_helper.cc

Issue 2937623007: predictors: Move more methods from ResourcePrefetchPredictor into LoadingDataCollector. (Closed)
Patch Set: Undo unneeded added mock class. Created 3 years, 6 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
Index: chrome/browser/predictors/resource_prefetch_predictor_tab_helper.cc
diff --git a/chrome/browser/predictors/resource_prefetch_predictor_tab_helper.cc b/chrome/browser/predictors/resource_prefetch_predictor_tab_helper.cc
index 015a06d76388ce056c0976bbd945a6ccee6c7c6d..79bc3aed16f945eb6f25330f8370fcfea3e3b708 100644
--- a/chrome/browser/predictors/resource_prefetch_predictor_tab_helper.cc
+++ b/chrome/browser/predictors/resource_prefetch_predictor_tab_helper.cc
@@ -50,13 +50,12 @@ void ResourcePrefetchPredictorTabHelper::DidLoadResourceFromMemoryCache(
if (!loading_predictor)
return;
- ResourcePrefetchPredictor::URLRequestSummary summary;
+ URLRequestSummary summary;
summary.navigation_id = NavigationID(web_contents());
summary.resource_url = url;
summary.mime_type = mime_type;
- summary.resource_type =
- ResourcePrefetchPredictor::GetResourceTypeFromMimeType(
- mime_type, resource_type);
+ summary.resource_type = LoadingDataCollector::GetResourceTypeFromMimeType(
+ mime_type, resource_type);
summary.was_cached = true;
auto* collector = loading_predictor->loading_data_collector();
collector->RecordURLResponse(summary);

Powered by Google App Engine
This is Rietveld 408576698