Because brave_strings.grd and settings_brave_strings.grdp are special
cases in terms of naming, the rebase script wasn't adding the GRDP
override to the GRD override.
Addresses brave/brave-browser#14750
Doesn't fix the actual translations, but we should get them the next
time we order.
To make this work well on shells like Windows' cmd.exe or PowerShell,
we add an intermediate step before matching the paths for files found
in the repository against the regular expresisons declared in EXCLUDES,
so that we use forward slashes instead of backward slashes, which will
cause errors due to the regexp interpreting paths like C:\\mypath as if
they contained the escaped '\m' character.
Once the regular expression has been used though, we still append the
unnormalized OS-dependant relative path to the list of paths built by
filter_chromium_src_filepaths(), so that further operations over those
files can be performed correctly, and so that any path printed in the
output will use the OS-dependant path separator.
To make it clearer where each global variable points to, rename:
* SOURCE_ROOT -> BRAVE_SRC
* CHROMIUM_SRC -> BRAVE_CHROMIUM_SRC
* SRC_DIR -> CHROMIUM_SRC
We can't use the OS path separator when handling C++ include paths but
UNIX-like path separators instead, otherwise counting the number of
'../' components wont' work, nor creating the list of relative paths
to chromium_src override files to be checked.
We would like to expand the functionality of this script to allow us
to check for more potentially problematic situations (e.g. new uses
of re-defined symbols inside a given overriden file), so let's migrate
it to Python first so that's easier to extend.
Resolves https://github.com/brave/brave-browser/issues/14382
Fixesbrave/brave-browser#11133Fixesbrave/brave-browser#11407Fixesbrave/brave-browser#11546Fixesbrave/brave-browser#11547
- Disables features via Chromium features:
* Direct Sockets
* Lang Client Hint Header
* Signed Exchange Prefetch Cache For Navigations
* Subresource Web Bundles
- Disabled the following blink features in
BraveContentRendererClient::SetRuntimeFeaturesDefaultsBeforeBlinkInitialization
since they don't have Chromium features:
* Digital Goods
* Native File System (File System Access)
- Added browser tests for these features
- Modified redirect-cc.py to allow overriding files under out/XXX/gen
- Added an override for blink::origin_trials::IsTrialValid and overrides
for blink::OriginTrialContext methods AddFeature and AddForceEnabledTrials
for trials:
* NativeFileSystem2
* SignedExchangeSubresourcePrefetch
* SubresourceWebBundles
- Added browser tests for trials disablement.