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

Unified Diff: components/google/core/browser/google_search_metrics.cc

Issue 342053002: Add UMA metrics for Android Chrome Google Search. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 6 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 | « components/google/core/browser/google_search_metrics.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/google/core/browser/google_search_metrics.cc
diff --git a/components/google/core/browser/google_search_metrics.cc b/components/google/core/browser/google_search_metrics.cc
index 98078f6b127f815a555096467cc1fde8077e8705..e9f305e9291fb7f4c68b1bc8865f6388723ecd08 100644
--- a/components/google/core/browser/google_search_metrics.cc
+++ b/components/google/core/browser/google_search_metrics.cc
@@ -17,3 +17,18 @@ void GoogleSearchMetrics::RecordGoogleSearch(AccessPoint ap) const {
DCHECK_NE(AP_BOUNDARY, ap);
UMA_HISTOGRAM_ENUMERATION("GoogleSearch.AccessPoint", ap, AP_BOUNDARY);
}
+
+#if defined(OS_ANDROID)
+void GoogleSearchMetrics::RecordAndroidGoogleSearch(
+ AccessPoint ap,
+ bool prerender_enabled) const {
+ DCHECK_NE(AP_BOUNDARY, ap);
+ if (prerender_enabled) {
+ UMA_HISTOGRAM_ENUMERATION("GoogleSearch.AccessPoint_PrerenderEnabled",
+ ap, AP_BOUNDARY);
+ } else {
+ UMA_HISTOGRAM_ENUMERATION("GoogleSearch.AccessPoint_PrerenderDisabled",
+ ap, AP_BOUNDARY);
+ }
+}
+#endif
« no previous file with comments | « components/google/core/browser/google_search_metrics.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698