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

Unified Diff: components/web_resource/promo_resource_service_mobile_ntp_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_mobile_ntp_unittest.cc
diff --git a/components/web_resource/promo_resource_service_mobile_ntp_unittest.cc b/components/web_resource/promo_resource_service_mobile_ntp_unittest.cc
index 98648373a90e815794d6824f992bffc5e70c837f..760b7eb85553592a24955edaf241eeec24974260 100644
--- a/components/web_resource/promo_resource_service_mobile_ntp_unittest.cc
+++ b/components/web_resource/promo_resource_service_mobile_ntp_unittest.cc
@@ -52,10 +52,10 @@ class NotificationPromoMobileNtpTest {
const std::string& promo_action_type,
const std::string& promo_action_arg0,
const std::string& promo_action_arg1) {
- base::Value* value(base::JSONReader::DeprecatedRead(json));
+ scoped_ptr<base::Value> value = base::JSONReader::Read(json);
ASSERT_TRUE(value);
base::DictionaryValue* dict = NULL;
- value->GetAsDictionary(&dict);
+ value.release()->GetAsDictionary(&dict);
ASSERT_TRUE(dict);
test_json_.reset(dict);

Powered by Google App Engine
This is Rietveld 408576698