Commit 8cf5f350 authored by Danyao Wang's avatar Danyao Wang Committed by Commit Bot

Add use counter for more ~high entropy API calls.

hasEnrolledInstrument is a new API added to PaymentRequest spec to
replace the current canMakePayment API, which is considered ~high entroy
in crrev.com/c/1384047.

Bug: 915620,915907
Change-Id: I7ad4f37ef4223d89e142f29c9003f07311ec5ca1
Reviewed-on: https://chromium-review.googlesource.com/c/1391708
Commit-Queue: Danyao Wang <danyao@chromium.org>
Reviewed-by: default avatarMike West <mkwst@chromium.org>
Cr-Commit-Position: refs/heads/master@{#619421}
parent 7c160fbf
...@@ -2159,6 +2159,7 @@ enum WebFeature { ...@@ -2159,6 +2159,7 @@ enum WebFeature {
kV8HTMLMediaElement_CanPlayType_Method = 2718, kV8HTMLMediaElement_CanPlayType_Method = 2718,
kHistoryLength = 2719, kHistoryLength = 2719,
kFeaturePolicyReportOnlyHeader = 2720, kFeaturePolicyReportOnlyHeader = 2720,
kV8PaymentRequest_HasEnrolledInstrument_Method = 2721,
// Add new features immediately above this line. Don't change assigned // Add new features immediately above this line. Don't change assigned
// numbers of any item, and don't reuse removed slots. // numbers of any item, and don't reuse removed slots.
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
[CallWith=ScriptState, NewObject] Promise<PaymentResponse> show(); [CallWith=ScriptState, NewObject] Promise<PaymentResponse> show();
[CallWith=ScriptState, NewObject] Promise<void> abort(); [CallWith=ScriptState, NewObject] Promise<void> abort();
[CallWith=ScriptState, HighEntropy, Measure, NewObject] Promise<boolean> canMakePayment(); [CallWith=ScriptState, HighEntropy, Measure, NewObject] Promise<boolean> canMakePayment();
[CallWith=ScriptState, NewObject, RuntimeEnabled=PaymentRequestHasEnrolledInstrument] Promise<boolean> hasEnrolledInstrument(); [CallWith=ScriptState, HighEntropy, Measure, NewObject, RuntimeEnabled=PaymentRequestHasEnrolledInstrument] Promise<boolean> hasEnrolledInstrument();
readonly attribute DOMString id; readonly attribute DOMString id;
[ImplementedAs=getShippingAddress] readonly attribute PaymentAddress? shippingAddress; [ImplementedAs=getShippingAddress] readonly attribute PaymentAddress? shippingAddress;
......
...@@ -21145,6 +21145,7 @@ Called by update_net_error_codes.py.--> ...@@ -21145,6 +21145,7 @@ Called by update_net_error_codes.py.-->
<int value="2718" label="V8HTMLMediaElement_CanPlayType_Method"/> <int value="2718" label="V8HTMLMediaElement_CanPlayType_Method"/>
<int value="2719" label="HistoryLength"/> <int value="2719" label="HistoryLength"/>
<int value="2720" label="FeaturePolicyReportOnlyHeader"/> <int value="2720" label="FeaturePolicyReportOnlyHeader"/>
<int value="2721" label="V8PaymentRequest_HasEnrolledInstrument_Method"/>
</enum> </enum>
<enum name="FeaturePolicyFeature"> <enum name="FeaturePolicyFeature">
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment