cdesouza-chromium 49ffee34a1 [CodeHealth] Simplifying json parsing - pt.4 (#27805)
This PR simplifies JSON reading in several places by:

    - Using `base::JSONReader::ReadDict`
    - Using `base::JSONReader::ReadList`
    - Using `base::test::ParseJson*`

This changes aim to make the checks around the parsing and its
expectations simpler to read.

This PR also introduces patch for `base::JSONReader::ReadList` which is
only available in M135.

Chromium change:
https://chromium.googlesource.com/chromium/src/+/cb3669146301529c0c364a0478372fc46ddf514a

commit cb3669146301529c0c364a0478372fc46ddf514a
Author: Claudio DeSouza <cdesouza@chromium.org>
Date:   Wed Feb 19 16:51:29 2025 -0800

    [base] Adding `JSONReader::ReadList`

    This class already provides `ReadDict`, which has proven its usefulness
    in general. This change adds the corresponding implementation for
    `base::Value::Dict`.

    Bug: 40912723
2025-02-26 12:51:52 +00:00
2025-02-26 10:12:00 +07:00
2025-02-26 12:16:22 +00:00
2025-02-26 12:16:22 +00:00
2025-02-26 12:16:22 +00:00

Brave Core

Brave Core is a set of changes, APIs, and scripts used for customizing Chromium to make the Brave browser. Please also check https://github.com/brave/brave-browser

Follow @brave on Twitter for important announcements.

Resources

Community

You can ask questions and interact with the community in the following locations:

S
Description
No description provided
Readme MPL-2.0
3.8 GiB
Languages
C++ 36.9%
HTML 31.6%
Swift 9.4%
TypeScript 9%
Java 4.8%
Other 8.1%