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

Unified Diff: components/policy/core/common/config_dir_policy_loader.cc

Issue 2475583002: Adds option for JSON reader to allow invalid utf characters (Closed)
Patch Set: comment Created 4 years, 1 month 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 | « components/omnibox/browser/search_suggestion_parser.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/policy/core/common/config_dir_policy_loader.cc
diff --git a/components/policy/core/common/config_dir_policy_loader.cc b/components/policy/core/common/config_dir_policy_loader.cc
index 76f9763ed9d73d6108a86500c42ab9a44063f97c..b58a0bc14b54093bb37ab93bd15f41c41eef5e22 100644
--- a/components/policy/core/common/config_dir_policy_loader.cc
+++ b/components/policy/core/common/config_dir_policy_loader.cc
@@ -142,8 +142,8 @@ void ConfigDirPolicyLoader::LoadFromPath(const base::FilePath& path,
for (std::set<base::FilePath>::reverse_iterator config_file_iter =
files.rbegin(); config_file_iter != files.rend();
++config_file_iter) {
- JSONFileValueDeserializer deserializer(*config_file_iter);
- deserializer.set_allow_trailing_comma(true);
+ JSONFileValueDeserializer deserializer(*config_file_iter,
+ base::JSON_ALLOW_TRAILING_COMMAS);
int error_code = 0;
std::string error_msg;
std::unique_ptr<base::Value> value =
« no previous file with comments | « components/omnibox/browser/search_suggestion_parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698