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 94 to Chromium 95 #9934

Merged
merged 71 commits into from
Oct 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
75f4d52
Updated patches from Chromium 94.0.4606.71 to Chromium 95.0.4612.0.
mariospr Sep 2, 2021
96487be
Conflict-resolved patches from Chromium 94.0.4606.71 to Chromium 95.0…
mariospr Sep 9, 2021
cd4352c
Update strings to Chromium 95.0.4612.0.
mariospr Aug 20, 2021
319e5ca
Adapt patch to //c/b/r/settings/settings.{js => ts} migration
mariospr Aug 18, 2021
e8f982e
Adapt ui::SCALE_FACTOR_* references to ui::k___Percent and kScaleFact…
mariospr Aug 18, 2021
65d1f30
Adjust the way we disable the privacy sandbox features
mariospr Aug 18, 2021
db396af
Ensure that Private Sandbox and FLoC can never be enabled + tests
mariospr Sep 9, 2021
c4f9385
[Android] Elements of scale_factor were renamed
samartnik Aug 27, 2021
1e72e84
[Android] Removed Privacy Sandbox setting
samartnik Aug 27, 2021
f6a9d20
Updated patches from Chromium 95.0.4612.0 to Chromium 95.0.4621.4.
mariospr Sep 2, 2021
40f7d3a
Conflict-resolved patches from Chromium 95.0.4612.0 to Chromium 95.0.…
mariospr Aug 30, 2021
8d65d53
Update strings for Chromium 95.0.4621.4.
mariospr Sep 2, 2021
eddfb4e
Remove settings exclusion over no longer existing section
mariospr Aug 30, 2021
0c92269
Adapt from const std::string& to base::StringPiece
mariospr Aug 30, 2021
86ea5a4
Use ExtensionFunction::args() instead of accessing its private members
mariospr Aug 30, 2021
703aba1
Adapt to using BlinkStorageKey instead of Origin in more places.
mariospr Aug 30, 2021
e598e3c
Adapt to removal of URLs list from StartupBrowserCreatorImpl::Launch()
mariospr Aug 30, 2021
1b96d4f
Upstream now uses -Wunreachable-code-aggressive config flag.
mkarolin Aug 31, 2021
232bd5c
Remove patch to drop dep on :credential_provider_migrator_app_agent
mariospr Sep 1, 2021
26d6847
[Android] New c-tor signature for ChromeSiteSettingsDelegate
samartnik Sep 1, 2021
dd43576
Adapt to the relocation of features::kLangClientHintHeader to Blink III
mariospr Sep 3, 2021
5242d20
Updated patches from Chromium 95.0.4621.4 to Chromium 95.0.4628.3.
mariospr Sep 3, 2021
be3cdc6
Conflict-resolved patches from Chromium 95.0.4621.4 to Chromium 95.0.…
mariospr Sep 3, 2021
16cb2e7
Update strings to Chromium 95.0.4628.3.
mariospr Sep 3, 2021
84d566d
Depend on //ui/webui/resources/js/browser_command:mojo_bindings
mariospr Sep 3, 2021
b1d78a9
Migrate from GURL to SiteForCookies in chromium_src overrides
mariospr Sep 3, 2021
5707a65
Migrate to content::WebUI::RegisterDeprecatedMessageCallback() for now
mariospr Sep 3, 2021
02cef8e
Adapt to new signature of SITH::AssociateBlockingPage()
mariospr Sep 3, 2021
81ecdb3
Migrate away from content::WebUI::RegisterDeprecatedMessageCallback()
mariospr Sep 3, 2021
be8b313
[Android] MobileIdentityConsistency was removed
samartnik Sep 7, 2021
e8ffc1c
[Android] Java code adjustments
samartnik Sep 7, 2021
ad97b99
[iOS] Synced up brave_providers build target with upstream chromium_p…
mkarolin Sep 9, 2021
9159d19
Updated patches from Chromium 95.0.4628.3 to Chromium 95.0.4636.4.
mariospr Sep 10, 2021
ae71379
Conflict-resolved patches from Chromium 95.0.4628.3 to Chromium 95.0.…
mariospr Sep 10, 2021
30682dd
Updated strings for Chromium 95.0.4636.4.
mariospr Sep 10, 2021
ab294f8
Adapt changes for blink::NavigatorBase::userAgent()
mariospr Sep 10, 2021
6764c22
IWYU: base/strings/string_number_conversions.h
mariospr Sep 10, 2021
1884b27
Adapt to removal of ListValue::AppendInteger()
mariospr Sep 10, 2021
c1888ff
Add definition for newly added constant kGoogleAccountDeviceActivityURL
mariospr Sep 10, 2021
accd436
[iOS] Synced up brave_providers build target with upstream chromium_p…
mkarolin Sep 10, 2021
33c6259
[iOS] Do not use lld.
mkarolin Sep 10, 2021
ac421db
[Android] Adjusted code for SigninManager
samartnik Sep 10, 2021
1a1cd39
[Android] Changed theme color handling for bottom toolbar
samartnik Sep 10, 2021
82bc24c
Remove no longer necessary patch: patches/ios-chrome-app-BUILD.gn.patch
mariospr Sep 13, 2021
e575acc
[Settings UI] Start using ts_library target.
mkarolin Sep 13, 2021
fa8505a
Conflict-resolved patches from Chromium 95.0.4636.4 to Chromium 95.0.…
mkarolin Sep 16, 2021
50e1543
web_applications/components moved to web_applications.
mkarolin Sep 16, 2021
8ae580a
AXPlatformNodeCocoa moved into a separate file.
mkarolin Sep 16, 2021
04a8502
Removed upstream patch that's no longer needed.
mkarolin Sep 16, 2021
acf7af8
Updated patches from Chromium 95.0.4636.4 to Chromium 95.0.4638.10.
mkarolin Sep 16, 2021
d6f35f2
Updated strings for Chromium 95.0.4638.10.
mkarolin Sep 16, 2021
c41dd93
Adapt to removal of ListValue::GetSize()
mariospr Sep 14, 2021
506bf82
Adapt to removal of ListValue::AppendString()
mariospr Sep 14, 2021
3f06461
ui_test_utils::NavigateToURL is now WARN_UNUSED_RESULT
mkarolin Sep 17, 2021
1ae876f
Adapt to kClientHintsMappingsCount renaming.
mkarolin Sep 17, 2021
0c09e1e
Update ephemeral local storage implementation.
goodov Sep 16, 2021
9c1161b
Adjust disabled features.
mkarolin Sep 20, 2021
39ce237
Disable kSettingsLandingPageRedesign
mkarolin Sep 21, 2021
fa515d4
Conflict-resolved patches from Chromium 95.0.4638.10 to Chromium 95.0…
mkarolin Sep 21, 2021
213936b
Updated patches from Chromium 95.0.4638.10 to Chromium 95.0.4638.17.
mkarolin Sep 21, 2021
c8eb191
Updated strings for Chromium 95.0.4638.17.
mkarolin Sep 21, 2021
c99d8cd
Disabled PredictionBasedPermissionUiSelector.
mkarolin Sep 22, 2021
0a5f712
Disable blink::features::kComputePressure.
mkarolin Sep 23, 2021
3dc2bed
ValueStore class has been moved to value_store namespace.
mkarolin Sep 24, 2021
18a6097
[Win] Fixes build errors due to name collision with MSFT.
mkarolin Sep 24, 2021
2336c54
[Android] Fixed color for tab groups toolbar
samartnik Sep 27, 2021
6f0bd38
Conflict-resolved patches from Chromium 95.0.4638.17 to Chromium 95.0…
mkarolin Sep 29, 2021
4ceb975
Updated patches from Chromium 95.0.4638.17 to Chromium 95.0.4638.32.
mkarolin Sep 29, 2021
af41628
Updated strings for Chromium 95.0.4638.32.
mkarolin Sep 29, 2021
eb7ebb3
Fixes crash in brave_sync_handler.cc
mkarolin Oct 4, 2021
c5323ed
[Android] Fixed icon colors
samartnik Oct 5, 2021
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
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
import org.chromium.chrome.browser.compositor.layouts.content.TabContentManager;
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.TabCreatorManager;
import org.chromium.chrome.browser.tabmodel.TabModelSelector;
import org.chromium.chrome.browser.theme.ThemeColorProvider;
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 @@ -36,7 +36,7 @@ public class BraveTabGroupUiCoordinator extends TabGroupUiCoordinator {
private TabGroupUiToolbarView mToolbarView;

public BraveTabGroupUiCoordinator(@NonNull Activity activity, @NonNull ViewGroup parentView,
@NonNull ThemeColorProvider themeColorProvider,
@NonNull IncognitoStateProvider incognitoStateProvider,
@NonNull ScrimCoordinator scrimCoordinator,
@NonNull ObservableSupplier<Boolean> omniboxFocusStateSupplier,
@NonNull BottomSheetController bottomSheetController,
Expand All @@ -49,15 +49,13 @@ public BraveTabGroupUiCoordinator(@NonNull Activity activity, @NonNull ViewGroup
@NonNull Supplier<ShareDelegate> shareDelegateSupplier,
@NonNull OneshotSupplier<OverviewModeBehavior> overviewModeBehaviorSupplier,
@NonNull SnackbarManager snackbarManager) {
super(activity, parentView, themeColorProvider, scrimCoordinator, omniboxFocusStateSupplier,
bottomSheetController, activityLifecycleDispatcher, isWarmOnResumeSupplier,
tabModelSelector, tabContentManager, rootView, dynamicResourceLoaderSupplier,
tabCreatorManager, shareDelegateSupplier, overviewModeBehaviorSupplier,
snackbarManager);
super(activity, parentView, incognitoStateProvider, scrimCoordinator,
omniboxFocusStateSupplier, bottomSheetController, activityLifecycleDispatcher,
isWarmOnResumeSupplier, tabModelSelector, tabContentManager, rootView,
dynamicResourceLoaderSupplier, tabCreatorManager, shareDelegateSupplier,
overviewModeBehaviorSupplier, snackbarManager);

assert mToolbarView != null : "Make sure mToolbarView is properly patched in bytecode.";
mToolbarView.setBackgroundColor(ApiCompatibilityUtils.getColor(
mToolbarView.getResources(), R.color.toolbar_background_primary));
ChromeImageView fadingEdgeStart =
mToolbarView.findViewById(R.id.tab_strip_fading_edge_start);
assert fadingEdgeStart != null : "Something has changed in upstream.";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {
removePreferenceIfPresent(PREF_AD_BLOCK);
removePreferenceIfPresent(PREF_SYNC_AND_SERVICES_LINK);
removePreferenceIfPresent(PREF_NETWORK_PREDICTIONS);
removePreferenceIfPresent(PREF_PRIVACY_SANDBOX);

updatePreferences();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ public void onClick(View view) {
ImageView mPrivacyReportIcon = mPrivacyReportLayout.findViewById(R.id.toggle_favicon);
mPrivacyReportIcon.setImageResource(R.drawable.ic_arrow_forward);
mPrivacyReportIcon.setColorFilter(
mContext.getResources().getColor(R.color.default_icon_color_tint_list));
mContext.getResources().getColor(R.color.default_icon_color));
TextView mViewPrivacyReportText = mPrivacyReportLayout.findViewById(R.id.toggle_text);
mViewPrivacyReportText.setText(R.string.view_full_privacy_report);
mPrivacyReportLayout.setOnClickListener(new View.OnClickListener() {
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));
TextView mBlockShieldsText = mShieldsLayout.findViewById(R.id.toggle_text);
mBlockShieldsText.setText(titleStringId);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public void signinAndEnableSync(@SigninAccessPoint int accessPoint, Account acco
@Nullable SignInCallback callback) {}

@Override
public void signin(CoreAccountInfo accountInfo, @Nullable SignInCallback callback) {}
public void signin(Account account, @Nullable SignInCallback callback) {}

@Override
public void removeSignInStateObserver(SignInStateObserver observer) {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
import org.chromium.base.Callback;
import org.chromium.chrome.browser.ChromeTabbedActivity;
import org.chromium.chrome.browser.app.BraveActivity;
import org.chromium.chrome.browser.profiles.Profile;
import org.chromium.chrome.browser.site_settings.ChromeSiteSettingsDelegate;
import org.chromium.content_public.browser.BrowserContextHandle;
import org.chromium.url.GURL;

public class BraveSiteSettingsDelegate extends ChromeSiteSettingsDelegate {
public BraveSiteSettingsDelegate(Context context, BrowserContextHandle browserContextHandle) {
super(context, browserContextHandle);
public BraveSiteSettingsDelegate(Context context, Profile profile) {
super(context, profile);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public void enableBottomControls() {
|| TabUiFeatureUtilities.isConditionalTabStripEnabled()) {
mTabGroupUi = TabManagementModuleProvider.getDelegate().createTabGroupUi(mActivity,
mBottomControls.findViewById(R.id.bottom_container_slot),
mAppThemeColorProvider, mScrimCoordinator, mOmniboxFocusStateSupplier,
mIncognitoStateProvider, mScrimCoordinator, mOmniboxFocusStateSupplier,
mBottomSheetController, mActivityLifecycleDispatcher,
mIsWarmOnResumeSupplier, mTabModelSelector, mTabContentManager,
mCompositorViewHolder, mCompositorViewHolder::getDynamicResourceLoader,
Expand All @@ -220,11 +220,11 @@ public void enableBottomControls() {
id -> ((ChromeActivity) mActivity).onOptionsItemSelected(id, null)),
mActivityTabProvider, mToolbarTabController::openHomepage,
mCallbackController.makeCancelable((reason) -> setUrlBarFocus(true, reason)),
mMenuButtonCoordinator.getMenuButtonHelperSupplier(),
mMenuButtonCoordinator.getMenuButtonHelperSupplier(), mAppThemeColorProvider,
/* Below are parameters for BottomControlsCoordinator */
mActivity, mWindowAndroid, mLayoutManager,
mCompositorViewHolder.getResourceManager(), mBrowserControlsSizer,
mFullscreenManager, mBottomControls, mAppThemeColorProvider, mTabGroupUi,
mFullscreenManager, mBottomControls, mTabGroupUi,
mOverlayPanelVisibilitySupplier));
mBottomControls.setBottomControlsCoordinatorSupplier(
mBottomControlsCoordinatorSupplier);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import org.chromium.chrome.browser.ActivityTabProvider;
import org.chromium.chrome.browser.app.BraveActivity;
import org.chromium.chrome.browser.app.ChromeActivity;
import org.chromium.chrome.browser.compositor.CompositorViewHolder;
import org.chromium.chrome.browser.feature_engagement.TrackerFactory;
import org.chromium.chrome.browser.homepage.HomepageManager;
import org.chromium.chrome.browser.layouts.LayoutStateProvider;
Expand Down Expand Up @@ -256,8 +257,9 @@ public void onStartedHiding(
}

if (mScrollingBottomView != null && activity != null) {
Supplier<CompositorViewHolder> cvh = activity.getCompositorViewHolderSupplier();
mScrollingBottomView.setSwipeDetector(
activity.getCompositorViewHolder().getLayoutManager().getToolbarSwipeHandler());
cvh.get().getLayoutManager().getToolbarSwipeHandler());
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ public BraveBottomControlsCoordinator(
OnLongClickListener tabSwitcherLongclickListener, ActivityTabProvider tabProvider,
Runnable openHomepageAction, Callback<Integer> setUrlBarFocusAction,
ObservableSupplier<AppMenuButtonHelper> menuButtonHelperSupplier,
ThemeColorProvider themeColorProvider,
/* Below are parameters from BottomControlsCoordinator */
Activity activity, WindowAndroid windowAndroid, LayoutManager layoutManager,
ResourceManager resourceManager, BrowserControlsSizer controlsSizer,
FullscreenManager fullscreenManager, ScrollingBottomViewResourceFrameLayout root,
ThemeColorProvider themeColorProvider, BottomControlsContentDelegate contentDelegate,
BottomControlsContentDelegate contentDelegate,
ObservableSupplier<Boolean> overlayPanelVisibilitySupplier) {
super(activity, windowAndroid, layoutManager, resourceManager, controlsSizer,
fullscreenManager, root, themeColorProvider, contentDelegate,
overlayPanelVisibilitySupplier);
fullscreenManager, root, contentDelegate, overlayPanelVisibilitySupplier);

mTabSwitcherLongclickListener = tabSwitcherLongclickListener;
mTabProvider = tabProvider;
Expand Down
2 changes: 1 addition & 1 deletion android/java/res/layout/new_tab_page_incognito.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:text="@string/brave_new_tab_private_header"
android:textAppearance="@style/TextAppearance.Headline.Primary.Light" />
android:textAppearance="@style/TextAppearance.Headline.Primary.Baseline.Light" />

<TextView
android:layout_width="wrap_content"
Expand Down
1 change: 1 addition & 0 deletions android/java/res/values-night/brave_colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<color name="baseline_primary_100">#5B2A23</color>
<color name="baseline_primary_200">#F35333</color>
<color name="default_text_color_on_accent1">@color/default_text_color_on_accent1_light</color>
<color name="dialog_bg_color_dark">@color/toolbar_background_primary</color>

<color name="onboarding_text_color">#F0F2FF</color>
<color name="onboarding_bg_color">#1E2029</color>
Expand Down
1 change: 1 addition & 0 deletions android/java/res/values/brave_colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<color name="modern_blue_300">#FF7654</color>
<color name="modern_blue_600">#EA3A0D</color>
<color name="modern_blue_700">#C22700</color>
<color name="dialog_bg_color_dark">@color/toolbar_background_primary_dark</color>

<!-- Onborading colors -->
<color name="onboarding_orange">#fb542b</color>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,12 @@
import org.chromium.chrome.browser.omnibox.status.PageInfoIPHController;
import org.chromium.chrome.browser.omnibox.suggestions.SuggestionHost;
import org.chromium.chrome.browser.omnibox.suggestions.UrlBarDelegate;
import org.chromium.chrome.browser.profiles.Profile;
import org.chromium.chrome.browser.share.ShareDelegateImpl;
import org.chromium.chrome.browser.tab.Tab;
import org.chromium.chrome.browser.tabmodel.AsyncTabParamsManager;
import org.chromium.chrome.browser.tabmodel.ChromeTabCreator;
import org.chromium.chrome.browser.tabmodel.IncognitoStateProvider;
import org.chromium.chrome.browser.tabmodel.TabCreatorManager;
import org.chromium.chrome.browser.tabmodel.TabModelSelector;
import org.chromium.chrome.browser.theme.ThemeColorProvider;
Expand Down Expand Up @@ -435,15 +437,15 @@ public void testConstructorsExistAndMatch() throws Exception {
Assert.assertTrue(constructorsMatch(
"org/chromium/chrome/browser/tasks/tab_management/TabGroupUiCoordinator",
"org/chromium/chrome/browser/tasks/tab_management/BraveTabGroupUiCoordinator",
Activity.class, ViewGroup.class, ThemeColorProvider.class, ScrimCoordinator.class,
ObservableSupplier.class, BottomSheetController.class,
Activity.class, ViewGroup.class, IncognitoStateProvider.class,
ScrimCoordinator.class, ObservableSupplier.class, BottomSheetController.class,
ActivityLifecycleDispatcher.class, Supplier.class, TabModelSelector.class,
TabContentManager.class, ViewGroup.class, Supplier.class, TabCreatorManager.class,
Supplier.class, OneshotSupplier.class, SnackbarManager.class));
Assert.assertTrue(constructorsMatch(
"org/chromium/chrome/browser/site_settings/ChromeSiteSettingsDelegate",
"org/chromium/chrome/browser/site_settings/BraveSiteSettingsDelegate",
Context.class, BrowserContextHandle.class));
Context.class, Profile.class));
Assert.assertTrue(constructorsMatch(
"org/chromium/components/browser_ui/notifications/NotificationManagerProxyImpl",
"org/chromium/chrome/browser/notifications/BraveNotificationManagerProxyImpl",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ private void checkPreferenceRemoved(String pref) {
@SmallTest
public void testDisabledOptions() {
TestThreadUtils.runOnUiThreadBlocking(() -> {
assertFalse(PrivacySandboxBridge.isPrivacySandboxSettingsFunctional());
assertFalse(PrivacyPreferencesManagerImpl.getInstance().getNetworkPredictionEnabled());
});
}
Expand Down
14 changes: 7 additions & 7 deletions app/app_management_strings.grdp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
<message name="IDS_APP_MANAGEMENT_PERMISSIONS" desc="Label for permissions section in the app settings page.">
Permissions
</message>
<message name="IDS_APP_MANAGEMENT_MORE_SETTINGS" desc="Label for a link to more settings and permissions for an app.">
More settings and permissions
<message name="IDS_APP_MANAGEMENT_MORE_PERMISSIONS" desc="Label for a link to more permissions for an app.">
More permissions
</message>
<message name="IDS_APP_MANAGEMENT_PIN_TO_SHELF" desc="Label for the pin to shelf button in the app settings page.">
Pin to shelf
Expand Down Expand Up @@ -49,8 +49,8 @@
<message name="IDS_APP_MANAGEMENT_POLICY_APP_POLICY_STRING" desc="Tooltip label explaining that an app cannot be uninstalled as it has been installed by an adminstrator.">
This app has been installed by your administrator.
</message>
<message name="IDS_APP_MANAGEMENT_INTENT_SHARING" desc="Label for the intent sharing settings section.">
Opening supported links
<message name="IDS_APP_MANAGEMENT_INTENT_SETTINGS_TITLE" desc="Title for the intent sharing settings section.">
Opening <ph name="BEGIN_LINK">&lt;a href="#"&gt;</ph>supported links<ph name="END_LINK">&lt;/a&gt;</ph>
</message>
<message name="IDS_APP_MANAGEMENT_INTENT_SHARING_APP_OPEN" desc="Label for the intent sharing option to open in a specified app.">
Open in <ph name="APP_NAME">$1<ex>Brave browser</ex></ph>
Expand All @@ -59,9 +59,9 @@
Open in Brave browser
</message>
<message name="IDS_APP_MANAGEMENT_INTENT_SHARING_TAB_EXPLANATION" desc="Label for the intent sharing description for when the app is set to open in tab mode.">
<ph name="APP_NAME">$1<ex>Gmail</ex></ph> is set to open in a new browser tab, supported links will also open in the browser.
<ph name="APP_NAME">$1<ex>Gmail</ex></ph> is set to open in a new browser tab, supported links will also open in the browser. <ph name="BEGIN_LINK_LEARN_MORE">&lt;a href="https://support.google.com/chromebook?p=app_intent" target="_blank"&gt;</ph>Learn more<ph name="END_LINK_LEARN_MORE">&lt;/a&gt;</ph>
</message>
<message name="IDS_APP_MANAGEMENT_INTENT_SHARING_TAB_LEARN_MORE" desc="Label for the learn more link for when the app is set to open in tab mode.">
Learn more.
<message name="IDS_APP_MANAGEMENT_INTENT_SETTINGS_DIALOG_TITLE" desc="Title for the dialog which shows a list of supported links for a specified app.">
Supported links
</message>
</grit-part>
26 changes: 19 additions & 7 deletions app/brave_main_delegate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
#include "brave/build/android/jni_headers/BraveQAPreferences_jni.h"
#include "components/signin/public/base/account_consistency_method.h"
#else
#include "chrome/browser/apps/app_discovery_service/app_discovery_features.h"
#include "chrome/browser/browser_features.h"
#include "chrome/browser/ui/profile_picker.h"
#endif
Expand Down Expand Up @@ -228,15 +229,18 @@ bool BraveMainDelegate::BasicStartupComplete(int* exit_code) {

// Disabled features.
std::unordered_set<const char*> disabled_features = {
#if !defined(OS_ANDROID)
apps::kAppDiscoveryRemoteUrlSearch.name,
#endif
autofill::features::kAutofillEnableAccountWalletStorage.name,
autofill::features::kAutofillServerCommunication.name,
blink::features::kComputePressure.name,
blink::features::kConversionMeasurement.name,
blink::features::kFledgeInterestGroupAPI.name,
blink::features::kFledgeInterestGroups.name,
blink::features::kHandwritingRecognitionWebPlatformApiFinch.name,
blink::features::kInterestCohortAPIOriginTrial.name,
blink::features::kInterestCohortFeaturePolicy.name,
blink::features::kLangClientHintHeader.name,
blink::features::kNavigatorPluginsFixed.name,
blink::features::kTextFragmentAnchor.name,
#if !defined(OS_ANDROID)
Expand All @@ -245,25 +249,33 @@ bool BraveMainDelegate::BasicStartupComplete(int* exit_code) {
features::kDirectSockets.name,
features::kIdleDetection.name,
features::kNotificationTriggers.name,
features::kPrivacySandboxSettings.name,
features::kPrivacySandboxSettings2.name,
#if !defined(OS_ANDROID)
features::kSettingsLandingPageRedesign.name,
#endif
features::kSignedExchangePrefetchCacheForNavigations.name,
features::kSignedExchangeSubresourcePrefetch.name,
features::kSubresourceWebBundles.name,
#if defined(OS_ANDROID)
features::kWebNfc.name,
#endif
features::kWebOTP.name,
features::kTabGroupsFeedback.name,
federated_learning::kFederatedLearningOfCohorts.name,
federated_learning::kFlocIdComputedEventLogging.name,
#if defined(OS_ANDROID)
feed::kInterestFeedContentSuggestions.name,
feed::kInterestFeedV2.name,
#endif
media::kLiveCaption.name,
net::features::kFirstPartySets.name,
network::features::kTrustTokens.name,
network_time::kNetworkTimeServiceQuerying.name,
reading_list::switches::kReadLater.name,
#if defined(OS_ANDROID)
features::kWebNfc.name,
feed::kInterestFeedContentSuggestions.name,
feed::kInterestFeedV2.name,
offline_pages::kPrefetchingOfflinePagesFeature.name,
signin::kMobileIdentityConsistency.name,
#endif
reading_list::switches::kReadLater.name,
#if defined(OS_ANDROID)
translate::kTranslate.name,
#endif
};
Expand Down
Loading