Chromium Code Reviews| Index: base/json/json_reader.h |
| diff --git a/base/json/json_reader.h b/base/json/json_reader.h |
| index a954821a288d690648457ae4c250a2a45ba0a4b1..00615feab900042885e45b8663a0652e7fb022a8 100644 |
| --- a/base/json/json_reader.h |
| +++ b/base/json/json_reader.h |
| @@ -55,6 +55,11 @@ enum JSONParserOptions { |
| // if the child is Remove()d from root, it would result in use-after-free |
| // unless it is DeepCopy()ed or this option is used. |
| JSON_DETACHABLE_CHILDREN = 1 << 1, |
| + |
| + // If set the parser replaces invalid characters with |
| + // kUnicodeReplacementString. If not set, invalid characters trigger a hard |
|
brettw
2016/11/10 20:35:40
This isn't a global constant so it's weird to refe
sky
2016/11/10 23:01:47
Done.
|
| + // error and parsing fails. |
| + JSON_REPLACE_INVALID_CHARACTERS = 1 << 2, |
| }; |
| class BASE_EXPORT JSONReader { |