Files app: Fix race when initializing as JS modules
The i18n strings in the deferred elements need the `loadTimeData` which is initialized in the background page and in the initBackgroundPagePromise_. Change the initialization for JS modules to wait the background promise before importing the deferred elements. Bug: 1133186 Change-Id: I2f82cc3ca89964900c5711652379fbcbdff17acb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2641785 Commit-Queue: Jeremie Boulic <jboulic@chromium.org> Reviewed-by:Jeremie Boulic <jboulic@chromium.org> Cr-Commit-Position: refs/heads/master@{#845544}
Showing
Please register or sign in to comment