summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions
diff options
context:
space:
mode:
authormpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-04 19:22:35 +0000
committermpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-04 19:22:35 +0000
commit872b5045d897456ebcea2fe8a527740d5eab2fd2 (patch)
tree3f0079a81de212d65157ac9c36793185ad88165e /chrome/browser/extensions
parent992cb5c742f6844b539c8ffaec3572d60d93304d (diff)
downloadchromium_src-872b5045d897456ebcea2fe8a527740d5eab2fd2.zip
chromium_src-872b5045d897456ebcea2fe8a527740d5eab2fd2.tar.gz
chromium_src-872b5045d897456ebcea2fe8a527740d5eab2fd2.tar.bz2
Add a link to inspect an inactive transient page from the extension settings
page. Also, registered events are now reset each time an extension is installed or reloaded. BUG=119621 TEST=no Review URL: https://chromiumcodereview.appspot.com/9950105 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130703 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions')
-rw-r--r--chrome/browser/extensions/extension_prefs.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_prefs.cc b/chrome/browser/extensions/extension_prefs.cc
index 818fb2a..2c5dc80 100644
--- a/chrome/browser/extensions/extension_prefs.cc
+++ b/chrome/browser/extensions/extension_prefs.cc
@@ -1119,6 +1119,9 @@ void ExtensionPrefs::OnExtensionInstalled(
extension->manifest()->value()->DeepCopy());
}
+ // Clear any events that may be registered from a previous install.
+ extension_dict->Remove(kRegisteredEvents, NULL);
+
if (extension->is_app()) {
StringOrdinal new_page_ordinal = page_ordinal.IsValid() ?
page_ordinal : extension_sorting_->GetNaturalAppPageOrdinal();