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

Unified Diff: components/navigation_metrics/navigation_metrics.cc

Issue 2823233003: Deprecate Once-Per-Origin Navigation histograms (Closed)
Patch Set: Remove deleted .h from .mm Created 3 years, 8 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/navigation_metrics/navigation_metrics.cc
diff --git a/components/navigation_metrics/navigation_metrics.cc b/components/navigation_metrics/navigation_metrics.cc
index 8958e6d69fa981aa501c0622ab8d8281ee5be94a..428f092dd3c9dec87281e1e8571cf9e5a7ac7e3d 100644
--- a/components/navigation_metrics/navigation_metrics.cc
+++ b/components/navigation_metrics/navigation_metrics.cc
@@ -51,8 +51,7 @@ namespace navigation_metrics {
void RecordMainFrameNavigation(const GURL& url,
bool is_in_page,
- bool is_off_the_record,
- bool have_already_seen_origin) {
+ bool is_off_the_record) {
Scheme scheme = SCHEME_UNKNOWN;
for (int i = 1; i < SCHEME_MAX; ++i) {
if (url.SchemeIs(kSchemeNames[i])) {
@@ -61,16 +60,6 @@ void RecordMainFrameNavigation(const GURL& url,
}
}
- if (!have_already_seen_origin) {
- if (is_off_the_record) {
- UMA_HISTOGRAM_ENUMERATION("Navigation.SchemePerUniqueOriginOTR", scheme,
- SCHEME_MAX);
- } else {
- UMA_HISTOGRAM_ENUMERATION("Navigation.SchemePerUniqueOrigin", scheme,
- SCHEME_MAX);
- }
- }
-
UMA_HISTOGRAM_ENUMERATION("Navigation.MainFrameScheme", scheme, SCHEME_MAX);
if (!is_in_page) {
UMA_HISTOGRAM_ENUMERATION("Navigation.MainFrameSchemeDifferentPage", scheme,
« no previous file with comments | « components/navigation_metrics/navigation_metrics.h ('k') | components/navigation_metrics/navigation_metrics_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698