Chromium Code Reviews
DescriptionFix crash in release mode of payment manifest parser.
Before this patch, the payment manifest parser was populating array
elements only in debug mode via DCHECK(addItemToArray()), which caused a
crash in release mode.
The fix is to save a "success" boolean on stack and DCHECK(success)
later.
After this patch, the release mode is not crashing.
In addition, this patch contains the following minor fixes:
1) Match variable names across JNI boundary.
2) Add an assert for null web app manifest uri, because that should not
happen.
3) Ensure that payment manifest parser host always invokes all
callbacks.
BUG=683329, 710433
Review-Url: https://codereview.chromium.org/2809193002
Cr-Commit-Position: refs/heads/master@{#463720}
Committed: https://chromium.googlesource.com/chromium/src/+/75be1dd2e3cfbb4f04284246d44328295229d031
Patch Set 1 #Patch Set 2 : Fix crash. #
Messages
Total messages: 18 (12 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||