Chromium Code Reviews| 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); |
| } |