Index: content/browser/web_contents/web_contents_view_aura.cc |
diff --git a/content/browser/web_contents/web_contents_view_aura.cc b/content/browser/web_contents/web_contents_view_aura.cc |
index 3d0d16f463285b13a80b4573d076f6347816c2b5..2b33dab8b71c38a640e3abb36921cb0500faf3df 100644 |
--- a/content/browser/web_contents/web_contents_view_aura.cc |
+++ b/content/browser/web_contents/web_contents_view_aura.cc |
@@ -40,6 +40,7 @@ |
#include "ui/aura/client/aura_constants.h" |
#include "ui/aura/client/drag_drop_client.h" |
#include "ui/aura/client/drag_drop_delegate.h" |
+#include "ui/aura/env.h" |
#include "ui/aura/root_window.h" |
#include "ui/aura/root_window_observer.h" |
#include "ui/aura/window.h" |
@@ -1142,6 +1143,7 @@ void WebContentsViewAura::CreateView( |
// if the bookmark bar is not shown and you create a new tab). The right |
// value is set shortly after this, so its safe to ignore. |
+ aura::Env::CreateInstance(); |
window_.reset(new aura::Window(this)); |
window_->set_owned_by_parent(false); |
window_->SetType(aura::client::WINDOW_TYPE_CONTROL); |