This CL changes
PictureInPictureControllerImpl::CreateDocumentPictureInPictureWindow to
resolve its promise in an asynchronous task instead of synchronously.
This will ensure that users of the API don't end up accidentally
depending on the fact that the call is synchronous, since other UA
implementations (and future Chromium implementations) may be
asynchronous.
Bug: 1329698
Change-Id: If39b54ad807b3b4251bcfc0929b46b83d9a8d358
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3869185
Reviewed-by: Fr <beaufort.francois@gmail.com>
Commit-Queue: Tommy Steimel <steimel@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1047630}