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

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
« no previous file with comments | « 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 e01e1ff87cdbf6a735df56c913ac8c4916151478..203d74a2c50c9f42f7fb9cf64088af71b4d5f2b8 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) {
@@ -131,6 +132,7 @@ MusClient::~MusClient() {
base::DiscardableMemoryAllocator::SetInstance(nullptr);
DCHECK_EQ(instance_, this);
instance_ = nullptr;
+ DCHECK(aura::Env::GetInstance());
}
// static
« no previous file with comments | « ui/views/mus/aura_init.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698