diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-15 20:32:51 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-15 20:32:51 +0000 |
commit | a754453c13d397bb9b49a0bbb61e276fa0190365 (patch) | |
tree | 33bc812a6389710d9f5ca68b95bfdb149609b838 /chrome/browser/extensions/extension_host.cc | |
parent | 30729c347ccfc3773a7e0bece475632cbe59ad60 (diff) | |
download | chromium_src-a754453c13d397bb9b49a0bbb61e276fa0190365.zip chromium_src-a754453c13d397bb9b49a0bbb61e276fa0190365.tar.gz chromium_src-a754453c13d397bb9b49a0bbb61e276fa0190365.tar.bz2 |
Add more browser tests for Task Manager.
TEST=Covered by browser_tests.
http://crbug.com/12127
Review URL: http://codereview.chromium.org/155433
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20786 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_host.cc')
-rw-r--r-- | chrome/browser/extensions/extension_host.cc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/chrome/browser/extensions/extension_host.cc b/chrome/browser/extensions/extension_host.cc index 6602ca7..dd46e07 100644 --- a/chrome/browser/extensions/extension_host.cc +++ b/chrome/browser/extensions/extension_host.cc @@ -130,12 +130,19 @@ void ExtensionHost::CreateRenderView(RenderWidgetHostView* host_view) { render_view_host_->set_view(host_view); render_view_host_->CreateRenderView(); render_view_host_->NavigateToURL(url_); + DCHECK(IsRenderViewLive()); + NotificationService::current()->Notify( + NotificationType::EXTENSION_PROCESS_CREATED, + Source<Profile>(profile_), + Details<ExtensionHost>(this)); } void ExtensionHost::RecoverCrashedExtension() { DCHECK(!IsRenderViewLive()); #if defined(TOOLKIT_VIEWS) if (view_.get()) { + // The view should call us back to CreateRenderView, which is the place + // where we create the render process and fire notification. view_->RecoverCrashedExtension(); } else { CreateRenderView(NULL); @@ -143,12 +150,6 @@ void ExtensionHost::RecoverCrashedExtension() { #else CreateRenderView(NULL); #endif - if (IsRenderViewLive()) { - NotificationService::current()->Notify( - NotificationType::EXTENSION_PROCESS_RESTORED, - Source<Profile>(profile_), - Details<ExtensionHost>(this)); - } } void ExtensionHost::UpdatePreferredWidth(int pref_width) { |