0

Fix comment for base::JSONReader::Read().

Correctly describe the return value on failure after making changes in
r632920.

Change-Id: Ie08d91d8081c5ced6a563eb800e57cae1d04cd20
Reviewed-on: https://chromium-review.googlesource.com/c/1477958
Auto-Submit: Lei Zhang <thestig@chromium.org>
Commit-Queue: Jan Wilken Dörrie <jdoerrie@chromium.org>
Reviewed-by: Jan Wilken Dörrie <jdoerrie@chromium.org>
Cr-Commit-Position: refs/heads/master@{#633629}
This commit is contained in:
Lei Zhang
2019-02-20 07:10:09 +00:00
committed by Commit Bot
parent cef0ad5eba
commit a2bcae22a2

@@ -110,8 +110,7 @@ class BASE_EXPORT JSONReader {
~JSONReader();
// Reads and parses |json|, returning a Value.
// If |json| is not a properly formed JSON string, returns a Value of type
// NONE.
// If |json| is not a properly formed JSON string, returns base::nullopt.
static Optional<Value> Read(StringPiece json,
int options = JSON_PARSE_RFC,
int max_depth = kStackMaxDepth);