Commit Graph
781 Commits
Author SHA1 Message Date
Max Karolinskiy e1fcede0ec [check_chromium_src] Reorganize code for hooking into presubmit.
-Added symbol exclusions.
-Load exclusions from a json5 file.
-Moved check_chromium_src script to //brave/tools.
-Various error messaging fixes.
-Additional chromium_src exclusions.
2023-10-12 11:37:21 -04:00
mkarolin ceb4687c1a Removed outdated CC bubble promo browser test.
The test was removed in https://github.com/brave/brave-core/pull/3257,
then re-added in https://github.com/brave/brave-core/pull/4151, but
without adding it to test/BUILD.gn. But then upstream removed the
relevant code and we removed our patch/override in
https://github.com/brave/brave-core/commit/5b225e01faa7d1f62e6e8cab16084d426914afdf,
so the test is no longer needed.
2023-10-12 11:26:31 -04:00
mkarolin a6da4c56e7 Removed outdated https only mode browser test override.
The upstream browser test was removed in Cr117.

Chromium change:

https://chromium.googlesource.com/chromium/src/+/7a092ab29461a

commit 7a092ab29461a6864bf919ada619414b01d9f98d
Author: Chris Thompson <cthomp@chromium.org>
Date:   Tue Aug 1 16:36:40 2023 +0000

    Cleanup HFMv1 code and remove HFMv2 feature flag

    Bug: 1468577
2023-10-12 11:26:30 -04:00
mkarolin 0815e94354 [check_chromium_src] Updated how #defines and #includes are checked.
-Validate exclusions.
-Do not skip #defines that have no replacement values.
-Expect #define to be at the beginning of the line.
-Check for corresponding #undef.
-Check for #defines that are used internally in the override and ignore
 those.
-Always check #includes.
-v8/src #includes can start wit src.
-Return success/error code.
-Strip comments from sources and overrides to avoid finding symbols in comments.
2023-10-12 11:25:48 -04:00
Aleksey Khoroshilov 97a5f35253 Always use "brave" as branding_path_product, fix strings generation.
Chromium change:
https://chromium.googlesource.com/chromium/src/+/79ca9265d25f26dd9dc3c8fad2a72241054e14ae

commit 79ca9265d25f26dd9dc3c8fad2a72241054e14ae
Author: Henrique Ferreiro <hferreiro@igalia.com>
Date:   Wed Aug 23 10:17:33 2023 +0000

    Simplify the build for branded strings

    Branded strings are defined in *chromium_strings.grd and
    *google_chrome_strings.grd files. Both kind of files contain different
    messages for the same ids. Those ids are compiled into generated header
    files by their corresponding targets. Both the targets and the header
    files are named differently, similarly to the grd files. This requires
    that the correct target and header file is used depending on the build
    but, in practice, most code sites just depend on both targets and
    include both header files.

    This CL merges those targets so that from now on only the chromium
    version is used (e.g.
    //chrome/app:chromium_strings and chrome/grit/chromium_strings.h,
    //components/strings/component_chromium_strings and
    components/strings/grit/components_chromium_strings.h, etc.). The
    targets are parameterized by `branding_path_product` so that the correct
    grd and pak filenames are used.

    Future CLs will change the targets and generated files to be named
    *branded_strings.

    Bug: 1470725
2023-09-27 13:08:20 +03:00
wchen342 d8d4eb036c [Android] Add method to extend touch area without changing View appearances 2023-09-22 21:12:06 +03:00
Claudio DeSouza 2e0aaf4af0 license.py expects list of license paths
Upstream has added support to multiple license files per library, which
requires we change our own list of license paths to be a list.

Chromium change:
https://chromium.googlesource.com/chromium/src/+/96c24160096388835ce0e46deb1beff3c9ce1b5e

commit 96c24160096388835ce0e46deb1beff3c9ce1b5e
Author: Anne Redulla <aredulla@google.com>
Date:   Mon Jun 26 01:13:43 2023 +0000

    [ssci] licenses.py to handle multiple license files

    Bug: b:288202522
2023-09-06 12:38:43 +01:00
Oscar A. Jara c77406aea2 delete scripts not needed anymore 2023-08-14 17:51:35 +02:00
Ahmed Kamal be50933b3e Fix formatting of python scripts (#19623)
* temp

Signed-off-by: Ahmed Kamal <email.ahmedkamal@googlemail.com>

* trivial change to trigger lint

Signed-off-by: Ahmed Kamal <email.ahmedkamal@googlemail.com>

* Apply fixes

Signed-off-by: Ahmed Kamal <email.ahmedkamal@googlemail.com>

* Revert "temp"

This reverts commit 9724d3bc66cdf8082cb62f7ee79923507fdbba47.

* Revert "trivial change to trigger lint"

This reverts commit 5417ce862b7a0f381b9dd3ed81c8a44b06f36b54.

* The big fmt

Signed-off-by: Ahmed Kamal <email.ahmedkamal@googlemail.com>

* Improve regex, please sonarcloud

Group parts of the regex together to make
the operator precedence explicit

Signed-off-by: Ahmed Kamal <email.ahmedkamal@googlemail.com>

---------

Signed-off-by: Ahmed Kamal <email.ahmedkamal@googlemail.com>
2023-08-09 12:40:12 +01:00
Mihai PLESA fe59801751 comment fix 2023-08-07 13:48:19 +01:00
Mihai PLESA 1ccc9522a6 remove brave github token (#19536) 2023-08-07 08:36:41 -04:00
Ahmed Kamal 675dae8450 uplift.py: uplift-to is now a csv list of channels to uplift-to (#19557)
* uplift-to is now a csv list of ch to uplift-to

* fmt shorter help msg

Signed-off-by: Ahmed Kamal <email.ahmedkamal@googlemail.com>

* yapf fmt

Signed-off-by: Ahmed Kamal <email.ahmedkamal@googlemail.com>

---------

Signed-off-by: Ahmed Kamal <email.ahmedkamal@googlemail.com>
2023-08-07 05:26:56 -04:00
Michael Herrmann 5dc3dcc00b Update Widevine signature_generator to Python 3 (#19437) 2023-07-27 23:55:10 +09:00
Mihai PLESA 66c4fac1d6 Revert "Update Widevine signature_generator to Python 3" (#19419)
Revert "Update Widevine signature_generator to Python 3 (#18636)"

This reverts commit 2e124e822f.
2023-07-25 13:00:33 -04:00
Michael Herrmann 2e124e822f Update Widevine signature_generator to Python 3 (#18636)
* Update Widevine signature_generator to Python 3

* Fix missing dependency 'macholib' on macOS

* Add missing license for macholib

* Fix Widevine signature generation on macOS

* Add third_party/macholib/ to .gitignore

* Fix lint errors

* Simplify code

* Add comment

* Lint

* Simplify code

* Only include DEP macholib on macOS

* Fix build error

* Remove obsolete import

* Reference more stable dep license file

* Remove wrong line of code

* Remove unnecessary comment

* Remove obsolete workaround

* Revert "Remove obsolete workaround"

This reverts commit 0c1b736ed7bc02449e6dd2d49b5985c829df85b6.

* Update comment

* Fix Android build

* Fix Android build

* Fix broken init on Windows

* Remove obsolete workaround
2023-07-25 11:56:06 -04:00
Jay Harris 0f73ab4331 [Leo] Version Bump & Integrate Presubmit (#19187) 2023-07-25 13:01:18 +02:00
Aleksey Khoroshilov 79ba272bbb Don't fail license check if a dir doesn't contain any files. 2023-07-21 13:11:15 +07:00
bridiver f0f3ae9b7f build audit_deps with upstream toolchain 2023-07-16 14:34:20 -07:00
Cepera 4e6880798e Move brave_vpn_wireguard_servce -> brave/browser/brave_vpn/win (#19204) 2023-07-12 05:10:43 +03:00
bridiver b1c1343cd0 convert brave rust targets to upstream rust targets 2023-06-29 12:10:14 -07:00
mkarolin fcde02393a [Android] Adds l10n for android_chrome_tab_ui_strings.grd. 2023-06-20 16:18:21 -04:00
Oscar A. Jara 949974017d avoid re-uploading the public key on every run 2023-06-09 17:14:00 +02:00
Francois Marier c0311dc551 Add license information for VPN WireGuard Service (fixes brave/brave-browser#30902) 2023-06-07 22:15:32 -07:00
samartnik a31aa3b5c1 Merge pull request #18610 from brave/android_new_version_codes
[Android] Optimization for version codes for android builds
2023-06-01 07:29:41 -04:00
Jay Harris 62d74d54bb [Leo]: Enable Leo in Polymer, and convert settings page (#18156) 2023-05-31 09:33:28 +12:00
Artem Samoilenko 2bc61b2ed9 [Android] Fixes for python pre-submit issues 2023-05-29 11:21:51 -04:00
Artem Samoilenko fd829863d1 [Android] Optimization for version codes for android builds 2023-05-29 09:49:59 -04:00
Cepera b1949258d5 Fixed sync for mac (#18515) 2023-05-18 11:25:44 +02:00
Claudio DeSouza a106f17f29 Rust Bindgen removed upstream
Chromium change:
https://chromium.googlesource.com/chromium/src/+/ba79f3617b350ed3bff03e747e942551dac5f460

commit ba79f3617b350ed3bff03e747e942551dac5f460
Author: danakj <danakj@chromium.org>
Date:   Thu Apr 6 21:56:46 2023 +0000

    Remove Bindgen and its dependencies from third_party/rust.

    Bindgen is now built on the rust toolchain builders. It is not part of
    chromium and does not need to be in the chromium src repo anymore.

    R=lukasza@chromium.org

    Bug: 1426886
2023-05-15 13:10:37 +01:00
mkarolin 035d7e37b4 Fixes escaping of $ in strings rebase script. 2023-05-15 13:10:36 +01:00
Michael Herrmann 3bcac3e282 Refactor: Move some Widevine logic from JS to GN 2023-05-09 13:27:37 +02:00
Michael Herrmann 4a30ce4e5e Fix some old lint warnings 2023-05-09 13:27:34 +02:00
Michael Herrmann da67c59951 Refactor code signing logic on Windows 2023-05-09 13:26:07 +02:00
Michael Herrmann 1e441de73e Refactor: Streamline code 2023-05-09 13:26:07 +02:00
Michael Herrmann 75ddbb07fe Refactor: De-duplicate code 2023-05-09 13:26:07 +02:00
Michael Herrmann 258a34a775 Refactor: De-duplicate and simplify code 2023-05-09 13:26:07 +02:00
Michael Herrmann 443401569a Remove brave_installer_{w}_{x}_{y}_{z}.exe
It is the same as brave_installer.exe. CI has already been updated to only use
the latter.
2023-05-09 13:26:07 +02:00
Michael Herrmann b34cc52336 Remove unused file 2023-05-09 13:26:06 +02:00
Aleksey Khoroshilov 95e48b4b1c Update Rust to 1.67.1, add support for native arm64 MacOS toolchain. 2023-04-26 18:16:55 +07:00
cdesouza-chromium 3527627467 Move bip39wally-core-native to third_party (#18112)
Move bip39wally-core-native to third_party/

This change moves bip39wally-core-native to be under third_part, to
avoid clang plugin checks from being enforced on this library's code.
This is in preparation for the switching on of `raw_ptr<T>` checks in
M114.
2023-04-19 12:39:48 +01:00
Michael Herrmann d70cefbb5c Merge pull request #17882 from brave/fix-failing-subsequent-delta-updates-win
Fix failing subsequent delta updates on Windows
2023-04-04 19:55:22 +02:00
Michael Herrmann 2420004083 Fix: Subsequent delta updates on Windows failed
The reason for the bug was that GetPrevVersion in create_installer_archive.py
extracts the previous version's chrome.dll file *into the staging directory*.
This has the side effect of placing the .dll into chrome.7z, which serves as the
target during delta update generation. When the (first) delta then gets applied,
the old .dll gets placed in chrome.7z in Brave's installation directory. When
the second delta then runs, it sees an unexpected hash of chrome.7z and fails.

This commit replaces the implementation of GetPrevVersion with one that does not
have the unwanted side effect.
2023-04-04 16:18:13 +02:00
Cepera f1cbab7619 Added BraveVPNDisable policy (#17836) 2023-04-03 17:57:06 +03:00
Aleksey Khoroshilov f8346738b8 Merge pull request #17728 from brave/presubmit-fixes
Improve presubmit checks
2023-03-27 16:08:18 +07:00
Claudio DeSouza 07c4745cea Remove exception control from challange bypass
The code in challange bypass was attempting to emulate exceptions by
having an error stored in a global local thread state. This is
undesirable, and we should prefer to have failure signaled through
constructs like `base::expected`.

This commit adjusts the return types of all functions that are expected
to fail, and also deletes all exception related code.
2023-03-24 12:08:17 +00:00
Claudio DeSouza ae6fa0b7b1 Checking challange bypass into brave-core
This is being done to simplify the use of challange bypass ffi, as well
as to allow us to modernise the return types to not rely on global
state.
2023-03-24 12:06:34 +00:00
Aleksey Khoroshilov 32b1b9fabf Fail on missing presubmit overrides. 2023-03-23 20:27:51 +07:00
mkarolin 27420e0d85 Updated check_chromium_src.py script to better handle ../gen/ overrides. 2023-03-17 18:51:19 -04:00
Francois Marier 8d58e8ce43 Add Android libraries to brave://credits (fixes brave/brave-browser#29106) 2023-03-16 16:49:18 -07:00
Ahmed Kamal 0e8231a1b1 Uplift script should fail if milestone not found (#17599)
* wip

Signed-off-by: Ahmed Kamal <email.ahmedkamal@googlemail.com>

* X (revert me)

Signed-off-by: Ahmed Kamal <email.ahmedkamal@googlemail.com>

* raise exception if milestone not found. script exit(1)

Signed-off-by: Ahmed Kamal <email.ahmedkamal@googlemail.com>

* duh

Signed-off-by: Ahmed Kamal <email.ahmedkamal@googlemail.com>

* don't suppress exceptions

Signed-off-by: Ahmed Kamal <email.ahmedkamal@googlemail.com>

* unduh

Signed-off-by: Ahmed Kamal <email.ahmedkamal@googlemail.com>

* wip

Signed-off-by: Ahmed Kamal <email.ahmedkamal@googlemail.com>

---------

Signed-off-by: Ahmed Kamal <email.ahmedkamal@googlemail.com>
2023-03-15 04:27:32 -04:00