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

Unified Diff: components/metrics/clean_exit_beacon.cc

Issue 2687393004: Gather stability prefs into managing objects. (Closed)
Patch Set: Remove unused method Created 3 years, 10 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: components/metrics/clean_exit_beacon.cc
diff --git a/components/metrics/clean_exit_beacon.cc b/components/metrics/clean_exit_beacon.cc
index 8868e0f99a02609963ec0d54c3b5e7a297579360..0f23e8f4ff6f1553616c9e8a2a1ec9d9a2d92de8 100644
--- a/components/metrics/clean_exit_beacon.cc
+++ b/components/metrics/clean_exit_beacon.cc
@@ -6,7 +6,8 @@
#include "base/logging.h"
#include "build/build_config.h"
-#include "components/metrics/metrics_pref_names.h"
+#include "components/metrics/stability_pref_names.h"
+#include "components/prefs/pref_registry_simple.h"
#include "components/prefs/pref_service.h"
#if defined(OS_WIN)
@@ -62,6 +63,11 @@ CleanExitBeacon::CleanExitBeacon(const base::string16& backup_registry_key,
CleanExitBeacon::~CleanExitBeacon() {
}
+// static
+void CleanExitBeacon::RegisterPrefs(PrefRegistrySimple* registry) {
+ registry->RegisterBooleanPref(prefs::kStabilityExitedCleanly, true);
+}
+
void CleanExitBeacon::WriteBeaconValue(bool value) {
local_state_->SetBoolean(prefs::kStabilityExitedCleanly, value);

Powered by Google App Engine
This is Rietveld 408576698