Index: content/browser/web_contents/web_contents_view_aura.cc |
diff --git a/content/browser/web_contents/web_contents_view_aura.cc b/content/browser/web_contents/web_contents_view_aura.cc |
index 2d4912414d9ef948d3f4ea9241a24aea7f432cc6..2201cd0505018b1f5bbf0fb9da8d829d38f1f995 100644 |
--- a/content/browser/web_contents/web_contents_view_aura.cc |
+++ b/content/browser/web_contents/web_contents_view_aura.cc |
@@ -847,10 +847,8 @@ void WebContentsViewAura::CreateView( |
// It should be OK to not set a default parent since such users will |
// explicitly add this WebContentsViewAura to their tree after they create |
// us. |
- if (root_window) { |
- aura::client::ParentWindowWithContext( |
- window_.get(), root_window, root_window->GetBoundsInScreen()); |
- } |
+ aura::client::ParentWindowWithContext(window_.get(), root_window, |
+ root_window->GetBoundsInScreen()); |
} |
window_->layer()->SetMasksToBounds(true); |
window_->SetName("WebContentsViewAura"); |