| Index: third_party/mojo/src/mojo/edk/embedder/test_embedder.cc
|
| diff --git a/third_party/mojo/src/mojo/edk/embedder/test_embedder.cc b/third_party/mojo/src/mojo/edk/embedder/test_embedder.cc
|
| index 341262667ead87bc9cdc72d6197fe2860ff100f8..791a888a939723987fe351dc5c57263586ea247f 100644
|
| --- a/third_party/mojo/src/mojo/edk/embedder/test_embedder.cc
|
| +++ b/third_party/mojo/src/mojo/edk/embedder/test_embedder.cc
|
| @@ -46,9 +46,9 @@ void InitWithSimplePlatformSupport() {
|
| }
|
|
|
| bool Shutdown() {
|
| - CHECK(internal::g_channel_manager);
|
| - delete internal::g_channel_manager;
|
| - internal::g_channel_manager = nullptr;
|
| + // If |InitIPCSupport()| was called, then |ShutdownIPCSupport()| must have
|
| + // been called first.
|
| + CHECK(internal::g_process_type == ProcessType::UNINITIALIZED);
|
|
|
| CHECK(internal::g_core);
|
| bool rv = system::internal::ShutdownCheckNoLeaks(internal::g_core);
|
|
|