summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/browser.cc')
-rw-r--r--chrome/browser/browser.cc15
1 files changed, 8 insertions, 7 deletions
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc
index ebcf1da..85cf378 100644
--- a/chrome/browser/browser.cc
+++ b/chrome/browser/browser.cc
@@ -3052,13 +3052,14 @@ void Browser::Observe(NotificationType type,
case NotificationType::EXTENSION_UPDATE_DISABLED: {
// Show the UI if the extension was disabled for escalated permissions.
Profile* profile = Source<Profile>(source).ptr();
- DCHECK_EQ(profile_, profile);
- ExtensionsService* service = profile->GetExtensionsService();
- DCHECK(service);
- Extension* extension = Details<Extension>(details).ptr();
- if (service->extension_prefs()->DidExtensionEscalatePermissions(
- extension->id()))
- ShowExtensionDisabledUI(service, profile_, extension);
+ if (profile_->IsSameProfile(profile)) {
+ ExtensionsService* service = profile->GetExtensionsService();
+ DCHECK(service);
+ Extension* extension = Details<Extension>(details).ptr();
+ if (service->extension_prefs()->DidExtensionEscalatePermissions(
+ extension->id()))
+ ShowExtensionDisabledUI(service, profile_, extension);
+ }
break;
}