Commit Graph
28457 Commits
Author SHA1 Message Date
samartnik 56193fe255 [Android] Adjustments to UI changes in the upstream
Chromium change:
https://chromium-review.googlesource.com/c/chromium/src/+/3283625

Clean up legacy non-ThemeRefactorAndroid code now that the feature has
launched.

Bug: 1251194
2022-01-24 15:34:05 -05:00
samartnik 470bff2c5c [Android] Fix for permissions tests
Chromium change:
https://chromium-review.googlesource.com/c/chromium/src/+/3105005

[Messages] Migrate notification blocked infobar to messages

This Cl only includes the changes of migrating the infobar
to message ui. The changes of introducing the dialog
will be in a followed up CL.

Mock: https://screenshot.googleplex.com/4upv5eUL6sze7ac
Screenshot: https://hsv.googleplex.com/4876989703913472

Bug: 1230927
2022-01-24 15:34:05 -05:00
Mario Sanchez Prada a0bbcc76f2 Make sure to pass a uint8_t array to base::ReadBigEndian()
Chromium change:

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

commit b7f34d81f8ead36200b8882389d9f892946d4713
Author: Felix Weilbach <feweilbach@gmail.com>
Date:   Wed Nov 17 18:42:45 2021 +0000

    Change ReadBigEndian to take a uint8_t* input

    ReadBigEndian() is interpreting the input as bytes not as characters
    (e.g. UTF-8). Therefore it makes sense that ReadBidEndian() gets the
    input as uint8_t.

    Bug: 1219110
2022-01-24 15:34:03 -05:00
Mario Sanchez Prada 4d76bd2ec3 Remove BraveConfigurator::GetBrand() trivial override
The method has been removed from the parent class.

Chromium change:

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

commit b722fecc8f24471cb11e6fbdca93ea0a2f656e75
Author: Joshua Pawlicki <waffles@chromium.org>
Date:   Thu Nov 18 22:51:16 2021 +0000

    Updater: Send per-item brand code.

    Bug: 1259972
2022-01-24 15:34:02 -05:00
Mario Sanchez Prada bf5d1f3d44 Use explicit blink::WebScriptSource() constructor where needed
Chromium change:

https://chromium.googlesource.com/chromium/src/+/71fe2db597586482a8c509f0ced4fd4d619db1b1

commit 71fe2db597586482a8c509f0ced4fd4d619db1b1
Author: Hiroshige Hayashizaki <hiroshige@chromium.org>
Date:   Wed Nov 17 05:11:10 2021 +0000

    Clean up WebScriptSource constructors

    - Remove a constructor with start_line that is never used
    - Make a 1-argument constructor explicit

    This CL doesn't change the behavior.

    Bug: 1111134
2022-01-24 15:34:01 -05:00
Mario Sanchez Prada 6d86e0f8ad Updated strings for Chromium 98.0.4723.0. 2022-01-24 15:34:00 -05:00
Mario Sanchez Prada 184b3d7d8e Remove no longer used components/safe_browsing_strings.grdp
It only contained one constant that has been removed upstream now.

Chromium change:

https://chromium.googlesource.com/chromium/src/+/5ec55b48883d7182a9c9a0217f63c5fd3bd1ead5

commit 5ec55b48883d7182a9c9a0217f63c5fd3bd1ead5
Author: Nate Fischer <ntfschr@chromium.org>
Date:   Wed Nov 17 09:11:13 2021 +0000

    Safe Browsing: remove unused constant

    This removes an unused string constant. The string was used when
    chrome://safe-browsing was still under construction, but this has since
    launched.
2022-01-24 15:33:59 -05:00
Mario Sanchez Prada 8421aae5f8 Move code from ClientToHistogramSuffix() to BackgroundDownloadClientToString()
The switch statement being modified lives in clients.cc now.

Chromium change:

https://chromium.googlesource.com/chromium/src/+/20fa4aa8c7eac0a799bee8f1b6cb33c43e59a657

commit 20fa4aa8c7eac0a799bee8f1b6cb33c43e59a657
Author: Xing Liu <xingliu@chromium.org>
Date:   Sat Nov 20 01:40:32 2021 +0000

    Background download: Use one string conversion function for clients.

    Make logger_impl.cc to reuse the string conversion function in
    stats.cc. Also move the conversion to clients.cc.

    Bug: NONE
2022-01-24 15:33:59 -05:00
Mario Sanchez Prada 3d80bf59c2 Adapt to small change in personalization_options.html
Chromium change:

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

commit d3decd19febe2a0e53f9c03eecf55e378d14200f
Author: Boris Sazonov <bsazonov@chromium.org>
Date:   Thu Nov 18 16:33:43 2021 +0000

    Hide MSBB toggle from OS settings

    Hide "Make searches and browsing better" toggle in OS settings on
    ChromeOS if SyncSettingsCategorization is enabled.

    Screenshot: https://crbug.com/1267967#c10.

    Bug: 1267967
2022-01-24 15:33:58 -05:00
Mario Sanchez Prada 2c11a4fd6b conflict-resolved patches from Chromium 98.0.4710.4 to Chromium 98.0.4723.0. 2022-01-24 15:33:57 -05:00
Mario Sanchez Prada 6a0def7248 Updated patches from Chromium 98.0.4710.4 to Chromium 98.0.4723.0. 2022-01-24 15:33:56 -05:00
Mario Sanchez Prada a478cad2e1 Update from Chromium 98.0.4710.4 to Chromium 98.0.4723.0. 2022-01-24 15:33:56 -05:00
samartnik 8c35e65757 [Android] Make default_icon_color dynamic
Chromium change:
https://chromium-review.googlesource.com/c/chromium/src/+/3276657

[GMNext] Make default_icon_color dynamic

Bug: 1216642
2022-01-24 15:33:55 -05:00
Mario Sanchez Prada 0c9ac8011a Use Chromium's upstream git repository instead of the GitHub mirror
The GitHub mirrow has been temporarily out-of-sync since past Wednesday
November 17th which, even though they run a couple of manual syncs in
the past days, is causing trouble for us to work on rebases because we
can't fetch the right tags from the mirror.

This change changes the URL in package.json to point to the upstream
repository and makes the necessary changes to npm run sync so that
the gclient and git configurations get updated to it.

According to the upstream bug at https://crbug.com/1272797, this
situation should be fixed soon as it's been treated as high prio,
but we can't depend on that to be able to update to newer tags, so
we'd better make this change now, and then maybe return to using the
GitHub mirror later on when the situation is fixed, if needed.
2022-01-24 15:33:54 -05:00
Mario Sanchez Prada c22ae2f4b4 Adapt to removal of |enable_extension_apis| from |WebUIBubbleManagerT|
We need to manually add a ChromeExtensionWebContentsObserver to the
WebView's WebContents now that the |enable_extension_apis| parameter
is gone from the constructor, which we used to set to |true| causing
the BubbleContentsWrapper to do it for us.

Chromium change:

https://github.com/chromium/chromium/commit/183029096a06ae326108700c8f6272c6cec9b174

commit 183029096a06ae326108700c8f6272c6cec9b174
Author: Lukasz Anforowicz <lukasza@chromium.org>
Date:   Tue Nov 16 19:45:05 2021 +0000

    Introduce ContentBrowserClient::AttachUniversalWebContentsObservers.

    Problem description
    ===================

    Before this CL, there was a discrepancy in how Chrome Extensions were
    handled in the Browser process VS the Renderer processes:

    1. Code in a Renderer process ensures that content scripts are injected
       into *all* elligible documents (ones with URLs that match patterns
       requested by an extension).  This Renderer-side code is agnostic to
       whether the document is in a browser tab or in a different flavor of
       WebContents.

       This universal applicability of content scripts is desirable - if a
       user installs an extension to modify certain documents (e.g. change
       the behavior of https://example.com) then such user intent should be
       respected in all WebContents hosting such documents.

    2. Code in the Browser process would create ExtensionWebContentsObserver
       (EWCO) only for some, but not for all WebContents.  This was because
       when creating a new flavour of WebContents it was possible to miss
       the responsibility to construct EWCO - we've identified multiple
       WebContents flavours were EWCO was missing.

    The discrepancy between the Browser and the Rednderer processes would
    mean that some content scripts are injected but:

    A. They cannot talk to extensions::mojom::LocalFrameHost (which is
       bound by EWCO::BindLocalFrameHost) and therefore extension API calls
       do not work

    B. They are not recognized by ContentScriptTracker (which relies on
       notifications like EWCO::ReadyToCommitNavigation).  This was
       responsible for majority of DumpWithoutCrashing reports tracked in
       https://crbug.com/1212918.

    Changes in this CL
    ==================

    This CL adds a new method to ContentBrowserClient -
    AttachUniversalWebContentsObservers (which gets called by the //content
    layer for every WebContents after it gets created and initialized).
    Implementation of the new method in ChromeContentBrowserClient
    constructs ChromeExtensionWebContentsObserver for each WebContents.

    For more background (and discussion of alternative approaches for
    addressing the problem) please see the document here:
    https://docs.google.com/document/d/1zITHyso0axNdAZV3qySgsoWW-p6jOEKbWqoVJbOW92c/edit?usp=sharing

    Bug: 1212918
2022-01-24 15:33:54 -05:00
Mario Sanchez Prada 30262622c2 Revert "Adapt to new signature of profiles::GetGuestAvatar()"
This reverts commit 586ece5d2b35c881e7160a95538466204b03b267.

commit 479c46912860e1cf1fb4624487322eca607a60ad
Author: Jan Krcal <jkrcal@chromium.org>
Date:   Mon Nov 15 12:51:48 2021 +0000

    Revert "[Avatar button] Dim the button when the window is in background"

    This reverts commit a004286d08ac95c80c0341ea2f93ea40efb285cd.

    Reason for revert: Unexpectedly high memory regression crbug.com/1269135 (350K)

    Original change's description:
    > [Avatar button] Dim the button when the window is in background
    >
    > This CL makes all modes of AvatarToolbarButton respect the color
    > specified by ToolbarButton::GetForegroundColor(state). To this end:
    >  - in guest mode, the button uses the color as the stroke for the icon;
    >  - in normal mode, the button extracts alpha value of the color and
    >    applies that to whatever avatar icon is displayed (including custom
    >    Chrome avatars, the GAIA avatars, and the default avatars,
    >    potentially colored according to the theme color).
    >
    > Screenshots:
    > https://drive.google.com/drive/folders/1mwt5UWIrPBm8H2QLtRwsXLE1qVBDUp_n?resourcekey=0-V3FGpFsRvGZjPzasVTq5Kw&usp=sharing
    >
    >
    > Bug: 1198208
    > Change-Id: Ia8c17d6550af1b26ded51b6dae758e3ffd2152c7
    > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3220331
    > Commit-Queue: Jan Krcal <jkrcal@chromium.org>
    > Reviewed-by: Alex Ilin <alexilin@chromium.org>
    > Reviewed-by: Peter Boström <pbos@chromium.org>
    > Reviewed-by: Mitsuru Oshima <oshima@chromium.org>
    > Cr-Commit-Position: refs/heads/main@{#940486}

    # Not skipping CQ checks because original CL landed > 1 day ago.

    Bug: 1198208
2022-01-24 15:33:53 -05:00
Mario Sanchez Prada e11b736a58 Don't ever return fixed plugins data, use Brave's farbling method
The NavigatorPluginsFixed feature is now unconditionally enabled, so
we need to add some extra code to make sure that we always rely on
Brave's farbling mechanism, instead of returning upstream's fixed
plugins data.

Chromium change:

https://github.com/chromium/chromium/commit/c2abba012946a341b479821594eccaf45c893b3f

commit c2abba012946a341b479821594eccaf45c893b3f
Author: Mason Freed <masonf@chromium.org>
Date:   Tue Nov 16 00:38:55 2021 +0000

    Remove the NavigatorPluginsFixed feature flag

    This feature shipped successfully in M94, with no reported bugs.
    As such, this CL removes the feature flags. Note that the various
    uses of |should_return_fixed_plugin_data_| need to stay, as they
    are still used to re-enable the dynamic plugin lists for apps,
    which is controlled via:
       GetSettings()->GetAllowNonEmptyNavigatorPlugins()
    until at least June, 2022.

    Bug: 1171373,1164635
2022-01-24 15:33:52 -05:00
Mario Sanchez Prada e50ab2a5d4 Adapt to kSecurePaymentConfirmation{Instruments->Credentials} renaming
Chromium change:

https://github.com/chromium/chromium/commit/a3c39f54fc21ebbe8878a5753782bc102366d9a6

commit a3c39f54fc21ebbe8878a5753782bc102366d9a6
Author: Stephen McGruer <smcgruer@chromium.org>
Date:   Mon Nov 15 23:05:59 2021 +0000

    [SPC] Clean-up: rename instrument to credential in places

    We have long since stopped storing instrument information in the user
    profile database; nowadays we only store the credential information.
    Doing this renaming makes the code easier to understand.

    There are a few places where the old name remains, because they cannot
    be renamed without losing data - the SQL table itself and some
    histogram-related code.

    Bug: None
    Change-Id:
2022-01-24 15:33:51 -05:00
Mario Sanchez Prada 0da7ad9d63 Updated strings for Chromium 98.0.4710.4. 2022-01-24 15:33:50 -05:00
Mario Sanchez Prada de0d1ca06e Conflict-resolved patches from Chromium 98.0.4706.0 to Chromium 98.0.4710.4. 2022-01-24 15:33:49 -05:00
Mario Sanchez Prada b0005b7c71 Updated patches from Chromium 98.0.4706.0 to Chromium 98.0.4710.4. 2022-01-24 15:33:48 -05:00
Mario Sanchez Prada b3eddd4cec Update from Chromium 98.0.4706.0 to Chromium 98.0.4710.4. 2022-01-24 15:33:47 -05:00
samartnik 12f3b8df0f [Android] New c-tor signature for TabSwitcherModeTTCoordinatorPhone
Chromium change:
https://github.com/chromium/chromium/commit/fee97f92a2beb2d82ccced2a90a8f5931b976c2f

[Start] Clean up unnecessary codes in StartSurfaceToolbar*.
1. LayoutStateProvider and LayoutStateObserver logic is removed in
StartSurfaceToolbar* because StartSurfaceState#onStateChanged should
already cover all layout state changes.
Lazy inflation in StartSurfaceToolbarCoordinator.java is moved to
onStartSurfaceStateChanged() accordingly.
Clean up StartSurfaceMediatorUnitTest.java accordingly.

2. hasIncognitoTabs() in StartSurfaceToolbarMediator.java is removed
because the previous CL has added an incognito tab model observer which
could observe whether there is incognito tab directly.

3. Stop passing isStartSurfaceEnabled into
TabSwitcherModeTTCoordinatorPhone.java because it's always false.

Change-Id: I024f77b4d7ece51ddd53fc1c0b2bc7cedcfa3c2f
2022-01-24 15:33:47 -05:00
Mario Sanchez Prada 0a808c8f54 Adapt to new signature of profiles::GetGuestAvatar()
Chromium changes:

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

commit a004286d08ac95c80c0341ea2f93ea40efb285cd
Author: Jan Krcal <jkrcal@chromium.org>
Date:   Wed Nov 10 21:08:19 2021 +0000

    [Avatar button] Dim the button when the window is in background

    This CL makes all modes of AvatarToolbarButton respect the color
    specified by ToolbarButton::GetForegroundColor(state). To this end:
     - in guest mode, the button uses the color as the stroke for the icon;
     - in normal mode, the button extracts alpha value of the color and
       applies that to whatever avatar icon is displayed (including custom
       Chrome avatars, the GAIA avatars, and the default avatars,
       potentially colored according to the theme color).

    Screenshots:
    https://drive.google.com/drive/folders/1mwt5UWIrPBm8H2QLtRwsXLE1qVBDUp_n?resourcekey=0-V3FGpFsRvGZjPzasVTq5Kw&usp=sharing

    Bug: 1198208
2022-01-24 15:33:45 -05:00
Mario Sanchez Prada 3ef694940b Adapt to new signature of ChromeContentBrowserClient::CreateBrowserMainParts
Chromium changes:

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

commit fbeeb1c228427bcc94d22747210309b99f88c0b1
Author: Gabriel Charette <gab@chromium.org>
Date:   Wed Nov 10 20:50:06 2021 +0000

    [content] Make ContentMainParams and MainFunctionParams move-only

    This is taking care of a long-standing TODO to move these OnceClosure
    holders rather than copy them around with their OnceClosure* members.

    This is a precursor to
    https://chromium-review.googlesource.com/c/chromium/src/+/3187153/35#message-fcc92e9f85e73f0e5ba6c03610a95cda8736f1f9
    which highlighted a problem where some tests see a non-null
    MainFunctionParams::ui_task but running the closure results in a UAF.
    Logs show that the test hitting the UAF is not the one setting this
    field. This CL makes that impossible and fixes the issue in the
    follow-up CL.

    This CL is intended to be a logical no-op.
    This CL touches a lot of files and must happen all at once.

    The core change is that ContentMainParams and MainFunctionParams's
    moveable fields (ui_task, created_main_parts_closure, and startup_data)
    are now held by moveable types rather than raw pointers.

    This trickles in the following chain:
    main() (in various *_main.cc)
    (or SetUp() in !OS_ANDROID browser_test_base.cc)
      -> ContentMain()
        -> ContentMainRunnerImpl::Initialize()
          (forwards arg into MainFunctionParams)
          -> RunBrowser()
            -> BrowserMain()
              -> BrowserMainRunnerImpl::Initialize()
                -> BrowserMainLoop (stores MainFunctionParams)
                -> BrowserMainLoop::Init
                  -> ContentBrowserClient::CreateBrowserMainParts()
                    -> (Embedder)ContentBrowserClient::CreateBrowserMainParts()
                      -> (Embedder)BrowserMainParts(Platform)
                        -> (Embedder)BrowserMainParts
          -> RunOtherNamedProcessTypeMain()
            -> (Embedder)ContentMainDelegate::RunProcess()
            (or)
            -> FooMain() (kMainFunctions)
            (or)
            -> RunZygote()
              (creates its own MainFunctionParams)
              -> (Embedder)ContentMainDelegate::RunProcess()
    (on OS_ANDROID, browser_test_base.cc calls directly into
     ContentMainDelegate::RunProcess())

    Few of these needed the params after passing them down so a move-only
    model was simple to adapt (even if invasive). The few exceptions like
    BrowserMainRunnerImpl::Initialize consuming |created_main_parts_closure|
    are better off in the new model (where they take the OnceClosure before
    passing down the params) because that prevents others down the chain
    from having access to a OnceClosure they shouldn't invoke anyways.

    Noteworthy:
     - ContentMainDelegate::RunProcess():
       Returned an exit_code >= 0 to indicate the embedder elected to handle
       the run request given these params. With move-only semantics it is
       necessary to return the params back when the embedder declines
       handling this run request. An absl::variant return value is used
       to satisfy this requirement.

    - content/public/test/test_launcher.h : GetContentMainParams():
      Becomes CopyContentMainParams() and only exposes a copy of copyable
      params. Uses new ContentMainParams::ShallowCopyForTesting() which
      verifies that moveable fields are still null by that time as should be
      the case in the order browser tests are initialized.

    - MainFunctionParams::command_line being const& violated the style-guide
      rule to "avoid defining functions that require a const reference
      parameter to outlive the call". This also prevented moving. The type
      was hence switched to a const CommandLine*.

    - BUILD.gn changes for nacl_helper_win_64 which requires static linking
      of its minimal //content deps (was previously missing a dep but was
      getting away with it because MainFunctionParams was .h only; required
      now with .cc). This was already done for static_switches and this CL
      adds static_main_function_params, reusing a similar static_features
      target that already existed but was no longer required in
      /c/nacl/broker, cleaning that up by replacing rather than copying that
      target's definition in this CL.

    - ContentMainParams::minimal_browser_mode was weirdly passed as a
      parameter to ContentMainRunner::Run(bool start_minimal_browser) but
      that method also has access to the ContentMainParams originally passed
      via ContentMainRunner::Init(). Passing the param again from Run()
      would be a use-after-move in content_main.cc, instead
      content_main_runner_impl.cc was updated to use the param it already
      has in store.

    Bug: 1175074
2022-01-24 15:33:44 -05:00
Mario Sanchez Prada 06f884ff74 Remove includes to base/macros.h using base/ignore_result.h when needed
Only a couple of files really need to include this header now to use
ignore_result(), and we can just drop the include from everywhere else.

Chromium changes:

https://chromium.googlesource.com/chromium/src.git/+/2e6be1400ab678f21d871d0d3a1199912967324f
https://chromium.googlesource.com/chromium/src.git/+/5666ff4f5077a7e2f72902f3a95f5d553ea0d88d
https://chromium.googlesource.com/chromium/src.git/+/3a3f9436142e712d4a7e2a962d85154876fa395f

commit 2e6be1400ab678f21d871d0d3a1199912967324f
Author: Peter Boström <pbos@chromium.org>
Date:   Sat Nov 13 01:28:25 2021 +0000

    Rename "base/macros.h" => "base/ignore_result.h"

    This file only contains ignore_result() and is no longer a collection of
    macros.

    This change fixes a couple of missing IWYU removals as well.

    Bug: 1010217

commit 5666ff4f5077a7e2f72902f3a95f5d553ea0d88d
Author: Peter Boström <pbos@chromium.org>
Date:   Fri Nov 12 03:40:24 2021 +0000

    Remove most remaining unused "base/macros.h"

    Removes `#include "base/macros.h"` from remaining .cc, .h and .mm files
    that do not contain `ignore_result(` and do not trigger pre-commit or
    pre-upload errors.

    Bug: 1010217

commit 3a3f9436142e712d4a7e2a962d85154876fa395f
Author: Peter Boström <pbos@chromium.org>
Date:   Mon Nov 8 21:04:37 2021 +0000

    Add #include "base/macros.h" for ignore_result()

    This fixes IWYU for existing instances of ignore_result() to make
    removal of #include "base/macros.h" from files using it for DISALLOW_*
    macros easier.

    Bug: 1010217
2022-01-24 15:33:44 -05:00
Mario Sanchez Prada 732d93f678 Updated strings for Chromium 98.0.4706.0. 2022-01-24 15:33:42 -05:00
Mario Sanchez Prada 62f52521ea Conflict-resolved patches from Chromium 98.0.4695.0 to Chromium 98.0.4706.0. 2022-01-24 15:33:41 -05:00
Mario Sanchez Prada 246a6f6b55 Updated patches from Chromium 98.0.4695.0 to Chromium 98.0.4706.0. 2022-01-24 15:33:41 -05:00
Mario Sanchez Prada 332b122e8d Update from Chromium 98.0.4695.0 to Chromium 98.0.4706.0. 2022-01-24 15:33:39 -05:00
Mario Sanchez Prada 5475f3e6ef IWYU: base/environment.h 2022-01-24 15:33:38 -05:00
Mario Sanchez Prada 0d3ba05905 Add //ui/base/x to //brave/components/brave_ads/browser dependencies
This target is no longer in the public_deps for //ui/base, so we need
to explicitly list it now to avoid link errors.

Chromium change:

https://chromium.googlesource.com/chromium/src.git/+/2b98feda0cb0ef000c2f41d3f729cf7189bf394b

commit 2b98feda0cb0ef000c2f41d3f729cf7189bf394b
Author: Maksim Sisov <msisov@igalia.com>
Date:   Fri Nov 5 16:22:03 2021 +0000

    ozone: //ui/base: clean up from USE_X11 1/*

    This is another CL that removes USE_X11 define and
    gn arg usage from //ui/base and also removes
    IsUsingOzonePlatform condition as it's no longer
    needed as it always resolves to true.

    Please note that //ui/base used to have
    //ui/base/x in public_deps. That resulted in other
    components implicitly depending on the //ui/base/x
    as well. However, after it was deleted, it was
    required to fix deps in //remoting/host,
    //components/viz/service and //chrome/test/chromedriver.

    Changes:
    1) Moved hit_tests_x11 to //ui/platform_window/x11
    2) Moved os_exhange_data_provider_x11 to //ui/platform_window/x11
    3) Fixed deps
    4) //ui/base:ui_base_unittests no longer includes //ui/base/x:unittests.
    Instead, the //ui/base/x:unittests target is included in
    //ui/platform_window/x11:x11_unittests and these base x11 unittests
    run as part of x11_unittests.

    Bug: 1096425
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
Mario Sanchez Prada 0cbd43fc58 Updated strings for Chromium 98.0.4695.0. 2022-01-24 15:33:36 -05:00
Mario Sanchez Prada e79b112fff Conflict-resolved patches from Chromium 97.0.4692.99 to Chromium 98.0.4695.0. 2022-01-24 15:33:35 -05:00
Mario Sanchez Prada fee942d52a Updated patches from Chromium 97.0.4692.56 to Chromium 98.0.4695.0. 2022-01-24 15:33:34 -05:00
Mario Sanchez Prada 1749219b3b Update from Chromium 97.0.4692.99 to Chromium 98.0.4695.0. 2022-01-24 15:33:33 -05:00
Brian Clifton 52ff255a46 Merge pull request #11973 from brave/revert-11391-news-rss
Revert "Brave News user-provided feed support (rss, atom, etc)"
2022-01-24 13:15:52 -07:00
Pete Miller 4b12f083ef Revert "Brave News user-provided feed support (rss, atom, etc)" 2022-01-24 12:05:46 -08:00
sergey p d94ab7f6d4 Add images data source to wallet page and panel 2022-01-24 22:43:46 +03:00
sergey p 067ddc27bf Fix message signature for Trezor accounts 2022-01-24 21:55:23 +03:00
brave-builds 082fc7565f 1.36.64 2022-01-24 18:01:40 +00:00
Cepera a544821b21 Revert "Merge pull request #11776 from brave/revert-11396-filecoin-19285" (#11944)
This reverts commit 0c4fdea018, reversing
changes made to dd86d7474e.
2022-01-24 16:59:31 +03:00
brave-builds 21f4b9f4f2 1.36.63 2022-01-24 12:01:11 +00:00
brave-builds 00cb041afb 1.36.62 2022-01-24 00:01:07 +00:00
Cepera a4168add4f Fix unstable test BraveWalletEthereumChainTest.AddDifferentChainsNoSwitch (#11962) 2022-01-23 21:42:55 +03:00
Cepera 424c857a70 Update trezor-connect dependency (#11960) 2022-01-23 17:08:59 +03:00
brave-builds a84f65c96b 1.36.61 2022-01-23 10:21:39 +00:00
Pavneet Singh 46b70d848f Merge pull request #11951 from brave/19969-show-transaction-approval-popup
fix(wallet): show transaction dialog for approval/reject
2022-01-22 18:31:06 +05:30
brave-builds 666d650892 1.36.60 2022-01-22 10:09:40 +00:00