Commit Graph
1178 Commits
Author SHA1 Message Date
Kevin Smith fabe4faf5e [Rewards] Migrate wallet UI from Rewards extention API to mojo (#30614) 2025-08-28 15:39:36 -04:00
Claudio DeSouza 5abf642e62 [cr140] Deleting mapping for chrome.mojom.SourceProfile
There is now a validation for unused mojom mapping types, and this
change removes one case where the mapping was not being used in Brave.

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

commit cbfb7d5ab0d7bfddd63cdd159f1fc618ef247791
Author: Fred Shih <ffred@chromium.org>
Date:   Wed Jul 9 16:18:30 2025 -0700

    Add a verification step for typemap config

    If there is a typo in the typemap config, this will raise a warning
    telling the developer that a typemap has not been referenced.

    Most of the change is mechanical (i.e.: removing dead typemaps that have
    no effect).

    This change will force typemaps to be declared in the mojom rule that
    contains the mojom module where the type is declared, which is probably
    better because having another target declare the typemaps can lead to
    some very... interesting.. side effects. One of these side effects is
    that the type of the generated code will look different, depending on
    your deps.

    Bug: 428039213
    Change-Id: I75b40055cf9cc045b5e7890365550d846fb71145
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6692233
    Owners-Override: Daniel Cheng <dcheng@chromium.org>
    Reviewed-by: Daniel Cheng <dcheng@chromium.org>
    Commit-Queue: Fred Shih <ffred@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1484659}
2025-08-19 19:54:21 +01:00
Emerick Rogul 0d85e94786 [cr140] Remove obsolete ppapi switch
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/291304d3f15315aed50c1ecfeffb48e362e19188

commit 291304d3f15315aed50c1ecfeffb48e362e19188
Author: Dave Tapuska <dtapuska@chromium.org>
Date:   Fri Jun 27 08:21:09 2025 -0700

    [pepper] More pepper removal

    - Remove ppapi switches
    - Remove callbacks no longer used

    Bug: 40511450
    Change-Id: I61b8ff670f112f9704c551a974aed35a8fe22981
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6677511
    Owners-Override: Dave Tapuska <dtapuska@chromium.org>
    Commit-Queue: Dave Tapuska <dtapuska@chromium.org>
    Reviewed-by: Daniel Cheng <dcheng@chromium.org>
    Reviewed-by: Avi Drissman <avi@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1479840}
2025-08-19 19:54:19 +01:00
Kevin Smith 8c5fe79afb [Rewards] Remove notification extension API (#30615) 2025-08-13 20:17:33 -04:00
Brian R. Bondy 1f9f37631b Remove Brave Wallet extension APIs that don't need to be APIs (#30553)
* Remove wallet exstension APIs and replace with WebUI handlers

* Remove typescript definitions which are unused

* Remove the reset of the brave_wallet extension API

* Add test for webui handler changes
2025-08-08 17:20:02 -04:00
Brian Johnson 464dabb88c Fix handling of --disable-component-update for legacy component registration (#30440)
Add support for --disable-component-update in all brave components. Use with --allow-brave-component-update to 
restore previous behavior for perf and other testing
2025-08-06 14:25:38 +09:00
cdesouza-chromium 5eb666f034 [CodeHealth] Run gn format on all files (#30448)
This PR is the run of `gn format` on all `gn` files. This is a
mechanical change done with:

```sh
git ls-files -- "*.gn" | xargs gn format
git ls-files -- "*.gni" | xargs gn format
```

This change has been motivated primarily by an improvement to the
formatters privided by `gn` correcting cases of redundant target naming,
i.e cases where `//foo:foo` is used, and should just be `//foo`.

For this particular `gn` change, see:
https://chromium.googlesource.com/chromium/src/+/c822490a82cdb6ad479159683a92858f7c6f0a58

Resolves https://github.com/brave/brave-browser/issues/48161
2025-08-05 18:08:10 +01:00
Darnell Andries 82165c4b01 Add admin policy for Web Discovery (#30023)
Add admin policy for Web Discovery (#30023)

* Fix Web Discovery API to account for policy, add Web Discovery test

* Move IsWebDiscoveryEnabled/pref_names to components/web_discovery/common

* Check Web Discovery Native feature before loading extension background page

* Use PrefService ref in IsWebDiscoveryEnabled

* Mark WDP policy as pending development for Android

* Move Web Discovery enabled/disabled via policy prefs to //brave/components/constants
2025-07-28 22:05:29 -07:00
Brian Johnson 181d7e17e1 Cleanup some incorrect usage of //extensions/common from android and ios (#30251) 2025-07-24 16:26:36 -07:00
cypt4 6381e7d43e [Cardano] Add Cardano dApp setting (#30004)
* [Cardano] Add Cardano dApp setting
Resolves https://github.com/brave/brave-browser/issues/46374
2025-07-18 20:32:13 +07:00
cypt4 3169c61e13 [Cardano] Add window.cardano.brave js object (#29255)
* [Cardano] Add window.cardano.brave js object
Resolves https://github.com/brave/brave-core/pull/29101
2025-06-16 19:11:17 +07:00
cdesouza-chromium 821274796b [IWYU] Fixing logging inclusions pt.11 (#29531)
This change is one of many fixing inclusion for the following files:

    - `base/notimplemented.h`
    - `base/notreached.h`
    - `base/check.h`
    - `base/dcheck_is_on.h`
    - `base/check_deref.h`
    - `base/check_op.h`
    - `base/logging/log_severity.h`
    - `base/logging.h`

This change is a mechanical change done with the following script:
https://github.com/brave/brave-browser/issues/46707#issuecomment-2960116515

Resolves https://github.com/brave/brave-browser/issues/46707
2025-06-12 13:48:07 +01:00
Claudio DeSouza 7ebb5415ee [cr138] ImportedBookmarkEntry now under //component
This is part of a broader modularisation of the browser, and it should
only affect inclusion paths, namespacing, and gn deps.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/88975c35e41b18a6a94e5c1093001bb7b9cbbf42

commit 88975c35e41b18a6a94e5c1093001bb7b9cbbf42
Author: Alexis Hetu <sugoi@chromium.org>
Date:   Mon May 26 05:43:21 2025 -0700

    Move ImportedBookmarkEntry to components/

    This CL moves the 2 following files:
    - imported_bookmark_entry.h
    - imported_bookmark_entry.cc
    from "chrome/common/importer/"
    to "components/user_data_importer/common/".

    The CL itself is noop, it is only adjusting the
    code for the file location and namespace changes.

    Bug: 407587751
    Change-Id: I6fa486ff92cdd2d36a3aeb879111d90c518b0974
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6578818
    Commit-Queue: Colin Blundell <blundell@chromium.org>
    Reviewed-by: Ken Buchanan <kenrb@chromium.org>
    Reviewed-by: Colin Blundell <blundell@chromium.org>
    Auto-Submit: Alexis Hétu <sugoi@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1465477}
2025-06-11 17:07:44 -04:00
Claudio DeSouza f6fd83f28b [cr138] Importer data types under //components
This change affects Brave's overrides for some of the enums, which
requires moving both patching and overriding to the new path.

Chromium changes:
https://chromium.googlesource.com/chromium/src/+/8205399f38064cf4f292aac79140f206e06ba31e

commit 8205399f38064cf4f292aac79140f206e06ba31e
Author: Alexis Hetu <sugoi@chromium.org>
Date:   Fri May 23 06:29:52 2025 -0700

    Move importer data types to components/

    This CL moves the 3 following file:
    - importer_data_types.h
    - importer_data_types.cc
    - importer_type.h
    from "chrome/common/importer/"
    to "components/user_data_importer/common/".

    The CL itself is noop, it is only adjusting the
    code for the file location and namespace changes.

    Bug: 407587751
    Change-Id: Ied4c102f67a1ec4bd099cb091dfa7deaf6ef2ff3
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6578964
    Auto-Submit: Alexis Hétu <sugoi@chromium.org>
    Reviewed-by: Ken Buchanan <kenrb@chromium.org>
    Commit-Queue: Ken Buchanan <kenrb@chromium.org>
    Reviewed-by: Colin Blundell <blundell@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1464699}
2025-06-11 17:07:42 -04:00
Claudio DeSouza d396876586 Fixing getenv linux build failure
This build failure seems to be a result of a recent IWYU fix for
`string_util.h`, and this particular source relying on transient
inclusions.

This fixes adds the necessary header. Some follow up work will be pushed
to remove all uses of `getenv` in our codebase, as we should be using
the `//base` counterpart.
2025-06-05 15:14:11 +01:00
cdesouza-chromium 8df5afaa2f [iwyu] Fixing inclusions for string_util.h pt.1 (#29376)
Files that use functions from `string_util.h` should include that header
directly instead of relying on transient inclusions.

This is a mechanical change using this script:

```sh
remove_header_if_unused() {
    files=$(git grep -l "base/strings/string_util.h")
    for file in $files; do
        if ! git grep -qE "base::MakeStringPiece|base::MakeWStringView|base::ToLowerASCII|base::ToUpperASCII|base::CompareCaseInsensitiveASCII|base::EqualsCaseInsensitiveASCII|base::EmptyString|base::RemoveChars|base::ReplaceChars|base::TrimPositions|base::TrimString|base::TruncateUTF8ToByteSize|base::TrimWhitespace|base::CollapseWhitespace|base::ContainsOnlyChars|base::IsStringUTF8|base::IsStringASCII|base::EqualsASCII|base::CompareCase|base::StartsWith|base::EndsWith|base::RemovePrefix|base::RemoveSuffix|base::IsAscii|base::IsUnicodeControl|base::IsHexDigit|base::IsUnicodeWhitespace|base::FormatBytesUnlocalized|base::ReplaceFirstSubstringAfterOffset|base::ReplaceSubstringsAfterOffset|base::WriteInto|base::JoinString|base::ReplaceStringPlaceholders|base::MakeStringViewWithNulChars" "$file"; then
            sed -i '/base\/strings\/string_util.h/d' "$file"
            echo "Removed 'base/strings/string_util.h' from $file"
        fi
    done
}

add_header_if_needed() {
    files=$(git grep -lE "base::MakeStringPiece|base::MakeWStringView|base::ToLowerASCII|base::ToUpperASCII|base::CompareCaseInsensitiveASCII|base::EqualsCaseInsensitiveASCII|base::EmptyString|base::RemoveChars|base::ReplaceChars|base::TrimPositions|base::TrimString|base::TruncateUTF8ToByteSize|base::TrimWhitespace|base::CollapseWhitespace|base::ContainsOnlyChars|base::IsStringUTF8|base::IsStringASCII|base::EqualsASCII|base::CompareCase|base::StartsWith|base::EndsWith|base::RemovePrefix|base::RemoveSuffix|base::IsAscii|base::IsUnicodeControl|base::IsHexDigit|base::IsUnicodeWhitespace|base::FormatBytesUnlocalized|base::ReplaceFirstSubstringAfterOffset|base::ReplaceSubstringsAfterOffset|base::WriteInto|base::JoinString|base::ReplaceStringPlaceholders|base::MakeStringViewWithNulChars")
    for file in $files; do
        ../tools/add_header.py --header '"base/strings/string_util.h"' "$file"
    done
}

remove_header_if_unused
add_header_if_needed

```

Resolves https://github.com/brave/brave-browser/issues/46559
2025-06-04 16:15:27 +01:00
Kevin Smith 2f57ca6b1d [Rewards] Remove Rewards 3.0 feature flag (#28199) 2025-05-30 05:54:37 -04:00
Brian R. Bondy 1174a90b46 Remove Ethereum Remote Client (Crypto Wallets) (#29135)
There was a flag from long ago that allowed you to select Crypto Wallets as your wallet. However if you did this, it no longer works.  There is no one that can feasibly still be using this wallet because it hasn't worked for many versions

Addressed review comments

Remove references to 21070F3D60711361C1210B870439BE49B5D995F4
21070F3D60711361C1210B870439BE49B5D995F4 is for Ethereum Remote Client which is removed

Remove unused ReinstallAsNonComponent

Remove unused comment IsInstallationExplicitlyAllowed

Remove _permission_features.json because it's an override that only
exists because of CW extension.

Remove unused string braveWalletImportFromLegacy

Use constexpr for kMetamaskExtensionId

Remove need subscription to kDefaultEthereumWallet and OnWalletTypeChanged handler

Remove DISABLED_ImportLegacyWallet

Add Migration for people with CryptoWallets pref

Deprecate and keep CryptoWallets prefs

1
2025-05-23 16:56:41 -04:00
Max Karolinskiy c7041efd19 Hides Passwords checkbox in import dialog for Chrome. (#29149)
Chrome encrypts passwords and their code for doing so is not open
source.
2025-05-21 12:21:28 -07:00
Pavel Beloborodov 2fa4515000 Fixed extensions import (#29084)
* Fixed crash during import from multiple profiles.
* Fixed state check of the source extension.
2025-05-16 19:45:37 +07:00
AlexeyBarabash b62ab3a4b6 Revert "Force load of dev_ui_resources.pak on universal apk (#28870)" (#29013)
* Revert "Force load of dev_ui_resources.pak on universal apk (#28870)"

This reverts commit b16cd933fd.

reason: worsen app start performance
2025-05-10 00:34:45 +02:00
AlexeyBarabash b16cd933fd Force load of dev_ui_resources.pak on universal apk (#28870)
Force load of dev_ui_resources.pak on universal apk

fixes brave/brave-browser#45158
2025-04-29 14:46:06 +03:00
Darnell Andries bb74aa3baf Add devlopment extension to Web Discovery API allowlist 2025-03-24 19:23:42 -07:00
Claudio DeSouza 0a4e3299e4 [cr135] output_all_resource_defines removed from grds
This attribute has been deleted from grit, and isn't recognised anymore.

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

commit 96c98d3ae26486007669c1cd00e4da58c85659b3
Author: dpapad <dpapad@chromium.org>
Date:   Tue Feb 4 16:23:24 2025 -0800

    Grit: Remove output_all_resource_defines from list of valid attributes.

    All references to this attribute have been removed in previous CLs, both
    from public and internal repositories.

    Fixed: 389466679
2025-03-18 20:02:00 -04:00
cdesouza-chromium a646e698ee [CodeHealth] Simplifying json parsing - pt.2 (#27697)
This PR simplifies JSON reading in several places by:

 - Using `base::JSONReader::ReadDict`
 - Using `base::test::ParseJson*`

This changes aim to make the checks around the parsing and its
expectations simpler to read.
2025-02-18 14:09:24 +00:00
Brian Clifton 93cf3f5d0c Prevents extensions from accessing protected resources (#27481)
* Prevents extensions from accessing protected resources.

Fixes https://github.com/brave/brave-browser/issues/42998

* Changed root object from std::string to GURL

* FIXUP: review feedback

* FIXUP: addresses most feedback; need to fix GN

* FIXUP: latest

* FIXUP: fixed reference issues causing crash :)

* FIXUP: one last fix

* FIXUP: presubmit fixes

* FIXUP: more review feedback fixes

* FIXUP: fixing vector copies
2025-02-12 11:03:44 -07:00
cdesouza-chromium 6eecb77ef2 [CodeHealth] Simplifying json parsing - pt.1 (#27506)
* [CodeHealth] Simplifying json parsing - pt.1

This PR changes several places where `JSONReader` is being used, to
either rely on `base::JSONReader::ReadDict` where appropriate, or in the
case of parsing json for tests, to use `base::test::ParseJsonDict` and
other similar functions.
2025-02-07 08:58:13 +00:00
Darnell Andries cf94b54d8b Bootstrap Web Discovery Native, add credential manager and server config loading 2025-01-27 18:22:39 -08:00
Max Karolinskiy 8e4a95acd2 Merge pull request #26537 from brave/cr133
Upgrade from Chromium 132 to Chromium 133.
2025-01-27 13:11:03 -05:00
Claudio DeSouza cf11547646 [cr133] Use sql::Database::Tag
This type is now being used to represent the tag name, as it offers ways
to check at compile time for the tag being valid.

Chromium change:
https://chromium.googlesource.com/chromium/src/+/dd2d901c3ecfb8685f4e4eda55edd6c8247f62da

commit dd2d901c3ecfb8685f4e4eda55edd6c8247f62da
Author: Anthony Vallée-Dubois <anthonyvd@google.com>
Date:   Wed Dec 18 15:25:28 2024 -0800

    Assert that database tag is valid at compile time

    This CL adds facilities to assert at compile-time that a database tag
    passed to the `sql::Database` constructors is specified in the
    DatabaseTag variant list in the corresponding `histograms.xml` file.

    For many users of `Database`, this change is a no-op. That said, some
    create databases with `make_unique()`, and the mechanism for forwarding arguments used by that function is incompatible with the
    implicit invocation of the consteval constructor this CL introduces.
    For this reason, these callers are also updated to explicitly create
    the tag object.

    Finally, 19 databases were using tags not defined in the histograms
    file, so this CL adds these tags as variants.

    Change-Id: I7aa6fdc4b923325cc41038fef72b239b5c19e4bd
2025-01-27 09:41:28 -05:00
Claudio DeSouza 9dfbd05d1f [cr133] Sqlite database tag obligatory
This is now a required argument in the constructor. This change assumes
the expected value.

Chromium change:
https://chromium.googlesource.com/chromium/src/+/e3c94919c5b39b6959e0db9e274ce663ad306aff

commit e3c94919c5b39b6959e0db9e274ce663ad306aff
Author: Anthony Vallée-Dubois <anthonyvd@google.com>
Date:   Thu Dec 12 08:47:47 2024 -0800

    Make database tag mandatory

    This CL removes the default value of the `tag` argument on the 2
    `sql::Database` constructors, and updates all callers that didn't
    explicitly pass a tag to do so.

    As a convenience, this CL also defines a common tag for unit tests.

    This will allow the implementation and monitoring of per-database
    performance metrics (time to open, statement execution time, VMSteps,
    etc) without the possibility of having some of the databases
    uninstrumented. This is useful for diagnosing issues such as crbug.com/369635654 in the wild, and required for some performance investigations that we have in the pipeline.

    The last step of this work item (asserting that the tag is correctly defined in histograms.xml variants) is implemented in https://chromium-review.googlesource.com/c/chromium/src/+/6055279.

    Bug: 40949392
2025-01-27 09:41:20 -05:00
Max Karolinskiy 44683b9082 [cr133][Android] Fixes importer build error due to missing strings.
../../chrome/common/importer/firefox_importer_utils.cc:335:38: error: use of undeclared identifier 'IDS_IMPORT_FROM_ICEWEASEL'
  335 |     return l10n_util::GetStringUTF16(IDS_IMPORT_FROM_ICEWEASEL);
      |                                      ^
../../chrome/common/importer/firefox_importer_utils.cc:336:36: error: use of undeclared identifier 'IDS_IMPORT_FROM_FIREFOX'
  336 |   return l10n_util::GetStringUTF16(IDS_IMPORT_FROM_FIREFOX);
      |                                    ^
2 errors generated.

Upstream has these strings only for non-Android platforms, but we are
using the importer code on Android as well, so the string need to be
re-added for Android.
2025-01-27 09:36:30 -05:00
Darnell Andries 4c7a62f54f Address GMix/WDP fix feedback 2025-01-23 17:07:33 -08:00
Darnell Andries 2978fffa20 Add hidden renderer for fetching backup search results 2025-01-23 17:07:33 -08:00
Brian Johnson afd4e0239d fix overly permissive DEPS (#27193)
Fix overly permissive deps
2025-01-12 21:43:04 -07:00
Claudio DeSouza 57dfb551fc [cr132] //base:logging_buildflags deleted
This was only being added to satisfy the android build, but it has now
been dropped by upstream with `NOTREACHED_NORETURN`.

Chromium change:
https://chromium.googlesource.com/chromium/src/+/5a9d4c5aa85977fc711eb9c0ff1207c5ac1a0959

commit 5a9d4c5aa85977fc711eb9c0ff1207c5ac1a0959
Author: Peter Boström <pbos@chromium.org>
Date:   Tue Nov 12 01:38:46 2024 +0000

    Remove enable_log_error_not_reached

    This flag only applied to NOTREACHED_IN_MIGRATION() for ChromeOS which
    is on its way out.

    Bug: 40580068
2024-12-01 08:43:56 -05:00
zenparsing d5036805ed Remove auto-contribute 2024-11-20 16:02:25 -05:00
Mikhail b8a60ee66f Remove Greaselion (#26283)
* remove greaselion files
* cleanup *.h files
* cleanup *.cc files
* cleanup GN
* cleanup other files
* Fix presubmit
* Remove extension* from {push/pull}_l10n
2024-11-04 21:10:33 +01:00
Jocelyn Liu efcb1df7c6 Remove enable_ai_chat buildflag 2024-10-31 20:15:18 -07:00
zenparsing b650615c16 Remove Greaselion dependency from Rewards service 2024-10-25 11:41:16 -04:00
Claudio DeSouza 6aa4733469 ProfilerThreadType moved to sampling_profile
This only affects the namespace access.

Chromium change:
https://chromium.googlesource.com/chromium/src/+/5ec7e7fc25007e705382dd8e58a031410ab77e98

commit 5ec7e7fc25007e705382dd8e58a031410ab77e98
Author: Jason Chase <chasej@chromium.org>
Date:   Thu Sep 26 02:38:49 2024 +0000

    Move CallStackProfileParams into //components/sampling_profiler

    - Continues the refactoring in https://docs.google.com/document/d/12pqVqIpLb5qxmm9T9qatbVcp5UnietMcpByUc0XPfYE/edit?usp=sharing
    - From a previous CL [1], it was determined that //base should not be
      aware of specific process/thread/trigger types.
    - Moves the struct/enums into //components/sampling_profiler, with the
      other ThreadProfiler logic.

    [1] https://chromium-review.googlesource.com/c/chromium/src/+/5738660/comment/7228f393_53cf2a32/

    Low-Coverage-Reason: TRIVIAL_CHANGE to ios/chrome/browser/web/model/ios_thread_profiler.cc, with no-op moves of struct and enum to different header files.
    Bug: 354124876
2024-10-24 12:14:29 +01:00
Brian Johnson 3313ad628b remove include rules that no longer apply (#25911)
remove include rules that no longer apply and fix existing include rules
2024-10-10 16:19:48 -07:00
Claudio DeSouza 5c534844a8 PlatformBrowserTest in new header
This new header is supposed to simplify the inclusion of
`PlatformBrowserTest` for android/non-android tests.

Chromium change:
https://chromium.googlesource.com/chromium/src/+/dbf91b261f7a99ae7937eecc7ce2871feeb20c0b

commit dbf91b261f7a99ae7937eecc7ce2871feeb20c0b
Author: Devlin Cronin <rdevlin.cronin@chromium.org>
Date:   Thu Aug 22 22:35:56 2024 +0000

    Move PlatformBrowserTest alias to platform_browser_test.h

    Currently, every test leveraging PlatformBrowserTest should include
    the following if-def block:

    ```
    #if BUILDFLAG(IS_ANDROID)
    #include "chrome/test/base/android/android_browser_test.h"
    #else
    #include "chrome/test/base/in_process_browser_test.h"
    #endif
    ```

    And, in turn, PlatformBrowserTest is an alias for either
    AndroidBrowserTest or InProcessBrowserTest, as defined in each of
    those files.

    This makes for a lot of boilerplate, and instead we can just move
    that if-def'd alias to a single file, platform_browser_test.h, that
    each class can include.

    This CL makes the following changes:
    - Updates any sites that previously included that if-def block to just
      include platform_browser_test.h
    - Fixes many IWYU cases where classes were not properly including any
      header file
    - `git cl format` (which fixes a few cases of improper header sorting)

    Bug: 361002665
2024-10-03 17:06:17 +01:00
Ivan Efremov ebbc73021c Do not crash while importing corrupted files.
Fixes https://github.com/brave/brave-browser/issues/38332
Fixes https://github.com/brave/brave-browser/issues/15895
2024-10-02 15:15:53 +07:00
Mikhail 76a5a4955e Content picker native inject (#25411)
* Introduce native content picker inject
2024-09-12 15:24:37 +07:00
mkarolin a213de4133 //chrome/common/extensions build target was added
Chromium change:

https://chromium.googlesource.com/chromium/src/+/ec463f3e1ee7b

commit ec463f3e1ee7b6f66b4c71d0dbd772c4c8d07ad2
Author: Devlin Cronin <rdevlin.cronin@chromium.org>
Date:   Fri Aug 16 02:24:51 2024 +0000

    [Extensions] Add a //chrome/common/extensions build target

    Extract out files from //chrome/common/extensions into a separate
    build target, //chrome/common/extensions:extensions, instead of having
    them shared in //chrome/common:common_lib.

    In addition to reducing the monolithic build file in //chrome/common,
    this some circular dependencies between //chrome/common resources and
    extensions files.

    Bug: 356905053
2024-09-10 14:42:48 -04:00
Claudio DeSouza f3f1c59adf Use base::ProfilerThreadType
`metrics::CallStackProfileParams::Thread` has been changed into
`base::ProfilerThreadType`. This has no functional effect, and it is
merely a namespace movement.

Chromium change:
https://chromium.googlesource.com/chromium/src/+/1e3019857591c2a4a8bc814cab8af3d32ed2be3e

commit 1e3019857591c2a4a8bc814cab8af3d32ed2be3e
Author: Jason Chase <chasej@chromium.org>
Date:   Fri Jul 26 19:03:58 2024 +0000

    Move CallStackProfileParams into //base/profiler

    - First step in the refactoring for crbug.com/354124876. See:
    https://docs.google.com/document/d/12pqVqIpLb5qxmm9T9qatbVcp5UnietMcpByUc0XPfYE/edit?usp=sharing
    - Rename the Process|Thread enums to Profiler[Process|Thread]Type and
      extract into a separate file, as part of the move. These enums are
      nested in a struct, but many references don't use the containing
      struct.

    Low-Coverage-Reason: TRIVIAL_CHANGE to ios/chrome/browser/web/model/ios_thread_profiler.cc, with moving struct and enum to different header files.
    Bug: 354124876
2024-09-10 14:42:25 -04:00
Mikhail e36e1d1c01 Content Picker refactoring into a single script (#25358)
* Content picker: a single JS to inject
* Remove a non-relevant test
* Use asset/source to inline html content
* Remove host from braveShields.addSiteCosmeticFilter
* Remove obsolete async
* Use mode: closed
* Update CSS styles
2024-09-03 04:17:47 +07:00
Jagadesh P 0e16717958 Move 'generated_api_registration' method to src/b/b/ext/api/ and fix the linker error by adding required deps. 2024-08-17 08:01:32 +05:30
Kevin Smith 7d9379ca8d Merge pull request #24586 from brave/ksmith-rewards-gl-fix
Expose Rewards extension API to Brave extension
2024-07-10 15:44:55 -04:00