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

Unified Diff: components/policy/core/browser/configuration_policy_handler_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/policy/core/browser/configuration_policy_handler_unittest.cc
diff --git a/components/policy/core/browser/configuration_policy_handler_unittest.cc b/components/policy/core/browser/configuration_policy_handler_unittest.cc
index 6e9503dc0aa1af80cb33f524307a8fae8c851f6b..67b66049ae9f090344caeeefb58c2d1cad61c856 100644
--- a/components/policy/core/browser/configuration_policy_handler_unittest.cc
+++ b/components/policy/core/browser/configuration_policy_handler_unittest.cc
@@ -652,9 +652,9 @@ TEST(SchemaValidatingPolicyHandlerTest, CheckAndGetValue) {
" \"Colors\": \"White\""
" }"
"}";
- scoped_ptr<base::Value> policy_map_value(
- base::JSONReader::DeprecatedReadAndReturnError(
- kPolicyMapJson, base::JSON_PARSE_RFC, NULL, &error));
+ scoped_ptr<base::Value> policy_map_value =
+ base::JSONReader::ReadAndReturnError(kPolicyMapJson, base::JSON_PARSE_RFC,
+ NULL, &error);
ASSERT_TRUE(policy_map_value) << error;
const base::DictionaryValue* policy_map_dict = NULL;
@@ -712,9 +712,9 @@ TEST(SimpleSchemaValidatingPolicyHandlerTest, CheckAndGetValue) {
" \"Colors\": \"Green\""
" }"
"}";
- scoped_ptr<base::Value> policy_map_value(
- base::JSONReader::DeprecatedReadAndReturnError(
- kPolicyMapJson, base::JSON_PARSE_RFC, NULL, &error));
+ scoped_ptr<base::Value> policy_map_value =
+ base::JSONReader::ReadAndReturnError(kPolicyMapJson, base::JSON_PARSE_RFC,
+ NULL, &error);
ASSERT_TRUE(policy_map_value) << error;
const base::DictionaryValue* policy_map_dict = NULL;
« no previous file with comments | « components/json_schema/json_schema_validator.cc ('k') | components/policy/core/common/cloud/component_cloud_policy_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698