Deprecate the child process crash stability metric.

There are a number of existing metrics for specific child process
crashes, e.g. GPU crashes. ChildProcess.Crashed2 is also emitted in the
same area where kStabilityChildProcessCrashCount is incremented, and
the histogram has finer granularity.

Bug: b/217465810
Change-Id: Iff21dede412007503c375ef953f0c7f813722b31
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3434805
Reviewed-by: Sean Topping <[email protected]>
Reviewed-by: Robert Kaplow <[email protected]>
Auto-Submit: Caitlin Fischer <[email protected]>
Reviewed-by: Gabriel Charette <[email protected]>
Commit-Queue: Gabriel Charette <[email protected]>
Cr-Commit-Position: refs/heads/main@{#967457}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index ff400ec1..49ce6e9 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -724,6 +724,10 @@
 const char kDataReductionProxyLastEnabledTime[] =
     "data_reduction.last_enabled_time";
 
+// Deprecated 02/2022.
+const char kStabilityChildProcessCrashCount[] =
+    "user_experience_metrics.stability.child_process_crash_count";
+
 // Register local state used only for migration (clearing or moving to a new
 // key).
 void RegisterLocalStatePrefsForMigration(PrefRegistrySimple* registry) {
@@ -761,6 +765,7 @@
   registry->RegisterIntegerPref(kStabilityRendererHangCount, 0);
   registry->RegisterIntegerPref(kStabilityIncompleteSessionEndCount, 0);
   registry->RegisterBooleanPref(kStabilitySessionEndCompleted, true);
+  registry->RegisterIntegerPref(kStabilityChildProcessCrashCount, 0);
 }
 
 // Register prefs used only for migration (clearing or moving to a new key).