Chromium change:
https://chromium.googlesource.com/chromium/src.git/+/00bfce0c7635650f36baa1b335aa17c72cde1e70
Fix a bug Chrome is showing 2 rows of most visited tiles when query tiles are enabled
On small screen device, only 1 row of most visited tile should show when
query tiles are enabled.
However, TileSection hard coded the number of rows to 2. So even though
Chrome reduced most visited tiles to 4, it could still end up showing in
2 rows if the screen can only accommodate 3 tiles in a row.
BUG=1166388
(cherry picked from commit e97d0ce51b15cdb72da9a0ae67d9ceac1d08f646)
Chromium change:
https://chromium.googlesource.com/chromium/src.git/+/2336b6557478c544a81650258aab4b0e7af49c78
commit 2336b6557478c544a81650258aab4b0e7af49c78
Author: Jinsuk Kim <jinsukkim@chromium.org>
Date: Mon Jan 11 01:13:17 2021 +0000
Toolbar: Move BottomControls to modularized target
This CL moves the classes for BottomControls MVC component plus
its layout xml to chrome/browser/ui/android/toolbar/.
Following dependencies on chrome_java were removed:
- ShareDelegate - was not in use.
- TabGroupUi - split to BottomControlsContentDelegate and extend
from it.
Bug: 1127732
Chromium change:
https://chromium.googlesource.com/chromium/src/+/eafd059d9f7f4656f7110349fa9ffd221dfae93c
Toolbar: TopUiThemeColorProvider
A ThemeColorProvider for top UI (TopUiThemeColorProvider)
replaces TabThemeColorProvider, and gets moved to a modularized
target chrome/browser/ui/android/theme. This is a new source of
truth for toolbar/top part of Chrome UI theme color.
Previously TabThemeColorHelper played the role, but now it was
redefined to provide the theme color coming from tab
contents only. TopUiThemeColorProvider puts together all
the signals and decides the final theme color to be used for
top UI.
Bug: 1127732
fixes brave-browser#13512
Chromium change:
https://chromium.googlesource.com/chromium/src/+/12166216f9de6248ae936722a3fac423349eb1e1
Make AndroidSyncSettings.isSyncEnabled() internal to SyncController
This method was one of the big villains of AndroidSyncSettings, because
it was easy to use it instead of some ProfileSyncService API. This CL
makes it internal to SyncController, avoiding new uses. A warning is
added to isChromeSyncEnabled() to prevent developers from thinking the
method has just been renamed. Extra care is taken not to weaken the
tests in AndroidSyncSettingsTest, replacing expectations on this method
accordingly.
Bug: 1107904
Chromium change:
https://chromium.googlesource.com/chromium/src/+/9702e4fdd42dbc7927f094a56e0c49109860dff3
Remove material design exclusions
Exclusion of these material resources prevents the HaTS Next AAR from
compiling so re-including them now. Some of these resources are already
included downstream, so the real expected binary size impact is ~32K.
Binary-Size: Size increase is unavoidable (see above).
Bug: 1151370
This prevents from build errors like
../../chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java:627:
error: incompatible types: Object cannot be converted to Profile
Profile profile = mTabModelProfileSupplier.get();
Chromium change:
https://chromium.googlesource.com/chromium/src/+/eab0477e8eb9d5d838c9386140bce3182948a777
Migrate toolbar and omnibox to use LayoutStateObserver
This CL migrates the following package to use LayoutStateObserver:
* org.chromium.chrome.browser.omnibox.*
* org.chromium.chrome.browser.toolbar.*
Change-Id: Ica63de41ae8cae0b402da2e0d94d3c52a728f034
Bug: 1108496
Error fixed:
ERROR at //brave/build/android/BUILD.gn:45:1: Unknown function.
java_strings_grd("android_brave_strings_grd") {
^---------------
See //brave/BUILD.gn:87:11: which caused the file to be included.
deps = ["build/$target_os:brave"]
Chromium change:
https://chromium.googlesource.com/chromium/src/+/a65f80f87cc151be897131164e015d37bea1d155
[ToolbarMVC] Remove direct MenuButton interactions from Tabswitcher
This only requires giving TabSwitcherModeTTCoordinatorPhone a
MenuButtonCoordinator and setting the MenuButton view once inflation happens.
The logic removed (tinting, setting the onClick/accessibilityDelegate)
is now handled internally by MenuButtonCoordinator/MenuButton.
Bug: 1086676
Chromium change:
https://chromium.googlesource.com/chromium/src/+/3cd99aa27b47b24b44133959607b35380ed4633f
[Android] Fix material design package in resource exclusion regexes
Downstream material design targets are named slightly differently than
upstream material design. Remove the final "_material" from the regex in
order to also match downstream package names.
TBR=just bringing weblayer exclusions in line with chrome's
Bug: 1110346