Fix the flake unit test IconInvalidationOnFrameworkUpdate.
AppServiceAppIconLoader could call LoadIcon multiple times, because the icon image is updated for each scale. Waiting icon update once might cause the AppServiceAppIconLoader is destroyed before the icon loading process is finish, so it might cause below error: [app_service.mojom.cc(1174)] Check failed: !connected. AppService::LoadIconCallback was destroyed... This CL modifies the expected icon update count to wait the icon loading process finish to avoid AppServiceAppIconLoader to be destroyed early. BUG=1124972 Change-Id: Id7efc80d14ac1a0f6e4cfbe77223256922898599 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2494215 Commit-Queue: Nancy Wang <nancylingwang@chromium.org> Reviewed-by:Long Cheng <lgcheng@google.com> Cr-Commit-Position: refs/heads/master@{#823392}
Showing
Please register or sign in to comment