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

Unified Diff: components/navigation_metrics/navigation_metrics.cc

Issue 2827983003: Add Incognito Navigation histograms (Closed)
Patch Set: Update histogram owners 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
« no previous file with comments | « no previous file | components/navigation_metrics/navigation_metrics_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/navigation_metrics/navigation_metrics.cc
diff --git a/components/navigation_metrics/navigation_metrics.cc b/components/navigation_metrics/navigation_metrics.cc
index 428f092dd3c9dec87281e1e8571cf9e5a7ac7e3d..be41ff93c90166ccda211d142ece58d6faad6a73 100644
--- a/components/navigation_metrics/navigation_metrics.cc
+++ b/components/navigation_metrics/navigation_metrics.cc
@@ -65,6 +65,15 @@ void RecordMainFrameNavigation(const GURL& url,
UMA_HISTOGRAM_ENUMERATION("Navigation.MainFrameSchemeDifferentPage", scheme,
SCHEME_MAX);
}
+
+ if (is_off_the_record) {
+ UMA_HISTOGRAM_ENUMERATION("Navigation.MainFrameSchemeOTR", scheme,
+ SCHEME_MAX);
+ if (!is_in_page) {
+ UMA_HISTOGRAM_ENUMERATION("Navigation.MainFrameSchemeDifferentPageOTR",
+ scheme, SCHEME_MAX);
+ }
+ }
}
} // namespace navigation_metrics
« no previous file with comments | « no previous file | components/navigation_metrics/navigation_metrics_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698