summaryrefslogtreecommitdiffstats
path: root/chrome/browser/profiles
diff options
context:
space:
mode:
authorbauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-27 16:41:48 +0000
committerbauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-27 16:41:48 +0000
commitfbe17c8a2baf508c2ce5210a1322331d0c011ce3 (patch)
tree7c996389f4673186d2637bbab576776691a40a0a /chrome/browser/profiles
parent3eff133b651ca64430e0ab105b132f08cfc9df58 (diff)
downloadchromium_src-fbe17c8a2baf508c2ce5210a1322331d0c011ce3.zip
chromium_src-fbe17c8a2baf508c2ce5210a1322331d0c011ce3.tar.gz
chromium_src-fbe17c8a2baf508c2ce5210a1322331d0c011ce3.tar.bz2
Remove PrefService::ScheduleSavePersistentPrefs and change SavePersistentPrefs calls to CommitPendingWrites.
TBR=ncarter@chromium.org BUG=99306 TEST=none Review URL: http://codereview.chromium.org/8198007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115829 0039d316-1c4b-4281-b951-d872f2087c98
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() {