Don't DCHECK that the runloop has been Run on iOS shutdown
This resolves minor drift in this file from implementing the shutdown
flow on iOS (for the rare cases when the app is told it is terminating).
BUG=None
Review URL: https://codereview.chromium.org/925603004
Cr-Commit-Position: refs/heads/master@{#316463}
CrOS-Libchrome-Original-Commit: 23fddbca3e657e69ca0e6718d4a9be2c34821242
diff --git a/base/message_loop/message_loop.cc b/base/message_loop/message_loop.cc
index 86771e4..daa7782 100644
--- a/base/message_loop/message_loop.cc
+++ b/base/message_loop/message_loop.cc
@@ -152,7 +152,12 @@
MessageLoop::~MessageLoop() {
DCHECK_EQ(this, current());
+ // iOS just attaches to the loop, it doesn't Run it.
+ // TODO(stuartmorgan): Consider wiring up a Detach().
+#if !defined(OS_IOS)
DCHECK(!run_loop_);
+#endif
+
#if defined(OS_WIN)
if (in_high_res_mode_)
Time::ActivateHighResolutionTimer(false);