Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade from Chromium 99 to Chromium 100 #12483

Merged
merged 125 commits into from
Mar 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
125 commits
Select commit Hold shift + click to select a range
e56d555
Update from Chromium 99.0.4844.51 to 100.0.4867.0.
mariospr Mar 1, 2022
e0424bf
AndroidSyncSettings removed
emerick Feb 7, 2022
c1d8543
Conflict-resolved patches from Chromium 99.0.4844.51 to 100.0.4867.0.
emerick Feb 7, 2022
80fca4e
NativeTheme::GetSystemColor machinery removed
emerick Feb 8, 2022
c44a84d
Updated patches from Chromium 99.0.4844.51 to 100.0.4867.0.
emerick Feb 9, 2022
674b9a5
Updated strings for Chromium 100.0.4867.0.
emerick Feb 9, 2022
f8630ee
Remove ALLOW_UNUSED macros
emerick Feb 9, 2022
d66588c
Replace heap.h with garbage_collected.h
emerick Feb 9, 2022
92f3873
Remove ignore_result.h
emerick Feb 9, 2022
5044f92
Adapt to tab muting changes
emerick Feb 10, 2022
6a62016
Adapt to changes in DoH template group parsing
emerick Feb 10, 2022
7e4c5ba
Adapt to removal of StoragePartitionId
emerick Feb 10, 2022
ea2ef93
Adapt to updater state change in the component updater
emerick Feb 10, 2022
f8bd779
Adapt to changes in partitioned/unpartitioned cross-site cookies
emerick Feb 10, 2022
a7a6fc2
Shifted Brave resource ids higher
emerick Feb 11, 2022
11d3aab
Adapt to new location of test_protocol_handler_registry_delegate.cc
mariospr Feb 11, 2022
bc4543b
Remove unneeded dependencies on //extensions/common that break the build
mariospr Feb 11, 2022
1c8a9e2
Use [[maybe_unused]] instead of ALLOW_UNUSED_LOCAL when needed
mariospr Feb 11, 2022
84cbbcd
Rename IsPrivacySandboxAllowed() calls to IsPrivacySandboxEnabled()
mariospr Feb 11, 2022
0cfb069
Pass content::InterestGroupManager* parameter of PrivacySandboxService
mariospr Feb 11, 2022
0074c4e
Add missing include for metrics_reporting_default_state.h
emerick Feb 11, 2022
a7e028c
Add missing include for net/base/features.h
emerick Feb 11, 2022
1fbd5a1
Privacy Sandbox Settings moved into components/
emerick Feb 14, 2022
01be5f9
Explicitly specified path for llvm_ar in cargo
samartnik Feb 15, 2022
2795156
[Android] SplitCompatUtils moved into //base
samartnik Feb 15, 2022
d3ed845
[Android] ACTION_SYNC_SETTINGS was removed
samartnik Feb 15, 2022
8f71c5f
[Android] Color changes for default_bg_color_dark relanded
samartnik Feb 16, 2022
380999d
[Android] Data reduction setting was removed
samartnik Feb 16, 2022
c477eab
[Android] New c-tor signatures for various classes
samartnik Feb 16, 2022
f3c190a
[Android] AndroidSyncSettings was removed
samartnik Feb 17, 2022
7e57102
Update from Chromium 100.0.4867.0 to 100.0.4878.0.
emerick Feb 14, 2022
13218e1
Conflict-resolved patches from Chromium 100.0.4867.0 to Chromium 100.…
emerick Feb 15, 2022
da2163b
Adapt to simplified check of Xcode version
emerick Feb 15, 2022
34f1ddd
Updated patches from Chromium 100.0.4867.0 to Chromium 100.0.4878.0.
emerick Feb 15, 2022
191ff30
Updated strings for Chromium 100.0.4878.0.
emerick Feb 15, 2022
54ebba2
Replace GetList/TakeList with GetListDeprecated/TakeListDeprecated
emerick Feb 15, 2022
76a95ab
Adapt to removal of FLoC
emerick Feb 15, 2022
db57bfc
Include field_trial_params.h as necessary
emerick Feb 15, 2022
eec5240
Update signature of SetCanonicalCookieAsync to include new result par…
emerick Feb 15, 2022
73e8922
Add missing include for base/time/time.h
emerick Feb 15, 2022
2db0c9b
Add missing include for base/notreached.h
emerick Feb 15, 2022
68c076b
Add missing include for net/http/http_util.h
emerick Feb 16, 2022
ddf4de8
Update function signature for HandleRelaunch
emerick Feb 16, 2022
7e3b11a
Move extension API test files to their corresponding api/ dirs
emerick Feb 16, 2022
4abfa7e
Adapt to changes in TriggerPopup
emerick Feb 16, 2022
9d18c8a
Adapt to simplified flow of programmatically showing popups
emerick Feb 16, 2022
64ba97a
Use new extension popup types
emerick Feb 16, 2022
243306a
Delete Greaselion extension dirs on task runner to avoid blocking on …
emerick Feb 16, 2022
1afdff5
Remove const from PromoteUpdater function signature
emerick Feb 16, 2022
b0e221e
Disable the kDestroyProfileOnBrowserClose feature
emerick Feb 17, 2022
ec9c72e
Update from Chromium 100.0.4878.0 to 100.0.4892.0.
mariospr Feb 21, 2022
d84cc1d
Updated patches from Chromium 100.0.4878.0 to Chromium 100.0.4892.0.
mariospr Feb 21, 2022
9fc7afd
Conflict-resolved patches from Chromium 100.0.4878.0 to Chromium 100.…
mariospr Feb 21, 2022
22d134b
Adapt to new constructor of TabStripmodel
mariospr Feb 21, 2022
6d4bc05
Updated strings for Chromium 100.0.4892.0.
mariospr Feb 21, 2022
031ca2b
Adapt to rename of GN variable: locales -> platform_pak_locales
mariospr Feb 21, 2022
29d9706
Rename kGoogleAccountActivityControlsURLInPrivacy{Review->Guide}
mariospr Feb 21, 2022
ff74480
IWYU: base/time.h
mariospr Feb 21, 2022
dce38b5
IWYU: base/observer_list.h
mariospr Feb 21, 2022
3e8eeb9
IWYU: base/observer_list_types.h
mariospr Feb 21, 2022
61de25f
Adapt to change in parameters for AddUiColorMixer()
mariospr Feb 21, 2022
378d787
Adapt to migration of sync-related functions and constants
mariospr Feb 21, 2022
e2a74d7
Adapt to having a callback parameter in PopUp-related methods
mariospr Feb 21, 2022
3dbdb32
Adapt to new signature of FilePath::GetComponents()
mariospr Feb 21, 2022
ffee906
Adapt to new signature of ComponentInstaller::Register()
mariospr Feb 21, 2022
511e941
Add incognito_profile param to BravePrivacySandboxSettings constructor
mariospr Feb 21, 2022
f36f041
Pull Boost Multiprecision library in to implement 256-bit integers
mariospr Feb 23, 2022
aea86e8
Remove public_deps from //brave/components/brave_wallet/browser
mariospr Feb 24, 2022
08c742f
Fix "declaration shadows a local variable [-Werror,-Wshadow]" error
mariospr Feb 24, 2022
16e723b
Add comments in EthSignTypedDataHelper
darkdh Feb 23, 2022
6c806ae
Fix Boost int256 precision
darkdh Feb 24, 2022
ddd16db
Limit the max and min value of int256_t to be 255 precision bit and 1…
darkdh Mar 2, 2022
70fa134
[Android] New c-tor signatures for java classes
samartnik Feb 22, 2022
1069fb2
New assert check was added for extensions_enabled
samartnik Feb 22, 2022
bee0135
[Android] New param for prepareLaunchPromoIfNeeded
samartnik Feb 23, 2022
d05ad9a
[Android] New c-tor for ResourceItem
samartnik Feb 23, 2022
bc5bd48
[Android] Updated Android sync setting
samartnik Feb 23, 2022
b9811c0
[iOS] IWYU: base/containers/stack.h
emerick Feb 24, 2022
44cf6ec
[iOS] Adapt to changes in OID constants
emerick Feb 24, 2022
9433405
[iOS] Rename constant kRootFolderNameKey -> kBookmarkBarFolderNameKey
emerick Feb 24, 2022
706ca48
[Android] Fixes for new lint version
samartnik Feb 25, 2022
ba2f871
[Android] Fixes for unit tests
samartnik Feb 25, 2022
1780219
Update from Chromium 100.0.4892.0 to 100.0.4896.12.
mariospr Feb 25, 2022
4068488
Updated patches from Chromium 100.0.4892.0 to Chromium 100.0.4896.12.
mariospr Feb 25, 2022
547e48a
Updated strings for Chromium 100.0.4896.12.
mariospr Feb 25, 2022
a885eeb
Adapt to relocation of web_app_shortcut_mac.mm
mariospr Feb 25, 2022
85fbcf3
Disable the "Manage devices link" feature now there is no feature flag
mariospr Feb 25, 2022
5d0291f
Adapt to the removal of Value::GetAsString()
mariospr Feb 25, 2022
b04c2f5
Adapt to removal of bool parameter |has_custom_color|
mariospr Feb 25, 2022
580e198
Adapt to removal of bool parameter |is_sticky|
mariospr Feb 25, 2022
700c1a6
Disable Raw sockets API by default via user preferences
mariospr Feb 25, 2022
4e0ddbe
Adapt to replacement of DnsOverHttpsServerConfig -> DnsOverHttpsConfig
mariospr Feb 25, 2022
a900c7a
Shift GRIT IDs to start after 45000 for Brave-specific resources
mariospr Feb 28, 2022
87aa45c
Increase ID reservation for //c/b/r/history/history_resources.grd
mariospr Mar 1, 2022
489a98b
[Android] HomeButton updated to ListMenuButton
samartnik Mar 2, 2022
3c3e87e
[Android] Removed obsolete patch
samartnik Mar 2, 2022
5e9a095
Update from Chromium 100.0.4896.12 to 100.0.4896.20.
emerick Mar 2, 2022
d59796b
Conflict-resolved patches from Chromium 100.0.4896.12 to Chromium 100…
emerick Mar 2, 2022
ba2561f
Updated patches from Chromium 100.0.4896.12 to Chromium 100.0.4896.20.
emerick Mar 2, 2022
ad6f745
Updated strings for Chromium 100.0.4896.20
emerick Mar 2, 2022
af5aacb
[Android] Fix for Toolbar Snapshot State
samartnik Mar 2, 2022
3b5cafe
[Android] Additional guards for web_applications headers
samartnik Mar 3, 2022
241a633
Also use Boost's multiprecision types for 128-bit (un)signed integers
mariospr Mar 4, 2022
318dcb2
Add @brave/deps-reviewers as GitHub CODEOWNER for third_party/boost/
mariospr Mar 4, 2022
e2c6337
Add overflow case to EthSignedTypedDataHelperUnitTest.EncodeField
darkdh Mar 4, 2022
924a3dd
[Android] Added READ_SYNC_SETTINGS permission
samartnik Mar 4, 2022
8e31b65
[Android] Disabled dynamic colors
samartnik Mar 7, 2022
98fd731
[Android] Fixed tint for brave shields
samartnik Mar 7, 2022
81b358f
Use new location for Linux app icons
emerick Mar 8, 2022
6a8e88a
[Android] Updated app icons
samartnik Mar 8, 2022
a005dd2
[Android] Updated app icons II
samartnik Mar 8, 2022
d98d8db
Disable kPrivacySandboxApisEnabledV2 privacy sandbox API preference
emerick Mar 8, 2022
d414dd9
Delete temporary extension dirs explicitly on shutdown instead of usi…
emerick Mar 10, 2022
8a435b3
Migrate away from GetListDeprecated/TakeListDeprecated
mariospr Mar 10, 2022
d6d4864
Update from Chromium 100.0.4896.20 to 100.0.4896.30.
emerick Mar 10, 2022
905f64b
Conflict-resolved patches from Chromium 100.0.4896.20 to Chromium 100…
emerick Mar 10, 2022
b539fb0
Updated patches from Chromium 100.0.4896.20 to Chromium 100.0.4896.30.
emerick Mar 10, 2022
67f2b61
Updated strings for Chromium 100.0.4896.30.
emerick Mar 10, 2022
4ebf607
Fix overly-aggressive string replacements and update scripts
emerick Mar 11, 2022
0d2cde6
[Android] Fixed background color for bottom tab groups toolbar
samartnik Mar 11, 2022
effc961
Fixed symbols generating on Android
AlexeyBarabash Mar 16, 2022
c03fbc2
Update from Chromium 100.0.4896.30 to Chromium 100.0.4896.46.
emerick Mar 16, 2022
3189bea
Conflict-resolved patches from Chromium 100.0.4896.30 to Chromium 100…
emerick Mar 16, 2022
56d2a8c
Updated patches from Chromium 100.0.4896.30 to Chromium 100.0.4896.46.
emerick Mar 16, 2022
a18bac3
Updated strings for Chromium 100.0.4896.46.
emerick Mar 16, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ patches/*.java.patch @samartnik
# Bitcoin-core
third_party/bitcoin-core/BUILD.gn @brave/sec-team

# Boost imports (i.e. config, multiprecision)
third_party/boost @brave/deps-reviewers

# Network auditor
browser/net/brave_network_audit_allowed_lists.h @brave/sec-team

Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ patches/**/*.patchinfo
/third_party/argon2/src
/third_party/ethash/src
/third_party/bitcoin-core/src
/third_party/boost/config
/third_party/boost/multiprecision
/third_party/rust/cxx
*.xcodeproj
*.swp
Expand Down
29 changes: 19 additions & 10 deletions BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,21 @@ if (!is_ios) {
branding_dir = "//chrome/app/theme/$branding_path_component"
copy("theme_files") {
visibility = [ ":*" ]
sources = [
"$branding_dir/product_logo_128_beta.png",
"$branding_dir/product_logo_128_dev.png",
"$branding_dir/product_logo_128_development.png",
"$branding_dir/product_logo_128_nightly.png",
]
if (is_linux) {
sources = [
"$branding_dir/linux/product_logo_128_beta.png",
"$branding_dir/linux/product_logo_128_dev.png",
"$branding_dir/linux/product_logo_128_development.png",
"$branding_dir/linux/product_logo_128_nightly.png",
]
} else {
sources = [
"$branding_dir/product_logo_128_beta.png",
"$branding_dir/product_logo_128_dev.png",
"$branding_dir/product_logo_128_development.png",
"$branding_dir/product_logo_128_nightly.png",
]
}
outputs = [ "$root_out_dir/installer/theme/{{source_file_part}}" ]
}

Expand Down Expand Up @@ -221,7 +230,7 @@ if (!is_mac && !is_android && !is_ios) {
deps = [ "//chrome:packed_resources" ]

sources = []
foreach(locale, locales) {
foreach(locale, platform_pak_locales) {
sources += [ "$root_out_dir/locales/$locale.pak" ]
}
outputs = [ "$brave_dist_dir/locales/{{source_file_part}}" ]
Expand All @@ -235,7 +244,7 @@ if (!is_mac && !is_android && !is_ios) {
]

public_deps = []
foreach(locale, locales) {
foreach(locale, platform_pak_locales) {
# public_deps is used intentionaly because ":create_dist_zip" needs the all dependency
# of all locale files.
public_deps += [
Expand All @@ -245,7 +254,7 @@ if (!is_mac && !is_android && !is_ios) {
}
}

foreach(locale, locales) {
foreach(locale, platform_pak_locales) {
copy("brave_rewards_locales_${locale}") {
deps = [ "//brave/components/brave_rewards/resources/extension:locales_$locale" ]

Expand Down Expand Up @@ -410,7 +419,7 @@ action("create_dist_zips") {
inputs += get_target_outputs(":brave_dist_resources")
inputs += get_target_outputs(":brave_locale_dist_resources")
if (enable_extensions) {
foreach(locale, locales) {
foreach(locale, platform_pak_locales) {
inputs += get_target_outputs(":brave_shields_locales_${locale}")
inputs += get_target_outputs(":brave_rewards_locales_${locale}")
}
Expand Down
2 changes: 2 additions & 0 deletions DEPS
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ deps = {
"third_party/ethash/src": "https://github.com/chfast/ethash.git@e4a15c3d76dc09392c7efd3e30d84ee3b871e9ce",
"third_party/bitcoin-core/src": "https://github.com/bitcoin/bitcoin.git@95ea54ba089610019a74c1176a2c7c0dba144b1c",
"third_party/argon2/src": "https://github.com/P-H-C/phc-winner-argon2.git@62358ba2123abd17fccf2a108a301d4b52c01a7c",
"third_party/boost/config": "https://github.com/boostorg/config.git@e108255ffb5d2557ed3398b3fc575a2e9fd434cc",
"third_party/boost/multiprecision": "https://github.com/boostorg/multiprecision.git@db0bb4d2d2611605b7ce97220fb9973fd7e072c9",
}

recursedeps = [
Expand Down
1 change: 0 additions & 1 deletion android/brave_java_sources.gni
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,6 @@ brave_java_sources = [
"../../brave/android/java/org/chromium/chrome/browser/site_settings/DesktopModePreferences.java",
"../../brave/android/java/org/chromium/chrome/browser/site_settings/PlayYTVideoInBrowserPreferences.java",
"../../brave/android/java/org/chromium/chrome/browser/suggestions/tile/BraveTileView.java",
"../../brave/android/java/org/chromium/chrome/browser/sync/BraveAndroidSyncSettings.java",
"../../brave/android/java/org/chromium/chrome/browser/sync/BraveSyncDevices.java",
"../../brave/android/java/org/chromium/chrome/browser/sync/settings/BraveManageSyncSettings.java",
"../../brave/android/java/org/chromium/chrome/browser/tabmodel/BraveTabCreator.java",
Expand Down
1 change: 1 addition & 0 deletions android/features/tab_ui/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ android_library("java") {
"//chrome/browser/preferences:java",
"//chrome/browser/tabmodel:java",
"//chrome/browser/ui/android/theme:java",
"//chrome/browser/ui/android/toolbar:java",
"//chrome/browser/ui/messages/android:java",
"//components/browser_ui/bottomsheet/android:java",
"//components/browser_ui/widget/android:java",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import android.app.Activity;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;

import androidx.annotation.NonNull;

Expand All @@ -22,8 +23,10 @@
import org.chromium.chrome.browser.lifecycle.ActivityLifecycleDispatcher;
import org.chromium.chrome.browser.share.ShareDelegate;
import org.chromium.chrome.browser.tabmodel.IncognitoStateProvider;
import org.chromium.chrome.browser.tabmodel.IncognitoStateProvider.IncognitoStateObserver;
import org.chromium.chrome.browser.tabmodel.TabCreatorManager;
import org.chromium.chrome.browser.tabmodel.TabModelSelector;
import org.chromium.chrome.browser.toolbar.bottom.BottomControlsCoordinator;
import org.chromium.chrome.browser.ui.messages.snackbar.SnackbarManager;
import org.chromium.chrome.tab_ui.R;
import org.chromium.components.browser_ui.bottomsheet.BottomSheetController;
Expand All @@ -35,6 +38,10 @@ public class BraveTabGroupUiCoordinator extends TabGroupUiCoordinator {
// To delete in bytecode, members from parent class will be used instead.
private TabGroupUiToolbarView mToolbarView;

// Own members.
private IncognitoStateProvider mIncognitoStateProvider;
private IncognitoStateObserver mIncognitoStateObserver;

public BraveTabGroupUiCoordinator(@NonNull Activity activity, @NonNull ViewGroup parentView,
@NonNull IncognitoStateProvider incognitoStateProvider,
@NonNull ScrimCoordinator scrimCoordinator,
Expand All @@ -55,6 +62,8 @@ public BraveTabGroupUiCoordinator(@NonNull Activity activity, @NonNull ViewGroup
dynamicResourceLoaderSupplier, tabCreatorManager, shareDelegateSupplier,
overviewModeBehaviorSupplier, snackbarManager);

mIncognitoStateProvider = incognitoStateProvider;

assert mToolbarView != null : "Make sure mToolbarView is properly patched in bytecode.";
ChromeImageView fadingEdgeStart =
mToolbarView.findViewById(R.id.tab_strip_fading_edge_start);
Expand All @@ -73,4 +82,30 @@ public BraveTabGroupUiCoordinator(@NonNull Activity activity, @NonNull ViewGroup
toolbarRightButton.setImageResource(R.drawable.brave_new_group_tab);
}
}

@Override
public void initializeWithNative(Activity activity,
BottomControlsCoordinator.BottomControlsVisibilityController visibilityController) {
super.initializeWithNative(activity, visibilityController);

mIncognitoStateObserver = (isIncognito) -> {
if (!isIncognito) {
// Make sure that background color match bottom toolbar color.
LinearLayout mainContent = mToolbarView.findViewById(R.id.main_content);
assert mainContent != null : "Something has changed in upstream!";
if (mainContent != null) {
mainContent.setBackgroundColor(
activity.getResources().getColor(R.color.dialog_bg_color_baseline));
}
}
};
mIncognitoStateProvider.addIncognitoStateObserverAndTrigger(mIncognitoStateObserver);
}

@Override
public void destroy() {
super.destroy();

mIncognitoStateProvider.removeObserver(mIncognitoStateObserver);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

import androidx.annotation.Nullable;

import org.chromium.chrome.browser.feed.sort_ui.FeedOptionsCoordinator;
import org.chromium.ui.modelutil.PropertyModel;

public class BraveFeedSurfaceMediator extends FeedSurfaceMediator {
Expand All @@ -19,9 +20,10 @@ public class BraveFeedSurfaceMediator extends FeedSurfaceMediator {

BraveFeedSurfaceMediator(FeedSurfaceCoordinator coordinator, Context context,
@Nullable SnapScrollHelper snapScrollHelper, PropertyModel headerModel,
@FeedSurfaceCoordinator.StreamTabId int openingTabId,
FeedActionDelegate actionDelegate) {
super(coordinator, context, snapScrollHelper, headerModel, openingTabId, actionDelegate);
@FeedSurfaceCoordinator.StreamTabId int openingTabId, FeedActionDelegate actionDelegate,
FeedOptionsCoordinator optionsCoordinator) {
super(coordinator, context, snapScrollHelper, headerModel, openingTabId, actionDelegate,
optionsCoordinator);
}

@Override
Expand Down
18 changes: 5 additions & 13 deletions android/java/apk_for_test.flags
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,6 @@
# needed for checking of existence for bytecode manipulation
-keepnames class org.chromium.chrome.browser.settings.MainSettings

-keep class org.chromium.chrome.browser.sync.AndroidSyncSettings {
*** updateCachedSettings(...);
*** setChromeSyncEnabled(...);
*** mIsSyncable;
*** mChromeSyncEnabled;
*** mMasterSyncEnabled;
}

-keep class org.chromium.chrome.browser.bookmarks.BookmarkBridge {
*** extensiveBookmarkChangesBeginning(...);
*** extensiveBookmarkChangesEnded(...);
Expand Down Expand Up @@ -66,7 +58,7 @@
-keep class org.chromium.chrome.browser.sync.settings.ManageSyncSettings {
*** mGoogleActivityControls;
*** mSyncEncryption;
*** mManageSyncData;
*** mReviewSyncData;
*** mSyncPaymentsIntegration;
*** mTurnOffSync;
}
Expand Down Expand Up @@ -203,14 +195,14 @@
}

-keep class org.chromium.chrome.browser.toolbar.bottom.BottomControlsMediator {
public <init>(...);
<init>(...);
*** mBottomControlsHeight;
*** mModel;
*** mBrowserControlsSizer;
}

-keep class org.chromium.chrome.browser.toolbar.bottom.BraveBottomControlsMediator {
public <init>(...);
<init>(...);
}

-keep class org.chromium.chrome.browser.query_tiles.QueryTileSection {
Expand Down Expand Up @@ -336,14 +328,14 @@
}

-keep class org.chromium.chrome.browser.feed.FeedSurfaceMediator {
public <init>(...);
<init>(...);
*** mCoordinator;
*** mSnapScrollHelper;
*** destroyPropertiesForStream(...);
}

-keep class org.chromium.chrome.browser.feed.BraveFeedSurfaceMediator {
public <init>(...);
<init>(...);
*** mCoordinator;
*** mSnapScrollHelper;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ public void OnStartProcess() {
public void showLikePopDownMenu(int xOffset, int yOffset) {
this.preShow();

this.window.setAnimationStyle(R.style.OverflowMenuAnim);
this.window.setAnimationStyle(R.style.EndIconMenuAnim);

if (SysUtils.isLowEndDevice()) {
this.window.setAnimationStyle(0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1217,4 +1217,10 @@ public void initializeCompositor() {
BraveTabUiFeatureUtilities.maybeOverrideEnableTabGroupAutoCreationPreference(
ContextUtils.getApplicationContext());
}

@Override
protected boolean supportsDynamicColors() {
// Dynamic colors cause styling issues with Brave theme.
return false;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ protected void attachBaseContext(Context context) {
} else {
context = SplitCompatApplication.createChromeContext(context);
}
mImpl = (Impl) SplitCompatUtils.newInstance(context, mServiceClassName);
mImpl = (Impl) BundleUtils.newInstance(context, mServiceClassName);
mImpl.setService(this);
super.attachBaseContext(context);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public BraveTalkOptInPopup(View anchor, BraveTalkOptInPopupListener listener) {
}

public void showLikePopDownMenu() {
mWindow.setAnimationStyle(R.style.OverflowMenuAnim);
mWindow.setAnimationStyle(R.style.EndIconMenuAnim);

if (SysUtils.isLowEndDevice()) {
mWindow.setAnimationStyle(0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ public void showLikePopDownMenu() {
mPopupWindow.setFocusable(true);
mPopupWindow.setOutsideTouchable(true);

mPopupWindow.setAnimationStyle(R.style.OverflowMenuAnim);
mPopupWindow.setAnimationStyle(R.style.EndIconMenuAnim);

if (SysUtils.isLowEndDevice()) {
mPopupWindow.setAnimationStyle(0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ private void updateBravePreferences() {
// Below prefs are removed from main settings.
removePreferenceIfPresent(MainSettings.PREF_SYNC_PROMO);
removePreferenceIfPresent(MainSettings.PREF_SIGN_IN);
removePreferenceIfPresent(MainSettings.PREF_DATA_REDUCTION);
removePreferenceIfPresent(MainSettings.PREF_SEARCH_ENGINE);
removePreferenceIfPresent(MainSettings.PREF_UI_THEME);
removePreferenceIfPresent(MainSettings.PREF_DOWNLOADS);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1369,11 +1369,8 @@ public void run() {
}

private void setSyncDoneLayout() {
if (SyncSettingsUtils.getSyncError() == SyncError.ANDROID_SYNC_DISABLED) {
mBraveSyncBtnAndroidSyncSettings.setVisibility(View.VISIBLE);
} else {
mBraveSyncBtnAndroidSyncSettings.setVisibility(View.GONE);
}
// We probably don't need this UI element anymore.
mBraveSyncBtnAndroidSyncSettings.setVisibility(View.GONE);

if (!deviceInfoObserverSet) {
BraveSyncDevices.get().addDeviceInfoChangedListener(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

package org.chromium.chrome.browser.settings;

import android.annotation.SuppressLint;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
Expand Down Expand Up @@ -46,6 +47,7 @@ public class BraveWebrtcPolicyPreference
protected static final String FALLBACK_SUPPORT_URL =
"https://support.brave.com/hc/en-us/articles/360017989132-How-do-I-change-my-Privacy-Settings-#webrtc";

@SuppressLint("WrongConstant")
public BraveWebrtcPolicyPreference(Context context, AttributeSet attrs) {
super(context, attrs);

Expand Down Expand Up @@ -96,6 +98,7 @@ public void onClick(View v) {
}

@Override
@SuppressLint("WrongConstant")
public void onCheckedChanged(RadioGroup group, int checkedId) {
for (int i = 0; i < WebrtcPolicy.NUM_ENTRIES; i++) {
if (mButtons.get(i).isChecked()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,16 @@
import org.chromium.chrome.browser.preferences.BravePreferenceKeys;
import org.chromium.chrome.browser.preferences.SharedPreferencesManager;
import org.chromium.chrome.browser.tab.Tab;
import org.chromium.chrome.browser.tabmodel.TabModelSelector;
import org.chromium.components.browser_ui.bottomsheet.BottomSheetController;

public class BraveShareDelegateImpl extends ShareDelegateImpl {
public BraveShareDelegateImpl(BottomSheetController controller,
ActivityLifecycleDispatcher lifecycleDispatcher, Supplier<Tab> tabProvider,
ShareSheetDelegate delegate, boolean isCustomTab) {
super(controller, lifecycleDispatcher, tabProvider, delegate, isCustomTab);
Supplier<TabModelSelector> tabModelSelectorProvider, ShareSheetDelegate delegate,
boolean isCustomTab) {
super(controller, lifecycleDispatcher, tabProvider, tabModelSelectorProvider, delegate,
isCustomTab);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ public PopupWindow showPopupMenu(View anchorView) {
//Set the location of the window on the screen
popupWindow.showAsDropDown(anchorView, 0, 0);
popupWindow.setInputMethodMode(PopupWindow.INPUT_METHOD_NOT_NEEDED);
popupWindow.setAnimationStyle(R.style.OverflowMenuAnim);
popupWindow.setAnimationStyle(R.style.EndIconMenuAnim);

// Turn off window animations for low end devices, and on Android M, which has built-in menu
// animations.
Expand Down Expand Up @@ -579,7 +579,7 @@ public void onClick(View view) {
ImageView mBlockShieldsIcon = mShieldsLayout.findViewById(R.id.toggle_favicon);
mBlockShieldsIcon.setImageResource(R.drawable.ic_chevron_right);
mBlockShieldsIcon.setColorFilter(
mContext.getResources().getColor(R.color.default_icon_color_tint_list));
mContext.getResources().getColor(R.color.default_icon_color_baseline));
TextView mBlockShieldsText = mShieldsLayout.findViewById(R.id.toggle_text);
mBlockShieldsText.setText(titleStringId);

Expand Down
Loading