Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bug 826384: Kill post-install notification doorhanger. [r=mfinkle] [a…

…=akeybl]
  • Loading branch information...
commit a7fcfa2da83bb2b970ca9ac500700f3b9a1abb25 1 parent 2901a15
@sriramramani sriramramani authored
Showing with 0 additions and 31 deletions.
  1. +0 −31 mobile/android/chrome/content/browser.js
View
31 mobile/android/chrome/content/browser.js
@@ -2193,38 +2193,7 @@ var LightWeightThemeWebInstaller = {
},
_install: function (newLWTheme) {
- let previousLWTheme = this._manager.currentTheme;
-
- let listener = {
- onEnabled: function(aAddon) {
- LightWeightThemeWebInstaller._postInstallNotification(newLWTheme, previousLWTheme);
- }
- };
-
- AddonManager.addAddonListener(listener);
this._manager.currentTheme = newLWTheme;
- AddonManager.removeAddonListener(listener);
- },
-
- _postInstallNotification: function (newTheme, previousTheme) {
- let buttons = [{
- label: Strings.browser.GetStringFromName("lwthemePostInstallNotification.undoButton"),
- callback: function () {
- LightWeightThemeWebInstaller._manager.forgetUsedTheme(newTheme.id);
- LightWeightThemeWebInstaller._manager.currentTheme = previousTheme;
- }
- }, {
- label: Strings.browser.GetStringFromName("lwthemePostInstallNotification.manageButton"),
- callback: function () {
- BrowserApp.addTab("about:addons", {
- showProgress: false,
- selected: true
- });
- }
- }];
-
- let message = Strings.browser.GetStringFromName("lwthemePostInstallNotification.message");
- NativeWindow.doorhanger.show(message, "Personas", buttons, BrowserApp.selectedTab.id);
},
_previewWindow: null,
Please sign in to comment.
Something went wrong with that request. Please try again.