Index: chrome/browser/extensions/extensions_service.cc |
diff --git a/chrome/browser/extensions/extensions_service.cc b/chrome/browser/extensions/extensions_service.cc |
index 0b0e31a2962923f166c43dab4ac4985e9ff66fd2..388bd713fe00ae1c100c98d02d01f16d19af740e 100644 |
--- a/chrome/browser/extensions/extensions_service.cc |
+++ b/chrome/browser/extensions/extensions_service.cc |
@@ -359,25 +359,17 @@ void ExtensionsService::OnExtensionsLoaded(ExtensionList* new_extensions) { |
} |
} |
- // If extensions aren't enabled, we still want to add themes. However, themes |
- // should not trigger EXTENSIONS_LOADED. |
- // TODO(aa): This can be re-enabled when BUG 13128 is fixed. |
- bool has_extension = false; |
for (ExtensionList::iterator iter = new_extensions->begin(); |
iter != new_extensions->end(); ++iter) { |
- if (extensions_enabled() || (*iter)->IsTheme()) { |
+ if (extensions_enabled() || (*iter)->IsTheme()) |
extensions_.push_back(*iter); |
- if (!(*iter)->IsTheme()) |
- has_extension = true; |
- } |
} |
- if (has_extension) { |
- NotificationService::current()->Notify( |
- NotificationType::EXTENSIONS_LOADED, |
- NotificationService::AllSources(), |
- Details<ExtensionList>(new_extensions)); |
- } |
+ NotificationService::current()->Notify( |
+ NotificationType::EXTENSIONS_LOADED, |
+ NotificationService::AllSources(), |
+ Details<ExtensionList>(new_extensions)); |
+ |
delete new_extensions; |
} |