Commit Graph
440 Commits
Author SHA1 Message Date
brave-buildsandbrave-builds-ro 706baf0c43 Roll perf profiles update (update-perf-profile-2026-03-31-16-16) (#35121)
* Update perf profile brave-typical-mac using v1.90.84
* Update perf profile brave-typical-android using v1.90.48
* Update perf profile chrome-typical-mac using v1.90.84
* Update perf profile chrome-typical-android using v1.90.48
* Update perf profile brave-typical-win using v1.90.86
* Update perf profile chrome-typical-win using v1.90.86
---------

Co-authored-by: brave-builds-ro <devops+robuilds@brave.com>
2026-04-01 03:25:49 +07:00
Artem Samoilenko c09c613e3d [cr147][Android] Exclude failing lib from breakpad symbols
Otherwise we get errors like:
FAILED: 1117d0ca-aba0-47f3-8a85-d58aa5a81e5c "./dist/brave.breakpad.syms" ACTION //brave/app/android:generate_breakpad_symbols(//build/toolchain/android:android_clang_x64)
err: exit=1
python3 ../../brave/tools/android/generate_breakpad_symbols.py --symbols-dir=/mnt/wd2t/projects/brave-browser-3/src/out/android_Release/dist/brave.breakpad.syms --jobs=16 --build-dir=/mnt/wd2t/projects/brave-browser-3/src/out/android_Release --package-path=/mnt/wd2t/projects/brave-browser-3/src/out/android_Release/apks/BraveMonox64.apk --src-root=/mnt/wd2t/projects/brave-browser-3/src/ --clear --verbose
build step: __brave_app_android_generate_breakpad_symbols___build_toolchain_android_android_clang_x64__rule "./dist/brave.breakpad.syms"
stdout:
Seeing lib don't know the location for: libimpress_api_jni.so
2026-03-26 19:55:50 -04:00
Max Karolinskiy 555d72d8a4 [cr147] Updates Lit mangler snapshot. 2026-03-26 19:25:02 -04:00
Kyle Den Hartog 0d3b9b0cde bump crates for security related issues (#34931)
related to https://rustsec.org/advisories/RUSTSEC-2026-0049
related to https://rustsec.org/advisories/RUSTSEC-2026-0067
related to https://rustsec.org/advisories/RUSTSEC-2026-0068
2026-03-26 10:22:39 -07:00
brave-buildsandbrave-builds-ro 742be79e8b Roll perf profiles update (update-perf-profile-2026-03-24-16-16) (#34946)
* Update perf profile brave-typical-android using v1.90.48
* Update perf profile chrome-typical-android using v1.90.48
* Update perf profile brave-typical-mac using v1.90.60
* Update perf profile chrome-typical-mac using v1.90.60
* Update perf profile brave-typical-win using v1.90.61
* Update perf profile chrome-typical-win using v1.90.61
---------

Co-authored-by: brave-builds-ro <devops+robuilds@brave.com>
2026-03-25 01:39:36 +07:00
Aleksei Khoroshilov f31f05eb60 Treat all tsconfig files as jsonc (#34781)
Treat all tsconfig files as jsonc.
2026-03-20 08:27:20 -04:00
brave-buildsandbrave-builds-ro 84131f198d Roll perf profiles update (update-perf-profile-2026-03-17-16-16) (#34792)
* Update perf profile brave-typical-mac using v1.90.38
* Update perf profile brave-typical-android using v1.90.36
* Update perf profile chrome-typical-mac using v1.90.38
* Update perf profile chrome-typical-android using v1.90.36
* Update perf profile brave-typical-win using v1.90.39
* Update perf profile chrome-typical-win using v1.90.39
---------

Co-authored-by: brave-builds-ro <devops+robuilds@brave.com>
2026-03-18 12:41:55 +07:00
Max Karolinskiy 0394568135 [brockit] Fixes execution of run_gnrt on Windows. (#34733)
Path to vpython3 needs to have correct separators.
2026-03-16 09:37:46 -04:00
Max Karolinskiy 7573559b97 Brockit and Plaster fixes for Windows (#34489)
* [Plaster] Fixes for Windows.

- When running commands make sure the output is in UTF-8, otherwise on
  Windows the output is using cp1252 which then can't be handled by
  UTF-8 decoder.

- When updating files (patches after applying plaster, or target source
  files) make sure to use LF line endings on Windows. The repo files are
  checked out as LF and we shouldn't introduce CRLF line ending during
  plaster apply operation.

* [Brockit] Fixes Win toolchain message.

When checking for Windows toolchain changes also check TOOLCHAIN_HASH.
The SDK version doesn't always get updated while the hash can change and
contain a different minor SDK update.

* Review feedback fix.
2026-03-11 13:49:23 -04:00
cdesouza-chromium 06420580c2 [plaster] Suport apply for specific-files only (#34623)
This change adds support for file paths to be listed when passing
`plaster apply`. This changes `apply` to go over all files, and just
apply specific ones.

This change will allow us to integrate plaster calls in brockit for
files that fail to reapply.

Resolves https://github.com/brave/brave-browser/issues/53512
2026-03-11 11:00:13 -03:00
brave-buildsandbrave-builds-ro d356b9aba5 Roll perf profiles update (update-perf-profile-2026-03-10-16-16) (#34611)
* Update perf profile brave-typical-mac using v1.90.15
* Update perf profile brave-typical-android using v1.90.13
* Update perf profile chrome-typical-mac using v1.90.15
* Update perf profile chrome-typical-android using v1.90.13
* Update perf profile brave-typical-win using v1.90.16
* Update perf profile chrome-typical-win using v1.90.16

---------

Co-authored-by: brave-builds-ro <devops+robuilds@brave.com>
2026-03-11 14:37:45 +07:00
brave-buildsandbrave-builds-ro fe9f3fa488 Roll perf profiles update (update-perf-profile-2026-03-03-16-16) (#34400)
* Update perf profile brave-typical-android using v1.89.81
* Update perf profile chrome-typical-android using v1.89.81
* Update perf profile brave-typical-win using v1.89.83
* Update perf profile chrome-typical-win using v1.89.83
* Update perf profile brave-typical-mac using v1.89.93
* Update perf profile chrome-typical-mac using v1.89.93

---------

Co-authored-by: brave-builds-ro <devops+robuilds@brave.com>
2026-03-04 12:02:35 +07:00
Max Karolinskiy 2f41abd6ba [cr146] Fixes post_presubmit.
The script was failing because it was encountering an unexpected
category 'more_cc': [<list_of_emails>] in the presubmit output and
couldn't handle the value data.

Updated the script to only process dictionary categories that contain
'message' key.
2026-02-26 14:14:53 +00:00
Emerick Rogul cc0748f395 [cr146] Update Lit mangler snapshot 2026-02-26 13:47:48 +00:00
Claudio DeSouza a31fb1f6bc [cr146] Mojo typemap added for ts Urls
This is just to make the URL type more intuitive when used with strings.
This change corrects the url uses in our end.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/a2622a33efbcdc7e4bcf72510775f7f93970fce8

commit a2622a33efbcdc7e4bcf72510775f7f93970fce8
Author: Fred Shih <ffred@chromium.org>
Date:   Wed Jan 21 17:07:46 2026 -0800

    Add mojo typemap for ts Url

    Currently URLs are a object type of {url: string}. This is annoying
    because there is a stutter when using it, for example:

    myObj.url.url

    This change maps the Url object directly to a string. So one can simply
    say:

    myObj.url <-- string type!

    The URL type wasn't used because url as a string is effectively
    calcified at this point. It's (probably) too risky to change all the
    callsites to url (and probably won't give us that much...).

    Change-Id: I481085b8954cbf65bb3a4d115fd39e71b0a8fbcb
    Bug: 40615900
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7018797
    Commit-Queue: Fred Shih <ffred@chromium.org>
    Reviewed-by: Daniel Cheng <dcheng@chromium.org>
    Reviewed-by: Michael Cui <mlcui@google.com>
    Reviewed-by: Roman Arora <romanarora@chromium.org>
    Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1572659}
2026-02-26 13:47:46 +00:00
brave-buildsandbrave-builds-ro 77c6481fcb Roll perf profiles update (update-perf-profile-2026-02-24-16-16) (#34158)
* Update perf profile brave-typical-mac using v1.89.66
* Update perf profile chrome-typical-mac using v1.89.66
* Update perf profile brave-typical-android using v1.89.64
* Update perf profile chrome-typical-android using v1.89.64
* Update perf profile brave-typical-win using v1.89.69
* Update perf profile chrome-typical-win using v1.89.69
---------

Co-authored-by: brave-builds-ro <devops+robuilds@brave.com>
2026-02-25 20:12:18 +07:00
Kamil Jozwiak 86d1683688 Upgrade from Chromium 145.0.7632.109 to Chromium 145.0.7632.120 (#34140)
<!-- Add brave-browser issue below that this PR will resolve -->
Resolves http://github.com/brave/brave-browser/issues/53082

<!-- CI-related labels that can be applied to this PR:
* CI/disable-pipeline-step-cache - instruct CI to not cache build steps
between runs for the same commit hash
* CI/enable-coverage - enable coverage reporting for your code changes
* CI/enable-test-only-affected - instruct CI to only run tests affected
by your change
* CI/run-audit-deps (1) - check for known npm/cargo vulnerabilities
(audit_deps)
* CI/run-network-audit (1) - run network-audit
* CI/run-perf-smoke-tests - run smoke performance tests
* CI/storybook-url (1) - deploy storybook and provide a unique URL for
each build
* CI/run-upstream-tests - run Chromium unit and browser tests on Linux
and Windows (otherwise only on Linux)
* CI/skip-upstream-tests - do not run Chromium unit, or browser tests
(otherwise only on Linux)
* CI/run-teamcity - run TeamCity
* CI/skip-teamcity - skip TeamCity
* CI/skip - do not run CI builds (except noplatform)
* CI/run-linux-arm64, CI/run-macos-x64, CI/run-windows-arm64,
CI/run-windows-x86 - run builds that would otherwise be skipped
* CI/skip-linux-x64, CI/skip-android, CI/skip-macos-arm64, CI/skip-ios,
CI/skip-windows-x64 - skip CI builds for specific platforms

(1) applied automatically when some files are changed (see:
https://github.com/brave/brave-core/blob/master/.github/labeler.yml)
-->

<!--
## Checklist:

- Review design docs
[Browser design
principles](https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/chrome_browser_design_principles.md)
[Style
guide](https://chromium.googlesource.com/chromium/src/+/main/styleguide/c++/c++.md)
[Core principles](https://www.chromium.org/developers/core-principles/)
- Ensure there are
(tests)[https://www.chromium.org/developers/testing/]. Unit test as much
as possible (including edge cases), but also include browser tests
covering high level functionality.
- Ensure that there are comments explaining what classes/methods are/do.
The "why" is often more important than the "what" in comments. Also
update any relevant docs (moving docs from wiki to brave-core if
necessary).
- Request security or other review (third-party libraries, rust code,
etc...) if applicable [security/privacy review is
needed](https://github.com/brave/brave-browser/wiki/Security-reviews)
[other review](https://github.com/brave/reviews/issues/new/choose)
Also see [adding third-party
libraries](https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/adding_to_third_party.md)
for general guidelines on using third party code
- Make sure there is a
[ticket](https://github.com/brave/brave-browser/issues) for your issue
- Use Github [auto-closing
keywords](https://docs.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue)
in the PR description above
- Write a good [PR/commit
description](https://google.github.io/eng-practices/review/developer/cl-descriptions.html)
- Squash any review feedback or "fixup" commits before merge, so that
history is a record of what happened in the repo, not your PR
- Add appropriate labels (`QA/Yes` or `QA/No`; `release-notes/include`
or `release-notes/exclude`; `OS/...`) to the associated issue
- Checked the PR locally:
* `npm run test -- brave_browser_tests`, `npm run test --
brave_unit_tests`
[wiki](https://github.com/brave/brave-browser/wiki/Tests)
* `npm run presubmit`
[wiki](https://github.com/brave/brave-browser/wiki/Presubmit-checks),
`npm run gn_check`, `npm run tslint`
- Run `git rebase master` (if needed)
-->
2026-02-24 09:24:25 -05:00
Mikhail 6033b49713 [perf] Use pnpm in perf_tests for brave-variations (#34057)
The PR switches for npm to pnpm for brave-variations in perf tests
2026-02-24 12:01:40 +00:00
Emerick Rogul 56659c4f89 [cr146] Update Lit mangler snapshot 2026-02-23 22:11:02 -05:00
brave-buildsandbrave-builds-ro 05f22b9495 Roll perf profiles update (update-perf-profile-2026-02-17-16-16) (#33998)
* Update perf profile brave-typical-mac using v1.89.44
* Update perf profile brave-typical-android using v1.89.42
* Update perf profile chrome-typical-mac using v1.89.44
* Update perf profile chrome-typical-android using v1.89.42
* Update perf profile brave-typical-win using v1.89.45
* Update perf profile chrome-typical-win using v1.89.45
---------

Co-authored-by: brave-builds-ro <devops+robuilds@brave.com>
2026-02-23 18:17:26 +07:00
Max Karolinskiy efa79dfdd1 Changes check_chromium_src warning into an error. (#33823)
* Changes check_chromium_src warning into an error.
Changes the warning that catches use of defined symbols in the override,
but not in the original file into an error. All uses of such symbols
should be marked with // CHROMIUM_SRC_INTERNAL_USE comment.

* Removes symbol exclusions section of the config file.
All symbols that don't conform to check_chromium_src rules should be marked with // CHROMIUM_SRC_NOLINT comment.
2026-02-18 16:07:35 -05:00
brave-buildsandbrave-builds-ro 7d82652d9e Roll perf profiles update (update-perf-profile-2026-02-10-16-16) (#33832)
* Update perf profile brave-typical-win using v1.89.17
* Update perf profile brave-typical-android using v1.89.13
* Update perf profile chrome-typical-win using v1.89.17
* Update perf profile chrome-typical-android using v1.89.13
* Update perf profile brave-typical-mac using v1.89.15
* Update perf profile chrome-typical-mac using v1.89.15

---------

Co-authored-by: brave-builds-ro <devops+robuilds@brave.com>
2026-02-15 13:46:11 +04:00
Mikhail 367be052ab Fix some eslint js issues (#33856)
The PR fixes eslint issues in *.js files and removes the related rules from the backlist.
2026-02-14 22:10:28 +04:00
cdesouza-chromium cfaf4c8d49 [CodeHealth][cr146] base::Contains() to be deleted (#33668)
[CodeHealth] `base::Contains()` to be deleted

The remaining cases of `base::Contains` in the codebase can be just
`std::ranges::contains`.

This change was done mechanically, with the following script

```bash
files_using_header="$(git grep -l base::Contains | tr '\n' ' ')"
sed -i 's/base::Contains/std::ranges::contains/g' \
  ${files_using_header}
../tools/add_header.py --header '<algorithm>' ${files_using_header}
files_including_header="$(git grep -l base/containers/contains.h | tr '\n' ' ')"
../tools/add_header.py --header '"base/containers/contains.h"' \
  --remove ${files_including_header}
git cl format
```

This CL also cherry-picks the contents of https://crrev.com/c/7380987 to
permit the use of certain range operations.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/4e6249c911b515cc237707ba751290c6dbe9970f

commit 4e6249c911b515cc237707ba751290c6dbe9970f
Author: Victor Hugo Vianna Silva <victorvianna@google.com>
Date:   Sun Jan 18 11:32:26 2026 -0800

    Reland "Delete unused base::Contains()"

    This is a reland of commit 15af921783afac76cfc7d5beb04e4816ac0ffac7

    Original change's description:
    > Delete unused base::Contains()
    >
    > All callers were migrated.
    >
    > Fixed: 470391351
    > Change-Id: I404da9186a45c2c47669592242fac972ef70dfa3
    > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7459699
    > Auto-Submit: Victor Vianna <victorvianna@google.com>
    > Commit-Queue: Francois Pierre Doray <fdoray@chromium.org>
    > Reviewed-by: Francois Pierre Doray <fdoray@chromium.org>
    > Cr-Commit-Position: refs/heads/main@{#1570540}

    Bug: 470391351
    Change-Id: I858f7880bf8cb1857085eb44836dee4a0becf7ae
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7490440
    Owners-Override: Matthew Denton <mpdenton@chromium.org>
    Commit-Queue: Victor Vianna <victorvianna@google.com>
    Reviewed-by: Victor Vianna <victorvianna@google.com>
    Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
    Cr-Commit-Position: refs/heads/main@{#1570926}
2026-02-05 13:09:25 -03:00
brave-buildsandbrave-builds-ro e617703bbe Roll perf profiles update (update-perf-profile-2026-02-01-16-16) (#33553)
* Update perf profile brave-typical-mac using v1.88.84
* Update perf profile brave-typical-android using v1.88.78
* Update perf profile brave-typical-win using v1.88.77
* Update perf profile chrome-typical-mac using v1.88.84
* Update perf profile chrome-typical-android using v1.88.78
* Update perf profile chrome-typical-win using v1.88.77

---------

Co-authored-by: brave-builds-ro <devops+robuilds@brave.com>
2026-02-01 19:34:13 +00:00
Max Karolinskiy c5224dee8c [cr145] Updates lit mangler snapshot. 2026-01-29 13:41:10 -05:00
Artem Samoilenko dd39249b2c [cr145] Keep glic GRDs in resource ID filtering to avoid missing includes
Otherwise there is a build error:
Traceback (most recent call last):
  File "/mnt/wd2t/projects/brave-browser-3/src/out/android_Release_arm64/../../tools/grit/grit.py", line 17, in <module>
    sys.exit(grit.grit_runner.Main(sys.argv[1:]))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/mnt/wd2t/projects/brave-browser-3/src/tools/grit/grit/grit_runner.py", line 313, in Main
    return toolobject.Run(options, args[1:])
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/mnt/wd2t/projects/brave-browser-3/src/tools/grit/grit/tool/build.py", line 265, in Run
    self.res = grd_reader.Parse(opts.input,
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/mnt/wd2t/projects/brave-browser-3/src/tools/grit/grit/grd_reader.py", line 252, in Parse
    handler.root.AssignFirstIds(filename_or_stream, defines)
  File "/mnt/wd2t/projects/brave-browser-3/src/tools/grit/grit/node/misc.py", line 657, in AssignFirstIds
    raise Exception('Please update %s and add a first id for %s (%s).' %
Exception: Please update ../../out/android_Release_arm64/gen/tools/gritsettings/default_resource_ids and add a first id for chrome/browser/glic/resources/browser_resources.grd (includes).
2026-01-29 13:40:59 -05:00
brave-buildsandbrave-builds-ro 55ea15c0f7 Roll perf profiles update (update-perf-profile-2026-01-25-16-16) (#33402)
* Update perf profile brave-typical-mac using v1.88.61
* Update perf profile brave-typical-android using v1.88.54
* Update perf profile brave-typical-win using v1.88.37
* Update perf profile chrome-typical-mac using v1.88.61
* Update perf profile chrome-typical-android using v1.88.54
* Update perf profile chrome-typical-win using v1.88.37

---------

Co-authored-by: brave-builds-ro <devops+robuilds@brave.com>
2026-01-26 12:44:40 +04:00
AlexeyBarabashandEmerick Rogul ce4d5b2434 Forcibly deny Continue from another device at history page (#33326)
* Forcibly deny `Continue from another device` at history page

Resolves https://github.com/brave/brave-browser/issues/52065

---------

Co-authored-by: Emerick Rogul <erogul@brave.com>
2026-01-23 16:15:21 +02:00
brave-buildsandbrave-builds-ro ec4e55124a Roll perf profiles update (update-perf-profile-2026-01-19-17-05) (#33278)
* Update perf profile brave-typical-android using v1.88.38
* Update perf profile brave-typical-win using v1.88.37
* Update perf profile chrome-typical-android using v1.88.38
* Update perf profile chrome-typical-win using v1.88.37
* Update perf profile brave-typical-mac using v1.88.36
* Update perf profile chrome-typical-mac using v1.88.36
---------

Co-authored-by: brave-builds-ro <devops+robuilds@brave.com>
2026-01-19 23:44:58 +04:00
Mikhail 7acea3ddb4 [perf] Force update components for perf profile (#33273) 2026-01-19 15:24:23 +00:00
Serg 25c9a56cbe [CodeHealth][Android] Adjusts policy const generator to respect acronyms. (#33188)
[CodeHealth][Android] Adjusts policy const generator to respect
acronyms.

Resolves: https://github.com/brave/brave-browser/issues/51950
2026-01-13 20:50:38 +00:00
Brian Johnson b168aa0bfd Improve error messages when plaster cannot apply the patch (#33103)
Collect `apply` errors and output them at the end instead of failing early on the first error
2026-01-09 20:09:24 +00:00
Max Karolinskiy 91bf28452c [cr145] Updates lit mangler snapshot. 2026-01-08 10:39:58 -05:00
brave-buildsandbrave-builds-ro 6099301f10 Roll perf profiles update (update-perf-profile-2026-01-04-16-16) (#33010)
* Update perf profile brave-typical-mac using v1.87.142
* Update perf profile brave-typical-android using v1.87.136
* Update perf profile brave-typical-win using v1.87.139
* Update perf profile chrome-typical-mac using v1.87.142
* Update perf profile chrome-typical-android using v1.87.136
* Update perf profile chrome-typical-win using v1.87.139
* Update perf profile brave-typical-win using v1.87.139
* Update perf profile chrome-typical-win using v1.87.139

---------

Co-authored-by: brave-builds-ro <devops+robuilds@brave.com>
2026-01-05 22:22:33 +04:00
Aleksei Khoroshilov 8d974a241b Cargo audit 0.22.0 (#32947) 2025-12-29 17:04:57 +01:00
brave-buildsandbrave-builds-ro 3284b515b8 Roll perf profiles update (update-perf-profile-2025-12-28-16-16) (#32960)
* Update perf profile brave-typical-mac using v1.87.121

* Update perf profile brave-typical-android using v1.87.94

* Update perf profile brave-typical-win using v1.87.97

* Update perf profile chrome-typical-mac using v1.87.121

* Update perf profile chrome-typical-android using v1.87.94

* Update perf profile chrome-typical-win using v1.87.97

---------

Co-authored-by: brave-builds-ro <devops+robuilds@brave.com>
2025-12-29 14:40:07 +01:00
brave-buildsandbrave-builds-ro 70f5525f51 Roll perf profiles update (update-perf-profile-2025-12-21-16-16) (#32921)
* Update perf profile brave-typical-mac using v1.87.99

* Update perf profile brave-typical-android using v1.87.94

* Update perf profile brave-typical-win using v1.87.97

* Update perf profile chrome-typical-mac using v1.87.99

* Update perf profile chrome-typical-android using v1.87.94

* Update perf profile chrome-typical-win using v1.87.97

---------

Co-authored-by: brave-builds-ro <devops+robuilds@brave.com>
2025-12-24 00:43:44 +01:00
Emerick Rogul a2110f5d6c [cr144] Update Lit mangler snapshots 2025-12-21 17:13:28 -05:00
Emerick Rogul 7cbb3b9f98 [cr144] Update Lit mangler snapshots 2025-12-21 17:13:15 -05:00
Claudio DeSouza 7ae8ad9df9 [cr144] Fixing IWYU brockit squash
This squash seems to have been innefective from the beginning, as
`endswith` is not reliable for this check. The new check verifies the
the sentece, and it also adds an expectation for a full-stop at the end,
to avoid a too broader pattern.
2025-12-21 17:12:58 -05:00
Claudio DeSouza 438eb58281 [cr144] Fix for commit hook to not tag !amend commits
It is necessary that the `COMMIT_MSG` script does not interfere with
amend commits as keeping their commit message intact is necessary for
squashes to work as expected.
2025-12-21 17:12:53 -05:00
Claudio DeSouza f641950048 [cr144] Fixing grit IDs overrun
Overlaying upstream's chromeos IDs range alone doesn't work any more and
pushes IDs above the 2^16-1 range.

This change adds a pre-processing step to upstream's
"default_resource_ids" action in //tools/gritsettings/BUILD.gn. The
pre-processing filters out all items in
tools/gritsettings/resource_ids.spec that have chromeos, ash, or glic in
the path. This reduces the ID range taken by the upstream down to,
currently, under 51,000. With Brave IDs moved to start at 53,000, they
now end under 59,000.
2025-12-20 23:56:17 +00:00
Aleksei Khoroshilov bd8186c2a1 Update rust tools build process to share intermediate targets. (#32780)
* Update rust tools build process to share intermediate targets.

* Remove unused logic.

* Modernize gn_run_rsp.py.

* Use separate crate target dir for each build_crate target.

* Add release target adjustments to update.py.

* Simplify cargo-audit path.

* Move cargo-audit target back to tools/crates.
2025-12-18 20:32:29 +09:00
Max Karolinskiy 5a16266372 Fixes plaster test failures on Windows. (#32818)
Changes:

- Fixes repository to use posix path in read_file
- Fixes plaster checksum calculation
2025-12-15 08:01:54 -08:00
Serg 7a06a92381 [Android] Android origin policies
Creates origin policies constants for Android
Adds BraveOriginServiceFactory and connect preferences with BraveOriginSettingsHandler
Resolves https://github.com/brave/brave-browser/issues/51333
2025-12-10 07:14:19 +09:00
brave-buildsandbrave-builds-ro c1d3e2e19c Roll perf profiles update (update-perf-profile-2025-12-07-16-16) (#32714)
* Update perf profile brave-typical-mac using v1.87.57
* Update perf profile brave-typical-android using v1.87.48
* Update perf profile brave-typical-win using v1.87.47
* Update perf profile chrome-typical-mac using v1.87.57
* Update perf profile chrome-typical-android using v1.87.48
* Update perf profile chrome-typical-win using v1.87.47
---------

Co-authored-by: brave-builds-ro <devops+robuilds@brave.com>
2025-12-08 12:34:50 +01:00
Mikhail 1f7f39158a [perf infra] Remove unused WPR files (#32584) 2025-12-04 18:04:22 +04:00
brave-buildsandbrave-builds-ro f4f289ce56 Roll perf profiles update (update-perf-profile-2025-11-30-16-16) (#32605)
* Update perf profile brave-typical-mac using v1.87.31
* Update perf profile brave-typical-android using v1.87.23
* Update perf profile brave-typical-win using v1.87.30
* Update perf profile chrome-typical-mac using v1.87.31
* Update perf profile chrome-typical-android using v1.87.23
* Update perf profile chrome-typical-win using v1.87.30
---------

Co-authored-by: brave-builds-ro <devops+robuilds@brave.com>
2025-12-01 13:38:13 +01:00
Sangwoo Ko 7bd18a26f9 Fix plaster apply command on Windows (#32199)
Fix patch file path generation with PurePath.as_posix()

On Windows path delimiter is `\` and on other platforms `/`. We should normalize the path.
WIth this patch, two particular errors are fixed

```
[11:25:08] Applying plaster file: c:\Users\sangwoo\brave\src\brave\rewrite\chrome\app\BUILD.gn.toml                                                                                           plaster.py:333
Traceback (most recent call last):                                                                                                                                                                        
  File "c:\Users\sangwoo\brave\src\brave\tools\cr\plaster.py", line 429, in <module>
    sys.exit(main())
             ^^^^^^
  File "c:\Users\sangwoo\brave\src\brave\tools\cr\plaster.py", line 424, in main
    args.func(args)
  File "c:\Users\sangwoo\brave\src\brave\tools\cr\plaster.py", line 404, in <lambda>
    apply_parser.set_defaults(func=lambda args: apply())
                                                ^^^^^^^
  File "c:\Users\sangwoo\brave\src\brave\tools\cr\plaster.py", line 334, in apply
    plaster_file.apply()
  File "c:\Users\sangwoo\brave\src\brave\tools\cr\plaster.py", line 257, in apply
    contents = repository.chromium.read_file(info.source)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "c:\Users\sangwoo\brave\src\brave\tools\cr\repository.py", line 150, in read_file
    return self.run_git('show',
           ^^^^^^^^^^^^^^^^^^^^
  File "c:\Users\sangwoo\brave\src\brave\tools\cr\repository.py", line 79, in run_git
    return terminal.run_git('-C', self.from_brave(), *cmd, no_trim=no_trim)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "c:\Users\sangwoo\brave\src\brave\tools\cr\terminal.py", line 183, in run_git
    return self.run(cmd).stdout
           ^^^^^^^^^^^^^
  File "c:\Users\sangwoo\brave\src\brave\tools\cr\terminal.py", line 160, in run
    raise e
  File "c:\Users\sangwoo\brave\src\brave\tools\cr\terminal.py", line 151, in run
    result = subprocess.run(cmd,
             ^^^^^^^^^^^^^^^^^^^
  File "C:\depot_tools\bootstrap-2@3_11_8_chromium_35_bin\python3\bin\Lib\subprocess.py", line 571, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['git', '-C', '..', 'show', 'HEAD:chrome\\app\\BUILD.gn']' returned non-zero exit status 128.

```
[11:24:08] Applying plaster file: c:\Users\sangwoo\brave\src\brave\rewrite\chrome\app\BUILD.gn.toml                                                                                           plaster.py:333
Traceback (most recent call last):                                                                                                                                                                        
  File "c:\Users\sangwoo\brave\src\brave\tools\cr\plaster.py", line 429, in <module>
    sys.exit(main())
             ^^^^^^
  File "c:\Users\sangwoo\brave\src\brave\tools\cr\plaster.py", line 424, in main
    args.func(args)
  File "c:\Users\sangwoo\brave\src\brave\tools\cr\plaster.py", line 404, in <lambda>
    apply_parser.set_defaults(func=lambda args: apply())
                                                ^^^^^^^
  File "c:\Users\sangwoo\brave\src\brave\tools\cr\plaster.py", line 334, in apply
    plaster_file.apply()
  File "c:\Users\sangwoo\brave\src\brave\tools\cr\plaster.py", line 310, in apply
    has_changed = info.save_patch_if_changed(
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "c:\Users\sangwoo\brave\src\brave\tools\cr\plaster.py", line 210, in save_patch_if_changed
    return self.patch.save_if_changed(new_content=content, dry_run=dry_run)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "c:\Users\sangwoo\brave\src\brave\tools\cr\plaster.py", line 79, in save_if_changed
    self.path.write_text(new_content, encoding='utf-8')
  File "C:\depot_tools\bootstrap-2@3_11_8_chromium_35_bin\python3\bin\Lib\pathlib.py", line 1078, in write_text
    with self.open(mode='w', encoding=encoding, errors=errors, newline=newline) as f:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\depot_tools\bootstrap-2@3_11_8_chromium_35_bin\python3\bin\Lib\pathlib.py", line 1044, in open
    return io.open(self, mode, buffering, encoding, errors, newline)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'patches\\chrome\\app\\BUILD.gn.patch'
```****
```
2025-11-29 12:40:31 +01:00