Index: chrome/browser/extensions/extension_management_api.cc |
diff --git a/chrome/browser/extensions/extension_management_api.cc b/chrome/browser/extensions/extension_management_api.cc |
index 7c669c9688b19c8822e51af8e65268edd1db7095..d1d8a6d05addf306fb4ddb53999f49f5f0ecfc86 100644 |
--- a/chrome/browser/extensions/extension_management_api.cc |
+++ b/chrome/browser/extensions/extension_management_api.cc |
@@ -424,7 +424,7 @@ void ExtensionManagementEventRouter::Init() { |
for (size_t i = 0; i < arraysize(types); i++) { |
registrar_.Add(this, |
types[i], |
- NotificationService::AllSources()); |
+ Source<Profile>(profile_)); |
} |
} |
@@ -435,9 +435,7 @@ void ExtensionManagementEventRouter::Observe( |
const char* event_name = NULL; |
Profile* profile = Source<Profile>(source).ptr(); |
CHECK(profile); |
- if (!profile_->IsSameProfile(profile)) { |
- return; |
- } |
+ CHECK(profile_->IsSameProfile(profile)); |
switch (type) { |
case chrome::NOTIFICATION_EXTENSION_INSTALLED: |