| 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..1ee76b4f0bf3bd1ad93ea72e500f070e95b31e54 100644
|
| --- a/chrome/browser/profiles/profile_impl_io_data.cc
|
| +++ b/chrome/browser/profiles/profile_impl_io_data.cc
|
| @@ -95,10 +95,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();
|
| }
|
|
|
| @@ -185,7 +183,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,
|
|
|