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

Unified Diff: chrome/browser/content_settings/content_settings_policy_provider.cc

Issue 9960077: Modify the base::JSONReader interface to take a set of options rather than a boolean flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 8 years, 8 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: chrome/browser/content_settings/content_settings_policy_provider.cc
diff --git a/chrome/browser/content_settings/content_settings_policy_provider.cc b/chrome/browser/content_settings/content_settings_policy_provider.cc
index 85a0631274e4d78ac813dc244399480ead56af23..f71bb4ca19f829fcd97a48019b6e801996caa294 100644
--- a/chrome/browser/content_settings/content_settings_policy_provider.cc
+++ b/chrome/browser/content_settings/content_settings_policy_provider.cc
@@ -303,8 +303,8 @@ void PolicyProvider::GetAutoSelectCertificateSettingsFromPreferences(
continue;
}
- scoped_ptr<base::Value> value(
- base::JSONReader::Read(pattern_filter_json, true));
+ scoped_ptr<base::Value> value(base::JSONReader::Read(pattern_filter_json,
+ base::JSON_ALLOW_TRAILING_COMMAS));
if (!value.get()) {
VLOG(1) << "Ignoring invalid certificate auto select setting. Reason:"
" Invalid JSON format: " << pattern_filter_json;

Powered by Google App Engine
This is Rietveld 408576698