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

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

Issue 2591863004: mus: aura::Env should be destroyed last in the mus client. (Closed)
Patch Set: . Created 4 years 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
« ui/aura/mus/focus_synchronizer.cc ('K') | « ui/views/mus/aura_init.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/mus_client.cc
diff --git a/ui/views/mus/mus_client.cc b/ui/views/mus/mus_client.cc
index 575cf995b8154b842e0513fe5c0337ca123d2d7a..17f7d750eb2138192eb341ee1815782a988759b3 100644
--- a/ui/views/mus/mus_client.cc
+++ b/ui/views/mus/mus_client.cc
@@ -64,6 +64,7 @@ MusClient::MusClient(service_manager::Connector* connector,
bool create_wm_state)
: identity_(identity) {
DCHECK(!instance_);
+ DCHECK(aura::Env::GetInstance());
instance_ = this;
if (!io_task_runner) {
@@ -130,6 +131,7 @@ MusClient::~MusClient() {
DCHECK_EQ(instance_, this);
instance_ = nullptr;
+ DCHECK(aura::Env::GetInstance());
}
// static
« ui/aura/mus/focus_synchronizer.cc ('K') | « ui/views/mus/aura_init.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698