Index: ash/shell/widgets.cc |
diff --git a/ash/shell/widgets.cc b/ash/shell/widgets.cc |
index cc32fd2c6351c44e205b9a93ee705562fe4bb385..e83a60323721e2660a319a0deec7578ae9f03185 100644 |
--- a/ash/shell/widgets.cc |
+++ b/ash/shell/widgets.cc |
@@ -2,7 +2,9 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+#include "ash/shell.h" |
#include "base/utf_string_conversions.h" // ASCIIToUTF16 |
+#include "ui/aura/root_window.h" |
#include "ui/aura/window.h" |
#include "ui/gfx/canvas.h" |
#include "ui/views/controls/button/checkbox.h" |
@@ -131,7 +133,8 @@ namespace shell { |
void CreateWidgetsWindow() { |
gfx::Rect bounds(kWindowLeft, kWindowTop, kWindowWidth, kWindowHeight); |
views::Widget* widget = |
- views::Widget::CreateWindowWithBounds(new WidgetsWindow, bounds); |
+ views::Widget::CreateWindowWithContextAndBounds( |
+ new WidgetsWindow, Shell::GetPrimaryRootWindow(), bounds); |
widget->GetNativeView()->SetName("WidgetsWindow"); |
widget->Show(); |
} |