From 650004648df3b6fc1eb7a4b62daa5ccff4af02f8 Mon Sep 17 00:00:00 2001 From: Margaret Leibovic Date: Mon, 18 Jan 2016 13:27:31 -0500 Subject: [PATCH] Bug 1239102 - Create histogram probe to track % of people setting a custom home page. r=sebastian p=mfinkle --HG-- extra : commitid : At83eWERMce extra : rebase_source : 9708da7f77cca84c86324841792a00d752c2704b --- mobile/android/base/java/org/mozilla/gecko/BrowserApp.java | 2 ++ toolkit/components/telemetry/Histograms.json | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/mobile/android/base/java/org/mozilla/gecko/BrowserApp.java b/mobile/android/base/java/org/mozilla/gecko/BrowserApp.java index c387cd20b204..08c623ad4791 100644 --- a/mobile/android/base/java/org/mozilla/gecko/BrowserApp.java +++ b/mobile/android/base/java/org/mozilla/gecko/BrowserApp.java @@ -1689,6 +1689,8 @@ public class BrowserApp extends GeckoApp Telemetry.addToHistogram("FENNEC_READING_LIST_COUNT", db.getReadingListAccessor().getCount(cr)); Telemetry.addToHistogram("BROWSER_IS_USER_DEFAULT", (isDefaultBrowser(Intent.ACTION_VIEW) ? 1 : 0)); Telemetry.addToHistogram("FENNEC_TABQUEUE_ENABLED", (TabQueueHelper.isTabQueueEnabled(BrowserApp.this) ? 1 : 0)); + Telemetry.addToHistogram("FENNEC_CUSTOM_HOMEPAGE", (TextUtils.isEmpty(getHomepage()) ? 0 : 1)); + if (Versions.feature16Plus) { Telemetry.addToHistogram("BROWSER_IS_ASSIST_DEFAULT", (isDefaultBrowser(Intent.ACTION_ASSIST) ? 1 : 0)); } diff --git a/toolkit/components/telemetry/Histograms.json b/toolkit/components/telemetry/Histograms.json index 0b671ab2a569..ab4a1e213f6c 100644 --- a/toolkit/components/telemetry/Histograms.json +++ b/toolkit/components/telemetry/Histograms.json @@ -8990,6 +8990,13 @@ "kind": "boolean", "description": "Has the tab queue functionality been enabled." }, + "FENNEC_CUSTOM_HOMEPAGE": { + "expires_in_version": "50", + "alert_emails": ["mobile-frontend@mozilla.com"], + "bug_numbers": [1239102], + "kind": "boolean", + "description": "Whether the user has set a custom homepage." + }, "GRAPHICS_DRIVER_STARTUP_TEST": { "alert_emails": ["danderson@mozilla.com"], "expires_in_version": "never",