Commit Graph
624 Commits
Author SHA1 Message Date
Mario Sanchez Prada 5475f3e6ef IWYU: base/environment.h 2022-01-24 15:33:38 -05:00
Mario Sanchez Prada bbf5fd3fe9 Remove deprecated DISALLOW_ macros from Brave-specific code
Macros such as DISALLOW_COPY_AND_ASSIGN() are deprecated since r711900
per style arbitration [1]. This commit replaces the macros with deleted
constructors and methods, which is preferred by the Google C++ Style
Guide [2][3].

Also remove unneeded "base/macros.h" #includes when possible.

This CL is created semi-mechanically with remove_disallow and
remove_base_macros [4].

[1]: https://groups.google.com/a/chromium.org/g/cxx/c/qwH2hxaEjac/m/TUKq6eqfCwAJ
[2]: https://chromium.googlesource.com/chromium/src/+/main/styleguide/c++/c++-dos-and-donts.md#explicitly-declare-class-copyability_movability
[3]: https://google.github.io/styleguide/cppguide.html#Copyable_Movable_Types
[4]: https://pkg.go.dev/go.timothygu.me/tools/cr/cmd

Chromium change:

https://chromium.googlesource.com/chromium/src.git/+/d002a3bee7ae75780b604d17df19291a3dd303fb

commit d002a3bee7ae75780b604d17df19291a3dd303fb
Author: Peter Boström <pbos@chromium.org>
Date:   Fri Nov 5 17:17:19 2021 +0000

    Remove DISALLOW_ macros from base/macros.h

    This removes DISALLOW_COPY(), DISALLOW_ASSIGN() and
    DISALLOW_COPY_AND_ASSIGN() from base/macros.h. PRESUBMITs are also
    updated to no longer check for these macros.

    IWYU removal is left as a separate change just in case this needs to be
    reverted.

    Bug: 1010217
2022-01-24 15:33:37 -05:00
Taher 952a9adb52 Merge pull request #11817 from brave/shields_panel_adblock_types
Added a method that returns AdblockMode
2022-01-20 07:35:30 -08:00
Taher be9dd853b3 Added method to read and set AdBlockMode on shields panel v2 2022-01-19 11:37:57 -08:00
Brian Clifton 45486c613b Fixes found as CI ran
- Fix for Android (VPN enabled flag check)
- Fix for iOS (include file was renamed)
- lint fixes
- initialize SKU feature for VPN tests
2022-01-15 00:18:52 -07:00
aseren ba069f9817 Merge pull request #11690 from brave/issues/17593
Set context for ad notification popup widget.
2022-01-14 00:00:35 +07:00
Aleksey Seren 258dfadaf3 Set context for ad notification popup widget.
fix https://github.com/brave/brave-browser/issues/17593
2022-01-13 19:12:39 +07:00
Emerick Rogul 747ebb9213 Migrate kHideButton preference to kShowButton preference 2022-01-11 15:39:35 +00:00
Taher 5a055ee199 Merge pull request #11798 from brave/shields_mojom
Added site data observer to shields panel v2
2022-01-11 06:19:42 -08:00
Taher 10965f643d Added site data observer to shields panel v2 2022-01-10 21:11:57 -08:00
Taher 4ee11b9ed0 Added count to Tor window 2022-01-04 09:41:45 -08:00
Taher c1b666952e Added shields panel v2 data controller 2021-12-23 19:59:57 -08:00
Taher f6c349705b Added shields panel webui 2021-12-16 14:40:03 -08:00
Pete Miller f4d8f3f8c5 Merge pull request #11468 from brave/alert-flag 2021-12-10 00:29:38 -08:00
aseren ce6de9a04c Merge pull request #11467 from brave/issues/19210
Fix popup bounds recompute on monitor scale change.
2021-12-09 21:22:40 +07:00
zenparsing c4357eb7ca Do not update action visibility if previous popup owner is null 2021-12-08 10:56:18 -05:00
Pete Miller 69748175a9 Desktop: Introduce feature flag "tab-audio-icon-interactive"
Controls whether tab audio icon can be interacted with to mute or unmute the tab
2021-12-07 21:39:05 -08:00
Mario Sanchez Prada b38225f77d Remove override for BraveTabStrip::ShouldHideCloseButtonForTab()
The TabStrip::ShouldHideCloseButtonForTab() method has been removed
upstream. To preserve the behavior to show close button on inactive tabs
only on hover added an additional chromium_src override to tab.cc

Chromium change:

https://chromium.googlesource.com/chromium/src.git/+/bc1aac74a88ad9ce554f048b6404b9e72383c832

commit bc1aac74a88ad9ce554f048b6404b9e72383c832
Author: Taylor Bergquist <tbergquist@chromium.org>
Date:   Thu Nov 4 21:40:49 2021 +0000

    Remove stacked tabs from the rest of TabStrip.

    Bug: 1250061
2021-12-07 14:45:48 -05:00
Mario Sanchez Prada b3aadf8199 Adapt to RenderViewContextMenu[Views] to use a const reference to RFH
Constructors and Create methods no longer expect a raw pointer.

Chromium change:

https://github.com/chromium/chromium/commit/49e30ea02860a4b573e2c7309429c0a5b3a740e2

commit 49e30ea02860a4b573e2c7309429c0a5b3a740e2
Author: Lukasz Anforowicz <lukasza@chromium.org>
Date:   Thu Oct 28 20:31:56 2021 +0000

    [reland] Use correct source_site_instance if navigating via context menu

    Before this CL there would be a discrepancy - navigation via the context
    menu could be associated both 1) with the subframe where the right click
    happened and 2) with the focused frame.  In particular,
    RenderViewContextMenuBase::OpenURLWithExtraHeaders would set
    `open_url_params.initiator_origin` based on the subframe, while setting
    `open_url_params.source_site_instance` based on the focused frame
    obtained by ChromeWebContentsViewDelegateViews::BuildMenu via a call to
    `web_contents->GetFocusedFrame()`.  Typically both frames (context menu
    frame and the focused frame) would be the same, but in some scenarios
    the main frame could retain the focus even while a subframe is opening a
    context menu.

    This CL modifies ChromeWebContentsViewDelegateViews::ShowContextMenu and
    ChromeWebContentsViewDelegateMac::ShowContextMenu so that they forward
    the original subframe to the BuildMenu method (rather than replacing it
    with the WebContents).  Most of the other changes in the CL are just a
    cascading consequence of changing the parameter type of BuildMenu.  This
    way the context menu is associated with a single frame (removing the
    focused frame from the considerations).

    Bug: 1257907
2021-12-07 14:45:38 -05:00
Mario Sanchez Prada 381b0a7833 Remove unnecessary WalletButton::InitBubbleManagerAnchor() method
This method was added in commit 88fbb5cc23 [1] as a way to initialize
the WebUIBubbleManagerT<WalletPanelUI> using the current anchor view,
but that initialization was removed later on in commit 3cd2a7f076 [2],
leaving the method just assigning a local |anchor_view| variable that
never gets used now.

This is now leading to a -Werror,-Wunused-but-set-variable error when
compiling, so this patch removes the method and all its callpoints.

[1] https://github.com/brave/brave-core/commit/88fbb5cc23
[2] https://github.com/brave/brave-core/commit/3cd2a7f076
2021-12-07 14:45:21 -05:00
Mario Sanchez Prada a9d07ab525 Migrate "base::TimeDelta::FromX" to "base:X"
Chromium changes:

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

commit e5a38eddbdf45d7563a00d019debd11b803af1bb
Author: Peter Kasting <pkasting@chromium.org>
Date:   Sat Oct 2 03:06:35 2021 +0000

    Migrate "base::TimeDelta::FromX" to "base:X".

    All changes were done automatically with git grep, sed, xargs, etc.

    Bug: 1243777

https://source.chromium.org/chromium/chromium/src/+/7b54ffec9bcbc6658b7238f79a540e37cbaf352a

commit 7b54ffec9bcbc6658b7238f79a540e37cbaf352a
Author: Peter Kasting <pkasting@chromium.org>
Date:   Wed Oct 13 11:25:42 2021 +0000

    Remove deprecated TimeDelta functions.

    Bug: 1243777
2021-12-07 14:44:55 -05:00
Aleksey Seren 2c8caa4b78 Fix popup bounds recompute on monitor scale change.
fix https://github.com/brave/brave-browser/issues/19210
2021-12-07 13:48:25 +07:00
zenparsing 7a7a72f0dc Display the rewards icon when the rewards panel is requested 2021-11-29 10:56:48 -05:00
Pete Miller 5eb95380bd Merge pull request #10522 from brave/shields_panel_toolbar_btn
Added shields panel v2 icon in location bar
2021-11-24 14:32:48 -08:00
Taher 8112eed728 Added shields panel v2 icon in location bar 2021-11-23 10:48:18 -08:00
Simon Hong ed615d6878 Set Brave as a default browser w/o system UI on Windows
fix https://github.com/brave/brave-browser/issues/19466
2021-11-18 09:30:22 +09:00
Terry Mancey a711740add Merge pull request #11101 from brave/issues/18845
Lock Brave custom ad notification position to the main display
2021-11-16 15:32:40 -05:00
Terry Mancey 31456c638f Lock Brave custom ad notification position to the main display 2021-11-16 10:17:54 -05:00
Taher 6abf3d2fc0 Removed short label from brave avatar toolbar for incognito profiles 2021-11-15 09:02:38 -08:00
Brian R. Bondy cf2b2872b8 Merge pull request #10852 from brave/remove-wallet-build-flag
Remove wallet build flag
2021-11-03 20:38:44 -04:00
Brian R. Bondy c04fe1b7ff Update cpp/.h build flags for wallet 2021-11-03 10:34:27 -04:00
Simon Hong 9464a82095 Fix crash on DCHECK-enabled builds due to missing accesibility name IV
The buttons used for the Brave VPN in the toolbar and app menu were
lacking an accessible name, which was triggering a crash on startup
on DCHECK-enabled builds.

Chromium change:

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

commit a62d2cead48795f0cfc53d35dcdca66f4e236bb3
Author: Peter Boström <pbos@chromium.org>
Date:   Thu Oct 7 21:14:44 2021 +0000

    Reland "Enable Views OnPaint() A11y DCHECKs"

    This reverts commit 32985fb4404d1c7aa41053d8f4d21ed729afbb98.

    Reason for revert: Relanding with additional skip-check annotations.

    Original change's description:
    > Revert "Enable Views OnPaint() A11y DCHECKs"
    >
    > This reverts commit c95dcbbb8ef6577342acfd2d9a3a0af9ee54502b.
    >
    > Reason for revert: Suspected culprit for failures on linux-chromeos-dbg. https://ci.chromium.org/ui/p/chromium/builders/ci/linux-chromeos-dbg/25787/overview
    >
    >
    > Original change's description:
    > > Enable Views OnPaint() A11y DCHECKs
    > >
    > > This annotates MessageBoxView which was the hard-to-find culprit of
    > > ChromeDriverTest.testSendTextToAlert. Presumably the test is set up to
    > > generate display a zero-length message?
    > >
    > > This change is likely to get reverted as more issues are found in the
    > > field. If you see this commit because your specific UI/dialog started
    > > crashing, please see views::kSkipAccessibilityPaintChecks to temporarily
    > > disable the DCHECK for your UI rather than reverting the mechanism for
    > > detecting these errors. Do follow that up with removal of that property
    > > and make sure that focusable UI always has accessible names that can be
    > > read by screenreaders.
    > >
    > > Bug: 1218186
    > > Change-Id: Id5e19fa7ccca844c599740b6849a3721604a5ee8
    > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3209106
    > > Reviewed-by: Scott Violet <sky@chromium.org>
    > > Commit-Queue: Scott Violet <sky@chromium.org>
    > > Commit-Queue: Peter Boström <pbos@chromium.org>
    > > Auto-Submit: Peter Boström <pbos@chromium.org>
    > > Cr-Commit-Position: refs/heads/main@{#928920}
    >
    > Bug: 1218186
    > Change-Id: I9abaef4c2abfa1d853be8933d700e11a727dbc97
    > No-Presubmit: true
    > No-Tree-Checks: true
    > No-Try: true
    > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3210369
    > Reviewed-by: Meredith Lane <meredithl@chromium.org>
    > Reviewed-by: Nancy Wang <nancylingwang@chromium.org>
    > Owners-Override: Meredith Lane <meredithl@chromium.org>
    > Auto-Submit: Meredith Lane <meredithl@chromium.org>
    > Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
    > Commit-Queue: Nancy Wang <nancylingwang@chromium.org>
    > Cr-Commit-Position: refs/heads/main@{#929035}

    Bug: 1218186
2021-11-02 12:41:31 -04:00
Simon Hong 2704304df4 Fixed DCHECK failure when private profile menu is launched
Changed timing for calling GetNativeTheme().
It should be called after NativeTheme is available for view.

Chromium change:
https://chromium.googlesource.com/chromium/src/+/93850eca7ee7369c0600f9558649d521b8f6d2eb

commit 93850eca7ee7369c0600f9558649d521b8f6d2eb
Author: tom <tluk@chromium.org>
Date: Mon Jul 19 17:39:29 2021

[views] Add CHECK to prevent fallthrough to global NativeTheme

This CL adds a CHECK to View::GetNativeTheme() to catch any
remaining fallthrough to the global NativeTheme instance.

Bug: 1056756
2021-11-02 12:41:31 -04:00
Simon Hong ad470facca Adapt to the removal of many NativeTheme::ColorId definitions
Chromium change:

https://source.chromium.org/chromium/chromium/src/+/54da85922dc56fad2a6021b0f05227791a0a60c8

commit 54da85922dc56fad2a6021b0f05227791a0a60c8
Author: Peter Kasting <pkasting@chromium.org>
Date:   Thu Sep 30 21:33:51 2021 +0000

    Rip out most of NativeTheme::ColorId, leaving only what's still used.

    Bug: 1249558
2021-11-02 12:38:05 -04:00
Mario Sanchez Prada ddc3cc32a3 Fix crash on DCHECK-enabled builds due to missing accesibility name II
The instances of SideButtonView and its subclasses will turn into
focusable elements that are now required to have an accessible name
available, or screen readers will not be able to see their content.

To fix this (plus crashes on DCHECK-enabled builds), we add a new
parameter to the constructor of SideButtonView to allow us set an
accesible name, and use for such name the same text we're using for
for the buttons' tooltips (e.g. Brave Talk, Wallet, Settings...).

Chromium change:

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

commit a62d2cead48795f0cfc53d35dcdca66f4e236bb3
Author: Peter Boström <pbos@chromium.org>
Date:   Thu Oct 7 21:14:44 2021 +0000

    Reland "Enable Views OnPaint() A11y DCHECKs"

    This reverts commit 32985fb4404d1c7aa41053d8f4d21ed729afbb98.

    Reason for revert: Relanding with additional skip-check annotations.

    Original change's description:
    > Revert "Enable Views OnPaint() A11y DCHECKs"
    >
    > This reverts commit c95dcbbb8ef6577342acfd2d9a3a0af9ee54502b.
    >
    > Reason for revert: Suspected culprit for failures on linux-chromeos-dbg. https://ci.chromium.org/ui/p/chromium/builders/ci/linux-chromeos-dbg/25787/overview
    >
    >
    > Original change's description:
    > > Enable Views OnPaint() A11y DCHECKs
    > >
    > > This annotates MessageBoxView which was the hard-to-find culprit of
    > > ChromeDriverTest.testSendTextToAlert. Presumably the test is set up to
    > > generate display a zero-length message?
    > >
    > > This change is likely to get reverted as more issues are found in the
    > > field. If you see this commit because your specific UI/dialog started
    > > crashing, please see views::kSkipAccessibilityPaintChecks to temporarily
    > > disable the DCHECK for your UI rather than reverting the mechanism for
    > > detecting these errors. Do follow that up with removal of that property
    > > and make sure that focusable UI always has accessible names that can be
    > > read by screenreaders.
    > >
    > > Bug: 1218186
    > > Change-Id: Id5e19fa7ccca844c599740b6849a3721604a5ee8
    > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3209106
    > > Reviewed-by: Scott Violet <sky@chromium.org>
    > > Commit-Queue: Scott Violet <sky@chromium.org>
    > > Commit-Queue: Peter Boström <pbos@chromium.org>
    > > Auto-Submit: Peter Boström <pbos@chromium.org>
    > > Cr-Commit-Position: refs/heads/main@{#928920}
    >
    > Bug: 1218186
    > Change-Id: I9abaef4c2abfa1d853be8933d700e11a727dbc97
    > No-Presubmit: true
    > No-Tree-Checks: true
    > No-Try: true
    > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3210369
    > Reviewed-by: Meredith Lane <meredithl@chromium.org>
    > Reviewed-by: Nancy Wang <nancylingwang@chromium.org>
    > Owners-Override: Meredith Lane <meredithl@chromium.org>
    > Auto-Submit: Meredith Lane <meredithl@chromium.org>
    > Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
    > Commit-Queue: Nancy Wang <nancylingwang@chromium.org>
    > Cr-Commit-Position: refs/heads/main@{#929035}

    Bug: 1218186
2021-11-02 12:38:05 -04:00
Mario Sanchez Prada 4e4bd4f23a Fix crash on DCHECK-enabled builds due to missing accesibility name
The LabelButton used for the Brave Rewards button in the toolbar was
lacking an accessible name, which was triggering a crash on startup
on DCHECK-enabled builds.

Chromium change:

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

commit a62d2cead48795f0cfc53d35dcdca66f4e236bb3
Author: Peter Boström <pbos@chromium.org>
Date:   Thu Oct 7 21:14:44 2021 +0000

    Reland "Enable Views OnPaint() A11y DCHECKs"

    This reverts commit 32985fb4404d1c7aa41053d8f4d21ed729afbb98.

    Reason for revert: Relanding with additional skip-check annotations.

    Original change's description:
    > Revert "Enable Views OnPaint() A11y DCHECKs"
    >
    > This reverts commit c95dcbbb8ef6577342acfd2d9a3a0af9ee54502b.
    >
    > Reason for revert: Suspected culprit for failures on linux-chromeos-dbg. https://ci.chromium.org/ui/p/chromium/builders/ci/linux-chromeos-dbg/25787/overview
    >
    >
    > Original change's description:
    > > Enable Views OnPaint() A11y DCHECKs
    > >
    > > This annotates MessageBoxView which was the hard-to-find culprit of
    > > ChromeDriverTest.testSendTextToAlert. Presumably the test is set up to
    > > generate display a zero-length message?
    > >
    > > This change is likely to get reverted as more issues are found in the
    > > field. If you see this commit because your specific UI/dialog started
    > > crashing, please see views::kSkipAccessibilityPaintChecks to temporarily
    > > disable the DCHECK for your UI rather than reverting the mechanism for
    > > detecting these errors. Do follow that up with removal of that property
    > > and make sure that focusable UI always has accessible names that can be
    > > read by screenreaders.
    > >
    > > Bug: 1218186
    > > Change-Id: Id5e19fa7ccca844c599740b6849a3721604a5ee8
    > > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3209106
    > > Reviewed-by: Scott Violet <sky@chromium.org>
    > > Commit-Queue: Scott Violet <sky@chromium.org>
    > > Commit-Queue: Peter Boström <pbos@chromium.org>
    > > Auto-Submit: Peter Boström <pbos@chromium.org>
    > > Cr-Commit-Position: refs/heads/main@{#928920}
    >
    > Bug: 1218186
    > Change-Id: I9abaef4c2abfa1d853be8933d700e11a727dbc97
    > No-Presubmit: true
    > No-Tree-Checks: true
    > No-Try: true
    > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3210369
    > Reviewed-by: Meredith Lane <meredithl@chromium.org>
    > Reviewed-by: Nancy Wang <nancylingwang@chromium.org>
    > Owners-Override: Meredith Lane <meredithl@chromium.org>
    > Auto-Submit: Meredith Lane <meredithl@chromium.org>
    > Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
    > Commit-Queue: Nancy Wang <nancylingwang@chromium.org>
    > Cr-Commit-Position: refs/heads/main@{#929035}

    Bug: 1218186
2021-11-02 12:38:05 -04:00
Mario Sanchez Prada 0cecd55a66 Replace includes for ui/gfx/skia_util.h with ui/gfx/geometry/skia_conversions.h
This is where the utility functions we need live now.

Chromium change:

https://source.chromium.org/chromium/chromium/src/+/65ef1ad3db744620652a74f6847938b7bbb3adc8

commit 65ef1ad3db744620652a74f6847938b7bbb3adc8
Author: Xianzhu Wang <wangxianzhu@chromium.org>
Date:   Thu Oct 7 03:12:33 2021 +0000

    Move ui/gfx/transform*,rrect*,mask_filter_info* into ui/gfx/geometry

    This allows blink code to use these types without needing to depend
    on ui/gfx.

    Split out geometry conversion functions from ui/gfx/skia_util.h into
    ui/gfx/geometry/skia_conversions.h.

    Split //ui/gfx:geometry_skia into //ui/gfx:gfx_skia and
    //ui/gfx/geometry:geometry_skia.

    This doesn't change depending code except for cc/.

    Bug: 738465
2021-11-02 12:38:05 -04:00
Mario Sanchez Prada 23598c098d Adapt to removal of OmniboxPopupModel
We can rely on the APIs of OmniboxViewViews and OmniboxEditModel now.

Chromium change:

https://source.chromium.org/chromium/chromium/src/+/3da9d9153abbc366ce1c4f8e7a93f35dcab1a834

commit 3da9d9153abbc366ce1c4f8e7a93f35dcab1a834
Author: Orin Jaworski <orinj@google.com>
Date:   Fri Oct 1 02:35:35 2021 +0000

    [omnibox] Eliminate OmniboxPopupModel by merging into OmniboxEditModel

    This CL removes the OmniboxPopupModel entirely. The file remains only
    for OmniboxPopupSelection and its related methods, which are still
    in common use. Forwarding methods in OmniboxEditModel now contain
    the implementations previously in OmniboxPopupModel. The one unified
    model now controls the state related to the popup. Presence of
    a non-nullptr popup view is now the way to determine whether popup
    state is relevant within the model.

    Bug: 1208026
2021-11-02 12:38:04 -04:00
Pete Miller bc89417c25 Merge pull request #10710 from brave/location_bar_tor 2021-11-01 11:27:51 -07:00
Brian R. Bondy 187bf9213f Hide wallet button which doesn't work on private windows
That also includes Tor windows.
2021-10-29 13:24:13 -04:00
Ralph Giles 50ce4f8748 speedreader: Fix formatting nit.
Correction from `npm run lint`.
2021-10-28 21:17:25 -07:00
Ralph Giles 027d3c4768 speedreader: Searching for settings by l10n label name.
Linking to a search query to highlight the Speedreader setting
only works if we us use the localized string presented by the
ui. Currently 8 of 47 locales translate this.

Fixup for #9580.
2021-10-28 21:17:25 -07:00
Kevin Kuehler a61a9cae65 speedreader: Point to speedreader in settings
We have two options here: (1) Point to
brave://settings?search=speedreader, which will highlight the
Speedreader setting, or (2) or provide a pointer to
brave://settings/appearance. I went with the former because it makes the
setting a bit easier to identify. There isn't a way to link to a
specific setting.

Resolves https://github.com/brave/brave-browser/issues/17216
2021-10-28 21:17:15 -07:00
Taher 7c9337d66e Added vpn panel controller 2021-10-28 14:27:58 -07:00
Taher 5e94691ca3 Updated tor icon and copy in location bar 2021-10-28 13:51:18 -07:00
Emerick Rogul 76b48fc16a Merge pull request #10638 from brave/rewards-fix-adaptive-captcha-truncated-text
Tweak adaptive captcha notification to allow all text to fit
2021-10-21 15:30:16 -04:00
Emerick Rogul 1eb0540471 Tweak adaptive captcha notification to allow all text to fit 2021-10-21 09:06:33 -04:00
Emerick Rogul 65cb4f0e61 Don't resize tooltip popup after moving it 2021-10-20 16:27:01 -04:00
Mikhail 293c56995e Enable internal translate engine (#10453)
* Move the buildflags

* Remove dummy TranslateURLFetcher

* Add runtime switching between extension and brave-translate-go

* Fix buildflags in network redirects

* Update patches

* Change translate-security-origin

* Fix lint

* Fix deps

* More lint

* Remove network redirection code

* Fix formatting

* Adjust CSP policy

* Use js requests redirection

* Adjust DEPS

* Fix !enable_extensions platforms

* Fix comment

* Improve js redirections, cleanup, fix tests

* Change a function name

* Remove NOLINT

* Remove logs

* Review fixes

* Remove C++ translate network redirections completely

* More review fixes

* Add browsertests

* Fix footers

* Add comments

* Fix test

* Remove the icon

* Use base::MockCallback

* Fix lint

* Improve the test

* Fix comments

* Move code to common

* Add a test switch for the google endpoint

* Update urls and add a switch
2021-10-20 20:26:52 +07:00
Aleksey Seren bf99f55a53 Handle case when popup was closed from the Windows taskbar.
fix https://github.com/brave/brave-browser/issues/18558
2021-10-06 15:09:38 +07:00