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.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc
index 48e46d7..6dd5f0e 100644
--- a/chrome/browser/browser.cc
+++ b/chrome/browser/browser.cc
@@ -2221,7 +2221,10 @@ void Browser::Observe(NotificationType type,
case NotificationType::EXTENSION_UPDATE_DISABLED: {
// Show the UI.
- ExtensionsService* service = Source<ExtensionsService>(source).ptr();
+ Profile* profile = Source<Profile>(source).ptr();
+ DCHECK_EQ(profile_, profile);
+ ExtensionsService* service = profile->GetExtensionsService();
+ DCHECK(service);
Extension* extension = Details<Extension>(details).ptr();
ShowExtensionDisabledUI(service, profile_, extension);
break;