ios: Fix MainThreadFreezeDetector and iOS15 prewarming.

With iOS15 pre-warming, if the MTFD is started during pre-warming, when
the app eventually starts up, if the main runloop takes longer than
-runInFreezeDetectionQueue checks, MTDF will always generate a hang
report on startup. This report will normally be discarded, but it's
still unnecessary.

Instead, delay starting MTFD startup when in pre-warming mode.

Change-Id: I8724bab00ae4bf9e3e848928da2665357b20c218
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3434901
Reviewed-by: Ali Juma <[email protected]>
Reviewed-by: Mark Cogan <[email protected]>
Auto-Submit: Justin Cohen <[email protected]>
Reviewed-by: Olivier Robin <[email protected]>
Reviewed-by: Sylvain Defresne <[email protected]>
Commit-Queue: Sylvain Defresne <[email protected]>
Cr-Commit-Position: refs/heads/main@{#967252}
diff --git a/base/ios/ios_util.h b/base/ios/ios_util.h
index 8332b51..5c1b9af 100644
--- a/base/ios/ios_util.h
+++ b/base/ios/ios_util.h
@@ -60,6 +60,10 @@
 // iPad.
 BASE_EXPORT bool IsMultipleScenesSupported();
 
+// iOS 15 introduced pre-warming, which launches and then pauses the app, to
+// speed up actual launch time.
+BASE_EXPORT bool IsApplicationPreWarmed();
+
 }  // namespace ios
 }  // namespace base