| Index: chrome/browser/profiles/profile_impl.cc
|
| diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
|
| index 44c7774eaa464774db66c369108e4661d2fe09cf..e67a06efc5627ece16ce5c0b23fcbc6d9d29f572 100644
|
| --- a/chrome/browser/profiles/profile_impl.cc
|
| +++ b/chrome/browser/profiles/profile_impl.cc
|
| @@ -924,8 +924,6 @@ void ProfileImpl::OnPrefsLoaded(bool success) {
|
| prefs_->GetBoolean(prefs::kSessionExitedCleanly);
|
| // Mark the session as open.
|
| prefs_->SetBoolean(prefs::kSessionExitedCleanly, false);
|
| - // Make sure we save to disk that the session has opened.
|
| - prefs_->ScheduleSavePersistentPrefs();
|
|
|
| bool extensions_disabled =
|
| prefs_->GetBoolean(prefs::kDisableExtensions) ||
|
| @@ -1468,7 +1466,7 @@ void ProfileImpl::MarkAsCleanShutdown() {
|
|
|
| // NOTE: If you change what thread this writes on, be sure and update
|
| // ChromeFrame::EndSession().
|
| - prefs_->SavePersistentPrefs();
|
| + prefs_->CommitPendingWrite();
|
| }
|
| }
|
|
|
| @@ -1719,9 +1717,6 @@ void ProfileImpl::ChangeAppLocale(
|
|
|
| if (chromeos::UserManager::Get()->current_user_is_owner())
|
| local_state->SetString(prefs::kOwnerLocale, new_locale);
|
| -
|
| - GetPrefs()->ScheduleSavePersistentPrefs();
|
| - local_state->ScheduleSavePersistentPrefs();
|
| }
|
|
|
| void ProfileImpl::OnLogin() {
|
|
|