New clang version have been triggering warnings on the forked version of
rapidjson being used by brave. There's work under way to remove
rapidjson entirely from the codebase, but that has proven to be a bit
more challanged than initially expected.
This change removes the use of the rapidjson brave fork, which was
created mainly to have a .gn file in the root path, and uses the
original rapidjson repo to clone it from.
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/d8cc01ec95f50e75b972b4285192f12277a30595
commit d8cc01ec95f50e75b972b4285192f12277a30595
Author: Xiaoling Bao <xiaolingbao@chromium.org>
Date: Fri Aug 5 18:57:24 2022 +0000
Check in lzma 7zz command for mac.
The 7zz command originates from: https://7-zip.org/a/7z2107-mac.tar.xz.
Created lzma_sdk/bin/mac64 folder for the new binary.
sha1 hash digest:
c62266f7da3108bef870086c456d002ae8ffe089
sha256 hash digest:
c194cd5b88d5cf5842df4f6e5b082ac593780aabc221de01558a4fa58850c43e
Moved lzma_sdk/bin/7z*.exe to lzma_sdk/bin/win64/7z*.exe and updated the references.
Bug: 1348343
* Allow users to select a specific 'Brave Background'
Previously, users couldn't select a specific 'Brave Background' image.
With this PR, A chooser for 'Brave Background' images is added and
toggle button for using 'Brave Background' as is(rotating) is added.
* Implement WebUI for Brave background chooser
* `BraveBackground` was added
* Reuse most of existing UI component.
* ColorChooser => BackgroundChooser
* ColorBackgroundOption => BackgroundOption
* Introduce new mojo types and function
* `BraveBackground` type
* `Background` type : union of `CustomBackground` and `BraveBackground`
* `GetBraveBackgrounds` function: For setting UI to show 'Brave
Background' images in a chooser, web ui should know all brave backgrounds.
This function is for getting all brave backgrounds.
* Implement backend behaviors
* Returns Brave backgrounds from NTPBackgroundImageData to webui
* When users select a 'Brave background', save its URL using `NTPBackgroundPrefs`
* `NTPCustomBackgroundImageService` checks if user has selected a 'Brave background'.
In this case, `NTPCustomBackgroundImageService` will return the selected 'Brave background'.
i.e. ViewCounterService won't return the background.
* Fix up invalid data and fallback to random background
Chromium change:
https://source.chromium.org/chromium/chromium/src/+/3fa36902563c565b6c1e7811b7e431a533529a82
commit 3fa36902563c565b6c1e7811b7e431a533529a82
Author: Michael Chang <donchan@microsoft.com>
Date: Fri Jul 1 19:15:57 2022 +0000
Clean-up //third_party/lzma_sdk folder
As part of updating the lzma_sdk, clean up the folders and put them into different subfolders. This puts the files in a more similar
organization to the original lzma sdk. Fix up other files to have
correct includes.
Bug: 1334732