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

Unified Diff: chrome/browser/profiles/profile_impl.cc

Issue 8198007: Remove PrefService::ScheduleSavePersistentPrefs and SavePersistentPrefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos Created 9 years, 2 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
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();
Mattias Nissler (ping if slow) 2011/10/12 09:23:39 At this point I think we actually want a CommitPen
Bernhard Bauer 2011/10/12 11:00:11 Hm, could this adversely affect startup performanc
Mattias Nissler (ping if slow) 2011/10/12 11:02:27 Ah, the old fast vs. correct tradeoff :) I'm OK ei
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() {

Powered by Google App Engine
This is Rietveld 408576698