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

Unified Diff: ui/aura/env.cc

Issue 2974393002: Don't shutdown OzonePlatform if we didn't initialize it. (Closed)
Patch Set: Created 3 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/env.cc
diff --git a/ui/aura/env.cc b/ui/aura/env.cc
index 0f412fb66ebad12b2c97023f4a5fd08c138670d8..4493d687a0821099d3117a3e8350220ec68496ae 100644
--- a/ui/aura/env.cc
+++ b/ui/aura/env.cc
@@ -52,7 +52,8 @@ Env::~Env() {
observer.OnWillDestroyEnv();
#if defined(USE_OZONE)
- ui::OzonePlatform::Shutdown();
+ if (mode_ == Mode::LOCAL)
+ ui::OzonePlatform::Shutdown();
#endif
DCHECK_EQ(this, lazy_tls_ptr.Pointer()->Get());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698