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

Unified Diff: components/proximity_auth/wire_message.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
Index: components/proximity_auth/wire_message.cc
diff --git a/components/proximity_auth/wire_message.cc b/components/proximity_auth/wire_message.cc
index ef27a3139f23615cf8d0c602a9982caa18e30322..6da69d1a4256282248f4769c7586939b9b3dfe2f 100644
--- a/components/proximity_auth/wire_message.cc
+++ b/components/proximity_auth/wire_message.cc
@@ -88,7 +88,7 @@ std::unique_ptr<WireMessage> WireMessage::Deserialize(
std::unique_ptr<base::Value> body_value =
base::JSONReader::Read(serialized_message.substr(kHeaderLength));
- if (!body_value || !body_value->IsType(base::Value::TYPE_DICTIONARY)) {
+ if (!body_value || !body_value->IsType(base::Value::Type::DICTIONARY)) {
PA_LOG(WARNING) << "Error: Unable to parse message as JSON.";
return std::unique_ptr<WireMessage>();
}

Powered by Google App Engine
This is Rietveld 408576698