From e8f95f6ac5f672fed00fe92be8e36929a3fc2e7d Mon Sep 17 00:00:00 2001 From: "estade@chromium.org" Date: Thu, 12 Nov 2009 21:18:49 +0000 Subject: Correctly get ExtensionService out of EXTENSION_PROCESS_CRASHED notification. Source is Profile*, not ExtensionsService*. BUG=27199 TEST=load gmail browser action extension, crash it with task manager, press reload button. Review URL: http://codereview.chromium.org/385076 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31826 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/browser.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chrome') diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc index 7010deb..0ecdcb4 100644 --- a/chrome/browser/browser.cc +++ b/chrome/browser/browser.cc @@ -2276,7 +2276,7 @@ void Browser::Observe(NotificationType type, if (!tab_contents) break; ExtensionsService* extensions_service = - Source(source).ptr(); + Source(source).ptr()->GetExtensionsService(); ExtensionHost* extension_host = Details(details).ptr(); tab_contents->AddInfoBar(new CrashedExtensionInfoBarDelegate( tab_contents, extensions_service, extension_host->extension())); -- cgit v1.1