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

Unified Diff: ash/shell/window_type_launcher.cc

Issue 11801027: More work to make ash_unittests pass when we require context. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix TableViewTest by making it a ViewsTestBase. Created 7 years, 11 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
« no previous file with comments | « ash/shell/widgets.cc ('k') | chrome/browser/chromeos/input_method/candidate_window_view_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell/window_type_launcher.cc
diff --git a/ash/shell/window_type_launcher.cc b/ash/shell/window_type_launcher.cc
index 448a3d1ef670f360a81617ca059a0c25b5e77972..e923a153b44437dc394db4350a8fc36bacb8ca76 100644
--- a/ash/shell/window_type_launcher.cc
+++ b/ash/shell/window_type_launcher.cc
@@ -183,8 +183,10 @@ void AddViewToLayout(views::GridLayout* layout, views::View* view) {
void InitWindowTypeLauncher() {
views::Widget* widget =
- views::Widget::CreateWindowWithBounds(new WindowTypeLauncher,
- gfx::Rect(120, 150, 300, 410));
+ views::Widget::CreateWindowWithContextAndBounds(
+ new WindowTypeLauncher,
+ Shell::GetPrimaryRootWindow(),
+ gfx::Rect(120, 150, 300, 410));
widget->GetNativeView()->SetName("WindowTypeLauncher");
views::corewm::SetShadowType(widget->GetNativeView(),
views::corewm::SHADOW_TYPE_RECTANGULAR);
« no previous file with comments | « ash/shell/widgets.cc ('k') | chrome/browser/chromeos/input_method/candidate_window_view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698