Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Unified Diff: content/browser/web_contents/web_contents_view_aura.cc

Issue 1472673002: WebContentsViewAura: Remove redundant if statement (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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");
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698