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

Unified Diff: components/proximity_auth/wire_message.cc

Issue 1323923002: Remove use of JSONReader::DeprecatedRead from components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Error fix Created 5 years, 3 months 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 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>();

Powered by Google App Engine
This is Rietveld 408576698