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

Unified Diff: chrome/browser/profiles/profile_io_data.cc

Issue 2896713003: Create LoadingDataCollector class and have observers rely on it instead of ResourcePrefetchPredictor (Closed)
Patch Set: Move some logic into new class. Created 3 years, 7 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/profiles/profile_io_data.cc
diff --git a/chrome/browser/profiles/profile_io_data.cc b/chrome/browser/profiles/profile_io_data.cc
index 07256da2a74cef75e741045a1dd68a8c68506e5b..74d5c4ea87ae211a22d8425b38a13cad6557e5ae 100644
--- a/chrome/browser/profiles/profile_io_data.cc
+++ b/chrome/browser/profiles/profile_io_data.cc
@@ -393,7 +393,10 @@ void ProfileIOData::InitializeOnUIThread(Profile* profile) {
predictors::LoadingPredictorFactory::GetForProfile(profile)) {
resource_prefetch_predictor_observer_.reset(
new chrome_browser_net::ResourcePrefetchPredictorObserver(
- loading_predictor->resource_prefetch_predictor()));
+ loading_predictor->loading_data_collector()));
+ resource_prefetch_predictor_observer_ =
+ base::MakeUnique<chrome_browser_net::ResourcePrefetchPredictorObserver>(
+ loading_predictor->loading_data_collector());
}
ProtocolHandlerRegistry* protocol_handler_registry =

Powered by Google App Engine
This is Rietveld 408576698