Commit Graph
1150 Commits
Author SHA1 Message Date
Emerick Rogul fa44de9e20 Merge pull request #8380 from brave/rewards-uphold-build-config
Use compile-time variables for uphold settings
2021-03-31 13:51:42 -04:00
Emerick Rogul 94e0b51eba Use compile-time variables for uphold settings 2021-03-31 10:35:40 -04:00
Kevin Kuehler 3ac5b619b1 rust: Bump Cargo.lock
Resolves https://github.com/brave/brave-browser/issues/15033
2021-03-30 16:42:34 -07:00
Mihai PLESA de0de82a00 goma support (#8252) 2021-03-30 22:32:04 +01:00
Alex C a96db76e69 [Android] Fixes unresponsive close button from Site Settings options 2021-03-26 18:16:22 -04:00
mkarolin 417d2adec0 Fixes redirect-cc.exe build for VS2019
Adjust project's platform toolset for the appropriate VS version.
Use platform toolset v142 when building with VS2019.
2021-03-24 10:20:16 -04:00
mkarolin 34142de9fd Build redirect-cc.exe locally.
Removed checked in executable and added code to build it during the
build process using MSBuild.
2021-03-23 14:55:44 -04:00
mkarolin 24bf5fd148 Fixes overriding WebUI default fonts.
Function in web_ui_util.cc is no longer used to get the
text_defaults_md.css resource for shared resources. Keep our override
for the function resouce because it's still used in several places.

Additionally, copy over our text_defaults_md.css via util.js so that
it's used when chromium GRD is auto generated.

Chromium change:

https://source.chromium.org/chromium/chromium/src/+/ba11d6dc4a110c2c456eb453b445832847230b5e

commit ba11d6dc4a110c2c456eb453b445832847230b5e
Author: dpapad <dpapad@chromium.org>
Date:   Wed Feb 24 18:26:57 2021 +0000

    WebUI: Replace SharedResourcesDataSource with a regular WebUIDataSource.

    SharedResourcesDataSource was a custom class directly subclassing
    URLDataSource (and used for serving chrome://resources URLs). By doing
    so it included a lot of duplicated functionality for code that is
    already available in regular WebUIDataSourceImpl subclasses, for
    example

     - Registering resources
     - Registering loadTimeData strings
     - Calculating mime types based on a path's extension
     - Locating and serving WebUI files from pak files
     - Overriding specific CSP policies

    By using a regular WebUIDataSourceImpl a lot of duplicated code is
    deleted. Moreover, WebUIDataSourceImpl is a more mature class, that is
    heavily used across WebUI. For example this CL helped discover a bug
    where $i18n{...} string placeholders where incorrectly used in
    cr_components/ (fixed at r854879) because of CHECK()s that did not
    exist in SharedResourcesDataSource.

    In order to support chrome://resources/css/text_defaults.css $i18n{...}
    replacements, web_ui_url_loader_factory.cc has been modified to perform
    $i18n{...} replacements in CSS files too (previously only done for HTML
    files, and conditionally for JS files).

    Bug: 1179207
2021-03-23 14:55:44 -04:00
mkarolin 2d9e89be6c Styling fixes to profile picker.
- Removes background images in the main view
- Hides background image in the profile customization view
- Fixes Add button border radius.
2021-03-23 14:55:40 -04:00
samartnik 298513a978 [Android] TileView moved to components/browser_ui/widget
Chromium change:
https://chromium.googlesource.com/chromium/src.git/+/d089c588065dd2f12fe17d9d10b4e1fbbb1c5e20

Move TileView to components/browser_ui/widget

Moving TileView related class to components/browser_ui/widget, and all
related resources files
to make it available for using in launchpad module.

Bug: 1178919
2021-03-23 14:55:34 -04:00
samartnik 2354d2a308 [Android] Feed v1 was removed
Chromium change:
https://chromium.googlesource.com/chromium/src.git/+/f3add8f687acb2ddff2d0c567cfa768a0f9b3bbd

Remove Feedv1 code

Much of this code was already compiled-out. Some exceptions:

- Code branches with if (v1 enabled) { ... } were removed.
- Extracted functions from v1 library LocateUtils class into
FeedServiceBridge.
- Some code in components/feed wasn't yet removed from
  the build, but wasn't referenced, and is now removed.
- Shared proto databases for v1 were added to
  kObsoleteSharedProtoDbTypeClients
- Obsoleted v1 specific prefs.

Bug: 1165828
2021-03-23 14:55:25 -04:00
Mario Sanchez Prada 1a3f0b4816 Add sources for brave_sync_manager_impl.* in the right GN target
The GN target we were patching before has been split into different ones
and we now need to move this patch to components/sync/engine/BUILD.gn.

Chromium change:
https://chromium.googlesource.com/chromium/src.git/+/2275afee7febb3e7e40207d2e05b7ed1b68d9d78

commit 2275afee7febb3e7e40207d2e05b7ed1b68d9d78
Author: Victor Hugo Vianna Silva <victorvianna@google.com>
Date:   Mon Feb 8 15:02:16 2021 +0000

    [sync] Split rest_of_sync build target into engine, model and nigori

    This CL builds on the work of crrev.com/c/{2652625,2659120} to finally
    split the rest_of_sync build target into smaller per-directory ones. A
    few changes worth noting:

    - Clean up some duplicates/self-deps entries in DEPS files, accidentally
    introduced in crrev.com/c/2659120.
    - Add one TODO about moving entity_data.h out of engine/, which should
    have been added in crrev.com/c/2652625.
    - Avoid one model/ include in base:test_support by moving the file with
    the include to the test_support_model target.
    - Remove unused dependencies //sql, //third_party/crc32c and //ui/base.
    - Move from private to public dependency:
      * //components/signin/public/identity_manager (AccountInfo used in
      SyncEngine public API).
      * //services/network/public/cpp (used in HttpBridge & SyncManagerImpl
      public APIs).
    - Keep the precompiled_headers build config only for targets with >50
    .cc files [1]. This means adding it to engine/ and removing it from
    base/, driver/ and protocol/.

    [1] https://source.chromium.org/chromium/chromium/src/+/3abc98c09a9174a91f82e6f2eccf0ebb6c203fdf:build/config/BUILD.gn;l=375

    TBR=sky@chromium.org

    Bug: 947443
2021-03-23 14:55:18 -04:00
mkarolin f1b8d2ac35 [Windows] Added redirect-cc.exe.
Added redirect-cc.exe that serves the same function as redirect-cc.cmd
(calls python with redirect-cc.py script), but doesn't suffer from the
"command line is too long" errors.

Removed patches that were trying to get around command line length by
writing MS includes into a file and then reading from it.

Removed redirect-cc.cmd and code to copy it to out directory.

Added redirect-cc.exe binary, source code (sln + vcxproj).

Replaced cc-wrapper config with path to the exe binary.
2021-03-23 14:55:13 -04:00
samartnik 57c112d35b [Android] Reverted: Temporarily force non-component builds
No need in this fix anymore
2021-03-23 14:55:04 -04:00
samartnik b6ddfff33c [Android] tab_switcher_toolbar.xml was moved
Chromium change:
https://chromium.googlesource.com/chromium/src.git/+/afd16b5973b054f53733695ce33708ef430a0b83

Toolbar: Remove deps on TrackerFactory

Removes deps on TrackerFactory in ToolbarTabControllerImpl and
move it to the modularized toolbar/. There are a few more classes
that can also be moved:

ToolbarTabControllerImplTest.java
ToolbarTabControllerImpl.java
top/IncognitoSwitchCoordinator.java
top/IncognitoSwitchProperties.java
top/IncognitoSwitchViewBinder.java
top/TabSwitcherActionMenuCoordinator.java
top/TabSwitcherActionMenuRenderTest.java

Bug: 1127732
2021-03-23 14:55:02 -04:00
samartnik 4caf5eb56b Merge pull request #8308 from brave/android_tab_groups_fix
[Android] Fixes Tab Groups controls behaviour on tab closing
2021-03-22 11:05:59 -04:00
samartnik 01a39dba3e [Android] Fixes Tab Groups controls behaviour on tab closing 2021-03-19 17:18:11 -04:00
Anton Lazarev d4aae0a2df Merge pull request #8276 from brave/bump-rust-generic-array-dep
Bump the rust generic-array dependency
2021-03-18 17:02:44 -04:00
eV 4fc2007fe9 Bump the rust generic-array dependency 2021-03-17 16:57:01 +00:00
Max 2aa85afeef Merge pull request #8269 from brave/maxk-fix-rebase-l10n
Fixes brave_strings_override.grd to include a missing grdp override.
2021-03-17 10:29:39 -04:00
mkarolin b73bae3184 Fixes brave_strings_override.grd to include a missing grdp override.
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.
2021-03-16 20:12:25 -04:00
Anton Lazarev 1d1eea041e Merge pull request #8209 from brave/merge-adblock-rust-ffi
Merge adblock_rust_ffi into brave-core repo
2021-03-16 17:00:21 -04:00
Wojciech Knapik 5cda425989 Merge branch 'master' of github.com:brave/brave-core into wknapik-dcheck 2021-03-16 12:57:04 +01:00
Mihai PLESA 251090234e reverted linux arm64 support (#8259) 2021-03-15 23:10:43 +00:00
Wojciech Knapik b8f1415205 Applied review suggestions. 2021-03-15 17:01:36 +01:00
Wojciech Knapik a2984fa945 Merge branch 'master' of github.com:brave/brave-core into wknapik-dcheck 2021-03-15 16:41:47 +01:00
Mihai PLESA 5a76a8c87f Linux arm64 support (#6927)
* linux arm64 support
2021-03-14 01:03:08 +00:00
samartnik 45fedd4e16 [Android] Reconciles Tab Group feature with bottom toolbar 2021-03-11 16:26:33 -05:00
Anton Lazarev 7bdf27caf9 update adblock_rust_ffi path from vendor to components 2021-03-10 10:12:43 -08:00
samartnik 7ca49a75a4 [Android] Changes for disabling safe browsing extended reporting 2021-03-10 10:14:31 -05:00
Wojciech Knapik 81692f09a3 Fix. 2021-03-10 13:49:07 +01:00
Wojciech Knapik b2d77e19da Fix. 2021-03-10 13:49:07 +01:00
Wojciech Knapik 5b559f477b Fix. 2021-03-10 13:49:07 +01:00
Wojciech Knapik 5f48bcf4a6 Modified isDcheckAlwaysOn to pass the value of options.dcheck_always_on. 2021-03-10 13:49:07 +01:00
Deep e719c5eec1 Address PR comments 2021-03-09 12:51:34 -05:00
Deep 9e6a7b7a78 Remove safe browsing help option 2021-03-09 01:07:48 -05:00
samartnik 95ff05dd2e Merge pull request #8138 from brave/androis_tab_groups_crash
[Android] Fixes crash on closing tabs with Tab Groups
2021-03-05 10:17:15 -05:00
samartnik 0e49519585 [Android] Fixes crash on closing tabs with Tab Groups 2021-03-05 08:08:31 -05:00
Mark Pilgrim ed575810f1 Implement first-party domain blocking 2021-03-04 17:41:59 -05:00
Terry Mancey 8c70a77b39 Merge pull request #8086 from brave/issues/14377
Change default ads per hour via variations service
2021-03-04 10:03:41 +00:00
Terry Mancey 4cc3db726d Change default ads per hour via variations service 2021-03-03 14:04:00 +00:00
Jocelyn Liu 61ab97f20e Add tests 2021-03-02 15:04:09 -08:00
yan 1d6f335165 Merge pull request #8035 from brave/fix/audit-whitelist
Remove BAT domains from network audit whitelist
2021-02-22 19:06:03 -08:00
AlexeyBarabash 3d87335c99 Fix asm patching for BraveCommandLineInitUtil
fixes brave/brave-browser#14288
2021-02-23 00:23:20 +02:00
yan 9953d60e16 Remove BAT domains from network audit whitelist 2021-02-22 12:35:00 -08:00
Mario Sanchez Prada b39991fbf1 Remove usage of BRAVE_CHROMIUM_BUILD and brave_chromium_build
It will assumed from now on that all of Brave's own code plus patches
to upstream Chromium will always be built and run as part of a Brave
build, so we can drop these guards and reduce the patching surface.

Note that github.com/brave/brave-browser/wiki/Patching-Chromium should
also be updated to reflect the change implemented in this patch.

Fix https://github.com/brave/brave-browser/issues/12740
2021-02-22 12:19:42 +01:00
samartnik 010da2f267 [Android] Fixed menu icons for overview mode 2021-02-18 21:19:57 -05:00
bridiver 2e95360400 lint fixes 2021-02-17 16:17:24 -07:00
bridiver 5102daa03e fix unused variables on non-mac 2021-02-17 13:08:09 -07:00
bridiver 663372e943 lint fixes 2021-02-17 12:05:46 -07:00