| Index: chrome/browser/browser.cc
|
| diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc
|
| index c208fe4042333e666687053e297f47d2f470f9d1..bf31024a8b994bb727939f42e833305131d2a4e0 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;
|
| }
|
|
|
|
|