Chromium Code Reviews| Index: ui/views/widget/desktop_aura/desktop_native_widget_aura.cc |
| diff --git a/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc b/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc |
| index d4669690584edc1a9a2ff855d51a84e461ed7e6d..f9bf889a068146bcabea43900a51a34b8136d1ea 100644 |
| --- a/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc |
| +++ b/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc |
| @@ -9,6 +9,7 @@ |
| #include "ui/aura/client/aura_constants.h" |
| #include "ui/aura/client/cursor_client.h" |
| #include "ui/aura/client/stacking_client.h" |
| +#include "ui/aura/env.h" |
| #include "ui/aura/focus_manager.h" |
| #include "ui/aura/root_window.h" |
| #include "ui/aura/root_window_host.h" |
| @@ -266,6 +267,8 @@ void DesktopNativeWidgetAura::InitNativeWidget( |
| const Widget::InitParams& params) { |
| ownership_ = params.ownership; |
| + aura::Env::CreateInstance(); |
|
Ben Goodger (Google)
2013/09/17 20:39:04
Seems like this should only be done once per proce
dnicoara
2013/09/17 21:01:27
I see. It probably could be moved higher, but not
|
| + |
| NativeWidgetAura::RegisterNativeWidgetForWindow(this, window_); |
| // Animations on TYPE_WINDOW are handled by the OS. Additionally if we animate |
| // these windows the size of the window gets augmented, effecting restore |