Index: content/browser/renderer_host/render_widget_host_view_aura.cc |
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc |
index ee2a48a67643a3a39bec4092ee4e94f167bce357..8c3f4b45c756acc3997bdc03051bcd4fa726895b 100644 |
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc |
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc |
@@ -513,7 +513,8 @@ void RenderWidgetHostViewAura::InitAsPopup( |
window_->SetName("RenderWidgetHostViewAura"); |
aura::Window* root = popup_parent_host_view_->window_->GetRootWindow(); |
- aura::client::ParentWindowWithContext(window_, root, bounds_in_screen); |
+ if (root) |
+ aura::client::ParentWindowWithContext(window_, root, bounds_in_screen); |
SetBounds(bounds_in_screen); |
Show(); |