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

Unified Diff: components/dom_distiller/ios/distiller_page_ios.mm

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/dom_distiller/ios/distiller_page_ios.mm
diff --git a/components/dom_distiller/ios/distiller_page_ios.mm b/components/dom_distiller/ios/distiller_page_ios.mm
index c4859afc76c8a0aa8896ae17aaf119cbd8914798..8f2e29ddb1392982f24430fa4d675a1568c8d1a8 100644
--- a/components/dom_distiller/ios/distiller_page_ios.mm
+++ b/components/dom_distiller/ios/distiller_page_ios.mm
@@ -111,8 +111,8 @@ void DistillerPageIOS::OnLoadURLDone(
void DistillerPageIOS::HandleJavaScriptResultString(NSString* result) {
scoped_ptr<base::Value> resultValue = base::Value::CreateNullValue();
if (result.length) {
- scoped_ptr<base::Value> dictionaryValue(
- base::JSONReader::DeprecatedRead(base::SysNSStringToUTF8(result)));
+ scoped_ptr<base::Value> dictionaryValue =
+ base::JSONReader::Read(base::SysNSStringToUTF8(result));
if (dictionaryValue &&
dictionaryValue->IsType(base::Value::TYPE_DICTIONARY)) {
resultValue = dictionaryValue.Pass();
« no previous file with comments | « components/dom_distiller/core/page_features_unittest.cc ('k') | components/history/core/browser/web_history_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698