| Index: components/webcrypto/algorithms/util.cc
|
| diff --git a/components/webcrypto/algorithms/util.cc b/components/webcrypto/algorithms/util.cc
|
| index f8eb6ae2ba64daf89a149eb440a4c26832ed9e7e..de4c1bf7994a90f60f36dea1eaaf3813d4243cc2 100644
|
| --- a/components/webcrypto/algorithms/util.cc
|
| +++ b/components/webcrypto/algorithms/util.cc
|
| @@ -51,13 +51,7 @@ void TruncateToBitLength(size_t length_bits, std::vector<uint8_t>* bytes) {
|
| }
|
|
|
| Status CheckKeyCreationUsages(blink::WebCryptoKeyUsageMask all_possible_usages,
|
| - blink::WebCryptoKeyUsageMask actual_usages,
|
| - EmptyUsagePolicy empty_usage_policy) {
|
| - if (actual_usages == 0 &&
|
| - empty_usage_policy == EmptyUsagePolicy::REJECT_EMPTY) {
|
| - return Status::ErrorCreateKeyEmptyUsages();
|
| - }
|
| -
|
| + blink::WebCryptoKeyUsageMask actual_usages) {
|
| if (!ContainsKeyUsages(all_possible_usages, actual_usages))
|
| return Status::ErrorCreateKeyBadUsages();
|
| return Status::Success();
|
|
|