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

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: Fix LoginUtilsTest. Created 6 years, 5 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
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/browser/ui/startup/startup_browser_creator_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ca00a8056d4480cee697099222fa8a72d564c546..eff5ad5e245e72955b73626a7522fb1773a50f43 100644
--- a/chrome/browser/profiles/profile_impl_io_data.cc
+++ b/chrome/browser/profiles/profile_impl_io_data.cc
@@ -96,10 +96,8 @@ ProfileImplIOData::Handle::~Handle() {
#if defined(OS_CHROMEOS)
save_prefs = !chromeos::ProfileHelper::IsSigninProfile(profile_);
#endif
- if (save_prefs) {
- io_data_->predictor_->SaveStateForNextStartupAndTrim(
- profile_->GetPrefs());
- }
+ if (save_prefs)
+ io_data_->predictor_->SaveStateForNextStartupAndTrim();
io_data_->predictor_->ShutdownOnUIThread();
}
@@ -186,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,
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/browser/ui/startup/startup_browser_creator_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698