Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(321)

Unified Diff: chrome/browser/browser.cc

Issue 341050: Implement loading blacklists from extensions.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: use real extension Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_disabled_infobar_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser.cc
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc
index 48e46d7e8bf497904ef38a11a0db7e3dad3b0d11..6dd5f0eabec8049ad8f40ab29db0fd2dbe63eea8 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;
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_disabled_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698