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); |