[Android Webapp] Fix potential concurrency issue with WebappDataStorage
ProcessInitializationHandler#handleDeferredStartupTasksInitialization() and WebApkUma#recordDeferredUma() call WebappRegistry#warmUpSharedPrefs() from the background thread and the UI thread respectively. Both calls occur from DeferredStartupHandler This CL changes WebappRegistry#initStorages() to mutate WebappRegistry#mStorages on the UI thread. BUG=1000949 Change-Id: I71ec4d049000d67a4052502c72da62a2ce1aadf6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1801989 Commit-Queue: Peter Kotwicz <pkotwicz@chromium.org> Reviewed-by:Dominick Ng <dominickn@chromium.org> Cr-Commit-Position: refs/heads/master@{#696943}
Showing
Please register or sign in to comment