| Index: media/cdm/json_web_key.cc
|
| diff --git a/media/cdm/json_web_key.cc b/media/cdm/json_web_key.cc
|
| index 60e73e8cf63af3e36108e491d5ecf11ca05766e7..04f94cfd3887c09b30aaf4a8726afbff6d8da924 100644
|
| --- a/media/cdm/json_web_key.cc
|
| +++ b/media/cdm/json_web_key.cc
|
| @@ -171,7 +171,7 @@ bool ExtractKeysFromJWKSet(const std::string& jwk_set,
|
| }
|
|
|
| std::unique_ptr<base::Value> root(base::JSONReader().ReadToValue(jwk_set));
|
| - if (!root.get() || root->GetType() != base::Value::TYPE_DICTIONARY) {
|
| + if (!root.get() || root->GetType() != base::Value::Type::DICTIONARY) {
|
| DVLOG(1) << "Not valid JSON: " << jwk_set << ", root: " << root.get();
|
| return false;
|
| }
|
| @@ -240,7 +240,7 @@ bool ExtractKeyIdsFromKeyIdsInitData(const std::string& input,
|
| }
|
|
|
| std::unique_ptr<base::Value> root(base::JSONReader().ReadToValue(input));
|
| - if (!root.get() || root->GetType() != base::Value::TYPE_DICTIONARY) {
|
| + if (!root.get() || root->GetType() != base::Value::Type::DICTIONARY) {
|
| error_message->assign("Not valid JSON: ");
|
| error_message->append(ShortenTo64Characters(input));
|
| return false;
|
| @@ -375,7 +375,7 @@ bool ExtractFirstKeyIdFromLicenseRequest(const std::vector<uint8_t>& license,
|
|
|
| std::unique_ptr<base::Value> root(
|
| base::JSONReader().ReadToValue(license_as_str));
|
| - if (!root.get() || root->GetType() != base::Value::TYPE_DICTIONARY) {
|
| + if (!root.get() || root->GetType() != base::Value::Type::DICTIONARY) {
|
| DVLOG(1) << "Not valid JSON: " << license_as_str;
|
| return false;
|
| }
|
|
|