summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-10 15:45:19 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-10 15:45:19 +0000
commitef73807894f85700900b64917a4809bfec0002d7 (patch)
treeacadb213a399d53c83974633afcab6bddc1e637c /chrome
parentb24067e608fb7466f9bcfde230404be027b2f54b (diff)
downloadchromium_src-ef73807894f85700900b64917a4809bfec0002d7.zip
chromium_src-ef73807894f85700900b64917a4809bfec0002d7.tar.gz
chromium_src-ef73807894f85700900b64917a4809bfec0002d7.tar.bz2
Properly restart extensions with no visible UI.
http://crbug.com/16070 Review URL: http://codereview.chromium.org/149416 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20376 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/extensions/extension_host.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome/browser/extensions/extension_host.cc b/chrome/browser/extensions/extension_host.cc
index fb9bbb5..6602ca7 100644
--- a/chrome/browser/extensions/extension_host.cc
+++ b/chrome/browser/extensions/extension_host.cc
@@ -135,7 +135,13 @@ void ExtensionHost::CreateRenderView(RenderWidgetHostView* host_view) {
void ExtensionHost::RecoverCrashedExtension() {
DCHECK(!IsRenderViewLive());
#if defined(TOOLKIT_VIEWS)
- view_->RecoverCrashedExtension();
+ if (view_.get()) {
+ view_->RecoverCrashedExtension();
+ } else {
+ CreateRenderView(NULL);
+ }
+#else
+ CreateRenderView(NULL);
#endif
if (IsRenderViewLive()) {
NotificationService::current()->Notify(