summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-12 21:18:49 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-12 21:18:49 +0000
commite8f95f6ac5f672fed00fe92be8e36929a3fc2e7d (patch)
tree02d2bceb06ded9e8eec4048314ec0671a28c2c78
parent17a79cefd3d95018bf94076d4a0deabce76d2310 (diff)
downloadchromium_src-e8f95f6ac5f672fed00fe92be8e36929a3fc2e7d.zip
chromium_src-e8f95f6ac5f672fed00fe92be8e36929a3fc2e7d.tar.gz
chromium_src-e8f95f6ac5f672fed00fe92be8e36929a3fc2e7d.tar.bz2
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
-rw-r--r--chrome/browser/browser.cc2
1 files changed, 1 insertions, 1 deletions
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<ExtensionsService>(source).ptr();
+ Source<Profile>(source).ptr()->GetExtensionsService();
ExtensionHost* extension_host = Details<ExtensionHost>(details).ptr();
tab_contents->AddInfoBar(new CrashedExtensionInfoBarDelegate(
tab_contents, extensions_service, extension_host->extension()));