Chromium Code Reviews| 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()); |