Commit Graph
16238 Commits
Author SHA1 Message Date
mkarolin 6becbbf7af Update patches from Chromium 86.0.4205.3 to Chromium 86.0.4214.2. 2020-09-11 14:45:30 -04:00
Mario Sanchez Prada eb2e175d88 Updated strings for Chromium 86.0.4205.3. 2020-09-11 14:45:30 -04:00
mkarolin 0d70c07917 Settings WebUI: hides several items on Security page.
- Password leak detection toggle
- Safe browsing reporting toggle.
- Google Advanced Protection link.
2020-09-11 14:45:30 -04:00
mkarolin 0e9defa757 Settings WebUI: added illustrations overrides.
Override illustrations added to the Cookies, Permission, and Safe
Browsing pages. They are not showing right now because we also disable
kPrivacySettingsRedesign feature, but this feature flag will go away in
Chromium 86.

The replacements are 1px high, same width as the originals, and transparent.

Chromium change:

https://chromium.googlesource.com/chromium/src/+/9f72153ac42b35aaaa5871451b180565e2ae758e

commit 9f72153ac42b35aaaa5871451b180565e2ae758e
Author: Sean Harrison <harrisonsean@chromium.org>
Date:   Wed Apr 1 09:43:49 2020 +0000

    Settings: Add new illustrations with light and dark mode

    Add new light/dark illustrations to the cookies page, security page, and permissions page

    Bug: 1032584
2020-09-11 14:45:30 -04:00
mkarolin f519741c01 Settings WebUI: hide Safety Check section.
Chromium change:

https://chromium.googlesource.com/chromium/src/+/55acceb9eb6e671c1c42558d8411710e6611535a

commit 55acceb9eb6e671c1c42558d8411710e6611535a
Author: sauski <sauski@google.com>
Date:   Tue Jul 7 09:30:14 2020 +0000

    Privacy Settings Redesign: Solidify redesigned implementation

    CL removes logic to support the pre-redesign version of settings. This
    was previously dependent on the privacySettingsRedesignEnabled flag.

    Bug: 1067336
2020-09-11 14:45:30 -04:00
samartnik fe2319d6a1 [Android] Added BraveLicensePreference to show full license
Summary in Preference was reduced to 10 lines in the new AndroidX library.
Here we extended it and set maximum lines available.

Chromium change:

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

Update AndroidX preference library to v1.1.1

This also updates the preference library's dependencies:
core, annotation, collection, fragment

Binary-Size: New androidx fragment library is larger.
Bug: 1092986
2020-09-11 14:45:30 -04:00
samartnik efe4c74375 [Android] Added dep for java tests
Otherwise there is an error:

../../brave/android/javatests/org/chromium/chrome/browser/BravePrivateTabTest.java:8: error: symbol not found android.support.test.filters.SmallTest
import android.support.test.filters.SmallTest;
2020-09-11 14:45:30 -04:00
samartnik ac97288cbf [Android] Changed preference class for site settings
Chromium change:

https://chromium.googlesource.com/chromium/src/+/7b378cb12e97bb1b2f2692891e7b461590d94949

Use Material default preference layout

Replace custom preference layout with material default. This correctly
aligns icons under the action bar back arrow without the additional
logic and fixed paddings previously used.

This results in small UI shifts on settings screens with icons. See
https://crbug.com/1095981 for screenshots and UX approval.

Bug: 971791, 1095981
2020-09-11 14:45:30 -04:00
Mario Sanchez Prada 56a9227176 Pass |otr_profile_id| to TestingProfile::GetOffTheRecordProfile()
This is not an optional parameter anymore, need to explicitly pass it.

Chromium change:

https://chromium.googlesource.com/chromium/src/+/07c37aac7d883993f15c07c39ac3c29506d7ae6a

commit 07c37aac7d883993f15c07c39ac3c29506d7ae6a
Author: Ramin Halavati <rhalavati@chromium.org>
Date:   Mon Jun 29 07:58:30 2020 +0000

    Remove default values from TestingProfile OTR API functions.

    GetOffTheRecordProfile and HasOffTheRecordProfile functions in
    TestingProfile had temporary default values for upgrading to new APIs.

    All calls are updated before, and now the defaults are removed.

    Bug: 1033903
2020-09-11 14:45:30 -04:00
Mario Sanchez Prada bf9bb61f91 Explicitly |cores_per_job| to base::NumParallelJobs()
This helper test method requires this parameter now, so let's pass
1 to keep the same behaviour that we have before this change.

Chromium change:

https://chromium.googlesource.com/chromium/src/+/903473ede0759fb9a90d29f0cc078e91d53ac793

commit 903473ede0759fb9a90d29f0cc078e91d53ac793
Author: Fergal Daly <fergal@chromium.org>
Date:   Thu Jul 2 04:04:49 2020 +0000

    Stop dividing the command-line-provided number of test jobs by 2.

    The value should be half of the number of CPU cores or whatever
    --test-launcher-jobs says. This change makes base::NumParallelJobs
    return the number of CPU cores divided by a cores_per_job factor
    supplied by each caller.

    This also adds error checking on the result where it wasn't already
    present.

    Bug: 1096909
2020-09-11 14:45:30 -04:00
Mario Sanchez Prada 32c359a0a0 Use new getter BubbleDialogDelegateView::GetWidget() from browser test
Previously, tab_hover_card_bubble_view_browsertest.cc would directly
access TabHoverCardBubbleView::widget_ to get the hover card widget,
which does no longer exist. Instead, we now need to use the new getter
added to the parent class BubbleDialogDelegateView.

Chromium change:

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

commit be0e041591da8533dc5c969ed5f272eb475cc62b
Author: Caroline Rising <corising@chromium.org>
Date:   Mon Jul 6 20:26:22 2020 +0000

    TabHoverCardBubbleView cleanup and fix destruction crashing bug.

    Before this change TabHoverCardBubbleView could be partially destructed
    when delayed_show_timer_ ended. This change lets delayed_show_timer_
    be destructed first.

    Bug: 1096840
2020-09-11 14:45:30 -04:00
Mario Sanchez Prada cbb0d341ee Pass nullptr as |data_dst| to ui::Clipboard::ReadAsciiText()
This extra output parameter was added to the signature of the method
so we need to adapt callers.

Chromium change:

https://chromium.googlesource.com/chromium/src/+/3cb10b91c99375d28754cc04649d6160c79658cf

commit 3cb10b91c99375d28754cc04649d6160c79658cf
Author: Aya ElAttar <ayaelattar@google.com>
Date:   Wed Jul 15 00:15:11 2020 +0000

    Pass destination on clipboard read

    Added the ClipboardDataEndpoint destination trying
    to read the clipboard data as a as a parameter for all
    ui::Clipboard Read*() functions. This destination is intended
    to be used only on ChromeOS and Test platforms.
    This CL adds this plumbing. Implementation of filtering will
    be done in following CLs.

    Bug: 1096456
2020-09-11 14:45:30 -04:00
Mario Sanchez Prada e79cdb61ee Rename SetMasterPrefsPathForTesting to SetInitialPrefsPathForTesting
Many method referencing "master preferences" got renamed to reference
"initial preferences" instead, so we need to adjust this.

Chromium change:

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

commit a7f076e8c5ccde5dee6735b00ab43bd951d7b592
Author: Elly Fong-Jones <ellyjones@chromium.org>
Date:   Mon Jun 29 21:13:55 2020 +0000

    inclusion: rename "master_preferences" &c, part 1/n

    This change renames:
    * master_prefs::MasterPrefsPath -> initial_prefs::InitialPrefsPath
    * first_run::internal::MasterPrefsPath -> ...::InitialPrefsPath

    This is the first part of renaming the "master preferences" file and all
    the code referencing it. A file in a platform-dependent location named
    "master_preferences" or similar has historically been the documented way
    to impose initial preferences in newly-created profiles. Removing
    support for the old name would break backward compatibility, so this
    sequence of CLs will instead:

    1) Rename the concept from "master preferences" to "initial preferences"
       throughout the codebase *without* changing the name of the actual
       initial preferences file on disk
    2) Add support for a secondary initial preferences file, named
       "initial_preferences"
    3) Update all public documentation to refer to the new
       "initial_preferences" file instead

    It is not likely that it will ever be possible to drop support for the
    old filename, given its likely wide use, but this will at least improve
    things.

    Bug: 1097204
2020-09-11 14:45:30 -04:00
mkarolin be9ff3d3c2 Fixes url_constants.cc override. 2020-09-11 14:45:30 -04:00
mkarolin 03e89f86fb Sandbox moved to //sandbox/policy.
Chromium change:

https://chromium.googlesource.com/chromium/src/+/7d0b49b0aa5550c0302aa353a786d72fed07a4d0

commit 7d0b49b0aa5550c0302aa353a786d72fed07a4d0
Author: Robert Sesek <rsesek@chromium.org>
Date:   Wed Jul 8 18:31:27 2020 +0000

    Move //services/service_manager/sandbox to //sandbox/policy.

    Originally the sandbox policies lived in //content, but with
    servicification this would create unwanted dependencies between
    //services and //content. Instead, create a new //sandbox/policy
    library to hold the sandbox integration code. This library can depend
    on the low-level //sandbox routines, but not nice versa.

    Tbr: ajgo@chromium.org (mechanical change rule)
    Bug: 1097376
2020-09-11 14:45:30 -04:00
samartnik d99d9af8e1 [Android] Added dependency for java_bytecode_rewriter
Otherwise there is an error:

../../brave/build/android/bytecode/java/org/brave/bytecode/BraveClassVisitor.java:24: error: symbol not found org.objectweb.asm.tree.ClassNode
import org.objectweb.asm.tree.ClassNode;
2020-09-11 14:45:30 -04:00
samartnik 2bdfc1c9e0 [Android] Removed comma for about_falgs
Comma is already included on Android

Chromium change:

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

Add EditPasswordInDesktopSettings flag to chrome://flags.

Bug: 377410
2020-09-11 14:45:30 -04:00
samartnik 3f4a97fd66 [Android] Java changes related to renamings 2020-09-11 14:45:30 -04:00
Mario Sanchez Prada c64e201171 Migrate usage of Document's GetSecurityOrigin() to DOMWindow's
Chromium change:

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

commit ad8bb86b63c38bcffec5e10fa2e89cb8ec422fe1
Author: Nate Chapin <japhet@chromium.org>
Date:   Tue Jul 7 17:36:46 2020 +0000

    Remove Document::GetSecurityOrigin

    Bug: 1101402
2020-09-11 14:45:30 -04:00
Mario Sanchez Prada a9abba4e69 Increase the number of tokens allowed in document.h to 2M
The current number of tokens on my machine is 1879922, which greatly
exceeds the limit of 900K recently added usptream.

Chromium change:

https://chromium.googlesource.com/chromium/src/+/6d647737c27eaefb061fc6500147a694d1b03789

commit 6d647737c27eaefb061fc6500147a694d1b03789
Author: Kent Tamura <tkent@chromium.org>
Date:   Fri Jul 10 09:18:28 2020 +0000

    Add max_tokens_here for document.h

    The current number of tokens for document.h is 898,916 on my local
    machine.

    This CL has no behavior changes.

    Bug: 1049569
2020-09-11 14:45:30 -04:00
Mario Sanchez Prada 685aed2f40 Add missing include for base/command_line.h 2020-09-11 14:45:30 -04:00
Mario Sanchez Prada 171ba8ae85 Add missing include for base/no_destructor.h 2020-09-11 14:45:30 -04:00
Mario Sanchez Prada d2d010054a Make BraveDownloadItemView::GetYForFilenameText() a local method.
Prior to cr86, it overwrote of DownloadItemView::GetYForFilenameText(),
but that's no longer an existing method in that parent class.

Chromium change:

https://chromium.googlesource.com/chromium/src/+/316bd1dd529d469af7b4751a5cdd999d6c277f87

commit 316bd1dd529d469af7b4751a5cdd999d6c277f87
Author: Peter Kasting <pkasting@chromium.org>
Date:   Thu Jul 16 04:20:59 2020 +0000

    Refactor DownloadItemView state transitions, part 3.

    This adds a helper, UpdateLabels(), to set all labels' visibility, text,
    and style based on the current mode; this replaces the scattered pieces
    throughout other functions.

    The file name label's style changes based not on the mode but on the
    enabled state of the whole view; update that in the functions that set
    the view's enabled state.

    The above two changes mean that UpdateColorsFromTheme() now only deals
    with colors, and thus no longer need be called outside OnThemeChanged().

    Renames |dangerous_download_label_| to the more accurate (and shorter!)
    |warning_label_|.

    For some reason UpdateMode() was also sometimes setting the file name
    label's Y coordinate.  This is done in layout, and there's no reason to
    do it here.
2020-09-11 14:45:30 -04:00
Mario Sanchez Prada 7feea7098f Static cast to x11::Window before comparing a gfx::AcceleratedWidget
Otherwise build will fail since gfx::AcceleratedWidget is an uint32_t.

Chromium change:

https://chromium.googlesource.com/chromium/src/+/06046d63974233252873292adbee780ffaee5f82

commit 06046d63974233252873292adbee780ffaee5f82
Author: Maksim Sisov <msisov@igalia.com>
Date:   Fri Jun 26 07:02:29 2020 +0000

    X11 and Ozone: make sure gfx::AcceleratedWidget to be uint32_t

    Currently, Ozone/X11 defines gfx::AcceleratedWidget as
    int32_t whereas non-Ozone/X11 defines that as x11::Window
    or uint32_t. To fix the inconsistency and allow use_x11 &&
    use_ozone builds, make non-Ozone/X11 uses Ozone's definition
    of gfx::AcceleratedWidget.

    Also adds missing includes.

    Bug: 1098267
2020-09-11 14:45:30 -04:00
Mario Sanchez Prada cf5c260e09 Rename Blacklist into Blocklist, to match the new terminology
Chromium change:

https://chromium.googlesource.com/chromium/src/+/950f2953f55364c3a44b7d10355d0567da7c12c9

commit 950f2953f55364c3a44b7d10355d0567da7c12c9
Author: nancylingwang@google.com <nancylingwang@chromium.org>
Date:   Fri Jul 10 03:35:50 2020 +0000

    Replace blacklist with blocklist for c/b/extensions.

    FYI: https://tools.ietf.org/id/draft-knodel-terminology-00.html

    BUG=1097644
2020-09-11 14:45:30 -04:00
Mario Sanchez Prada d6f581df51 Remove calls to ToolbarButton::Init(), no longer needed
This method has been removed upstream since its only logic has now
been merged into its constructor.

Chromium change:

https://chromium.googlesource.com/chromium/src/+/668e2071c430e324a3ec6e2ffad895aedc618aac

commit 668e2071c430e324a3ec6e2ffad895aedc618aac
Author: Sangwoo Ko <sangwoo.ko@navercorp.com>
Date:   Fri Jun 26 21:04:21 2020 +0000

    Remove ToolbarButton::Init()

    It just sets FocusBehavior and if it's basic behavior all toolbar
     buttons, it can be done in constructor

    Bug: 1099601
2020-09-11 14:45:30 -04:00
Mario Sanchez Prada 867ee8f29c Update FirstPartyURLPolicy related values to net::RedirectInfo
Chromium change:

https://chromium.googlesource.com/chromium/src/+/930e44d29b15ba30d02ed06d28c127862c078dc7

commit 930e44d29b15ba30d02ed06d28c127862c078dc7
Author: Matt Menke <mmenke@chromium.org>
Date:   Thu Jul 16 02:26:44 2020 +0000

    Move URLRequest::FirstPartyURLPolicy into RedirectInfo.

    RedirectInfo is the main consumer of this field, so currently has to
    include url_request.h. RedirectInfo is sent across processes via Mojo
    messages, which means the Network Service's Mojom files have to include
    url_request.h. As a result, ~8,000 build steps are indirectly depending
    on url_request.h. Not only do almost all of them not actually need
    url_request.h, but this means they also include a fair number of net/
    header files, which slows build time and makes rebuilding chrome after
    modifying any of a number of files slow.

    Moving FirstPartyURLPolicy to RedirectInfo solves this problem.

    Bug: 1103784
2020-09-11 14:45:30 -04:00
Mario Sanchez Prada 2d5948b6ff Adapt NotificationHandler to include the new NEARBY_SHARE type
Chromium change:

https://chromium.googlesource.com/chromium/src/+/257bcabbc59957ebbeb549c06ff62857a76e2514

commit 257bcabbc59957ebbeb549c06ff62857a76e2514
Author: Richard Knoll <knollr@chromium.org>
Date:   Mon Jul 6 21:06:54 2020 +0000

    [Nearby] Add  NearbyNotificationManager and handler

    This adds a basic progress notification that will be properly translated
    in a follow up CL. We add a new NotificationHandler type so we can use
    native notifications on all supported desktop OSs. Handling notification
    actions is guarded by the kNearbySharing flag.

    Bug: 1102348
2020-09-11 14:45:30 -04:00
Mario Sanchez Prada bd1a94aef2 Update ProfileMenuViewBase::SetIdentityInfo to SetProfileIdentityInfo
Chromium change:

https://chromium.googlesource.com/chromium/src/+/23b4ec91c36c130c799ec4c8b4001cee24085f5c

commit 23b4ec91c36c130c799ec4c8b4001cee24085f5c
Author: Jan Krcal <jkrcal@chromium.org>
Date:   Wed Jul 1 04:37:45 2020 +0000

    [User menu] Refactor setting profile identity into one function

    This CL is a refactoring before a minor update of the design of the
    profile menu. This CL brings no behavioral change.

    This change is needed because in the new design, the layout of the
    profile name heading and the layout of the identity info are more
    intertwined and thus it is opportune to set them in one function.

    Bug: 1099286
2020-09-11 14:45:30 -04:00
Mario Sanchez Prada dbf94d6e23 Update signatures of RemoveEmbedderData() and OnBrowsingDataRemoverDone()
Chromium change:

https://chromium.googlesource.com/chromium/src/+/7492117659dab49c3f4d7c16af696af428e5e3a1

commit 7492117659dab49c3f4d7c16af696af428e5e3a1
Author: Marc Treib <treib@chromium.org>
Date:   Tue Jul 7 15:19:56 2020 +0000

    [CBD] Wire password deletion failure to the UI

    Before this CL, BrowsingDataRemover did not expose the concept of
    "deletion failure", i.e. when a requested deletion could not be
    completed. (An example of such a deletion failure is a timeout, which
    BrowsingDataRemoverImpl sets to 30 seconds.)

    This CL adds the concept of "failed data types" to the API. They're
    represented as a bitmask of DataTypes - the same format that's used to
    request deletion in the various Remove*() methods.

    So far, the only data type that will actually report deletion errors is
    DATA_TYPE_PASSWORDS, but support for more types can easily be added.
    None of the clients/observers does anything with the new information
    yet; that's left for a future CL.

    Bug: 1086433
2020-09-11 14:45:30 -04:00
Mario Sanchez Prada d0b20e6748 Migrate gfx::ToRoundedInt() to base::Round()
Chromium change:

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

commit fc445b3aebf55aac019dde55e45320533122757a
Author: Peter Kasting <pkasting@chromium.org>
Date:   Thu Jul 2 19:47:04 2020 +0000

    Migrate existing usage of gfx:: float conversions to base:: versions.

    Bug: 1088346
2020-09-11 14:45:30 -04:00
Mario Sanchez Prada 7325a78062 Add missing includes for net:: related header files 2020-09-11 14:45:30 -04:00
Mario Sanchez Prada c71e5beb11 Pass a std::unique_ptr<T> for ChromeBrowserMainParts::AddParts()
Chromium change:

https://chromium.googlesource.com/chromium/src/+/42e9330687356ecfaaa63e41e9ace81226fef8b7

commit 42e9330687356ecfaaa63e41e9ace81226fef8b7
Author: James Cook <jamescook@chromium.org>
Date:   Mon Jul 6 20:56:12 2020 +0000

    Make ChromeBrowserMainParts::AddParts() take a std::unique_ptr

    The function takes ownership of its argument, so change to unique_ptr
    to make that clear.

    Also remove "virtual" from the function because nothing overrides it.

    No behavior changes - I just happened to notice this while adding a
    new ExtraParts class in a different CL.
2020-09-11 14:45:30 -04:00
Mario Sanchez Prada cef105f6a9 Update new location for referrer.mojom file
It has been moved from Blink's public/mojom into public/mojom/loader,
so we need to update include paths.

Chromium change:

https://chromium.googlesource.com/chromium/src/+/60693aa5a0a281ba33d7ad08da48dc8170288983

commit 60693aa5a0a281ba33d7ad08da48dc8170288983
Author: Hiroki Nakagawa <nhiroki@chromium.org>
Date:   Thu Jul 16 09:01:41 2020 +0000

    Loader: Move referrer.mojom into blink/public/mojom/loader

    blink/public/mojom/loader is a more suitable place for referrer.mojom
    than the Blink's top-level mojom directory (i.e., blink/public/mojom) in
    terms of code structure.
2020-09-11 14:45:30 -04:00
Mario Sanchez Prada 2c755030a4 Migrate from net::URLRequest::ReferrerPolicy to net::ReferrerPolicy
Chromium change:

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

commit cdec7f4c2965655fd83393b7f64abfce8b1c7c40
Author: Matt Menke <mmenke@chromium.org>
Date:   Wed Jul 15 17:59:54 2020 +0000

    Move URLRequest::ReferrerPolicy enum into its own file.

    This enum is part of the NetworkService API, and files outside of the
    network service shouldn't need to transitively include a bunch of net/
    classes to use it.

    This CL also converts it from an enum to an enum class.

    This CL is part of a chain of CLs that will reduce the 4000 build
    steps in content_browsertests currently depending on url_request.h
    to about 200.

    Bug: 1103784
2020-09-11 14:45:30 -04:00
Mario Sanchez Prada f34aec93be Rename BraveP3ALogStore::PersistUnsentLogs to TrimAndPersistUnsentLogs
Chromium change:

https://chromium.googlesource.com/chromium/src/+/96ecc0aa4768e41e5d6c6bc7d45834e802dacbdc

commit 96ecc0aa4768e41e5d6c6bc7d45834e802dacbdc
Author: Robert Kaplow <rkaplow@chromium.org>
Date:   Thu Jul 16 15:29:09 2020 +0000

    Trim in-memory logs in unsent_log_store when attempting to persist.

    This will actually trim large logs if they cannot be uploaded right away.
    I'm not sure this is behavior we want, although I presume logs large enough
    to hit our limits (looks like 100K currently from
    metrics_reporting_service.cc) are large enough it probably makes sense to
    trim. Curious if you think this is risky.

    After writing this, i considered changing the API such that the trimming
    call and persisting are seperate. Not sure which is better, but trimming at
    the time of persisting seems like a reasonable place to do it, so left it
    this way as it is simpler.

    Bug: 1098317
2020-09-11 14:45:30 -04:00
Mario Sanchez Prada 21b7243cde Rename views::Button::state() to views::Button::GetState()
Chromium change:

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

commit e06e20c09c3ee52af0a4040e8582243ec661e414
Author: Peter Kasting <pkasting@chromium.org>
Date:   Mon Jul 13 18:14:42 2020 +0000

    Replace calls to Button::state() with calls to GetState().

    Rename only; no functional change.
2020-09-11 14:45:30 -04:00
Mario Sanchez Prada dfa43a645d Convert to new mojo types for uses of the old mojom::ServiceRequest
This means renaming uses of ServiceBinding to ServiceReceiver, as
well as removing any use of the old InterfaceRequest<T> type (e.g.
used by the ServiceRequest alias) and use PendinReceiver<T> instead.

Chromium change:

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

commit bb551f12072ebf7a9af6df26a51d125f90078453
Author: Gyuyoung Kim <gyuyoung@igalia.com>
Date:   Thu Jul 2 00:12:00 2020 +0000

    Convert mojom::ServiceRequest to PendingReceiver<mojom::Service>

    There are many uses of mojom::ServiceRequest. This CL migrates
    them to PendingReceiver<mojom::Service>.

    Besides that, ServiceBinding is renamed to ServiceReceiver and
    the variable name is also changed from |binding_| to |receiver_|
    or |service_binding_| to |service_receiver_|.

    Bug: 955171
2020-09-11 14:45:30 -04:00
Mario Sanchez Prada c2e8e652a7 Remove reference to //third_party/cacheinvalidation from BUILD.gn
This whole directory does no longer exist upstream.

Chromium change:

https://chromium.googlesource.com/chromium/src/+/742de287e968fceeddd15f086f135057fcc5da71

commit 742de287e968fceeddd15f086f135057fcc5da71
Author: Marc Treib <treib@chromium.org>
Date:   Mon Jul 13 08:18:09 2020 +0000

    Delete third_party/cacheinvalidation

    It has been essentially unused for a while.
    Apart from deleting the code, this CL contains the following changes:
    - In ChromeGcmListenerService: stop passing incoming
      GCM messages to the cacheinvalidation code.
    - In ProcessInitializationHandler: stop initializing cacheinvalidation's
      Logger class.
    - Create a dummy GcmRegistrationTaskService: This service (part of the
      cacheinvalidation library) is listed in the AndroidManifest.xml as
      exported, so it's part of Chrome's public API and can't just be
      removed. Adding an empty dummy implementation lets us keep the
      manifest entry without the actual implementation from the library.

    Bug: 1099672
2020-09-11 14:45:30 -04:00
mkarolin 45712b0b4f Removed no longer needed patch for devtools.
This patch was originally added due to error:

    TypeScript compilation failed. Used tsconfig src\out\Release\gen/third_party/devtools-frontend/src/front_end/common/color-tsconfig.json

    ../../../node_modules/@types/babel__generator/index.d.ts(9,20): error TS2307: Cannot find module '@babel/types'.
    ../../../node_modules/@types/babel__traverse/index.d.ts(10,20): error TS2307: Cannot find module '@babel/types'.
    ../../../node_modules/@types/babel__traverse/index.d.ts(30,5): error TS2411: Property 'scope' of type 'Scope | undefined' is not assignab e to string index type '(VisitNodeFunction<S, any> & VisitNodeFunction<S, any>) | (VisitNodeFunction<S, any> & VisitNodeObject<S, any>) | (VisitNodeObject<...> & VisitNodeFunction<...>) | (VisitNodeObject<...> & VisitNodeObject<...>) | undefined'.
    ../../../node_modules/@types/babel__traverse/index.d.ts(31,5): error TS2411: Property 'noScope' of type 'boolean | undefined' is not assi nable to string index type '(VisitNodeFunction<S, any> & VisitNodeFunction<S, any>) | (VisitNodeFunction<S, any> & VisitNodeObject<S, any>) | (VisitNodeObject<...> & VisitNodeFunction<...>) | (VisitNodeObject<...> & VisitNodeObject<...>) | undefined'.
    ../../../node_modules/@types/babel__template/index.d.ts(9,31): error TS2307: Cannot find module '@babel/parser'.
    ../../../node_modules/@types/babel__template/index.d.ts(10,54): error TS2307: Cannot find module '@babel/types'.
    ../../../node_modules/@types/babel__core/index.d.ts(13,20): error TS2307: Cannot find module '@babel/types'.
    ../../../node_modules/@types/babel__core/index.d.ts(14,31): error TS2307: Cannot find module '@babel/parser'.

The error doesn't appear to be happening any more without the patch.
2020-09-11 14:45:30 -04:00
mkarolin 7b922b1626 [Android] Removed one patch for AndroidSyncSettings.
The patch is no longer needed as the Chromium change no longer creates a
new instalnce of AndroidSyncSettings in the testing c'tor (instead it
needs to be passed in).

Chromium change:

https://source.chromium.org/chromium/chromium/src/+/7839b373c49781e224901e13b1c752c62053fe01

commit 7839b373c49781e224901e13b1c752c62053fe01
Author: Boris Sazonov <bsazonov@chromium.org>
Date:   Fri Jul 10 09:16:51 2020 +0000

    [Signin][Android] Ensure AndroidSyncSettings is created on the UI thread

    Ensure AndroidSyncSettings.get() is only invoked on the UI thread. This
    is necessary for migration to IdentityManager, as it can only be used
    from the UI thread.

    Bug: 1093998
2020-09-11 14:45:30 -04:00
mkarolin ee6119a072 Removed patch to entitlements.plist.
The entitlement we were patching out was moved to a different plist that
is branded only for Chrome.

Chromium change:

https://chromium.googlesource.com/chromium/src/+/587c802620ba356ba369328041bf7dccd1cc014f

commit 587c802620ba356ba369328041bf7dccd1cc014f
Author: Robert Sesek <rsesek@chromium.org>
Date:   Wed Jul 1 15:14:02 2020 +0000

    mac: Divide the entitlements into Chrome-specific and Chromium files.

    This let the signing scripts work out-of-the-box with Chromium builds.
    The existing app-entitlements.plist file is split into two: in that file
    are all the entitlements that work with any signed build of the product,
    but the entitlements that are bound to the Google Chrome signing
    identity are moved into a new app-entitlements-chrome.plist.

    Bug: 1021255
2020-09-11 14:45:30 -04:00
mkarolin f93e960d96 Conflict-resolved patches from Chromium 85.0.4183.83 to Chromium 86.0.4205.3. 2020-09-11 14:45:30 -04:00
mkarolin 203549c463 Update patches from Chromium 85.0.4183.83 to Chromium 86.0.4205.3. 2020-09-11 14:45:30 -04:00
samartnik 445b56af6e Merge pull request #6628 from brave/android_unit_tests_specify_emulator
[Android] Explicitly specify emulator to run unit tests on
2020-09-11 14:43:31 -04:00
Brian R. Bondy 5c92e28ac2 Merge pull request #6618 from brave/web3-provider-v3
Force select MetaMask when installed
2020-09-11 14:26:43 -04:00
Nejc Zdovc 599337ea90 Merge pull request #6625 from brave/gl-ac
GL preconditions
2020-09-11 20:24:04 +02:00
brave-builds 7d291ec607 1.16.11 2020-09-11 18:03:44 +00:00
samartnik 67d93903ab [Android] Explicitly specify emulator to run unit tests on 2020-09-11 12:59:26 -04:00
Brian R. Bondy 5994a10b2e Force select MetaMask when installed
No longer prompt about selecting a web3 provider
2020-09-11 11:42:53 -04:00