9 Commits
Author SHA1 Message Date
Aleksei Khoroshilov a41bf5350b Replace "src/" includes with <> in chromium_src. (#30096)
This change updates how brave/chromium_src overrides can reference original files: it adds ability to use #include <...> along with #include "src/...". This is enabled by replacing -I../../brave/chromium_src with -iquote../../brave_chromium_src, which adds an include search path only for #include "..." directives.

With this approach, other files in the build tree can reference brave/chromium_src overrides using #include "...", while the overrides themselves can reference original Chromium files using #include <...>. Since Chromium uses #include "..." for all in-tree files, we can leverage this convention and configure our overrides so that we can drop support for #include "src/" later by removing -I../../.. and making rbe_exec_root modification obsolete (the main goal).
2025-07-24 17:37:44 +07:00
Emerick Rogul b84d50032d Fix inaccurate geolocation
In cr127, features::kWinrtGeolocationImplementation (and a related Mac feature
flag) were replaced with kLocationProviderManager. Enable that flag and set it
to kPlatformOnly so that we use the platform's geolocation provider.

Chromiuum change:
https://source.chromium.org/chromium/chromium/src/+/cc04eb8474feb1d62287c0866af29351aa762186

commit cc04eb8474feb1d62287c0866af29351aa762186
Author: alvinji <alvinji@chromium.org>
Date:   Wed May 15 23:06:21 2024 +0000

    geolocation: Add kLocationProviderManager feature flag

    This CL adds `kLocationProviderManager` feature flag and associated
    parameters to enable flexible mode configuration of the
    LocationProviderManager (implementation to follow). The configuration
    will determine which location provider is used as the source for
    Geolocation API.

    Change-Id: I98a2a25f7b05002fb6a1244fde5091a96bad2756
    Bug: 333294295
2024-07-15 15:25:18 -04:00
Emerick Rogul ba0e14acdb kWinrtGeolocationImplementation feature flag removed
This feature flag is being removed. Confirmed that the current default behavior
as implemented via kLocationProviderManager is acceptable.

Chromium change:
https://source.chromium.org/chromium/chromium/src/+/cc04eb8474feb1d62287c0866af29351aa762186

commit cc04eb8474feb1d62287c0866af29351aa762186
Author: alvinji <alvinji@chromium.org>
Date:   Wed May 15 23:06:21 2024 +0000

    geolocation: Add kLocationProviderManager feature flag

    This CL adds `kLocationProviderManager` feature flag and associated
    parameters to enable flexible mode configuration of the
    LocationProviderManager (implementation to follow). The configuration
    will determine which location provider is used as the source for
    Geolocation API.

    Change-Id: I98a2a25f7b05002fb6a1244fde5091a96bad2756
    Bug: 333294295
2024-06-25 13:13:08 +01:00
Mario Sanchez Prada 7d7f5e7554 Added missing includes for build/build_config.h 2022-03-22 10:57:30 +01:00
Mario Sanchez Prada f4c7bdda37 Migrate define(OS_*) to using BUILDFLAG(IS_*) instead
See the following PSA in the chromium-dev mailing list for more
information and links to the original discussion, the design
document and the metabug:

https://groups.google.com/a/chromium.org/g/chromium-dev/c/EIuQCy9sVfw/m/Net3FPz6AwAJ

Resolves https://github.com/brave/brave-browser/issues/21608
2022-03-22 10:57:30 +01:00
Aleksey Khoroshilov 3b0a9340c0 Remove unnecessary same dir rules in DEPS. 2021-12-08 14:48:24 +07:00
Aleksey Khoroshilov 5a33f242de Remove unnecessary DEPS rules. 2021-12-08 14:48:21 +07:00
Aleksey Khoroshilov 860f6ec6cb Replace relative paths in chromium_src to src-based.
# Conflicts:
#	chromium_src/chrome/browser/ui/dialogs/outdated_upgrade_bubble.cc
#	chromium_src/chrome/browser/ui/views/bubble/bubble_contents_wrapper.cc
#	chromium_src/chrome/browser/ui/views/page_info/page_info_bubble_view.cc
#	chromium_src/chrome/browser/ui/views/page_info/page_info_view_factory.h
#	chromium_src/chrome/common/webui_url_constants.cc
#	chromium_src/components/safe_browsing/content/browser/client_side_model_loader.cc
#	chromium_src/components/translate/core/browser/translate_prefs.cc
#	chromium_src/third_party/blink/renderer/core/loader/subresource_redirect_util.cc
#	chromium_src/third_party/blink/renderer/core/loader/subresource_redirect_util.h
2021-12-08 14:47:35 +07:00
Aleksey Khoroshilov ad2ce27aca Add support for default feature state overrides using static map (#10878)
* Add support for default feature state override.

* Convert runtime feature overrides to static overrides.

* Support overrides set via a single macro instantiation.

* Remove unused include.
2021-11-11 17:57:23 +07:00