forked from chromium/chromium
-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Web Payments] Avoid early deletion of crawler for 2+ web app manifests
The previous fix[0] overlooked that number_of_payment_method_manifest_to_download_ could be synchronously reduced to 0 during the loop, as opposed to only in the last iteration. This CL corrects that, by pre-allocating number_of_payment_method_manifest_to_download_ ahead of the loop and decrementing it every loop iteration. As such, only the last iteration should be able to have it reduced to zero. [0]: https://chromium-review.googlesource.com/c/chromium/src/+/3920030 Bug: 1378286 Change-Id: Ia2857a0775dc12aca1a83b3f3087836c9caad168 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3983012 Commit-Queue: Stephen McGruer <smcgruer@chromium.org> Reviewed-by: Rouslan Solomakhin <rouslan@chromium.org> Cr-Commit-Position: refs/heads/main@{#1063872}
- Loading branch information
1 parent
bfbd659
commit c5c1f9c
Showing
2 changed files
with
50 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters