Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(415)

Unified Diff: media/cdm/json_web_key.cc

Issue 2539363004: Make base::Value::TYPE a scoped enum. (Closed)
Patch Set: Rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/cdm/aes_decryptor_unittest.cc ('k') | net/cert/crl_set_storage.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « media/cdm/aes_decryptor_unittest.cc ('k') | net/cert/crl_set_storage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698