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

Unified Diff: components/metrics/clean_exit_beacon.h

Issue 2687393004: Gather stability prefs into managing objects. (Closed)
Patch Set: Incorporate Feedback 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
« no previous file with comments | « components/metrics/BUILD.gn ('k') | components/metrics/clean_exit_beacon.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/metrics/clean_exit_beacon.h
diff --git a/components/metrics/clean_exit_beacon.h b/components/metrics/clean_exit_beacon.h
index 6b896fa17845a39afb490c123bf7b2cb0f4c2c0d..e863e41e295f021b422ebcb0c087f5bbee6e1c44 100644
--- a/components/metrics/clean_exit_beacon.h
+++ b/components/metrics/clean_exit_beacon.h
@@ -8,6 +8,7 @@
#include "base/macros.h"
#include "base/strings/string16.h"
+class PrefRegistrySimple;
class PrefService;
namespace metrics {
@@ -32,6 +33,9 @@ class CleanExitBeacon {
// Writes the provided beacon value.
void WriteBeaconValue(bool exited_cleanly);
+ // Registers local state prefs used by this class.
+ static void RegisterPrefs(PrefRegistrySimple* registry);
+
private:
PrefService* const local_state_;
const bool initial_value_;
« no previous file with comments | « components/metrics/BUILD.gn ('k') | components/metrics/clean_exit_beacon.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698