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

Unified Diff: components/safe_browsing_db/safe_browsing_api_handler_util.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 | « components/proximity_auth/wire_message.cc ('k') | components/safe_json/json_sanitizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/safe_browsing_db/safe_browsing_api_handler_util.cc
diff --git a/components/safe_browsing_db/safe_browsing_api_handler_util.cc b/components/safe_browsing_db/safe_browsing_api_handler_util.cc
index e4474effec1cd71754ff8cb5683f58148ca6888e..4e894f03ee506a87d742caf0fafdbd0b4ce94e1e 100644
--- a/components/safe_browsing_db/safe_browsing_api_handler_util.cc
+++ b/components/safe_browsing_db/safe_browsing_api_handler_util.cc
@@ -157,7 +157,7 @@ UmaRemoteCallResult ParseJsonFromGMSCore(const std::string& metadata_str,
// Pick out the "matches" list.
std::unique_ptr<base::Value> value = base::JSONReader::Read(metadata_str);
const base::ListValue* matches = nullptr;
- if (!value.get() || !value->IsType(base::Value::TYPE_DICTIONARY) ||
+ if (!value.get() || !value->IsType(base::Value::Type::DICTIONARY) ||
!(static_cast<base::DictionaryValue*>(value.get()))
->GetList(kJsonKeyMatches, &matches) ||
!matches) {
« no previous file with comments | « components/proximity_auth/wire_message.cc ('k') | components/safe_json/json_sanitizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698