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

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

Issue 360733005: Poll CanPredictNetworkActions in Predictor class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits. Created 6 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/profiles/profile_impl_io_data.cc
diff --git a/chrome/browser/profiles/profile_impl_io_data.cc b/chrome/browser/profiles/profile_impl_io_data.cc
index af21c337e34eef02a955aa73bacfbdec58fd2fda..279230bb484f62e22a58c272c871efe27d8c82e5 100644
--- a/chrome/browser/profiles/profile_impl_io_data.cc
+++ b/chrome/browser/profiles/profile_impl_io_data.cc
@@ -96,8 +96,7 @@ ProfileImplIOData::Handle::~Handle() {
save_prefs = !chromeos::ProfileHelper::IsSigninProfile(profile_);
#endif
if (save_prefs) {
- io_data_->predictor_->SaveStateForNextStartupAndTrim(
- profile_->GetPrefs());
+ io_data_->predictor_->SaveStateForNextStartupAndTrim();
}
battre 2014/07/01 08:27:48 nit: remove curlys?
Bence 2014/07/01 17:39:27 Done.
io_data_->predictor_->ShutdownOnUIThread();
}
@@ -185,7 +184,8 @@ ProfileImplIOData::Handle::CreateMainRequestContextGetter(
->InitNetworkPredictor(profile_->GetPrefs(),
local_state,
io_thread,
- main_request_context_getter_.get());
+ main_request_context_getter_.get(),
+ io_data_);
content::NotificationService::current()->Notify(
chrome::NOTIFICATION_PROFILE_URL_REQUEST_CONTEXT_GETTER_INITIALIZED,

Powered by Google App Engine
This is Rietveld 408576698