Deprecate the renderer and extension renderer crash counts.

These Local State prefs have been replaced by Stability.Counts2.

Bug: 1337565
Change-Id: Ifac657b895fe53bcfbae8885ce86337eac7b60fb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3714521
Reviewed-by: Yuchen Liu <[email protected]>
Auto-Submit: Caitlin Fischer <[email protected]>
Reviewed-by: Robert Kaplow <[email protected]>
Reviewed-by: Gabriel Charette <[email protected]>
Reviewed-by: Olivier Robin <[email protected]>
Commit-Queue: Caitlin Fischer <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1018830}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index 8bf0ef79..1b759a6 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -743,6 +743,10 @@
 const char kBackgroundTracingLastUpload[] = "background_tracing.last_upload";
 const char kStabilityGpuCrashCount[] =
     "user_experience_metrics.stability.gpu_crash_count";
+const char kStabilityRendererCrashCount[] =
+    "user_experience_metrics.stability.renderer_crash_count";
+const char kStabilityExtensionRendererCrashCount[] =
+    "user_experience_metrics.stability.extension_renderer_crash_count";
 #if BUILDFLAG(ENABLE_DICE_SUPPORT)
 const char kTokenServiceDiceCompatible[] = "token_service.dice_compatible";
 #endif
@@ -818,6 +822,8 @@
   // Deprecated 06/2022.
   registry->RegisterInt64Pref(kBackgroundTracingLastUpload, 0);
   registry->RegisterIntegerPref(kStabilityGpuCrashCount, 0);
+  registry->RegisterIntegerPref(kStabilityRendererCrashCount, 0);
+  registry->RegisterIntegerPref(kStabilityExtensionRendererCrashCount, 0);
 #if !BUILDFLAG(IS_ANDROID)
   registry->RegisterIntegerPref(kStabilityPageLoadCount, 0);
 #endif
@@ -1676,6 +1682,8 @@
   // Added 06/2022.
   local_state->ClearPref(kBackgroundTracingLastUpload);
   local_state->ClearPref(kStabilityGpuCrashCount);
+  local_state->ClearPref(kStabilityRendererCrashCount);
+  local_state->ClearPref(kStabilityExtensionRendererCrashCount);
 #if !BUILDFLAG(IS_ANDROID)
   local_state->ClearPref(kStabilityPageLoadCount);
 #endif