Bug 1204995 - Add telemetry histogram probe to know what % of people have "open external links in private tabs" enabled. r=mcomella r=bsmedberg

This commit is contained in:
Margaret Leibovic 2015-09-16 09:51:42 -04:00
parent 8eca2b20b1
commit ad4e1a343f
2 changed files with 11 additions and 0 deletions

View File

@ -1808,6 +1808,11 @@ public class BrowserApp extends GeckoApp
if (Versions.feature16Plus) {
Telemetry.addToHistogram("BROWSER_IS_ASSIST_DEFAULT", (isDefaultBrowser(Intent.ACTION_ASSIST) ? 1 : 0));
}
final SharedPreferences sharedPrefs = GeckoSharedPrefs.forApp(BrowserApp.this);
if (sharedPrefs.getBoolean(GeckoPreferences.PREFS_OPEN_URLS_IN_PRIVATE, false)) {
Telemetry.addToHistogram("FENNEC_OPEN_URLS_IN_PRIVATE", 1);
}
} else if ("Updater:Launch".equals(event)) {
handleUpdaterLaunch();
} else {

View File

@ -8921,6 +8921,12 @@
"kind": "boolean",
"description": "Has the tab queue functionality been enabled."
},
"FENNEC_OPEN_URLS_IN_PRIVATE": {
"alert_emails": ["margaret@mozilla.com"],
"expires_in_version": "44",
"kind": "flag",
"description": "Reports the state of the open external links in private tabs preference"
},
"VIDEO_EME_DISABLED": {
"alert_emails": ["edwin@mozilla.com"],
"expires_in_version": "45",