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

Unified Diff: ui/views/mus/aura_init.cc

Issue 1871253002: aura: Require explicit ownership of the Env instance. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tot.merge Created 4 years, 8 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 | « ui/views/mus/aura_init.h ('k') | ui/views/mus/window_manager_connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/aura_init.cc
diff --git a/ui/views/mus/aura_init.cc b/ui/views/mus/aura_init.cc
index 2b08108882eaae960e8a0fa16ded39953fbf4b27..6935ee8fdb758d139efda378e8022f34b7586009 100644
--- a/ui/views/mus/aura_init.cc
+++ b/ui/views/mus/aura_init.cc
@@ -52,9 +52,8 @@ class MusViewsDelegate : public ViewsDelegate {
AuraInit::AuraInit(mojo::Connector* connector, const std::string& resource_file)
: resource_file_(resource_file),
+ env_(aura::Env::CreateInstance()),
views_delegate_(new MusViewsDelegate) {
- aura::Env::CreateInstance(false);
-
InitializeResources(connector);
ui::InitializeInputMethodForTesting();
« no previous file with comments | « ui/views/mus/aura_init.h ('k') | ui/views/mus/window_manager_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698