summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorcira@chromium.org <cira@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-05 23:26:30 +0000
committercira@chromium.org <cira@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-05 23:26:30 +0000
commit9a9c93c7f500f732351123015f7a48fcf59a86d0 (patch)
treefd62b6786f3c2ffe0930ffc3516c263c3d5a5b82 /chrome
parent8c8d9a30879460088e60797c98537fd90a23d998 (diff)
downloadchromium_src-9a9c93c7f500f732351123015f7a48fcf59a86d0.zip
chromium_src-9a9c93c7f500f732351123015f7a48fcf59a86d0.tar.gz
chromium_src-9a9c93c7f500f732351123015f7a48fcf59a86d0.tar.bz2
Don't reload whole chrome://extensions page when interacting with single extension (disable/enable...).
BUG=26163 TEST=Click on Disable/Reload links and check if the whole page got reloaded. Review URL: http://codereview.chromium.org/341076 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31157 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/extensions/extensions_ui.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/chrome/browser/extensions/extensions_ui.cc b/chrome/browser/extensions/extensions_ui.cc
index 67304f7..51a20bd 100644
--- a/chrome/browser/extensions/extensions_ui.cc
+++ b/chrome/browser/extensions/extensions_ui.cc
@@ -297,7 +297,7 @@ void ExtensionsDOMHandler::OnIconsLoaded(DictionaryValue* json) {
// Register for notifications that we need to reload the page.
registrar_.RemoveAll();
- registrar_.Add(this, NotificationType::EXTENSION_LOADED,
+ registrar_.Add(this, NotificationType::EXTENSION_PROCESS_CREATED,
NotificationService::AllSources());
registrar_.Add(this, NotificationType::EXTENSION_UNLOADED,
NotificationService::AllSources());
@@ -533,13 +533,12 @@ void ExtensionsDOMHandler::Observe(NotificationType type,
const NotificationSource& source,
const NotificationDetails& details) {
switch (type.value) {
- case NotificationType::EXTENSION_LOADED:
+ case NotificationType::EXTENSION_PROCESS_CREATED:
case NotificationType::EXTENSION_UNLOADED:
case NotificationType::EXTENSION_UPDATE_DISABLED:
case NotificationType::EXTENSION_UNLOADED_DISABLED:
if (dom_ui_->tab_contents())
- dom_ui_->tab_contents()->controller().Reload(false);
- registrar_.RemoveAll();
+ HandleRequestExtensionsData(NULL);
break;
default: