summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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(