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

Unified Diff: chrome/browser/metrics/metrics_service.cc

Issue 7779036: Force write of clean shutdown bit ASAP to try to help stats (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/metrics_service.cc
===================================================================
--- chrome/browser/metrics/metrics_service.cc (revision 99324)
+++ chrome/browser/metrics/metrics_service.cc (working copy)
@@ -1480,6 +1480,12 @@
}
void MetricsService::LogCleanShutdown() {
+ // Redundant hack to write pref ASAP.
wtc 2011/09/06 17:44:22 Would be nice to say why you want to write pref AS
+ PrefService* pref = g_browser_process->local_state();
+ pref->SetBoolean(prefs::kStabilityExitedCleanly, true);
+ pref->SavePersistentPrefs();
+ // End of redundant hack.
+
RecordBooleanPrefValue(prefs::kStabilityExitedCleanly, true);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698