Commit Graph
16 Commits
Author SHA1 Message Date
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 c2788a3244 Updated patches from Chromium 93.0.4542.2 to Chromium 93.0.4549.4. 2021-08-18 10:53:10 -04:00
Mario Sanchez Prada 15ecc5434d Updated patches from Chromium 93.0.4535.3 to Chromium 93.0.4542.2. 2021-08-18 10:43:12 -04:00
Mario Sanchez Prada d843ae0aed Updated patches from Chromium 88.0.4324.152 to Chromium 89.0.4350.7. 2021-02-04 23:51:40 -05:00
mkarolin 0c6cd8a871 Updated patches from Chromium 88.0.4298.5 to Chromium 88.0.4302.0. 2020-12-08 15:25:19 -05:00
mkarolin f92dbd254c Updated patches from Chromium 87.0.4278.0 to Chromium 87.0.4280.11. 2020-10-28 14:03:59 -04:00
samartnik 76f9bd1054 [Android] AndroidSyncSettings ctor changed
Chromium changes:
https://chromium.googlesource.com/chromium/src/+/e61a284712dafc93e2edc3d1f408e0721093ee89

Adapt SyncTestRule to allow AndroidSyncSettings to depend on PSS

Problem:
AndroidSyncSettings (ASS) will soon depend on ProfileSyncService (PSS),
particularly in its constructor. Although this is is fine in production
code, SyncTestRule poses two issues for this setup on test code.
- ASS is created before a fake PSS provided by tests can be injected.
This is a problem because the initial state of PSS will be relevant to
the constructor logic of ASS, so we need to be able to fake this initial
state to write good tests.
- ASS is created before the JNI loads in startMainActivityForSyncTest().
For tests that don't provide a fake PSS, ASS will then attempt to talk
to the real PSS before JNI is loaded, causing an error.

Solution:
When SyncTestRule creates an ASS, the goal is actually just to fake one
of its internal dependencies, SyncContentResolverDelegate. In this
CL, we convert SyncContentResolverDelegate into a singleton. In this way,
a fake for this object can be injected without needing to early construct
ASS*. Furthermore, JNI is loaded earlier so that the rule can safely use
tools like FakeServer and FakeProfileSyncService.

* Note that constructing after startMainActivityForSyncTest() is not an
option because there's already code talking to ASS when this function
is running.

Bug: 1125622
2020-10-28 14:03:59 -04:00
mkarolin 673155d0f8 Conflict-resolved patches from Chromium 87.0.4270.0 to Chromium 87.0.4278.0. 2020-10-28 14:03:58 -04:00
mkarolin 329aff0675 Updated patches from Chromium 87.0.4263.3 to Chromium 87.0.4270.0. 2020-10-28 14:00:05 -04:00
Mario Sanchez Prada d2faa51130 Updated patches from Chromium 87.0.4259.3 to Chromium 87.0.4263.3.
This CL touches only those patches which updated cleanly, conflicts
resolution to be handled in a follow-up patch.
2020-10-28 14:00:05 -04:00
Mario Sanchez Prada cce5fccd4c Updated patches from Chromium 87.0.4250.0 to Chromium 87.0.4259.3 2020-10-28 13:59:42 -04:00
Mario Sanchez Prada d65fe20581 Update patches from Chromium 86.0.4240.111 to Chromium 87.0.4250.0. 2020-10-28 13:59:07 -04:00
mkarolin 3d7a8e7007 Updated patches from Chromium 86.0.4240.22 to Chromium 86.0.4240.30. 2020-09-11 14:49:16 -04:00
mkarolin 6becbbf7af Update patches from Chromium 86.0.4205.3 to Chromium 86.0.4214.2. 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 86a3b38531 [Android] AndroidSyncSettings moved to org.chromium.chrome.browser.sync.
Chromium change:

https://chromium.googlesource.com/chromium/src/+/0ddc774501addfbafeee70ff5f30a276f869d7bb

commit 0ddc774501addfbafeee70ff5f30a276f869d7bb
Author: Boris Sazonov <bsazonov@chromium.org>
Date:   Thu Jun 25 17:15:49 2020 +0000

    [Android] Move AndroidSyncSettings to org.chromium.chrome.browser.sync

    Moves AndroidSyncSettings from org.chromium.components.sync to
    org.chromium.chrome.browser.sync. There are several reasons for this
    move:
    1. AndroidSyncSettings is a singleton that interacts with Android sync
       settings, so it is better suited for browser/sync.
    2. AndroidSyncSettings interacts with ChromeSigninController that is
       going to be removed in favor of IdentityManager.

    Bug: 1093998
2020-08-06 17:31:58 -04:00