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

Unified Diff: ash/shell/content_client/shell_browser_main_parts.cc

Issue 282133005: Removes unnecessary views::Widget::InitParams::top_level (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months 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
Index: ash/shell/content_client/shell_browser_main_parts.cc
diff --git a/ash/shell/content_client/shell_browser_main_parts.cc b/ash/shell/content_client/shell_browser_main_parts.cc
index 8c2a37a3e3f75056727a3d9e613fe8cabcead959..8accc93f622b284c1a3fad9279d5e030be501b59 100644
--- a/ash/shell/content_client/shell_browser_main_parts.cc
+++ b/ash/shell/content_client/shell_browser_main_parts.cc
@@ -67,7 +67,7 @@ class ShellViewsDelegate : public views::TestViewsDelegate {
if (params->native_widget)
return;
- if (!params->parent && !params->context && params->top_level)
+ if (!params->parent && !params->context && !params->child)
params->context = Shell::GetPrimaryRootWindow();
}
« no previous file with comments | « apps/ui/views/native_app_window_views.cc ('k') | chrome/browser/ui/views/apps/chrome_native_app_window_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698