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

Unified Diff: components/content_settings/core/browser/content_settings_policy_provider.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
« no previous file with comments | « no previous file | components/dom_distiller/core/page_features_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/content_settings/core/browser/content_settings_policy_provider.cc
diff --git a/components/content_settings/core/browser/content_settings_policy_provider.cc b/components/content_settings/core/browser/content_settings_policy_provider.cc
index a0528bd02bb6d9d1e26eb26d5fe83c2f5470b2b1..6d313a9e16bd9d56b3995ebe2a242e9e206a6175 100644
--- a/components/content_settings/core/browser/content_settings_policy_provider.cc
+++ b/components/content_settings/core/browser/content_settings_policy_provider.cc
@@ -271,8 +271,8 @@ void PolicyProvider::GetAutoSelectCertificateSettingsFromPreferences(
continue;
}
- scoped_ptr<base::Value> value(base::JSONReader::DeprecatedRead(
- pattern_filter_json, base::JSON_ALLOW_TRAILING_COMMAS));
+ scoped_ptr<base::Value> value = base::JSONReader::Read(
+ pattern_filter_json, base::JSON_ALLOW_TRAILING_COMMAS);
if (!value || !value->IsType(base::Value::TYPE_DICTIONARY)) {
VLOG(1) << "Ignoring invalid certificate auto select setting. Reason:"
" Invalid JSON object: " << pattern_filter_json;
« no previous file with comments | « no previous file | components/dom_distiller/core/page_features_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698