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

Unified Diff: components/proximity_auth/remote_status_update_unittest.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
« no previous file with comments | « components/policy/tools/generate_policy_source.py ('k') | components/proximity_auth/wire_message.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/proximity_auth/remote_status_update_unittest.cc
diff --git a/components/proximity_auth/remote_status_update_unittest.cc b/components/proximity_auth/remote_status_update_unittest.cc
index 91c75e7b3e079da31094afc9995de28fada769b7..3511be382a700f8161a9b2a1857ca90bab2ce7dc 100644
--- a/components/proximity_auth/remote_status_update_unittest.cc
+++ b/components/proximity_auth/remote_status_update_unittest.cc
@@ -14,7 +14,7 @@ namespace {
// Parses the |json| into a DictionaryValue.
scoped_ptr<base::DictionaryValue> ParseJson(const std::string& json) {
base::DictionaryValue* as_dictionary;
- base::JSONReader::DeprecatedRead(json)->GetAsDictionary(&as_dictionary);
+ base::JSONReader::Read(json).release()->GetAsDictionary(&as_dictionary);
return make_scoped_ptr(as_dictionary);
}
« no previous file with comments | « components/policy/tools/generate_policy_source.py ('k') | components/proximity_auth/wire_message.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698