* Move asset discovery logic from JsonRpcService to new
AssetDiscoveryManager class
* Add DiscoverAssetsOnAllOnRefresh and
DiscoverAssetsOnAllSupportedChains APIs to
AssetDiscoveryManager, and expose
DiscoverAssetsOnAllOnRefresh to frontend via mojo
API on BraveWalletService
* Add AccountsAdded event to KeyringService emitted
when a new account is added via any method (hardware
import, private key import, etc) that is triggers the
AssetDiscoveryManager
* Add kBraveWalletAssetsLastDiscoveredAt and
kBraveWalletNextAssetDiscoveryFromBlocks prefs to
manage asset discovery state including rate limiting
and last successful asset search per coin type /
chain ID
Chromium change:
https://github.com/chromium/chromium/commit/81300279c801ec659aa9e9417b0a930db4a06974
[Toolbar] Refactor ToolbarPhone's tab switcher logic
There are three notable changes here:
1. ToolbarPhone is no longer hidden when entering the tab switcher;
it's only hidden once the transition to the tab switcher finishes.
2. The tab switcher isn't treated as "in overview and showing omniox"
because a) the omnibox isn't shown in this mode and b) this causes
visual inconsistencies - e.g. hidden buttons, "search or type web
address" as the url bar text instead of the url.
3. We suppress captures when entering or in tab switcher mode, since we
no longer need the capture in this mode.
(cherry picked from commit b6991fa)
Bug: 1360307
Chromium change:
https://github.com/chromium/chromium/commit/65c903d7aa0c4500b8cbfe475951a567125700d8
Suppress top toolbar captures on touch.
Plumbs touch/scroll events from CompositorViewHolder to the top
toolbar adapter. This captures to be blocked during scroll. In order
to prevent old captures from being shown during this window, on demand
controls locking is used. This must be done as fast as possible, when
the touch starts, not when the render frame is being created,
otherwise artifacts are visible.
(cherry picked from commit 6136f92)
Bug: 1374427
Chromium change:
https://github.com/chromium/chromium/commit/dceef00f26a0a2cfefbca89fd7655a0a26427133
[Omnibox] Change toolbar and locationbar color when dropdown is scroll
There is a color change applied to the top toolbar and status bar from
Surface 1 to surface 2 when users scroll down the Omnibox dropdown list.
(cherry picked from commit 0e206d1)
Bug: 1375889