Fix the crash issue when loading more than 200 Arc app icons.
When more than 200 Arc apps are installed, due to different icon size, scale, too many files are opened, causing the system crash. Add a limitation to control icon loading requests to be less than 250. If there are more icon loading requests, add them to the pending list, and when some icon requests finished, continue loading icons from the pending list. Modify ArcAppIcon to observer_->OnIconUpdated to notify the observer for all error cases, because the observer in AppService depends on the notification to update the pending list and the in-flight list. BUG=1123796 Change-Id: I00ab3be5326e21574c1757cedacd7701e8b66710 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2386688Reviewed-by:Long Cheng <lgcheng@google.com> Reviewed-by:
Dominick Ng <dominickn@chromium.org> Commit-Queue: Nancy Wang <nancylingwang@chromium.org> Cr-Commit-Position: refs/heads/master@{#804048}
Showing
Please register or sign in to comment