Bug 971171 - Measure with telemetry how many times people see about:newtab. r=ttaubert,bsmedberg

This commit is contained in:
Georg Fritzsche
2014-02-14 12:00:49 +01:00
parent 722c797a8e
commit 158277aedc
3 changed files with 13 additions and 1 deletions

View File

@@ -1005,8 +1005,13 @@ var gBrowserInit = {
}
// Note: loadOneOrMoreURIs *must not* be called if window.arguments.length >= 3.
// Such callers expect that window.arguments[0] is handled as a single URI.
else
else {
if (uriToLoad == "about:newtab" &&
Services.prefs.getBoolPref("browser.newtabpage.enabled")) {
Services.telemetry.getHistogramById("NEWTAB_PAGE_SHOWN").add(true);
}
loadOneOrMoreURIs(uriToLoad);
}
}
#ifdef MOZ_SAFE_BROWSING