summaryrefslogtreecommitdiffstats
path: root/chrome/browser/profiles
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/profiles')
-rw-r--r--chrome/browser/profiles/profile_impl.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index 8ba1086b..e5bda05 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -758,8 +758,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) ||
@@ -1291,7 +1289,7 @@ void ProfileImpl::MarkAsCleanShutdown() {
// NOTE: If you change what thread this writes on, be sure and update
// ChromeFrame::EndSession().
- prefs_->SavePersistentPrefs();
+ prefs_->CommitPendingWrite();
}
}
@@ -1533,9 +1531,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() {