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

Unified Diff: mandoline/ui/aura/aura_init.cc

Issue 1293013002: aura: Require explicit ownership of the Env instance. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 4 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 | « mandoline/ui/aura/aura_init.h ('k') | ui/aura/bench/bench_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mandoline/ui/aura/aura_init.cc
diff --git a/mandoline/ui/aura/aura_init.cc b/mandoline/ui/aura/aura_init.cc
index 9873aa0334fb513a24fcedc11af81ddc3243de52..99b86240771648d2faec8886a928c87d97607829 100644
--- a/mandoline/ui/aura/aura_init.cc
+++ b/mandoline/ui/aura/aura_init.cc
@@ -35,7 +35,7 @@ std::set<std::string> GetResourcePaths() {
// correctly.
AuraInit::AuraInit(mojo::View* view, mojo::Shell* shell)
: ui_init_(view->viewport_metrics().size_in_pixels.To<gfx::Size>(), 1.f) {
- aura::Env::CreateInstance(false);
+ env_ = aura::Env::CreateInstance();
InitializeResources(shell);
« no previous file with comments | « mandoline/ui/aura/aura_init.h ('k') | ui/aura/bench/bench_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698