Bug 966933 - [Australis] UITour: Add a UI tour link in the Help menu. r=Gijs

This commit is contained in:
Blair McBride
2014-03-06 14:41:43 +13:00
parent 6e0a9bbc2a
commit 01b9061199
4 changed files with 18 additions and 0 deletions

View File

@@ -42,6 +42,7 @@ const SEENPAGEID_EXPIRY = 2 * 7 * 24 * 60 * 60 * 1000; // 2 weeks.
this.UITour = {
url: null,
seenPageIDs: null,
pageIDSourceTabs: new WeakMap(),
pageIDSourceWindows: new WeakMap(),
@@ -127,6 +128,11 @@ this.UITour = {
configurable: true,
});
delete this.url;
XPCOMUtils.defineLazyGetter(this, "url", function () {
return Services.urlFormatter.formatURLPref("browser.uitour.url");
});
UITelemetry.addSimpleMeasureFunction("UITour",
this.getTelemetry.bind(this));