Index: components/proximity_auth/wire_message.cc |
diff --git a/components/proximity_auth/wire_message.cc b/components/proximity_auth/wire_message.cc |
index 6d211167432b55d9f338ddf3d20bb16834e0f718..8ee5deb55fe53df6eb02d19f8277ae97ab15280f 100644 |
--- a/components/proximity_auth/wire_message.cc |
+++ b/components/proximity_auth/wire_message.cc |
@@ -82,8 +82,8 @@ scoped_ptr<WireMessage> WireMessage::Deserialize( |
if (!ParseHeader(serialized_message, is_incomplete_message)) |
return scoped_ptr<WireMessage>(); |
- scoped_ptr<base::Value> body_value(base::JSONReader::DeprecatedRead( |
- serialized_message.substr(kHeaderLength))); |
+ scoped_ptr<base::Value> body_value = |
+ base::JSONReader::Read(serialized_message.substr(kHeaderLength)); |
if (!body_value || !body_value->IsType(base::Value::TYPE_DICTIONARY)) { |
PA_LOG(WARNING) << "Error: Unable to parse message as JSON."; |
return scoped_ptr<WireMessage>(); |