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); |