-
Notifications
You must be signed in to change notification settings - Fork 922
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CodeHealth] Simplifying json parsing - pt.3 #27732
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rewards 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sync ++
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
++
2049f54
to
ec52d37
Compare
[puLL-Merge] - brave/brave-core@27732 DescriptionThis PR updates the codebase to use the newer ChangesChangesBy filename:
sequenceDiagram
participant Code
participant JSONReader
participant Dict
Note over Code,Dict: Old Flow
Code->>JSONReader: Read()
JSONReader-->>Code: base::Value
Code->>Code: Check if is_dict()
Code->>Code: GetDict()
Note over Code,Dict: New Flow
Code->>JSONReader: ReadDict()
JSONReader-->>Code: base::Value::Dict
Code->>Dict: Direct dictionary access
|
This PR simplifies JSON reading in several places by: - Using `base::JSONReader::ReadDict` - Using `base::test::ParseJson*` This changes aim to make the checks around the parsing and its expectations simpler to read.
ec52d37
to
c8d910f
Compare
Released in v1.77.64 |
This PR simplifies JSON reading in several places by:
This changes aim to make the checks around the parsing and its expectations simpler to read.
Resolves
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
wikinpm run presubmit
wiki,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan: