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

Unified Diff: components/web_resource/promo_resource_service_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
Index: components/web_resource/promo_resource_service_unittest.cc
diff --git a/components/web_resource/promo_resource_service_unittest.cc b/components/web_resource/promo_resource_service_unittest.cc
index f759273952bcde38e54a3d3eae176ed63d2b989a..4fe7a73d25c1d10ccb52c027cefe14ccb21557f2 100644
--- a/components/web_resource/promo_resource_service_unittest.cc
+++ b/components/web_resource/promo_resource_service_unittest.cc
@@ -85,7 +85,7 @@ class NotificationPromoTest : public testing::Test {
std::string json_with_end_date(
base::ReplaceStringPlaceholders(json, replacements, NULL));
- base::Value* value(base::JSONReader::DeprecatedRead(json_with_end_date));
+ base::Value* value(base::JSONReader::Read(json_with_end_date).release());
ASSERT_TRUE(value);
base::DictionaryValue* dict = NULL;
« no previous file with comments | « components/web_resource/promo_resource_service_mobile_ntp_unittest.cc ('k') | components/webcrypto/test/test_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698