Change tab count metrics to be usable for both live tabs and all tabs.
Previously this functionality was only usable for live tabs, this change makes it possible to use these functions for tab count filtered histogram metrics based on the total tab count. This will be used for a future tab hover cards metric.
Bug: 910739
Change-Id: I66462d68ac95a81008eeaab90587c11378afad98
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1639084
Reviewed-by: Cait Phillips <[email protected]>
Reviewed-by: Steven Holte <[email protected]>
Reviewed-by: Ryan Sturm <[email protected]>
Commit-Queue: Caroline Rising <[email protected]>
Cr-Commit-Position: refs/heads/master@{#670706}
diff --git a/chrome/browser/BUILD.gn b/chrome/browser/BUILD.gn
index 6c6e4ec..187e155c 100644
--- a/chrome/browser/BUILD.gn
+++ b/chrome/browser/BUILD.gn
@@ -772,8 +772,6 @@
"metrics/incognito_observer.h",
"metrics/jumplist_metrics_win.cc",
"metrics/jumplist_metrics_win.h",
- "metrics/live_tab_count_metrics.cc",
- "metrics/live_tab_count_metrics.h",
"metrics/metrics_memory_details.cc",
"metrics/metrics_memory_details.h",
"metrics/metrics_reporting_state.cc",
@@ -794,6 +792,8 @@
"metrics/sampling_metrics_provider.h",
"metrics/subprocess_metrics_provider.cc",
"metrics/subprocess_metrics_provider.h",
+ "metrics/tab_count_metrics.cc",
+ "metrics/tab_count_metrics.h",
"metrics/tab_footprint_aggregator.cc",
"metrics/tab_footprint_aggregator.h",
"metrics/testing/metrics_reporting_pref_helper.cc",
@@ -1927,7 +1927,6 @@
"//components/language/core/common",
"//components/leveldb_proto",
"//components/leveldb_proto/content:factory",
- "//components/live_tab_count_metrics",
"//components/metrics:call_stack_profile_collector",
"//components/metrics:component_metrics",
"//components/metrics:gpu",
@@ -2003,6 +2002,7 @@
"//components/sync_bookmarks",
"//components/sync_preferences",
"//components/sync_sessions",
+ "//components/tab_count_metrics",
"//components/tracing:startup_tracing",
"//components/translate/content/browser",
"//components/translate/core/browser",