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

Unified Diff: chrome/browser/chromeos/cros/login_library.cc

Issue 6713032: Provide lazy CommitPendingWrites in addition to eager SavePersistentPrefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename less confusing Created 9 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/prefs/overlay_persistent_pref_store.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/cros/login_library.cc
diff --git a/chrome/browser/chromeos/cros/login_library.cc b/chrome/browser/chromeos/cros/login_library.cc
index 026757f3b92226b9bdf99ae76e2eb3993e401f2f..82f32a137d421d0ad324b72e1c84771d78be5446 100644
--- a/chrome/browser/chromeos/cros/login_library.cc
+++ b/chrome/browser/chromeos/cros/login_library.cc
@@ -133,9 +133,9 @@ class LoginLibraryImpl : public LoginLibrary {
bool RestartJob(int pid, const std::string& command_line) {
if (g_browser_process && g_browser_process->local_state()) {
// XXX: normally this call must not be needed, however it turned out that
- // without this explicit call to SavePersistentPrefs it is possible for
- // preferences to be lost. See http://crosbug.com/13102
- g_browser_process->local_state()->SavePersistentPrefs();
+ // without explicit write it is possible for preferences to be lost.
+ // See http://crosbug.com/13102
+ g_browser_process->local_state()->CommitPendingWrites();
}
return chromeos::RestartJob(pid, command_line.c_str());
Mattias Nissler (ping if slow) 2011/03/22 16:56:20 On which thread does this run? The CommitPendingWr
Denis Lagno 2011/03/22 16:58:12 absoulutely. I am adding notification to fix this
Denis Lagno 2011/03/22 17:08:40 OTOH it looks like RestartJob is invoked by sendin
Mattias Nissler (ping if slow) 2011/03/22 17:27:02 Does that mean you're willing to take chances? ;)
Denis Lagno 2011/03/23 14:37:43 Done.
}
« no previous file with comments | « no previous file | chrome/browser/prefs/overlay_persistent_pref_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698