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 125 to Chromium 126 #23233

Merged
merged 129 commits into from
May 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
129 commits
Select commit Hold shift + click to select a range
7f65207
Update from Chromium 125.0.6422.76 to Chromium 126.0.6478.17.
cdesouza-chromium Apr 19, 2024
a41c839
Conflict-resolved patches from Chromium 125.0.6422.76 to Chromium 126…
cdesouza-chromium Apr 19, 2024
c26e5b9
Update patches from Chromium 125.0.6422.76 to Chromium 126.0.6478.17.
cdesouza-chromium May 17, 2024
4a181cd
Updated strings for Chromium 126.0.6478.17.
cdesouza-chromium Apr 29, 2024
1b31816
Support `unsafe-buffers-usage` plugin with redirect_cc
cdesouza-chromium Apr 19, 2024
6d834ef
No need for `color_mixers.cc` CR2023 overrides
cdesouza-chromium Apr 19, 2024
4cb348d
`AXEventNotificationDetails` renamed and moved to ui
cdesouza-chromium Apr 19, 2024
b162dea
`tab_restore` namespace introduced
cdesouza-chromium Apr 19, 2024
ea910e9
`MockModelTypeChangeProcessor::Delete` updated
cdesouza-chromium Apr 19, 2024
97567ff
`gnrt` run for Chromium 126.0.6423.2
cdesouza-chromium Apr 20, 2024
ec2ecd3
GetLastUsedBrowserState is now renamed to reflect that it's deprecated
emerick Apr 22, 2024
640c459
`base::RefCountedMemory` using span-friendly interfaces
cdesouza-chromium Apr 29, 2024
a123002
`gnrt` run for Chromium 126.0.6439.0
cdesouza-chromium Apr 29, 2024
a1d73a8
[ui] `CalculatePreferredSize` args updated
cdesouza-chromium Apr 29, 2024
e6808c3
`CanEnterFullscreenModeForTab` arg list updated
cdesouza-chromium Apr 29, 2024
7bfe6e5
`RemoveAllBookmarks` requires a location arg
cdesouza-chromium Apr 29, 2024
4530905
Fixing unwanted substitutions with `webui_contents_wrapper.cc`
cdesouza-chromium Apr 29, 2024
921e35b
Missing restricted notice `MockPrivacySandboxDelegate` method
cdesouza-chromium Apr 29, 2024
4a77feb
`TrackingProtectionSettings` initialised with host content settings
cdesouza-chromium Apr 29, 2024
857f3c6
`MdTextButton::GetBgColorOverride` deprecated
cdesouza-chromium Apr 29, 2024
77a9c05
Mojo buffer api using `size_t` for size
cdesouza-chromium Apr 29, 2024
ab39c09
`kLegacyTechReportEnableCookieIssueReports` deleted
cdesouza-chromium Apr 29, 2024
8d506a9
`kSignedExchangeReportingForDistributors` deleted
cdesouza-chromium Apr 29, 2024
49a429f
`kCookieSettingsUiAlignment` deleted upstream
cdesouza-chromium Apr 29, 2024
d775887
`BraveHasAPIKeyConfigured` to be rellocated
cdesouza-chromium Apr 29, 2024
2b42792
IWYU fixes
cdesouza-chromium Apr 29, 2024
d56a949
`StringUTF8Adaptor` using `string_view`
cdesouza-chromium Apr 29, 2024
109b2ac
Adding `product_refresh.icon`
cdesouza-chromium Apr 29, 2024
3a8686f
`PasswordStoreInterface` removal methods ask location
cdesouza-chromium Apr 29, 2024
331d5d5
Remove safetyCheck route and safetyHub from brave://settings
emerick Apr 30, 2024
a90d256
Removed `isParentSurfaceShown` argument at `LogoMediator` ctor after …
AlexeyBarabash Apr 30, 2024
743753f
Changed `BraveToolbarManager.ctor` last argument from `appHeaderCoord…
AlexeyBarabash Apr 30, 2024
ee01b3a
Upstream's `NewTabPageLayout.setSearchProviderTopMargin` and `NewTabP…
AlexeyBarabash Apr 30, 2024
db6fd01
New parameter at `AutocompleteCoordinator.createViewProvider`
AlexeyBarabash Apr 30, 2024
8751ac3
New parameter at `ManageAccountDevicesLinkView.getSharingAccountInfo`
AlexeyBarabash Apr 30, 2024
208c992
Upstream removed NotificationSettingsBridge.getChannelStatus
AlexeyBarabash Apr 30, 2024
a2cb21d
Handle batched requests in GetUmaValueForRequests
emerick May 1, 2024
978d340
Make adjustments for upstream tests
emerick May 1, 2024
12dcd51
tabs::TabModel requires a non-null WebContents
emerick May 1, 2024
eeed635
Disable HoverModesAreCorrectlyConfigured browser test on Linux also
emerick May 1, 2024
67724d6
fixed formatting for java files
AlexeyBarabash May 1, 2024
82b202c
Revert "Disable HoverModesAreCorrectlyConfigured browser test on Linu…
emerick May 2, 2024
cffe635
Properly initialize hover_card_image_previews_enabled_ for tab thumbn…
emerick May 2, 2024
e19a0b6
Disabled adaptive toolbar button on Android
AlexeyBarabash May 2, 2024
50c8cb3
`SettingSource` class enum introduced
cdesouza-chromium Apr 30, 2024
9b9c48f
Tab discard interface names updated
cdesouza-chromium Apr 30, 2024
cb4aab5
`DownloadItemView` preferred size now passing an argument
cdesouza-chromium Apr 30, 2024
82d9639
`GenerateColorMap` lazily called by colour provider
cdesouza-chromium May 2, 2024
b8c0a20
`CalculatePreferredSize` with arg for `LabelButton`
cdesouza-chromium May 2, 2024
a5c3b58
`kForYouFre` feature flag removed; keep first run experience disabled
cdesouza-chromium May 2, 2024
ba287be
`HostContentSettingsMap` legacy enum updated
cdesouza-chromium May 2, 2024
09cd22a
Shutdown reason not part of `ResetEngine` public call
cdesouza-chromium May 2, 2024
c23fdb8
`read_anything` optimised UI failing to load brave css
cdesouza-chromium May 2, 2024
55c7563
Handle removal of kPreconnectAccountCapabilitiesBeforeSignIn feature …
emerick May 3, 2024
8aab1dd
Bump ModelTypeForHistograms::kMaxValue to account for kCookies
emerick May 3, 2024
54f0cd5
Handle removal of non-IsChromeRefresh2023() code from AppMenuModel
emerick May 4, 2024
89936b7
Adjust BookmarksSidePanelUI overrides to account for use of CreateWeb…
emerick May 4, 2024
d2c466a
Changed type of `contextualSearchManagerSupplier` at `TabbedRootUiCoo…
AlexeyBarabash May 4, 2024
4200947
Additional parameter at `TopToolbarCoordinator.ctor`
AlexeyBarabash May 4, 2024
eab53f1
Removed `IncognitoNewTabPageManager.shouldShowRevampedIncognitoNtp` m…
AlexeyBarabash May 4, 2024
54a7db4
Android needs `enable_feed_v2` build parameter
AlexeyBarabash May 6, 2024
6321072
Pull keystone_infobar_delegate.mm into our source tree
emerick May 8, 2024
35423a8
[Android] Diasble `AndroidHub` feature
samartnik May 8, 2024
0a0d36f
Pull in kColorToolbarSearchField colors
emerick May 8, 2024
dd4c19c
[cr-icon]: Fix icon overrides (#23525)
fallaciousreasoning May 9, 2024
bc38f1a
`UrlLoadObserver` has dropped source arg from ctor
cdesouza-chromium May 3, 2024
d2c2184
`kChromeRefresh2023Id` and other CR2023 flags deleted
cdesouza-chromium May 3, 2024
64206ff
Signing feature flags moved
cdesouza-chromium May 3, 2024
7610c4c
Revert "Adjust BookmarksSidePanelUI overrides to account for use of C…
cdesouza-chromium May 7, 2024
658a2b8
`views::CalculatePreferredSize` passing available size
cdesouza-chromium May 7, 2024
5454133
`kChromeRefresh2023NTB` flag removed
cdesouza-chromium May 7, 2024
9e8646e
Use `DisplayObserver::OnDisplaysRemoved`
cdesouza-chromium May 7, 2024
6bbd002
`ProfileWriter` must call `PersonalDataManager` via accessor
cdesouza-chromium May 7, 2024
345d946
`PrivacySandboxSettings` overrides updated with out block arg
cdesouza-chromium May 7, 2024
5df86e4
Simplified bookmarks flow deleted upstream
cdesouza-chromium May 7, 2024
a3dcbd9
`favicon::LargeIconWorker` ctor fallback arg added
cdesouza-chromium May 8, 2024
4c99b7c
Signin features were merged into signin_switches.cc
emerick May 10, 2024
971620a
Adjust BookmarksSidePanelUI overrides to account for use of DefaultWe…
emerick May 10, 2024
23e3041
ContentSettingException uses provider enum instead of strings
AlexeyBarabash May 10, 2024
9659c6e
Additional parameters at ToolbarLayout.initialize
AlexeyBarabash May 10, 2024
d84f260
Missing `//components/omnibox/common:features_java` dep for `BraveDro…
AlexeyBarabash May 10, 2024
46690e1
HomepageManager.isHomepageEnabled() is not static now
AlexeyBarabash May 10, 2024
11e16c3
Changed parameter at MultiInstanceManagerApi31.ctor
AlexeyBarabash May 10, 2024
8f6c310
TopToolbarCoordinator.ctor has no desktopWindowModeSupplier arg anymore
AlexeyBarabash May 10, 2024
a4cfcc9
TopToolbarCoordinator.initializeWithNative now has Profile argument
AlexeyBarabash May 10, 2024
7505fce
HomepageManager.shouldCloseAppWithZeroTabs is non-static now
AlexeyBarabash May 13, 2024
5b1b8f6
Adapt tests to the updated navigator.cookieEnabled behavior.
goodov May 13, 2024
6b7ca47
[ios] Fix missing //ios/web/web_state/ui deps
emerick May 14, 2024
31d768e
Reanchoring `GetIconIdDesktop` override
cdesouza-chromium May 9, 2024
6a8dd36
[sync] Pass origin for local deletion
cdesouza-chromium May 10, 2024
6a0be5c
`kPrivateAggregationApiBundledEnhancements` split into
cdesouza-chromium May 10, 2024
e9c6187
`ScriptState::From` now requires `Isolate`
cdesouza-chromium May 9, 2024
e497d41
Reanchoring `PasswordsUIHTMLSource` overrides
cdesouza-chromium May 10, 2024
38f2729
Add missing //chrome/browser/ui/webui/top_chrome dep to //browser/ui/…
emerick May 14, 2024
b96799e
TabGroupUiCoordinator.ctor has modalDialogManager argument
AlexeyBarabash May 14, 2024
e453efd
NewTabPageLayout.initialize doesn't have isSurfacePolishOmniboxColorE…
AlexeyBarabash May 14, 2024
3e8402f
TabManagementDelegate.createTabGroupUi now has modalDialogManager
AlexeyBarabash May 14, 2024
57335ca
Avoid triggering ChromeRefresh2023-related CHECK
emerick May 14, 2024
a4d2e10
Set tab search bubble colors properly
simonhong May 16, 2024
fa2abed
Adjusted menu item's spacing
simonhong May 16, 2024
d27f62c
Updated location bar UI - colors/layouts
simonhong May 16, 2024
3037dbb
Adjust override for kTranslateIcon
emerick May 16, 2024
5860523
Move default_browser_infobar_delegate.cc override into new subfolder
emerick May 16, 2024
5e735a6
Fix new tab button and tab group editor bubble
zenparsing May 15, 2024
8435ba7
`kChromeWebuiRefresh2023` deleted upstream
cdesouza-chromium May 10, 2024
b9b664c
Adding overrides for `PermissionPrompt::IsAskPrompt`
cdesouza-chromium May 10, 2024
5f987bc
`RandBytes` now using span arg
cdesouza-chromium May 13, 2024
0ec262f
`kOmniboxTriggerForNoStatePrefetch` deleted upstream
cdesouza-chromium May 13, 2024
334be7e
`WebstoreInstallWithPrompt` deleted one ctor
cdesouza-chromium May 13, 2024
6298c66
`content_settings::ProviderType` now an enum
cdesouza-chromium May 13, 2024
7d3f3fd
`no_alloc_direct_call_for_testing` removed from V8 binding
cdesouza-chromium May 13, 2024
45de7fb
Add `brave/ui/webui/resources` to lit's visibility list
cdesouza-chromium May 15, 2024
b25c1cf
Simplify BraveTabSearchButton and fix vertical tabs layout
zenparsing May 16, 2024
861d775
NewTabPageLayout.initialize has no isSurfacePolishLessBrandSpaceEnabl…
AlexeyBarabash May 16, 2024
1f4f6c0
TopToolbarCoordinator.ctor has no shouldCreateLogoInStartToolbar arg
AlexeyBarabash May 16, 2024
28a4d09
Changed called API webui::GetNativeTheme=>webui::GetNativeThemeDeprec…
AlexeyBarabash May 16, 2024
1a13450
Added product_chrome_refresh.icon for omnibox
emerick May 16, 2024
d13534e
Remove unnecessary include of chrome/browser/ui/webui/web_util.h
emerick May 16, 2024
f9eb226
Updated menu bubble's corner radius
simonhong May 17, 2024
48200a7
Updated MdTextButton theme colors/shape
simonhong May 17, 2024
1d016d5
Set use_login_database_as_backend = true to allow Android use Chrome …
AlexeyBarabash May 20, 2024
3312669
Remove kNearbyShareMetrics feature flag
emerick May 20, 2024
d575976
[Lit]: Fix patching approach
fallaciousreasoning May 20, 2024
a4e6488
Java file formatting
AlexeyBarabash May 21, 2024
55b1f4c
Continue to show updater PromotionInfoBar on startup on Mac
emerick May 22, 2024
0e3fb76
Fix `SidePanel` overrides for lensoverlay tests
cdesouza-chromium May 21, 2024
41e6597
[ios] Bump minimum deployment target to 16.0
kylehickinson May 23, 2024
34800f8
Set use_bubble_border = true in menu_config to re-enable rounded menus
emerick May 23, 2024
49c0c59
CachedFlag now has two different ctors
AlexeyBarabash May 23, 2024
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 .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,6 @@ test_get_pkgs
build/config/gclient_args.gni
third_party/rust/target
xcuserdata

# buffer exclusion file generated locally during sync
build/config/unsafe_buffers_paths.txt
2 changes: 1 addition & 1 deletion android/brave_java_sources.gni
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,10 @@ brave_java_sources = [
"../../brave/android/java/org/chromium/chrome/browser/night_mode/settings/BraveRadioButtonGroupThemePreference.java",
"../../brave/android/java/org/chromium/chrome/browser/night_mode/settings/BraveThemePreferences.java",
"../../brave/android/java/org/chromium/chrome/browser/notifications/BraveNotificationPlatformBridge.java",
"../../brave/android/java/org/chromium/chrome/browser/notifications/BraveNotificationSettingsBridge.java",
"../../brave/android/java/org/chromium/chrome/browser/notifications/BraveNotificationWarningDialog.java",
"../../brave/android/java/org/chromium/chrome/browser/notifications/BraveOnboardingNotification.java",
"../../brave/android/java/org/chromium/chrome/browser/notifications/BravePermissionUtils.java",
"../../brave/android/java/org/chromium/chrome/browser/notifications/channels/BraveSiteChannelsManagerBridge.java",
"../../brave/android/java/org/chromium/chrome/browser/notifications/permissions/BraveNotificationPermissionRationaleDialog.java",
"../../brave/android/java/org/chromium/chrome/browser/notifications/permissions/BraveNotificationPermissionRationaleDialogController.java",
"../../brave/android/java/org/chromium/chrome/browser/notifications/retention/RetentionNotification.java",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import org.chromium.chrome.tab_ui.R;
import org.chromium.components.browser_ui.bottomsheet.BottomSheetController;
import org.chromium.components.browser_ui.widget.scrim.ScrimCoordinator;
import org.chromium.ui.modaldialog.ModalDialogManager;
import org.chromium.ui.resources.dynamics.DynamicResourceLoader;
import org.chromium.ui.widget.ChromeImageView;

Expand Down Expand Up @@ -56,7 +57,8 @@ public BraveTabGroupUiCoordinator(
@NonNull Supplier<DynamicResourceLoader> dynamicResourceLoaderSupplier,
@NonNull TabCreatorManager tabCreatorManager,
@NonNull OneshotSupplier<LayoutStateProvider> layoutStateProviderSupplier,
@NonNull SnackbarManager snackbarManager) {
@NonNull SnackbarManager snackbarManager,
@NonNull ModalDialogManager modalDialogManager) {
super(
activity,
parentView,
Expand All @@ -73,7 +75,8 @@ public BraveTabGroupUiCoordinator(
dynamicResourceLoaderSupplier,
tabCreatorManager,
layoutStateProviderSupplier,
snackbarManager);
snackbarManager,
modalDialogManager);

mIncognitoStateProvider = incognitoStateProvider;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,6 @@
</message>

<!-- Tab Group Tab Switcher strings -->
<message name="IDS_TABSWITCHER_CREATE_GROUP" desc="This flat button is shown in the Tab Switcher, under an open tab. When the user taps the button, Brave creates a new group of tabs that includes the existing tab. It's okay to use any of the following verbs in order to keep the text under 45 characters: Create, Make, Add.">
Create group
</message>
<message name="IDS_ACCESSIBILITY_TAB_SWITCHER" desc="Accessibility string for Tab Switcher view. This string is announced when the Tab Switcher is shown to screen.">
Tab Switcher
</message>
Expand Down Expand Up @@ -609,7 +606,7 @@
<message name="IDS_TAB_GROUP_CREATION_DIALOG_TITLE" desc="When users create a new tab group, a dialog will pop up and this text is the title of the dialog. [CHAR_LIMIT=24]">
New tab group
</message>
<message name="IDS_TAB_GROUP_CREATION_MISSING_TITLE" desc="Error message appearing when a user tries to create a tab group without a title. s[CHAR_LIMIT=32]">
<message name="IDS_TAB_GROUP_VISUAL_DATA_MISSING_TITLE" desc="Error message appearing when a user tries to create a tab group without a title. s[CHAR_LIMIT=32]">
Title required
</message>
<message name="IDS_TAB_GROUP_CREATION_POSITIVE_BUTTON_TEXT" desc="Text for creating a new tab group from the merged tabs after confirming the editable details">
Expand Down Expand Up @@ -678,7 +675,7 @@
}
</message>

<!-- Tab Group Pane Strings -->
<!-- Tab Group Pane and Sync Strings -->
<message name="IDS_ACCESSIBILITY_TAB_GROUPS" desc="Content description for the button to show tab groups UI.">
Tab groups
</message>
Expand Down Expand Up @@ -721,6 +718,116 @@
other {Created <ph name="NUM_YEARS_MANY">%d<ex>2</ex></ph> years ago}
}
</message>
<message name="IDS_PLUS_HIDDEN_TAB_COUNT" desc="A string to show how many other tabs are contained in a tab group who's favicons are not shown. [CHAR_LIMIT=5]">
+<ph name="HIDDEN_TABS_COUNT">%1$s<ex>3</ex></ph>
</message>
<message name="IDS_DELETE_TAB_GROUP_DIALOG_TITLE" desc="Title of a dialog asking if the user really wants to delete a tab group.">
Delete tab group?
</message>
<message name="IDS_DELETE_TAB_GROUP_DESCRIPTION" desc="Description of the action of deleting a tab group, shown in a confirmation dialog.">
This will delete the group from all devices signed into <ph name="USER_EMAIL">%1$s<ex>test@gmail.com</ex></ph>
</message>
<message name="IDS_DELETE_TAB_GROUP_NO_SYNC_DESCRIPTION" desc="Description of the action of deleting a tab group, shown in a confirmation dialog.">
This will permanently delete the group from your device
</message>
<message name="IDS_CONFIRMATION_STOP_SHOWING" desc="Text next to a checkbox asking if confirmation should not be shown again. Used for various tab operations.">
Don't ask again
</message>
<message name="IDS_DELETE_TAB_GROUP_ACTION" desc="Button text in a confirmation dialog which will delete a tab group.">
Delete group
</message>
<message name="IDS_DELETE_TAB_GROUP_MENU_ITEM" desc="Menu item text which will prompt a confirmation dialog to delete a tab group.">
Delete
</message>
<message name="IDS_UNGROUP_TAB_GROUP_DIALOG_TITLE" desc="Title of a dialog asking if the user really wants to ungroup all tabs in a group.">
Ungroup tab group?
</message>
<message name="IDS_UNGROUP_TAB_GROUP_DESCRIPTION" desc="Description of the impact of ungrouping the tabs in a group, shown in a confirmation dialog.">
The tabs will remain open on this device but the group will be deleted from all devices signed into <ph name="USER_EMAIL">%1$s<ex>test@gmail.com</ex></ph>
</message>
<message name="IDS_UNGROUP_TAB_GROUP_NO_SYNC_DESCRIPTION" desc="Description of the impact of ungrouping the tabs in a group, shown in a confirmation dialog.">
The tabs will remain open on this device but the group will be permanently deleted
</message>
<message name="IDS_UNGROUP_TAB_GROUP_ACTION" desc="Button text in a confirmation dialog which will ungroup tabs in a group.">
Ungroup
</message>
<message name="IDS_UNGROUP_TAB_GROUP_MENU_ITEM" desc="Menu item text which will prompt a confirmation dialog to ungroup a tab group.">
Ungroup
</message>
<message name="IDS_TAB_GROUP_RENAME_DIALOG_TITLE" desc="When users edit an existing tab group, a dialog will pop up and this text is the title of that dialog. [CHAR_LIMIT=24]">
Rename tab group
</message>
<message name="IDS_TAB_GROUP_RENAME_POSITIVE_BUTTON_TEXT" desc="When users edit an existing tab group, a dialog will pop up and this text represents the button to accept the current selections. [CHAR_LIMIT=24]">
Continue
</message>
<message name="IDS_TAB_GROUP_RENAME_NEGATIVE_BUTTON_TEXT" desc="When users edit an existing tab group, a dialog will pop up and this text represents the button to decline the current selections. [CHAR_LIMIT=24]">
Cancel
</message>
<message name="IDS_CLOSE_ALL_TABS_AND_GROUPS_DIALOG_MESSAGE" desc="Description of the action of closing all tabs and groups, shown in a confirmation dialog.">
Your closed tabs and groups can be reopened from the Recent tabs section and the Tab groups section.
</message>
<message name="IDS_CLOSE_ALL_TABS_AND_GROUPS_ACTION" desc="Button text in a confirmation dialog which will close all tabs and groups.">
Close all tabs and groups
</message>
<message name="IDS_REMOVE_FROM_GROUP_DIALOG_MESSAGE" desc="Title of a dialog asking if the user really wants to remove all tabs in a group.">
Remove tab(s) and delete group?
</message>
<message name="IDS_REMOVE_FROM_GROUP_DESCRIPTION" desc="Descirotion of the action of removing all tabs in a group, shown in a confirmation dialog.">
This will delete the group from all devices signed into <ph name="USER_EMAIL">%1$s<ex>test@gmail.com</ex></ph>
</message>
<message name="IDS_CLOSE_FROM_GROUP_DIALOG_TITLE" desc="Title of a dialog asking if the user really wants to close a tab and group.">
Close tab and delete group?
</message>
<message name="IDS_CLOSE_TAB_GROUP_MENU_ITEM" desc="Menu item text which will prompt a confirmation dialog to close a tab group.">
Close
</message>
<message name="IDS_RENAME_TAB_GROUP_MENU_ITEM" desc="Menu item text which will prompt a confirmation dialog to rename a tab group.">
Rename
</message>
<message name="IDS_ACCESSIBILITY_OPEN_TAB_GROUP_OVERFLOW_MENU_WITH_GROUP_NAME" desc="Accessibility string for opening the overflow menu on a tab group, which will allow the user to perform several actions on the tab group. TITLE_OF_GROUP is the title of the group.">
Open the tab group action menu for tab group <ph name="TITLE_OF_GROUP">%1$s<ex>Shopping cart</ex></ph>
</message>
<message name="IDS_CLOSE_FROM_GROUP_DESCRIPTION" desc="Description of the ation of deleting a tab and a group, shown in a confirmation dialog.">
This will delete the group from all devices signed into <ph name="USER_EMAIL">%1$s<ex>test@gmail.com</ex></ph>
</message>
<message name="IDS_REMOVE_LAST_TAB_ACTION" desc="The text shown on the bottom bar when the user is dragging the last tab of a group around. Indicates removing this tab will also delete the group.">
Remove tab and delete group
</message>
<message name="IDS_TAB_GROUP_CREATION_DIALOG_SYNC_DESCRIPTION" desc="Description of tab group sync functionality shown for syncing users in the tab group creation dialog.">
Your tab groups automatically save and update across all your signed-in devices
</message>
<message name="IDS_TAB_GROUPS_CATEGORY" desc="Used as a section heading for tab group data when deleting local data.">
Tab groups
</message>
<message name="IDS_SAVED_TAB_GROUPS_DATA_SUMMARY" desc="A summary of the tab groups data you have and what will happen when it is deleted.">
<ph name="USER_EMAIL">%1$s<ex>3</ex></ph> groups saved (will close tabs and delete groups)
</message>
<message name="IDS_TAB_GROUPS_EMPTY_HEADER" desc="The header text explaining the purpose of the tab groups UI surface. Shown when the user does not currently have any tab groups.">
You'll find your tab groups here
</message>
<message name="IDS_TAB_GROUPS_EMPTY_STATE_DESCRIPTION" desc="The detailed description of the purpose of the tab groups surface. Shown when the user does not currently have any tab groups.">
Tab groups automatically save and update across all your devices
</message>
<message name="IDS_TAB_GROUP_SURFACE_IPH_WITH_SYNC" desc="IPH text to hint the user to opening the dedicated tab groups UI surface when syncing tab groups is enabled.">
Your tab groups are saved here and get updated across all your signed-in devices
</message>
<message name="IDS_TAB_GROUP_SURFACE_IPH_NO_SYNC" desc="IPH text to hint the user to opening the dedicated tab groups UI surface when tab groups is only local.">
Your tab groups are saved here
</message>
<message name="IDS_NEWLY_SYNCED_TAB_GROUP_IPH" desc="IPH text highlighting a tab group that was synced from another device">
New group from your other device
</message>
<message name="IDS_OPEN_TAB_GROUP_MENU_ITEM" desc="Menu item to open a more detailed view of a tab group.">
Open
</message>

<!-- Tabs Settings Strings -->
<message name="IDS_TABS_SETTINGS_TITLE" desc="A title to show in the top toolbar when the Tabs settings page is open.">
Tabs
</message>
<message name="IDS_AUTO_OPEN_SYNCED_TAB_GROUPS_SUMMARY" desc="A title to show in the top toolbar when the Tabs settings page is open.">
Automatically open tab groups from other devices
</message>
</messages>
</release>
</grit>
4 changes: 4 additions & 0 deletions android/java/apk_for_test.flags
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
*** mLogoCoordinator;
*** insertSiteSectionView(...);
*** isScrollableMvtEnabled(...);
*** setSearchProviderTopMargin(...);
*** setSearchProviderBottomMargin(...);
*** getLogoMargin(...);
}

-keep class org.chromium.chrome.browser.suggestions.tile.MostVisitedTilesMediator {
Expand Down Expand Up @@ -143,6 +146,7 @@
*** mTabContentManager;
*** mTabCreatorManager;
*** mSnackbarManager;
*** mModalDialogManagerSupplier;
*** mTabObscuringHandler;
*** mReadAloudControllerSupplier;
*** onOrientationChange(...);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
import org.chromium.chrome.browser.partnercustomizations.CloseBraveManager;

// see org.brave.bytecode.BraveHomepageManagerClassAdapter
public class BraveHomepageManager {
public static boolean shouldCloseAppWithZeroTabs() {
public class BraveHomepageManager extends HomepageManager {
@Override
public boolean shouldCloseAppWithZeroTabs() {
return CloseBraveManager.shouldCloseAppWithZeroTabs();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@ public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {
if (homepageSwitch.isVisible()) return;
// Show homepage switch if it is hidden.
homepageSwitch.setVisible(true);
boolean isHomepageEnabled = HomepageManager.isHomepageEnabled();
boolean isHomepageEnabled = mHomepageManager.isHomepageEnabled();
homepageSwitch.setChecked(isHomepageEnabled);
homepageSwitch.setOnPreferenceChangeListener((preference, newValue) -> {
mHomepageManager.setPrefHomepageEnabled((boolean) newValue);
return true;
});
homepageSwitch.setOnPreferenceChangeListener(
(preference, newValue) -> {
mHomepageManager.setPrefHomepageEnabled((boolean) newValue);
return true;
});
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@
import android.app.Activity;

import org.chromium.base.supplier.ObservableSupplier;
import org.chromium.base.supplier.Supplier;
import org.chromium.chrome.R;
import org.chromium.chrome.browser.app.tabmodel.TabModelOrchestrator;
import org.chromium.chrome.browser.app.tabmodel.TabWindowManagerSingleton;
import org.chromium.chrome.browser.lifecycle.ActivityLifecycleDispatcher;
import org.chromium.chrome.browser.tab.Tab;
import org.chromium.chrome.browser.tabmodel.TabModelSelector;
import org.chromium.chrome.browser.ui.desktop_windowing.DesktopWindowStateProvider;
import org.chromium.chrome.browser.ui.messages.snackbar.Snackbar;
import org.chromium.chrome.browser.ui.messages.snackbar.SnackbarManager;
import org.chromium.chrome.browser.ui.messages.snackbar.SnackbarManager.SnackbarController;
Expand All @@ -34,15 +36,15 @@ class BraveMultiInstanceManagerApi31 extends MultiInstanceManagerApi31 {
ActivityLifecycleDispatcher activityLifecycleDispatcher,
ObservableSupplier<ModalDialogManager> modalDialogManagerSupplier,
MenuOrKeyboardActionController menuOrKeyboardActionController,
ObservableSupplier<Boolean> desktopWindowModeSupplier) {
Supplier<DesktopWindowStateProvider> desktopWindowStateProviderSupplier) {
super(
activity,
tabModelOrchestratorSupplier,
multiWindowModeStateDispatcher,
activityLifecycleDispatcher,
modalDialogManagerSupplier,
menuOrKeyboardActionController,
desktopWindowModeSupplier);
desktopWindowStateProviderSupplier);
}

@Override
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/* Copyright (c) 2019 The Brave Authors. All rights reserved.
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at https://mozilla.org/MPL/2.0/. */

package org.chromium.chrome.browser.notifications.channels;

import org.jni_zero.CalledByNative;

import org.chromium.chrome.browser.notifications.NotificationChannelStatus;

/**
* This class provides our native code to access SiteChannelsManager without patching
* notification_channels_provider_android.cc/h.
*/
public class BraveSiteChannelsManagerBridge {
@CalledByNative
static @NotificationChannelStatus int getChannelStatus(String channelId) {
return SiteChannelsManager.getInstance().getChannelStatus(channelId);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1170,8 +1170,6 @@ public void initialize(
Profile profile,
WindowAndroid windowAndroid,
boolean isSurfacePolishEnabled,
boolean isSurfacePolishOmniboxColorEnabled,
boolean isSurfacePolishLessBrandSpaceEnabled,
boolean isTablet,
ObservableSupplier<Integer> tabStripHeightSupplier) {
super.initialize(
Expand All @@ -1188,8 +1186,6 @@ public void initialize(
profile,
windowAndroid,
isSurfacePolishEnabled,
isSurfacePolishOmniboxColorEnabled,
isSurfacePolishLessBrandSpaceEnabled,
isTablet,
tabStripHeightSupplier);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ interface IncognitoNewTabPageManager {
/** Tells the caller whether a new snapshot is required or not. */
boolean shouldCaptureThumbnail();

/** Whether the new version of the Incognito NTP should be shown. */
boolean shouldShowRevampedIncognitoNtp();

/** Whether to show the tracking protection UI on the NTP. */
boolean shouldShowTrackingProtectionNtp();

Expand Down
Loading
Loading