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

Unified Diff: chrome/common/extensions/api/common_extension_api_unittest.cc

Issue 1321313004: Remove use of JSONReader::DeprecatedRead from common_extension_api_unittest.cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/common_extension_api_unittest.cc
diff --git a/chrome/common/extensions/api/common_extension_api_unittest.cc b/chrome/common/extensions/api/common_extension_api_unittest.cc
index 70b53fb45da3901b4f2214408e3d3ab0b27167cc..f8580623dc26f4d4d2ad79d0f421f446e10ff6e7 100644
--- a/chrome/common/extensions/api/common_extension_api_unittest.cc
+++ b/chrome/common/extensions/api/common_extension_api_unittest.cc
@@ -170,7 +170,7 @@ TEST(ExtensionAPITest, APIFeatures) {
api_features_path, &api_features_str)) << "api_features.json";
scoped_ptr<base::DictionaryValue> value(static_cast<base::DictionaryValue*>(
- base::JSONReader::DeprecatedRead(api_features_str)));
+ base::JSONReader::Read(api_features_str).release()));
BaseFeatureProvider api_feature_provider(*value, CreateAPIFeature);
for (size_t i = 0; i < arraysize(test_data); ++i) {
@@ -250,7 +250,7 @@ TEST(ExtensionAPITest, IsAnyFeatureAvailableToContext) {
api_features_path, &api_features_str)) << "api_features.json";
scoped_ptr<base::DictionaryValue> value(static_cast<base::DictionaryValue*>(
- base::JSONReader::DeprecatedRead(api_features_str)));
+ base::JSONReader::Read(api_features_str).release()));
BaseFeatureProvider api_feature_provider(*value, CreateAPIFeature);
for (size_t i = 0; i < arraysize(test_data); ++i) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698