diff --git a/.storybook/BUILD.gn b/.storybook/BUILD.gn index ad19d8544ee9..ef6312809e95 100644 --- a/.storybook/BUILD.gn +++ b/.storybook/BUILD.gn @@ -21,7 +21,6 @@ group("storybook") { "//brave/components/brave_wallet/common:mojom_js", "//mojo/public/js:bindings", "//mojo/public/js:resources", - "//ui/webui/resources/js:cr.m", "//ui/webui/resources/js:preprocess", ] diff --git a/android/android_browser_tests.gni b/android/android_browser_tests.gni index ca30a7c21d77..ff58cdddeb28 100644 --- a/android/android_browser_tests.gni +++ b/android/android_browser_tests.gni @@ -122,6 +122,7 @@ android_test_exception_deps = [ "//brave/browser/farbling:browser_tests", "//brave/browser/net:browser_tests", "//brave/browser/permissions:browser_tests", + "//brave/browser/playlist/test:browser_tests", "//brave/browser/test:browser_tests", "//brave/browser/ui:browser_tests", "//brave/browser/ui/tabs/test:browser_tests", diff --git a/android/java/apk_for_test.flags b/android/java/apk_for_test.flags index 5484aa742c89..a9ae555727aa 100644 --- a/android/java/apk_for_test.flags +++ b/android/java/apk_for_test.flags @@ -642,15 +642,13 @@ } -keep class org.chromium.chrome.browser.logo.LogoCoordinator { - *** mShouldShowLogo; + *** mLogoModel; public (...); - *** updateVisibility(...); } -keep class org.chromium.chrome.browser.logo.BraveLogoCoordinator { - *** mShouldShowLogo; + *** mLogoModel; public (...); - *** updateVisibility(...); } diff --git a/android/java/org/chromium/chrome/browser/base/SplitCompatJobIntentService.java b/android/java/org/chromium/chrome/browser/base/SplitCompatJobIntentService.java index 3d264b8388c5..3ac1e4df0e3c 100644 --- a/android/java/org/chromium/chrome/browser/base/SplitCompatJobIntentService.java +++ b/android/java/org/chromium/chrome/browser/base/SplitCompatJobIntentService.java @@ -33,7 +33,7 @@ public SplitCompatJobIntentService(String serviceClassName, String splitName) { @Override protected void attachBaseContext(Context context) { // Make sure specified split is installed, otherwise fall back to chrome split. - if (mSplitName != null && BundleUtils.isIsolatedSplitInstalled(context, mSplitName)) { + if (mSplitName != null && BundleUtils.isIsolatedSplitInstalled(mSplitName)) { context = BundleUtils.createIsolatedSplitContext(context, mSplitName); } else { context = SplitCompatApplication.createChromeContext(context); diff --git a/android/java/org/chromium/chrome/browser/crypto_wallet/util/JavaUtils.java b/android/java/org/chromium/chrome/browser/crypto_wallet/util/JavaUtils.java index 549a23df6ad8..93de8dec3b92 100644 --- a/android/java/org/chromium/chrome/browser/crypto_wallet/util/JavaUtils.java +++ b/android/java/org/chromium/chrome/browser/crypto_wallet/util/JavaUtils.java @@ -5,11 +5,10 @@ package org.chromium.chrome.browser.crypto_wallet.util; -import org.chromium.base.Predicate; - import java.util.ArrayList; import java.util.Collections; import java.util.List; +import java.util.function.Predicate; public class JavaUtils { public static List safeVal(List list) { diff --git a/android/java/org/chromium/chrome/browser/crypto_wallet/util/Utils.java b/android/java/org/chromium/chrome/browser/crypto_wallet/util/Utils.java index fbe26d2086da..8998d775f704 100644 --- a/android/java/org/chromium/chrome/browser/crypto_wallet/util/Utils.java +++ b/android/java/org/chromium/chrome/browser/crypto_wallet/util/Utils.java @@ -62,7 +62,6 @@ import org.chromium.base.CommandLine; import org.chromium.base.ContextUtils; import org.chromium.base.Log; -import org.chromium.base.Predicate; import org.chromium.brave_wallet.mojom.AccountInfo; import org.chromium.brave_wallet.mojom.AssetPriceTimeframe; import org.chromium.brave_wallet.mojom.AssetRatioService; @@ -127,6 +126,7 @@ import java.util.Timer; import java.util.TimerTask; import java.util.concurrent.ExecutorService; +import java.util.function.Predicate; public class Utils { public static int ONBOARDING_FIRST_PAGE_ACTION = 1; diff --git a/android/java/org/chromium/chrome/browser/download/settings/BraveDownloadSettings.java b/android/java/org/chromium/chrome/browser/download/settings/BraveDownloadSettings.java index 1d9914b04383..5fee26e7437a 100644 --- a/android/java/org/chromium/chrome/browser/download/settings/BraveDownloadSettings.java +++ b/android/java/org/chromium/chrome/browser/download/settings/BraveDownloadSettings.java @@ -20,8 +20,6 @@ public class BraveDownloadSettings extends DownloadSettings implements Preference.OnPreferenceChangeListener { private static final String PREF_AUTOMATICALLY_OPEN_WHEN_POSSIBLE = "automatically_open_when_possible"; - private static final String PREF_DOWNLOAD_LATER_PROMPT_ENABLED = - "download_later_prompt_enabled"; public static final String PREF_LOCATION_PROMPT_ENABLED = "location_prompt_enabled"; private static final String PREF_DOWNLOAD_PROGRESS_NOTIFICATION_BUBBLE = "download_progress_notification_bubble"; @@ -49,14 +47,6 @@ public void onCreate(Bundle savedInstanceState) { locationPromptEnabledPref.setTitle( R.string.brave_download_location_prompt_enabled_title); } - - ChromeSwitchPreference downloadLaterPromptEnabledPref = - (ChromeSwitchPreference) findPreference(PREF_DOWNLOAD_LATER_PROMPT_ENABLED); - assert downloadLaterPromptEnabledPref != null : "Upstream applied new changes!"; - - if (downloadLaterPromptEnabledPref != null) { - getPreferenceScreen().removePreference(downloadLaterPromptEnabledPref); - } } @Override diff --git a/android/java/org/chromium/chrome/browser/omnibox/BraveLocationBarCoordinator.java b/android/java/org/chromium/chrome/browser/omnibox/BraveLocationBarCoordinator.java index 29a838e0dd4d..e0f49cf885ca 100644 --- a/android/java/org/chromium/chrome/browser/omnibox/BraveLocationBarCoordinator.java +++ b/android/java/org/chromium/chrome/browser/omnibox/BraveLocationBarCoordinator.java @@ -13,7 +13,6 @@ import org.chromium.base.Callback; import org.chromium.base.jank_tracker.JankTracker; -import org.chromium.base.supplier.BooleanSupplier; import org.chromium.base.supplier.ObservableSupplier; import org.chromium.base.supplier.Supplier; import org.chromium.chrome.browser.back_press.BackPressManager; @@ -36,6 +35,8 @@ import org.chromium.ui.base.WindowDelegate; import org.chromium.ui.modaldialog.ModalDialogManager; +import java.util.function.BooleanSupplier; + public class BraveLocationBarCoordinator extends LocationBarCoordinator { private LocationBarMediator mLocationBarMediator; private View mQRButton; diff --git a/android/java/org/chromium/chrome/browser/omnibox/BraveLocationBarMediator.java b/android/java/org/chromium/chrome/browser/omnibox/BraveLocationBarMediator.java index 7702c40fa062..b7991297ea10 100644 --- a/android/java/org/chromium/chrome/browser/omnibox/BraveLocationBarMediator.java +++ b/android/java/org/chromium/chrome/browser/omnibox/BraveLocationBarMediator.java @@ -15,7 +15,6 @@ import androidx.appcompat.app.AppCompatActivity; import org.chromium.base.BraveReflectionUtil; -import org.chromium.base.supplier.BooleanSupplier; import org.chromium.base.supplier.ObservableSupplier; import org.chromium.base.supplier.OneshotSupplier; import org.chromium.base.supplier.OneshotSupplierImpl; @@ -30,6 +29,8 @@ import org.chromium.ui.base.WindowAndroid; import org.chromium.ui.permissions.PermissionCallback; +import java.util.function.BooleanSupplier; + public class BraveLocationBarMediator extends LocationBarMediator { private WindowAndroid mWindowAndroid; private LocationBarLayout mLocationBarLayout; diff --git a/android/java/org/chromium/chrome/browser/toolbar/BraveToolbarManager.java b/android/java/org/chromium/chrome/browser/toolbar/BraveToolbarManager.java index 15fc4fbbbecd..6d3d6dc80a4a 100644 --- a/android/java/org/chromium/chrome/browser/toolbar/BraveToolbarManager.java +++ b/android/java/org/chromium/chrome/browser/toolbar/BraveToolbarManager.java @@ -15,7 +15,6 @@ import androidx.annotation.Nullable; import androidx.appcompat.app.AppCompatActivity; -import org.chromium.base.ApiCompatibilityUtils; import org.chromium.base.Callback; import org.chromium.base.CallbackController; import org.chromium.base.jank_tracker.JankTracker; @@ -292,8 +291,7 @@ public void initializeWithNative(LayoutManagerImpl layoutManager, newTabClickHandler, mWindowAndroid, mTabCountProvider, mIncognitoStateProvider, mActivity.findViewById(R.id.control_container), closeAllTabsAction); - ApiCompatibilityUtils.setAccessibilityTraversalBefore( - mLocationBar.getContainerView(), R.id.bottom_toolbar); + mLocationBar.getContainerView().setAccessibilityTraversalBefore(R.id.bottom_toolbar); } } diff --git a/android/java/org/chromium/chrome/browser/toolbar/top/BraveTabSwitcherModeTTCoordinator.java b/android/java/org/chromium/chrome/browser/toolbar/top/BraveTabSwitcherModeTTCoordinator.java index 743f9f982405..62075dac02f8 100644 --- a/android/java/org/chromium/chrome/browser/toolbar/top/BraveTabSwitcherModeTTCoordinator.java +++ b/android/java/org/chromium/chrome/browser/toolbar/top/BraveTabSwitcherModeTTCoordinator.java @@ -7,9 +7,10 @@ import android.view.ViewStub; -import org.chromium.base.supplier.BooleanSupplier; import org.chromium.chrome.browser.toolbar.menu_button.MenuButtonCoordinator; +import java.util.function.BooleanSupplier; + class BraveTabSwitcherModeTTCoordinator extends TabSwitcherModeTTCoordinator { private TabSwitcherModeTopToolbar mActiveTabSwitcherToolbar; diff --git a/android/java/org/chromium/chrome/browser/toolbar/top/BraveToolbarLayoutImpl.java b/android/java/org/chromium/chrome/browser/toolbar/top/BraveToolbarLayoutImpl.java index c8c4d952a37b..fd70b7335bff 100644 --- a/android/java/org/chromium/chrome/browser/toolbar/top/BraveToolbarLayoutImpl.java +++ b/android/java/org/chromium/chrome/browser/toolbar/top/BraveToolbarLayoutImpl.java @@ -57,7 +57,6 @@ import org.chromium.base.Log; import org.chromium.base.MathUtils; import org.chromium.base.ThreadUtils; -import org.chromium.base.supplier.BooleanSupplier; import org.chromium.base.supplier.ObservableSupplier; import org.chromium.base.task.AsyncTask; import org.chromium.base.task.PostTask; @@ -154,6 +153,7 @@ import java.util.List; import java.util.Locale; import java.util.Set; +import java.util.function.BooleanSupplier; public abstract class BraveToolbarLayoutImpl extends ToolbarLayout implements BraveToolbarLayout, OnClickListener, View.OnLongClickListener, diff --git a/android/java/org/chromium/chrome/browser/toolbar/top/BraveTopToolbarCoordinator.java b/android/java/org/chromium/chrome/browser/toolbar/top/BraveTopToolbarCoordinator.java index 06ba4e75d62f..a2e3ff88d30e 100644 --- a/android/java/org/chromium/chrome/browser/toolbar/top/BraveTopToolbarCoordinator.java +++ b/android/java/org/chromium/chrome/browser/toolbar/top/BraveTopToolbarCoordinator.java @@ -10,7 +10,6 @@ import android.view.ViewStub; import org.chromium.base.Callback; -import org.chromium.base.supplier.BooleanSupplier; import org.chromium.base.supplier.ObservableSupplier; import org.chromium.base.supplier.OneshotSupplier; import org.chromium.base.supplier.Supplier; @@ -37,6 +36,7 @@ import org.chromium.ui.resources.ResourceManager; import java.util.List; +import java.util.function.BooleanSupplier; public class BraveTopToolbarCoordinator extends TopToolbarCoordinator { private TabSwitcherModeTTCoordinator mTabSwitcherModeCoordinator; diff --git a/android/java/org/chromium/chrome/browser/widget/quickactionsearchandbookmark/QuickActionSearchAndBookmarkWidgetProvider.java b/android/java/org/chromium/chrome/browser/widget/quickactionsearchandbookmark/QuickActionSearchAndBookmarkWidgetProvider.java index d99b19326b84..168bd29cabdc 100644 --- a/android/java/org/chromium/chrome/browser/widget/quickactionsearchandbookmark/QuickActionSearchAndBookmarkWidgetProvider.java +++ b/android/java/org/chromium/chrome/browser/widget/quickactionsearchandbookmark/QuickActionSearchAndBookmarkWidgetProvider.java @@ -29,7 +29,6 @@ import org.json.JSONException; import org.json.JSONObject; -import org.chromium.base.Consumer; import org.chromium.base.ContextUtils; import org.chromium.base.IntentUtils; import org.chromium.chrome.R; @@ -61,6 +60,7 @@ import java.util.Arrays; import java.util.List; import java.util.Objects; +import java.util.function.Consumer; public class QuickActionSearchAndBookmarkWidgetProvider extends AppWidgetProvider { static class QuickActionSearchAndBookmarkWidgetProviderDelegate diff --git a/android/javatests/org/chromium/chrome/browser/BytecodeTest.java b/android/javatests/org/chromium/chrome/browser/BytecodeTest.java index d9862913200e..3392e2e82c4a 100644 --- a/android/javatests/org/chromium/chrome/browser/BytecodeTest.java +++ b/android/javatests/org/chromium/chrome/browser/BytecodeTest.java @@ -27,11 +27,11 @@ import org.chromium.base.Callback; import org.chromium.base.jank_tracker.JankTracker; -import org.chromium.base.supplier.BooleanSupplier; import org.chromium.base.supplier.ObservableSupplier; import org.chromium.base.supplier.ObservableSupplierImpl; import org.chromium.base.supplier.OneshotSupplier; import org.chromium.base.supplier.Supplier; +import org.chromium.base.test.util.Batch; import org.chromium.chrome.browser.app.ChromeActivity; import org.chromium.chrome.browser.back_press.BackPressManager; import org.chromium.chrome.browser.browser_controls.BrowserControlsSizer; @@ -49,6 +49,7 @@ import org.chromium.chrome.browser.fullscreen.FullscreenManager; import org.chromium.chrome.browser.identity_disc.IdentityDiscController; import org.chromium.chrome.browser.lifecycle.ActivityLifecycleDispatcher; +import org.chromium.chrome.browser.logo.LogoCoordinator; import org.chromium.chrome.browser.logo.LogoView; import org.chromium.chrome.browser.multiwindow.MultiWindowModeStateDispatcher; import org.chromium.chrome.browser.ntp.NewTabPageUma; @@ -104,6 +105,7 @@ import org.chromium.components.browser_ui.site_settings.ContentSettingException; import org.chromium.components.browser_ui.site_settings.PermissionInfo; import org.chromium.components.browser_ui.site_settings.SiteSettingsCategory; +import org.chromium.components.browser_ui.site_settings.SiteSettingsDelegate; import org.chromium.components.browser_ui.site_settings.Website; import org.chromium.components.browser_ui.site_settings.WebsiteAddress; import org.chromium.components.browser_ui.widget.displaystyle.UiConfig; @@ -125,12 +127,14 @@ import java.lang.reflect.Field; import java.lang.reflect.Method; import java.util.List; +import java.util.function.BooleanSupplier; /** * Tests to check whether classes, methods and fields exist for bytecode manipulation. * See classes from 'brave/build/android/bytecode/java/org/brave/bytecode' folder. * Classes, methods and fields should be whitelisted in 'brave/android/java/apk_for_test.flags'. */ +@Batch(Batch.PER_CLASS) @RunWith(ChromeJUnit4ClassRunner.class) public class BytecodeTest { @Test @@ -395,9 +399,6 @@ public void testMethodsExist() throws Exception { Assert.assertTrue(methodExists( "org/chromium/components/browser_ui/site_settings/SingleCategorySettings", "resetList", false, null)); - Assert.assertTrue(methodExists( - "org/chromium/components/browser_ui/site_settings/ContentSettingsResources", - "getResourceItem", false, null)); Assert.assertTrue(methodExists( "org/chromium/components/browser_ui/site_settings/SingleWebsiteSettings", "getPreferenceKey", false, null)); @@ -456,8 +457,6 @@ public void testMethodsExist() throws Exception { "isJavascriptSchemeOrInvalidUrl", true, boolean.class, String.class)); Assert.assertTrue(methodExists("org/chromium/chrome/browser/IntentHandler", "extractUrlFromIntent", true, String.class, Intent.class)); - Assert.assertTrue(methodExists("org/chromium/chrome/browser/logo/LogoCoordinator", - "updateVisibility", true, void.class)); Assert.assertTrue(methodExists( "org/chromium/chrome/browser/quickactionsearchwidget/QuickActionSearchWidgetProvider", "setWidgetEnabled", false, null)); @@ -492,13 +491,13 @@ public void testMethodsForInvocationExist() throws Exception { "getResourceItem", true, getClassForPath( "org/chromium/components/browser_ui/site_settings/ContentSettingsResources$ResourceItem"), - int.class)); + int.class, SiteSettingsDelegate.class)); Assert.assertTrue(methodExists( "org/chromium/components/browser_ui/site_settings/ContentSettingsResources", "getResourceItem", true, getClassForPath( "org/chromium/components/browser_ui/site_settings/ContentSettingsResources$ResourceItem"), - int.class)); + int.class, SiteSettingsDelegate.class)); Assert.assertTrue(methodExists( "org/chromium/components/browser_ui/site_settings/SingleCategorySettings", "getAddExceptionDialogMessage", true, String.class)); @@ -727,7 +726,7 @@ public void testConstructorsExistAndMatch() throws Exception { Assert.assertTrue(constructorsMatch("org/chromium/chrome/browser/logo/LogoCoordinator", "org/chromium/chrome/browser/logo/BraveLogoCoordinator", Context.class, Callback.class, LogoView.class, boolean.class, Callback.class, Runnable.class, - boolean.class)); + boolean.class, LogoCoordinator.VisibilityObserver.class)); Assert.assertTrue(constructorsMatch( "org/chromium/chrome/browser/notifications/permissions/NotificationPermissionRationaleDialogController", "org/chromium/chrome/browser/notifications/permissions/BraveNotificationPermissionRationaleDialogController", @@ -923,7 +922,7 @@ public void testFieldsExist() throws Exception { Assert.assertTrue(fieldExists("org/chromium/chrome/browser/omnibox/LocationBarMediator", "mAssistantVoiceSearchServiceSupplier")); Assert.assertTrue( - fieldExists("org/chromium/chrome/browser/logo/LogoCoordinator", "mShouldShowLogo")); + fieldExists("org/chromium/chrome/browser/logo/LogoCoordinator", "mLogoModel")); } @Test diff --git a/app/brave_main_delegate.cc b/app/brave_main_delegate.cc index 52bac84900ad..0179d799090d 100644 --- a/app/brave_main_delegate.cc +++ b/app/brave_main_delegate.cc @@ -144,3 +144,15 @@ void BraveMainDelegate::PreSandboxStartup() { brave::InitializeResourceBundle(); } } + +absl::optional BraveMainDelegate::PostEarlyInitialization( + ChromeMainDelegate::InvokedIn invoked_in) { + auto result = ChromeMainDelegate::PostEarlyInitialization(invoked_in); + BraveCommandLineHelper command_line(base::CommandLine::ForCurrentProcess()); + std::string update_url = GetUpdateURLHost(); + if (!update_url.empty()) { + std::string source = "url-source=" + update_url; + command_line.AppendSwitchASCII(switches::kComponentUpdater, source.c_str()); + } + return result; +} diff --git a/app/brave_main_delegate.h b/app/brave_main_delegate.h index e7b0783dd9b6..0adc8fe4b8e6 100644 --- a/app/brave_main_delegate.h +++ b/app/brave_main_delegate.h @@ -6,8 +6,6 @@ #ifndef BRAVE_APP_BRAVE_MAIN_DELEGATE_H_ #define BRAVE_APP_BRAVE_MAIN_DELEGATE_H_ -#include - #include "build/build_config.h" #include "chrome/app/chrome_main_delegate.h" @@ -29,6 +27,8 @@ class BraveMainDelegate : public ChromeMainDelegate { content::ContentRendererClient* CreateContentRendererClient() override; content::ContentUtilityClient* CreateContentUtilityClient() override; void PreSandboxStartup() override; + absl::optional PostEarlyInitialization( + ChromeMainDelegate::InvokedIn invoked_in) override; }; #endif // BRAVE_APP_BRAVE_MAIN_DELEGATE_H_ diff --git a/app/brave_main_delegate_browsertest.cc b/app/brave_main_delegate_browsertest.cc index 1a751c56a4e5..7cf3a6a617fe 100644 --- a/app/brave_main_delegate_browsertest.cc +++ b/app/brave_main_delegate_browsertest.cc @@ -5,6 +5,8 @@ #include "brave/components/update_client/buildflags.h" #include "build/build_config.h" +#include "chrome/browser/browser_features.h" +#include "chrome/browser/dips/dips_features.h" #include "chrome/browser/domain_reliability/service_factory.h" #include "chrome/browser/enterprise/connectors/analysis/content_analysis_features.h" #include "chrome/browser/preloading/prefetch/prefetch_proxy/prefetch_proxy_features.h" @@ -44,11 +46,11 @@ #include "android_webview/common/aw_features.h" #include "chrome/test/base/android/android_browser_test.h" #else -#include "chrome/browser/browser_features.h" #include "chrome/browser/ui/profile_picker.h" #include "chrome/browser/ui/ui_features.h" #include "chrome/test/base/in_process_browser_test.h" #include "components/translate/core/common/translate_util.h" +#include "extensions/common/extension_features.h" #endif using BraveMainDelegateBrowserTest = PlatformBrowserTest; @@ -86,7 +88,10 @@ IN_PROC_BROWSER_TEST_F(BraveMainDelegateBrowserTest, DisabledFeatures) { // Please, keep alphabetized const base::Feature* disabled_features[] = { #if BUILDFLAG(IS_ANDROID) + &android_webview::features::kWebViewAppsPackageNamesServerSideAllowlist, &android_webview::features::kWebViewClientHintsControllerDelegate, + &android_webview::features::kWebViewEnumerateDevicesCache, + &android_webview::features::kWebViewMeasureScreenCoverage, #endif &autofill::features::kAutofillEnableAccountWalletStorage, &autofill::features::kAutofillEnableOfferNotificationForPromoCodes, @@ -104,11 +109,16 @@ IN_PROC_BROWSER_TEST_F(BraveMainDelegateBrowserTest, DisabledFeatures) { &blink::features::kCssSelectorFragmentAnchor, &blink::features::kFencedFrames, &blink::features::kFledge, + &blink::features::kFledgeConsiderKAnonymity, + &blink::features::kFledgeEnforceKAnonymity, &blink::features::kInterestGroupStorage, &blink::features::kParakeet, &blink::features::kPrerender2, + &blink::features::kPrerender2InBackground, &blink::features::kPrivacySandboxAdsAPIs, &blink::features::kSharedStorageAPI, + &blink::features::kSpeculationRulesHeaderEnableThirdPartyOriginTrial, + &blink::features::kSpeculationRulesPrefetchFuture, &blink::features::kSpeculationRulesPrefetchProxy, &blink::features::kTextFragmentAnchor, &commerce::kCommerceAllowOnDemandBookmarkUpdates, @@ -118,7 +128,11 @@ IN_PROC_BROWSER_TEST_F(BraveMainDelegateBrowserTest, DisabledFeatures) { &commerce::kShoppingList, &commerce::kShoppingPDPMetrics, &commerce::kRetailCoupons, + &dips::kFeature, &enterprise_connectors::kLocalContentAnalysisEnabled, +#if !BUILDFLAG(IS_ANDROID) + &extensions_features::kExtensionsManifestV3Only, +#endif #if BUILDFLAG(IS_WIN) &features::kAppBoundEncryptionMetrics, #endif @@ -128,11 +142,13 @@ IN_PROC_BROWSER_TEST_F(BraveMainDelegateBrowserTest, DisabledFeatures) { &features::kDigitalGoodsApi, &features::kEarlyHintsPreloadForNavigation, &features::kFedCm, + &features::kFedCmIframeSupport, + &features::kFedCmUserInfo, + &features::kFedCmWithoutThirdPartyCookies, &features::kFirstPartySets, &features::kIdleDetection, &features::kIsolatePrerenders, &features::kKAnonymityService, - &features::kNavigationRequestPreconnect, &features::kNotificationTriggers, &features::kOmniboxTriggerForNoStatePrefetch, &features::kPrivacyGuide2, @@ -159,7 +175,7 @@ IN_PROC_BROWSER_TEST_F(BraveMainDelegateBrowserTest, DisabledFeatures) { &net::features::kNoncedPartitionedCookies, &net::features::kPartitionedCookies, &net::features::kSamePartyAttributeEnabled, - &network::features::kTrustTokens, + &network::features::kPrivateStateTokens, &network_time::kNetworkTimeServiceQuerying, &optimization_guide::features::kOptimizationHints, &optimization_guide::features::kRemoteOptimizationGuideFetching, @@ -198,7 +214,6 @@ IN_PROC_BROWSER_TEST_F(BraveMainDelegateBrowserTest, EnabledFeatures) { #endif &media::kEnableTabMuting, &net::features::kPartitionConnectionsByNetworkIsolationKey, - &net::features::kPartitionExpectCTStateByNetworkIsolationKey, &net::features::kPartitionHttpServerPropertiesByNetworkIsolationKey, &net::features::kPartitionSSLSessionsByNetworkIsolationKey, &net::features::kSplitHostCacheByNetworkIsolationKey, diff --git a/app/brave_strings.grd b/app/brave_strings.grd index e4c995db357e..0558b30549ac 100644 --- a/app/brave_strings.grd +++ b/app/brave_strings.grd @@ -977,6 +977,15 @@ Permissions you've already given to websites and apps may apply to this account. Brave is using your camera. + + + + {NUM_DEVICES, plural, + =1 {Brave is connected to a HID device} + other {Brave is connected to HID devices}} + + + diff --git a/app/brave_strings_override.grd b/app/brave_strings_override.grd index 5747a646218c..ea41f21a3133 100644 --- a/app/brave_strings_override.grd +++ b/app/brave_strings_override.grd @@ -229,6 +229,9 @@ Permissions you've already given to websites and apps may apply to this account. + + + diff --git a/app/extensions_strings.grdp b/app/extensions_strings.grdp index 9989501e6eae..d29b68a9285f 100644 --- a/app/extensions_strings.grdp +++ b/app/extensions_strings.grdp @@ -124,6 +124,9 @@ This extension can read and change your data on sites. You can control which sites the extension can access. + + Learn more about extension permissions + Edit @@ -419,6 +422,9 @@ Always on this site + + Site settings + All extensions allowed @@ -452,14 +458,17 @@ Site URL - - Edit shortcut + + Shortcut $1 for $2 + + + Edit shortcut $1 for $2 Not set - Scope + Scope of $1 for $2 Global diff --git a/app/generated_resources.grd b/app/generated_resources.grd index 50f9798d0ca0..3686da068f29 100644 --- a/app/generated_resources.grd +++ b/app/generated_resources.grd @@ -788,12 +788,6 @@ are declared in tools/grit/grit_rule.gni. Search page with $1Google Lens - - Search any part of the page with $1Google Lens - - - Search inside image with $1Google Lens - Search images with $1Google Lens @@ -1057,12 +1051,6 @@ are declared in tools/grit/grit_rule.gni. Search Page with $1Brave - - Search Any Part of the Page with $1Google Lens - - - Search inside Image with $1Google Lens - Search Images with $1Google Lens @@ -1855,7 +1843,7 @@ are declared in tools/grit/grit_rule.gni. $1bla.exe is being scanned. - + $1bla.exe can't be downloaded securely @@ -1876,10 +1864,10 @@ are declared in tools/grit/grit_rule.gni. This file is dangerous - + $1bla.exe can't be downloaded securely - + $1bla.exe can't be downloaded securely @@ -1897,7 +1885,7 @@ are declared in tools/grit/grit_rule.gni. This type of file may harm your computer. - + This file can't be downloaded securely @@ -1926,7 +1914,7 @@ are declared in tools/grit/grit_rule.gni. - + Insecure download blocked @@ -2089,10 +2077,10 @@ are declared in tools/grit/grit_rule.gni. Downloading $152.7 MB, $2somedocument.pdf - Downloading, $133% remaining + Downloading $1somedocument.pdf, $233% remaining - Downloading, $142 mins left + Downloading $1somedocument.pdf, $242 mins left Download unsuccessful: $1somedocument.pdf @@ -2136,17 +2124,17 @@ are declared in tools/grit/grit_rule.gni. - + $1file.exe is being scanned. - + $1file.exe can't be downloaded securely. - + $1file.exe can't be downloaded securely. Press Shift+F6 to cycle to the downloads bar area. @@ -2206,7 +2194,7 @@ are declared in tools/grit/grit_rule.gni. &More information - + &Learn more @@ -2257,7 +2245,7 @@ are declared in tools/grit/grit_rule.gni. &More Information - + &Learn More @@ -2381,6 +2369,9 @@ are declared in tools/grit/grit_rule.gni. Delete + + $1bla.exe $2blocked dangerous more details + Resume @@ -2507,35 +2498,66 @@ are declared in tools/grit/grit_rule.gni. Anyone using this device can see downloaded files - + Resume - + + Resume $1bla.exe + + Pause - + + Pause $1bla.exe + + Cancel - + + Cancel $1bla.exe + + Open + + Open $1bla.exe + - + Show in Finder + + Show $1bla.exe in Finder + - + Show in folder + + Show $1bla.exe in folder + - + Show in Folder + + Show $1bla.exe in Folder + + + + Back to recent downloads + + + + + Back to Recent Downloads + + @@ -3673,6 +3695,22 @@ are declared in tools/grit/grit_rule.gni. Switch to captured tab + + + Casting this tab + + + Casting a tab + + + Casting $1youtube.com + + + Cast this tab instead + + + Stop casting + @@ -4763,18 +4801,6 @@ are declared in tools/grit/grit_rule.gni. Click to allow on $1google.com: - - Always allow "$1Gmail Checker" to run on $2google.com? - - - Always allow these extensions to run on $1google.com? - - - Always allow - - - No thanks - Allowed to read & change @@ -5239,6 +5265,24 @@ Keep your key file in a safe place. You will need it to create new versions of y + + + Ask your admin to update this app + + + Brave Apps are migrating to Progressive Web Apps. This Brave App was installed on your browser by your organization. To open the Progressive Web App from the Apps list, first contact your administrator and ask them to uninstall the Brave App. In the meantime, you can visit $1sheets.google.com to open $2Brave Sheets on the web. + + + + Go To Site + + + + + Go to site + + + $12 apps are no longer supported @@ -5372,6 +5416,9 @@ Keep your key file in a safe place. You will need it to create new versions of y Discover more extensions + + Requests access + @@ -5704,6 +5751,20 @@ Keep your key file in a safe place. You will need it to create new versions of y In Brave Password Manager for $1user@gmail.com + + + Brave Password Manager $1user@gmail.com + + + To your Brave sync chain, for $1user@gmail.com + + + In your Brave sync chain, for $1user@gmail.com + + + Only on this device + + Sign In @@ -6331,6 +6392,9 @@ Keep your key file in a safe place. You will need it to create new versions of y Doodle Link + + Appearance + Background @@ -6349,6 +6413,9 @@ Keep your key file in a safe place. You will need it to create new versions of y Classic Brave + + Uploaded image + Upload from device @@ -6358,6 +6425,9 @@ Keep your key file in a safe place. You will need it to create new versions of y Don't show shortcuts on this page + + Show shortcuts + My shortcuts @@ -6780,12 +6850,6 @@ Keep your key file in a safe place. You will need it to create new versions of y Got extensions? <a href="chrome://extensions">Manage your extensions</a> in one easy place. - - - Top sites - - - @@ -6816,11 +6880,6 @@ Keep your key file in a safe place. You will need it to create new versions of y - - - {NUM_BOOKMARKS, plural, =1 {1 bookmark} other {# bookmarks}} - - @@ -6902,9 +6961,6 @@ Keep your key file in a safe place. You will need it to create new versions of y - - $1All Bookmarks ($2Newest) - Sort by $1Newest @@ -6926,8 +6982,35 @@ Keep your key file in a safe place. You will need it to create new versions of y Z to A + + Visual view + + + Compact view + - Sort Options + View List Options + + + Create New Folder + + + Edit Bookmark List + + + You'll find your bookmarks here + + + Bookmark things you want to come back to later + + + Sign in to see your bookmarks + + + Bookmarks are unavailable in guest mode + + + {NUM_BOOKMARKS, plural, =1 {1 bookmark} other {# bookmarks}} @@ -7449,6 +7532,9 @@ Keep your key file in a safe place. You will need it to create new versions of y + + Nicely Done! + Right-click on a tab and select "Add Tab To New Group" @@ -7485,6 +7571,23 @@ Keep your key file in a safe place. You will need it to create new versions of y Try using tab groups to organize tasks, for online shopping, and more + + + Click the side panel icon to open it + + + Now add the current tab to your list + + + Select “Mark as read” to move the page to the bottom of your list + + + Click the drop down to choose another panel + + + Try using the side panel for bookmarks, journeys, and more + + @@ -7751,9 +7854,6 @@ Check your passwords anytime in $1Brave P Update - - Update... - Continue @@ -8170,6 +8270,12 @@ Check your passwords anytime in $1Brave P Previous track + + Previous slide + + + Next slide + @@ -8509,6 +8615,9 @@ Check your passwords anytime in $1Brave P + + Tab-group title + Save group @@ -9823,11 +9932,11 @@ Check your passwords anytime in $1Brave P Autofill - - History + + Extensions - - Extensions and more + + History and more You can always choose what to sync in settings. Brave may personalize Search and other services based on your history. @@ -11145,9 +11254,12 @@ Please help our engineers fix this problem. Tell us what happened right before y Microphone is turned off in Mac System Preferences - + Open Preferences + + Open Settings + Camera @@ -11510,9 +11622,6 @@ Please help our engineers fix this problem. Tell us what happened right before y Remove the suggestion $1Harry Potter - - Append the suggestion $1Harry Potter to search box - New tab @@ -11918,6 +12027,9 @@ Please help our engineers fix this problem. Tell us what happened right before y Camera + + Geolocation + File Info @@ -11938,6 +12050,22 @@ Please help our engineers fix this problem. Tell us what happened right before y $1Nexus 5 detected + + + + An extension is using a HID device + + + Click to manage permissions for "$1Brave Translate" + + + Manage HID devices + + + Manage HID devices for $1Nina@gmail.com + + + @@ -12286,6 +12414,18 @@ Please help our engineers fix this problem. Tell us what happened right before y Brave is being controlled by automated test software. + + + Brave for Testing v + $1109.0.5369.0 + is only for automated testing. For regular browsing, use a standard version of Brave that updates automatically. + + + + + Download Brave + + @@ -12570,6 +12710,12 @@ Please help our engineers fix this problem. Tell us what happened right before y This device doesn't support the type of security key requested by this website + + No passkeys available + + + There aren't any passkeys for $1google.com on this device + Turn on Bluetooth? @@ -13106,6 +13252,11 @@ Please help our engineers fix this problem. Tell us what happened right before y Open now + + + Get more protection against dangerous websites and downloads + + Enhanced Safe Browsing is on @@ -13386,14 +13537,8 @@ Please help our engineers fix this problem. Tell us what happened right before y - Drag over any image to search - - Select image area to search - - Select any part of the page to search - Thumbnail tab strip for tablet mode @@ -13607,69 +13752,157 @@ Please help our engineers fix this problem. Tell us what happened right before y Settings - - - - Assistant - - - Automatic password change - - - Let Brave Assistant help you change your password - - - Brave Assistant in Brave can complete actions across websites for you - - - To help you complete tasks, Brave will receive the URLs and contents of sites on which you use Assistant, as well as information you submit through Assistant. This information may be stored in your Brave sync chain. You can turn off Assistant in Brave settings. $1Learn more - - - Learn more - - - Learn more about automatic password change - - - Cancel - - - I agree - - - Opening $1example.com... - - - Successfully changed the compromised password - - - Check your email to choose a new password - - - Check your passwords anytime in $1Brave Password Manager. - - - Done - - - OK - - - Something went wrong. - - - Check the site and try changing your password. - - - Try again - - - Your password didn't change. To change it, try again and leave this tab and side panel open. $1Try again - - - Brave Assistant stopped - - + + + Lorem ipsum Consent + + + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis pretium pulvinar metus non mollis. Quisque placerat eget nisl sit amet facilisis. + + + Nulla in tortor a ligula scelerisque laoreet. Sed sem velit, varius non purus vitae, imperdiet porttitor elit. Integer et libero id metus egestas consequat non a ipsum. + + + Vestibulum pretium placerat justo vel suscipit. Quisque urna arcu, elementum ut venenatis ornare, consequat ac turpis. + + + Vestibulum orci risus, consectetur + + + Vestibulum pretium placerat justo vel suscipit. Quisque urna arcu, elementum ut venenatis ornare, consequat ac turpis. + + + Consectetur + + + Quisque + + + Lorem + + + Esed purus vestibulum velit convalli + + + <b>Nulla in tortor: </b> a ligula scelerisque laoreet. Sed sem velit, varius non purus vitae, imperdiet porttitor elit. + + + <b>Consectetur adipiscing elit:</b> Duis pretium pulvinar metus non mollis + + + <b>Sed purus vestibulum:</b> velit convallis suscipit. Aenean aliquam ut velit eget dapibus. Vestibulum orci risus, consectetur non odio vulputate, mattis dignissim purus. Cras id tempor mi. + + + Esed purus vestibulum velit convalli + + + Sed ullamcorper, ligula ac tempus venenatis + + + + Lorem ipsum Notice EEA + + + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis pretium pulvinar metus non mollis. Quisque placerat eget nisl sit amet facilisis. + + + Nulla in tortor: a ligula scelerisque laoreet. Sed sem velit, varius non purus vitae, imperdiet porttitor elit. + + + Sed purus vestibulum: velit convallis suscipit. Aenean aliquam ut velit eget dapibus. Vestibulum orci risus, consectetur non odio vulputate, mattis dignissim purus. Cras id tempor mi. + + + Vestibulum orci risus, consectetur + + + Consectetur adipiscing elit duis pretium pulvinar metus non mollis + + + Sed + + + Cras id + + + Esed purus vestibulum velit convalli + + + Nulla in tortor a ligula scelerisque laoreet. Sed sem velit, varius non purus vitae, imperdiet porttitor elit. Integer et libero id metus egestas consequat non a ipsum. + + + Proin sed purus vestibulum velit velit eget dapibus. + + + <b>Nulla in tortor:</b> a ligula scelerisque laoreet. Sed sem velit, varius non purus vitae, imperdiet porttitor elit. + + + <b>Consectetur adipiscing elit:</b> Duis pretium pulvinar metus non mollis + + + <b>Sed purus vestibulum:</b> velit convallis suscipit. Aenean aliquam ut velit eget dapibus. Vestibulum orci risus, consectetur non odio vulputate, mattis dignissim purus. Cras id tempor mi. + + + + Lorem ipsum Notice ROW + + + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis pretium pulvinar metus non mollis. + + + Nulla in tortor a ligula scelerisque laoreet. Sed sem velit, varius non purus vitae, imperdiet porttitor elit. Integer et libero id metus egestas consequat non a ipsum. Quisque placerat eget nisl sit amet facilisis. + + + Vestibulum pretium placerat justo vel suscipit. Quisque urna arcu, elementum ut venenatis ornare, consequat ac turpis. Vestibulum orci risus, consectetur non odio vulputate, mattis dignissim purus. Cras id tempor mi. + + + Proin sed purus vestibulum velit convallis suscipit eget dapibus. + + + Sed + + + Cras id + + + Vestibulum orci risus consectetur + + + Esed purus vestibulum velit convalli + + + Etiam dictum sem et neque molestie lobortis. Morbi quam tellus, tincidunt eget dapibus ac, lobortis et lacus. Integer nec egestas elit. Nulla venenatis facilisis dui eget suscipit. + + + Class aptent taciti sociosqu ad + + + Vestibulum pretium placerat justo vel suscipit. Quisque urna arcu. + + + Sed elementum tellus condimentum quam vestibulum lacinia. Ut eu lobortis massa, venenatis sodales lacus. Nulla elementum magna et tortor efficitur, at volutpat metus varius. + + + Duis tempor nulla nisi, ac bibendum lorem tempus sit amet. Proin non blandit risus. Maecenas facilisis enim nec tristique tristique. Eelementum ut venenatis ornare, consequat ac turpis. Vestibulum orci risus, consectetur non odio vulputate, mattis dignissim purus. Cras id tempor mi. + + + Etiam hendrerit turpis nibh, ac maximus lectus placerat at. Vivamus ligula quam, posuere luctus felis eu, dictum egestas arcu. per conubia nostra, per inceptos himenaeos. Cras ut metus vel est molestie finibus nec ut orci. + + + Aliquam euismod scelerisque metus, in aliquet est vehicula ut. Curabitur sit amet ligula quis ante maximus gravida non id magna. Pellentesque interdum venenatis leo, at ultrices felis mollis nec. Integer vulputate velit eget mauris lacinia, ut ullamcorper mauris vehicula. + + + Orci varius natoque penatibus et + + + Suspendisse at dui pulvinar, rhoncus orci at, porttitor nibh. Curabitur lacinia nulla sem, eu euismod dolor vulputate quis. Duis mattis eros et arcu elementum tempor. Duis pharetra eleifend sagittis. + + + Cras sed lacus suscipit, efficitur erat nec, semper sapien. Fusce at nunc molestie, elementum augue at, auctor nunc. Sed dui nisi, consectetur sit amet urna vitae, facilisis scelerisque justo. + + + Ut venenatis magna nec lacus facilisis + + diff --git a/app/generated_resources_override.grd b/app/generated_resources_override.grd index e821d2425b9b..9ebac55a5671 100644 --- a/app/generated_resources_override.grd +++ b/app/generated_resources_override.grd @@ -339,6 +339,10 @@ are declared in tools/grit/grit_rule.gni. + + + + @@ -511,6 +515,10 @@ are declared in tools/grit/grit_rule.gni. + + + + @@ -550,6 +558,8 @@ are declared in tools/grit/grit_rule.gni. + + @@ -595,9 +605,6 @@ are declared in tools/grit/grit_rule.gni. See memories of your favorite profiles and more - - - @@ -1014,7 +1021,10 @@ are declared in tools/grit/grit_rule.gni. - + + + + @@ -1138,8 +1148,6 @@ are declared in tools/grit/grit_rule.gni. - - diff --git a/app/os_settings_search_tag_strings.grdp b/app/os_settings_search_tag_strings.grdp index 54631115a97f..93d7415633f5 100644 --- a/app/os_settings_search_tag_strings.grdp +++ b/app/os_settings_search_tag_strings.grdp @@ -117,9 +117,12 @@ Rename eSIM profile - + Mobile networks + + Hotspot + Turn off Instant Tethering diff --git a/app/os_settings_strings.grdp b/app/os_settings_strings.grdp index 68d14d4448ac..ce3015c89665 100644 --- a/app/os_settings_strings.grdp +++ b/app/os_settings_strings.grdp @@ -41,6 +41,12 @@ Search result $11 of $22: $3Network Settings. Press Enter to navigate to section. + + Report this search result + + + #Settings No search results returned for '$1'query + @@ -319,27 +325,6 @@ Touch the power button with your finger - - The fingerprint sensor is in the power button. Touch it lightly with any finger. - - - Touch the fingerprint sensor with your finger - - - The fingerprint sensor is the bottom left-hand key on your keyboard. Touch it lightly with any finger. - - - The fingerprint sensor is the bottom right-hand key on your keyboard. Touch it lightly with any finger. - - - The fingerprint sensor is the top right-hand key on your keyboard. Touch it lightly with any finger. - - - The fingerprint sensor is on the right-hand side of your $1Chromebook. Touch it lightly with any finger. - - - The fingerprint sensor is on the left-hand side of your $1Chromebook. Touch it lightly with any finger. - @@ -1249,6 +1234,90 @@ Use Ctrl + Alt + Brightness down to zoom out. Hear specific text read aloud. First, select the Select-to-speak icon on the bottom of your screen, then highlight text. + + Speech + + + Language + + + Device language + + + Voice + + + System voice settings + + + System voice + + + Voice preview + + + Default natural voice + + + Natural voice preview + + + Highlight + + + Highlight each word as it is spoken + + + Automatically change language to match selected content + + + Use natural voice when device is online + + + Text will be sent to Brave for processing. + + + Natural voice + + + $1English (United States) Voice $22 + + + Highlight color + + + Blue + + + Orange + + + Yellow + + + Green + + + Pink + + + Dark background + + + Light background + + + Dim background content + + + The quick brown fox jumped over the lazy dog. + + + Navigation controls + + + Provides controls to speed up, slow down, and pause the reading voice + Hear specific text read aloud. First, select the Select-to-speak icon on the bottom of your screen, then highlight text. You can also use a keyboard shortcut: Highlight text, then press Search + S. @@ -1629,6 +1698,9 @@ Press an assigned switch or key to remove assignment. Mono audio, startup, Live Caption, and more + + Select-to-speak settings + @@ -1731,7 +1803,7 @@ Press an assigned switch or key to remove assignment. Cancel - + Manage shared folders @@ -1936,16 +2008,21 @@ Press an assigned switch or key to remove assignment. Container name - IP + IP address + + + Share microphone + + + App badge color Create a new container - - - This container and VM name combination already exists. + + This container already exists. - + Container name cannot be empty. @@ -2068,7 +2145,18 @@ Press an assigned switch or key to remove assignment. Give Bruschetta permission to access USB devices. Bruschetta won't remember a USB device after it's removed. - + + + Shared folders are available in Bruschetta at $1/mnt/chromeos. + + + To share, right-click on a folder in Files app, then select "Share with Bruschetta". + + + Couldn't unshare because an application is using this folder. The folder will be unshared when Bruschetta is next shut down. + Google Play Store @@ -2795,6 +2883,27 @@ Press an assigned switch or key to remove assignment. VPN details + + Hotspot details + + + Uses your Chromebook’s mobile data and your carrier may charge additional fees. May increase battery usage. <a target="_blank" href="$1">Learn more</a> + + + Hotspot enable + + + On + + + Off + + + Hotspot enabled + + + Hotspot disabled + Wi-Fi networks @@ -2819,6 +2928,9 @@ Press an assigned switch or key to remove assignment. Network + + Hotspot + $1Mobile Data - $2Verizon Wireless @@ -3592,6 +3704,12 @@ Press an assigned switch or key to remove assignment. Local data can be restored if you forget your password + + Disable local data recovery? + + + You will not be able to recover local data if you forget your password or PIN. + @@ -4157,6 +4275,10 @@ Press an assigned switch or key to remove assignment. Set date and time + + + Per-device Keyboard + Keyboard @@ -4271,6 +4393,9 @@ Press an assigned switch or key to remove assignment. App badging + + Show notification dot on app icon + Google Play Store @@ -4492,6 +4617,9 @@ Press an assigned switch or key to remove assignment. No microphone + + To turn on microphone access, turn on the physical microphone switch on your device + Location access diff --git a/app/password_manager_ui_strings.grdp b/app/password_manager_ui_strings.grdp index 5baf1b569acf..6fb49c969670 100644 --- a/app/password_manager_ui_strings.grdp +++ b/app/password_manager_ui_strings.grdp @@ -49,12 +49,18 @@ Add saved passwords to Brave Password Manager - + Export passwords Download a copy to use elsewhere + + Your passwords will be visible to anyone who can see the exported file. + + + Exporting passwords... + Password Checkup @@ -115,4 +121,45 @@ Sites which never save passwords will appear here + + {COUNT, plural, + =1 {{COUNT} account} + other {{COUNT} accounts}} + + + Username + + + Sites + + + Password + + + Notes + + + No notes saved + + + Copy password + + + Copy username + + + Show password + + + Hide password + + + Signed in with + + + Username copied to clipboard + + + Password copied to clipboard + diff --git a/app/settings_brave_strings.grdp b/app/settings_brave_strings.grdp index 047ba61d7fd5..bc6532dc3a46 100644 --- a/app/settings_brave_strings.grdp +++ b/app/settings_brave_strings.grdp @@ -269,14 +269,6 @@ Sign in to sync and personalize Brave across your devices - - - Brave Assistant in Brave - - - Brave Assistant in Brave can complete actions across websites for you - - When on, Brave frees up memory from inactive tabs. This gives active tabs and other apps more computer resources and keeps Brave fast. Your inactive tabs automatically become active again when you go back to them. <a id="highEfficiencyLearnMore" target="_blank" href="$1" aria-label="$2">Learn more</a> diff --git a/app/settings_strings.grdp b/app/settings_strings.grdp index c027da503b21..14835453099b 100644 --- a/app/settings_strings.grdp +++ b/app/settings_strings.grdp @@ -8,6 +8,9 @@ Continue + + Got it + More actions @@ -699,9 +702,6 @@ When you edit your passkey, your $1relyingPartyId account won't change - - Got it - Saved addresses will appear here @@ -893,6 +893,9 @@ Password is more than 1000 characters + + Note is more than 1000 characters + A password for this account is already saved to your Brave Password Manager (elisa.g.becket@gmail.com$1) @@ -1002,8 +1005,8 @@ - - Use TouchID when filling passwords + + Use your screen lock when filling passwords @@ -1537,6 +1540,9 @@ No languages added + + Remove $1Swahili + Brave Translate @@ -1546,8 +1552,14 @@ Automatically translate these languages + + Add languages to automatically translate + - Don’t offer to translate these languages + Never offer to translate these languages + + + Add languages to never offer translation Spell check @@ -1622,6 +1634,50 @@ + + + Preload pages + + + Choose whether to preload pages + + + No preloading + + + Pages load only after you open them. + + + Standard preloading + + + Some of the pages you visit are preloaded. + + + Browsing and searching is faster. + + + Brave preloads pages you're likely to visit, so that they load more quickly when you visit them. + + + Extended preloading + + + More pages are preloaded. Pages may be preloaded through Brave servers when requested by other sites. + + + Browsing and searching is faster than standard preloading. + + + Brave preloads even more pages that you're likely to visit, so that they load more quickly when you visit them. + + + When a site asks to privately preload links on their page, Brave uses Brave servers. This hides your identity from the preloaded site, but Brave learns what sites get preloaded. + + + If you allow cookies, Brave may use them when preloading. + + Privacy and security @@ -1758,17 +1814,111 @@ Spam and fraud reduction - - Spam & fraud reduction relies on trust tokens to help sites fight fraud and distinguish bots from profiles. + + Spam & fraud reduction relies on private state tokens to help sites fight fraud and distinguish bots from profiles. - - When trials are on, Spam & fraud reduction relies on trust tokens to help sites fight fraud and distinguish bots from profiles. + + When trials are on, Spam & fraud reduction relies on private state tokens to help sites fight fraud and distinguish bots from profiles. - - Based on your interaction with a site, like regularly signing in to an account, that site can issue a trust token to your browser. Later, if other sites you visit check for and find a valid trust token, they're more likely to treat you like a profile and not a bot. + + Based on your interaction with a site, like regularly signing in to an account, that site can issue a private state token to your browser. Later, if other sites you visit check for and find a valid private state token, they're more likely to treat you like a profile and not a bot. - Trust tokens improve privacy on the web and can't be used to find out who you are. + Private state tokens improve privacy on the web and can't be used to find out who you are. + + + + + Donec semper + + + Fusce purus nibh, dictum sit amet mi in, fringilla ullamcorper tortor + + + + + Donec semper + + + Mauris interdum lectus vitae lacinia + + + Enabled Nulla eros tortor, placerat blandit dictum a, interdum id metus + + + Disabled Nulla eros tortor, placerat blandit dictum a, interdum id metus + + + Aenean erat leo + + + Enabled Duis scelerisque a mi eget ultricies + + + Disabled Duis scelerisque a mi eget ultricies + + + Vestibulum augue erat + + + Enabled Vivamus id lacus et lacus porttitor vulputate. Sed semper egestas orci vel maximus. + + + Disabled Vivamus id lacus et lacus porttitor vulputate. Sed semper egestas orci vel maximus. + + + + + Mauris interdum lectus vitae lacinia + + + Nunc gravida condimentum consectetur + + + Vivamus nibh turpis, varius quis nisi vel, porta laoreet tellus. Mauris porta imperdiet venenatis + + + Mauris at lectus + + + Nulla tincidunt iaculis nulla, sit amet viverra massa luctus nec. Integer eget pellentesque magna, et venenatis lorem. Integer a porta elit. Eget bibendum neque. + + + Sed porta viverra lacus ut euismod. Integer a cursus metus, ac ultricies libero. + + + Curabitur sagittis sapien ut turpis interdum, vitae porttitor sem pretium. Vestibulum sem mauris, ultrices ac massa sit amet, sodales aliquet est. + + + + + Aenean erat leo + + + + + Vestibulum augue + + + Vestibulum augue erat + + + Vestibulum eleifend nunc a viverra congue. Integer nec mauris rutrum, porta mauris et, pellentesque ligula. Nam et pulvinar eros, in gravida nisl. + + + Mauris + + + Aenean + + + Praesent sodales, magna eget volutpat iaculis, justo odio viverra justo, id venenatis est est sit amet ex + + + Nunc metus est, faucibus sit amet lacus sit amet, aliquet rutrum libero. Maecenas vel euismod ante. + + + Mauris mattis urna elit. Phasellus quis erat sapien. Praesent finibus pellentesque iaculis. Mauris hendrerit metus at enim rhoncus bibendum. @@ -1972,8 +2122,49 @@ Review - - Permissions removed from unused websites + + Allow permissions again for $1website.com + + + Allow again + + + Review removed permissions + + + {NUM_SITES, plural, + =1 {Permissions removed from <b>1 site</b> you haven’t visited in a while} + other {Permissions removed from <b>{NUM_SITES} sites</b> you haven’t visited in a while}} + + + Removed $1location + + + Removed $1location, $2notifications + + + Removed $1location, $2notifications, $3camera + + + Removed $1location, $2notifications, and $32 more + + + {NUM_SITES, plural, + =1 {Permissions removed for 1 site} + other {Permissions removed for {NUM_SITES} sites}} + + + {NUM_SITES, plural, + =1 {To protect your data, permissions were removed from a site you haven't visited in 2 months} + other {To protect your data, permissions were removed from sites you haven't visited in 2 months}} + + + {NUM_SITES, plural, + =1 {Review complete for 1 site} + other {Review complete for {NUM_SITES} sites}} + + + Permissions allowed again for $1www.example.com Updates @@ -2040,11 +2231,16 @@ {NUM_SITES, plural, - =1 {Review 1 site that recently sent a lot of notifications} - other {Review {NUM_SITES} sites that recently sent a lot of notifications}} + =1 {Review 1 site that sent a lot of notifications} + other {Review {NUM_SITES} sites that sent a lot of notifications}} + + + Review notification permissions - These sites sent a lot of notifications recently. You can stop them from sending future notifications. + {NUM_SITES, plural, + =1 {This site sent a lot of notifications recently. You can stop it from sending future notifications.} + other {These sites sent a lot of notifications recently. You can stop them from sending future notifications.}} Notifications allowed for $1www.example.com @@ -2060,9 +2256,6 @@ =1 {About 1 notification a day} other {About {NUM_NOTIFICATION} notifications a day}} - - All done for now - Don't allow @@ -2084,9 +2277,6 @@ More actions for $1website.com - - Undo - {NUM_SITES, plural, =1 {Review <b>1 site</b> that recently sent a lot of notifications} @@ -2100,6 +2290,12 @@ =1 {Notifications not allowed for 1 site} other {Notifications not allowed for {NUM_SITES} sites}} + + All done for now + + + Undo + Device software @@ -2232,7 +2428,7 @@ Permissions and content settings - + Controls what information sites can use and show (location, camera, pop-ups, and more) @@ -2276,6 +2472,11 @@ Determines how to connect to websites over a secure connection + + + Determines how to connect to websites over a secure connection. This uses a managed service provider at $1https://dns.example.net/dns-query{?dns} + + With your current service provider @@ -2389,6 +2590,9 @@ Reset all settings + + Learn more about resetting settings + @@ -3778,6 +3982,9 @@ Encrypt synced data with your own <a href="$1" target="_blank"><a href="$1" target="_blank">sync passphrase</a></a>. This doesn't include payment methods and addresses from Google Pay. + + Encrypt synced data with your own <a href="$1" target="_blank"><a href="$1" target="_blank">sync passphrase</a></a>. Payment methods and addresses from Google Pay won’t be encrypted. Browsing history from Brave won’t sync. + Only someone with your passphrase can read your encrypted data. The passphrase is not sent to or stored by Brave. If you forget your passphrase or want to change this setting, you'll need to <a href="$1" target="_blank"><a href="$1" target="_blank">reset sync</a></a>. diff --git a/app/settings_strings_override.grdp b/app/settings_strings_override.grdp index fc4d401d7b5c..a0c064c889e1 100644 --- a/app/settings_strings_override.grdp +++ b/app/settings_strings_override.grdp @@ -96,14 +96,14 @@ Help sites fight fraud and distinguish bots from profiles - - Spam & fraud reduction relies on trust tokens to help sites fight fraud and distinguish bots from profiles. + + Spam & fraud reduction relies on private state tokens to help sites fight fraud and distinguish bots from profiles. - - When trials are on, Spam & fraud reduction relies on trust tokens to help sites fight fraud and distinguish bots from profiles. + + When trials are on, Spam & fraud reduction relies on private state tokens to help sites fight fraud and distinguish bots from profiles. - - Based on your interaction with a site, like regularly signing in to an account, that site can issue a trust token to your browser. Later, if other sites you visit check for and find a valid trust token, they're more likely to treat you like a profile and not a bot. + + Based on your interaction with a site, like regularly signing in to an account, that site can issue a private state token to your browser. Later, if other sites you visit check for and find a valid private state token, they're more likely to treat you like a profile and not a bot. Block third-party cookies in Private @@ -119,6 +119,8 @@ + + diff --git a/app/supervised_user_error_page_strings.grdp b/app/supervised_user_error_page_strings.grdp index c5a2c50cf7e8..79d44401340d 100644 --- a/app/supervised_user_error_page_strings.grdp +++ b/app/supervised_user_error_page_strings.grdp @@ -5,9 +5,6 @@ Site blocked - - You need permission from $1John Doe to visit this site - Ask your parent @@ -23,9 +20,6 @@ A parent or guardian has to say that it's OK for you to visit this website - - Questions? Contact the profile who supervises your profile. - Go back @@ -44,12 +38,6 @@ Ask permission - - Your request to access this site has been sent to $1John Doe - - - Your request to access this site could not be sent to $1John Doe. Please try again. - You asked your parent if it's OK to visit this site diff --git a/app/supervised_user_error_page_strings_override.grdp b/app/supervised_user_error_page_strings_override.grdp index ef668480114b..af47cca74f5a 100644 --- a/app/supervised_user_error_page_strings_override.grdp +++ b/app/supervised_user_error_page_strings_override.grdp @@ -1,8 +1,5 @@ - - Questions? Contact the profile who supervises your profile. - Ask in profile diff --git a/app/theme/brave/android/res_brave_base/values/channel_constants.xml b/app/theme/brave/android/res_brave_base/values/channel_constants.xml index a2682b2ad75e..4759d6a86c02 100644 --- a/app/theme/brave/android/res_brave_base/values/channel_constants.xml +++ b/app/theme/brave/android/res_brave_base/values/channel_constants.xml @@ -9,5 +9,4 @@ Brave bookmarks Brave search Brave quick action search - Brave dino diff --git a/app/theme/brave/android/res_brave_beta_base/values/channel_constants.xml b/app/theme/brave/android/res_brave_beta_base/values/channel_constants.xml index 0c789dd5e67a..08ee9332ba16 100644 --- a/app/theme/brave/android/res_brave_beta_base/values/channel_constants.xml +++ b/app/theme/brave/android/res_brave_beta_base/values/channel_constants.xml @@ -11,5 +11,4 @@ Brave bookmarks Brave search Brave quick action search - Brave dino diff --git a/app/theme/brave/android/res_brave_default_base/values/channel_constants.xml b/app/theme/brave/android/res_brave_default_base/values/channel_constants.xml index 470c2bc3842a..6c19ba4a5398 100644 --- a/app/theme/brave/android/res_brave_default_base/values/channel_constants.xml +++ b/app/theme/brave/android/res_brave_default_base/values/channel_constants.xml @@ -9,5 +9,4 @@ Brave bookmarks Brave search Brave quick action search - Brave dino diff --git a/app/theme/brave/android/res_brave_dev_base/values/channel_constants.xml b/app/theme/brave/android/res_brave_dev_base/values/channel_constants.xml index 43f202e5ee37..9ae924fefd1b 100644 --- a/app/theme/brave/android/res_brave_dev_base/values/channel_constants.xml +++ b/app/theme/brave/android/res_brave_dev_base/values/channel_constants.xml @@ -11,5 +11,4 @@ Brave bookmarks Brave search Brave quick action search - Brave dino diff --git a/app/theme/brave/android/res_brave_nightly_base/values/channel_constants.xml b/app/theme/brave/android/res_brave_nightly_base/values/channel_constants.xml index 1c9b04aead6a..bcd336dcd3dd 100644 --- a/app/theme/brave/android/res_brave_nightly_base/values/channel_constants.xml +++ b/app/theme/brave/android/res_brave_nightly_base/values/channel_constants.xml @@ -11,5 +11,4 @@ Brave bookmarks Brave search Brave quick action search - Brave dino diff --git a/app/theme/brave/android/values/channel_constants.xml b/app/theme/brave/android/values/channel_constants.xml index 470c2bc3842a..6c19ba4a5398 100644 --- a/app/theme/brave/android/values/channel_constants.xml +++ b/app/theme/brave/android/values/channel_constants.xml @@ -9,5 +9,4 @@ Brave bookmarks Brave search Brave quick action search - Brave dino diff --git a/browser/brave_ads/brave_stats_updater_helper_browsertest.cc b/browser/brave_ads/brave_stats_updater_helper_browsertest.cc index 9a1dab2a8e05..99b3d91c86fd 100644 --- a/browser/brave_ads/brave_stats_updater_helper_browsertest.cc +++ b/browser/brave_ads/brave_stats_updater_helper_browsertest.cc @@ -66,7 +66,7 @@ class BraveStatsUpdaterHelperBrowserTest : public PlatformBrowserTest { IN_PROC_BROWSER_TEST_F(BraveStatsUpdaterHelperBrowserTest, PrimaryProfileEnabledUpdate) { - Profile* primary_profile = profile_manager_->GetPrimaryUserProfile(); + Profile* primary_profile = profile_manager_->GetLastUsedProfile(); EXPECT_EQ(local_state_->GetBoolean(ads::prefs::kEnabledForLastProfile), false); diff --git a/browser/brave_browser_main_parts.cc b/browser/brave_browser_main_parts.cc index 566a1f50ca8b..bbc5b5d2fd65 100644 --- a/browser/brave_browser_main_parts.cc +++ b/browser/brave_browser_main_parts.cc @@ -107,7 +107,7 @@ void BraveBrowserMainParts::PostBrowserStart() { storage.AddProfile(std::move(params)); } - profile_manager->MaybeScheduleProfileForDeletion( + profile_manager->GetDeleteProfileHelper().MaybeScheduleProfileForDeletion( tor_legacy_path, base::DoNothing(), ProfileMetrics::DELETE_PROFILE_SETTINGS); } @@ -117,7 +117,7 @@ void BraveBrowserMainParts::PostBrowserStart() { .Append(brave::kSessionProfileDir) .Append(tor::kTorProfileDir); if (base::PathExists(tor_legacy_session_path)) { - profile_manager->MaybeScheduleProfileForDeletion( + profile_manager->GetDeleteProfileHelper().MaybeScheduleProfileForDeletion( tor_legacy_session_path, base::DoNothing(), ProfileMetrics::DELETE_PROFILE_SETTINGS); } diff --git a/browser/brave_shields/https_everywhere_component_installer.cc b/browser/brave_shields/https_everywhere_component_installer.cc index 65d7b096c900..2ed01d619723 100644 --- a/browser/brave_shields/https_everywhere_component_installer.cc +++ b/browser/brave_shields/https_everywhere_component_installer.cc @@ -54,14 +54,14 @@ class HTTPSEverywhereComponentInstallerPolicy bool SupportsGroupPolicyEnabledComponentUpdates() const override; bool RequiresNetworkEncryption() const override; update_client::CrxInstaller::Result OnCustomInstall( - const base::Value& manifest, + const base::Value::Dict& manifest, const base::FilePath& install_dir) override; void OnCustomUninstall() override; - bool VerifyInstallation(const base::Value& manifest, + bool VerifyInstallation(const base::Value::Dict& manifest, const base::FilePath& install_dir) const override; void ComponentReady(const base::Version& version, const base::FilePath& path, - base::Value manifest) override; + base::Value::Dict manifest) override; base::FilePath GetRelativeInstallDir() const override; void GetHash(std::vector* hash) const override; std::string GetName() const override; @@ -110,7 +110,7 @@ bool HTTPSEverywhereComponentInstallerPolicy::RequiresNetworkEncryption() update_client::CrxInstaller::Result HTTPSEverywhereComponentInstallerPolicy::OnCustomInstall( - const base::Value& manifest, + const base::Value::Dict& manifest, const base::FilePath& install_dir) { return update_client::CrxInstaller::Result(0); } @@ -120,7 +120,7 @@ void HTTPSEverywhereComponentInstallerPolicy::OnCustomUninstall() {} void HTTPSEverywhereComponentInstallerPolicy::ComponentReady( const base::Version& version, const base::FilePath& path, - base::Value manifest) { + base::Value::Dict manifest) { if (g_browser_process->IsShuttingDown()) return; @@ -128,7 +128,7 @@ void HTTPSEverywhereComponentInstallerPolicy::ComponentReady( } bool HTTPSEverywhereComponentInstallerPolicy::VerifyInstallation( - const base::Value& manifest, + const base::Value::Dict& manifest, const base::FilePath& install_dir) const { return true; } diff --git a/browser/brave_wallet/blockchain_images_source.cc b/browser/brave_wallet/blockchain_images_source.cc index f76b31474616..86df73713bc5 100644 --- a/browser/brave_wallet/blockchain_images_source.cc +++ b/browser/brave_wallet/blockchain_images_source.cc @@ -11,7 +11,6 @@ #include "base/files/file_path.h" #include "base/files/file_util.h" #include "base/memory/ref_counted_memory.h" -#include "base/task/task_runner_util.h" #include "base/task/thread_pool.h" #include "brave/components/brave_wallet/browser/brave_wallet_constants.h" #include "brave/components/brave_wallet/browser/wallet_data_files_installer.h" diff --git a/browser/component_updater/brave_component_installer.cc b/browser/component_updater/brave_component_installer.cc index 6821802b910b..153a58f938ae 100644 --- a/browser/component_updater/brave_component_installer.cc +++ b/browser/component_updater/brave_component_installer.cc @@ -31,13 +31,13 @@ using InstallError = update_client::InstallError; namespace { bool RewriteManifestFile(const base::FilePath& extension_root, - const base::Value& manifest, + const base::Value::Dict& manifest, const std::string& public_key) { // Add the public key DCHECK(!public_key.empty()); - base::Value final_manifest = manifest.Clone(); - final_manifest.SetStringKey("key", public_key); + base::Value::Dict final_manifest = manifest.Clone(); + final_manifest.Set("key", public_key); std::string manifest_json; JSONStringValueSerializer serializer(&manifest_json); @@ -55,9 +55,9 @@ bool RewriteManifestFile(const base::FilePath& extension_root, return true; } -std::string GetManifestString(base::Value* manifest, +std::string GetManifestString(base::Value::Dict* manifest, const std::string& public_key) { - manifest->SetStringKey("key", public_key); + manifest->Set("key", public_key); std::string manifest_json; JSONStringValueSerializer serializer(&manifest_json); @@ -85,7 +85,7 @@ BraveComponentInstallerPolicy::BraveComponentInstallerPolicy( BraveComponentInstallerPolicy::~BraveComponentInstallerPolicy() = default; bool BraveComponentInstallerPolicy::VerifyInstallation( - const base::Value& manifest, + const base::Value::Dict& manifest, const base::FilePath& install_dir) const { // The manifest file will generate a random ID if we don't provide one. // We want to write one with the actual extensions public key so we get @@ -108,7 +108,7 @@ bool BraveComponentInstallerPolicy::RequiresNetworkEncryption() const { update_client::CrxInstaller::Result BraveComponentInstallerPolicy::OnCustomInstall( - const base::Value& manifest, + const base::Value::Dict& manifest, const base::FilePath& install_dir) { return Result(InstallError::NONE); } @@ -118,7 +118,7 @@ void BraveComponentInstallerPolicy::OnCustomUninstall() {} void BraveComponentInstallerPolicy::ComponentReady( const base::Version& version, const base::FilePath& install_dir, - base::Value manifest) { + base::Value::Dict manifest) { ready_callback_.Run(install_dir, GetManifestString(&manifest, base64_public_key_)); } diff --git a/browser/component_updater/brave_component_installer.h b/browser/component_updater/brave_component_installer.h index eae21cfd652a..61c6cff39bed 100644 --- a/browser/component_updater/brave_component_installer.h +++ b/browser/component_updater/brave_component_installer.h @@ -39,17 +39,17 @@ class BraveComponentInstallerPolicy private: // The following methods override ComponentInstallerPolicy - bool VerifyInstallation(const base::Value& manifest, + bool VerifyInstallation(const base::Value::Dict& manifest, const base::FilePath& install_dir) const override; bool SupportsGroupPolicyEnabledComponentUpdates() const override; bool RequiresNetworkEncryption() const override; update_client::CrxInstaller::Result OnCustomInstall( - const base::Value& manifest, + const base::Value::Dict& manifest, const base::FilePath& install_dir) override; void OnCustomUninstall() override; void ComponentReady(const base::Version& version, const base::FilePath& install_dir, - base::Value manifest) override; + base::Value::Dict manifest) override; base::FilePath GetRelativeInstallDir() const override; void GetHash(std::vector* hash) const override; std::string GetName() const override; diff --git a/browser/component_updater/brave_component_updater_configurator.cc b/browser/component_updater/brave_component_updater_configurator.cc index 280e67db2768..a24d07e1b48c 100644 --- a/browser/component_updater/brave_component_updater_configurator.cc +++ b/browser/component_updater/brave_component_updater_configurator.cc @@ -57,11 +57,11 @@ BraveConfigurator::BraveConfigurator( BraveConfigurator::~BraveConfigurator() = default; -double BraveConfigurator::InitialDelay() const { +base::TimeDelta BraveConfigurator::InitialDelay() const { return configurator_impl_.InitialDelay(); } -int BraveConfigurator::NextCheckDelay() const { +base::TimeDelta BraveConfigurator::NextCheckDelay() const { auto* command = base::CommandLine::ForCurrentProcess(); if (command->HasSwitch(switches::kComponentUpdateIntervalInSec)) { int interval = 0; @@ -69,17 +69,17 @@ int BraveConfigurator::NextCheckDelay() const { switches::kComponentUpdateIntervalInSec), &interval)) { DCHECK_GE(interval, 1); - return interval; + return base::Seconds(interval); } } return configurator_impl_.NextCheckDelay(); } -int BraveConfigurator::OnDemandDelay() const { +base::TimeDelta BraveConfigurator::OnDemandDelay() const { return configurator_impl_.OnDemandDelay(); } -int BraveConfigurator::UpdateDelay() const { +base::TimeDelta BraveConfigurator::UpdateDelay() const { return configurator_impl_.UpdateDelay(); } diff --git a/browser/component_updater/brave_component_updater_configurator.h b/browser/component_updater/brave_component_updater_configurator.h index 172e0df76e47..1f2df2ce8a05 100644 --- a/browser/component_updater/brave_component_updater_configurator.h +++ b/browser/component_updater/brave_component_updater_configurator.h @@ -12,6 +12,7 @@ #include "base/memory/raw_ptr.h" #include "base/memory/ref_counted.h" +#include "base/time/time.h" #include "components/component_updater/configurator_impl.h" #include "components/update_client/configurator.h" #include "third_party/abseil-cpp/absl/types/optional.h" @@ -35,10 +36,10 @@ class BraveConfigurator : public update_client::Configurator { PrefService* pref_service); // update_client::Configurator overrides. - double InitialDelay() const override; - int NextCheckDelay() const override; - int OnDemandDelay() const override; - int UpdateDelay() const override; + base::TimeDelta InitialDelay() const override; + base::TimeDelta NextCheckDelay() const override; + base::TimeDelta OnDemandDelay() const override; + base::TimeDelta UpdateDelay() const override; std::vector UpdateUrl() const override; std::vector PingUrl() const override; std::string GetProdId() const override; diff --git a/browser/ethereum_remote_client/ethereum_remote_client_service.cc b/browser/ethereum_remote_client/ethereum_remote_client_service.cc index 7b756957c73d..f5db3ec25b81 100644 --- a/browser/ethereum_remote_client/ethereum_remote_client_service.cc +++ b/browser/ethereum_remote_client/ethereum_remote_client_service.cc @@ -13,7 +13,6 @@ #include "base/files/file_util.h" #include "base/strings/string_util.h" #include "base/strings/stringprintf.h" -#include "base/task/task_runner_util.h" #include "base/task/thread_pool.h" #include "brave/browser/ethereum_remote_client/ethereum_remote_client_constants.h" #include "brave/browser/ethereum_remote_client/ethereum_remote_client_delegate.h" diff --git a/browser/ethereum_remote_client/ethereum_remote_client_service.h b/browser/ethereum_remote_client/ethereum_remote_client_service.h index ae88df98317a..e6e67ed4bbf9 100644 --- a/browser/ethereum_remote_client/ethereum_remote_client_service.h +++ b/browser/ethereum_remote_client/ethereum_remote_client_service.h @@ -16,7 +16,6 @@ #include "base/memory/weak_ptr.h" #include "base/values.h" #include "components/keyed_service/core/keyed_service.h" -#include "extensions/buildflags/buildflags.h" #include "url/gurl.h" class EthereumRemoteClientDelegate; diff --git a/browser/extensions/api/ipfs_api.cc b/browser/extensions/api/ipfs_api.cc index 15ddd881c6ad..521743fe23c2 100644 --- a/browser/extensions/api/ipfs_api.cc +++ b/browser/extensions/api/ipfs_api.cc @@ -12,7 +12,6 @@ #include "base/files/file_util.h" #include "base/json/json_writer.h" -#include "base/task/task_runner_util.h" #include "base/task/thread_pool.h" #include "base/values.h" #include "brave/browser/ipfs/ipfs_service_factory.h" diff --git a/browser/extensions/ethereum_remote_client_unittest.cc b/browser/extensions/ethereum_remote_client_unittest.cc index 6f86b1aa5f18..367bda65fce1 100644 --- a/browser/extensions/ethereum_remote_client_unittest.cc +++ b/browser/extensions/ethereum_remote_client_unittest.cc @@ -39,7 +39,7 @@ class BraveWalletUnitTest : public testing::Test { } PrefService* GetPrefs() { - return ProfileManager::GetActiveUserProfile()->GetPrefs(); + return ProfileManager::GetLastUsedProfile()->GetPrefs(); } content::BrowserTaskEnvironment task_environment_; @@ -131,8 +131,7 @@ TEST_F(BraveWalletUnitTest, TestLoadFromPrefs) { std::string cipher_seed; std::string nonce; ASSERT_TRUE(EthereumRemoteClientService::LoadFromPrefs( - ProfileManager::GetActiveUserProfile()->GetPrefs(), &cipher_seed, - &nonce)); + ProfileManager::GetLastUsedProfile()->GetPrefs(), &cipher_seed, &nonce)); constexpr std::array expected_nonce = { 200, 153, 224, 40, 58, 249, 156, 33, 152, 207, 177, 12}; @@ -156,7 +155,7 @@ TEST_F(BraveWalletUnitTest, TestSaveToPrefs) { 213, 68, 187, 103, 16, 138, 166, 0, 6, 128, 179, 64, 55, 160, 219, 8, 222, 231, 48, 93, 132, 131, 178, 177}; EthereumRemoteClientService::SaveToPrefs( - ProfileManager::GetActiveUserProfile()->GetPrefs(), + ProfileManager::GetLastUsedProfile()->GetPrefs(), std::string(cipher_seed.begin(), cipher_seed.end()), std::string(nonce.begin(), nonce.end())); @@ -166,7 +165,7 @@ TEST_F(BraveWalletUnitTest, TestSaveToPrefs) { } TEST_F(BraveWalletUnitTest, MaybeLoadCryptoWalletsExtension) { - auto* profile = ProfileManager::GetActiveUserProfile(); + auto* profile = ProfileManager::GetLastUsedProfile(); std::unique_ptr service( new EthereumRemoteClientService( profile, std::make_unique())); diff --git a/browser/extensions/mv2_warning_unittest.cc b/browser/extensions/mv2_warning_unittest.cc index 2b6ee95d1399..9396fb8053c0 100644 --- a/browser/extensions/mv2_warning_unittest.cc +++ b/browser/extensions/mv2_warning_unittest.cc @@ -25,15 +25,15 @@ TEST(Mv2WarningTest, ExtensionManifestVersions) { .Set("description", "An awesome extension"); if (manifest_version) builder.Set("manifest_version", *manifest_version); - return builder.Build(); + return builder.BuildDict(); }; std::string error; scoped_refptr extension = extensions::Extension::Create( base::FilePath(), extensions::mojom::ManifestLocation::kUnpacked, - *get_manifest(2).get(), - extensions::Extension::InitFromValueFlags::NO_FLAGS, &error); + get_manifest(2), extensions::Extension::InitFromValueFlags::NO_FLAGS, + &error); ASSERT_NE(extension, nullptr); diff --git a/browser/ipfs/import/ipfs_import_controller.cc b/browser/ipfs/import/ipfs_import_controller.cc index d7a9f6b58764..0c9e28382394 100644 --- a/browser/ipfs/import/ipfs_import_controller.cc +++ b/browser/ipfs/import/ipfs_import_controller.cc @@ -13,7 +13,6 @@ #include "base/files/file_util.h" #include "base/guid.h" #include "base/strings/utf_string_conversions.h" -#include "base/task/task_runner_util.h" #include "base/task/thread_pool.h" #include "brave/browser/ipfs/import/save_package_observer.h" #include "brave/browser/ipfs/ipfs_service_factory.h" @@ -171,8 +170,8 @@ void IpfsImportController::ImportCurrentPageToIpfs() { } web_contents_->Stop(); - base::PostTaskAndReplyWithResult( - file_task_runner_.get(), FROM_HERE, + file_task_runner_->PostTaskAndReplyWithResult( + FROM_HERE, base::BindOnce(&CreateTempDownloadDirectory, GetDirectoryNameForWebPageImport(web_contents_->GetURL())), base::BindOnce(&IpfsImportController::SaveWebPage, diff --git a/browser/profiles/brave_profile_manager_browsertest.cc b/browser/profiles/brave_profile_manager_browsertest.cc index df7c652b636a..127f40344b6b 100644 --- a/browser/profiles/brave_profile_manager_browsertest.cc +++ b/browser/profiles/brave_profile_manager_browsertest.cc @@ -1,7 +1,7 @@ -// Copyright 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 http://mozilla.org/MPL/2.0/. +/* 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/. */ #include @@ -140,7 +140,7 @@ IN_PROC_BROWSER_TEST_F(BraveProfileManagerTest, ExcludeServicesInOTRAndGuestProfiles) { ProfileManager* profile_manager = g_browser_process->profile_manager(); ASSERT_TRUE(profile_manager); - Profile* profile = ProfileManager::GetActiveUserProfile(); + Profile* profile = ProfileManager::GetLastUsedProfile(); Profile* otr_profile = profile->GetPrimaryOTRProfile(/*create_if_needed=*/true); @@ -185,8 +185,7 @@ IN_PROC_BROWSER_TEST_F(BraveProfileManagerTest, #if !BUILDFLAG(IS_ANDROID) IN_PROC_BROWSER_TEST_F(BraveProfileManagerTest, PRE_MediaRouterDisabledRestartTest) { - Profile* profile = - g_browser_process->profile_manager()->GetPrimaryUserProfile(); + Profile* profile = g_browser_process->profile_manager()->GetLastUsedProfile(); { profile->GetPrefs()->SetBoolean(::prefs::kEnableMediaRouter, true); profile->GetPrefs()->SetBoolean(kEnableMediaRouterOnRestart, false); @@ -197,8 +196,7 @@ IN_PROC_BROWSER_TEST_F(BraveProfileManagerTest, IN_PROC_BROWSER_TEST_F(BraveProfileManagerTest, MediaRouterDisabledRestartTest) { - Profile* profile = - g_browser_process->profile_manager()->GetPrimaryUserProfile(); + Profile* profile = g_browser_process->profile_manager()->GetLastUsedProfile(); { EXPECT_FALSE(profile->GetPrefs()->GetBoolean(::prefs::kEnableMediaRouter)); EXPECT_FALSE(profile->GetPrefs()->GetBoolean(kEnableMediaRouterOnRestart)); @@ -207,8 +205,7 @@ IN_PROC_BROWSER_TEST_F(BraveProfileManagerTest, IN_PROC_BROWSER_TEST_F(BraveProfileManagerTest, PRE_MediaRouterEnabledRestartTest) { - Profile* profile = - g_browser_process->profile_manager()->GetPrimaryUserProfile(); + Profile* profile = g_browser_process->profile_manager()->GetLastUsedProfile(); { profile->GetPrefs()->SetBoolean(::prefs::kEnableMediaRouter, false); profile->GetPrefs()->SetBoolean(kEnableMediaRouterOnRestart, true); @@ -218,8 +215,7 @@ IN_PROC_BROWSER_TEST_F(BraveProfileManagerTest, } IN_PROC_BROWSER_TEST_F(BraveProfileManagerTest, MediaRouterEnabledRestartTest) { - Profile* profile = - g_browser_process->profile_manager()->GetPrimaryUserProfile(); + Profile* profile = g_browser_process->profile_manager()->GetLastUsedProfile(); { EXPECT_TRUE(profile->GetPrefs()->GetBoolean(::prefs::kEnableMediaRouter)); EXPECT_TRUE(profile->GetPrefs()->GetBoolean(kEnableMediaRouterOnRestart)); diff --git a/browser/profiles/profile_util_unittest.cc b/browser/profiles/profile_util_unittest.cc index b1062e90d384..ac9784c46dac 100644 --- a/browser/profiles/profile_util_unittest.cc +++ b/browser/profiles/profile_util_unittest.cc @@ -1,7 +1,7 @@ -// Copyright 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 http://mozilla.org/MPL/2.0/. +/* 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/. */ #include "brave/browser/profiles/profile_util.h" @@ -29,11 +29,9 @@ class BraveProfileUtilTest : public testing::Test { ASSERT_TRUE(testing_profile_manager_.SetUp(temp_dir_.GetPath())); } - Profile* GetProfile() { return ProfileManager::GetActiveUserProfile(); } + Profile* GetProfile() { return ProfileManager::GetLastUsedProfile(); } - PrefService* GetPrefs() { - return ProfileManager::GetActiveUserProfile()->GetPrefs(); - } + PrefService* GetPrefs() { return GetProfile()->GetPrefs(); } content::BrowserTaskEnvironment task_environment_; TestingProfileManager testing_profile_manager_; diff --git a/browser/resources/extensions/brave_item_list_more_items.ts b/browser/resources/extensions/brave_item_list_more_items.ts index 91c6fdea94be..e1ee46eefb1f 100644 --- a/browser/resources/extensions/brave_item_list_more_items.ts +++ b/browser/resources/extensions/brave_item_list_more_items.ts @@ -6,7 +6,7 @@ import {PolymerElement} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js' import {I18nMixin, I18nMixinInterface} from 'chrome://resources/cr_elements/i18n_mixin.js' import 'chrome://resources/cr_elements/cr_shared_style.css.js' -import 'chrome://resources/js/cr.m.js' +import 'chrome://resources/js/cr.js' import {getTemplate} from './brave_item_list_more_items.html.js' const ExtensionsBraveItemListMoreItemsElementBase = diff --git a/browser/resources/federated_internals/BUILD.gn b/browser/resources/federated_internals/BUILD.gn index a0ad7ebb33b4..e89748659722 100644 --- a/browser/resources/federated_internals/BUILD.gn +++ b/browser/resources/federated_internals/BUILD.gn @@ -1,6 +1,7 @@ -# Copyright 2022 The Chromium Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. +# Copyright (c) 2022 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/. import("//brave/resources/brave_grit.gni") import("//chrome/common/features.gni") @@ -74,8 +75,7 @@ js_type_check("closure_compile") { js_library("federated_internals") { deps = [ ":federated_internals_browser_proxy", - "//ui/webui/resources/js:assert", - "//ui/webui/resources/js:util", + "//ui/webui/resources:library", ] } @@ -83,7 +83,6 @@ js_library("federated_internals_browser_proxy") { deps = [ "//brave/browser/ui/webui/brave_federated:mojo_bindings_webui_js", "//brave/components/brave_federated/public/interfaces:interfaces_webui_js", - "//ui/webui/resources/js:assert", - "//ui/webui/resources/js:util", + "//ui/webui/resources:library", ] } diff --git a/browser/resources/settings/brave_appearance_page/brave_appearance_browser_proxy.ts b/browser/resources/settings/brave_appearance_page/brave_appearance_browser_proxy.ts index db8e1a8397e1..9fc6b2f1dc3c 100644 --- a/browser/resources/settings/brave_appearance_page/brave_appearance_browser_proxy.ts +++ b/browser/resources/settings/brave_appearance_page/brave_appearance_browser_proxy.ts @@ -1,8 +1,9 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public +/* Copyright (c) 2022 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/. */ -import {sendWithPromise} from 'chrome://resources/js/cr.m.js'; +import {sendWithPromise} from 'chrome://resources/js/cr.js'; /** @interface */ export interface BraveAppearanceBrowserProxy { diff --git a/browser/resources/settings/brave_appearance_page/brave_theme.ts b/browser/resources/settings/brave_appearance_page/brave_theme.ts index adadb81d602c..f182fe40a89b 100644 --- a/browser/resources/settings/brave_appearance_page/brave_theme.ts +++ b/browser/resources/settings/brave_appearance_page/brave_theme.ts @@ -53,7 +53,7 @@ export class SettingsBraveAppearanceThemeElement extends SettingsBraveAppearance override ready() { super.ready() - this.addWebUIListener('brave-theme-type-changed', (type: number) => { + this.addWebUiListener('brave-theme-type-changed', (type: number) => { this.braveThemeType_ = type; }) this.browserProxy_.getBraveThemeList().then((list) => { diff --git a/browser/resources/settings/brave_appearance_page/super_referral.ts b/browser/resources/settings/brave_appearance_page/super_referral.ts index e6613ae755ae..914a5b7365e4 100644 --- a/browser/resources/settings/brave_appearance_page/super_referral.ts +++ b/browser/resources/settings/brave_appearance_page/super_referral.ts @@ -4,7 +4,7 @@ // you can obtain one at https://mozilla.org/MPL/2.0/. import {PolymerElement} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js'; -import {assert} from 'chrome://resources/js/assert.js'; +import {assert} from 'chrome://resources/js/assert_ts.js'; import {I18nMixin, I18nMixinInterface} from 'chrome://resources/cr_elements/i18n_mixin.js' import {loadTimeData} from "../i18n_setup.js" import {AppearanceBrowserProxy, AppearanceBrowserProxyImpl} from '../appearance_page/appearance_browser_proxy.js'; diff --git a/browser/resources/settings/brave_clear_browsing_data_dialog/brave_clear_browsing_data_dialog_behavior.ts b/browser/resources/settings/brave_clear_browsing_data_dialog/brave_clear_browsing_data_dialog_behavior.ts index 95a7f3295596..5ea41e6a5ea4 100644 --- a/browser/resources/settings/brave_clear_browsing_data_dialog/brave_clear_browsing_data_dialog_behavior.ts +++ b/browser/resources/settings/brave_clear_browsing_data_dialog/brave_clear_browsing_data_dialog_behavior.ts @@ -20,7 +20,7 @@ export class BraveSettingsClearBrowsingDataDialogElement extends BaseElement { // Append On exit tab to tab selector. this.tabsNames_.push(loadTimeData.getString('onExitPageTitle')); - this.addWebUIListener( + this.addWebUiListener( 'update-counter-text', this.updateOnExitCountersText.bind(this)); } diff --git a/browser/resources/settings/brave_default_extensions_page/brave_default_extensions_browser_proxy.ts b/browser/resources/settings/brave_default_extensions_page/brave_default_extensions_browser_proxy.ts index c0ca5a1d0e7b..a4ce2cb33edd 100644 --- a/browser/resources/settings/brave_default_extensions_page/brave_default_extensions_browser_proxy.ts +++ b/browser/resources/settings/brave_default_extensions_page/brave_default_extensions_browser_proxy.ts @@ -3,7 +3,7 @@ // 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/. -import {sendWithPromise} from 'chrome://resources/js/cr.m.js' +import {sendWithPromise} from 'chrome://resources/js/cr.js' import {loadTimeData} from '../i18n_setup.js'; export interface BraveDefaultExtensionsBrowserProxy { diff --git a/browser/resources/settings/brave_default_extensions_page/brave_default_extensions_page.ts b/browser/resources/settings/brave_default_extensions_page/brave_default_extensions_page.ts index 1ca694ce3bff..a0833599d9f7 100644 --- a/browser/resources/settings/brave_default_extensions_page/brave_default_extensions_page.ts +++ b/browser/resources/settings/brave_default_extensions_page/brave_default_extensions_page.ts @@ -58,8 +58,9 @@ export class SettingBraveDefaultExtensionsPageElement extends SettingBraveDefaul override ready() { super.ready() - this.addWebUIListener('brave-needs-restart-changed', (needsRestart: boolean) => { - this.showRestartToast_ = needsRestart + this.addWebUiListener( + 'brave-needs-restart-changed', (needsRestart: boolean) => { + this.showRestartToast_ = needsRestart }) this.browserProxy_.getRestartNeeded().then(show => { this.showRestartToast_ = show @@ -68,7 +69,7 @@ export class SettingBraveDefaultExtensionsPageElement extends SettingBraveDefaul // PrefControlMixin checks for a pref being valid, so have to fake it, // same as upstream. const setWidevineEnabledPref = (enabled: boolean) => this.setWidevineEnabledPref_(enabled) - this.addWebUIListener('widevine-enabled-changed', setWidevineEnabledPref) + this.addWebUiListener('widevine-enabled-changed', setWidevineEnabledPref) this.browserProxy_.isWidevineEnabled().then(setWidevineEnabledPref) } diff --git a/browser/resources/settings/brave_ipfs_page/brave_ipfs_page.ts b/browser/resources/settings/brave_ipfs_page/brave_ipfs_page.ts index b77775621756..7e35200b11b0 100644 --- a/browser/resources/settings/brave_ipfs_page/brave_ipfs_page.ts +++ b/browser/resources/settings/brave_ipfs_page/brave_ipfs_page.ts @@ -69,7 +69,7 @@ class SettingsBraveIpfsPageElement extends SettingBraveIpfsPageElementBase { this.ipfsEnabled_ = enabled }); - this.addWebUIListener('brave-ipfs-node-status-changed', (launched) => { + this.addWebUiListener('brave-ipfs-node-status-changed', (launched) => { this.isLocalNodeLaunched_ = launched }) this.browserProxy_.notifyIpfsNodeStatus(); diff --git a/browser/resources/settings/brave_ipfs_page/ipfs_peers_subpage.ts b/browser/resources/settings/brave_ipfs_page/ipfs_peers_subpage.ts index a0a8682e7e94..2a6113514b1d 100644 --- a/browser/resources/settings/brave_ipfs_page/ipfs_peers_subpage.ts +++ b/browser/resources/settings/brave_ipfs_page/ipfs_peers_subpage.ts @@ -90,8 +90,9 @@ export class SettingsBraveIpfsPeersSubpageElement extends SettingsBraveIpfsPeers override ready() { super.ready() - this.addWebUIListener('brave-ipfs-node-status-changed', (launched: boolean) => { - this.onServiceLaunched(launched) + this.addWebUiListener( + 'brave-ipfs-node-status-changed', (launched: boolean) => { + this.onServiceLaunched(launched) }) this.onServiceLaunched(this.localNodeLaunched) this.updatePeers(); diff --git a/browser/resources/settings/brave_ipfs_page/p2p_keys_subpage.ts b/browser/resources/settings/brave_ipfs_page/p2p_keys_subpage.ts index 95bb85aea208..4a6258304f09 100644 --- a/browser/resources/settings/brave_ipfs_page/p2p_keys_subpage.ts +++ b/browser/resources/settings/brave_ipfs_page/p2p_keys_subpage.ts @@ -106,28 +106,31 @@ export class SettingsBraveP2pKeysSubpageElement extends SettingsBraveP2pKeysSubp override ready() { super.ready() - this.addWebUIListener('brave-ipfs-node-status-changed', (launched: boolean) => { - this.onServiceLaunched(launched) + this.addWebUiListener( + 'brave-ipfs-node-status-changed', (launched: boolean) => { + this.onServiceLaunched(launched) }) - this.addWebUIListener('brave-ipfs-keys-loaded', () => { + this.addWebUiListener('brave-ipfs-keys-loaded', () => { this.updateKeys() }) - this.addWebUIListener('brave-ipfs-key-exported', (key: string, success: boolean) => { - this.actionKeysError_ = !success - if (this.actionKeysError_) { - const errorLabel = (this.$.keyError); - errorLabel.textContent = this.i18n('ipfsKeyExportError', key) - return; - } + this.addWebUiListener( + 'brave-ipfs-key-exported', (key: string, success: boolean) => { + this.actionKeysError_ = !success + if (this.actionKeysError_) { + const errorLabel = (this.$.keyError); + errorLabel.textContent = this.i18n('ipfsKeyExportError', key) + return; + } }) - this.addWebUIListener('brave-ipfs-key-imported', (key: string, success: boolean) => { - this.actionKeysError_ = !success - if (this.actionKeysError_ ) { - const errorLabel = (this.$.keyError); - errorLabel.textContent = this.i18n('ipfsImporKeysError', key) - return; - } - this.updateKeys(); + this.addWebUiListener( + 'brave-ipfs-key-imported', (key: string, success: boolean) => { + this.actionKeysError_ = !success + if (this.actionKeysError_ ) { + const errorLabel = (this.$.keyError); + errorLabel.textContent = this.i18n('ipfsImporKeysError', key) + return; + } + this.updateKeys(); }) window.addEventListener('load', this.onLoad_.bind(this)); if (document.readyState == 'complete') { diff --git a/browser/resources/settings/brave_new_tab_page/brave_new_tab_browser_proxy.ts b/browser/resources/settings/brave_new_tab_page/brave_new_tab_browser_proxy.ts index 7d84704f2c8f..19ad1021fa91 100644 --- a/browser/resources/settings/brave_new_tab_page/brave_new_tab_browser_proxy.ts +++ b/browser/resources/settings/brave_new_tab_page/brave_new_tab_browser_proxy.ts @@ -1,8 +1,9 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public +/* Copyright (c) 2022 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/. */ -import {sendWithPromise} from 'chrome://resources/js/cr.m.js'; +import {sendWithPromise} from 'chrome://resources/js/cr.js'; export type NewTabOption = { name: string diff --git a/browser/resources/settings/brave_new_tab_page/brave_new_tab_page.ts b/browser/resources/settings/brave_new_tab_page/brave_new_tab_page.ts index b7884cca0be6..0420ea017791 100644 --- a/browser/resources/settings/brave_new_tab_page/brave_new_tab_page.ts +++ b/browser/resources/settings/brave_new_tab_page/brave_new_tab_page.ts @@ -50,8 +50,9 @@ export class SettingsBraveNewTabPageElement extends SettingsBraveNewTabPageEleme this.browserProxy_.shouldShowNewTabDashboardSettings().then((show: boolean) => { this.showNewTabDashboardSettings_ = show }) - this.addWebUIListener('show-new-tab-dashboard-settings-changed', (show: boolean) => { - this.showNewTabDashboardSettings_ = show + this.addWebUiListener( + 'show-new-tab-dashboard-settings-changed', (show: boolean) => { + this.showNewTabDashboardSettings_ = show }) } diff --git a/browser/resources/settings/brave_overrides/appearance_page.ts b/browser/resources/settings/brave_overrides/appearance_page.ts index c4701dc42944..e6d4052b42f9 100644 --- a/browser/resources/settings/brave_overrides/appearance_page.ts +++ b/browser/resources/settings/brave_overrides/appearance_page.ts @@ -9,6 +9,7 @@ import {RegisterPolymerTemplateModifications} from 'chrome://resources/polymer_o import {I18nBehavior} from 'chrome://resources/i18n_behavior.js' import {Router} from '../router.js' import {loadTimeData} from '../i18n_setup.js' +import {getTrustedHTML} from 'chrome://resources/js/static_types.js' import '../brave_appearance_page/super_referral.js' import '../brave_appearance_page/brave_theme.js' @@ -30,9 +31,12 @@ RegisterPolymerTemplateModifications({ useDefaultButtonTemplate.setAttribute("restamp", "true") } theme.setAttribute("class", "settings-row hr") - theme.insertAdjacentHTML('beforebegin', ` - - `) + theme.insertAdjacentHTML( + 'beforebegin', + getTrustedHTML` + + + `) } const r = Router.getInstance().routes_ // Super-referral @@ -60,15 +64,19 @@ RegisterPolymerTemplateModifications({ if (!bookmarkBarToggle) { console.error(`[Brave Settings Overrides] Couldn't find bookmark bar toggle`) } else { - bookmarkBarToggle.insertAdjacentHTML('beforebegin', ` - - - `) + bookmarkBarToggle.insertAdjacentHTML( + 'beforebegin', + getTrustedHTML` + + + `) - bookmarkBarToggle.insertAdjacentHTML('afterend', ` - - - `) + bookmarkBarToggle.insertAdjacentHTML( + 'afterend', + getTrustedHTML` + + + `) // Remove Chromium bookmark toggle becasue it is replaced by // settings-brave-appearance-bookmark-bar bookmarkBarToggle.remove() @@ -77,24 +85,47 @@ RegisterPolymerTemplateModifications({ if (!zoomLevel || !zoomLevel.parentNode) { console.error(`[Brave Settings Overrides] Couldn't find zoomLevel`) } else { - zoomLevel.parentNode.insertAdjacentHTML('afterend', ` - - - `) - const isSpeedreaderEnabled = loadTimeData.getBoolean('isSpeedreaderFeatureEnabled') - if (isSpeedreaderEnabled) { - zoomLevel.parentNode.insertAdjacentHTML('afterend', ` + zoomLevel.parentNode.insertAdjacentHTML( + 'afterend', + getTrustedHTML` + id="mru-cycling" + pref="{{prefs.brave.mru_cycling_enabled}}" - `) + `) + const mruCyclingToggle = templateContent.getElementById('mru-cycling') + if (!mruCyclingToggle) { + console.error( + '[Brave Settings Overrides] Couldn\'t find MRU cycling toggle') + } else { + mruCyclingToggle.setAttribute( + 'label', I18nBehavior.i18n('mruCyclingSettingLabel')) + } + const isSpeedreaderEnabled = + loadTimeData.getBoolean('isSpeedreaderFeatureEnabled') + if (isSpeedreaderEnabled) { + zoomLevel.parentNode.insertAdjacentHTML( + 'afterend', + getTrustedHTML` + + `) + const speedreaderToggle = templateContent.getElementById('speedreader') + if (!speedreaderToggle) { + console.error( + '[Brave Settings Overrides] Couldn\'t find Speedreader toggle') + } else { + speedreaderToggle.setAttribute( + 'label', I18nBehavior.i18n('speedreaderSettingLabel')) + speedreaderToggle.setAttribute( + 'sub-label', I18nBehavior.i18n('speedreaderSettingSubLabel')) + speedreaderToggle.setAttribute( + 'learn-more-url', I18nBehavior.i18n('speedreaderLearnMoreURL')) + } } } @@ -112,16 +143,19 @@ RegisterPolymerTemplateModifications({ if (!pages) { console.error(`[Brave Settings Overrides] Couldn't find appearance_page #pages`) } else { - pages.insertAdjacentHTML('beforeend', ` - - `) + pages.insertAdjacentHTML( + 'beforeend', + getTrustedHTML` + + `) } }, }) diff --git a/browser/resources/settings/brave_overrides/clear_browsing_data_dialog.ts b/browser/resources/settings/brave_overrides/clear_browsing_data_dialog.ts index f8d57d3fb44d..f28226ad6615 100644 --- a/browser/resources/settings/brave_overrides/clear_browsing_data_dialog.ts +++ b/browser/resources/settings/brave_overrides/clear_browsing_data_dialog.ts @@ -9,6 +9,7 @@ import {html} from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min. import {BraveSettingsClearBrowsingDataDialogElement} from '../brave_clear_browsing_data_dialog/brave_clear_browsing_data_dialog_behavior.js' import {RegisterPolymerComponentReplacement, RegisterPolymerTemplateModifications, RegisterStyleOverride} from 'chrome://resources/polymer_overriding.js' import {loadTimeData} from '../i18n_setup.js' +import {getTrustedHTML} from 'chrome://resources/js/static_types.js' RegisterStyleOverride( 'settings-clear-browsing-data-dialog', @@ -37,8 +38,12 @@ RegisterPolymerTemplateModifications({ } tabsElement.insertAdjacentHTML( 'beforeend', - `` - ) + getTrustedHTML` + + `) // Append Save button. const confirmButtonElement = templateContent.querySelector('#clearBrowsingDataConfirm') @@ -48,10 +53,20 @@ RegisterPolymerTemplateModifications({ } confirmButtonElement.insertAdjacentHTML( 'afterend', - `` - ) + getTrustedHTML` + + `) + const saveButton = + templateContent.getElementById('saveOnExitSettingsConfirm') + if (!saveButton) { + console.error('[Brave Settings Overrides] Couldn\'t find save button') + } else { + saveButton.textContent = loadTimeData.getString('save') + } // Append rewards reset data link const body = templateContent.querySelector('[slot="body"]') @@ -61,6 +76,16 @@ RegisterPolymerTemplateModifications({ } body.insertAdjacentHTML( 'beforeend', - `${loadTimeData.getString('resetRewardsData')}`) + getTrustedHTML` + + `) + const rewardsResetLink = + templateContent.getElementById('rewards-reset-data') + if (!rewardsResetLink) { + console.error( + '[Brave Settings Overrides] Couldn\'t find Rewards reset link') + } else { + rewardsResetLink.textContent = loadTimeData.getString('resetRewardsData') + } } }) diff --git a/browser/resources/settings/brave_overrides/page_visibility.ts b/browser/resources/settings/brave_overrides/page_visibility.ts index aa62e37c925e..447be1b2ebb5 100644 --- a/browser/resources/settings/brave_overrides/page_visibility.ts +++ b/browser/resources/settings/brave_overrides/page_visibility.ts @@ -5,7 +5,7 @@ // @ts-nocheck TODO(petemill): Define types and remove ts-nocheck -import {loadTimeData} from 'chrome://resources/js/load_time_data.m.js'; +import {loadTimeData} from 'chrome://resources/js/load_time_data.js'; import {pageVisibility as chromiumPageVisibility, setPageVisibilityForTesting} from '../page_visibility.js' diff --git a/browser/resources/settings/brave_overrides/personalization_options.ts b/browser/resources/settings/brave_overrides/personalization_options.ts index 768a4f59a032..bc89e8a11606 100644 --- a/browser/resources/settings/brave_overrides/personalization_options.ts +++ b/browser/resources/settings/brave_overrides/personalization_options.ts @@ -3,9 +3,8 @@ // 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/. -// @ts-nocheck TODO(petemill): Define types and remove ts-nocheck - import {RegisterPolymerTemplateModifications} from 'chrome://resources/polymer_overriding.js' +import {getTrustedHTML} from 'chrome://resources/js/static_types.js' import '../brave_privacy_page/brave_personalization_options.js' @@ -15,9 +14,12 @@ RegisterPolymerTemplateModifications({ if (!metricsReportingControl) { console.error(`[Brave Settings Overrides] Couldn't find metricsReportingControl`) } else { - metricsReportingControl.insertAdjacentHTML('beforebegin', ` - - `) + metricsReportingControl.insertAdjacentHTML( + 'beforebegin', + getTrustedHTML` + + + `) } }, }) diff --git a/browser/resources/settings/brave_overrides/privacy_page.ts b/browser/resources/settings/brave_overrides/privacy_page.ts index 007be3dca482..1001c2992071 100644 --- a/browser/resources/settings/brave_overrides/privacy_page.ts +++ b/browser/resources/settings/brave_overrides/privacy_page.ts @@ -7,7 +7,309 @@ import {RegisterPolymerTemplateModifications} from 'chrome://resources/polymer_overriding.js' import {I18nBehavior} from 'chrome://resources/i18n_behavior.js' -import {loadTimeData} from 'chrome://resources/js/load_time_data.m.js'; +import {loadTimeData} from 'chrome://resources/js/load_time_data.js'; +import {getTrustedHTML} from 'chrome://resources/js/static_types.js' + +function InsertGoogleSignInSubpage ( + templateContent: DocumentFragment, + pages: Element) +{ + pages.insertAdjacentHTML( + 'beforeend', + getTrustedHTML` + + `) + const googleSignInTemplate = templateContent. + querySelector('[route-path="/content/googleSignIn"]') + if (!googleSignInTemplate) { + console.error( + '[Brave Settings Overrides] Couldn\'t find Google signin template') + } else { + const googleSignInSubpage = + googleSignInTemplate.content.querySelector('settings-subpage') + if (!googleSignInSubpage) { + console.error( + '[Brave Settings Overrides] Couldn\'t find Google signin subpage') + } else { + googleSignInSubpage.setAttribute('page-title', + I18nBehavior.i18n('siteSettingsCategoryGoogleSignIn')) + const googleSignInDefault = + googleSignInTemplate.content.getElementById('googleSignInDefault') + if (!googleSignInDefault) { + console.error( + '[Brave Settings Overrides] Couldn\'t find Google signin default') + } else { + googleSignInDefault.setAttribute( + 'toggle-off-label', + I18nBehavior.i18n('siteSettingsGoogleSignInBlock')) + googleSignInDefault.setAttribute( + 'toggle-on-label', + I18nBehavior.i18n('siteSettingsGoogleSignInAllow')) + } + const googleSignInExceptions = + googleSignInTemplate.content.getElementById('googleSignInExceptions') + if (!googleSignInExceptions) { + console.error( + '[Brave Settings Overrides] Couldn\'t find Google signin exceptions') + } else { + googleSignInExceptions.setAttribute( + 'block-header', + I18nBehavior.i18n('siteSettingsGoogleSignInBlock')) + googleSignInExceptions.setAttribute( + 'allow-header', + I18nBehavior.i18n('siteSettingsGoogleSignInAllow')) + } + } + } +} + +function InsertAutoplaySubpage ( + templateContent: DocumentFragment, + pages: Element) +{ + pages.insertAdjacentHTML( + 'beforeend', + getTrustedHTML` + `) + const autoplayTemplate = templateContent. + querySelector('[route-path="/content/autoplay"]') + if (!autoplayTemplate) { + console.error( + '[Brave Settings Overrides] Couldn\'t find autoplay template') + } else { + const autoplaySubpage = + autoplayTemplate.content.querySelector('settings-subpage') + if (!autoplaySubpage) { + console.error( + '[Brave Settings Overrides] Couldn\'t find autoplay subpage') + } else { + autoplaySubpage.setAttribute('page-title', + I18nBehavior.i18n('siteSettingsCategoryAutoplay')) + const autoplayDefault = + autoplayTemplate.content.getElementById('autoplayDefault') + if (!autoplayDefault) { + console.error( + '[Brave Settings Overrides] Couldn\'t find autoplay default') + } else { + autoplayDefault.setAttribute( + 'toggle-off-label', + I18nBehavior.i18n('siteSettingsAutoplayBlock')) + autoplayDefault.setAttribute( + 'toggle-on-label', + I18nBehavior.i18n('siteSettingsAutoplayAllow')) + } + const autoplayExceptions = + autoplayTemplate.content.getElementById('autoplayExceptions') + if (!autoplayExceptions) { + console.error( + '[Brave Settings Overrides] Couldn\'t find autoplay exceptions') + } else { + autoplayExceptions.setAttribute( + 'block-header', + I18nBehavior.i18n('siteSettingsBlock')) + autoplayExceptions.setAttribute( + 'allow-header', + I18nBehavior.i18n('siteSettingsAllow')) + } + } + } +} + +function InsertEthereumSubpage ( + templateContent: DocumentFragment, + pages: Element) +{ + pages.insertAdjacentHTML( + 'beforeend', + getTrustedHTML` + `) + const ethereumTemplate = templateContent. + querySelector('[route-path="/content/ethereum"]') + if (!ethereumTemplate) { + console.error( + '[Brave Settings Overrides] Couldn\'t find Ethereum template') + } else { + const ethereumSubpage = + ethereumTemplate.content.querySelector('settings-subpage') + if (!ethereumSubpage) { + console.error( + '[Brave Settings Overrides] Couldn\'t find Ethereum subpage') + } else { + ethereumSubpage.setAttribute('page-title', + I18nBehavior.i18n('siteSettingsCategoryEthereum')) + const ethereumDefault = + ethereumTemplate.content.getElementById('ethereumDefault') + if (!ethereumDefault) { + console.error( + '[Brave Settings Overrides] Couldn\'t find Ethereum default') + } else { + ethereumDefault.setAttribute( + 'toggle-off-label', + I18nBehavior.i18n('siteSettingsEthereumBlock')) + ethereumDefault.setAttribute( + 'toggle-on-label', + I18nBehavior.i18n('siteSettingsEthereumAsk')) + } + const ethereumExceptions = + ethereumTemplate.content.getElementById('ethereumExceptions') + if (!ethereumExceptions) { + console.error( + '[Brave Settings Overrides] Couldn\'t find Ethereum exceptions') + } else { + ethereumExceptions.setAttribute( + 'block-header', + I18nBehavior.i18n('siteSettingsBlock')) + ethereumExceptions.setAttribute( + 'allow-header', + I18nBehavior.i18n('siteSettingsAllow')) + } + } + } +} + +function InsertSolanaSubpage ( + templateContent: DocumentFragment, + pages: Element) +{ + pages.insertAdjacentHTML( + 'beforeend', + getTrustedHTML` + `) + const solanaTemplate = templateContent. + querySelector('[route-path="/content/solana"]') + if (!solanaTemplate) { + console.error( + '[Brave Settings Overrides] Couldn\'t find Solana template') + } else { + const solanaSubpage = + solanaTemplate.content.querySelector('settings-subpage') + if (!solanaSubpage) { + console.error( + '[Brave Settings Overrides] Couldn\'t find Solana subpage') + } else { + solanaSubpage.setAttribute('page-title', + I18nBehavior.i18n('siteSettingsCategorySolana')) + const solanaDefault = + solanaTemplate.content.getElementById('solanaDefault') + if (!solanaDefault) { + console.error( + '[Brave Settings Overrides] Couldn\'t find Solana default') + } else { + solanaDefault.setAttribute( + 'toggle-off-label', + I18nBehavior.i18n('siteSettingsSolanaBlock')) + solanaDefault.setAttribute( + 'toggle-on-label', + I18nBehavior.i18n('siteSettingsSolanaAsk')) + } + const solanaExceptions = + solanaTemplate.content.getElementById('solanaExceptions') + if (!solanaExceptions) { + console.error( + '[Brave Settings Overrides] Couldn\'t find Solana exceptions') + } else { + solanaExceptions.setAttribute( + 'block-header', + I18nBehavior.i18n('siteSettingsBlock')) + solanaExceptions.setAttribute( + 'allow-header', + I18nBehavior.i18n('siteSettingsAllow')) + } + } + } +} + +function InsertShieldsSubpage ( + templateContent: DocumentFragment, + pages: Element) +{ + pages.insertAdjacentHTML( + 'beforeend', + getTrustedHTML` + `) + const shieldsTemplate = templateContent. + querySelector('[route-path="/content/braveShields"]') + if (!shieldsTemplate) { + console.error( + '[Brave Settings Overrides] Couldn\'t find Shields template') + } else { + const shieldsSubpage = + shieldsTemplate.content.querySelector('settings-subpage') + if (!shieldsSubpage) { + console.error( + '[Brave Settings Overrides] Couldn\'t find Shields subpage') + } else { + shieldsSubpage.setAttribute('page-title', + I18nBehavior.i18n('siteSettingsShieldsStatus')) + const shieldsExceptions = + shieldsTemplate.content.getElementById('shieldsExceptions') + if (!shieldsExceptions) { + console.error( + '[Brave Settings Overrides] Couldn\'t find Shields exceptions') + } else { + shieldsExceptions.setAttribute( + 'block-header', + I18nBehavior.i18n('siteSettingsShieldsDown')) + shieldsExceptions.setAttribute( + 'allow-header', + I18nBehavior.i18n('siteSettingsShieldsUp')) + } + } + } +} RegisterPolymerTemplateModifications({ 'settings-privacy-page': (templateContent) => { @@ -15,25 +317,6 @@ RegisterPolymerTemplateModifications({ if (!pages) { console.error(`[Brave Settings Overrides] Couldn't find privacy_page #pages`) } else { - const isGoogleSignInFeatureEnabled = loadTimeData.getBoolean('isGoogleSignInFeatureEnabled') - if (isGoogleSignInFeatureEnabled) { - pages.insertAdjacentHTML('beforeend', ` - - `) - } if (!loadTimeData.getBoolean('isIdleDetectionFeatureEnabled')) { const idleDetection = templateContent.querySelector('[route-path="/content/idleDetection"]') if (!idleDetection) { @@ -42,88 +325,58 @@ RegisterPolymerTemplateModifications({ idleDetection.content.firstElementChild.hidden = true } } - pages.insertAdjacentHTML('beforeend', ` - - `) + const isGoogleSignInFeatureEnabled = + loadTimeData.getBoolean('isGoogleSignInFeatureEnabled') + if (isGoogleSignInFeatureEnabled) { + InsertGoogleSignInSubpage(templateContent, pages) + } + InsertAutoplaySubpage(templateContent, pages) const isNativeBraveWalletEnabled = loadTimeData.getBoolean('isNativeBraveWalletFeatureEnabled') if (isNativeBraveWalletEnabled) { - pages.insertAdjacentHTML('beforeend', ` - - `) - pages.insertAdjacentHTML('beforeend', ` - - `) + InsertEthereumSubpage(templateContent, pages) + InsertSolanaSubpage(templateContent, pages) } - pages.insertAdjacentHTML('beforeend', ` - - `) + InsertShieldsSubpage(templateContent, pages) } if (!loadTimeData.getBoolean('isPrivacySandboxRestricted')) { - const privacySandboxTemplate = templateContent.querySelector(`template[if*='isPrivacySandboxRestricted_']`) - if (!privacySandboxTemplate) { - console.error('[Brave Settings Overrides] Could not find template with if*=isPrivacySandboxRestricted_ on privacy page.') + const privacySandboxSettings3Template = templateContent. + querySelector(`template[if*='isPrivacySandboxSettings3Enabled_']`) + if (!privacySandboxSettings3Template) { + console.error( + '[Brave Settings Overrides] Could not find template with ' + + 'if*=isPrivacySandboxSettings3Enabled_ on privacy page.') } else { - const privacySandboxLinkRow = privacySandboxTemplate.content.getElementById('privacySandboxLinkRow') + const privacySandboxLinkRow = privacySandboxSettings3Template.content. + getElementById('privacySandboxLinkRow') if (!privacySandboxLinkRow) { console.error('[Brave Settings Overrides] Could not find privacySandboxLinkRow id on privacy page.') } else { privacySandboxLinkRow.setAttribute('hidden', 'true') } - const privacySandboxLink = privacySandboxTemplate.content.getElementById('privacySandboxLink') + const privacySandboxLink = privacySandboxSettings3Template.content. + getElementById('privacySandboxLink') if (!privacySandboxLink) { console.error('[Brave Settings Overrides] Could not find privacySandboxLink id on privacy page.') } else { - privacySandboxTemplate.setAttribute('hidden', 'true') + privacySandboxSettings3Template.setAttribute('hidden', 'true') + } + } + const privacySandboxSettings4Template = templateContent. + querySelector(`template[if*='isPrivacySandboxSettings4Enabled_']`) + if (!privacySandboxSettings4Template) { + console.error( + '[Brave Settings Overrides] Could not find template with ' + + 'if*=isPrivacySandboxSettings4Enabled_ on privacy page.') + } else { + const privacySandboxLinkRow = privacySandboxSettings4Template.content. + getElementById('privacySandboxLinkRow') + if (!privacySandboxLinkRow) { + console.error( + '[Brave Settings Overrides] Could not find privacySandboxLinkRow ' + + 'id on privacy page.') + } else { + privacySandboxLinkRow.setAttribute('hidden', 'true') } } } diff --git a/browser/resources/settings/brave_overrides/search_page.ts b/browser/resources/settings/brave_overrides/search_page.ts index ee006b683290..df75c338fe28 100644 --- a/browser/resources/settings/brave_overrides/search_page.ts +++ b/browser/resources/settings/brave_overrides/search_page.ts @@ -4,6 +4,7 @@ // you can obtain one at https://mozilla.org/MPL/2.0/. import {RegisterPolymerTemplateModifications} from 'chrome://resources/polymer_overriding.js' +import {getTrustedHTML} from 'chrome://resources/js/static_types.js' import '../brave_search_engines_page/brave_search_engines_page.js' @@ -13,9 +14,12 @@ RegisterPolymerTemplateModifications({ if (!enginesSubpageTrigger) { console.error(`[Brave Settings Overrides] Couldn't find enginesSubpageTrigger`) } else { - enginesSubpageTrigger.insertAdjacentHTML('beforebegin', ` - - `) + enginesSubpageTrigger.insertAdjacentHTML( + 'beforebegin', + getTrustedHTML` + + + `) } } }) diff --git a/browser/resources/settings/brave_overrides/site_details.ts b/browser/resources/settings/brave_overrides/site_details.ts index f635a5676c77..e06498355f70 100644 --- a/browser/resources/settings/brave_overrides/site_details.ts +++ b/browser/resources/settings/brave_overrides/site_details.ts @@ -7,7 +7,8 @@ import {RegisterPolymerTemplateModifications} from 'chrome://resources/polymer_overriding.js' import {I18nBehavior} from 'chrome://resources/i18n_behavior.js' -import {loadTimeData} from 'chrome://resources/js/load_time_data.m.js'; +import {loadTimeData} from 'chrome://resources/js/load_time_data.js'; +import {getTrustedHTML} from 'chrome://resources/js/static_types.js' RegisterPolymerTemplateModifications({ 'site-details': (templateContent) => { @@ -29,54 +30,118 @@ RegisterPolymerTemplateModifications({ if (!firstPermissionItem) { console.error(`[Brave Settings Overrides] Couldn't find first permission item`) } else { - firstPermissionItem.insertAdjacentHTML('beforebegin', ` - - - `) - const isGoogleSignInFeatureEnabled = loadTimeData.getBoolean('isGoogleSignInFeatureEnabled') - if (isGoogleSignInFeatureEnabled) { - firstPermissionItem.insertAdjacentHTML('beforebegin', ` + firstPermissionItem.insertAdjacentHTML( + 'beforebegin', + getTrustedHTML` + category="[[contentSettingsTypesEnum_.AUTOPLAY]]" + icon="cr:extension"> `) + const autoplaySettings = templateContent. + querySelector('div.list-frame > site-details-permission:nth-child(1)') + if (!autoplaySettings) { + console.error( + '[Brave Settings Overrides] Couldn\'t find autoplay settings') + } else { + autoplaySettings.setAttribute( + 'label', I18nBehavior.i18n('siteSettingsAutoplay')) + } + const isGoogleSignInFeatureEnabled = + loadTimeData.getBoolean('isGoogleSignInFeatureEnabled') + if (isGoogleSignInFeatureEnabled) { + firstPermissionItem.insertAdjacentHTML( + 'beforebegin', + getTrustedHTML` + + + `) + } + const googleSignInSettings = templateContent. + querySelector('div.list-frame > site-details-permission:nth-child(2)') + if (!googleSignInSettings) { + console.error( + '[Brave Settings Overrides] Couldn\'t find Google signin settings') + } else { + googleSignInSettings.setAttribute( + 'label', I18nBehavior.i18n('siteSettingsGoogleSignIn')) } const isNativeBraveWalletEnabled = loadTimeData.getBoolean('isNativeBraveWalletFeatureEnabled') if (isNativeBraveWalletEnabled) { - firstPermissionItem.insertAdjacentHTML('beforebegin', ` - - - `) - firstPermissionItem.insertAdjacentHTML('beforebegin', ` - + + `) + const ethereumSettings = templateContent. + querySelector('div.list-frame > site-details-permission:nth-child(3)') + if (!ethereumSettings) { + console.error( + '[Brave Settings Overrides] Couldn\'t find Ethereum settings') + } else { + ethereumSettings.setAttribute( + 'label', I18nBehavior.i18n('siteSettingsEthereum')) + } + firstPermissionItem.insertAdjacentHTML( + 'beforebegin', + getTrustedHTML` + - - `) + icon="cr:extension"> + + `) + const solanaSettings = templateContent. + querySelector('div.list-frame > site-details-permission:nth-child(4)') + if (!solanaSettings) { + console.error( + '[Brave Settings Overrides] Couldn\'t find Solana settings') + } else { + solanaSettings.setAttribute( + 'label', I18nBehavior.i18n('siteSettingsSolana')) + } } } const usageSection = templateContent.querySelector('div#usage') if (!usageSection) { console.error(`[Brave Settings Overrides] Couldn't find usageSection item`) } else { - usageSection.insertAdjacentHTML('afterend', ` -
-
-

${I18nBehavior.i18n('siteSettingsShields')}

+ usageSection.insertAdjacentHTML( + 'afterend', + getTrustedHTML` +
+
+

+
+
+ + +
-
- - -
-
- `) + `) + const shieldsHeader = + templateContent.querySelector('div#shieldsHeader h2') + if (!shieldsHeader) { + console.error( + '[Brave Settings Overrides] Couldn\'t find Shields header') + } else { + shieldsHeader.textContent = I18nBehavior.i18n('siteSettingsShields') + } + const shieldsSettings = templateContent.querySelector( + 'div#shields div.list-frame > site-details-permission:nth-child(1)') + if (!shieldsSettings) { + console.error( + '[Brave Settings Overrides] Couldn\'t find Shields settings') + } else { + shieldsSettings.setAttribute( + 'label', I18nBehavior.i18n('siteSettingsShieldsStatus')) + } } - }, + } }) diff --git a/browser/resources/settings/brave_overrides/site_settings_page.ts b/browser/resources/settings/brave_overrides/site_settings_page.ts index de30aaa3562f..2a372a534dea 100644 --- a/browser/resources/settings/brave_overrides/site_settings_page.ts +++ b/browser/resources/settings/brave_overrides/site_settings_page.ts @@ -7,7 +7,8 @@ import {RegisterPolymerComponentReplacement, RegisterPolymerTemplateModifications} from 'chrome://resources/polymer_overriding.js' import {ContentSettingsTypes} from '../site_settings/constants.js' -import {loadTimeData} from 'chrome://resources/js/load_time_data.m.js'; +import {loadTimeData} from 'chrome://resources/js/load_time_data.js'; +import {getTrustedHTML} from 'chrome://resources/js/static_types.js' import {I18nBehavior} from 'chrome://resources/i18n_behavior.js'; import {SettingsSiteSettingsPageElement} from '../site_settings_page/site_settings_page.js' import {routes} from '../route.js' @@ -27,13 +28,25 @@ RegisterPolymerTemplateModifications({ console.error('[Brave Settings Overrides] Could not find all sites list') return } - allSites.insertAdjacentHTML('afterend', ` -

${I18nBehavior.i18n('siteSettingsShields')}

- +

+
+ - - `) + + `) + const siteSettingsShieldsTitle = + templateContent.getElementById('siteSettingsShields') + if (!siteSettingsShieldsTitle) { + console.error('[Brave Settings Overrides] Couldn\'t find shields title') + } else { + siteSettingsShieldsTitle.textcontent = + I18nBehavior.i18n('siteSettingsShields') + } } }) diff --git a/browser/resources/settings/brave_privacy_page/brave_personalization_options.ts b/browser/resources/settings/brave_privacy_page/brave_personalization_options.ts index bddcc217f39b..408a9e9c2759 100644 --- a/browser/resources/settings/brave_privacy_page/brave_personalization_options.ts +++ b/browser/resources/settings/brave_privacy_page/brave_personalization_options.ts @@ -87,12 +87,13 @@ export class SettingsBravePersonalizationOptions extends SettingsBravePersonaliz // because p3a enabled is a local state setting, but PrefControlMixin // checks for a pref being valid, so have to fake it, same as upstream. const setP3AEnabledPref = (enabled: boolean) => this.setP3AEnabledPref_(enabled); - this.addWebUIListener('p3a-enabled-changed', setP3AEnabledPref); + this.addWebUiListener('p3a-enabled-changed', setP3AEnabledPref); this.browserProxy_.getP3AEnabled().then( (enabled: boolean) => setP3AEnabledPref(enabled)); const setStatsUsagePingEnabledPref = (enabled: boolean) => this.setStatsUsagePingEnabledPref_(enabled); - this.addWebUIListener('stats-usage-ping-enabled-changed', setStatsUsagePingEnabledPref); + this.addWebUiListener( + 'stats-usage-ping-enabled-changed', setStatsUsagePingEnabledPref); this.browserProxy_.getStatsUsagePingEnabled().then( (enabled: boolean) => setStatsUsagePingEnabledPref(enabled)); } diff --git a/browser/resources/settings/brave_privacy_page/brave_privacy_page_browser_proxy.ts b/browser/resources/settings/brave_privacy_page/brave_privacy_page_browser_proxy.ts index 2423a5bcb7b6..c86f3197d935 100644 --- a/browser/resources/settings/brave_privacy_page/brave_privacy_page_browser_proxy.ts +++ b/browser/resources/settings/brave_privacy_page/brave_privacy_page_browser_proxy.ts @@ -3,7 +3,7 @@ // 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/. -import {sendWithPromise} from 'chrome://resources/js/cr.m.js'; +import {sendWithPromise} from 'chrome://resources/js/cr.js'; import {loadTimeData} from '../i18n_setup.js'; export interface BravePrivacyBrowserProxy { diff --git a/browser/resources/settings/brave_rewards_page/brave_rewards_page.ts b/browser/resources/settings/brave_rewards_page/brave_rewards_page.ts index bca7286c2b04..252a29f1c57f 100644 --- a/browser/resources/settings/brave_rewards_page/brave_rewards_page.ts +++ b/browser/resources/settings/brave_rewards_page/brave_rewards_page.ts @@ -1,4 +1,5 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public +/* Copyright (c) 2022 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/. */ @@ -8,8 +9,8 @@ import {loadTimeData} from '../i18n_setup.js' -import '//resources/js/cr.m.js' -import {PolymerElement} from '//resources/polymer/v3_0/polymer/polymer_bundled.min.js' +import '//resources/js/cr.js'; +import {PolymerElement} from '//resources/polymer/v3_0/polymer/polymer_bundled.min.js'; import {I18nMixin} from 'chrome://resources/cr_elements/i18n_mixin.js' import {PrefsMixin} from '../prefs/prefs_mixin.js' diff --git a/browser/resources/settings/brave_routes.ts b/browser/resources/settings/brave_routes.ts index bba2022bfbc6..26293a33d7c3 100644 --- a/browser/resources/settings/brave_routes.ts +++ b/browser/resources/settings/brave_routes.ts @@ -7,7 +7,7 @@ import {pageVisibility} from './brave_overrides/page_visibility.js' import {loadTimeData} from './i18n_setup.js' -import {SettingsRoutes} from './settings_routes.js'; +import {SettingsRoutes} from 'chrome://settings/settings.js'; export default function addBraveRoutes(r: Partial) { const isGuest = loadTimeData.getBoolean('isGuest') diff --git a/browser/resources/settings/brave_search_engines_page/brave_search_engines_page.ts b/browser/resources/settings/brave_search_engines_page/brave_search_engines_page.ts index bd0d474d62b2..07f3db9a5ff3 100644 --- a/browser/resources/settings/brave_search_engines_page/brave_search_engines_page.ts +++ b/browser/resources/settings/brave_search_engines_page/brave_search_engines_page.ts @@ -44,7 +44,8 @@ class BraveSearchEnginesPage extends BraveSearchEnginesPageBase { } this.browserProxy_.getPrivateSearchEnginesList().then(updatePrivateSearchEngines) - this.addWebUIListener('private-search-engines-changed', updatePrivateSearchEngines) + this.addWebUiListener( + 'private-search-engines-changed', updatePrivateSearchEngines) } shouldShowPrivateSearchProvider_(prefs) { diff --git a/browser/resources/settings/brave_search_engines_page/brave_search_engines_page_browser_proxy.ts b/browser/resources/settings/brave_search_engines_page/brave_search_engines_page_browser_proxy.ts index 37a0d17a62b1..f5c25505d9a7 100644 --- a/browser/resources/settings/brave_search_engines_page/brave_search_engines_page_browser_proxy.ts +++ b/browser/resources/settings/brave_search_engines_page/brave_search_engines_page_browser_proxy.ts @@ -3,7 +3,7 @@ // 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/. -import {sendWithPromise} from 'chrome://resources/js/cr.m.js'; +import {sendWithPromise} from 'chrome://resources/js/cr.js'; export interface BraveSearchEnginesPageBrowserProxy { getPrivateSearchEnginesList(): Promise // TODO(petemill): Define the expected type diff --git a/browser/resources/settings/brave_sync_page/brave_sync_browser_proxy.ts b/browser/resources/settings/brave_sync_page/brave_sync_browser_proxy.ts index 393236f958f4..b5b4df3b5b24 100644 --- a/browser/resources/settings/brave_sync_page/brave_sync_browser_proxy.ts +++ b/browser/resources/settings/brave_sync_page/brave_sync_browser_proxy.ts @@ -3,7 +3,7 @@ // 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/. -import {sendWithPromise} from 'chrome://resources/js/cr.m.js'; +import {sendWithPromise} from 'chrome://resources/js/cr.js'; import {SyncStatus} from '../people_page/sync_browser_proxy.js'; export type BraveDeviceInfo = { diff --git a/browser/resources/settings/brave_sync_page/brave_sync_configure.ts b/browser/resources/settings/brave_sync_page/brave_sync_configure.ts index 1c03210206a9..4d0ae0907b47 100644 --- a/browser/resources/settings/brave_sync_page/brave_sync_configure.ts +++ b/browser/resources/settings/brave_sync_page/brave_sync_configure.ts @@ -81,7 +81,8 @@ export class SettingsBraveSyncConfigureElement extends SettingsBraveSyncConfigur override async connectedCallback() { super.connectedCallback() const deviceList = await this.browserProxy_.getDeviceList() - this.addWebUIListener('device-info-changed', this.handleDeviceInfo_.bind(this)) + this.addWebUiListener( + 'device-info-changed', this.handleDeviceInfo_.bind(this)) this.handleDeviceInfo_(deviceList) } diff --git a/browser/resources/settings/brave_sync_page/brave_sync_page.ts b/browser/resources/settings/brave_sync_page/brave_sync_page.ts index a8e260feef9f..979bb8418a28 100644 --- a/browser/resources/settings/brave_sync_page/brave_sync_page.ts +++ b/browser/resources/settings/brave_sync_page/brave_sync_page.ts @@ -81,9 +81,9 @@ export class SettingsBraveSyncPageElement extends SettingsBraveSyncPageElementBa const onSyncStatus = this.handleSyncStatus_.bind(this) this.braveBrowserProxy_.getSyncStatus().then( (status: BraveSyncStatus) => onSyncStatus(status)); - this.addWebUIListener( + this.addWebUiListener( 'sync-prefs-changed', this.handleSyncPrefsChanged_.bind(this)); - this.addWebUIListener('sync-status-changed', onSyncStatus); + this.addWebUiListener('sync-status-changed', onSyncStatus); } onSyncTap_() { diff --git a/browser/resources/settings/brave_sync_page/brave_sync_subpage.ts b/browser/resources/settings/brave_sync_page/brave_sync_subpage.ts index da409f6c8943..1131d68531c3 100644 --- a/browser/resources/settings/brave_sync_page/brave_sync_subpage.ts +++ b/browser/resources/settings/brave_sync_page/brave_sync_subpage.ts @@ -5,8 +5,6 @@ // @ts-nocheck TODO(petemill): Define types and remove ts-nocheck -import 'chrome://resources/js/util.js'; - import 'chrome://resources/cr_elements/cr_button/cr_button.js'; import 'chrome://resources/cr_elements/cr_icon_button/cr_icon_button.js'; import 'chrome://resources/cr_elements/icons.html.js'; @@ -18,7 +16,7 @@ import '../people_page/sync_controls.js'; import './brave_sync_configure.js'; import './brave_sync_setup.js'; -import { assert } from 'chrome://resources/js/assert.js'; +import { assert } from 'chrome://resources/js/assert_ts.js'; import { PolymerElement } from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js'; import { I18nMixin } from 'chrome://resources/cr_elements/i18n_mixin.js'; diff --git a/browser/resources/settings/brave_tor_page/brave_tor_browser_proxy.ts b/browser/resources/settings/brave_tor_page/brave_tor_browser_proxy.ts index ad873aedc150..b4801ca4ddd0 100644 --- a/browser/resources/settings/brave_tor_page/brave_tor_browser_proxy.ts +++ b/browser/resources/settings/brave_tor_page/brave_tor_browser_proxy.ts @@ -5,7 +5,7 @@ // @ts-nocheck TODO(petemill): Define types and remove ts-nocheck -import { sendWithPromise } from 'chrome://resources/js/cr.m.js'; +import { sendWithPromise } from 'chrome://resources/js/cr.js'; export interface BraveTorBrowserProxy { getBridgesConfig(): Promise // TODO(petemill): Define the expected type diff --git a/browser/resources/settings/brave_tor_page/brave_tor_subpage.ts b/browser/resources/settings/brave_tor_page/brave_tor_subpage.ts index 6cdeb9457b6b..093829b0f94c 100644 --- a/browser/resources/settings/brave_tor_page/brave_tor_subpage.ts +++ b/browser/resources/settings/brave_tor_page/brave_tor_subpage.ts @@ -178,7 +178,7 @@ class SettingsBraveTorPageElement extends SettingBraveTorPageElementBase { // PrefControlMixin checks for a pref being valid, so have to fake it, // same as upstream. - this.addWebUIListener('tor-enabled-changed', enabled => { + this.addWebUiListener('tor-enabled-changed', enabled => { this.setTorEnabledPref_(enabled) }) this.browserProxy_.isTorEnabled().then(enabled => { @@ -192,7 +192,7 @@ class SettingsBraveTorPageElement extends SettingBraveTorPageElementBase { this.browserProxy_.isSnowflakeExtensionAllowed().then(allowed => { this.torSnowflakeExtensionAllowed_ = allowed }) - this.addWebUIListener('tor-snowflake-extension-enabled', enabled => { + this.addWebUiListener('tor-snowflake-extension-enabled', enabled => { this.setTorSnowflakeExtensionEnabledPref_(enabled) }) this.browserProxy_.isSnowflakeExtensionEnabled().then(enabled => { diff --git a/browser/resources/settings/brave_wallet_page/brave_wallet_browser_proxy.ts b/browser/resources/settings/brave_wallet_page/brave_wallet_browser_proxy.ts index b08c187644f8..042dc46bc2c9 100644 --- a/browser/resources/settings/brave_wallet_page/brave_wallet_browser_proxy.ts +++ b/browser/resources/settings/brave_wallet_page/brave_wallet_browser_proxy.ts @@ -3,7 +3,7 @@ * 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/. */ -import {sendWithPromise} from 'chrome://resources/js/cr.m.js'; +import {sendWithPromise} from 'chrome://resources/js/cr.js'; export enum CoinType { ETH = 60, diff --git a/browser/resources/settings/brave_wallet_page/wallet_networks_list.ts b/browser/resources/settings/brave_wallet_page/wallet_networks_list.ts index 570ccfe9aab8..efdbe163163f 100644 --- a/browser/resources/settings/brave_wallet_page/wallet_networks_list.ts +++ b/browser/resources/settings/brave_wallet_page/wallet_networks_list.ts @@ -1,4 +1,5 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public +/* Copyright (c) 2022 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/. */ @@ -12,6 +13,7 @@ import { I18nMixin } from 'chrome://resources/cr_elements/i18n_mixin.js'; import { PolymerElement } from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js'; import { BaseMixin } from '../base_mixin.js'; import {getTemplate} from './wallet_networks_list.html.js' +import {loadTimeData} from '../i18n_setup.js'; const SettingsWalletNetworksListBase = I18nMixin(BaseMixin(PolymerElement)) diff --git a/browser/resources/settings/brave_web3_domains_page/brave_web3_domains_browser_proxy.ts b/browser/resources/settings/brave_web3_domains_page/brave_web3_domains_browser_proxy.ts index 3ac755106d38..7b594a23e43c 100644 --- a/browser/resources/settings/brave_web3_domains_page/brave_web3_domains_browser_proxy.ts +++ b/browser/resources/settings/brave_web3_domains_page/brave_web3_domains_browser_proxy.ts @@ -3,7 +3,7 @@ // 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/. -import { sendWithPromise } from 'chrome://resources/js/cr.m.js' +import { sendWithPromise } from 'chrome://resources/js/cr.js' import { DropdownMenuOptionList } from '../controls/settings_dropdown_menu.js'; import { loadTimeData } from '../i18n_setup.js'; diff --git a/browser/resources/settings/default_brave_shields_page/brave_adblock_browser_proxy.ts b/browser/resources/settings/default_brave_shields_page/brave_adblock_browser_proxy.ts index c56d2371dcb2..44c146b96ab3 100644 --- a/browser/resources/settings/default_brave_shields_page/brave_adblock_browser_proxy.ts +++ b/browser/resources/settings/default_brave_shields_page/brave_adblock_browser_proxy.ts @@ -1,11 +1,11 @@ -/* Copyright 2022 The Brave Authors. All rights reserved. +/* Copyright (c) 2022 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/. */ + * You can obtain one at https://mozilla.org/MPL/2.0/. */ // @ts-nocheck TODO(petemill): Define types and remove ts-nocheck -import { sendWithPromise, addWebUIListener } from 'chrome://resources/js/cr.m.js'; +import { sendWithPromise, addWebUiListener } from 'chrome://resources/js/cr.js'; export interface BraveAdblockBrowserProxy { getRegionalLists(): Promise // TODO(petemill): Define the expected type @@ -14,7 +14,7 @@ export interface BraveAdblockBrowserProxy { getCustomFilters(): Promise // TODO(petemill): Define the expected type setSubscriptionEnabled(url: string, enabled: boolean) addSubscription(url: string) - addWebUIListener(eventName: string, callback: Function) + addWebUiListener(eventName: string, callback: Function) updateSubscription(url: string) deleteSubscription(url: string) viewSubscription(url: string) @@ -68,8 +68,8 @@ export class BraveAdblockBrowserProxyImpl implements BraveAdblockBrowserProxy { chrome.send('brave_adblock.viewSubscription', [url]) } - addWebUIListener (event_name, callback) { - addWebUIListener(event_name, callback) + addWebUiListener (event_name, callback) { + addWebUiListener(event_name, callback) } } diff --git a/browser/resources/settings/default_brave_shields_page/brave_adblock_subpage.ts b/browser/resources/settings/default_brave_shields_page/brave_adblock_subpage.ts index 99fea5390d5b..9b4248b1a14f 100644 --- a/browser/resources/settings/default_brave_shields_page/brave_adblock_subpage.ts +++ b/browser/resources/settings/default_brave_shields_page/brave_adblock_subpage.ts @@ -1,4 +1,4 @@ -/* Copyright 2022 The Brave Authors. All rights reserved. +/* Copyright (c) 2022 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/. */ @@ -57,7 +57,7 @@ class AdBlockSubpage extends AdBlockSubpageBase { this.customFilters_ = value }) - this.browserProxy_.addWebUIListener( + this.browserProxy_.addWebUiListener( 'brave_adblock.onGetListSubscriptions', (value) => { this.subscriptionList_ = value }) diff --git a/browser/resources/settings/default_brave_shields_page/default_brave_shields_browser_proxy.ts b/browser/resources/settings/default_brave_shields_page/default_brave_shields_browser_proxy.ts index e20583e8ea64..5a247af2f6bf 100644 --- a/browser/resources/settings/default_brave_shields_page/default_brave_shields_browser_proxy.ts +++ b/browser/resources/settings/default_brave_shields_page/default_brave_shields_browser_proxy.ts @@ -5,7 +5,7 @@ // @ts-nocheck TODO(petemill): Define types and remove ts-nocheck -import {sendWithPromise} from 'chrome://resources/js/cr.m.js'; +import {sendWithPromise} from 'chrome://resources/js/cr.js'; // @ts-nocheck TODO(petemill): Define types and remove ts-nocheck diff --git a/browser/resources/settings/pin_shortcut_page/pin_shortcut_page.ts b/browser/resources/settings/pin_shortcut_page/pin_shortcut_page.ts index 6a558ed1e203..ae2cb1d9a6b5 100644 --- a/browser/resources/settings/pin_shortcut_page/pin_shortcut_page.ts +++ b/browser/resources/settings/pin_shortcut_page/pin_shortcut_page.ts @@ -40,7 +40,8 @@ class SettingsPinShortcutPage extends SettingsPinShortcutPageBase { this.pinned_ = false this.browserProxy_.checkShortcutPinState() - this.addWebUIListener('shortcut-pin-state-changed', pinned => this.set('pinned_', pinned)) + this.addWebUiListener( + 'shortcut-pin-state-changed', pinned => this.set('pinned_', pinned)) } onPinShortcutTap_() { diff --git a/browser/resources/settings/pin_shortcut_page/pin_shortcut_page_browser_proxy.ts b/browser/resources/settings/pin_shortcut_page/pin_shortcut_page_browser_proxy.ts index 6c05350d7bad..60d6930d64b8 100644 --- a/browser/resources/settings/pin_shortcut_page/pin_shortcut_page_browser_proxy.ts +++ b/browser/resources/settings/pin_shortcut_page/pin_shortcut_page_browser_proxy.ts @@ -3,7 +3,7 @@ // 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/. -import {sendWithPromise} from 'chrome://resources/js/cr.m.js'; +import {sendWithPromise} from 'chrome://resources/js/cr.js'; /** @interface */ export class SettingsPinShortcutPageBrowserProxy { diff --git a/browser/search_engines/normal_window_search_engine_provider_service.cc b/browser/search_engines/normal_window_search_engine_provider_service.cc index 8edb1c60b54c..558e1ac1c457 100644 --- a/browser/search_engines/normal_window_search_engine_provider_service.cc +++ b/browser/search_engines/normal_window_search_engine_provider_service.cc @@ -7,6 +7,7 @@ #include "base/bind.h" #include "brave/browser/search_engines/search_engine_provider_util.h" +#include "chrome/browser/profiles/profile.h" #include "chrome/browser/search_engines/template_url_service_factory.h" #include "components/search_engines/template_url_service.h" diff --git a/browser/search_engines/private_window_search_engine_provider_service_base.cc b/browser/search_engines/private_window_search_engine_provider_service_base.cc index f76f5d6bdf0c..e9e260888c55 100644 --- a/browser/search_engines/private_window_search_engine_provider_service_base.cc +++ b/browser/search_engines/private_window_search_engine_provider_service_base.cc @@ -50,7 +50,7 @@ void PrivateWindowSearchEngineProviderServiceBase:: auto extension_id = extension_provider_url->GetExtensionId(); extensions::ExtensionPrefs* prefs = extensions::ExtensionPrefs::Get(otr_profile_->GetOriginalProfile()); - auto time = prefs->GetInstallTime(extension_id); + auto time = prefs->GetLastUpdateTime(extension_id); auto turl = std::make_unique(data, type, extension_id, time, true); @@ -85,9 +85,9 @@ void PrivateWindowSearchEngineProviderServiceBase:: otr_profile_->GetPrefs()->SetString(prefs::kSyncedDefaultSearchProviderGUID, data.sync_guid); - otr_profile_->GetPrefs()->Set( + otr_profile_->GetPrefs()->SetDict( DefaultSearchManager::kDefaultSearchProviderDataPrefName, - *TemplateURLDataToDictionary(data)); + TemplateURLDataToDictionary(data)); #endif } diff --git a/browser/sharing_hub/brave_sharing_hub_browsertest.cc b/browser/sharing_hub/brave_sharing_hub_browsertest.cc index 6d8282db6d12..b93c8e69adda 100644 --- a/browser/sharing_hub/brave_sharing_hub_browsertest.cc +++ b/browser/sharing_hub/brave_sharing_hub_browsertest.cc @@ -27,7 +27,8 @@ IN_PROC_BROWSER_TEST_F(BraveSharingHubTest, auto* sharing_hub_service = SharingHubServiceFactory::GetForProfile(profile); auto* model = sharing_hub_service->GetSharingHubModel(); std::vector list; - model->GetThirdPartyActionList(&list); + model->GetThirdPartyActionList( + browser()->tab_strip_model()->GetActiveWebContents(), &list); EXPECT_TRUE(list.empty()); } diff --git a/browser/sharing_hub/brave_sharing_hub_model.cc b/browser/sharing_hub/brave_sharing_hub_model.cc index 7cc46a03e17a..94996094c058 100644 --- a/browser/sharing_hub/brave_sharing_hub_model.cc +++ b/browser/sharing_hub/brave_sharing_hub_model.cc @@ -10,6 +10,7 @@ namespace sharing_hub { BraveSharingHubModel::~BraveSharingHubModel() = default; void BraveSharingHubModel::GetThirdPartyActionList( + content::WebContents* web_contents, std::vector* list) { // We don't use any third party actions now. } diff --git a/browser/sharing_hub/brave_sharing_hub_model.h b/browser/sharing_hub/brave_sharing_hub_model.h index 4fd5740b8158..bcc447ed9833 100644 --- a/browser/sharing_hub/brave_sharing_hub_model.h +++ b/browser/sharing_hub/brave_sharing_hub_model.h @@ -20,7 +20,8 @@ class BraveSharingHubModel : public sharing_hub::SharingHubModel { ~BraveSharingHubModel() override; // SharingHubModel overrides: - void GetThirdPartyActionList(std::vector* list) override; + void GetThirdPartyActionList(content::WebContents* web_contents, + std::vector* list) override; }; } // namespace sharing_hub diff --git a/browser/tor/tor_profile_manager_browsertest.cc b/browser/tor/tor_profile_manager_browsertest.cc index da153256f7db..3dce2ceab010 100644 --- a/browser/tor/tor_profile_manager_browsertest.cc +++ b/browser/tor/tor_profile_manager_browsertest.cc @@ -1,7 +1,7 @@ -// Copyright 2020 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 http://mozilla.org/MPL/2.0/. +/* Copyright (c) 2022 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/. */ #include "base/path_service.h" #include "base/process/launch.h" @@ -134,7 +134,7 @@ IN_PROC_BROWSER_TEST_F(TorProfileManagerTest, SwitchToTorProfileShareBookmarks) { ProfileManager* profile_manager = g_browser_process->profile_manager(); ASSERT_TRUE(profile_manager); - Profile* parent_profile = ProfileManager::GetActiveUserProfile(); + Profile* parent_profile = ProfileManager::GetLastUsedProfile(); // Add a bookmark in parent profile. const std::u16string title(u"Test"); @@ -184,7 +184,7 @@ IN_PROC_BROWSER_TEST_F(TorProfileManagerTest, SwitchToTorProfileExcludeServices) { ProfileManager* profile_manager = g_browser_process->profile_manager(); ASSERT_TRUE(profile_manager); - Profile* parent_profile = ProfileManager::GetActiveUserProfile(); + Profile* parent_profile = ProfileManager::GetLastUsedProfile(); Profile* tor_profile = SwitchToTorProfile(parent_profile, GetTorLauncherFactory()); @@ -206,7 +206,7 @@ IN_PROC_BROWSER_TEST_F(TorProfileManagerTest, IN_PROC_BROWSER_TEST_F(TorProfileManagerTest, SwitchToTorProfileInheritPrefs) { ProfileManager* profile_manager = g_browser_process->profile_manager(); ASSERT_TRUE(profile_manager); - Profile* parent_profile = ProfileManager::GetActiveUserProfile(); + Profile* parent_profile = ProfileManager::GetLastUsedProfile(); // Set ShowBookmarkBar preference in the parent profile. PrefService* parent_prefs = parent_profile->GetPrefs(); @@ -234,7 +234,7 @@ IN_PROC_BROWSER_TEST_F(TorProfileManagerTest, ProfileManager* profile_manager = g_browser_process->profile_manager(); ASSERT_TRUE(profile_manager); - Profile* parent_profile = ProfileManager::GetActiveUserProfile(); + Profile* parent_profile = ProfileManager::GetLastUsedProfile(); HostContentSettingsMap* parent_content_settings = HostContentSettingsMapFactory::GetForProfile(parent_profile); @@ -275,7 +275,7 @@ IN_PROC_BROWSER_TEST_F(TorProfileManagerTest, CloseLastTorWindow) { ProfileManager* profile_manager = g_browser_process->profile_manager(); ASSERT_TRUE(profile_manager); - Profile* parent_profile = ProfileManager::GetActiveUserProfile(); + Profile* parent_profile = ProfileManager::GetLastUsedProfile(); EXPECT_EQ(BrowserList::GetInstance()->size(), 1u); Profile* tor_profile = SwitchToTorProfile(parent_profile, GetTorLauncherFactory()); @@ -298,7 +298,7 @@ IN_PROC_BROWSER_TEST_F(TorProfileManagerTest, CloseAllTorWindows) { ASSERT_TRUE(profile_manager); BrowserList* browser_list = BrowserList::GetInstance(); - Profile* parent_profile1 = ProfileManager::GetActiveUserProfile(); + Profile* parent_profile1 = ProfileManager::GetLastUsedProfile(); ASSERT_NE(CreateIncognitoBrowser(parent_profile1), nullptr); ASSERT_EQ(browser_list->size(), 2u); @@ -369,7 +369,7 @@ class TorProfileManagerExtensionTest : public extensions::ExtensionBrowserTest { IN_PROC_BROWSER_TEST_F(TorProfileManagerExtensionTest, SwitchToTorProfileIncognitoEnabled) { - Profile* parent_profile = ProfileManager::GetActiveUserProfile(); + Profile* parent_profile = ProfileManager::GetLastUsedProfile(); ASSERT_TRUE(parent_profile); // Install an extension in parent profile and enable in incognito. diff --git a/browser/ui/android/logo/BUILD.gn b/browser/ui/android/logo/BUILD.gn index 8411fff326d2..285d5f977799 100644 --- a/browser/ui/android/logo/BUILD.gn +++ b/browser/ui/android/logo/BUILD.gn @@ -13,5 +13,6 @@ android_library("java") { "//base:base_java", "//chrome/browser/ui/android/logo:java", "//content/public/android:content_full_java", + "//ui/android:ui_no_recycler_view_java", ] } diff --git a/browser/ui/android/logo/java/src/org/chromium/chrome/browser/logo/BraveLogoCoordinator.java b/browser/ui/android/logo/java/src/org/chromium/chrome/browser/logo/BraveLogoCoordinator.java index 7072a07553c1..0eb98f9d50a9 100644 --- a/browser/ui/android/logo/java/src/org/chromium/chrome/browser/logo/BraveLogoCoordinator.java +++ b/browser/ui/android/logo/java/src/org/chromium/chrome/browser/logo/BraveLogoCoordinator.java @@ -11,27 +11,34 @@ import org.chromium.base.Callback; import org.chromium.chrome.browser.logo.LogoBridge.Logo; import org.chromium.content_public.browser.LoadUrlParams; +import org.chromium.ui.modelutil.PropertyModel; public class BraveLogoCoordinator extends LogoCoordinator { // To delete in bytecode, members from parent class will be used instead. - private boolean mShouldShowLogo; + private PropertyModel mLogoModel; // Own members. private final LogoView mLogoView; public BraveLogoCoordinator(Context context, Callback logoClickedCallback, LogoView logoView, boolean shouldFetchDoodle, Callback onLogoAvailableCallback, - Runnable onCachedLogoRevalidatedRunnable, boolean isParentSurfaceShown) { + Runnable onCachedLogoRevalidatedRunnable, boolean isParentSurfaceShown, + LogoCoordinator.VisibilityObserver visibilityObserver) { super(context, logoClickedCallback, logoView, shouldFetchDoodle, onLogoAvailableCallback, - onCachedLogoRevalidatedRunnable, isParentSurfaceShown); + onCachedLogoRevalidatedRunnable, isParentSurfaceShown, visibilityObserver); mLogoView = logoView; } - public void updateVisibility() { + @Override + public void updateVisibilityAndMaybeCleanUp( + boolean isParentSurfaceShown, boolean shouldDestroyBridge, boolean animationEnabled) { // We don't want any logo to be shown regardless of the search engine chosen. - mShouldShowLogo = false; + mLogoModel.set(LogoProperties.VISIBILITY, false); mLogoView.setVisibility(View.GONE); + + super.updateVisibilityAndMaybeCleanUp( + isParentSurfaceShown, shouldDestroyBridge, animationEnabled); } } diff --git a/browser/ui/android/strings/android_chrome_strings.grd b/browser/ui/android/strings/android_chrome_strings.grd index 560d24431964..d7415d2dbb77 100644 --- a/browser/ui/android/strings/android_chrome_strings.grd +++ b/browser/ui/android/strings/android_chrome_strings.grd @@ -809,6 +809,18 @@ CHAR_LIMIT guidelines: Privacy and security + + Privacy + + + Security + + + Donec semper + + + Fusce purus nibh, dictum sit amet mi in, fringilla ullamcorper tortor + Touch to Search @@ -944,19 +956,19 @@ When you delete your browsing history — all or for a specific site — you als Help sites fight fraud and distinguish bots from profiles - - Spam & fraud reduction relies on trust tokens to help sites fight fraud and distinguish bots from profiles. + + Spam & fraud reduction relies on private state tokens to help sites fight fraud and distinguish bots from profiles. -Based on your interaction with a site, like regularly signing in to an account, that site can issue a trust token to your browser. Later, if other sites you visit check for and find a valid trust token, they’re more likely to treat you like a profile and not a bot. +Based on your interaction with a site, like regularly signing in to an account, that site can issue a private state token to your browser. Later, if other sites you visit check for and find a valid private state token, they’re more likely to treat you like a profile and not a bot. -Trust tokens improve privacy on the web and can’t be used to find out who you are. +Private state tokens improve privacy on the web and can’t be used to find out who you are. - - When trials are on, Spam & fraud reduction relies on trust tokens to help sites fight fraud and distinguish bots from profiles. + + When trials are on, Spam & fraud reduction relies on private state tokens to help sites fight fraud and distinguish bots from profiles. -Based on your interaction with a site, like regularly signing in to an account, that site can issue a trust token to your browser. Later, if other sites you visit check for and find a valid trust token, they’re more likely to treat you like a profile and not a bot. +Based on your interaction with a site, like regularly signing in to an account, that site can issue a private state token to your browser. Later, if other sites you visit check for and find a valid private state token, they’re more likely to treat you like a profile and not a bot. -Trust tokens improve privacy on the web and can’t be used to find out who you are. +Private state tokens improve privacy on the web and can’t be used to find out who you are. <b>What data is used:</b> Your browsing history, a record of sites you’ve visited using Brave on this device. @@ -1099,6 +1111,291 @@ Trust tokens improve privacy on the web and can’t be used to find out who you Brave is finding new ways to reduce tracking and keep you even safer as you browse. Brave also <link>estimates your interests</link> and enables you to manage them. Then, sites you visit can ask Brave for your interests to show you ads. + + + Lorem ipsum Consent + + + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis pretium pulvinar metus non mollis. Quisque placerat eget nisl sit amet facilisis. + + + Nulla in tortor a ligula scelerisque laoreet. Sed sem velit, varius non purus vitae, imperdiet porttitor elit. Integer et libero id metus egestas consequat non a ipsum. + + + Vestibulum pretium placerat justo vel suscipit. Quisque urna arcu, elementum ut venenatis ornare, consequat ac turpis. + + + Vestibulum orci risus, consectetur + + + Vestibulum pretium placerat justo vel suscipit. Quisque urna arcu, elementum ut venenatis ornare, consequat ac turpis. + + + Consectetur + + + Quisque + + + Lorem + + + Esed purus vestibulum velit convalli + + + <b>Nulla in tortor:</b> a ligula scelerisque laoreet. Sed sem velit, varius non purus vitae, imperdiet porttitor elit. + + + <b>Consectetur adipiscing elit:</b> Duis pretium pulvinar metus non mollis + + + <b>Sed purus vestibulum: </b> velit convallis suscipit. Aenean aliquam ut velit eget dapibus. Vestibulum orci risus, consectetur non odio vulputate, mattis dignissim purus. Cras id tempor mi. + + + Esed purus vestibulum velit convalli + + + More + + + + + Lorem ipsum Notice EEA + + + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis pretium pulvinar metus non mollis. Quisque placerat eget nisl sit amet facilisis. + + + Nulla in tortor: a ligula scelerisque laoreet. Sed sem velit, varius non purus vitae, imperdiet porttitor elit. + + + Sed purus vestibulum: velit convallis suscipit. Aenean aliquam ut velit eget dapibus. Vestibulum orci risus, consectetur non odio vulputate, mattis dignissim purus. Cras id tempor mi. + + + Vestibulum orci risus, consectetur + + + Consectetur adipiscing elit duis pretium pulvinar metus non mollis + + + Sed + + + Cras id + + + Esed purus vestibulum velit convalli + + + Nulla in tortor a ligula scelerisque laoreet. Sed sem velit, varius non purus vitae, imperdiet porttitor elit. Integer et libero id metus egestas consequat non a ipsum. + + + Proin sed purus vestibulum velit velit eget dapibus. + + + <b>Nulla in tortor:</b> a ligula scelerisque laoreet. Sed sem velit, varius non purus vitae, imperdiet porttitor elit. + + + <b>Consectetur adipiscing elit:</b> Duis pretium pulvinar metus non mollis + + + <b>Sed purus vestibulum: </b> velit convallis suscipit. Aenean aliquam ut velit eget dapibus. Vestibulum orci risus, consectetur non odio vulputate, mattis dignissim purus. Cras id tempor mi. + + + + + Lorem ipsum Notice ROW + + + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis pretium pulvinar metus non mollis. + + + Nulla in tortor a ligula scelerisque laoreet. Sed sem velit, varius non purus vitae, imperdiet porttitor elit. Integer et libero id metus egestas consequat non a ipsum. Quisque placerat eget nisl sit amet facilisis. + + + Vestibulum pretium placerat justo vel suscipit. Quisque urna arcu, elementum ut venenatis ornare, consequat ac turpis. Vestibulum orci risus, consectetur non odio vulputate, mattis dignissim purus. Cras id tempor mi. + + + Proin sed purus vestibulum velit convallis suscipit eget dapibus. + + + Sed + + + Cras id + + + Vestibulum orci risus consectetur + + + Esed purus vestibulum velit convalli + + + Etiam dictum sem et neque molestie lobortis. Morbi quam tellus, tincidunt eget dapibus ac, lobortis et lacus. Integer nec egestas elit. Nulla venenatis facilisis dui eget suscipit. + + + Class aptent taciti sociosqu ad + + + Vestibulum pretium placerat justo vel suscipit. Quisque urna arcu. + + + Sed elementum tellus condimentum quam vestibulum lacinia. Ut eu lobortis massa, venenatis sodales lacus. Nulla elementum magna et tortor efficitur, at volutpat metus varius. + + + Duis tempor nulla nisi, ac bibendum lorem tempus sit amet. Proin non blandit risus. Maecenas facilisis enim nec tristique tristique. Eelementum ut venenatis ornare, consequat ac turpis. Vestibulum orci risus, consectetur non odio vulputate, mattis dignissim purus. Cras id tempor mi. + + + Etiam hendrerit turpis nibh, ac maximus lectus placerat at. Vivamus ligula quam, posuere luctus felis eu, dictum egestas arcu. per conubia nostra, per inceptos himenaeos. Cras ut metus vel est molestie finibus nec ut orci. + + + Aliquam euismod scelerisque metus, in aliquet est vehicula ut. Curabitur sit amet ligula quis ante maximus gravida non id magna. Pellentesque interdum venenatis leo, at ultrices felis mollis nec. Integer vulputate velit eget mauris lacinia, ut ullamcorper mauris vehicula. + + + Orci varius natoque penatibus et + + + Suspendisse at dui pulvinar, rhoncus orci at, porttitor nibh. Curabitur lacinia nulla sem, eu euismod dolor vulputate quis. Duis mattis eros et arcu elementum tempor. Duis pharetra eleifend sagittis. + + + Cras sed lacus suscipit, efficitur erat nec, semper sapien. Fusce at nunc molestie, elementum augue at, auctor nunc. Sed dui nisi, consectetur sit amet urna vitae, facilisis scelerisque justo. + + + + + Donec semper + + + Mauris interdum lectus vitae lacinia + + + Enabled Nulla eros tortor, placerat blandit dictum a, interdum id metus + + + Disabled Nulla eros tortor, placerat blandit dictum a, interdum id metus + + + Aenean erat leo + + + Enabled Duis scelerisque a mi eget ultricies + + + Disabled Duis scelerisque a mi eget ultricies + + + Vestibulum augue erat + + + Enabled Vivamus id lacus et lacus porttitor vulputate. Sed semper egestas orci vel maximus. + + + Disabled Vivamus id lacus et lacus porttitor vulputate. Sed semper egestas orci vel maximus. + + + + + Mauris interdum lectus vitae lacinia + + + Nunc gravida condimentum consectetur + + + + Vivamus nibh turpis, varius quis nisi vel, porta laoreet tellus. <link>Mauris porta imperdiet venenatis</link> + + + Mauris at lectus + + + Nulla tincidunt iaculis nulla, sit amet viverra massa luctus nec. Integer eget pellentesque magna, et venenatis lorem. Integer a porta elit, eget bibendum neque. + + + Sed porta viverra lacus ut euismod. Integer a cursus metus, ac ultricies libero. + + + Curabitur sagittis sapien ut turpis interdum, vitae porttitor sem pretium. Vestibulum sem mauris, ultrices ac massa sit amet, sodales aliquet est. + + + Integer faucibus metus + + + Donec fringilla justo vel ligula finibus, ut rutrum lectus vestibulum. Suspendisse vestibulum lorem lacinia nulla consequat auctor. + + + Donec commodo sem non augue blandit, ullamcorper aliquam enim fermentum + + + Diam maecenas sed + + + Integer faucibus metus + + + + Quisque eu auctor purus, id tempus nulla. Pellentesque porta orci purus. Donec dictum, <link1>justo nec ultricies semper</link1>, <link2>eros mauris varius nibh</link2>, sit amet molestie quam arcu id urna. Donec vulputate dui ut lorem egestas, ac sollicitudin metus fermentum. + + + + + Aenean erat leo + + + Nunc aliquam consequat felis non tincidunt + + + + Donec pretium non elit vitae ornare. Morbi arcu elit, rutrum nec sapien quis, <link>tristique tristique ante</link> + + + Aliquam + + + Nullam sollicitudin elit vitae hendrerit suscipit. Nunc mi leo, placerat sit amet lorem non, semper convallis sapien. + + + Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos + + + Morbi quis orci in mauris tempus rutrum. Curabitur blandit orci tortor, pellentesque tempor turpis lacinia ac. + + + Donec non mi + + + Curabitur a pharetra + + + + Pellentesque sollicitudin purus sit amet felis fringilla blandit. Donec a eleifend ligula, <link1>et fringilla nunc</link1>. Vivamus sit amet <link2>cursus quam</link2>. Etiam ultricies rutrum orci, eget accumsan purus mattis in. + + + + + Vestibulum augue + + + Vestibulum augue erat + + + Vestibulum eleifend nunc a viverra congue. Integer nec mauris rutrum, porta mauris et, pellentesque ligula. Nam et pulvinar eros, in gravida nisl. + + + Mauris + + + Aenean + + + Praesent sodales, magna eget volutpat iaculis, justo odio viverra justo, id venenatis est est sit amet ex + + + Nunc metus est, faucibus sit amet lacus sit amet, aliquet rutrum libero. Maecenas vel euismod ante. + + + Mauris mattis urna elit. Phasellus quis erat sapien. Praesent finibus pellentesque iaculis. Mauris hendrerit metus at enim rhoncus bibendum. + + Custom @@ -1684,13 +1981,13 @@ Your Brave account may have other forms of browsing history like searches and ac - + File can’t be downloaded securely - + Keep - + Discard @@ -1767,6 +2064,9 @@ Your Brave account may have other forms of browsing history like searches and ac If you change the file extension, the file may open in a different application and potentially be a hazard to your device. + + New file name + @@ -1817,6 +2117,7 @@ Your Brave account may have other forms of browsing history like searches and ac Waiting for details of parents. + This browser is managed by %1$sparent1@gmail.com. @@ -1835,6 +2136,15 @@ Your Brave account may have other forms of browsing history like searches and ac Allow all sites + + If you need help, ask your parent + + + If you need help, ask your parent (%1$sparent1@gmail.com) + + + If you need help, ask your parent (%1$sparent1@gmail.com or %2$sparent2@gmail.com) + @@ -2032,6 +2342,10 @@ Your Brave account may have other forms of browsing history like searches and ac Passphrase encryption doesn’t include payment methods and addresses from Google Pay. Only someone with your passphrase can read your encrypted data. The passphrase is not sent to or stored by Brave. If you forget your passphrase or want to change this setting you'll need to reset sync. <learnmore>Learn more</learnmore> + + Payment methods and addresses from Google Pay won’t be encrypted. Browsing history from Brave won’t sync. +Only someone with your passphrase can read your encrypted data. The passphrase is not sent to or stored by Brave. If you forget your passphrase or want to change this setting, you’ll need to reset sync. <learnmore>Learn more</learnmore> + Passphrase @@ -3105,8 +3419,17 @@ To change this setting, <resetlink>reset sync

Manage - - Creator Profile + + Nothing to show yet + + + You'll see content when it becomes available + + + Something went wrong + + + Try again later Activity @@ -3231,7 +3554,7 @@ To change this setting, <resetlink>reset sync

%1$s5 tabs as a new background tab group. - Follow any sites you want + See content you follow here @@ -3253,12 +3576,6 @@ To change this setting, <resetlink>reset sync

Checking your internet connection - - See popular websites - - - See popular websites by tapping the "Top sites" button - @@ -4165,8 +4482,8 @@ To change this setting, <resetlink>reset sync

Go to Following - - Refresh to view + + Refresh Can’t follow. Something went wrong. @@ -4324,15 +4641,6 @@ To change this setting, <resetlink>reset sync

Establishing a tunnel via proxy server failed - - Apps - - - Uninstall - - - Site settings - @@ -4809,24 +5117,6 @@ To change this setting, <resetlink>reset sync

Helps you complete tasks, such as checkout, throughout the web - - Web Assistance - - - Get help with tasks on the web - - - To help you complete tasks, Brave will receive the URLs and contents of sites on which you use Assistant, as well as information you submit through Assistant - - - Proactive Help - - - Assistant will appear when it detects that it can help you on supported websites - - - To use this setting <link>Make searches and browsing better</link> must be turned on - Show your Brave activity in Digital Wellbeing? @@ -4855,10 +5145,6 @@ To change this setting, <resetlink>reset sync

- - Brave Assistant in Brave - - Developer UI @@ -5652,6 +5938,17 @@ To change this setting, <resetlink>reset sync

Price drop spotted + + + + Resume your last task? + + + Easily continue where you left off + + + Restore + diff --git a/browser/ui/android/strings/android_chrome_strings_override.grd b/browser/ui/android/strings/android_chrome_strings_override.grd index f87ee2e7d09a..e51546cf11fc 100644 --- a/browser/ui/android/strings/android_chrome_strings_override.grd +++ b/browser/ui/android/strings/android_chrome_strings_override.grd @@ -126,19 +126,19 @@ CHAR_LIMIT guidelines: Help sites fight fraud and distinguish bots from profiles - - Spam & fraud reduction relies on trust tokens to help sites fight fraud and distinguish bots from profiles. + + Spam & fraud reduction relies on private state tokens to help sites fight fraud and distinguish bots from profiles. -Based on your interaction with a site, like regularly signing in to an account, that site can issue a trust token to your browser. Later, if other sites you visit check for and find a valid trust token, they’re more likely to treat you like a profile and not a bot. +Based on your interaction with a site, like regularly signing in to an account, that site can issue a private state token to your browser. Later, if other sites you visit check for and find a valid private state token, they’re more likely to treat you like a profile and not a bot. -Trust tokens improve privacy on the web and can’t be used to find out who you are. +Private state tokens improve privacy on the web and can’t be used to find out who you are. - - When trials are on, Spam & fraud reduction relies on trust tokens to help sites fight fraud and distinguish bots from profiles. + + When trials are on, Spam & fraud reduction relies on private state tokens to help sites fight fraud and distinguish bots from profiles. -Based on your interaction with a site, like regularly signing in to an account, that site can issue a trust token to your browser. Later, if other sites you visit check for and find a valid trust token, they’re more likely to treat you like a profile and not a bot. +Based on your interaction with a site, like regularly signing in to an account, that site can issue a private state token to your browser. Later, if other sites you visit check for and find a valid private state token, they’re more likely to treat you like a profile and not a bot. -Trust tokens improve privacy on the web and can’t be used to find out who you are. +Private state tokens improve privacy on the web and can’t be used to find out who you are. Block while using private diff --git a/browser/ui/bookmark/BUILD.gn b/browser/ui/bookmark/BUILD.gn index b78e7c50a004..2530365a92aa 100644 --- a/browser/ui/bookmark/BUILD.gn +++ b/browser/ui/bookmark/BUILD.gn @@ -36,7 +36,7 @@ source_set("bookmark") { "//chrome/browser/new_tab_page/modules/drive:mojo_bindings", "//chrome/browser/new_tab_page/modules/recipes:mojo_bindings", "//chrome/browser/ui/webui/new_tab_page:mojo_bindings", - "//chrome/browser/ui/webui/realbox:mojo_bindings", + "//components/omnibox/browser:mojo_bindings", "//ui/webui/resources/js/browser_command:mojo_bindings", ] } diff --git a/browser/ui/sidebar/BUILD.gn b/browser/ui/sidebar/BUILD.gn index dc9951481a80..d9047f0d21d3 100644 --- a/browser/ui/sidebar/BUILD.gn +++ b/browser/ui/sidebar/BUILD.gn @@ -59,7 +59,7 @@ source_set("sidebar") { "//chrome/browser/new_tab_page/modules/drive:mojo_bindings", "//chrome/browser/new_tab_page/modules/recipes:mojo_bindings", "//chrome/browser/ui/webui/new_tab_page:mojo_bindings", - "//chrome/browser/ui/webui/realbox:mojo_bindings", + "//components/omnibox/browser:mojo_bindings", ] } } diff --git a/browser/ui/views/side_panel/brave_side_panel.h b/browser/ui/views/side_panel/brave_side_panel.h index 982befbcacf6..d5c79be53807 100644 --- a/browser/ui/views/side_panel/brave_side_panel.h +++ b/browser/ui/views/side_panel/brave_side_panel.h @@ -42,6 +42,8 @@ class BraveSidePanel : public views::View, // views::ResizeAreaDelegate: void OnResize(int resize_amount, bool done_resizing) override; + void SetMinimumSidePanelContentsWidthForTesting(int width) {} + private: void UpdateVisibility(); void UpdateBorder(); diff --git a/browser/ui/views/tabs/brave_browser_tab_strip_controller.cc b/browser/ui/views/tabs/brave_browser_tab_strip_controller.cc index 48f3d8ee3884..074b54d9be9c 100644 --- a/browser/ui/views/tabs/brave_browser_tab_strip_controller.cc +++ b/browser/ui/views/tabs/brave_browser_tab_strip_controller.cc @@ -30,9 +30,11 @@ void BraveBrowserTabStripController::ShowContextMenuForTab( ui::MenuSourceType source_type) { BrowserView* browser_view = BrowserView::GetBrowserViewForBrowser(browser()); - context_menu_contents_ = std::make_unique( - tab, - this, - browser_view->tabstrip()->GetModelIndexOf(tab)); + const auto tab_index = browser_view->tabstrip()->GetModelIndexOf(tab); + if (!tab_index) { + return; + } + context_menu_contents_ = + std::make_unique(tab, this, *tab_index); context_menu_contents_->RunMenuAt(p, source_type); } diff --git a/browser/ui/views/tabs/brave_compound_tab_container.cc b/browser/ui/views/tabs/brave_compound_tab_container.cc index 7e81482f456b..57d94d9adb1d 100644 --- a/browser/ui/views/tabs/brave_compound_tab_container.cc +++ b/browser/ui/views/tabs/brave_compound_tab_container.cc @@ -66,19 +66,6 @@ base::OnceClosure BraveCompoundTabContainer::LockLayout() { std::move(closures)); } -int BraveCompoundTabContainer::GetAvailableWidthForUnpinnedTabContainer( - base::RepeatingCallback available_width_callback) { - // At this moment, Chromium upstream has a bug which causes crash. - // In a near future, this patch won't be needed as upstream checks if the - // `available_width_callback` is null. - if (!available_width_callback) { - return parent() ? parent()->GetAvailableSize(this).width().value() : 0; - } - - return CompoundTabContainer::GetAvailableWidthForUnpinnedTabContainer( - available_width_callback); -} - void BraveCompoundTabContainer::TransferTabBetweenContainers( int from_model_index, int to_model_index) { diff --git a/browser/ui/views/tabs/brave_compound_tab_container.h b/browser/ui/views/tabs/brave_compound_tab_container.h index 4d6d240fb307..8a546c525012 100644 --- a/browser/ui/views/tabs/brave_compound_tab_container.h +++ b/browser/ui/views/tabs/brave_compound_tab_container.h @@ -26,8 +26,6 @@ class BraveCompoundTabContainer : public CompoundTabContainer { // CompoundTabContainer: void SetAvailableWidthCallback( base::RepeatingCallback available_width_callback) override; - int GetAvailableWidthForUnpinnedTabContainer( - base::RepeatingCallback available_width_callback) override; void TransferTabBetweenContainers(int from_model_index, int to_model_index) override; diff --git a/browser/ui/views/tabs/brave_tab_container.cc b/browser/ui/views/tabs/brave_tab_container.cc index ce680ce31078..02472bcaa236 100644 --- a/browser/ui/views/tabs/brave_tab_container.cc +++ b/browser/ui/views/tabs/brave_tab_container.cc @@ -226,7 +226,7 @@ void BraveTabContainer::StartInsertTabAnimation(int model_index) { GetTabAtModelIndex(model_index)->SetBoundsRect(bounds); // Animate in to the full width. - StartBasicAnimation(); + AnimateToIdealBounds(); } void BraveTabContainer::RemoveTab(int index, bool was_active) { diff --git a/browser/ui/views/tabs/brave_tab_hover_browsertest.cc b/browser/ui/views/tabs/brave_tab_hover_browsertest.cc index 248f2b01073d..87519353262e 100644 --- a/browser/ui/views/tabs/brave_tab_hover_browsertest.cc +++ b/browser/ui/views/tabs/brave_tab_hover_browsertest.cc @@ -59,7 +59,10 @@ class BraveTabHoverTest : public InProcessBrowserTest { return browser_view->tabstrip(); } - Tab* active_tab() { return tabstrip()->tab_at(tabstrip()->GetActiveIndex()); } + Tab* active_tab() { + TabStripModel* tab_strip_model = browser()->tab_strip_model(); + return tabstrip()->tab_at(tab_strip_model->active_index()); + } void HoverOverTab(Tab* tab) { // Note: As stated in |tab_hover_card_bubble_view_browsertest.cc| we don't @@ -84,7 +87,7 @@ IN_PROC_BROWSER_TEST_F(BraveTabHoverTest, TabRendererData data; data.visible_url = GURL("https://example.com"); data.title = u"Hello World"; - tabstrip()->SetTabData(tabstrip()->GetActiveIndex(), data); + tabstrip()->SetTabData(browser()->tab_strip_model()->active_index(), data); EXPECT_EQ(u"Hello World", active_tab()->data().title); browser()->profile()->GetPrefs()->SetInteger(brave_tabs::kTabHoverMode, @@ -109,7 +112,7 @@ IN_PROC_BROWSER_TEST_F(BraveTabHoverTest, ThumbnailHelperIsAlwaysAttached) { data.visible_url = GURL("https://card.com"); data.title = u"Hello World"; tabstrip()->AddTabAt(0, data); - EXPECT_EQ(0, tabstrip()->GetActiveIndex()); + EXPECT_EQ(0, browser()->tab_strip_model()->active_index()); EXPECT_EQ(data.visible_url, active_tab()->data().visible_url); EXPECT_NE(nullptr, content::WebContentsUserData::FromWebContents( @@ -120,7 +123,7 @@ IN_PROC_BROWSER_TEST_F(BraveTabHoverTest, ThumbnailHelperIsAlwaysAttached) { data.visible_url = GURL("https://card-with-preview.com"); data.title = u"Foo Bar"; tabstrip()->AddTabAt(0, data); - EXPECT_EQ(0, tabstrip()->GetActiveIndex()); + EXPECT_EQ(0, browser()->tab_strip_model()->active_index()); EXPECT_EQ(data.visible_url, active_tab()->data().visible_url); EXPECT_NE(nullptr, content::WebContentsUserData::FromWebContents( diff --git a/browser/ui/wallet_bubble_manager_delegate_impl.cc b/browser/ui/wallet_bubble_manager_delegate_impl.cc index c944d9813bb1..9b8d08bfcfc6 100644 --- a/browser/ui/wallet_bubble_manager_delegate_impl.cc +++ b/browser/ui/wallet_bubble_manager_delegate_impl.cc @@ -82,7 +82,7 @@ class BraveWebUIBubbleManagerT : public WebUIBubbleManagerT, if (!contents_wrapper) return; brave_observer_.reset(); - for (auto tab_id : contents_wrapper->GetPopupIds()) { + for (auto tab_id : contents_wrapper->popup_ids()) { Browser* popup_browser = nullptr; content::WebContents* popup_contents = brave_wallet::GetWebContentsFromTabId(&popup_browser, tab_id); @@ -93,12 +93,12 @@ class BraveWebUIBubbleManagerT : public WebUIBubbleManagerT, continue; delegate->CloseContents(popup_contents); } - contents_wrapper->GetPopupIds().clear(); + contents_wrapper->ClearPopupIds(); } const std::vector& GetPopupIdsForTesting() { auto contents_wrapper = WebUIBubbleManagerT::cached_contents_wrapper(); - return contents_wrapper->GetPopupIds(); + return contents_wrapper->popup_ids(); } void OnWidgetDestroying(views::Widget* widget) override { diff --git a/browser/widevine/BUILD.gn b/browser/widevine/BUILD.gn index bafb2fbbd670..3979b57abfff 100644 --- a/browser/widevine/BUILD.gn +++ b/browser/widevine/BUILD.gn @@ -1,5 +1,12 @@ +# Copyright (c) 2023 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/. + import("//third_party/widevine/cdm/widevine.gni") +assert(enable_widevine) + source_set("widevine") { # Remove when https://github.com/brave/brave-browser/issues/10644 is resolved check_includes = false @@ -38,45 +45,42 @@ source_set("constants") { source_set("unittest") { testonly = true - if (enable_widevine && !is_android) { - sources = [ "widevine_cdm_component_installer_unittest.cc" ] - deps = [ - "//testing/gtest", - "//third_party/widevine/cdm:buildflags", - ] - } + + sources = [ "widevine_cdm_component_installer_unittest.cc" ] + deps = [ + "//testing/gtest", + "//third_party/widevine/cdm:buildflags", + ] } source_set("browser_tests") { testonly = true defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ] - if (enable_widevine) { - sources = [ - "widevine_permission_request_browsertest.cc", - "widevine_prefs_migration_browsertest.cc", - ] + sources = [ + "widevine_permission_request_browsertest.cc", + "widevine_prefs_migration_browsertest.cc", + ] - deps = [ - ":constants", - ":widevine", - "//base", - "//brave/browser", - "//brave/common", - "//brave/components/constants", - "//chrome/browser", - "//chrome/browser:browser_process", - "//chrome/browser/profiles:profile", - "//chrome/browser/ui", - "//chrome/common", - "//chrome/test:test_support_ui", - "//components/prefs", - "//content/public/browser", - "//content/test:test_support", - "//testing/gtest", - "//third_party/widevine/cdm:buildflags", - "//ui/views", - "//url", - ] - } + deps = [ + ":constants", + ":widevine", + "//base", + "//brave/browser", + "//brave/common", + "//brave/components/constants", + "//chrome/browser", + "//chrome/browser:browser_process", + "//chrome/browser/profiles:profile", + "//chrome/browser/ui", + "//chrome/common", + "//chrome/test:test_support_ui", + "//components/prefs", + "//content/public/browser", + "//content/test:test_support", + "//testing/gtest", + "//third_party/widevine/cdm:buildflags", + "//ui/views", + "//url", + ] } diff --git a/browser/widevine/widevine_permission_request.cc b/browser/widevine/widevine_permission_request.cc index ca863d5fedc7..e5a943216f75 100644 --- a/browser/widevine/widevine_permission_request.cc +++ b/browser/widevine/widevine_permission_request.cc @@ -24,8 +24,8 @@ WidevinePermissionRequest::WidevinePermissionRequest( web_contents->GetVisibleURL(), permissions::RequestType::kWidevine, /*has_gesture=*/false, - base::BindOnce(&WidevinePermissionRequest::PermissionDecided, - base::Unretained(this)), + base::BindRepeating(&WidevinePermissionRequest::PermissionDecided, + base::Unretained(this)), base::BindOnce(&WidevinePermissionRequest::DeleteRequest, base::Unretained(this))), web_contents_(web_contents), @@ -39,7 +39,8 @@ std::u16string WidevinePermissionRequest::GetMessageTextFragment() const { } void WidevinePermissionRequest::PermissionDecided(ContentSetting result, - bool is_one_time) { + bool is_one_time, + bool is_final_decision) { // Permission granted if (result == ContentSetting::CONTENT_SETTING_ALLOW) { #if BUILDFLAG(IS_LINUX) diff --git a/browser/widevine/widevine_permission_request.h b/browser/widevine/widevine_permission_request.h index d79d6f130773..ffd79654620a 100644 --- a/browser/widevine/widevine_permission_request.h +++ b/browser/widevine/widevine_permission_request.h @@ -39,7 +39,9 @@ class WidevinePermissionRequest : public permissions::PermissionRequest { // PermissionRequest overrides: std::u16string GetMessageTextFragment() const override; - void PermissionDecided(ContentSetting result, bool is_one_time); + void PermissionDecided(ContentSetting result, + bool is_one_time, + bool is_final_decision); void DeleteRequest(); // It's safe to use this raw |web_contents_| because this request is deleted diff --git a/build/android/bytecode/java/org/brave/bytecode/BraveLogoCoordinatorClassAdapter.java b/build/android/bytecode/java/org/brave/bytecode/BraveLogoCoordinatorClassAdapter.java index eb2bff9b33ba..5e03d84f8afd 100644 --- a/build/android/bytecode/java/org/brave/bytecode/BraveLogoCoordinatorClassAdapter.java +++ b/build/android/bytecode/java/org/brave/bytecode/BraveLogoCoordinatorClassAdapter.java @@ -16,10 +16,7 @@ public BraveLogoCoordinatorClassAdapter(ClassVisitor visitor) { redirectConstructor(sLogoCoordinator, sBraveLogoCoordinator); - deleteField(sBraveLogoCoordinator, "mShouldShowLogo"); - makeProtectedField(sLogoCoordinator, "mShouldShowLogo"); - - makePublicMethod(sLogoCoordinator, "updateVisibility"); - addMethodAnnotation(sBraveLogoCoordinator, "updateVisibility", "Ljava/lang/Override;"); + deleteField(sBraveLogoCoordinator, "mLogoModel"); + makeProtectedField(sLogoCoordinator, "mLogoModel"); } } diff --git a/build/commands/lib/config.js b/build/commands/lib/config.js index b73433e705b7..738e3f2bb7c9 100644 --- a/build/commands/lib/config.js +++ b/build/commands/lib/config.js @@ -327,6 +327,8 @@ Config.prototype.buildArgs = function () { sparkle_eddsa_public_key: this.sparkleEdDSAPublicKey, use_goma: this.use_goma, use_libfuzzer: this.use_libfuzzer, + enable_updater: this.isOfficialBuild(), + enable_update_notifications: this.isOfficialBuild(), ...this.extraGnArgs, } @@ -378,6 +380,7 @@ Config.prototype.buildArgs = function () { } if (this.isDebug() && + !this.isComponentBuild() && this.targetOS !== 'ios' && this.targetOS !== 'android') { args.enable_profiling = true @@ -455,7 +458,6 @@ Config.prototype.buildArgs = function () { if (this.targetOS === 'android') { args.android_channel = this.channel - args.enable_jdk_library_desugaring = false if (!this.isReleaseBuild()) { args.android_channel = 'default' args.chrome_public_manifest_package = 'com.brave.browser_default' @@ -518,6 +520,9 @@ Config.prototype.buildArgs = function () { if (this.targetEnvironment) { args.target_environment = this.targetEnvironment } + if (this.targetArch == 'x64' && this.isDebug()) { + args.use_lld = false + } args.enable_dsyms = true args.enable_stripping = !this.isComponentBuild() // Component builds are not supported for iOS: diff --git a/build/rust/BUILD.gn b/build/rust/BUILD.gn index 72fb9f57350f..44c2a7c8fe55 100644 --- a/build/rust/BUILD.gn +++ b/build/rust/BUILD.gn @@ -1,3 +1,8 @@ +# Copyright (c) 2022 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/. + import("//brave/build/cargo.gni") if (is_mac) { @@ -19,7 +24,7 @@ config("strip_rust_symbols") { # Too many personalities workaround. Will be fixed in llvm see # https://reviews.llvm.org/D135728 if (!is_component_build && !use_lld) { - ldflags = [ "-Wl,-no_compact_unwind" ] + ldflags += [ "-Wl,-no_compact_unwind" ] } } } diff --git a/chromium_presubmit_config.json5 b/chromium_presubmit_config.json5 index acb1673b06b9..04a384bb1bc5 100644 --- a/chromium_presubmit_config.json5 +++ b/chromium_presubmit_config.json5 @@ -131,6 +131,8 @@ "components/services/bat_ledger/bat_ledger_impl\\.cc", "components/services/bat_ledger/public/cpp/ledger_client_mojo_bridge\\.cc", "ios/browser/api/ads/ads_client_ios\\.h", + "ios/browser/api/certificate/brave_certificate\\.mm", + "ios/browser/api/net/certificate_utility\\.mm", "utility/importer/chrome_importer\\.cc", "vendor/bat-native-ads/src/bat/ads/internal/common/crypto/crypto_util\\.cc", "vendor/bat-native-ads/src/bat/ads/internal/account/account_util\\.h", diff --git a/chromium_src/android_webview/common/aw_features.cc b/chromium_src/android_webview/common/aw_features.cc index e9ae570035ba..75ec7733e732 100644 --- a/chromium_src/android_webview/common/aw_features.cc +++ b/chromium_src/android_webview/common/aw_features.cc @@ -13,7 +13,11 @@ namespace android_webview { namespace features { OVERRIDE_FEATURE_DEFAULT_STATES({{ + {kWebViewAppsPackageNamesServerSideAllowlist, + base::FEATURE_DISABLED_BY_DEFAULT}, {kWebViewClientHintsControllerDelegate, base::FEATURE_DISABLED_BY_DEFAULT}, + {kWebViewEnumerateDevicesCache, base::FEATURE_DISABLED_BY_DEFAULT}, + {kWebViewMeasureScreenCoverage, base::FEATURE_DISABLED_BY_DEFAULT}, }}); } // namespace features diff --git a/chromium_src/chrome/app/android/chrome_main_delegate_android.cc b/chromium_src/chrome/app/android/chrome_main_delegate_android.cc index 6f85192e988c..8d21a6b4df91 100644 --- a/chromium_src/chrome/app/android/chrome_main_delegate_android.cc +++ b/chromium_src/chrome/app/android/chrome_main_delegate_android.cc @@ -3,6 +3,8 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ +#include "brave/chromium_src/chrome/app/android/chrome_main_delegate_android.h" + #include "brave/app/brave_main_delegate.h" #define ChromeMainDelegate BraveMainDelegate diff --git a/chromium_src/chrome/app/android/chrome_main_delegate_android.h b/chromium_src/chrome/app/android/chrome_main_delegate_android.h new file mode 100644 index 000000000000..8f76c196955b --- /dev/null +++ b/chromium_src/chrome/app/android/chrome_main_delegate_android.h @@ -0,0 +1,15 @@ +/* Copyright (c) 2023 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/. */ + +#ifndef BRAVE_CHROMIUM_SRC_CHROME_APP_ANDROID_CHROME_MAIN_DELEGATE_ANDROID_H_ +#define BRAVE_CHROMIUM_SRC_CHROME_APP_ANDROID_CHROME_MAIN_DELEGATE_ANDROID_H_ + +#include "brave/app/brave_main_delegate.h" + +#define ChromeMainDelegate BraveMainDelegate +#include "src/chrome/app/android/chrome_main_delegate_android.h" +#undef ChromeMainDelegate + +#endif // BRAVE_CHROMIUM_SRC_CHROME_APP_ANDROID_CHROME_MAIN_DELEGATE_ANDROID_H_ diff --git a/chromium_src/chrome/app/chrome_main_delegate.cc b/chromium_src/chrome/app/chrome_main_delegate.cc index 146a1e93995b..1f1e3cdb7233 100644 --- a/chromium_src/chrome/app/chrome_main_delegate.cc +++ b/chromium_src/chrome/app/chrome_main_delegate.cc @@ -63,12 +63,6 @@ absl::optional ChromeMainDelegate::BasicStartupComplete() { command_line.AppendSwitch(switches::kDisableDomainReliability); command_line.AppendSwitch(switches::kEnableDomDistiller); - std::string update_url = GetUpdateURLHost(); - if (!update_url.empty()) { - std::string source = "url-source=" + update_url; - command_line.AppendSwitchASCII(switches::kComponentUpdater, source.c_str()); - } - if (!base::CommandLine::ForCurrentProcess()->HasSwitch( embedder_support::kOriginTrialPublicKey)) { command_line.AppendSwitchASCII(embedder_support::kOriginTrialPublicKey, diff --git a/chromium_src/chrome/browser/browser_features.cc b/chromium_src/chrome/browser/browser_features.cc index 70a5d241107c..f8d7f5c3616a 100644 --- a/chromium_src/chrome/browser/browser_features.cc +++ b/chromium_src/chrome/browser/browser_features.cc @@ -17,6 +17,7 @@ OVERRIDE_FEATURE_DEFAULT_STATES({{ {kCopyLinkToText, base::FEATURE_DISABLED_BY_DEFAULT}, #endif {kDestroyProfileOnBrowserClose, base::FEATURE_DISABLED_BY_DEFAULT}, + {kFedCmWithoutThirdPartyCookies, base::FEATURE_DISABLED_BY_DEFAULT}, // Google has asked embedders not to enforce these pins: // https://groups.google.com/a/chromium.org/g/embedder-dev/c/XsNTwEiN1lI/m/TMXh-ZvOAAAJ {kKeyPinningComponentUpdater, base::FEATURE_DISABLED_BY_DEFAULT}, diff --git a/chromium_src/chrome/browser/dips/dips_features.cc b/chromium_src/chrome/browser/dips/dips_features.cc new file mode 100644 index 000000000000..1b77d2384506 --- /dev/null +++ b/chromium_src/chrome/browser/dips/dips_features.cc @@ -0,0 +1,16 @@ +/* Copyright (c) 2023 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/. */ + +#include "src/chrome/browser/dips/dips_features.cc" + +#include "base/feature_override.h" + +namespace dips { + +OVERRIDE_FEATURE_DEFAULT_STATES({{ + {kFeature, base::FEATURE_DISABLED_BY_DEFAULT}, +}}); + +} // namespace dips diff --git a/chromium_src/chrome/browser/privacy_sandbox/privacy_sandbox_settings_factory.cc b/chromium_src/chrome/browser/privacy_sandbox/privacy_sandbox_settings_factory.cc index f3d5ee017506..2829c8b1f587 100644 --- a/chromium_src/chrome/browser/privacy_sandbox/privacy_sandbox_settings_factory.cc +++ b/chromium_src/chrome/browser/privacy_sandbox/privacy_sandbox_settings_factory.cc @@ -18,6 +18,5 @@ KeyedService* PrivacySandboxSettingsFactory::BuildServiceInstanceFor( return new BravePrivacySandboxSettings( std::make_unique(profile), HostContentSettingsMapFactory::GetForProfile(profile), - CookieSettingsFactory::GetForProfile(profile).get(), profile->GetPrefs(), - profile->IsIncognitoProfile()); + CookieSettingsFactory::GetForProfile(profile).get(), profile->GetPrefs()); } diff --git a/chromium_src/chrome/browser/ui/views/bubble/bubble_contents_wrapper.cc b/chromium_src/chrome/browser/ui/views/bubble/bubble_contents_wrapper.cc index 83cd2c07a28e..e0d95e3ca46e 100644 --- a/chromium_src/chrome/browser/ui/views/bubble/bubble_contents_wrapper.cc +++ b/chromium_src/chrome/browser/ui/views/bubble/bubble_contents_wrapper.cc @@ -16,7 +16,7 @@ // to the Browser delegate instead of default one. // In order to close all popups we also save tab ids of each opened popup window // and close all with the bubble together. -#define RenderViewHostChanged \ +#define PrimaryPageChanged \ SetWebContentsAddNewContentsDelegate( \ base::WeakPtr browser_delegate) { \ browser_delegate_ = std::move(browser_delegate); \ @@ -39,7 +39,10 @@ sessions::SessionTabHelper::IdForTab(raw_popup_contents).id(); \ popup_ids_.push_back(tab_id); \ } \ - void BubbleContentsWrapper::RenderViewHostChanged + void BubbleContentsWrapper::ClearPopupIds() { \ + popup_ids_.clear(); \ + } \ + void BubbleContentsWrapper::PrimaryPageChanged #include "src/chrome/browser/ui/views/bubble/bubble_contents_wrapper.cc" -#undef RenderViewHostChanged +#undef PrimaryPageChanged diff --git a/chromium_src/chrome/browser/ui/views/bubble/bubble_contents_wrapper.h b/chromium_src/chrome/browser/ui/views/bubble/bubble_contents_wrapper.h index e21ceb060996..798d1e7c3b1f 100644 --- a/chromium_src/chrome/browser/ui/views/bubble/bubble_contents_wrapper.h +++ b/chromium_src/chrome/browser/ui/views/bubble/bubble_contents_wrapper.h @@ -15,7 +15,7 @@ #include "ui/base/window_open_disposition.h" #include "url/gurl.h" -#define RenderViewHostChanged \ +#define PrimaryPageChanged \ SetWebContentsAddNewContentsDelegate( \ base::WeakPtr browser_delegate); \ void AddNewContents(content::WebContents* source, \ @@ -24,8 +24,11 @@ WindowOpenDisposition disposition, \ const blink::mojom::WindowFeatures& window_features, \ bool user_gesture, bool* was_blocked) override; \ - std::vector& GetPopupIds() { return popup_ids_; } \ - void RenderViewHostChanged + const std::vector& popup_ids() const { \ + return popup_ids_; \ + } \ + void ClearPopupIds(); \ + void PrimaryPageChanged #define webui_resizes_host_ \ webui_resizes_host_; \ @@ -33,6 +36,6 @@ base::WeakPtr browser_delegate_ #include "src/chrome/browser/ui/views/bubble/bubble_contents_wrapper.h" #undef webui_resizes_host_ -#undef RenderViewHostChanged +#undef PrimaryPageChanged #endif // BRAVE_CHROMIUM_SRC_CHROME_BROWSER_UI_VIEWS_BUBBLE_BUBBLE_CONTENTS_WRAPPER_H_ diff --git a/chromium_src/chrome/browser/ui/views/frame/tab_strip_region_view.h b/chromium_src/chrome/browser/ui/views/frame/tab_strip_region_view.h index a444186e5cc6..6e2e8ec4cf78 100644 --- a/chromium_src/chrome/browser/ui/views/frame/tab_strip_region_view.h +++ b/chromium_src/chrome/browser/ui/views/frame/tab_strip_region_view.h @@ -6,13 +6,15 @@ #ifndef BRAVE_CHROMIUM_SRC_CHROME_BROWSER_UI_VIEWS_FRAME_TAB_STRIP_REGION_VIEW_H_ #define BRAVE_CHROMIUM_SRC_CHROME_BROWSER_UI_VIEWS_FRAME_TAB_STRIP_REGION_VIEW_H_ -#define FrameColorsChanged \ - UnUsed_FrameColorsChanged() {} \ +#define IsPositionInWindowCaption \ + Unused_IsPositionInWindowCaption() { \ + return false; \ + } \ friend class VerticalTabStripRegionView; \ friend class BraveTabStrip; \ FRIEND_TEST_ALL_PREFIXES(VerticalTabStripBrowserTest, MinHeight); \ - void FrameColorsChanged + bool IsPositionInWindowCaption #include "src/chrome/browser/ui/views/frame/tab_strip_region_view.h" -#undef FrameColorsChanged +#undef IsPositionInWindowCaption #endif // BRAVE_CHROMIUM_SRC_CHROME_BROWSER_UI_VIEWS_FRAME_TAB_STRIP_REGION_VIEW_H_ diff --git a/chromium_src/chrome/browser/ui/views/overlay/overlay_window_views.cc b/chromium_src/chrome/browser/ui/views/overlay/video_overlay_window_views.cc similarity index 69% rename from chromium_src/chrome/browser/ui/views/overlay/overlay_window_views.cc rename to chromium_src/chrome/browser/ui/views/overlay/video_overlay_window_views.cc index 3b5d993d8e71..7af27b106f46 100644 --- a/chromium_src/chrome/browser/ui/views/overlay/overlay_window_views.cc +++ b/chromium_src/chrome/browser/ui/views/overlay/video_overlay_window_views.cc @@ -1,10 +1,10 @@ /* Copyright (c) 2022 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 http://mozilla.org/MPL/2.0/. */ + * You can obtain one at https://mozilla.org/MPL/2.0/. */ #define BRAVE_UPDATE_MAX_SIZE max_size_ = work_area.size(); -#include "src/chrome/browser/ui/views/overlay/overlay_window_views.cc" +#include "src/chrome/browser/ui/views/overlay/video_overlay_window_views.cc" #undef BRAVE_UPDATE_MAX_SIZE diff --git a/chromium_src/chrome/browser/ui/views/page_info/page_info_view_factory.cc b/chromium_src/chrome/browser/ui/views/page_info/page_info_view_factory.cc index 034937911a34..25bad088fa0b 100644 --- a/chromium_src/chrome/browser/ui/views/page_info/page_info_view_factory.cc +++ b/chromium_src/chrome/browser/ui/views/page_info/page_info_view_factory.cc @@ -16,6 +16,7 @@ #include "chrome/browser/ui/page_info/chrome_page_info_ui_delegate.h" #include "chrome/browser/ui/views/controls/rich_hover_button.h" #include "components/grit/brave_components_strings.h" +#include "ui/base/l10n/l10n_util.h" namespace { @@ -28,14 +29,14 @@ std::unique_ptr CreateButton( views::Button::PressedCallback callback) { auto& bundle = ui::ResourceBundle::GetSharedInstance(); const auto& ipfs_logo = *bundle.GetImageSkiaNamed(logo_resource_id); - const std::u16string& tooltip = + const std::u16string& title_text = + brave_l10n::GetLocalizedResourceUTF16String(text_resource_id); + const std::u16string& tooltip_text = brave_l10n::GetLocalizedResourceUTF16String(tooltip_resource_id); return std::make_unique( - std::move(callback), ui::ImageModel::FromImageSkia(ipfs_logo), - text_resource_id, std::u16string(), - PageInfoViewFactory::VIEW_ID_PAGE_INFO_LINK_OR_BUTTON_COOKIE_DIALOG, - tooltip, std::u16string()); + std::move(callback), ui::ImageModel::FromImageSkia(ipfs_logo), title_text, + std::u16string(), tooltip_text, std::u16string()); } void BraveAddIPFSButtons(views::View* container, diff --git a/chromium_src/chrome/browser/ui/views/permissions/chooser_bubble_ui.cc b/chromium_src/chrome/browser/ui/views/permissions/chooser_bubble_ui.cc index ab7b1a9a0e9a..7f113eecbab5 100644 --- a/chromium_src/chrome/browser/ui/views/permissions/chooser_bubble_ui.cc +++ b/chromium_src/chrome/browser/ui/views/permissions/chooser_bubble_ui.cc @@ -5,10 +5,13 @@ #include "brave/browser/brave_wallet/brave_wallet_tab_helper.h" #include "brave/components/constants/webui_url_constants.h" +#include "chrome/browser/extensions/extension_context_menu_model.h" #include "chrome/browser/profiles/profile.h" #include "chrome/browser/ui/browser.h" #include "chrome/browser/ui/browser_finder.h" +#include "chrome/browser/ui/exclusive_access/exclusive_access_context.h" #include "chrome/browser/ui/tabs/tab_strip_model.h" +#include "chrome/browser/ui/views/frame/browser_view.h" #include "content/public/browser/web_contents.h" #include "ui/views/bubble/bubble_dialog_delegate_view.h" #include "ui/views/focus/focus_manager.h" @@ -22,6 +25,27 @@ bool IsBravePanel(content::WebContents* content) { GURL(kBraveUIWalletPanelURL)); } +void OnWindowClosing(views::Widget* anchor_widget) { + if (!anchor_widget) { + return; + } + Browser* browser = + chrome::FindBrowserWithWindow(anchor_widget->GetNativeWindow()); + if (!browser || !browser->tab_strip_model()) { + return; + } + content::WebContents* active = + browser->tab_strip_model()->GetActiveWebContents(); + if (!active) { + return; + } + auto* tab_helper = + brave_wallet::BraveWalletTabHelper::FromWebContents(active); + if (tab_helper) { + tab_helper->SetCloseOnDeactivate(true); + } +} + } // namespace namespace views { @@ -31,25 +55,11 @@ class BraveBubbleDialogDelegateView : public views::BubbleDialogDelegateView { static views::Widget* CreateBubble( std::unique_ptr delegate) { - return BubbleDialogDelegateView::CreateBubble(std::move(delegate)); - } - void WindowClosing() override { - views::BubbleDialogDelegateView::WindowClosing(); - if (!anchor_widget()) - return; - Browser* browser = - chrome::FindBrowserWithWindow(anchor_widget()->GetNativeWindow()); - if (!browser || !browser->tab_strip_model()) - return; - content::WebContents* active = - browser->tab_strip_model()->GetActiveWebContents(); - if (!active) { - return; + if (delegate) { + delegate->RegisterWindowClosingCallback( + base::BindOnce(&OnWindowClosing, delegate->anchor_widget())); } - auto* tab_helper = - brave_wallet::BraveWalletTabHelper::FromWebContents(active); - if (tab_helper) - tab_helper->SetCloseOnDeactivate(true); + return BubbleDialogDelegateView::CreateBubble(std::move(delegate)); } }; diff --git a/chromium_src/chrome/browser/ui/views/permissions/permission_prompt_bubble_view.cc b/chromium_src/chrome/browser/ui/views/permissions/permission_prompt_bubble_view.cc index c17c3a5e2ebf..d7b1cba1da07 100644 --- a/chromium_src/chrome/browser/ui/views/permissions/permission_prompt_bubble_view.cc +++ b/chromium_src/chrome/browser/ui/views/permissions/permission_prompt_bubble_view.cc @@ -12,6 +12,7 @@ #include "brave/components/l10n/common/localization_util.h" #include "brave/components/permissions/permission_lifetime_utils.h" #include "brave/grit/brave_generated_resources.h" +#include "chrome/browser/ui/browser.h" #include "chrome/browser/ui/browser_tabstrip.h" #include "chrome/browser/ui/views/chrome_layout_provider.h" #include "chrome/common/webui_url_constants.h" diff --git a/chromium_src/chrome/browser/ui/views/tabs/compound_tab_container.h b/chromium_src/chrome/browser/ui/views/tabs/compound_tab_container.h index 797394c0832a..5c9ffd7e393e 100644 --- a/chromium_src/chrome/browser/ui/views/tabs/compound_tab_container.h +++ b/chromium_src/chrome/browser/ui/views/tabs/compound_tab_container.h @@ -7,17 +7,16 @@ #define BRAVE_CHROMIUM_SRC_CHROME_BROWSER_UI_VIEWS_TABS_COMPOUND_TAB_CONTAINER_H_ #define NumPinnedTabs \ - NumPinnedTabs_Unused() { return {}; } \ + NumPinnedTabs_Unused() { \ + return {}; \ + } \ friend class BraveCompoundTabContainer; \ int NumPinnedTabs -#define GetAvailableWidthForUnpinnedTabContainer \ - virtual GetAvailableWidthForUnpinnedTabContainer #define TransferTabBetweenContainers virtual TransferTabBetweenContainers #include "src/chrome/browser/ui/views/tabs/compound_tab_container.h" #undef TransferTabBetweenContainers -#undef GetAvailableWidthForUnpinnedTabContainer #undef NumPinnedTabs #endif // BRAVE_CHROMIUM_SRC_CHROME_BROWSER_UI_VIEWS_TABS_COMPOUND_TAB_CONTAINER_H_ diff --git a/chromium_src/chrome/browser/ui/views/tabs/tab_hover_card_bubble_view_browsertest.cc b/chromium_src/chrome/browser/ui/views/tabs/tab_hover_card_bubble_view_browsertest.cc index ad4c6573cf71..2d8ce1858d02 100644 --- a/chromium_src/chrome/browser/ui/views/tabs/tab_hover_card_bubble_view_browsertest.cc +++ b/chromium_src/chrome/browser/ui/views/tabs/tab_hover_card_bubble_view_browsertest.cc @@ -44,9 +44,9 @@ class TabHoverCardBubbleViewBrowserTest : public DialogBrowserTest, TabRendererData new_tab_data = TabRendererData(); new_tab_data.title = kTabTitle; new_tab_data.last_committed_url = GURL(kTabUrl); - GetTabStrip(browser())->AddTabAt(1, new_tab_data); + GetTabStrip(browser())->AddTabAt(0, new_tab_data); - SimulateHoverTab(browser(), 1); + SimulateHoverTab(browser(), 0); } bool VerifyUi() override { diff --git a/chromium_src/chrome/browser/ui/views/tabs/tab_strip.h b/chromium_src/chrome/browser/ui/views/tabs/tab_strip.h index be00ecc7aa71..1af48c3672e1 100644 --- a/chromium_src/chrome/browser/ui/views/tabs/tab_strip.h +++ b/chromium_src/chrome/browser/ui/views/tabs/tab_strip.h @@ -12,10 +12,11 @@ class BraveTabHoverCardController; -#define UpdateHoverCard \ - UpdateHoverCard_Unused(); \ - friend class BraveTabHoverTest; \ - friend class BraveTabStrip; \ +#define UpdateHoverCard \ + UpdateHoverCard_Unused(); \ + friend class BraveTabHoverTest; \ + friend class BraveTabStrip; \ + friend class VerticalTabStripRegionView; \ void UpdateHoverCard #define ShouldDrawStrokes \ diff --git a/chromium_src/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc b/chromium_src/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc index 719a4430d527..0f2bafcd2b50 100644 --- a/chromium_src/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc +++ b/chromium_src/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc @@ -32,4 +32,19 @@ #define IDS_SETTINGS_SAFEBROWSING_NONE_DESC \ IDS_SETTINGS_BRAVE_SAFEBROWSING_NONE_DESC +// Use custom strings for diagnostic (crashes, hangs) reporting settings. +#undef IDS_SETTINGS_ENABLE_LOGGING_PREF +#undef IDS_SETTINGS_ENABLE_LOGGING_PREF_DESC +#define IDS_SETTINGS_ENABLE_LOGGING_PREF IDS_BRAVE_DIAGNOSTIC_REPORTS_PREF +#define IDS_SETTINGS_ENABLE_LOGGING_PREF_DESC \ + IDS_BRAVE_DIAGNOSTIC_REPORTS_PREF_DESC + +// Sync types labels +#undef IDS_SETTINGS_AUTOFILL_CHECKBOX_LABEL +#define IDS_SETTINGS_AUTOFILL_CHECKBOX_LABEL \ + IDS_SETTINGS_BRAVE_AUTOFILL_CHECKBOX_LABEL + +#undef IDS_SETTINGS_APPS_CHECKBOX_LABEL +#define IDS_SETTINGS_APPS_CHECKBOX_LABEL IDS_SETTINGS_BRAVE_APPS_CHECKBOX_LABEL + #include "src/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc" diff --git a/chromium_src/chrome/browser/ui/webui/settings/shared_settings_localized_strings_provider.cc b/chromium_src/chrome/browser/ui/webui/settings/shared_settings_localized_strings_provider.cc index 3ebaeb512cc8..2f924777c622 100644 --- a/chromium_src/chrome/browser/ui/webui/settings/shared_settings_localized_strings_provider.cc +++ b/chromium_src/chrome/browser/ui/webui/settings/shared_settings_localized_strings_provider.cc @@ -40,21 +40,6 @@ bool ShouldReplaceSecureDNSDisabledDescription() { #endif // BUILDFLAG(ENABLE_BRAVE_VPN) && BUILDFLAG(IS_WIN) -// Use custom strings for diagnostic (crashes, hangs) reporting settings. -#undef IDS_SETTINGS_ENABLE_LOGGING_PREF -#undef IDS_SETTINGS_ENABLE_LOGGING_PREF_DESC -#define IDS_SETTINGS_ENABLE_LOGGING_PREF IDS_BRAVE_DIAGNOSTIC_REPORTS_PREF -#define IDS_SETTINGS_ENABLE_LOGGING_PREF_DESC \ - IDS_BRAVE_DIAGNOSTIC_REPORTS_PREF_DESC - -// Sync types labels -#undef IDS_SETTINGS_AUTOFILL_CHECKBOX_LABEL -#define IDS_SETTINGS_AUTOFILL_CHECKBOX_LABEL \ - IDS_SETTINGS_BRAVE_AUTOFILL_CHECKBOX_LABEL - -#undef IDS_SETTINGS_APPS_CHECKBOX_LABEL -#define IDS_SETTINGS_APPS_CHECKBOX_LABEL IDS_SETTINGS_BRAVE_APPS_CHECKBOX_LABEL - #include "src/chrome/browser/ui/webui/settings/shared_settings_localized_strings_provider.cc" #if BUILDFLAG(ENABLE_BRAVE_VPN) && BUILDFLAG(IS_WIN) diff --git a/chromium_src/chrome/common/url_constants.cc b/chromium_src/chrome/common/url_constants.cc index 4875ca6003ef..16efd79b023a 100644 --- a/chromium_src/chrome/common/url_constants.cc +++ b/chromium_src/chrome/common/url_constants.cc @@ -1,7 +1,7 @@ -/* Copyright 2019 The Brave Authors. All rights reserved. +/* 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 http://mozilla.org/MPL/2.0/. */ + * You can obtain one at https://mozilla.org/MPL/2.0/. */ #include "chrome/common/url_constants.h" @@ -139,7 +139,7 @@ const char kHighEfficiencyModeLearnMoreUrl[] = "https://support.brave.com/"; const char kManagedUiLearnMoreUrl[] = "https://support.brave.com/"; -const char kMixedContentDownloadBlockingLearnMoreUrl[] = +const char kInsecureDownloadBlockingLearnMoreUrl[] = "https://support.brave.com/"; const char kMyActivityUrlInClearBrowsingData[] = @@ -163,9 +163,6 @@ const char kPasswordManagerLearnMoreURL[] = const char kPaymentMethodsURL[] = "https://support.brave.com"; -const char kPaymentMethodsLearnMoreURL[] = - "https://support.brave.com"; - const char kPrivacyLearnMoreURL[] = "https://support.brave.com/hc/en-us/articles/" "360017989132-How-do-I-change-my-Privacy-Settings-"; @@ -274,4 +271,7 @@ const char kChromeRootStoreSettingsHelpCenterURL[] = "chrome_root_store/root_store.md"; #endif +const char kAddressesAndPaymentMethodsLearnMoreURL[] = + "https://support.brave.com"; + } // namespace chrome diff --git a/chromium_src/components/autofill_assistant/browser/BUILD.gn b/chromium_src/components/autofill_assistant/browser/BUILD.gn deleted file mode 100644 index 0b801a9e62eb..000000000000 --- a/chromium_src/components/autofill_assistant/browser/BUILD.gn +++ /dev/null @@ -1,21 +0,0 @@ -# Copyright 2021 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 http://mozilla.org/MPL/2.0/. - -source_set("unit_tests") { - testonly = true - sources = [ - # "//components/autofill_assistant/browser" target doesn't seem to build - # properly on all platforms yet (only builds on Android), so instead of - # adding a dep on the target, adding feaures.h/cc directly. - "//components/autofill_assistant/browser/features.cc", - "//components/autofill_assistant/browser/features.h", - "autofill_assistant_features_unittest.cc", - ] - - deps = [ - "//base", - "//testing/gtest:gtest", - ] -} diff --git a/chromium_src/components/autofill_assistant/browser/DEPS b/chromium_src/components/autofill_assistant/browser/DEPS deleted file mode 100644 index eb200ee866c1..000000000000 --- a/chromium_src/components/autofill_assistant/browser/DEPS +++ /dev/null @@ -1,4 +0,0 @@ -include_rules = [ - "+base", - "+testing/gtest/include/gtest", -] diff --git a/chromium_src/components/autofill_assistant/browser/autofill_assistant_features_unittest.cc b/chromium_src/components/autofill_assistant/browser/autofill_assistant_features_unittest.cc deleted file mode 100644 index 1fc1b171c80f..000000000000 --- a/chromium_src/components/autofill_assistant/browser/autofill_assistant_features_unittest.cc +++ /dev/null @@ -1,18 +0,0 @@ -/* Copyright 2021 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 http://mozilla.org/MPL/2.0/. */ - -#include "base/feature_list.h" -#include "components/autofill_assistant/browser/features.h" -#include "testing/gtest/include/gtest/gtest.h" - -namespace autofill_assistant { - -TEST(AutofillAssistantFeaturesTest, - AutofillAssistantFeedbackChipFeatureDisabled) { - EXPECT_FALSE( - base::FeatureList::IsEnabled(features::kAutofillAssistantFeedbackChip)); -} - -} // namespace autofill_assistant diff --git a/chromium_src/components/autofill_assistant/browser/features.cc b/chromium_src/components/autofill_assistant/browser/features.cc deleted file mode 100644 index f070a1ae2444..000000000000 --- a/chromium_src/components/autofill_assistant/browser/features.cc +++ /dev/null @@ -1,22 +0,0 @@ -/* Copyright 2021 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 http://mozilla.org/MPL/2.0/. */ - -#include "components/autofill_assistant/browser/features.h" - -#define kAutofillAssistantFeedbackChip \ - kAutofillAssistantFeedbackChip_ChromiumImpl - -#include "src/components/autofill_assistant/browser/features.cc" -#undef kAutofillAssistantFeedbackChip - -namespace autofill_assistant { -namespace features { - -BASE_FEATURE(kAutofillAssistantFeedbackChip, - "AutofillAssistantFeedbackChip", - base::FEATURE_DISABLED_BY_DEFAULT); - -} // namespace features -} // namespace autofill_assistant diff --git a/chromium_src/components/content_settings/core/common/cookie_settings_base.cc b/chromium_src/components/content_settings/core/common/cookie_settings_base.cc index cea07b9a5ead..20bc58e5055b 100644 --- a/chromium_src/components/content_settings/core/common/cookie_settings_base.cc +++ b/chromium_src/components/content_settings/core/common/cookie_settings_base.cc @@ -117,9 +117,9 @@ bool CookieSettingsBase::ShouldUseEphemeralStorage( net::registry_controlled_domains::INCLUDE_PRIVATE_REGISTRIES)) return false; - bool allow_3p = - IsCookieAccessAllowedImpl(url, site_for_cookies, top_frame_origin, - CookieSettingsBase::QueryReason::kCookies); + bool allow_3p = IsCookieAccessAllowedImpl( + url, site_for_cookies, top_frame_origin, net::CookieSettingOverrides(), + CookieSettingsBase::QueryReason::kCookies); bool allow_1p = first_party_setting ? IsAllowed(first_party_setting->setting) : IsFirstPartyAccessAllowed( @@ -149,34 +149,37 @@ bool CookieSettingsBase::IsEphemeralCookieAccessAllowed( } return IsCookieAccessAllowedImpl(url, site_for_cookies, top_frame_origin, + net::CookieSettingOverrides(), CookieSettingsBase::QueryReason::kCookies); } bool CookieSettingsBase::IsFullCookieAccessAllowed( const GURL& url, - const GURL& first_party_url, - CookieSettingsBase::QueryReason query_reason) const { - return IsFullCookieAccessAllowed( - url, net::SiteForCookies::FromUrl(first_party_url), absl::nullopt, - query_reason); + const net::SiteForCookies& site_for_cookies, + const absl::optional& top_frame_origin, + net::CookieSettingOverrides overrides, + QueryReason query_reason) const { + return IsCookieAccessAllowedImpl(url, site_for_cookies, top_frame_origin, + overrides, query_reason); } bool CookieSettingsBase::IsFullCookieAccessAllowed( const GURL& url, - const net::SiteForCookies& site_for_cookies, - const absl::optional& top_frame_origin, + const GURL& first_party_url, CookieSettingsBase::QueryReason query_reason) const { - return IsCookieAccessAllowedImpl(url, site_for_cookies, top_frame_origin, - query_reason); + return IsFullCookieAccessAllowed( + url, net::SiteForCookies::FromUrl(first_party_url), absl::nullopt, + net::CookieSettingOverrides(), query_reason); } bool CookieSettingsBase::IsCookieAccessAllowedImpl( const GURL& url, const net::SiteForCookies& site_for_cookies, const absl::optional& top_frame_origin, + net::CookieSettingOverrides overrides, CookieSettingsBase::QueryReason query_reason) const { bool allow = IsChromiumFullCookieAccessAllowed( - url, site_for_cookies, top_frame_origin, query_reason); + url, site_for_cookies, top_frame_origin, overrides, query_reason); const bool is_1p_ephemeral_feature_enabled = base::FeatureList::IsEnabled( net::features::kBraveFirstPartyEphemeralStorage); diff --git a/chromium_src/components/content_settings/core/common/cookie_settings_base.h b/chromium_src/components/content_settings/core/common/cookie_settings_base.h index fe9f1249501f..1d35973ce5ff 100644 --- a/chromium_src/components/content_settings/core/common/cookie_settings_base.h +++ b/chromium_src/components/content_settings/core/common/cookie_settings_base.h @@ -50,6 +50,7 @@ struct CookieSettingWithBraveMetadata { bool IsChromiumFullCookieAccessAllowed( \ const GURL& url, const net::SiteForCookies& site_for_cookies, \ const absl::optional& top_frame_origin, \ + net::CookieSettingOverrides overrides, \ CookieSettingsBase::QueryReason query_reason) const; \ bool ShouldBlockThirdPartyIfSettingIsExplicit( \ bool block_third_party_cookies, ContentSetting cookie_setting, \ @@ -65,6 +66,7 @@ struct CookieSettingWithBraveMetadata { bool IsCookieAccessAllowedImpl( \ const GURL& url, const net::SiteForCookies& site_for_cookies, \ const absl::optional& top_frame_origin, \ + net::CookieSettingOverrides overrides, \ CookieSettingsBase::QueryReason query_reason) const; \ \ mutable base::ThreadLocalPointer \ diff --git a/chromium_src/components/permissions/permission_context_base.cc b/chromium_src/components/permissions/permission_context_base.cc index dc9052d3bcab..d164584c9680 100644 --- a/chromium_src/components/permissions/permission_context_base.cc +++ b/chromium_src/components/permissions/permission_context_base.cc @@ -43,17 +43,17 @@ void PermissionContextBase::SetPermissionLifetimeManagerFactory( permission_lifetime_manager_factory_ = factory; } -void PermissionContextBase::PermissionDecided( - const PermissionRequestID& id, - const GURL& requesting_origin, - const GURL& embedding_origin, - BrowserPermissionCallback callback, - ContentSetting content_setting, - bool is_one_time) { +void PermissionContextBase::PermissionDecided(const PermissionRequestID& id, + const GURL& requesting_origin, + const GURL& embedding_origin, + ContentSetting content_setting, + bool is_one_time, + bool is_final_decision) { if (permission_lifetime_manager_factory_) { const auto request_it = pending_requests_.find(id.ToString()); if (request_it != pending_requests_.end()) { - const PermissionRequest* permission_request = request_it->second.get(); + const PermissionRequest* permission_request = + request_it->second.first.get(); DCHECK(permission_request); if (auto* permission_lifetime_manager = permission_lifetime_manager_factory_.Run(browser_context_)) { @@ -63,9 +63,36 @@ void PermissionContextBase::PermissionDecided( } } } - PermissionContextBase_ChromiumImpl::PermissionDecided( - id, requesting_origin, embedding_origin, std::move(callback), - content_setting, is_one_time); + + if (!IsGroupedPermissionType(content_settings_type())) { + PermissionContextBase_ChromiumImpl::PermissionDecided( + id, requesting_origin, embedding_origin, content_setting, is_one_time, + is_final_decision); + return; + } + + DCHECK(content_setting == CONTENT_SETTING_ALLOW || + content_setting == CONTENT_SETTING_BLOCK || + content_setting == CONTENT_SETTING_DEFAULT); + UserMadePermissionDecision(id, requesting_origin, embedding_origin, + content_setting); + + bool persist = content_setting != CONTENT_SETTING_DEFAULT; + + auto grouped_request = pending_grouped_requests_.find(id.ToString()); + DCHECK(grouped_request != pending_grouped_requests_.end()); + DCHECK(grouped_request->second); + + if (grouped_request->second->IsDone()) { + return; + } + + auto callback = grouped_request->second->GetNextCallback(); + if (callback) { + NotifyPermissionSet(id, requesting_origin, embedding_origin, + std::move(callback), persist, content_setting, + is_one_time, is_final_decision); + } } void PermissionContextBase::DecidePermission( @@ -126,10 +153,18 @@ bool PermissionContextBase::GroupedPermissionRequests::IsDone() const { } void PermissionContextBase::GroupedPermissionRequests::AddRequest( - std::unique_ptr request) { + std::pair, BrowserPermissionCallback> + request) { requests_.push_back(std::move(request)); } +BrowserPermissionCallback +PermissionContextBase::GroupedPermissionRequests::GetNextCallback() { + DCHECK(!IsDone()); + DCHECK(next_callback_index_ < requests_.size()); + return std::move(requests_[next_callback_index_++].second); +} + void PermissionContextBase::GroupedPermissionRequests::RequestFinished() { finished_request_count_++; } diff --git a/chromium_src/components/permissions/permission_context_base.h b/chromium_src/components/permissions/permission_context_base.h index e60c2295b268..fdc167176213 100644 --- a/chromium_src/components/permissions/permission_context_base.h +++ b/chromium_src/components/permissions/permission_context_base.h @@ -73,20 +73,25 @@ class PermissionContextBase : public PermissionContextBase_ChromiumImpl { ~GroupedPermissionRequests(); bool IsDone() const; - void AddRequest(std::unique_ptr request); + void AddRequest(std::pair, + BrowserPermissionCallback> request); + BrowserPermissionCallback GetNextCallback(); void RequestFinished(); private: - std::vector> requests_; + std::vector, + BrowserPermissionCallback>> + requests_; size_t finished_request_count_ = 0; + size_t next_callback_index_ = 0; }; void PermissionDecided(const PermissionRequestID& id, const GURL& requesting_origin, const GURL& embedding_origin, - BrowserPermissionCallback callback, ContentSetting content_setting, - bool is_one_time) override; + bool is_one_time, + bool is_final_decision) override; void CleanUpRequest(const PermissionRequestID& id) override; std::map> diff --git a/chromium_src/components/privacy_sandbox/privacy_sandbox_settings_unittest.cc b/chromium_src/components/privacy_sandbox/privacy_sandbox_settings_unittest.cc index bdb9769d99cc..8e0199dda350 100644 --- a/chromium_src/components/privacy_sandbox/privacy_sandbox_settings_unittest.cc +++ b/chromium_src/components/privacy_sandbox/privacy_sandbox_settings_unittest.cc @@ -30,7 +30,8 @@ class MockPrivacySandboxDelegate : public PrivacySandboxSettings::Delegate { return false; }); } - MOCK_METHOD(bool, IsPrivacySandboxRestricted, (), (override)); + MOCK_METHOD(bool, IsPrivacySandboxRestricted, (), (const, override)); + MOCK_METHOD(bool, IsIncognitoProfile, (), (const, override)); }; class PrivacySandboxSettingsTest : public testing::Test { @@ -60,8 +61,7 @@ class PrivacySandboxSettingsTest : public testing::Test { privacy_sandbox_settings_ = std::make_unique( std::move(mock_delegate), host_content_settings_map(), - cookie_settings(), prefs(), - /*incognito_profile=*/false); + cookie_settings(), prefs()); } virtual void InitializePrefsBeforeStart() {} @@ -117,11 +117,6 @@ TEST_F(PrivacySandboxSettingsTest, PreferenceOverridesDefaultContentSetting) { EXPECT_FALSE(privacy_sandbox_settings()->IsFledgeAllowed( url::Origin::Create(GURL("https://test.com")), url::Origin::Create(GURL("https://embedded.com")))); - EXPECT_EQ(std::vector{}, - privacy_sandbox_settings()->FilterFledgeAllowedParties( - url::Origin::Create(GURL("https://test.com")), - {GURL("https://embedded.com"), - GURL("https://another-embedded.com")})); // An allow exception should not override the preference value. privacy_sandbox_test_util::SetupTestState( @@ -154,11 +149,6 @@ TEST_F(PrivacySandboxSettingsTest, PreferenceOverridesDefaultContentSetting) { EXPECT_FALSE(privacy_sandbox_settings()->IsFledgeAllowed( url::Origin::Create(GURL("https://test.com")), url::Origin::Create(GURL("https://embedded.com")))); - EXPECT_EQ(std::vector{}, - privacy_sandbox_settings()->FilterFledgeAllowedParties( - url::Origin::Create(GURL("https://test.com")), - {GURL("https://embedded.com"), - GURL("https://another-embedded.com")})); } TEST_F(PrivacySandboxSettingsTest, CookieBlockExceptionsNeverApply) { @@ -192,11 +182,6 @@ TEST_F(PrivacySandboxSettingsTest, CookieBlockExceptionsNeverApply) { EXPECT_FALSE(privacy_sandbox_settings()->IsFledgeAllowed( url::Origin::Create(GURL("https://test.com")), url::Origin::Create(GURL("https://embedded.com")))); - EXPECT_EQ(std::vector{}, - privacy_sandbox_settings()->FilterFledgeAllowedParties( - url::Origin::Create(GURL("https://test.com")), - {GURL("https://embedded.com"), - GURL("https://another-embedded.com")})); // User created exceptions should not apply if a managed default coookie // setting exists. What the managed default setting actually is should *not* @@ -231,11 +216,6 @@ TEST_F(PrivacySandboxSettingsTest, CookieBlockExceptionsNeverApply) { EXPECT_FALSE(privacy_sandbox_settings()->IsFledgeAllowed( url::Origin::Create(GURL("https://test.com")), url::Origin::Create(GURL("https://embedded.com")))); - EXPECT_EQ(std::vector{}, - privacy_sandbox_settings()->FilterFledgeAllowedParties( - url::Origin::Create(GURL("https://test.com")), - {GURL("https://embedded.com"), - GURL("https://another-embedded.com")})); // Managed content setting exceptions. privacy_sandbox_test_util::SetupTestState( @@ -280,11 +260,6 @@ TEST_F(PrivacySandboxSettingsTest, CookieBlockExceptionsNeverApply) { EXPECT_FALSE(privacy_sandbox_settings()->IsFledgeAllowed( url::Origin::Create(GURL("https://test.com")), url::Origin::Create(GURL("https://embedded.com")))); - EXPECT_EQ(std::vector{}, - privacy_sandbox_settings()->FilterFledgeAllowedParties( - url::Origin::Create(GURL("https://test.com")), - {GURL("https://embedded.com"), - GURL("https://another-embedded.com")})); // A less specific block exception. privacy_sandbox_test_util::SetupTestState( @@ -342,11 +317,6 @@ TEST_F(PrivacySandboxSettingsTest, CookieBlockExceptionsNeverApply) { EXPECT_FALSE(privacy_sandbox_settings()->IsFledgeAllowed( url::Origin::Create(GURL("https://another-test.com")), url::Origin::Create(GURL("https://embedded.com")))); - EXPECT_EQ(std::vector{}, - privacy_sandbox_settings()->FilterFledgeAllowedParties( - url::Origin::Create(GURL("https://test.com")), - {GURL("https://embedded.com"), - GURL("https://another-embedded.com")})); // Exceptions which specify a wildcard top frame origin. privacy_sandbox_test_util::SetupTestState( @@ -377,11 +347,6 @@ TEST_F(PrivacySandboxSettingsTest, CookieBlockExceptionsNeverApply) { EXPECT_FALSE(privacy_sandbox_settings()->IsFledgeAllowed( url::Origin::Create(GURL("https://test.com")), url::Origin::Create(GURL("https://embedded.com")))); - EXPECT_EQ(std::vector{}, - privacy_sandbox_settings()->FilterFledgeAllowedParties( - url::Origin::Create(GURL("https://test.com")), - {GURL("https://embedded.com"), - GURL("https://another-embedded.com")})); } TEST_F(PrivacySandboxSettingsTest, IsFledgeAllowed) { @@ -398,10 +363,6 @@ TEST_F(PrivacySandboxSettingsTest, IsFledgeAllowed) { EXPECT_FALSE(privacy_sandbox_settings()->IsFledgeAllowed( url::Origin::Create(GURL("https://test.com")), url::Origin::Create(GURL("https://embedded.com")))); - EXPECT_EQ(std::vector{}, - privacy_sandbox_settings()->FilterFledgeAllowedParties( - url::Origin::Create(GURL("https://test.com")), - {GURL("https://embedded.com")})); // FLEDGE should be disabled if all cookies are blocked. privacy_sandbox_test_util::SetupTestState( @@ -416,10 +377,6 @@ TEST_F(PrivacySandboxSettingsTest, IsFledgeAllowed) { EXPECT_FALSE(privacy_sandbox_settings()->IsFledgeAllowed( url::Origin::Create(GURL("https://test.com")), url::Origin::Create(GURL("https://embedded.com")))); - EXPECT_EQ(std::vector{}, - privacy_sandbox_settings()->FilterFledgeAllowedParties( - url::Origin::Create(GURL("https://test.com")), - {GURL("https://embedded.com")})); // FLEDGE should be disabled if the privacy sandbox is disabled, regardless // of other cookie settings. @@ -439,10 +396,6 @@ TEST_F(PrivacySandboxSettingsTest, IsFledgeAllowed) { EXPECT_FALSE(privacy_sandbox_settings()->IsFledgeAllowed( url::Origin::Create(GURL("https://test.com")), url::Origin::Create(GURL("https://embedded.com")))); - EXPECT_EQ(std::vector{}, - privacy_sandbox_settings()->FilterFledgeAllowedParties( - url::Origin::Create(GURL("https://test.com")), - {GURL("https://embedded.com")})); // The managed cookie content setting should not override a disabled privacy // sandbox setting. @@ -458,10 +411,6 @@ TEST_F(PrivacySandboxSettingsTest, IsFledgeAllowed) { EXPECT_FALSE(privacy_sandbox_settings()->IsFledgeAllowed( url::Origin::Create(GURL("https://test.com")), url::Origin::Create(GURL("https://embedded.com")))); - EXPECT_EQ(std::vector{}, - privacy_sandbox_settings()->FilterFledgeAllowedParties( - url::Origin::Create(GURL("https://test.com")), - {GURL("https://embedded.com")})); } TEST_F(PrivacySandboxSettingsTest, IsPrivacySandboxEnabled) { diff --git a/chromium_src/components/sync/base/model_type_unittest.cc b/chromium_src/components/sync/base/model_type_unittest.cc index 4d139f1ceb24..ba69ece16aa7 100644 --- a/chromium_src/components/sync/base/model_type_unittest.cc +++ b/chromium_src/components/sync/base/model_type_unittest.cc @@ -14,7 +14,7 @@ TEST_F(ModelTypeTest, EncryptableUserTypes) { // This test is supposed to fail when sync types are increased/decreased TEST_F(ModelTypeTest, ModelTypeCounts) { - EXPECT_EQ(static_cast(ModelTypeForHistograms::kMaxValue), 56); + EXPECT_EQ(static_cast(ModelTypeForHistograms::kMaxValue), 57); } } // namespace diff --git a/chromium_src/components/sync_device_info/device_info_sync_bridge.cc b/chromium_src/components/sync_device_info/device_info_sync_bridge.cc index f76c703d8d11..3e6fbdad0b9b 100644 --- a/chromium_src/components/sync_device_info/device_info_sync_bridge.cc +++ b/chromium_src/components/sync_device_info/device_info_sync_bridge.cc @@ -61,8 +61,8 @@ std::unique_ptr BraveSpecificsToModel( specifics.cache_guid(), specifics.client_name(), specifics.chrome_version(), specifics.sync_user_agent(), specifics.device_type(), - DeriveOSfromDeviceType(specifics.device_type(), specifics.manufacturer()), - DeriveFormFactorfromDeviceType(specifics.device_type()), + DeriveOsFromDeviceType(specifics.device_type(), specifics.manufacturer()), + DeriveFormFactorFromDeviceType(specifics.device_type()), specifics.signin_scoped_device_id(), specifics.manufacturer(), specifics.model(), ProtoTimeToTime(specifics.last_updated_timestamp()), GetPulseIntervalFromSpecifics(specifics), diff --git a/chromium_src/components/update_client/update_checker.cc b/chromium_src/components/update_client/update_checker.cc index 0158825ec126..85b1530e8f78 100644 --- a/chromium_src/components/update_client/update_checker.cc +++ b/chromium_src/components/update_client/update_checker.cc @@ -90,7 +90,7 @@ void SequentialUpdateChecker::UpdateResultAvailable( bool done = error || remaining_ids_.empty(); if (done) { - base::ThreadTaskRunnerHandle::Get()->PostTask( + base::SingleThreadTaskRunner::GetCurrentDefault()->PostTask( FROM_HERE, base::BindOnce( std::move(update_check_callback_), diff --git a/chromium_src/content/browser/renderer_host/navigation_request.cc b/chromium_src/content/browser/renderer_host/navigation_request.cc index 565b3a5ff7d2..b1285d04369e 100644 --- a/chromium_src/content/browser/renderer_host/navigation_request.cc +++ b/chromium_src/content/browser/renderer_host/navigation_request.cc @@ -27,7 +27,7 @@ GURL GetTopDocumentGURL(content::FrameTreeNode* frame_tree_node) { gurl = last_committed_entry->GetBaseURLForDataURL(); #endif if (gurl.is_empty()) - gurl = frame_tree_node->frame_tree()->root()->current_url(); + gurl = frame_tree_node->frame_tree().root()->current_url(); return gurl; } diff --git a/chromium_src/content/public/common/content_features.cc b/chromium_src/content/public/common/content_features.cc index 0404a4750349..4226dc8cb309 100644 --- a/chromium_src/content/public/common/content_features.cc +++ b/chromium_src/content/public/common/content_features.cc @@ -14,9 +14,10 @@ OVERRIDE_FEATURE_DEFAULT_STATES({{ {kDigitalGoodsApi, base::FEATURE_DISABLED_BY_DEFAULT}, {kEarlyHintsPreloadForNavigation, base::FEATURE_DISABLED_BY_DEFAULT}, {kFedCm, base::FEATURE_DISABLED_BY_DEFAULT}, + {kFedCmIframeSupport, base::FEATURE_DISABLED_BY_DEFAULT}, + {kFedCmUserInfo, base::FEATURE_DISABLED_BY_DEFAULT}, {kFirstPartySets, base::FEATURE_DISABLED_BY_DEFAULT}, {kIdleDetection, base::FEATURE_DISABLED_BY_DEFAULT}, - {kNavigationRequestPreconnect, base::FEATURE_DISABLED_BY_DEFAULT}, {kNotificationTriggers, base::FEATURE_DISABLED_BY_DEFAULT}, {kPrivacySandboxAdsAPIsOverride, base::FEATURE_DISABLED_BY_DEFAULT}, {kSignedExchangeReportingForDistributors, diff --git a/chromium_src/extensions/browser/sandboxed_unpacker.cc b/chromium_src/extensions/browser/sandboxed_unpacker.cc deleted file mode 100644 index 7b9dddbc7294..000000000000 --- a/chromium_src/extensions/browser/sandboxed_unpacker.cc +++ /dev/null @@ -1,50 +0,0 @@ -/* 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 http://mozilla.org/MPL/2.0/. */ - -#include - -#include "base/values.h" -#include "base/json/json_reader.h" -#include "extensions/common/constants.h" - -namespace brave { - -bool BraveRewriteManifest(const std::string& extension_id, - base::Value::Dict* manifest) { - if (extension_id == ipfs_companion_extension_id || - extension_id == ipfs_companion_beta_extension_id) { - // Set appropriate sockets permissions for IPFS Companion - // extensions - std::string json = R"( - { - "udp": { - "send": "*", - "bind": "*" - }, - "tcp": { - "connect": "*" - }, - "tcpServer": { - "listen": "*:*" - } - } - )"; - - base::Value sockets = base::JSONReader::Read(json).value(); - manifest->Set("sockets", std::move(sockets)); - return true; - } - return false; -} - -} // namespace brave - -#define BRAVE_SANDBOXEDUNPACKER_REWRITEMANIFESTFILE \ - base::Value::Dict* dict_manifest = final_manifest.GetIfDict(); \ - DCHECK(dict_manifest); \ - brave::BraveRewriteManifest(extension_id_, dict_manifest); - -#include "src/extensions/browser/sandboxed_unpacker.cc" -#undef BRAVE_SANDBOXEDUNPACKER_REWRITEMANIFESTFILE diff --git a/chromium_src/extensions/browser/sandboxed_unpacker_unittest.cc b/chromium_src/extensions/browser/sandboxed_unpacker_unittest.cc deleted file mode 100644 index 3880b08dc9ab..000000000000 --- a/chromium_src/extensions/browser/sandboxed_unpacker_unittest.cc +++ /dev/null @@ -1,37 +0,0 @@ -/* 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 http://mozilla.org/MPL/2.0/. */ - -#include "base/values.h" -#include "extensions/common/constants.h" -#include "testing/gtest/include/gtest/gtest.h" - -namespace brave { -bool BraveRewriteManifest(const std::string& extension_id, - base::Value::Dict* manifest); -} - -TEST(BraveSandboxedUnpacker, DoesNotRewriteForDifferentExtension) { - base::Value::Dict manifest; - ASSERT_FALSE( - brave::BraveRewriteManifest("fffkpbalmllkdoenhmdmpbkajipdjfam", - &manifest)); -} - -TEST(BraveSandboxedUnpacker, RewriteForIPFSEExtension) { - // I would have liked to use SandboxedUnpacker here directly instead of - // brave::BraveRewriteManifest instead. But it would have required - // more patching for making that function protected or else more - // time than I am willing to spend otherwise. - base::Value::Dict manifest1; - ASSERT_TRUE( - brave::BraveRewriteManifest(ipfs_companion_extension_id, - &manifest1)); - ASSERT_TRUE(manifest1.Find("sockets")); - base::Value::Dict manifest2; - ASSERT_TRUE( - brave::BraveRewriteManifest(ipfs_companion_beta_extension_id, - &manifest2)); - ASSERT_TRUE(manifest2.Find("sockets")); -} diff --git a/chromium_src/extensions/common/extension_features.cc b/chromium_src/extensions/common/extension_features.cc new file mode 100644 index 000000000000..d12bcdb3850b --- /dev/null +++ b/chromium_src/extensions/common/extension_features.cc @@ -0,0 +1,16 @@ +/* Copyright (c) 2023 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/. */ + +#include "src/extensions/common/extension_features.cc" + +#include "base/feature_override.h" + +namespace extensions_features { + +OVERRIDE_FEATURE_DEFAULT_STATES({{ + {kExtensionsManifestV3Only, base::FEATURE_DISABLED_BY_DEFAULT}, +}}); + +} // namespace extensions_features diff --git a/chromium_src/ios/chrome/browser/application_context/application_context_impl.mm b/chromium_src/ios/chrome/browser/application_context/application_context_impl.mm index 5e555c67436c..20f25c0071f6 100644 --- a/chromium_src/ios/chrome/browser/application_context/application_context_impl.mm +++ b/chromium_src/ios/chrome/browser/application_context/application_context_impl.mm @@ -30,6 +30,7 @@ #include "components/prefs/pref_service.h" #include "components/sessions/core/session_id_generator.h" #include "components/ukm/ukm_service.h" +#import "ios/chrome/app/tests_hook.h" #include "ios/chrome/browser/application_context/application_context.h" #include "ios/chrome/browser/browser_state/chrome_browser_state.h" #include "ios/chrome/browser/browser_state/chrome_browser_state_manager_impl.h" @@ -47,9 +48,11 @@ #import "ios/chrome/browser/promos_manager/promos_manager_impl.h" #include "ios/chrome/browser/push_notification/push_notification_service.h" #include "ios/chrome/browser/segmentation_platform/otr_web_state_observer.h" +#include "ios/chrome/browser/signin/system_identity_manager.h" #import "ios/components/security_interstitials/safe_browsing/safe_browsing_service.h" #include "ios/public/provider/chrome/browser/app_distribution/app_distribution_api.h" #include "ios/public/provider/chrome/browser/push_notification/push_notification_api.h" +#import "ios/public/provider/chrome/browser/signin/signin_identity_api.h" #include "ios/public/provider/chrome/browser/signin/signin_sso_api.h" #include "mojo/public/cpp/bindings/pending_receiver.h" #include "net/log/net_log.h" @@ -333,6 +336,21 @@ void BindNetworkChangeManagerReceiver( return single_sign_on_service_; } +SystemIdentityManager* ApplicationContextImpl::GetSystemIdentityManager() { + DCHECK(thread_checker_.CalledOnValidThread()); + if (!system_identity_manager_) { + // Give the opportunity for the test hook to override the factory from + // the provider (allowing EG tests to use a fake SystemIdentityManager). + system_identity_manager_ = tests_hook::CreateSystemIdentityManager(); + if (!system_identity_manager_) { + system_identity_manager_ = + ios::provider::CreateSystemIdentityManager(GetSSOService()); + } + DCHECK(system_identity_manager_); + } + return system_identity_manager_.get(); +} + segmentation_platform::OTRWebStateObserver* ApplicationContextImpl::GetSegmentationOTRWebStateObserver() { if (!segmentation_otr_web_state_observer_) { diff --git a/chromium_src/net/base/features.cc b/chromium_src/net/base/features.cc index bf83e1ebdddc..89bb84f00354 100644 --- a/chromium_src/net/base/features.cc +++ b/chromium_src/net/base/features.cc @@ -16,8 +16,6 @@ OVERRIDE_FEATURE_DEFAULT_STATES({{ {kPartitionConnectionsByNetworkIsolationKey, base::FEATURE_ENABLED_BY_DEFAULT}, {kPartitionedCookies, base::FEATURE_DISABLED_BY_DEFAULT}, - {kPartitionExpectCTStateByNetworkIsolationKey, - base::FEATURE_ENABLED_BY_DEFAULT}, {kPartitionHttpServerPropertiesByNetworkIsolationKey, base::FEATURE_ENABLED_BY_DEFAULT}, {kPartitionSSLSessionsByNetworkIsolationKey, diff --git a/chromium_src/net/http/transport_security_state.cc b/chromium_src/net/http/transport_security_state.cc index 7c312e398d51..080bd5a80da1 100644 --- a/chromium_src/net/http/transport_security_state.cc +++ b/chromium_src/net/http/transport_security_state.cc @@ -13,9 +13,7 @@ #if !BUILDFLAG(IS_ANDROID) -#define BRAVE_ENABLE_STATIC_PINS \ - enable_static_pins_ = true; \ - enable_static_expect_ct_ = true; +#define BRAVE_ENABLE_STATIC_PINS enable_static_pins_ = true; #else @@ -67,26 +65,26 @@ bool IsTopFrameOriginCryptographic(const IsolationInfo& isolation_info) { isolation_info.top_frame_origin()->scheme()); } -std::string GetHSTSPartitionHash( +TransportSecurityState::HashedHost GetHSTSPartitionHash( const NetworkAnonymizationKey& network_anonymization_key) { DCHECK(base::FeatureList::IsEnabled(features::kBravePartitionHSTS)); // An empty top frame site cannot be used as a partition key, return an empty // hash which will be treated as a non-persistable partition. if (!network_anonymization_key.GetTopFrameSite().has_value()) { - return std::string(); + return TransportSecurityState::HashedHost(); } const std::string partition_domain = HSTSPartitionHashHelper::GetPartitionDomain( *network_anonymization_key.GetTopFrameSite()); if (partition_domain.empty()) { - return std::string(); + return TransportSecurityState::HashedHost(); } - const std::string canonicalized_partition_domain = + const std::vector canonicalized_partition_domain = CanonicalizeHost(partition_domain); if (canonicalized_partition_domain.empty()) { - return std::string(); + return TransportSecurityState::HashedHost(); } return HashHost(canonicalized_partition_domain); @@ -96,8 +94,8 @@ std::string GetHSTSPartitionHash( // HSTS state storage. Check top frame site for equality with site for cookies, // don't store HSTS if it differs. IsolationInfo is not available everywhere, // that's why we're using it only when parsing new HSTS state. -absl::optional GetPartitionHashForAddingHSTS( - const IsolationInfo& isolation_info) { +absl::optional +GetPartitionHashForAddingHSTS(const IsolationInfo& isolation_info) { if (!base::FeatureList::IsEnabled(features::kBravePartitionHSTS)) { return absl::nullopt; } @@ -109,14 +107,14 @@ absl::optional GetPartitionHashForAddingHSTS( if (IsTopFrameOriginCryptographic(isolation_info) && isolation_info.site_for_cookies().site() != *isolation_info.network_anonymization_key().GetTopFrameSite()) { - return std::string(); + return TransportSecurityState::HashedHost(); } return GetHSTSPartitionHash(isolation_info.network_anonymization_key()); } // Use NetworkIsolationKey to create PartitionHash for accessing/storing data. -absl::optional GetPartitionHashForHSTS( +absl::optional GetPartitionHashForHSTS( const NetworkAnonymizationKey& network_anonymization_key) { if (!base::FeatureList::IsEnabled(features::kBravePartitionHSTS)) { return absl::nullopt; @@ -127,8 +125,8 @@ absl::optional GetPartitionHashForHSTS( // Use host-bound NetworkIsolationKey in cases when no NetworkIsolationKey is // available. Such cases may include net-internals page, PasswordManager. // All network::NetworkContext HSTS-related public methods will use this. -absl::optional GetHostBoundPartitionHashForHSTS( - const std::string& host) { +absl::optional +GetHostBoundPartitionHashForHSTS(const std::string& host) { if (!base::FeatureList::IsEnabled(features::kBravePartitionHSTS)) { return absl::nullopt; } @@ -213,7 +211,7 @@ bool TransportSecurityState::DeleteDynamicDataForHost(const std::string& host) { bool brave_deleted = false; if (base::FeatureList::IsEnabled(features::kBravePartitionHSTS)) { - const std::string canonicalized_host = CanonicalizeHost(host); + const std::vector canonicalized_host = CanonicalizeHost(host); if (!canonicalized_host.empty()) { if (enabled_sts_hosts_.DeleteDataInAllPartitions( HashHost(canonicalized_host))) { diff --git a/chromium_src/net/tools/transport_security_state_generator/input_file_parsers.cc b/chromium_src/net/tools/transport_security_state_generator/input_file_parsers.cc index 7ded414d3e13..de47a501fb19 100644 --- a/chromium_src/net/tools/transport_security_state_generator/input_file_parsers.cc +++ b/chromium_src/net/tools/transport_security_state_generator/input_file_parsers.cc @@ -1,7 +1,7 @@ -/* Copyright 2019 The Brave Authors. All rights reserved. +/* 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 http://mozilla.org/MPL/2.0/. */ + * You can obtain one at https://mozilla.org/MPL/2.0/. */ #define ParseJSON ParseJSON_ChromiumImpl #define ParseCertificatesFile ParseCertificatesFile_ChromiumImpl @@ -368,9 +368,9 @@ bool ParseJSON(base::StringPiece json, for (auto& entry : chromium_entries) { // Google has asked us not to include the pins that ship with Chrome, - // but we do want the preloaded HSTS and Expect CT entries. + // but we do want the preloaded HSTS entries. entry->pinset = ""; - if (!entry->force_https && !entry->expect_ct) { + if (!entry->force_https) { continue; } diff --git a/chromium_src/services/network/cookie_settings.h b/chromium_src/services/network/cookie_settings.h index 60dfc5f5b4bb..393b697c6b77 100644 --- a/chromium_src/services/network/cookie_settings.h +++ b/chromium_src/services/network/cookie_settings.h @@ -6,33 +6,26 @@ #ifndef BRAVE_CHROMIUM_SRC_SERVICES_NETWORK_COOKIE_SETTINGS_H_ #define BRAVE_CHROMIUM_SRC_SERVICES_NETWORK_COOKIE_SETTINGS_H_ -#define IsCookieAccessible \ - IsEphemeralCookieAccessible( \ - const net::CanonicalCookie& cookie, const GURL& url, \ - const net::SiteForCookies& site_for_cookies, \ - const absl::optional& top_frame_origin) const; \ - bool IsCookieAccessible - -#define IsPrivacyModeEnabled \ - IsEphemeralPrivacyModeEnabled( \ - const GURL& url, const net::SiteForCookies& site_for_cookies, \ - const absl::optional& top_frame_origin, \ - net::SamePartyContext::Type same_party_context_type) const; \ - net::NetworkDelegate::PrivacySetting IsPrivacyModeEnabled - -#define AnnotateAndMoveUserBlockedCookies \ - AnnotateAndMoveUserBlockedEphemeralCookies( \ - const GURL& url, const net::SiteForCookies& site_for_cookies, \ - const url::Origin* top_frame_origin, \ - const net::FirstPartySetMetadata& first_party_set_metadata, \ - net::CookieAccessResultList& maybe_included_cookies, \ - net::CookieAccessResultList& excluded_cookies) const; \ - bool AnnotateAndMoveUserBlockedCookies +#define CreateDeleteCookieOnExitPredicate \ + Unused(); \ + bool IsEphemeralCookieAccessible( \ + const net::CanonicalCookie& cookie, const GURL& url, \ + const net::SiteForCookies& site_for_cookies, \ + const absl::optional& top_frame_origin) const; \ + net::NetworkDelegate::PrivacySetting IsEphemeralPrivacyModeEnabled( \ + const GURL& url, const net::SiteForCookies& site_for_cookies, \ + const absl::optional& top_frame_origin, \ + net::SamePartyContext::Type same_party_context_type) const; \ + bool AnnotateAndMoveUserBlockedEphemeralCookies( \ + const GURL& url, const net::SiteForCookies& site_for_cookies, \ + const url::Origin* top_frame_origin, \ + const net::FirstPartySetMetadata& first_party_set_metadata, \ + net::CookieAccessResultList& maybe_included_cookies, \ + net::CookieAccessResultList& excluded_cookies) const; \ + DeleteCookiePredicate CreateDeleteCookieOnExitPredicate #include "src/services/network/cookie_settings.h" -#undef AnnotateAndMoveUserBlockedCookies -#undef IsPrivacyModeEnabled -#undef IsCookieAccessible +#undef CreateDeleteCookieOnExitPredicate #endif // BRAVE_CHROMIUM_SRC_SERVICES_NETWORK_COOKIE_SETTINGS_H_ diff --git a/chromium_src/services/network/public/cpp/features.cc b/chromium_src/services/network/public/cpp/features.cc index f0c34721cd09..1eb789ae4b9b 100644 --- a/chromium_src/services/network/public/cpp/features.cc +++ b/chromium_src/services/network/public/cpp/features.cc @@ -11,7 +11,7 @@ namespace network { namespace features { OVERRIDE_FEATURE_DEFAULT_STATES({{ - {kTrustTokens, base::FEATURE_DISABLED_BY_DEFAULT}, + {kPrivateStateTokens, base::FEATURE_DISABLED_BY_DEFAULT}, }}); } // namespace features diff --git a/chromium_src/third_party/blink/common/features.cc b/chromium_src/third_party/blink/common/features.cc index 4cc143cba28a..8e8ef6c4bd7c 100644 --- a/chromium_src/third_party/blink/common/features.cc +++ b/chromium_src/third_party/blink/common/features.cc @@ -26,12 +26,18 @@ OVERRIDE_FEATURE_DEFAULT_STATES({{ {kCssSelectorFragmentAnchor, base::FEATURE_DISABLED_BY_DEFAULT}, {kFencedFrames, base::FEATURE_DISABLED_BY_DEFAULT}, {kFledge, base::FEATURE_DISABLED_BY_DEFAULT}, + {kFledgeConsiderKAnonymity, base::FEATURE_DISABLED_BY_DEFAULT}, + {kFledgeEnforceKAnonymity, base::FEATURE_DISABLED_BY_DEFAULT}, {kInterestGroupStorage, base::FEATURE_DISABLED_BY_DEFAULT}, {kParakeet, base::FEATURE_DISABLED_BY_DEFAULT}, {kPrerender2, base::FEATURE_DISABLED_BY_DEFAULT}, + {kPrerender2InBackground, base::FEATURE_DISABLED_BY_DEFAULT}, {kPrivacySandboxAdsAPIs, base::FEATURE_DISABLED_BY_DEFAULT}, {kReduceUserAgentMinorVersion, base::FEATURE_ENABLED_BY_DEFAULT}, {kSharedStorageAPI, base::FEATURE_DISABLED_BY_DEFAULT}, + {kSpeculationRulesHeaderEnableThirdPartyOriginTrial, + base::FEATURE_DISABLED_BY_DEFAULT}, + {kSpeculationRulesPrefetchFuture, base::FEATURE_DISABLED_BY_DEFAULT}, {kSpeculationRulesPrefetchProxy, base::FEATURE_DISABLED_BY_DEFAULT}, {kTextFragmentAnchor, base::FEATURE_DISABLED_BY_DEFAULT}, }}); diff --git a/chromium_src/third_party/blink/common/origin_trials/origin_trials.cc b/chromium_src/third_party/blink/common/origin_trials/origin_trials.cc index 49360a6623d9..f8281c02f520 100644 --- a/chromium_src/third_party/blink/common/origin_trials/origin_trials.cc +++ b/chromium_src/third_party/blink/common/origin_trials/origin_trials.cc @@ -25,7 +25,6 @@ bool IsTrialDisabledInBrave(base::StringPiece trial_name) { // clang-format off static const char* const kBraveDisabledTrialNames[] = { "AdInterestGroupAPI", - "CrossOriginOpenerPolicyReporting", "DeviceAttributes", "DigitalGoodsV2", "InterestCohortAPI", @@ -55,14 +54,13 @@ bool IsTrialDisabledInBrave(OriginTrialFeature feature) { static const OriginTrialFeature kBraveDisabledTrialFeatures[] = { // NOLINT OriginTrialFeature::kAdInterestGroupAPI, - OriginTrialFeature::kCrossOriginOpenerPolicyReporting, OriginTrialFeature::kDeviceAttributes, OriginTrialFeature::kDigitalGoods, OriginTrialFeature::kFencedFrames, OriginTrialFeature::kFledge, OriginTrialFeature::kParakeet, OriginTrialFeature::kPrivacySandboxAdsAPIs, - OriginTrialFeature::kTrustTokens, + OriginTrialFeature::kPrivateStateTokens, }; // clang-format on diff --git a/chromium_src/third_party/blink/public/web/web_document.h b/chromium_src/third_party/blink/public/web/web_document.h index d63eff846b6c..60efe390df57 100644 --- a/chromium_src/third_party/blink/public/web/web_document.h +++ b/chromium_src/third_party/blink/public/web/web_document.h @@ -6,7 +6,7 @@ #ifndef BRAVE_CHROMIUM_SRC_THIRD_PARTY_BLINK_PUBLIC_WEB_WEB_DOCUMENT_H_ #define BRAVE_CHROMIUM_SRC_THIRD_PARTY_BLINK_PUBLIC_WEB_WEB_DOCUMENT_H_ -#include "third_party/blink/renderer/core/permissions_policy/dom_feature_policy.h" +#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h" #define IsPluginDocument \ IsDOMFeaturePolicyEnabled(v8::Local context, \ diff --git a/chromium_src/third_party/blink/renderer/bindings/core/v8/active_script_wrappable.h b/chromium_src/third_party/blink/renderer/bindings/core/v8/active_script_wrappable.h new file mode 100644 index 000000000000..f99108b3a751 --- /dev/null +++ b/chromium_src/third_party/blink/renderer/bindings/core/v8/active_script_wrappable.h @@ -0,0 +1,57 @@ +/* Copyright (c) 2023 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/. */ + +#ifndef BRAVE_CHROMIUM_SRC_THIRD_PARTY_BLINK_RENDERER_BINDINGS_CORE_V8_ACTIVE_SCRIPT_WRAPPABLE_H_ +#define BRAVE_CHROMIUM_SRC_THIRD_PARTY_BLINK_RENDERER_BINDINGS_CORE_V8_ACTIVE_SCRIPT_WRAPPABLE_H_ + +#include "brave/components/brave_page_graph/common/buildflags.h" + +#if BUILDFLAG(ENABLE_BRAVE_PAGE_GRAPH) +#include "third_party/blink/renderer/core/core_export.h" +#include "third_party/blink/renderer/platform/bindings/active_script_wrappable_base.h" + +#define PostConstructionCallbackTrait PostConstructionCallbackTrait_ChromiumImpl +#endif // BUILDFLAG(ENABLE_BRAVE_PAGE_GRAPH) + +#include "src/third_party/blink/renderer/bindings/core/v8/active_script_wrappable.h" + +#if BUILDFLAG(ENABLE_BRAVE_PAGE_GRAPH) +#undef PostConstructionCallbackTrait + +namespace blink { +class Node; +} // namespace blink + +namespace cppgc { + +template +struct PostConstructionCallbackTrait; + +template +struct is_post_construction_callback : std::false_type {}; + +template +struct is_post_construction_callback< + T, + std::void_t< + decltype(std::declval().ActiveScriptWrappableBaseConstructed())>> + : std::true_type {}; + +// Allow PostConstructionCallback to work with Node types. +template +struct PostConstructionCallbackTrait< + T, + typename std::enable_if::value && + !std::is_base_of::value, + void>::type> { + static void Call(T* object) { + PostConstructionCallbackTrait_ChromiumImpl::Call(object); + } +}; + +} // namespace cppgc +#endif // BUILDFLAG(ENABLE_BRAVE_PAGE_GRAPH) + +#endif // BRAVE_CHROMIUM_SRC_THIRD_PARTY_BLINK_RENDERER_BINDINGS_CORE_V8_ACTIVE_SCRIPT_WRAPPABLE_H_ diff --git a/chromium_src/third_party/blink/renderer/core/exported/web_document.cc b/chromium_src/third_party/blink/renderer/core/exported/web_document.cc index ff679d9383d5..60c545cc73f4 100644 --- a/chromium_src/third_party/blink/renderer/core/exported/web_document.cc +++ b/chromium_src/third_party/blink/renderer/core/exported/web_document.cc @@ -5,6 +5,8 @@ #include "src/third_party/blink/renderer/core/exported/web_document.cc" +#include "third_party/blink/renderer/core/permissions_policy/dom_feature_policy.h" + namespace blink { bool WebDocument::IsDOMFeaturePolicyEnabled(v8::Local context, diff --git a/chromium_src/third_party/blink/renderer/modules/mediastream/media_devices.cc b/chromium_src/third_party/blink/renderer/modules/mediastream/media_devices.cc index 910c5f812728..c0f8080d4793 100644 --- a/chromium_src/third_party/blink/renderer/modules/mediastream/media_devices.cc +++ b/chromium_src/third_party/blink/renderer/modules/mediastream/media_devices.cc @@ -30,9 +30,10 @@ void FarbleMediaDevices(ExecutionContext* context, } // namespace brave -#define BRAVE_MEDIA_DEVICES_DEVICES_ENUMERATED \ - if (ExecutionContext* context = resolver->GetExecutionContext()) { \ - brave::FarbleMediaDevices(context, &media_devices); \ +#define BRAVE_MEDIA_DEVICES_DEVICES_ENUMERATED \ + if (ExecutionContext* context = \ + ExecutionContext::From(result_tracker->GetScriptState())) { \ + brave::FarbleMediaDevices(context, &media_devices); \ } #include "src/third_party/blink/renderer/modules/mediastream/media_devices.cc" diff --git a/chromium_src/third_party/blink/renderer/modules/plugins/dom_plugin_array.cc b/chromium_src/third_party/blink/renderer/modules/plugins/dom_plugin_array.cc index a8e69b7f7355..33e7914f68e3 100644 --- a/chromium_src/third_party/blink/renderer/modules/plugins/dom_plugin_array.cc +++ b/chromium_src/third_party/blink/renderer/modules/plugins/dom_plugin_array.cc @@ -12,7 +12,6 @@ #include "third_party/blink/renderer/core/page/plugin_data.h" #include "third_party/blink/renderer/modules/plugins/dom_plugin.h" #include "third_party/blink/renderer/platform/graphics/color.h" -#include "third_party/blink/renderer/platform/heap/garbage_collected.h" #include "third_party/blink/renderer/platform/wtf/text/string_builder.h" #include "third_party/blink/renderer/platform/wtf/vector.h" diff --git a/chromium_src/third_party/blink/renderer/platform/bindings/active_script_wrappable_base.h b/chromium_src/third_party/blink/renderer/platform/bindings/active_script_wrappable_base.h deleted file mode 100644 index 473c556032b7..000000000000 --- a/chromium_src/third_party/blink/renderer/platform/bindings/active_script_wrappable_base.h +++ /dev/null @@ -1,49 +0,0 @@ -/* Copyright (c) 2022 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 http://mozilla.org/MPL/2.0/. */ - -#ifndef BRAVE_CHROMIUM_SRC_THIRD_PARTY_BLINK_RENDERER_PLATFORM_BINDINGS_ACTIVE_SCRIPT_WRAPPABLE_BASE_H_ -#define BRAVE_CHROMIUM_SRC_THIRD_PARTY_BLINK_RENDERER_PLATFORM_BINDINGS_ACTIVE_SCRIPT_WRAPPABLE_BASE_H_ - -#include "brave/components/brave_page_graph/common/buildflags.h" - -#if BUILDFLAG(ENABLE_BRAVE_PAGE_GRAPH) -#include "third_party/blink/renderer/platform/heap/garbage_collected.h" -#include "v8/include/cppgc/allocation.h" -#include "v8/include/v8.h" - -#define PostConstructionCallbackTrait PostConstructionCallbackTrait_ChromiumImpl -#endif // BUILDFLAG(ENABLE_BRAVE_PAGE_GRAPH) - -#include "src/third_party/blink/renderer/platform/bindings/active_script_wrappable_base.h" - -#if BUILDFLAG(ENABLE_BRAVE_PAGE_GRAPH) -#undef PostConstructionCallbackTrait - -namespace blink { -class Node; -} // namespace blink - -namespace cppgc { - -template -struct PostConstructionCallbackTrait; - -// Allow PostConstructionCallback to work with Node types. -template -struct PostConstructionCallbackTrait< - T, - typename std::enable_if< - std::is_base_of::value && - !std::is_base_of::value, - void>::type> { - static void Call(T* object) { - PostConstructionCallbackTrait_ChromiumImpl::Call(object); - } -}; - -} // namespace cppgc -#endif // BUILDFLAG(ENABLE_BRAVE_PAGE_GRAPH) - -#endif // BRAVE_CHROMIUM_SRC_THIRD_PARTY_BLINK_RENDERER_PLATFORM_BINDINGS_ACTIVE_SCRIPT_WRAPPABLE_BASE_H_ diff --git a/common/extensions/api/_api_features.json b/common/extensions/api/_api_features.json index c7b8d9b3bcb0..e75d30009582 100644 --- a/common/extensions/api/_api_features.json +++ b/common/extensions/api/_api_features.json @@ -56,12 +56,13 @@ "contexts": ["webui"], "matches": [ "chrome://bookmarks/*", + "chrome://bookmarks-side-panel.top-chrome/*", + "chrome://brave-shields.top-chrome/*", "chrome://read-later.top-chrome/*", + "chrome://rewards-panel.top-chrome/*", "chrome://tab-strip/*", "chrome://wallet-panel.top-chrome/*", - "chrome://wallet/*", - "chrome://brave-shields.top-chrome/*", - "chrome://rewards-panel.top-chrome/*" + "chrome://wallet/*" ] }, { "channel": "stable", diff --git a/common/importer/chrome_importer_utils.cc b/common/importer/chrome_importer_utils.cc index 44efa84ef184..7b700d81288f 100644 --- a/common/importer/chrome_importer_utils.cc +++ b/common/importer/chrome_importer_utils.cc @@ -1,7 +1,7 @@ -/* Copyright 2019 The Brave Authors. All rights reserved. +/* 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 http://mozilla.org/MPL/2.0/. */ + * You can obtain one at https://mozilla.org/MPL/2.0/. */ #include "brave/common/importer/chrome_importer_utils.h" @@ -74,11 +74,7 @@ std::vector GetImportableListFromChromeExtensionsList( continue; if (auto* manifest_dict = dict.FindDict("manifest")) { - // TODO(cdesouza): Whenever Manifest::GetTypeFromManifestValue gets - // refactored upstream to take a base::Value::Dict reference, also - // remove the cloning done here to convert back to value. - if (Manifest::GetTypeFromManifestValue(base::Value::AsDictionaryValue( - base::Value(manifest_dict->Clone()))) == + if (Manifest::GetTypeFromManifestValue(*manifest_dict) == Manifest::TYPE_EXTENSION) { extensions.push_back(key); } diff --git a/common/resource_bundle_helper.cc b/common/resource_bundle_helper.cc index c1cb76ea88f2..b927b9966869 100644 --- a/common/resource_bundle_helper.cc +++ b/common/resource_bundle_helper.cc @@ -31,8 +31,7 @@ namespace { #if !BUILDFLAG(IS_ANDROID) base::FilePath GetResourcesPakFilePath() { #if BUILDFLAG(IS_MAC) - return base::mac::PathForFrameworkBundleResource( - CFSTR("brave_resources.pak")); + return base::mac::PathForFrameworkBundleResource("brave_resources.pak"); #else base::FilePath pak_path; base::PathService::Get(base::DIR_MODULE, &pak_path); @@ -51,9 +50,7 @@ base::FilePath GetScaledResourcesPakFilePath( ? "brave_100_percent.pak" : "brave_200_percent.pak"; #if BUILDFLAG(IS_MAC) - base::ScopedCFTypeRef pak_file_mac( - base::SysUTF8ToCFStringRef(pak_file)); - return base::mac::PathForFrameworkBundleResource(pak_file_mac); + return base::mac::PathForFrameworkBundleResource(pak_file); #else base::FilePath pak_path; base::PathService::Get(base::DIR_MODULE, &pak_path); diff --git a/components/arc_strings.grdp b/components/arc_strings.grdp index 7e6c2cd95d05..efd103a7cb73 100644 --- a/components/arc_strings.grdp +++ b/components/arc_strings.grdp @@ -79,7 +79,7 @@ App launching throbber - Starting + Starting $1PlayStore Updating Android System diff --git a/components/autofill_assistant_strings.grdp b/components/autofill_assistant_strings.grdp deleted file mode 100644 index 283851948f1e..000000000000 --- a/components/autofill_assistant_strings.grdp +++ /dev/null @@ -1,34 +0,0 @@ - - - - - Continue - - - Information missing - - - Something went wrong - - - Opening $1google.com… - - - Sorry I'm not able to help, please continue on your own. - - - Continue manually? - - - The screening is different from what you selected. Continue? - - - Continue - - - Brave Assistant in Brave stopping - - - Send feedback - - diff --git a/components/autofill_payments_strings.grdp b/components/autofill_payments_strings.grdp index e919984c8017..09aedd610f68 100644 --- a/components/autofill_payments_strings.grdp +++ b/components/autofill_payments_strings.grdp @@ -589,6 +589,9 @@ Learn about virtual cards + + Card image + Virtual card @@ -771,5 +774,17 @@ Add card + + + + Manage payment methods + + + Autofill payment info + + + Continue + + diff --git a/components/autofill_strings.grdp b/components/autofill_strings.grdp index 61221a523e96..2b7af875d148 100644 --- a/components/autofill_strings.grdp +++ b/components/autofill_strings.grdp @@ -93,6 +93,14 @@ , ''' + + The form was filled in + + + + The autofilled info was cleared from the form + + Hide suggestions @@ -168,7 +176,7 @@ $1Visa ••••5679, expires on $206/17 - + Expires on $106/17 diff --git a/components/brave_new_tab_ui/api/newTabAdsData.ts b/components/brave_new_tab_ui/api/newTabAdsData.ts index d341badd9aca..4fee2906c305 100644 --- a/components/brave_new_tab_ui/api/newTabAdsData.ts +++ b/components/brave_new_tab_ui/api/newTabAdsData.ts @@ -3,7 +3,7 @@ // 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/. -import * as Cr from 'chrome://resources/js/cr.m' +import * as Cr from 'chrome://resources/js/cr.js' export type NewTabAdsData = { needsBrowserUpgradeToServeAds: boolean @@ -16,5 +16,5 @@ export function getNewTabAdsData (): Promise { } export function addChangeListener (listener: NewTabAdsDataUpdatedHandler): void { - Cr.addWebUIListener('new-tab-ads-data-updated', listener) + Cr.addWebUiListener('new-tab-ads-data-updated', listener) } diff --git a/components/brave_new_tab_ui/api/preferences.ts b/components/brave_new_tab_ui/api/preferences.ts index a796830a236e..49a1c1644f19 100644 --- a/components/brave_new_tab_ui/api/preferences.ts +++ b/components/brave_new_tab_ui/api/preferences.ts @@ -3,7 +3,7 @@ // 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/. -import { addWebUIListener, sendWithPromise } from 'chrome://resources/js/cr.m' +import { addWebUiListener, sendWithPromise } from 'chrome://resources/js/cr.js' // // Manages get and set of NTP preference data @@ -55,5 +55,5 @@ export function saveSetAllStackWidgets (visible: boolean): void { } export function addChangeListener (listener: PreferencesUpdatedHandler): void { - addWebUIListener('preferences-changed', listener) + addWebUiListener('preferences-changed', listener) } diff --git a/components/brave_new_tab_ui/api/privateTabData.ts b/components/brave_new_tab_ui/api/privateTabData.ts index a276c1c7b032..dd7a9cf6aa11 100644 --- a/components/brave_new_tab_ui/api/privateTabData.ts +++ b/components/brave_new_tab_ui/api/privateTabData.ts @@ -3,7 +3,7 @@ // 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/. -import * as Cr from 'chrome://resources/js/cr.m' +import * as Cr from 'chrome://resources/js/cr.js' // // Manages get and set of NTP private data @@ -28,5 +28,5 @@ export function toggleAlternativePrivateSearchEngine (): void { } export function addChangeListener (listener: PrivateTabDataUpdatedHandler): void { - Cr.addWebUIListener('private-tab-data-updated', listener) + Cr.addWebUiListener('private-tab-data-updated', listener) } diff --git a/components/brave_new_tab_ui/api/stats.ts b/components/brave_new_tab_ui/api/stats.ts index d42b94028f8e..1aef83e4054e 100644 --- a/components/brave_new_tab_ui/api/stats.ts +++ b/components/brave_new_tab_ui/api/stats.ts @@ -3,7 +3,7 @@ // 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/. -import * as Cr from 'chrome://resources/js/cr.m' +import * as Cr from 'chrome://resources/js/cr.js' // // Manages get and update of stats data @@ -51,5 +51,5 @@ export async function getStats (): Promise { } export function addChangeListener (listener: StatsUpdatedHandler): void { - Cr.addWebUIListener('stats-updated', (raw: any) => listener(rawToStats(raw))) + Cr.addWebUiListener('stats-updated', (raw: any) => listener(rawToStats(raw))) } diff --git a/components/brave_new_tab_ui/api/topSites.ts b/components/brave_new_tab_ui/api/topSites.ts index ef3c4dff2cde..e49a72d4e213 100644 --- a/components/brave_new_tab_ui/api/topSites.ts +++ b/components/brave_new_tab_ui/api/topSites.ts @@ -3,7 +3,7 @@ // 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/. -import { addWebUIListener } from 'chrome://resources/js/cr.m' +import { addWebUiListener } from 'chrome://resources/js/cr.js' export type MostVisitedInfoChanged = { tiles: NewTab.Site[] @@ -19,7 +19,7 @@ export function updateMostVisitedInfo () { } export function addMostVistedInfoChangedListener (listener: MostVisitedInfoChangedHandler): void { - addWebUIListener('most-visited-info-changed', listener) + addWebUiListener('most-visited-info-changed', listener) } export function deleteMostVisitedTile (url: string): void { diff --git a/components/brave_new_tab_ui/api/torTabData.ts b/components/brave_new_tab_ui/api/torTabData.ts index 05c3593fa3b1..a55c65ea9c72 100644 --- a/components/brave_new_tab_ui/api/torTabData.ts +++ b/components/brave_new_tab_ui/api/torTabData.ts @@ -3,7 +3,7 @@ // 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/. -import * as Cr from 'chrome://resources/js/cr.m' +import * as Cr from 'chrome://resources/js/cr.js' export type TorTabData = { torCircuitEstablished: boolean @@ -17,5 +17,5 @@ export function getTorTabData (): Promise { } export function addChangeListener (listener: TorTabDataUpdatedHandler): void { - Cr.addWebUIListener('tor-tab-data-updated', listener) + Cr.addWebUiListener('tor-tab-data-updated', listener) } diff --git a/components/brave_new_tab_ui/api/wallpaper.ts b/components/brave_new_tab_ui/api/wallpaper.ts index 8d57fb7836e9..52b1b18a3f06 100644 --- a/components/brave_new_tab_ui/api/wallpaper.ts +++ b/components/brave_new_tab_ui/api/wallpaper.ts @@ -3,7 +3,7 @@ // 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/. -import { sendWithPromise } from 'chrome://resources/js/cr.m' +import { sendWithPromise } from 'chrome://resources/js/cr.js' export function getWallpaper (): Promise { return sendWithPromise('getWallpaperData') diff --git a/components/brave_perf_predictor/browser/named_third_party_registry.cc b/components/brave_perf_predictor/browser/named_third_party_registry.cc index 7f454f1a9046..04ad7b5db96f 100644 --- a/components/brave_perf_predictor/browser/named_third_party_registry.cc +++ b/components/brave_perf_predictor/browser/named_third_party_registry.cc @@ -14,7 +14,6 @@ #include "base/metrics/histogram_macros.h" #include "base/strings/string_piece.h" #include "base/strings/string_util.h" -#include "base/task/task_runner_util.h" #include "base/task/thread_pool.h" #include "base/values.h" #include "brave/components/brave_perf_predictor/browser/bandwidth_linreg_parameters.h" diff --git a/components/brave_rewards/browser/rewards_service_impl.cc b/components/brave_rewards/browser/rewards_service_impl.cc index fec5f6218cd3..809a96afaacd 100644 --- a/components/brave_rewards/browser/rewards_service_impl.cc +++ b/components/brave_rewards/browser/rewards_service_impl.cc @@ -33,7 +33,6 @@ #include "base/strings/utf_string_conversions.h" #include "base/task/sequenced_task_runner.h" #include "base/task/single_thread_task_runner.h" -#include "base/task/task_runner_util.h" #include "base/task/thread_pool.h" #include "base/time/time.h" #include "bat/ledger/global_constants.h" @@ -1030,10 +1029,9 @@ void RewardsServiceImpl::OnReconcileComplete( void RewardsServiceImpl::LoadLedgerState( ledger::client::OnLoadCallback callback) { - base::PostTaskAndReplyWithResult(file_task_runner_.get(), FROM_HERE, - base::BindOnce(&LoadStateOnFileTaskRunner, ledger_state_path_), - base::BindOnce(&RewardsServiceImpl::OnLedgerStateLoaded, - AsWeakPtr(), + file_task_runner_->PostTaskAndReplyWithResult( + FROM_HERE, base::BindOnce(&LoadStateOnFileTaskRunner, ledger_state_path_), + base::BindOnce(&RewardsServiceImpl::OnLedgerStateLoaded, AsWeakPtr(), std::move(callback))); } @@ -1060,10 +1058,9 @@ void RewardsServiceImpl::OnLedgerStateLoaded( void RewardsServiceImpl::LoadPublisherState( ledger::client::OnLoadCallback callback) { - base::PostTaskAndReplyWithResult(file_task_runner_.get(), FROM_HERE, - base::BindOnce(&LoadOnFileTaskRunner, publisher_state_path_), - base::BindOnce(&RewardsServiceImpl::OnPublisherStateLoaded, - AsWeakPtr(), + file_task_runner_->PostTaskAndReplyWithResult( + FROM_HERE, base::BindOnce(&LoadOnFileTaskRunner, publisher_state_path_), + base::BindOnce(&RewardsServiceImpl::OnPublisherStateLoaded, AsWeakPtr(), std::move(callback))); } @@ -1538,9 +1535,8 @@ void RewardsServiceImpl::OnDiagnosticLogDeletedForCompleteReset( publisher_info_db_path_, publisher_list_path_, }; - base::PostTaskAndReplyWithResult( - file_task_runner_.get(), FROM_HERE, - base::BindOnce(&DeleteFilesOnFileTaskRunner, paths), + file_task_runner_->PostTaskAndReplyWithResult( + FROM_HERE, base::BindOnce(&DeleteFilesOnFileTaskRunner, paths), base::BindOnce(&RewardsServiceImpl::OnFilesDeletedForCompleteReset, AsWeakPtr(), std::move(callback))); } diff --git a/components/brave_rewards/resources/tip/lib/host.ts b/components/brave_rewards/resources/tip/lib/host.ts index 467c85105cbe..7403ca821c1e 100644 --- a/components/brave_rewards/resources/tip/lib/host.ts +++ b/components/brave_rewards/resources/tip/lib/host.ts @@ -1,8 +1,9 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public +/* Copyright (c) 2022 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/. */ -import { addWebUIListener } from 'chrome://resources/js/cr.m' +import { addWebUiListener } from 'chrome://resources/js/cr.js' import { createStateManager } from '../../shared/lib/state_manager' import { userTypeFromMojo } from '../../shared/lib/user_type' @@ -51,9 +52,9 @@ function getDialogArgs (): DialogArgs { } } -function addWebUIListeners (listeners: Record) { +function addWebUiListeners (listeners: Record) { for (const [name, listener] of Object.entries(listeners)) { - addWebUIListener(name, listener) + addWebUiListener(name, listener) } } @@ -75,7 +76,7 @@ export function createHost (): Host { return false } - addWebUIListeners({ + addWebUiListeners({ rewardsInitialized () { const { publisherKey } = dialogArgs diff --git a/components/brave_search/renderer/brave_search_default_js_handler.cc b/components/brave_search/renderer/brave_search_default_js_handler.cc index 36e72be528fa..bb5b5910e31c 100644 --- a/components/brave_search/renderer/brave_search_default_js_handler.cc +++ b/components/brave_search/renderer/brave_search_default_js_handler.cc @@ -136,7 +136,7 @@ void BraveSearchDefaultJSHandler::OnCanSetDefaultSearchProvider( v8::HandleScope handle_scope(isolate); v8::Local context = context_old->Get(isolate); v8::Context::Scope context_scope(context); - v8::MicrotasksScope microtasks(isolate, + v8::MicrotasksScope microtasks(isolate, context->GetMicrotaskQueue(), v8::MicrotasksScope::kDoNotRunMicrotasks); v8::Local resolver = promise_resolver->Get(isolate); diff --git a/components/brave_shields/browser/ad_block_component_installer.cc b/components/brave_shields/browser/ad_block_component_installer.cc index 1973df1feb21..10c17a2d0e88 100644 --- a/components/brave_shields/browser/ad_block_component_installer.cc +++ b/components/brave_shields/browser/ad_block_component_installer.cc @@ -79,14 +79,14 @@ class AdBlockComponentInstallerPolicy bool SupportsGroupPolicyEnabledComponentUpdates() const override; bool RequiresNetworkEncryption() const override; update_client::CrxInstaller::Result OnCustomInstall( - const base::Value& manifest, + const base::Value::Dict& manifest, const base::FilePath& install_dir) override; void OnCustomUninstall() override; - bool VerifyInstallation(const base::Value& manifest, + bool VerifyInstallation(const base::Value::Dict& manifest, const base::FilePath& install_dir) const override; void ComponentReady(const base::Version& version, const base::FilePath& path, - base::Value manifest) override; + base::Value::Dict manifest) override; base::FilePath GetRelativeInstallDir() const override; void GetHash(std::vector* hash) const override; std::string GetName() const override; @@ -126,7 +126,7 @@ bool AdBlockComponentInstallerPolicy::RequiresNetworkEncryption() const { update_client::CrxInstaller::Result AdBlockComponentInstallerPolicy::OnCustomInstall( - const base::Value& manifest, + const base::Value::Dict& manifest, const base::FilePath& install_dir) { return update_client::CrxInstaller::Result(0); } @@ -136,12 +136,12 @@ void AdBlockComponentInstallerPolicy::OnCustomUninstall() {} void AdBlockComponentInstallerPolicy::ComponentReady( const base::Version& version, const base::FilePath& path, - base::Value manifest) { + base::Value::Dict manifest) { ready_callback_.Run(path); } bool AdBlockComponentInstallerPolicy::VerifyInstallation( - const base::Value& manifest, + const base::Value::Dict& manifest, const base::FilePath& install_dir) const { return true; } diff --git a/components/brave_shields/browser/ad_block_subscription_download_manager.cc b/components/brave_shields/browser/ad_block_subscription_download_manager.cc index c7606b6b4ad9..5f12610736aa 100644 --- a/components/brave_shields/browser/ad_block_subscription_download_manager.cc +++ b/components/brave_shields/browser/ad_block_subscription_download_manager.cc @@ -12,7 +12,6 @@ #include "base/files/file_util.h" #include "base/guid.h" #include "base/metrics/histogram_functions.h" -#include "base/task/task_runner_util.h" #include "brave/components/brave_shields/browser/ad_block_service_helper.h" #include "brave/components/brave_shields/browser/ad_block_subscription_service_manager.h" #include "brave/components/brave_shields/common/brave_shield_constants.h" diff --git a/components/brave_shields/browser/domain_block_navigation_throttle.cc b/components/brave_shields/browser/domain_block_navigation_throttle.cc index fdbd39a4c423..d63ebf5f29a4 100644 --- a/components/brave_shields/browser/domain_block_navigation_throttle.cc +++ b/components/brave_shields/browser/domain_block_navigation_throttle.cc @@ -11,7 +11,6 @@ #include "base/bind.h" #include "base/feature_list.h" #include "base/metrics/histogram_macros.h" -#include "base/task/task_runner_util.h" #include "base/threading/thread_task_runner_handle.h" #include "brave/components/brave_shields/browser/ad_block_service.h" #include "brave/components/brave_shields/browser/domain_block_controller_client.h" diff --git a/components/brave_shields/browser/https_everywhere_component_installer.cc b/components/brave_shields/browser/https_everywhere_component_installer.cc index 108d61bba0fb..97d65e55eb2b 100644 --- a/components/brave_shields/browser/https_everywhere_component_installer.cc +++ b/components/brave_shields/browser/https_everywhere_component_installer.cc @@ -54,7 +54,7 @@ class HTTPSEverywhereComponentInstallerPolicy bool SupportsGroupPolicyEnabledComponentUpdates() const override; bool RequiresNetworkEncryption() const override; update_client::CrxInstaller::Result OnCustomInstall( - const base::DictionaryValue& manifest, + const base::Value::Dict& manifest, const base::FilePath& install_dir) override; void OnCustomUninstall() override; bool VerifyInstallation(const base::DictionaryValue& manifest, @@ -104,7 +104,7 @@ bool HTTPSEverywhereComponentInstallerPolicy::RequiresNetworkEncryption() update_client::CrxInstaller::Result HTTPSEverywhereComponentInstallerPolicy::OnCustomInstall( - const base::DictionaryValue& manifest, + const base::Value::Dict& manifest, const base::FilePath& install_dir) { return update_client::CrxInstaller::Result(0); } diff --git a/components/brave_shields/resources/domain_block_interstitial.html b/components/brave_shields/resources/domain_block_interstitial.html index dde608e63569..e9ea75ef5105 100644 --- a/components/brave_shields/resources/domain_block_interstitial.html +++ b/components/brave_shields/resources/domain_block_interstitial.html @@ -6,7 +6,6 @@ - diff --git a/components/brave_today/browser/brave_news_controller.cc b/components/brave_today/browser/brave_news_controller.cc index 7ddea8c75e9b..0732f6019a5e 100644 --- a/components/brave_today/browser/brave_news_controller.cc +++ b/components/brave_today/browser/brave_news_controller.cc @@ -436,7 +436,7 @@ void BraveNewsController::SetPublisherPref(const std::string& publisher_id, void BraveNewsController::ClearPrefs() { DictionaryPrefUpdate update(prefs_, prefs::kBraveTodaySources); - update->DictClear(); + update->GetDict().clear(); // Force an update of publishers and feed to include or ignore // content from the affected publisher. publishers_controller_.EnsurePublishersIsUpdating(); diff --git a/components/brave_today/browser/direct_feed_controller.cc b/components/brave_today/browser/direct_feed_controller.cc index 831664a307fb..eda396b5c417 100644 --- a/components/brave_today/browser/direct_feed_controller.cc +++ b/components/brave_today/browser/direct_feed_controller.cc @@ -6,7 +6,6 @@ #include "brave/components/brave_today/browser/direct_feed_controller.h" #include -#include #include #include #include @@ -21,6 +20,7 @@ #include "base/location.h" #include "base/logging.h" #include "base/strings/string_util.h" +#include "base/strings/utf_string_conversions.h" #include "base/task/thread_pool.h" #include "base/time/time.h" #include "brave/components/brave_private_cdn/headers.h" @@ -72,9 +72,8 @@ mojom::ArticlePtr RustFeedItemToArticle(const FeedItem& rust_feed_item, // Get language-specific relative time base::TimeDelta relative_time_delta = base::Time::Now() - metadata->publish_time; - std::wstring_convert, char16_t> converter; metadata->relative_time_description = - converter.to_bytes(ui::TimeFormat::Simple( + base::UTF16ToUTF8(ui::TimeFormat::Simple( ui::TimeFormat::Format::FORMAT_ELAPSED, ui::TimeFormat::Length::LENGTH_LONG, relative_time_delta)); auto article = mojom::Article::New(); diff --git a/components/brave_today/browser/feed_parsing.cc b/components/brave_today/browser/feed_parsing.cc index f6b40f745d24..216640155003 100644 --- a/components/brave_today/browser/feed_parsing.cc +++ b/components/brave_today/browser/feed_parsing.cc @@ -5,12 +5,12 @@ #include "brave/components/brave_today/browser/feed_parsing.h" -#include #include #include #include #include "base/logging.h" +#include "base/strings/utf_string_conversions.h" #include "base/time/time.h" #include "brave/components/brave_today/common/brave_news.mojom-forward.h" #include "brave/components/brave_today/common/brave_news.mojom-shared.h" @@ -83,9 +83,8 @@ bool ParseFeedItem(const base::Value& feed_item_raw, // Successful, get language-specific relative time base::TimeDelta relative_time_delta = base::Time::Now() - metadata->publish_time; - std::wstring_convert, char16_t> converter; metadata->relative_time_description = - converter.to_bytes(ui::TimeFormat::Simple( + base::UTF16ToUTF8(ui::TimeFormat::Simple( ui::TimeFormat::Format::FORMAT_ELAPSED, ui::TimeFormat::Length::LENGTH_LONG, relative_time_delta)); } diff --git a/components/brave_vpn/renderer/android/vpn_render_frame_observer.cc b/components/brave_vpn/renderer/android/vpn_render_frame_observer.cc index 78af813880ee..c2d1a307582e 100644 --- a/components/brave_vpn/renderer/android/vpn_render_frame_observer.cc +++ b/components/brave_vpn/renderer/android/vpn_render_frame_observer.cc @@ -17,6 +17,7 @@ #include "brave/components/skus/renderer/skus_utils.h" #include "build/build_config.h" #include "content/public/renderer/render_frame.h" +#include "third_party/blink/public/common/browser_interface_broker_proxy.h" #include "third_party/blink/public/platform/web_security_origin.h" #include "third_party/blink/public/web/web_local_frame.h" #include "url/url_util.h" diff --git a/components/brave_wallet/browser/wallet_data_files_installer.cc b/components/brave_wallet/browser/wallet_data_files_installer.cc index d34f2b9d3c67..4706ade10ad9 100644 --- a/components/brave_wallet/browser/wallet_data_files_installer.cc +++ b/components/brave_wallet/browser/wallet_data_files_installer.cc @@ -15,7 +15,6 @@ #include "base/files/file_path.h" #include "base/files/file_util.h" #include "base/logging.h" -#include "base/task/task_runner_util.h" #include "base/task/thread_pool.h" #include "base/values.h" #include "brave/components/brave_component_updater/browser/brave_on_demand_updater.h" @@ -171,14 +170,14 @@ class WalletDataFilesInstallerPolicy bool SupportsGroupPolicyEnabledComponentUpdates() const override; bool RequiresNetworkEncryption() const override; update_client::CrxInstaller::Result OnCustomInstall( - const base::Value& manifest, + const base::Value::Dict& manifest, const base::FilePath& install_dir) override; void OnCustomUninstall() override; - bool VerifyInstallation(const base::Value& manifest, + bool VerifyInstallation(const base::Value::Dict& manifest, const base::FilePath& install_dir) const override; void ComponentReady(const base::Version& version, const base::FilePath& path, - base::Value manifest) override; + base::Value::Dict manifest) override; base::FilePath GetRelativeInstallDir() const override; void GetHash(std::vector* hash) const override; std::string GetName() const override; @@ -207,7 +206,7 @@ bool WalletDataFilesInstallerPolicy::RequiresNetworkEncryption() const { update_client::CrxInstaller::Result WalletDataFilesInstallerPolicy::OnCustomInstall( - const base::Value& manifest, + const base::Value::Dict& manifest, const base::FilePath& install_dir) { return update_client::CrxInstaller::Result(update_client::InstallError::NONE); } @@ -217,7 +216,7 @@ void WalletDataFilesInstallerPolicy::OnCustomUninstall() {} void WalletDataFilesInstallerPolicy::ComponentReady( const base::Version& version, const base::FilePath& path, - base::Value manifest) { + base::Value::Dict manifest) { last_installed_wallet_version = version; sequenced_task_runner_->PostTask( FROM_HERE, base::BindOnce(&ParseTokenListAndUpdateRegistry, path)); @@ -227,7 +226,7 @@ void WalletDataFilesInstallerPolicy::ComponentReady( } bool WalletDataFilesInstallerPolicy::VerifyInstallation( - const base::Value& manifest, + const base::Value::Dict& manifest, const base::FilePath& install_dir) const { return true; } diff --git a/components/brave_wallet/renderer/js_ethereum_provider.cc b/components/brave_wallet/renderer/js_ethereum_provider.cc index efd60818bc34..e46c17086e52 100644 --- a/components/brave_wallet/renderer/js_ethereum_provider.cc +++ b/components/brave_wallet/renderer/js_ethereum_provider.cc @@ -55,10 +55,10 @@ void JSEthereumProvider::OnIsUnlocked( v8::Isolate* isolate, bool locked) { v8::HandleScope handle_scope(isolate); - v8::MicrotasksScope microtasks(isolate, - v8::MicrotasksScope::kDoNotRunMicrotasks); v8::Local resolver = promise_resolver.Get(isolate); v8::Local context = global_context.Get(isolate); + v8::MicrotasksScope microtasks(isolate, context->GetMicrotaskQueue(), + v8::MicrotasksScope::kDoNotRunMicrotasks); base::Value result = base::Value(!locked); v8::Local local_result = content::V8ValueConverter::Create()->ToV8Value(result, context); @@ -77,10 +77,10 @@ void JSEthereumProvider::SendResponse( if (!render_frame()) return; v8::HandleScope handle_scope(isolate); - v8::MicrotasksScope microtasks(isolate, - v8::MicrotasksScope::kDoNotRunMicrotasks); v8::Local context = global_context.Get(isolate); v8::Context::Scope context_scope(context); + v8::MicrotasksScope microtasks(isolate, context->GetMicrotaskQueue(), + v8::MicrotasksScope::kDoNotRunMicrotasks); if (global_callback || force_json_response) { auto full_formed_response = brave_wallet::ToProviderResponse( diff --git a/components/brave_wallet/renderer/js_solana_provider.cc b/components/brave_wallet/renderer/js_solana_provider.cc index 02198c6c25a0..87f39c05cd7c 100644 --- a/components/brave_wallet/renderer/js_solana_provider.cc +++ b/components/brave_wallet/renderer/js_solana_provider.cc @@ -565,9 +565,9 @@ void JSSolanaProvider::OnConnect( const std::string& error_message, const std::string& public_key) { v8::HandleScope handle_scope(isolate); - v8::MicrotasksScope microtasks(isolate, - v8::MicrotasksScope::kDoNotRunMicrotasks); v8::Local context = global_context.Get(isolate); + v8::MicrotasksScope microtasks(isolate, context->GetMicrotaskQueue(), + v8::MicrotasksScope::kDoNotRunMicrotasks); v8::Context::Scope context_scope(context); v8::Local result; v8::Local v8_public_key; @@ -670,9 +670,9 @@ void JSSolanaProvider::OnSignTransaction( const std::string& error_message, const std::vector& serialized_tx) { v8::HandleScope handle_scope(isolate); - v8::MicrotasksScope microtasks(isolate, - v8::MicrotasksScope::kDoNotRunMicrotasks); v8::Local context = global_context.Get(isolate); + v8::MicrotasksScope microtasks(isolate, context->GetMicrotaskQueue(), + v8::MicrotasksScope::kDoNotRunMicrotasks); v8::Local result; if (error == mojom::SolanaProviderError::kSuccess) { result = CreateTransaction(context, serialized_tx); @@ -694,10 +694,10 @@ void JSSolanaProvider::OnSignAllTransactions( const std::string& error_message, const std::vector>& serialized_txs) { v8::HandleScope handle_scope(isolate); - v8::MicrotasksScope microtasks(isolate, - v8::MicrotasksScope::kDoNotRunMicrotasks); v8::Local context = global_context.Get(isolate); v8::Context::Scope context_scope(context); + v8::MicrotasksScope microtasks(isolate, context->GetMicrotaskQueue(), + v8::MicrotasksScope::kDoNotRunMicrotasks); v8::Local result; if (error == mojom::SolanaProviderError::kSuccess) { size_t serialized_txs_length = serialized_txs.size(); @@ -770,9 +770,9 @@ void JSSolanaProvider::SendResponse( v8::Local response, bool success) { v8::HandleScope handle_scope(isolate); - v8::MicrotasksScope microtasks(isolate, - v8::MicrotasksScope::kDoNotRunMicrotasks); v8::Local context = global_context.Get(isolate); + v8::MicrotasksScope microtasks(isolate, context->GetMicrotaskQueue(), + v8::MicrotasksScope::kDoNotRunMicrotasks); v8::Context::Scope context_scope(context); v8::Local resolver = promise_resolver.Get(isolate); @@ -892,7 +892,7 @@ v8::Local JSSolanaProvider::CreatePublicKey( v8::Local context, const std::string& base58_str) { v8::Isolate* isolate = context->GetIsolate(); - v8::MicrotasksScope microtasks(isolate, + v8::MicrotasksScope microtasks(isolate, context->GetMicrotaskQueue(), v8::MicrotasksScope::kDoNotRunMicrotasks); v8::Context::Scope context_scope(context); diff --git a/components/brave_wallet_ui/common/api/hardware_keyrings.ts b/components/brave_wallet_ui/common/api/hardware_keyrings.ts index 8fd86eb225c8..ef8371dace01 100644 --- a/components/brave_wallet_ui/common/api/hardware_keyrings.ts +++ b/components/brave_wallet_ui/common/api/hardware_keyrings.ts @@ -3,7 +3,7 @@ * 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/. */ -import { assert } from 'chrome://resources/js/assert.js' +import { assert } from 'chrome://resources/js/assert_ts.js' import EthereumLedgerBridgeKeyring from '../../common/hardware/ledgerjs/eth_ledger_bridge_keyring' import SolanaLedgerBridgeKeyring from '../../common/hardware/ledgerjs/sol_ledger_bridge_keyring' import TrezorBridgeKeyring from '../../common/hardware/trezor/trezor_bridge_keyring' @@ -60,7 +60,7 @@ export function getHardwareKeyring ( } const trezorKeyring = getTrezorHardwareKeyring() - assert(type === trezorHardwareKeyring.type()) + assert(type === trezorHardwareKeyring.type(), '') return trezorKeyring } diff --git a/components/brave_wallet_ui/common/async/lib.ts b/components/brave_wallet_ui/common/async/lib.ts index d8e4ecc6e2ce..82878b4cba11 100644 --- a/components/brave_wallet_ui/common/async/lib.ts +++ b/components/brave_wallet_ui/common/async/lib.ts @@ -2,7 +2,9 @@ // 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/. -import { assert } from 'chrome://resources/js/assert.js' + +import { assert } from 'chrome://resources/js/assert_ts.js' + import { HardwareWalletConnectOpts } from '../../components/desktop/popup-modals/add-account-modal/hardware-wallet-connect/types' @@ -340,7 +342,7 @@ export function getKeyringIdFromCoin (coin: BraveWallet.CoinType): BraveKeyrings if (coin === BraveWallet.CoinType.SOL) { return BraveWallet.SOLANA_KEYRING_ID } - assert(coin === BraveWallet.CoinType.ETH) + assert(coin === BraveWallet.CoinType.ETH, '') return BraveWallet.DEFAULT_KEYRING_ID } diff --git a/components/brave_wallet_ui/common/hardware/ledgerjs/eth_ledger_bridge_keyring.ts b/components/brave_wallet_ui/common/hardware/ledgerjs/eth_ledger_bridge_keyring.ts index c4020fe97715..0729b72841e4 100644 --- a/components/brave_wallet_ui/common/hardware/ledgerjs/eth_ledger_bridge_keyring.ts +++ b/components/brave_wallet_ui/common/hardware/ledgerjs/eth_ledger_bridge_keyring.ts @@ -3,7 +3,7 @@ * 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/. */ -import { assert } from 'chrome://resources/js/assert.js' +import { assert } from 'chrome://resources/js/assert_ts.js' import { BraveWallet } from '../../../constants/types' import { getLocale } from '../../../../common/locale' import { LedgerEthereumKeyring } from '../interfaces' @@ -211,7 +211,7 @@ export default class EthereumLedgerBridgeKeyring extends LedgerBridgeKeyring imp return `m/44'/60'/${index}'/0` } - assert(scheme === LedgerDerivationPaths.Legacy) + assert(scheme === LedgerDerivationPaths.Legacy, '') return `m/44'/60'/0'/${index}` } } diff --git a/components/brave_wallet_ui/common/hardware/ledgerjs/sol_ledger_bridge_keyring.ts b/components/brave_wallet_ui/common/hardware/ledgerjs/sol_ledger_bridge_keyring.ts index 05502753e8aa..a2129310cd62 100644 --- a/components/brave_wallet_ui/common/hardware/ledgerjs/sol_ledger_bridge_keyring.ts +++ b/components/brave_wallet_ui/common/hardware/ledgerjs/sol_ledger_bridge_keyring.ts @@ -3,7 +3,7 @@ * 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/. */ -import { assert } from 'chrome://resources/js/assert.js' +import { assert } from 'chrome://resources/js/assert_ts.js' import { BraveWallet } from '../../../constants/types' import { LedgerSolanaKeyring } from '../interfaces' import { @@ -131,7 +131,7 @@ export default class SolanaLedgerBridgeKeyring extends LedgerBridgeKeyring imple if (scheme === SolDerivationPaths.LedgerLive) { return `44'/501'/${index}'` } - assert(scheme === SolDerivationPaths.Default) + assert(scheme === SolDerivationPaths.Default, '') return `44'/501'/${index}'/0'` } diff --git a/components/brave_wallet_ui/common/hardware/trezor/trezor_bridge_keyring.ts b/components/brave_wallet_ui/common/hardware/trezor/trezor_bridge_keyring.ts index 78a35dbd4567..d57e97e04729 100644 --- a/components/brave_wallet_ui/common/hardware/trezor/trezor_bridge_keyring.ts +++ b/components/brave_wallet_ui/common/hardware/trezor/trezor_bridge_keyring.ts @@ -3,7 +3,7 @@ * 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/. */ -import { assert } from 'chrome://resources/js/assert.js' +import { assert } from 'chrome://resources/js/assert_ts.js' import { publicToAddress, toChecksumAddress, bufferToHex } from 'ethereumjs-util' import { BraveWallet, SerializableTransactionInfo } from '../../../constants/types' import { getLocale } from '../../../../common/locale' @@ -206,7 +206,7 @@ export default class TrezorBridgeKeyring implements TrezorKeyring { } private createEIP1559TransactionPayload = (path: string, txInfo: SerializableTransactionInfo, chainId: string): SignTransactionCommandPayload => { - assert(txInfo.txDataUnion.ethTxData1559) + assert(txInfo.txDataUnion.ethTxData1559, '') return { path: path, transaction: { @@ -223,7 +223,7 @@ export default class TrezorBridgeKeyring implements TrezorKeyring { } private createLegacyTransactionPayload = (path: string, txInfo: SerializableTransactionInfo, chainId: string): SignTransactionCommandPayload => { - assert(txInfo.txDataUnion.ethTxData1559) + assert(txInfo.txDataUnion.ethTxData1559, '') return { path: path, transaction: { diff --git a/components/brave_welcome_ui/api/default_browser_browser_proxy.ts b/components/brave_welcome_ui/api/default_browser_browser_proxy.ts index 0dd828387ad4..6153c6635ced 100644 --- a/components/brave_welcome_ui/api/default_browser_browser_proxy.ts +++ b/components/brave_welcome_ui/api/default_browser_browser_proxy.ts @@ -11,7 +11,7 @@ */ // clang-format off -import { sendWithPromise } from 'chrome://resources/js/cr.m.js' +import { sendWithPromise } from 'chrome://resources/js/cr.js' // clang-format on export interface DefaultBrowserInfo { diff --git a/components/brave_welcome_ui/api/import_data_browser_proxy.ts b/components/brave_welcome_ui/api/import_data_browser_proxy.ts index 9c12e90cdd9b..2d9f2128b859 100644 --- a/components/brave_welcome_ui/api/import_data_browser_proxy.ts +++ b/components/brave_welcome_ui/api/import_data_browser_proxy.ts @@ -6,7 +6,7 @@ // Copied from Chromium // clang-format off -import { sendWithPromise } from 'chrome://resources/js/cr.m.js' +import { sendWithPromise } from 'chrome://resources/js/cr.js' // clang-format on /** diff --git a/components/brave_welcome_ui/state/data-context-provider.tsx b/components/brave_welcome_ui/state/data-context-provider.tsx index a06aa6048db1..80d0993188a6 100644 --- a/components/brave_welcome_ui/state/data-context-provider.tsx +++ b/components/brave_welcome_ui/state/data-context-provider.tsx @@ -4,7 +4,7 @@ // you can obtain one at https://mozilla.org/MPL/2.0/. import * as React from 'react' -import { addWebUIListener } from 'chrome://resources/js/cr.m.js' +import { addWebUiListener } from 'chrome://resources/js/cr.js' import DataContext from '../state/context' import { ViewType, Scenes } from '../state/component_types' @@ -33,7 +33,7 @@ function DataContextProvider (props: DataContextProviderProps) { } React.useEffect(() => { - addWebUIListener('brave-import-data-status-changed', (status: any) => { + addWebUiListener('brave-import-data-status-changed', (status: any) => { // TODO(tali): Handle item based events if (status.event === 'ImportStarted' && (profileCountRef.current > 0)) { diff --git a/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/BraveContentSettingsResources.java b/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/BraveContentSettingsResources.java index f06bd6c174ed..d4abec08878b 100644 --- a/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/BraveContentSettingsResources.java +++ b/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/BraveContentSettingsResources.java @@ -22,7 +22,7 @@ protected static class ResourceItem { } } - protected static ResourceItem getResourceItem(int contentType) { + protected static ResourceItem getResourceItem(int contentType, SiteSettingsDelegate delegate) { switch (contentType) { case ContentSettingsType.AUTOPLAY: return new ResourceItem(R.drawable.ic_volume_up_grey600_24dp, @@ -31,7 +31,7 @@ protected static ResourceItem getResourceItem(int contentType) { R.string.website_settings_category_autoplay_allowed, 0); } - return (ResourceItem) BraveReflectionUtil.InvokeMethod( - ContentSettingsResources.class, null, "getResourceItem", int.class, contentType); + return (ResourceItem) BraveReflectionUtil.InvokeMethod(ContentSettingsResources.class, null, + "getResourceItem", int.class, contentType, SiteSettingsDelegate.class, delegate); } } diff --git a/components/components_brave_strings.grd b/components/components_brave_strings.grd index 14d48706f480..ec872efe907a 100644 --- a/components/components_brave_strings.grd +++ b/components/components_brave_strings.grd @@ -211,9 +211,6 @@ This page has been blocked by Brave - - ChromeOS hasn’t completed its initial setup. - Go to diff --git a/components/components_strings.grd b/components/components_strings.grd index a2c652b21014..15ffd701965f 100644 --- a/components/components_strings.grd +++ b/components/components_strings.grd @@ -281,7 +281,6 @@ - diff --git a/components/content_settings/core/browser/brave_content_settings_pref_provider.cc b/components/content_settings/core/browser/brave_content_settings_pref_provider.cc index 46968bf0e16b..8a2f1360b723 100644 --- a/components/content_settings/core/browser/brave_content_settings_pref_provider.cc +++ b/components/content_settings/core/browser/brave_content_settings_pref_provider.cc @@ -580,7 +580,7 @@ bool BravePrefProvider::SetWebsiteSettingInternal( store_last_modified_ ? base::Time::Now() : base::Time(); base::Time last_visited = constraints.track_last_visit_for_autoexpiration - ? GetCoarseTime(base::Time::Now()) + ? GetCoarseVisitedTime(base::Time::Now()) : base::Time(); GetPref(content_type) diff --git a/components/decentralized_dns/content/resources/decentralized_dns_interstitial.html b/components/decentralized_dns/content/resources/decentralized_dns_interstitial.html index 94e7f39516f3..05f07dc7521c 100644 --- a/components/decentralized_dns/content/resources/decentralized_dns_interstitial.html +++ b/components/decentralized_dns/content/resources/decentralized_dns_interstitial.html @@ -6,7 +6,6 @@ - diff --git a/components/error_page_strings.grdp b/components/error_page_strings.grdp index 8dbc166f50c2..15a51f940f81 100644 --- a/components/error_page_strings.grdp +++ b/components/error_page_strings.grdp @@ -89,6 +89,9 @@ $1Goto the wrench menu and choose Fix It. + + <a href="#buttons" onclick="javascript:portalSignin()">Signing in</a> to the network. + You can disable any proxies configured for a connection from the settings page. @@ -329,12 +332,6 @@ Reconnecting to Wi-Fi - - Fix your connection using the <a href="#buttons" onclick="javascript:diagnoseErrors()">diagnostics app</a></a> - - - Sign out and complete setup - Try disabling your extensions. diff --git a/components/fullscreen_control_strings.grdp b/components/fullscreen_control_strings.grdp index 927f46a80181..ba1960344280 100644 --- a/components/fullscreen_control_strings.grdp +++ b/components/fullscreen_control_strings.grdp @@ -25,4 +25,7 @@ Press |$1Esc| to exit full screen and see download. + + Press and hold |$1Esc| to exit full screen and see download. + diff --git a/components/greaselion/browser/greaselion_download_service.cc b/components/greaselion/browser/greaselion_download_service.cc index ba94e9d9b7bf..1858c7de53e4 100644 --- a/components/greaselion/browser/greaselion_download_service.cc +++ b/components/greaselion/browser/greaselion_download_service.cc @@ -18,7 +18,6 @@ #include "base/strings/stringprintf.h" #include "base/strings/utf_string_conversions.h" #include "base/task/sequenced_task_runner.h" -#include "base/task/task_runner_util.h" #include "base/task/thread_pool.h" #include "base/version.h" #include "brave/components/brave_component_updater/browser/dat_file_util.h" @@ -265,8 +264,8 @@ void GreaselionDownloadService::OnDevModeLocalFileChanged(bool error) { void GreaselionDownloadService::LoadDirectlyFromResourcePath() { base::FilePath dat_file_path = resource_dir_.AppendASCII(kGreaselionConfigFile); - base::PostTaskAndReplyWithResult( - GetTaskRunner().get(), FROM_HERE, + GetTaskRunner()->PostTaskAndReplyWithResult( + FROM_HERE, base::BindOnce(&brave_component_updater::GetDATFileAsString, dat_file_path), base::BindOnce(&GreaselionDownloadService::OnDATFileDataReady, diff --git a/components/greaselion/browser/greaselion_service_impl.cc b/components/greaselion/browser/greaselion_service_impl.cc index 93e4f4e2f40c..c4c72a74b125 100644 --- a/components/greaselion/browser/greaselion_service_impl.cc +++ b/components/greaselion/browser/greaselion_service_impl.cc @@ -25,7 +25,6 @@ #include "base/ranges/algorithm.h" #include "base/strings/string_util.h" #include "base/strings/utf_string_conversions.h" -#include "base/task/task_runner_util.h" #include "base/values.h" #include "base/version.h" #include "brave/components/brave_component_updater/browser/features.h" @@ -323,8 +322,8 @@ void GreaselionServiceImpl::CreateAndInstallExtensions() { // Convert script file to component extension. This must run on extension // file task runner, which was passed in in the constructor. GreaselionRule rule_copy(*rule); - base::PostTaskAndReplyWithResult( - task_runner_.get(), FROM_HERE, + task_runner_->PostTaskAndReplyWithResult( + FROM_HERE, base::BindOnce(&ConvertGreaselionRuleToExtensionOnTaskRunner, rule_copy, install_directory_), base::BindOnce(&GreaselionServiceImpl::PostConvert, diff --git a/components/ipfs/brave_ipfs_client_updater.cc b/components/ipfs/brave_ipfs_client_updater.cc index 57c11c3d7d1a..c39b371e7202 100644 --- a/components/ipfs/brave_ipfs_client_updater.cc +++ b/components/ipfs/brave_ipfs_client_updater.cc @@ -10,7 +10,6 @@ #include "base/files/file_util.h" #include "base/logging.h" #include "base/task/task_runner.h" -#include "base/task/task_runner_util.h" #include "base/task/thread_pool.h" #include "brave/components/ipfs/ipfs_utils.h" #include "components/component_updater/component_updater_service.h" @@ -111,9 +110,8 @@ void BraveIpfsClientUpdater::OnEvent(Events event, const std::string& id) { void BraveIpfsClientUpdater::OnComponentReady(const std::string& component_id, const base::FilePath& install_dir, const std::string& manifest) { - base::PostTaskAndReplyWithResult( - GetTaskRunner().get(), FROM_HERE, - base::BindOnce(&InitExecutablePath, install_dir), + GetTaskRunner()->PostTaskAndReplyWithResult( + FROM_HERE, base::BindOnce(&InitExecutablePath, install_dir), base::BindOnce(&BraveIpfsClientUpdater::SetExecutablePath, weak_ptr_factory_.GetWeakPtr())); } diff --git a/components/ipfs/import/ipfs_import_worker_base.cc b/components/ipfs/import/ipfs_import_worker_base.cc index 0515b5f83bbd..79f7100a486d 100644 --- a/components/ipfs/import/ipfs_import_worker_base.cc +++ b/components/ipfs/import/ipfs_import_worker_base.cc @@ -15,7 +15,6 @@ #include "base/strings/string_split.h" #include "base/strings/string_util.h" #include "base/strings/stringprintf.h" -#include "base/task/task_runner_util.h" #include "base/task/thread_pool.h" #include "base/time/time.h" #include "brave/components/ipfs/ipfs_constants.h" diff --git a/components/ipfs/import/ipfs_link_import_worker.cc b/components/ipfs/import/ipfs_link_import_worker.cc index bc3fdef512e3..771e43d7bf4c 100644 --- a/components/ipfs/import/ipfs_link_import_worker.cc +++ b/components/ipfs/import/ipfs_link_import_worker.cc @@ -7,7 +7,6 @@ #include -#include "base/task/task_runner_util.h" #include "base/task/thread_pool.h" #include "brave/components/ipfs/ipfs_network_utils.h" #include "content/public/browser/browser_thread.h" diff --git a/components/ipfs/ipfs_service.cc b/components/ipfs/ipfs_service.cc index 92fdbf8e6259..e7a38390b968 100644 --- a/components/ipfs/ipfs_service.cc +++ b/components/ipfs/ipfs_service.cc @@ -16,7 +16,6 @@ #include "base/strings/strcat.h" #include "base/strings/string_util.h" #include "base/strings/stringprintf.h" -#include "base/task/task_runner_util.h" #include "base/task/thread_pool.h" #include "brave/components/ipfs/blob_context_getter_factory.h" #include "brave/components/ipfs/buildflags/buildflags.h" @@ -667,8 +666,8 @@ void IpfsService::ShutdownDaemon(BoolCallback callback) { } void IpfsService::GetConfig(GetConfigCallback callback) { - base::PostTaskAndReplyWithResult( - file_task_runner_.get(), FROM_HERE, + file_task_runner_->PostTaskAndReplyWithResult( + FROM_HERE, base::BindOnce(&LoadConfigFileOnFileTaskRunner, GetConfigFilePath()), base::BindOnce(&IpfsService::OnConfigLoaded, weak_factory_.GetWeakPtr(), std::move(callback))); diff --git a/components/ipfs/resources/ipfs_interstitial.html b/components/ipfs/resources/ipfs_interstitial.html index d7569f0526f1..01b5ae6b69d9 100644 --- a/components/ipfs/resources/ipfs_interstitial.html +++ b/components/ipfs/resources/ipfs_interstitial.html @@ -6,7 +6,6 @@ - diff --git a/components/ipfs/resources/onboarding/ipfs_onboarding.html b/components/ipfs/resources/onboarding/ipfs_onboarding.html index abb3ff1b8b4b..7fcec2d6fdd4 100644 --- a/components/ipfs/resources/onboarding/ipfs_onboarding.html +++ b/components/ipfs/resources/onboarding/ipfs_onboarding.html @@ -4,7 +4,6 @@ $i18n{tabTitle} - diff --git a/components/management_strings.grdp b/components/management_strings.grdp index b5b9831f5c3b..14b288d566e2 100644 --- a/components/management_strings.grdp +++ b/components/management_strings.grdp @@ -60,20 +60,23 @@ - Your administrator can change your browser setup remotely. Activity on this device may also be managed outside of Brave. <a target="_blank" href="$1">Learn more</a> + Your administrator can change your browser setup remotely. Activity on this device may also be managed outside of Brave. <a target="_blank" href="$1" aria-label="$2">Learn more</a> - This browser is not managed by a company or other organization. Activity on this device may be managed outside of Brave. <a target="_blank" href="$1">Learn more</a> + This browser is not managed by a company or other organization. Activity on this device may be managed outside of Brave. <a target="_blank" href="$1" aria-label="$2">Learn more</a> - Your administrator can change your browser setup remotely. Activity on this device may also be managed outside of Brave. <a target="_blank" href="$1">Learn more</a> + Your administrator can change your browser setup remotely. Activity on this device may also be managed outside of Brave. <a target="_blank" href="$1" aria-label="$2">Learn more</a> - This browser is not managed by a company or other organization. Activity on this device may be managed outside of Brave. <a target="_blank" href="$1">Learn more</a> + This browser is not managed by a company or other organization. Activity on this device may be managed outside of Brave. <a target="_blank" href="$1" aria-label="$2">Learn more</a> + + Learn more about how your browser is managed + diff --git a/components/ntp_background_images/browser/ntp_background_images_component_installer.cc b/components/ntp_background_images/browser/ntp_background_images_component_installer.cc index ebe8454e45fb..b47ce32dfc4d 100644 --- a/components/ntp_background_images/browser/ntp_background_images_component_installer.cc +++ b/components/ntp_background_images/browser/ntp_background_images_component_installer.cc @@ -54,14 +54,14 @@ class NTPBackgroundImagesComponentInstallerPolicy bool SupportsGroupPolicyEnabledComponentUpdates() const override; bool RequiresNetworkEncryption() const override; update_client::CrxInstaller::Result OnCustomInstall( - const base::Value& manifest, + const base::Value::Dict& manifest, const base::FilePath& install_dir) override; void OnCustomUninstall() override; - bool VerifyInstallation(const base::Value& manifest, + bool VerifyInstallation(const base::Value::Dict& manifest, const base::FilePath& install_dir) const override; void ComponentReady(const base::Version& version, const base::FilePath& path, - base::Value manifest) override; + base::Value::Dict manifest) override; base::FilePath GetRelativeInstallDir() const override; void GetHash(std::vector* hash) const override; std::string GetName() const override; @@ -104,7 +104,7 @@ bool NTPBackgroundImagesComponentInstallerPolicy:: update_client::CrxInstaller::Result NTPBackgroundImagesComponentInstallerPolicy::OnCustomInstall( - const base::Value& manifest, + const base::Value::Dict& manifest, const base::FilePath& install_dir) { return update_client::CrxInstaller::Result(0); } @@ -114,12 +114,12 @@ void NTPBackgroundImagesComponentInstallerPolicy::OnCustomUninstall() {} void NTPBackgroundImagesComponentInstallerPolicy::ComponentReady( const base::Version& version, const base::FilePath& path, - base::Value manifest) { + base::Value::Dict manifest) { ready_callback_.Run(path); } bool NTPBackgroundImagesComponentInstallerPolicy::VerifyInstallation( - const base::Value& manifest, + const base::Value::Dict& manifest, const base::FilePath& install_dir) const { return true; } diff --git a/components/ntp_background_images/browser/ntp_background_images_service.cc b/components/ntp_background_images/browser/ntp_background_images_service.cc index ac2eafadf365..0784b7867795 100644 --- a/components/ntp_background_images/browser/ntp_background_images_service.cc +++ b/components/ntp_background_images/browser/ntp_background_images_service.cc @@ -16,7 +16,6 @@ #include "base/json/json_reader.h" #include "base/path_service.h" #include "base/strings/stringprintf.h" -#include "base/task/task_runner_util.h" #include "base/task/thread_pool.h" #include "brave/components/brave_component_updater/browser/brave_on_demand_updater.h" #include "brave/components/brave_referrals/browser/brave_referrals_service.h" diff --git a/components/omnibox_pedal_ui_strings.grdp b/components/omnibox_pedal_ui_strings.grdp index f716c6c7a93a..65fb64a3fbd5 100644 --- a/components/omnibox_pedal_ui_strings.grdp +++ b/components/omnibox_pedal_ui_strings.grdp @@ -464,12 +464,98 @@ Set Brave as default browser - Set Brave as the system's default browser in iOS settings + Set Brave as the system's default browser - $1The Chromium Projects http://www.chromium.org bookmark, Press tab then Enter to set Brave as the system's default browser in iOS settings + $1The Chromium Projects http://www.chromium.org bookmark, Press tab then Enter to set Brave as the system's default browser + Set Brave as default browser button, press Enter to set Brave as the system's default browser + + + + + + Run Brave Safety Check + + + + Open Private tab + + + + Open a new Private tab to browse privately + + + + $1The Chromium Projects http://www.chromium.org bookmark, press Tab then Enter to open a new Private tab to browse privately + + + + Open Private tab button, press Enter to open a new Private tab to browse privately + + + + + + + Clear Browsing Data + + + + Set Brave as Default Browser + + + + Set Brave as the system's default browser in iOS settings + + + + $1The Chromium Projects http://www.chromium.org bookmark, Press tab then Enter to set Brave as the system's default browser in iOS settings + + + Set Brave as default browser button, press Enter to set Brave as the system's default browser in iOS settings + + + + Manage Payment Methods + + + + Open Private Tab + + + + Run Brave Safety Check + + + + Manage Settings + + + + View Your Brave History + + + + Play Brave Dino Game + + + + + Open a new Private tab to browse privately + + + + Manage Passwords + diff --git a/components/omnibox_pedal_ui_strings_override.grdp b/components/omnibox_pedal_ui_strings_override.grdp index 3622ba20c9b0..7c9bd0eeb7ad 100644 --- a/components/omnibox_pedal_ui_strings_override.grdp +++ b/components/omnibox_pedal_ui_strings_override.grdp @@ -30,4 +30,23 @@ Close Private windows button, press Enter to close all Private windows that are currently open + + Open Private tab + + + Open a new Private tab to browse privately + + + $1The Chromium Projects http://www.chromium.org bookmark, press Tab then Enter to open a new Private tab to browse privately + + + Open Private tab button, press Enter to open a new Private tab to browse privately + + + + Open Private Tab + + + Open a new Private tab to browse privately + diff --git a/components/omnibox_strings.grdp b/components/omnibox_strings.grdp index 22c4a06e9175..903580f056b5 100644 --- a/components/omnibox_strings.grdp +++ b/components/omnibox_strings.grdp @@ -5,82 +5,6 @@ referencing .grdp file or translation console pipeline breaks. --> - - - - Run Brave Safety Check - - - - Open Private tab - - - - Open a new Private tab to browse privately - - - - $1The Chromium Projects http://www.chromium.org bookmark, press Tab then Enter to open a new Private tab to browse privately - - - - Open Private tab button, press Enter to open a new Private tab to browse privately - - - - - - Clear Browsing Data - - - - Set Brave as Default Browser - - - - Manage Payment Methods - - - - Open Private Tab - - - - Run Brave Safety Check - - - - Manage Settings - - - - View Your Brave History - - - - Play Brave Dino Game - - - - - Open a new Private tab to browse privately - - - - - Manage Passwords - - $1Brave Search diff --git a/components/omnibox_strings_override.grdp b/components/omnibox_strings_override.grdp index d6d5978b7757..30391569ac4b 100644 --- a/components/omnibox_strings_override.grdp +++ b/components/omnibox_strings_override.grdp @@ -2,26 +2,6 @@ - - Open Private tab - - - Open a new Private tab to browse privately - - - $1The Chromium Projects http://www.chromium.org bookmark, press Tab then Enter to open a new Private tab to browse privately - - - Open Private tab button, press Enter to open a new Private tab to browse privately - - - - Open Private Tab - - - Open a new Private tab to browse privately - - diff --git a/components/page_info_strings.grdp b/components/page_info_strings.grdp index 34e815e5d08c..8b55d49b818d 100644 --- a/components/page_info_strings.grdp +++ b/components/page_info_strings.grdp @@ -65,29 +65,6 @@ Attackers sometimes mimic sites by making hard-to-see changes to the web address. - - - Take a moment to consider accuracy - - - Learn more - - - Ignore - - - Don't show again - - - Who’s behind this information? - - - What evidence supports it? - - - What do other sources say? - - You're viewing a local or shared file diff --git a/components/password_manager_strings.grdp b/components/password_manager_strings.grdp index a1a778c6bddc..b2a2b882a9db 100644 --- a/components/password_manager_strings.grdp +++ b/components/password_manager_strings.grdp @@ -11,15 +11,9 @@ Check passwords - - Change automatically - Change your password - - Change your password now - Check your passwords @@ -32,15 +26,9 @@ Brave found the password you just used in a data breach. We recommend changing this password now. - - Brave found the password you just used in a data breach. Your Brave Assistant can change your password automatically. - Brave found the password you just used in a data breach. To secure your accounts, we recommend changing it now and then checking your saved passwords. - - The password you just used was found in a data breach. Your Brave Assistant can change your password automatically. - The password you just used was found in a data breach. To secure your accounts, Brave Password Manager recommends checking your saved passwords. @@ -163,22 +151,22 @@ fill your password on $1google.com - Protect passwords with TouchID + Protect passwords with your screen lock - If you share this device with others, you can turn on TouchID to verify it's you whenever you use a saved password + If you share this device with others, you can use your screen lock to verify it's you whenever you use a saved password - turn on TouchID for filling passwords + use your screen lock for filling passwords - turn off TouchID for filling passwords + stop using your screen lock for filling passwords - TouchID is on for filling passwords + You're using your screen lock for filling passwords - You can turn TouchID on or off in $1Settings + You can change whether you use your screen lock for filling passwords in $1Settings diff --git a/components/payments_strings.grdp b/components/payments_strings.grdp index cecc3219c42f..e7e93fbbd417 100644 --- a/components/payments_strings.grdp +++ b/components/payments_strings.grdp @@ -572,6 +572,9 @@ Back + + Close + Edit diff --git a/components/pdf_strings.grdp b/components/pdf_strings.grdp index 17e2845daf50..4e7ab838de4c 100644 --- a/components/pdf_strings.grdp +++ b/components/pdf_strings.grdp @@ -117,6 +117,18 @@ Rotate counterclockwise + + 0 degrees + + + 90 degrees + + + 180 degrees + + + 270 degrees + Download diff --git a/components/permissions/contexts/brave_wallet_permission_context.cc b/components/permissions/contexts/brave_wallet_permission_context.cc index d3f1aed048d8..563470fb9187 100644 --- a/components/permissions/contexts/brave_wallet_permission_context.cc +++ b/components/permissions/contexts/brave_wallet_permission_context.cc @@ -85,7 +85,8 @@ void BraveWalletPermissionContext::RequestPermission( url::Origin::Create(web_contents->GetLastCommittedURL()).GetURL(); NotifyPermissionSet(id, requesting_origin.GetURL(), embedding_origin, std::move(callback), /*persist=*/false, - CONTENT_SETTING_BLOCK, /*is_one_time=*/false); + CONTENT_SETTING_BLOCK, /*is_one_time=*/false, + /*is_final_decision=*/true); return; } if (is_new_id) { diff --git a/components/permissions_strings.grdp b/components/permissions_strings.grdp index f09904f31182..ea59c2c5a6d1 100644 --- a/components/permissions_strings.grdp +++ b/components/permissions_strings.grdp @@ -85,9 +85,6 @@ $1https://www.youtube.com wants to play protected content. Your device’s identity will be verified by Brave. - - $1https://www.youtube.com wants to play protected content. Your device's identity will be verified by Brave and may be accessed by this site. - Know your location diff --git a/components/playlist/browser/media_detector_component_installer.cc b/components/playlist/browser/media_detector_component_installer.cc index 867a2d89d719..4402fde4cb29 100644 --- a/components/playlist/browser/media_detector_component_installer.cc +++ b/components/playlist/browser/media_detector_component_installer.cc @@ -41,14 +41,14 @@ class MediaDetectorComponentInstallerPolicy bool SupportsGroupPolicyEnabledComponentUpdates() const override; bool RequiresNetworkEncryption() const override; update_client::CrxInstaller::Result OnCustomInstall( - const base::Value& manifest, + const base::Value::Dict& manifest, const base::FilePath& install_dir) override; void OnCustomUninstall() override; - bool VerifyInstallation(const base::Value& manifest, + bool VerifyInstallation(const base::Value::Dict& manifest, const base::FilePath& install_dir) const override; void ComponentReady(const base::Version& version, const base::FilePath& path, - base::Value manifest) override; + base::Value::Dict manifest) override; base::FilePath GetRelativeInstallDir() const override; void GetHash(std::vector* hash) const override; std::string GetName() const override; @@ -97,7 +97,7 @@ bool MediaDetectorComponentInstallerPolicy::RequiresNetworkEncryption() const { update_client::CrxInstaller::Result MediaDetectorComponentInstallerPolicy::OnCustomInstall( - const base::Value& manifest, + const base::Value::Dict& manifest, const base::FilePath& install_dir) { return update_client::CrxInstaller::Result(0); } @@ -107,12 +107,12 @@ void MediaDetectorComponentInstallerPolicy::OnCustomUninstall() {} void MediaDetectorComponentInstallerPolicy::ComponentReady( const base::Version& version, const base::FilePath& path, - base::Value manifest) { + base::Value::Dict manifest) { ready_callback_.Run(path); } bool MediaDetectorComponentInstallerPolicy::VerifyInstallation( - const base::Value& manifest, + const base::Value::Dict& manifest, const base::FilePath& install_dir) const { return true; } diff --git a/components/playlist/browser/playlist_data_source.cc b/components/playlist/browser/playlist_data_source.cc index a29866749cb9..4e6a1e34dd18 100644 --- a/components/playlist/browser/playlist_data_source.cc +++ b/components/playlist/browser/playlist_data_source.cc @@ -14,7 +14,6 @@ #include "base/location.h" #include "base/memory/ref_counted_memory.h" #include "base/memory/scoped_refptr.h" -#include "base/task/task_runner_util.h" #include "base/task/thread_pool.h" #include "base/task/thread_pool/thread_pool_instance.h" #include "brave/components/playlist/browser/playlist_service.h" diff --git a/components/playlist/browser/playlist_media_file_downloader.cc b/components/playlist/browser/playlist_media_file_downloader.cc index 3b39eec17e90..553ddd174f6a 100644 --- a/components/playlist/browser/playlist_media_file_downloader.cc +++ b/components/playlist/browser/playlist_media_file_downloader.cc @@ -15,7 +15,6 @@ #include "base/json/json_writer.h" #include "base/strings/string_number_conversions.h" #include "base/strings/utf_string_conversions.h" -#include "base/task/task_runner_util.h" #include "base/task/thread_pool.h" #include "brave/components/playlist/browser/playlist_constants.h" #include "brave/components/playlist/browser/playlist_types.h" diff --git a/components/policy_strings.grdp b/components/policy_strings.grdp index 97bb0a28adcc..83b5db0e6add 100644 --- a/components/policy_strings.grdp +++ b/components/policy_strings.grdp @@ -211,6 +211,9 @@ Each urls string entry must contain between 1 to 2 URLs. + + This configuration is marked as installable, but no image is provided for this archetecture, so it cannot be installed. + Ignored because the policy is not set by a cloud source. @@ -253,6 +256,18 @@ One or more of the DnsOverHttpsTemplates server template URIs is invalid and will not be used. + + The DnsOverHttpsSalt value is not relevant, and will not be used, unless the DnsOverHttpsTemplateWithIdentifiers policy is set. + + + The DnsOverHttpsTemplateWithIdentifiers policy is not used unless the DnsOverHttpsSalt policy is set. + + + The DnsOverHttpsSalt value is invalid and will not be used. + + + The DnsOverHttpsSalt value does not meet the size requirements. + The DnsOverHttpsTemplates value is not relevant, and will not be used, unless the DnsOverHttpsMode policy is set to either 'automatic' or 'secure'. @@ -312,6 +327,9 @@ Ignored because $1CloudReportingEnabled is not set to $2Enabled. + + Ignored because $1CloudReportingEnabled is not set. + Ignored because user is not affiliated to the machine management or the machine is not managed. @@ -399,6 +417,9 @@ Additional details: Brave Update + + Managed user or device has no policy loaded. + Enrollment domain: @@ -839,6 +860,11 @@ Additional details: =1 {Copy confidential file?} other {Copy confidential files?}} + + {0, plural, + =1 {Open confidential file?} + other {Open confidential files?}} + {0, plural, =1 {Administrator policy doesn’t recommend downloading this file to $1External storage} @@ -864,6 +890,11 @@ Additional details: =1 {Administrator policy doesn’t recommend copying this file to $1External storage} other {Administrator policy doesn’t recommend copying these files to $1External storage}} + + {0, plural, + =1 {Administrator policy doesn’t recommend opening this file in $1External storage} + other {Administrator policy doesn’t recommend opening these files in $1External storage}} + Download anyway @@ -879,6 +910,9 @@ Additional details: Copy anyway + + Open anyway + Removable storage @@ -902,6 +936,14 @@ Additional details: =1 {Uploading this file is blocked by administrator policy} other {Uploading # files is blocked by administrator policy}} + + Blocked open + + + {0, plural, + =1 {Opening this file is blocked by administrator policy} + other {Opening # files is blocked by administrator policy}} + Device will restart very soon diff --git a/components/print_media_strings.grdp b/components/print_media_strings.grdp index a7d7882f8af7..ddcc0c7565cf 100644 --- a/components/print_media_strings.grdp +++ b/components/print_media_strings.grdp @@ -2,8 +2,8 @@ - - E1 + + 28 x 40 in 2A0 diff --git a/components/privacy_sandbox/brave_privacy_sandbox_settings.cc b/components/privacy_sandbox/brave_privacy_sandbox_settings.cc index 3f5924ed22be..da13bd1a83ba 100644 --- a/components/privacy_sandbox/brave_privacy_sandbox_settings.cc +++ b/components/privacy_sandbox/brave_privacy_sandbox_settings.cc @@ -17,13 +17,11 @@ BravePrivacySandboxSettings::BravePrivacySandboxSettings( std::unique_ptr delegate, HostContentSettingsMap* host_content_settings_map, content_settings::CookieSettings* cookie_settings, - PrefService* pref_service, - bool incognito_profile) + PrefService* pref_service) : privacy_sandbox::PrivacySandboxSettings(std::move(delegate), host_content_settings_map, cookie_settings, - pref_service, - incognito_profile), + pref_service), pref_service_(pref_service) { // Register observers for the Privacy Sandbox. user_prefs_registrar_.Init(pref_service_); diff --git a/components/privacy_sandbox/brave_privacy_sandbox_settings.h b/components/privacy_sandbox/brave_privacy_sandbox_settings.h index 86db6fbd2565..8dfab9f1e57f 100644 --- a/components/privacy_sandbox/brave_privacy_sandbox_settings.h +++ b/components/privacy_sandbox/brave_privacy_sandbox_settings.h @@ -25,8 +25,7 @@ class BravePrivacySandboxSettings BravePrivacySandboxSettings(std::unique_ptr delegate, HostContentSettingsMap* host_content_settings_map, content_settings::CookieSettings* cookie_settings, - PrefService* pref_service, - bool incognito_profile); + PrefService* pref_service); ~BravePrivacySandboxSettings() override; private: diff --git a/components/search_engines/brave_prepopulated_engines.cc b/components/search_engines/brave_prepopulated_engines.cc index 0f28122c050d..00cf7d941838 100644 --- a/components/search_engines/brave_prepopulated_engines.cc +++ b/components/search_engines/brave_prepopulated_engines.cc @@ -19,6 +19,21 @@ const int kBraveFirstTrackedDataVersion = 6; namespace { +PrepopulatedEngine MakeBravePrepopulatedEngine(const wchar_t* const name, + const wchar_t* const keyword, + const char* const favicon_url, + const char* const search_url, + const char* const encoding, + const char* const suggest_url, + SearchEngineType type, + const int id) { + return {name, keyword, favicon_url, search_url, encoding, + suggest_url, nullptr, nullptr, nullptr, nullptr, + nullptr, nullptr, nullptr, nullptr, nullptr, + nullptr, nullptr, nullptr, 0, nullptr, + 0, type, nullptr, nullptr, id}; +} + // Maps BravePrepopulatedEngineID to Chromium's PrepopulatedEngine. const std::map brave_engines_map = { @@ -60,6 +75,8 @@ PrepopulatedEngine ModifyEngineParams(const PrepopulatedEngine& engine, engine.side_search_param, engine.side_image_search_param, engine.image_search_branding_label, + engine.search_intent_params, + engine.search_intent_params_size, engine.alternate_urls, engine.alternate_urls_size, engine.type, @@ -70,31 +87,15 @@ PrepopulatedEngine ModifyEngineParams(const PrepopulatedEngine& engine, } // namespace -const PrepopulatedEngine duckduckgo = { +const PrepopulatedEngine duckduckgo = MakeBravePrepopulatedEngine( L"DuckDuckGo", L":d", "https://duckduckgo.com/favicon.ico", "https://duckduckgo.com/?q={searchTerms}&t=brave", "UTF-8", "https://ac.duckduckgo.com/ac/?q={searchTerms}&type=list", - nullptr, - nullptr, - nullptr, - nullptr, - nullptr, - nullptr, - nullptr, - nullptr, - nullptr, - nullptr, - nullptr, - nullptr, - 0, SEARCH_ENGINE_DUCKDUCKGO, - nullptr, - nullptr, - PREPOPULATED_ENGINE_ID_DUCKDUCKGO, -}; + PREPOPULATED_ENGINE_ID_DUCKDUCKGO); const PrepopulatedEngine duckduckgo_de = ModifyEngineParams(duckduckgo, @@ -115,31 +116,15 @@ const PrepopulatedEngine duckduckgo_au_nz_ie = PREPOPULATED_ENGINE_ID_DUCKDUCKGO_AU_NZ_IE); #if BUILDFLAG(IS_ANDROID) -const PrepopulatedEngine duckduckgo_lite = { +const PrepopulatedEngine duckduckgo_lite = MakeBravePrepopulatedEngine( L"DuckDuckGo Lite", L":dl", "https://duckduckgo.com/favicon.ico", "https://duckduckgo.com/lite/?q={searchTerms}&t=brave", "UTF-8", "https://ac.duckduckgo.com/ac/?q={searchTerms}&type=list", - nullptr, - nullptr, - nullptr, - nullptr, - nullptr, - nullptr, - nullptr, - nullptr, - nullptr, - nullptr, - nullptr, - nullptr, - 0, SEARCH_ENGINE_DUCKDUCKGO, - nullptr, - nullptr, - PREPOPULATED_ENGINE_ID_DUCKDUCKGO_LITE, -}; + PREPOPULATED_ENGINE_ID_DUCKDUCKGO_LITE); #endif // BUILDFLAG(IS_ANDROID) const PrepopulatedEngine brave_ecosia = @@ -157,33 +142,17 @@ const PrepopulatedEngine brave_ecosia = nullptr, PREPOPULATED_ENGINE_ID_ECOSIA); -const PrepopulatedEngine qwant = { +const PrepopulatedEngine qwant = MakeBravePrepopulatedEngine( L"Qwant", L":q", "https://www.qwant.com/favicon.ico", "https://www.qwant.com/?q={searchTerms}&client=brz-brave", "UTF-8", "https://api.qwant.com/api/suggest/?q={searchTerms}&client=opensearch", - nullptr, - nullptr, - nullptr, - nullptr, - nullptr, - nullptr, - nullptr, - nullptr, - nullptr, - nullptr, - nullptr, - nullptr, - 0, SEARCH_ENGINE_QWANT, - nullptr, - nullptr, - PREPOPULATED_ENGINE_ID_QWANT, -}; + PREPOPULATED_ENGINE_ID_QWANT); -const PrepopulatedEngine startpage = { +const PrepopulatedEngine startpage = MakeBravePrepopulatedEngine( L"Startpage", L":sp", "https://www.startpage.com/favicon.ico", @@ -192,24 +161,8 @@ const PrepopulatedEngine startpage = { "UTF-8", "https://www.startpage.com/cgi-bin/" "csuggest?query={searchTerms}&limit=10&format=json", - nullptr, - nullptr, - nullptr, - nullptr, - nullptr, - nullptr, - nullptr, - nullptr, - nullptr, - nullptr, - nullptr, - nullptr, - 0, SEARCH_ENGINE_OTHER, - nullptr, - nullptr, - PREPOPULATED_ENGINE_ID_STARTPAGE, -}; + PREPOPULATED_ENGINE_ID_STARTPAGE); const PrepopulatedEngine brave_yandex = ModifyEngineParams(yandex_com, @@ -227,7 +180,7 @@ const PrepopulatedEngine brave_yandex = nullptr, PREPOPULATED_ENGINE_ID_YANDEX); -const PrepopulatedEngine brave_search = { +const PrepopulatedEngine brave_search = MakeBravePrepopulatedEngine( L"Brave", L":br", "https://cdn.search.brave.com/serp/favicon.ico", @@ -239,24 +192,8 @@ const PrepopulatedEngine brave_search = { #endif "UTF-8", "https://search.brave.com/api/suggest?q={searchTerms}", - nullptr, - nullptr, - nullptr, - nullptr, - nullptr, - nullptr, - nullptr, - nullptr, - nullptr, - nullptr, - nullptr, - nullptr, - 0, SEARCH_ENGINE_OTHER, - nullptr, - nullptr, - PREPOPULATED_ENGINE_ID_BRAVE, -}; + PREPOPULATED_ENGINE_ID_BRAVE); const PrepopulatedEngine brave_search_tor = ModifyEngineParams( brave_search, diff --git a/components/speedreader/speedreader_rewriter_service.cc b/components/speedreader/speedreader_rewriter_service.cc index d8d110685cb6..a7d63f3361d1 100644 --- a/components/speedreader/speedreader_rewriter_service.cc +++ b/components/speedreader/speedreader_rewriter_service.cc @@ -19,7 +19,6 @@ #include "base/strings/stringprintf.h" #include "base/task/bind_post_task.h" #include "base/task/sequenced_task_runner.h" -#include "base/task/task_runner_util.h" #include "base/task/thread_pool.h" #include "brave/components/speedreader/common/features.h" #include "brave/components/speedreader/common/url_readable_hints.h" @@ -116,8 +115,8 @@ SpeedreaderRewriterService::SpeedreaderRewriterService() // Manually trigger the initial stylesheet load OnFileChanged(stylesheet_override_path_, false); - base::PostTaskAndReplyWithResult( - watch_task_runner_.get(), FROM_HERE, + watch_task_runner_->PostTaskAndReplyWithResult( + FROM_HERE, base::BindOnce( &CreateAndStartFilePathWatcher, stylesheet_override_path_, base::BindPostTask( diff --git a/components/tor/brave_tor_client_updater.cc b/components/tor/brave_tor_client_updater.cc index 752b30b1c567..f9e112bb701d 100644 --- a/components/tor/brave_tor_client_updater.cc +++ b/components/tor/brave_tor_client_updater.cc @@ -15,7 +15,6 @@ #include "base/files/file_util.h" #include "base/logging.h" #include "base/task/task_runner.h" -#include "base/task/task_runner_util.h" #include "base/task/thread_pool.h" #include "brave/components/tor/pref_names.h" #include "brave/components/tor/tor_switches.h" @@ -190,9 +189,8 @@ base::FilePath BraveTorClientUpdater::GetTorWatchPath() const { void BraveTorClientUpdater::OnComponentReady(const std::string& component_id, const base::FilePath& install_dir, const std::string& manifest) { - base::PostTaskAndReplyWithResult( - GetTaskRunner().get(), FROM_HERE, - base::BindOnce(&InitTorPath, install_dir), + GetTaskRunner()->PostTaskAndReplyWithResult( + FROM_HERE, base::BindOnce(&InitTorPath, install_dir), base::BindOnce(&BraveTorClientUpdater::SetTorPath, weak_ptr_factory_.GetWeakPtr())); } diff --git a/components/translate_strings.grdp b/components/translate_strings.grdp index 3bff66d7495c..61920d45c783 100644 --- a/components/translate_strings.grdp +++ b/components/translate_strings.grdp @@ -142,9 +142,18 @@ Undo - - - Detected Language - + + + + Detected Language + + + + + + Detected Language + + + diff --git a/components/url_sanitizer/browser/url_sanitizer_service.cc b/components/url_sanitizer/browser/url_sanitizer_service.cc index 15b37abaf9ad..25566d375620 100644 --- a/components/url_sanitizer/browser/url_sanitizer_service.cc +++ b/components/url_sanitizer/browser/url_sanitizer_service.cc @@ -12,7 +12,6 @@ #include "base/logging.h" #include "base/strings/string_split.h" #include "base/strings/string_util.h" -#include "base/task/task_runner_util.h" #include "base/task/thread_pool.h" #include "base/values.h" #include "extensions/common/url_pattern.h" diff --git a/ios/browser/api/ads/brave_ads.mm b/ios/browser/api/ads/brave_ads.mm index 95beba651760..189ec4f45fa9 100644 --- a/ios/browser/api/ads/brave_ads.mm +++ b/ios/browser/api/ads/brave_ads.mm @@ -18,7 +18,6 @@ #include "base/logging.h" #include "base/strings/sys_string_conversions.h" #include "base/task/sequenced_task_runner.h" -#include "base/task/task_runner_util.h" #include "base/task/thread_pool.h" #include "base/time/time.h" #include "base/values.h" @@ -1329,8 +1328,8 @@ - (void)setAutoDetectedAdsSubdivisionTargetingCode: - (void)runDBTransaction:(ads::mojom::DBTransactionInfoPtr)transaction callback:(ads::RunDBTransactionCallback)completion { __weak BraveAds* weakSelf = self; - base::PostTaskAndReplyWithResult( - databaseQueue.get(), FROM_HERE, + databaseQueue->PostTaskAndReplyWithResult( + FROM_HERE, base::BindOnce(&RunDBTransactionOnTaskRunner, std::move(transaction), adsDatabase), base::BindOnce( diff --git a/ios/browser/api/certificate/brave_certificate.mm b/ios/browser/api/certificate/brave_certificate.mm index d635fa926669..9a399fe0b313 100644 --- a/ios/browser/api/certificate/brave_certificate.mm +++ b/ios/browser/api/certificate/brave_certificate.mm @@ -5,7 +5,6 @@ #include "brave/ios/browser/api/certificate/brave_certificate.h" #include "base/logging.h" -#include "base/memory/ref_counted.h" #include "base/strings/string_number_conversions.h" #include "base/strings/string_piece.h" #include "base/strings/sys_string_conversions.h" @@ -37,7 +36,7 @@ @interface BraveCertificateModel () { base::ScopedCFTypeRef cert_data_; - scoped_refptr extended_cert_; + std::shared_ptr extended_cert_; base::ScopedCFTypeRef public_key_; } @end @@ -63,8 +62,8 @@ - (nullable instancetype)initWithCertificate:(SecCertificateRef)certificate { } net::CertErrors errors; - extended_cert_ = - scoped_refptr(net::ParsedCertificate::Create( + extended_cert_ = std::shared_ptr( + net::ParsedCertificate::Create( std::move(cert_buffer), net::x509_util::DefaultParseCertificateOptions() /* {} */, &errors)); diff --git a/ios/browser/api/certificate/models/brave_certificate_model+private.h b/ios/browser/api/certificate/models/brave_certificate_model+private.h index 5711db47070f..9d584b81d797 100644 --- a/ios/browser/api/certificate/models/brave_certificate_model+private.h +++ b/ios/browser/api/certificate/models/brave_certificate_model+private.h @@ -33,7 +33,7 @@ NS_ASSUME_NONNULL_BEGIN @end @interface BraveCertificatePublicKeyInfo () -- (instancetype)initWithCertificate:(net::ParsedCertificate*)certificate +- (instancetype)initWithCertificate:(const net::ParsedCertificate*)certificate withKey:(SecKeyRef)key; @end diff --git a/ios/browser/api/favicon/favicon_driver.mm b/ios/browser/api/favicon/favicon_driver.mm index f028cff513ec..433d4ea05b0f 100644 --- a/ios/browser/api/favicon/favicon_driver.mm +++ b/ios/browser/api/favicon/favicon_driver.mm @@ -146,8 +146,8 @@ - (void)webView:(WKWebView*)webView const GURL message_request_url = message.request_url().value(); std::vector urls; - if (!ExtractFaviconURL(message.body()->GetListDeprecated(), - message_request_url, &urls)) { + if (!ExtractFaviconURL(message.body()->GetList(), message_request_url, + &urls)) { return; } diff --git a/ios/browser/api/ledger/brave_ledger.mm b/ios/browser/api/ledger/brave_ledger.mm index 70926378ce4f..5635a0f3a45a 100644 --- a/ios/browser/api/ledger/brave_ledger.mm +++ b/ios/browser/api/ledger/brave_ledger.mm @@ -14,7 +14,6 @@ #include "base/logging.h" #include "base/strings/sys_string_conversions.h" #include "base/task/sequenced_task_runner.h" -#include "base/task/task_runner_util.h" #include "base/task/thread_pool.h" #include "base/threading/sequence_bound.h" #include "base/time/time.h" @@ -168,6 +167,10 @@ - (instancetype)initWithStateStoragePath:(NSString*)path { [self savePrefs]; } + if (!self.prefs[@"parameters.wallet_provider_regions"]) { + self.prefs[@"parameters.wallet_provider_regions"] = @{}; + } + [self handleFlags:brave_rewards::RewardsFlags::ForCurrentProcess()]; databaseQueue = base::ThreadPool::CreateSequencedTaskRunner( diff --git a/ios/browser/api/net/certificate_utility.mm b/ios/browser/api/net/certificate_utility.mm index 083fcbdcf60e..e87921faacda 100644 --- a/ios/browser/api/net/certificate_utility.mm +++ b/ios/browser/api/net/certificate_utility.mm @@ -104,10 +104,12 @@ + (NSData*)hashCertificateSPKI:(SecCertificateRef)certificate { } net::CertErrors errors; - scoped_refptr extended_cert = - scoped_refptr(net::ParsedCertificate::Create( - std::move(cert_buffer), - net::x509_util::DefaultParseCertificateOptions() /* {} */, &errors)); + std::shared_ptr extended_cert = + std::shared_ptr( + net::ParsedCertificate::Create( + std::move(cert_buffer), + net::x509_util::DefaultParseCertificateOptions() /* {} */, + &errors)); if (!extended_cert) { VLOG(1) << errors.ToDebugString(); diff --git a/ios/browser/api/opentabs/brave_opentabs_api.h b/ios/browser/api/opentabs/brave_opentabs_api.h index 8e7ff872e8cd..be3e83c86233 100644 --- a/ios/browser/api/opentabs/brave_opentabs_api.h +++ b/ios/browser/api/opentabs/brave_opentabs_api.h @@ -10,16 +10,12 @@ NS_ASSUME_NONNULL_BEGIN -typedef NSInteger SyncDeviceType NS_TYPED_ENUM; +typedef NSInteger SyncDeviceFormFactor NS_TYPED_ENUM; -OBJC_EXPORT SyncDeviceType const SyncDeviceTypeUnset; -OBJC_EXPORT SyncDeviceType const SyncDeviceTypeWin; -OBJC_EXPORT SyncDeviceType const SyncDeviceTypeMac; -OBJC_EXPORT SyncDeviceType const SyncDeviceTypeLinux; -OBJC_EXPORT SyncDeviceType const SyncDeviceTypeCros; -OBJC_EXPORT SyncDeviceType const SyncDeviceTypeOther; -OBJC_EXPORT SyncDeviceType const SyncDeviceTypePhone; -OBJC_EXPORT SyncDeviceType const SyncDeviceTypeTablet; +OBJC_EXPORT SyncDeviceFormFactor const SyncDeviceFormFactorUnknown; +OBJC_EXPORT SyncDeviceFormFactor const SyncDeviceFormFactorDesktop; +OBJC_EXPORT SyncDeviceFormFactor const SyncDeviceFormFactorPhone; +OBJC_EXPORT SyncDeviceFormFactor const SyncDeviceFormFactorTablet; @protocol OpenTabsSessionStateObserver; @protocol OpenTabsSessionStateListener; @@ -55,20 +51,19 @@ OBJC_EXPORT @property(nonatomic, nullable, copy) NSString* name; @property(nonatomic, copy) NSString* sessionTag; @property(nonatomic, nullable, copy) NSDate* modifiedTime; -@property(nonatomic) SyncDeviceType deviceType; +@property(nonatomic) SyncDeviceFormFactor deviceFormFactor; @property(nonatomic, strong) NSArray* tabs; /// Open Tab Constructor used with OpenTabSessionAPI /// @param name - This is the name of the device for the distant session /// @param sessionTag - Uniquely identifies the distant session /// @param modifiedTime - The time last distant session is modified -/// @param deviceType - The type of synced device for the distant session +/// @param deviceFormFactor - The type of synced device for the distant session /// @param tabs - The open tabs synced with the particular session - (instancetype)initWithName:(nullable NSString*)name sessionTag:(NSString*)sessionTag dateCreated:(nullable NSDate*)modifiedTime - deviceType:(SyncDeviceType)deviceType - tabs:(NSArray*)tabs; + deviceFormFactor:(SyncDeviceFormFactor)deviceFormFactor; @end NS_SWIFT_NAME(BraveOpenTabsAPI) diff --git a/ios/browser/api/opentabs/brave_opentabs_api.mm b/ios/browser/api/opentabs/brave_opentabs_api.mm index 6575a8ddf2ab..a2c08c6179e1 100644 --- a/ios/browser/api/opentabs/brave_opentabs_api.mm +++ b/ios/browser/api/opentabs/brave_opentabs_api.mm @@ -8,7 +8,9 @@ #include "brave/ios/browser/api/opentabs/opentabs_session_listener_ios.h" #include "base/strings/sys_string_conversions.h" +#include "base/strings/utf_string_conversions.h" #include "components/sync/driver/sync_service.h" +#include "components/sync_device_info/device_info.h" #include "components/sync_sessions/open_tabs_ui_delegate.h" #include "components/sync_sessions/session_sync_service.h" #include "ios/chrome/browser/ui/recent_tabs/synced_sessions.h" @@ -18,22 +20,14 @@ #error "This file requires ARC support." #endif -SyncDeviceType const SyncDeviceTypeUnset = static_cast( - sync_pb::SyncEnums::DeviceType::SyncEnums_DeviceType_TYPE_UNSET); -SyncDeviceType const SyncDeviceTypeWin = static_cast( - sync_pb::SyncEnums::DeviceType::SyncEnums_DeviceType_TYPE_WIN); -SyncDeviceType const SyncDeviceTypeMac = static_cast( - sync_pb::SyncEnums::DeviceType::SyncEnums_DeviceType_TYPE_MAC); -SyncDeviceType const SyncDeviceTypeLinux = static_cast( - sync_pb::SyncEnums::DeviceType::SyncEnums_DeviceType_TYPE_LINUX); -SyncDeviceType const SyncDeviceTypeCros = static_cast( - sync_pb::SyncEnums::DeviceType::SyncEnums_DeviceType_TYPE_CROS); -SyncDeviceType const SyncDeviceTypeOther = static_cast( - sync_pb::SyncEnums::DeviceType::SyncEnums_DeviceType_TYPE_OTHER); -SyncDeviceType const SyncDeviceTypePhone = static_cast( - sync_pb::SyncEnums::DeviceType::SyncEnums_DeviceType_TYPE_PHONE); -SyncDeviceType const SyncDeviceTypeTablet = static_cast( - sync_pb::SyncEnums::DeviceType::SyncEnums_DeviceType_TYPE_TABLET); +SyncDeviceFormFactor const SyncDeviceFormFactorUnknown = + static_cast(syncer::DeviceInfo::FormFactor::kUnknown); +SyncDeviceFormFactor const SyncDeviceFormFactorDesktop = + static_cast(syncer::DeviceInfo::FormFactor::kDesktop); +SyncDeviceFormFactor const SyncDeviceFormFactorPhone = + static_cast(syncer::DeviceInfo::FormFactor::kPhone); +SyncDeviceFormFactor const SyncDeviceFormFactorTablet = + static_cast(syncer::DeviceInfo::FormFactor::kTablet); #pragma mark - IOSOpenDistantTab @@ -84,14 +78,13 @@ @implementation IOSOpenDistantSession - (instancetype)initWithName:(nullable NSString*)name sessionTag:(NSString*)sessionTag dateCreated:(nullable NSDate*)modifiedTime - deviceType:(SyncDeviceType)deviceType - tabs:(NSArray*)tabs { + deviceFormFactor:(SyncDeviceFormFactor)deviceFormFactor { if ((self = [super init])) { self.name = name; self.sessionTag = sessionTag; self.modifiedTime = modifiedTime; - self.deviceType = deviceType; - self.tabs = tabs; + self.deviceFormFactor = deviceFormFactor; + self.tabs = [[NSMutableArray alloc] init]; } return self; @@ -102,11 +95,11 @@ - (id)copyWithZone:(NSZone*)zone { [[[self class] allocWithZone:zone] init]; if (openDistantSession) { - openDistantSession.name = self.name; - openDistantSession.sessionTag = self.sessionTag; - openDistantSession.modifiedTime = self.modifiedTime; - openDistantSession.deviceType = self.deviceType; - openDistantSession.tabs = self.tabs; + openDistantSession.name = [self.name copy]; + openDistantSession.sessionTag = [self.sessionTag copy]; + openDistantSession.modifiedTime = [self.modifiedTime copy]; + openDistantSession.deviceFormFactor = self.deviceFormFactor; + openDistantSession.tabs = [self.tabs copy]; } return openDistantSession; @@ -116,6 +109,41 @@ - (void)updateOpenDistantSessionModified:(NSDate*)modifiedTime { [self setModifiedTime:modifiedTime]; } +// Helper to extract the relevant content from a SessionTab and add it to a +// DistantSession. +- (void)addTab:(const sessions::SessionTab&)session_tab + sessionTag:(const std::string&)session_tag { + if (session_tab.navigations.size() > 0) { + // Retrieve tab index + int index = session_tab.current_navigation_index; + if (index < 0) { + index = 0; + } + + if (index > static_cast(session_tab.navigations.size()) - 1) { + index = session_tab.navigations.size() - 1; + } + + // Retrieve tab title and url + const sessions::SerializedNavigationEntry* navigation = + &session_tab.navigations[index]; + std::string tab_title = base::UTF16ToUTF8(navigation->title()); + GURL virtual_url = navigation->virtual_url(); + + if (tab_title.empty()) { + tab_title = navigation->virtual_url().spec(); + } + + // Store the tab + IOSOpenDistantTab* distant_tab = [[IOSOpenDistantTab alloc] + initWithURL:net::NSURLWithGURL(virtual_url) + title:base::SysUTF8ToNSString(tab_title) + tabId:session_tab.tab_id.id() + sessionTag:base::SysUTF8ToNSString(session_tag)]; + [(NSMutableArray*)_tabs addObject:distant_tab]; + } +} + @end #pragma mark - BraveOpenTabsAPI @@ -158,52 +186,54 @@ - (void)removeObserver:(id)observer { } - (NSArray*)getSyncedSessions { - // Getting SyncedSessions from SessionSyncService - auto syncedSessions = - std::make_unique(session_sync_service_); - - NSMutableArray* distantSessionList = - [[NSMutableArray alloc] init]; + // Taken from: ios/chrome/browser/ui/recent_tabs/synced_sessions.mm + // but modified to allow us to retrieve `device_type` via + // GetDeviceFormFactor() - // Traversing Sync Sessions to fetch list of Distant Sessions - for (size_t sessionIndex = 0; - sessionIndex < syncedSessions->GetSessionCount(); sessionIndex++) { - const synced_sessions::DistantSession* session = - syncedSessions->GetSession(sessionIndex); - - // Create a DistantTab List information for each Distant Session - NSArray* distantTabs = - [self onDistantTabResults:session->tabs]; - - IOSOpenDistantSession* distantSession = [[IOSOpenDistantSession alloc] - initWithName:base::SysUTF8ToNSString(session->name) - sessionTag:base::SysUTF8ToNSString(session->tag) - dateCreated:session->modified_time.ToNSDate() - deviceType:static_cast(session->device_type) - tabs:distantTabs]; - [distantSessionList addObject:distantSession]; - } - - return [distantSessionList copy]; -} - -- (NSArray*)onDistantTabResults: - (const std::vector>&) - distantTabList { - NSMutableArray* distantTabs = + NSMutableArray* sessions_list = [[NSMutableArray alloc] init]; - for (const auto& tab : distantTabList) { - IOSOpenDistantTab* distantTab = [[IOSOpenDistantTab alloc] - initWithURL:net::NSURLWithGURL(tab->virtual_url) - title:base::SysUTF16ToNSString(tab->title) - tabId:tab->tab_id.id() - sessionTag:base::SysUTF8ToNSString(tab->session_tag)]; - - [distantTabs addObject:distantTab]; + DCHECK(session_sync_service_); + // Reload Sync open tab sessions. + sync_sessions::OpenTabsUIDelegate* open_tabs_delegate = + session_sync_service_->GetOpenTabsUIDelegate(); + if (open_tabs_delegate) { + // Iterating through all remote sessions, then retrieving the tabs to + // display to the user. + std::vector sessions; + open_tabs_delegate->GetAllForeignSessions(&sessions); + + for (const auto* session : sessions) { + // Create a distant session + IOSOpenDistantSession* distant_session = [[IOSOpenDistantSession alloc] + initWithName:base::SysUTF8ToNSString(session->session_name) + sessionTag:base::SysUTF8ToNSString(session->session_tag) + dateCreated:session->modified_time.ToNSDate() + deviceFormFactor:static_cast( + session->GetDeviceFormFactor())]; + + // Add tabs to the distant session + std::vector open_tabs; + open_tabs_delegate->GetForeignSessionTabs(session->session_tag, + &open_tabs); + for (const sessions::SessionTab* session_tab : open_tabs) { + [distant_session addTab:*session_tab sessionTag:session->session_tag]; + } + + // Don't display sessions with no tabs. + if ([distant_session.tabs count] > 0) { + [sessions_list addObject:distant_session]; + } + } + + // Sort Sessions by Time + [sessions_list sortedArrayUsingComparator:^NSComparisonResult( + IOSOpenDistantSession* a, IOSOpenDistantSession* b) { + return [[a modifiedTime] compare:[b modifiedTime]]; + }]; } - return [distantTabs copy]; + return [sessions_list copy]; } - (void)deleteSyncedSession:(NSString*)sessionTag { diff --git a/ios/browser/api/url/url_spoof_checker.h b/ios/browser/api/url/url_spoof_checker.h index d60707c8bf4d..2f4949ac0290 100644 --- a/ios/browser/api/url/url_spoof_checker.h +++ b/ios/browser/api/url/url_spoof_checker.h @@ -26,7 +26,7 @@ typedef NSInteger BraveSpoofCheckerLookalikeURLMatchType NS_TYPED_ENUM OBJC_EXPORT BraveSpoofCheckerLookalikeURLMatchType const BraveSpoofCheckerLookalikeURLMatchTypeNone; OBJC_EXPORT BraveSpoofCheckerLookalikeURLMatchType const - BraveSpoofCheckerLookalikeURLMatchTypeSiteEngagement; + BraveSpoofCheckerLookalikeURLMatchTypeSkeletonMatchSiteEngagement; OBJC_EXPORT BraveSpoofCheckerLookalikeURLMatchType const BraveSpoofCheckerLookalikeURLMatchTypeEditDistance; OBJC_EXPORT BraveSpoofCheckerLookalikeURLMatchType const diff --git a/ios/browser/api/url/url_spoof_checker.mm b/ios/browser/api/url/url_spoof_checker.mm index f570dec2754c..e5ba8716c90b 100644 --- a/ios/browser/api/url/url_spoof_checker.mm +++ b/ios/browser/api/url/url_spoof_checker.mm @@ -40,8 +40,9 @@ BraveSpoofCheckerLookalikeURLMatchTypeNone = static_cast(LookalikeUrlMatchType::kNone); BraveSpoofCheckerLookalikeURLMatchType const - BraveSpoofCheckerLookalikeURLMatchTypeSiteEngagement = - static_cast(LookalikeUrlMatchType::kSiteEngagement); + BraveSpoofCheckerLookalikeURLMatchTypeSkeletonMatchSiteEngagement = + static_cast( + LookalikeUrlMatchType::kSkeletonMatchSiteEngagement); BraveSpoofCheckerLookalikeURLMatchType const BraveSpoofCheckerLookalikeURLMatchTypeEditDistance = static_cast(LookalikeUrlMatchType::kEditDistance); diff --git a/ios/browser/providers/BUILD.gn b/ios/browser/providers/BUILD.gn index 0e8fed9f975d..6dfcb1de4350 100644 --- a/ios/browser/providers/BUILD.gn +++ b/ios/browser/providers/BUILD.gn @@ -20,6 +20,7 @@ group("brave_providers") { "//ios/chrome/browser/providers/follow:chromium_follow", "//ios/chrome/browser/providers/font:chromium_font", "//ios/chrome/browser/providers/fullscreen:chromium_fullscreen", + "//ios/chrome/browser/providers/keyboard:chromium_keyboard", "//ios/chrome/browser/providers/lens:chromium_lens", "//ios/chrome/browser/providers/mailto_handler:chromium_mailto_handler", "//ios/chrome/browser/providers/modals:chromium_modals", @@ -29,6 +30,7 @@ group("brave_providers") { "//ios/chrome/browser/providers/push_notification:chromium_push_notification", "//ios/chrome/browser/providers/risk_data:chromium_risk_data", "//ios/chrome/browser/providers/signin:chromium_signin_error", + "//ios/chrome/browser/providers/signin:chromium_signin_identity", "//ios/chrome/browser/providers/signin:chromium_signin_resources", "//ios/chrome/browser/providers/signin:chromium_signin_sso", "//ios/chrome/browser/providers/signin:chromium_trusted_vault", diff --git a/ios/browser/svg/BUILD.gn b/ios/browser/svg/BUILD.gn index e3043341f8bd..baa69dde94b1 100644 --- a/ios/browser/svg/BUILD.gn +++ b/ios/browser/svg/BUILD.gn @@ -6,7 +6,10 @@ import("//third_party/skia/modules/svg/svg.gni") source_set("svg") { - cflags_cc = [ "-Wno-extra-semi" ] + cflags_cc = [ + "-Wno-extra-semi", + "-Wno-unreachable-code-aggressive", + ] configs += [ "//build/config/compiler:enable_arc" ] diff --git a/net/http/partitioned_host_state_map.cc b/net/http/partitioned_host_state_map.cc index 5a90cca8c1f5..719aace6cc48 100644 --- a/net/http/partitioned_host_state_map.cc +++ b/net/http/partitioned_host_state_map.cc @@ -1,4 +1,4 @@ -/* Copyright 2022 The Brave Authors. All rights reserved. +/* Copyright (c) 2022 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/. */ @@ -7,22 +7,30 @@ #include -#include "base/strings/strcat.h" +#include "base/ranges/algorithm.h" #include "crypto/sha2.h" #include "net/base/network_isolation_key.h" +namespace { + +bool IsEmptyPartitionHash( + const net::PartitionedHostStateMapBase::HashedHost& hashed_host) { + return base::ranges::all_of(hashed_host.begin(), hashed_host.end(), + [](uint8_t i) { return i == 0; }); +} + +} // namespace + namespace net { PartitionedHostStateMapBase::PartitionedHostStateMapBase() = default; PartitionedHostStateMapBase::~PartitionedHostStateMapBase() = default; -base::AutoReset> +base::AutoReset> PartitionedHostStateMapBase::SetScopedPartitionHash( - absl::optional partition_hash) { - CHECK(!partition_hash || partition_hash->empty() || - partition_hash->size() == crypto::kSHA256Length); - return base::AutoReset>( - &partition_hash_, std::move(partition_hash)); + absl::optional partition_hash) { + return base::AutoReset>(&partition_hash_, + std::move(partition_hash)); } bool PartitionedHostStateMapBase::HasPartitionHash() const { @@ -30,23 +38,29 @@ bool PartitionedHostStateMapBase::HasPartitionHash() const { } bool PartitionedHostStateMapBase::IsPartitionHashValid() const { - return partition_hash_ && !partition_hash_->empty(); + return partition_hash_ && !IsEmptyPartitionHash(*partition_hash_); } -std::string PartitionedHostStateMapBase::GetKeyWithPartitionHash( - const std::string& k) const { +PartitionedHostStateMapBase::HashedHost +PartitionedHostStateMapBase::GetKeyWithPartitionHash( + const HashedHost& k) const { CHECK(IsPartitionHashValid()); if (k == *partition_hash_) { return k; } - return base::StrCat({GetHalfKey(k), GetHalfKey(*partition_hash_)}); + + HashedHost result; + static_assert(result.size() == crypto::kSHA256Length, + "Unexpected HashedHost size"); + base::ranges::copy(GetHalfKey(k), result.begin()); + base::ranges::copy(GetHalfKey(*partition_hash_), + std::next(result.begin(), std::size(result) / 2)); + return result; } -// static -base::StringPiece PartitionedHostStateMapBase::GetHalfKey(base::StringPiece k) { - CHECK_EQ(k.size(), crypto::kSHA256Length); - const size_t kHalfSHA256HashLength = crypto::kSHA256Length / 2; - return k.substr(0, kHalfSHA256HashLength); +base::span PartitionedHostStateMapBase::GetHalfKey( + const HashedHost& k) { + return base::make_span(k.data(), std::size(k) / 2); } } // namespace net diff --git a/net/http/partitioned_host_state_map.h b/net/http/partitioned_host_state_map.h index 32bf12f76108..891b141dd9a1 100644 --- a/net/http/partitioned_host_state_map.h +++ b/net/http/partitioned_host_state_map.h @@ -1,4 +1,4 @@ -/* Copyright 2022 The Brave Authors. All rights reserved. +/* Copyright (c) 2022 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/. */ @@ -6,11 +6,13 @@ #ifndef BRAVE_NET_HTTP_PARTITIONED_HOST_STATE_MAP_H_ #define BRAVE_NET_HTTP_PARTITIONED_HOST_STATE_MAP_H_ +#include #include #include "base/auto_reset.h" +#include "base/containers/span.h" #include "base/ranges/algorithm.h" -#include "base/strings/string_piece.h" +#include "crypto/sha2.h" #include "net/base/net_export.h" #include "third_party/abseil-cpp/absl/types/optional.h" @@ -19,6 +21,8 @@ namespace net { // Implements partitioning support for structures in TransportSecurityState. class NET_EXPORT PartitionedHostStateMapBase { public: + using HashedHost = std::array; + PartitionedHostStateMapBase(); ~PartitionedHostStateMapBase(); @@ -27,8 +31,8 @@ class NET_EXPORT PartitionedHostStateMapBase { delete; // Stores scoped partition hash for use in subsequent calls. - base::AutoReset> SetScopedPartitionHash( - absl::optional partition_hash); + base::AutoReset> SetScopedPartitionHash( + absl::optional partition_hash); // Returns true if |partition_hash_| is set. The value may be empty. bool HasPartitionHash() const; // Returns true if |partition_hash_| contains a non empty valid hash. @@ -36,17 +40,18 @@ class NET_EXPORT PartitionedHostStateMapBase { // Creates a host hash by concatenating first 16 bytes (half of SHA256) from // |k| and first 16 bytes from |partition_hash_|. // CHECKs if |partition_hash_| is not valid. - std::string GetKeyWithPartitionHash(const std::string& k) const; + HashedHost GetKeyWithPartitionHash(const HashedHost& k) const; - // Returns first 16 bytes from |k|. - static base::StringPiece GetHalfKey(base::StringPiece k); + // Returns first `HashedHost::size() / 2` bytes from |k|. + static base::span GetHalfKey(const HashedHost& k); private: // Partition hash can be of these values: // nullopt - unpartitioned; - // empty string - invalid/opaque partition, i.e. shouldn't be stored; - // non empty string - valid partition. - absl::optional partition_hash_; + // empty array - invalid/opaque partition, i.e. shouldn't be stored; + // non-empty array - valid partition. + // Where empty is defined as zero-initialized. + absl::optional partition_hash_; }; // Allows data partitioning using half key from PartitionHash. The class mimics @@ -112,7 +117,12 @@ class NET_EXPORT PartitionedHostStateMap : public PartitionedHostStateMapBase { // partition hash part. bool DeleteDataInAllPartitions(const key_type& k) { auto equal_range_pair = base::ranges::equal_range( - map_, GetHalfKey(k), {}, + map_, GetHalfKey(k), + [](const auto& v1, const auto& v2) { + // Mimic std::less by calling memcmp on base::span arrays. + DCHECK(v1.size() == v2.size()); + return memcmp(v1.data(), v2.data(), v1.size()) < 0; + }, [](const value_type& v) { return GetHalfKey(v.first); }); if (equal_range_pair.first == equal_range_pair.second) { diff --git a/net/http/partitioned_host_state_map_unittest.cc b/net/http/partitioned_host_state_map_unittest.cc index d9c60d18aaf7..98456e0e522e 100644 --- a/net/http/partitioned_host_state_map_unittest.cc +++ b/net/http/partitioned_host_state_map_unittest.cc @@ -1,4 +1,4 @@ -/* Copyright 2022 The Brave Authors. All rights reserved. +/* Copyright (c) 2022 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/. */ @@ -8,6 +8,7 @@ #include #include +#include "base/containers/span.h" #include "crypto/sha2.h" #include "testing/gtest/include/gtest/gtest.h" @@ -15,13 +16,15 @@ namespace net { namespace { -using PartitionedMap = - PartitionedHostStateMap>; +using HostHash = std::array; +using PartitionedMap = PartitionedHostStateMap>; -std::string HashHost(base::StringPiece canonicalized_host) { - char hashed[crypto::kSHA256Length]; - crypto::SHA256HashString(canonicalized_host, hashed, sizeof(hashed)); - return std::string(hashed, sizeof(hashed)); +HostHash HashHost(base::StringPiece canonicalized_host) { + if (canonicalized_host.empty()) { + return {}; + } + return crypto::SHA256Hash( + base::as_bytes(base::make_span(canonicalized_host))); } } // namespace @@ -51,7 +54,7 @@ TEST(PartitionedHostStateMapTest, WithoutPartitionHash) { TEST(PartitionedHostStateMapTest, InvalidPartitionHash) { PartitionedMap map; // Empty string is an invalid partition. It means it should not be persisted. - auto auto_reset_partition_hash = map.SetScopedPartitionHash(""); + auto auto_reset_partition_hash = map.SetScopedPartitionHash(HashHost("")); EXPECT_TRUE(map.HasPartitionHash()); EXPECT_FALSE(map.IsPartitionHashValid()); diff --git a/package.json b/package.json index 795693afc452..e77ecef4038f 100644 --- a/package.json +++ b/package.json @@ -264,7 +264,7 @@ "projects": { "chrome": { "dir": "src", - "tag": "109.0.5414.119", + "tag": "110.0.5481.52", "repository": { "url": "https://github.com/chromium/chromium" } diff --git a/patches/base-BUILD.gn.patch b/patches/base-BUILD.gn.patch index c45fb5d44112..c0af95fa24da 100644 --- a/patches/base-BUILD.gn.patch +++ b/patches/base-BUILD.gn.patch @@ -1,8 +1,8 @@ diff --git a/base/BUILD.gn b/base/BUILD.gn -index 7662d4fc550b95f1009596e05d5d4dc62db4991d..ba9869fb47f9b8b6267cc0bc2212716283656f2a 100644 +index 904eaff4687de97a637f310498837b3be2e74ffa..7b1255defa4adde4eacbe5f9be91c861c7c8e1f8 100644 --- a/base/BUILD.gn +++ b/base/BUILD.gn -@@ -4371,6 +4371,7 @@ if (is_android) { +@@ -4309,6 +4309,7 @@ if (is_android) { "android/java/src/org/chromium/base/task/TaskTraits.java", "android/java/src/org/chromium/base/task/TaskTraitsExtensionDescriptor.java", ] diff --git a/patches/base-test-launcher-test_results_tracker.cc.patch b/patches/base-test-launcher-test_results_tracker.cc.patch index 63042ea28da7..af9da1f4e233 100644 --- a/patches/base-test-launcher-test_results_tracker.cc.patch +++ b/patches/base-test-launcher-test_results_tracker.cc.patch @@ -1,5 +1,5 @@ diff --git a/base/test/launcher/test_results_tracker.cc b/base/test/launcher/test_results_tracker.cc -index 9801c8db7fbac68b8539f783bc4e800156b9c203..71fd989e19c4f51fdbbe41540ac4dd3aaa050224 100644 +index ea2aa1ee0fe12c2d4ca8abd035eac9ba51a72830..aa9eb0aec39c1d9390d248707bdb3066b1d849cc 100644 --- a/base/test/launcher/test_results_tracker.cc +++ b/base/test/launcher/test_results_tracker.cc @@ -151,6 +151,7 @@ TestResultsTracker::~TestResultsTracker() { diff --git a/patches/base-threading-thread_restrictions.h.patch b/patches/base-threading-thread_restrictions.h.patch index 3ee2e86280f4..22ad13844b6c 100644 --- a/patches/base-threading-thread_restrictions.h.patch +++ b/patches/base-threading-thread_restrictions.h.patch @@ -1,8 +1,8 @@ diff --git a/base/threading/thread_restrictions.h b/base/threading/thread_restrictions.h -index 24498ec63616e61b6bb208135454c36b2bbf0073..ee31d3cfae422b176cf5e8cda3c95efa6c5a4ab8 100644 +index e251578d1ec49dbc9f8855b405767e6df7117454..1fe65f964e3cf0ec1503e00548481b18cdaee279 100644 --- a/base/threading/thread_restrictions.h +++ b/base/threading/thread_restrictions.h -@@ -670,6 +670,7 @@ class BASE_EXPORT ScopedAllowBaseSyncPrimitives { +@@ -692,6 +692,7 @@ class BASE_EXPORT ScopedAllowBaseSyncPrimitives { ScopedAllowBaseSyncPrimitives& operator=( const ScopedAllowBaseSyncPrimitives&) = delete; diff --git a/patches/base-trace_event-builtin_categories.h.patch b/patches/base-trace_event-builtin_categories.h.patch index 371c936331ad..493cddbe762c 100644 --- a/patches/base-trace_event-builtin_categories.h.patch +++ b/patches/base-trace_event-builtin_categories.h.patch @@ -1,10 +1,10 @@ diff --git a/base/trace_event/builtin_categories.h b/base/trace_event/builtin_categories.h -index a96b2338f39adb7f765d7c7a67eff8dbbdb991a5..977dbb4d1ce931bfba77b4170992ca2729c0969f 100644 +index 37bbac5815969906f4d75798c37f748e9fc75216..563f0bb6d75138a9be43f76154c76565d8f00ddd 100644 --- a/base/trace_event/builtin_categories.h +++ b/base/trace_event/builtin_categories.h -@@ -183,6 +183,7 @@ - X("WebCore") \ +@@ -185,6 +185,7 @@ X("webrtc") \ + X("webrtc_stats") \ X("xr") \ + BRAVE_INTERNAL_TRACE_LIST_BUILTIN_CATEGORIES(X) /*see chromium_src*/ \ X(TRACE_DISABLED_BY_DEFAULT("android_view_hierarchy")) \ diff --git a/patches/build-android-gyp-dex.py.patch b/patches/build-android-gyp-dex.py.patch index 54bd2be02e82..2fe9aac33ba8 100644 --- a/patches/build-android-gyp-dex.py.patch +++ b/patches/build-android-gyp-dex.py.patch @@ -1,5 +1,5 @@ diff --git a/build/android/gyp/dex.py b/build/android/gyp/dex.py -index 9ef80df4722386187128f3c1d605c2099d593c18..a8d1593b1fbfeb5415d926b7ce72324980aec32c 100755 +index 0b2577090e4874dfdbf61947e0af44e1d56bdf69..d25fd8f893ab3069a37121c20176630ee35aa879 100755 --- a/build/android/gyp/dex.py +++ b/build/android/gyp/dex.py @@ -54,7 +54,7 @@ _IGNORE_WARNINGS = ( diff --git a/patches/build-android-gyp-util-resource_utils.py.patch b/patches/build-android-gyp-util-resource_utils.py.patch index 6eaf7a6ae314..a8299dcea094 100644 --- a/patches/build-android-gyp-util-resource_utils.py.patch +++ b/patches/build-android-gyp-util-resource_utils.py.patch @@ -1,5 +1,5 @@ diff --git a/build/android/gyp/util/resource_utils.py b/build/android/gyp/util/resource_utils.py -index 84187dd8e3f0275e0a75c8c9cc595c837dd5d164..1497df8c917102d8debced055d53d46c3992e7bd 100644 +index 36d890417d5665de7b4ca48a4402fd6ff699a0c0..4cf64c6145f363f475aae61973b56249c4af1de7 100644 --- a/build/android/gyp/util/resource_utils.py +++ b/build/android/gyp/util/resource_utils.py @@ -256,6 +256,7 @@ class ResourceInfoFile: diff --git a/patches/build-config-BUILDCONFIG.gn.patch b/patches/build-config-BUILDCONFIG.gn.patch index af945b81ef57..c474347758a5 100644 --- a/patches/build-config-BUILDCONFIG.gn.patch +++ b/patches/build-config-BUILDCONFIG.gn.patch @@ -1,5 +1,5 @@ diff --git a/build/config/BUILDCONFIG.gn b/build/config/BUILDCONFIG.gn -index a373e55a330f7c8f330be9f430c7e1f41ead42f7..6cb069af5e1d9596d45113dd762ea7cce5e0a7bb 100644 +index cc7e92ddb67cd0da1acd38bfaf1479cb08b2ca65..1671c8ad4ca513b8ba4c5bf4ffec77440df1bb62 100644 --- a/build/config/BUILDCONFIG.gn +++ b/build/config/BUILDCONFIG.gn @@ -329,6 +329,7 @@ is_posix = !is_win && !is_fuchsia diff --git a/patches/build-config-android-BUILD.gn.patch b/patches/build-config-android-BUILD.gn.patch index 144ba48b8b76..eda245d494a8 100644 --- a/patches/build-config-android-BUILD.gn.patch +++ b/patches/build-config-android-BUILD.gn.patch @@ -1,5 +1,5 @@ diff --git a/build/config/android/BUILD.gn b/build/config/android/BUILD.gn -index f8d2e95c0d4b98dc7cc943085e221a2f227a4f9d..b8e44c6dd9df93da5344469c28cec5ddd99af721 100644 +index efdd3826ea47055912cb8c2fd6c20f8d26ba993d..8b06b8a63a4bb4e66da52ddf6d6b007150f0ffee 100644 --- a/build/config/android/BUILD.gn +++ b/build/config/android/BUILD.gn @@ -39,6 +39,7 @@ config("compiler") { diff --git a/patches/build-config-android-config.gni.patch b/patches/build-config-android-config.gni.patch index c5f48687d391..a58fc68ddd46 100644 --- a/patches/build-config-android-config.gni.patch +++ b/patches/build-config-android-config.gni.patch @@ -1,5 +1,5 @@ diff --git a/build/config/android/config.gni b/build/config/android/config.gni -index 2b3d2a8413f240c5c65fe9659efd902e898c3ae7..7f2b021432585997b6c43abf3bba98ca7563f914 100644 +index d893ebc344219f85a244e7530e633949507ee0b8..9d50ee72c76e5739ed3ec9fdf2e3c6d5a54b3652 100644 --- a/build/config/android/config.gni +++ b/build/config/android/config.gni @@ -8,6 +8,7 @@ diff --git a/patches/build-config-android-internal_rules.gni.patch b/patches/build-config-android-internal_rules.gni.patch index 0a1ed1df7084..cfc2031dafd9 100644 --- a/patches/build-config-android-internal_rules.gni.patch +++ b/patches/build-config-android-internal_rules.gni.patch @@ -1,8 +1,8 @@ diff --git a/build/config/android/internal_rules.gni b/build/config/android/internal_rules.gni -index 656d711f0caf011bdf090e688f560aaf06f3fe7d..e76084a0b25c22f404789acb5d46f97f4b146671 100644 +index 31c20f12a1e103578fda11dac09ca73185aedd89..ff3d633ca3fa2f271d1033c11ae36d1cea0465ed 100644 --- a/build/config/android/internal_rules.gni +++ b/build/config/android/internal_rules.gni -@@ -3924,6 +3924,7 @@ if (enable_java_templates) { +@@ -3799,6 +3799,7 @@ if (enable_java_templates) { } else { not_needed(invoker, [ "missing_classes_allowlist" ]) } diff --git a/patches/build-config-android-rules.gni.patch b/patches/build-config-android-rules.gni.patch index 11c9423073b9..b339958ddef2 100644 --- a/patches/build-config-android-rules.gni.patch +++ b/patches/build-config-android-rules.gni.patch @@ -1,8 +1,8 @@ diff --git a/build/config/android/rules.gni b/build/config/android/rules.gni -index 4ce915ee29a14a2f27419544db7d623edbeafa40..17937569a5628bacdad7072e8e122a20d8fe75b6 100644 +index 7ddc160f973ef22696ccdc63b57272e46dadb96f..df3c3a0b33365f559e85332b0529fa666abfb5fc 100644 --- a/build/config/android/rules.gni +++ b/build/config/android/rules.gni -@@ -567,6 +567,7 @@ if (enable_java_templates && is_android) { +@@ -574,6 +574,7 @@ if (enable_java_templates && is_android) { # ] # } template("java_cpp_enum") { @@ -10,7 +10,7 @@ index 4ce915ee29a14a2f27419544db7d623edbeafa40..17937569a5628bacdad7072e8e122a20 action_with_pydeps(target_name) { forward_variables_from(invoker, TESTONLY_AND_VISIBILITY + [ "sources" ]) -@@ -742,6 +743,7 @@ if (enable_java_templates && is_android) { +@@ -749,6 +750,7 @@ if (enable_java_templates && is_android) { # output = "$target_gen_dir/AndroidManifest.xml" # } template("jinja_template") { diff --git a/patches/build-config-chrome_build.gni.patch b/patches/build-config-chrome_build.gni.patch index a63aad5771c5..6f17e1c56ba0 100644 --- a/patches/build-config-chrome_build.gni.patch +++ b/patches/build-config-chrome_build.gni.patch @@ -1,5 +1,5 @@ diff --git a/build/config/chrome_build.gni b/build/config/chrome_build.gni -index 2207912e73af6a792abefd7ade4b5c36199387d8..e339972df8b6a2e9d4daf67a32be9daa237b5cda 100644 +index 0e755fb7ec097ebe3b81632fba509e2abc853173..c12127ba37549e16efb4d54f9b5a7420a4aff8c6 100644 --- a/build/config/chrome_build.gni +++ b/build/config/chrome_build.gni @@ -1,6 +1,7 @@ diff --git a/patches/chrome-BUILD.gn.patch b/patches/chrome-BUILD.gn.patch index dbc86d7e80f5..4cbff5296fec 100644 --- a/patches/chrome-BUILD.gn.patch +++ b/patches/chrome-BUILD.gn.patch @@ -1,8 +1,8 @@ diff --git a/chrome/BUILD.gn b/chrome/BUILD.gn -index d5049a4e98a4c6969dab65edfeb97d26a594de47..c8662cacfffcad6a9031662426f1f8fa511c5c72 100644 +index 2ef38efd9617c09dcdb68d972ce10ce9c70dfc14..10b6c93fb9e6ea3ffb05008f64c061d9fa3151c3 100644 --- a/chrome/BUILD.gn +++ b/chrome/BUILD.gn -@@ -179,6 +179,7 @@ if (!is_android && !is_mac) { +@@ -182,6 +182,7 @@ if (!is_android && !is_mac) { "common/crash_keys.cc", "common/crash_keys.h", ] @@ -10,7 +10,7 @@ index d5049a4e98a4c6969dab65edfeb97d26a594de47..c8662cacfffcad6a9031662426f1f8fa deps += [ ":chrome_dll", -@@ -475,11 +476,12 @@ if (is_win) { +@@ -478,11 +479,12 @@ if (is_win) { args += [ "--keystone=0" ] } } @@ -24,7 +24,7 @@ index d5049a4e98a4c6969dab65edfeb97d26a594de47..c8662cacfffcad6a9031662426f1f8fa extra_substitutions = [ "CHROMIUM_BUNDLE_ID=$chrome_mac_bundle_id", "CHROMIUM_SHORT_NAME=$chrome_product_short_name", -@@ -500,6 +502,7 @@ if (is_win) { +@@ -503,6 +505,7 @@ if (is_win) { "//chrome/common:buildflags", "//chrome/common:version_header", ] @@ -32,7 +32,7 @@ index d5049a4e98a4c6969dab65edfeb97d26a594de47..c8662cacfffcad6a9031662426f1f8fa if (enable_stripping) { # At link time, preserve the global symbols specified in the .exports -@@ -572,7 +575,7 @@ if (is_win) { +@@ -575,7 +578,7 @@ if (is_win) { args = [ "-b", @@ -41,7 +41,7 @@ index d5049a4e98a4c6969dab65edfeb97d26a594de47..c8662cacfffcad6a9031662426f1f8fa "-v", chrome_version_full, "-g", -@@ -646,6 +649,7 @@ if (is_win) { +@@ -649,6 +652,7 @@ if (is_win) { # this dependency directly copies the file into the framework's # resources directory. public_deps += [ ":chrome_framework_widevine_signature" ] @@ -49,7 +49,7 @@ index d5049a4e98a4c6969dab65edfeb97d26a594de47..c8662cacfffcad6a9031662426f1f8fa } } -@@ -687,9 +691,11 @@ if (is_win) { +@@ -690,9 +694,11 @@ if (is_win) { "--scm=0", ] } @@ -61,7 +61,7 @@ index d5049a4e98a4c6969dab65edfeb97d26a594de47..c8662cacfffcad6a9031662426f1f8fa if (is_chrome_branded && include_branded_entitlements) { # These entitlements are bound to the official Google Chrome signing # certificate and will not necessarily work in any other build. -@@ -714,6 +720,7 @@ if (is_win) { +@@ -717,6 +723,7 @@ if (is_win) { info_plist_target = invoker.info_plist_target } else { info_plist_target = ":chrome_helper_plist" @@ -69,7 +69,7 @@ index d5049a4e98a4c6969dab65edfeb97d26a594de47..c8662cacfffcad6a9031662426f1f8fa } extra_substitutions = [ -@@ -891,6 +898,7 @@ if (is_win) { +@@ -894,6 +901,7 @@ if (is_win) { sources += [ "//third_party/updater/chrome_mac_universal_prod/${updater_product_full_name}.app" ] } else { sources += [ "$root_out_dir/${updater_product_full_name}.app" ] @@ -77,7 +77,7 @@ index d5049a4e98a4c6969dab65edfeb97d26a594de47..c8662cacfffcad6a9031662426f1f8fa public_deps += [ "//chrome/updater/mac:browser_install_script", -@@ -1199,6 +1207,7 @@ if (is_win) { +@@ -1202,6 +1210,7 @@ if (is_win) { chrome_dylib_version, "-Wl,-order_file," + rebase_path("app/framework.order", root_build_dir), ] @@ -85,7 +85,7 @@ index d5049a4e98a4c6969dab65edfeb97d26a594de47..c8662cacfffcad6a9031662426f1f8fa if (!is_component_build) { # Specify a sensible install_name for static builds. The library is -@@ -1377,6 +1386,7 @@ if (is_win) { +@@ -1381,6 +1390,7 @@ if (is_win) { group("dependencies") { public_deps = [ @@ -93,7 +93,7 @@ index d5049a4e98a4c6969dab65edfeb97d26a594de47..c8662cacfffcad6a9031662426f1f8fa "//build:branding_buildflags", "//build:chromeos_buildflags", "//chrome/browser", -@@ -1448,7 +1458,7 @@ group("dependencies") { +@@ -1451,7 +1461,7 @@ group("dependencies") { if (is_win) { process_version_rc_template("chrome_exe_version") { @@ -102,7 +102,7 @@ index d5049a4e98a4c6969dab65edfeb97d26a594de47..c8662cacfffcad6a9031662426f1f8fa output = "$target_gen_dir/chrome_exe_version.rc" } -@@ -1502,6 +1512,7 @@ group("resources") { +@@ -1505,6 +1515,7 @@ group("resources") { "//chrome/browser:resources", "//chrome/common:resources", "//chrome/renderer:resources", diff --git a/patches/chrome-VERSION.patch b/patches/chrome-VERSION.patch index 6f2e4a7f8993..3a8562019c1d 100644 --- a/patches/chrome-VERSION.patch +++ b/patches/chrome-VERSION.patch @@ -1,12 +1,12 @@ diff --git a/chrome/VERSION b/chrome/VERSION -index b7517548a6596e35de99564a190dbb877e981894..68614189bc31693c55d1d0a25d76284a2cfa8210 100644 +index bf37e2b96898513236ea695cec7919abf2702693..e7b38476153388d44d48b20eb488ab55ea33d1ac 100644 --- a/chrome/VERSION +++ b/chrome/VERSION @@ -1,4 +1,4 @@ - MAJOR=109 + MAJOR=110 -MINOR=0 --BUILD=5414 --PATCH=119 +-BUILD=5481 +-PATCH=52 +MINOR=1 +BUILD=49 +PATCH=59 diff --git a/patches/chrome-android-BUILD.gn.patch b/patches/chrome-android-BUILD.gn.patch index fd50a2f830c5..161f1333c28d 100644 --- a/patches/chrome-android-BUILD.gn.patch +++ b/patches/chrome-android-BUILD.gn.patch @@ -1,8 +1,8 @@ diff --git a/chrome/android/BUILD.gn b/chrome/android/BUILD.gn -index 78cca7269ce99591eaafee3c6592f6a72568271f..344488234bf7b551233c06521a408d238f968261 100644 +index bf0643229638ab80fc03bee2a5af2b6454b96328..4a3048ac8825d6cc54483ab8edcdec22a5427e10 100644 --- a/chrome/android/BUILD.gn +++ b/chrome/android/BUILD.gn -@@ -243,6 +243,7 @@ if (current_toolchain == default_toolchain) { +@@ -239,6 +239,7 @@ if (current_toolchain == default_toolchain) { "java/res_chromium_base/mipmap-xxxhdpi/layered_app_icon_background.png", "java/res_chromium_base/values/channel_constants.xml", ] @@ -10,7 +10,7 @@ index 78cca7269ce99591eaafee3c6592f6a72568271f..344488234bf7b551233c06521a408d23 } android_resources("chrome_app_java_resources") { -@@ -318,6 +319,7 @@ if (current_toolchain == default_toolchain) { +@@ -315,6 +316,7 @@ if (current_toolchain == default_toolchain) { "//third_party/androidx:androidx_gridlayout_gridlayout_java", "//third_party/androidx:androidx_preference_preference_java", ] @@ -18,15 +18,15 @@ index 78cca7269ce99591eaafee3c6592f6a72568271f..344488234bf7b551233c06521a408d23 } if (enable_vr) { -@@ -718,6 +720,7 @@ if (current_toolchain == default_toolchain) { +@@ -712,6 +714,7 @@ if (current_toolchain == default_toolchain) { ] deps += feed_deps + deps += brave_chrome_java_deps srcjar_deps = [ - ":autofill_verification_status_generated_enum", -@@ -744,6 +747,7 @@ if (current_toolchain == default_toolchain) { + ":chrome_android_java_enums_srcjar", +@@ -736,6 +739,7 @@ if (current_toolchain == default_toolchain) { "//components/offline_pages/core:offline_page_model_enums_java", "//net:effective_connection_type_java", ] @@ -34,7 +34,7 @@ index 78cca7269ce99591eaafee3c6592f6a72568271f..344488234bf7b551233c06521a408d23 # From java_sources.gni. sources = chrome_java_sources + [ app_hooks_impl ] -@@ -885,6 +889,7 @@ if (current_toolchain == default_toolchain) { +@@ -873,6 +877,7 @@ if (current_toolchain == default_toolchain) { "//chrome/android/features/tab_ui:module_desc_java", ] } @@ -42,7 +42,7 @@ index 78cca7269ce99591eaafee3c6592f6a72568271f..344488234bf7b551233c06521a408d23 } action_with_pydeps("chrome_android_java_google_api_keys_srcjar") { -@@ -2102,6 +2107,7 @@ if (current_toolchain == default_toolchain) { +@@ -2088,6 +2093,7 @@ if (current_toolchain == default_toolchain) { "java/res_chromium_base/mipmap-xxxhdpi/layered_app_icon_background.png", "java/res_chromium_base/values/channel_constants.xml", ] @@ -50,7 +50,7 @@ index 78cca7269ce99591eaafee3c6592f6a72568271f..344488234bf7b551233c06521a408d23 # Dep needed to ensure override works properly. deps = [ ":chrome_base_module_resources" ] -@@ -2350,6 +2356,7 @@ if (current_toolchain == default_toolchain) { +@@ -2336,6 +2342,7 @@ if (current_toolchain == default_toolchain) { ":${_variant}_locale_pak_assets", ":${_variant}_paks", ] @@ -58,15 +58,15 @@ index 78cca7269ce99591eaafee3c6592f6a72568271f..344488234bf7b551233c06521a408d23 if (_is_monochrome) { deps += [ "//android_webview:locale_pak_assets" ] if (webview_includes_weblayer && !_is_bundle_module) { -@@ -2563,6 +2570,7 @@ if (current_toolchain == default_toolchain) { - load_library_from_apk = chromium_linker_supported +@@ -2541,6 +2548,7 @@ if (current_toolchain == default_toolchain) { + shared_libraries = [ ":libchrome" ] version_name = chrome_version_name + deps += brave_public_apk_or_module_tmpl_deps loadable_modules = brave_public_apk_or_module_tmpl_loadable_modules } } -@@ -2706,6 +2714,7 @@ if (current_toolchain == default_toolchain) { +@@ -2682,6 +2690,7 @@ if (current_toolchain == default_toolchain) { "//components/payments/content/android:service_java", "//third_party/androidx:androidx_browser_browser_java", ] @@ -74,7 +74,7 @@ index 78cca7269ce99591eaafee3c6592f6a72568271f..344488234bf7b551233c06521a408d23 # More deps for DFMs. if (dfmify_dev_ui) { -@@ -2891,6 +2900,7 @@ if (current_toolchain == default_toolchain) { +@@ -2865,6 +2874,7 @@ if (current_toolchain == default_toolchain) { deps += [ "//weblayer/browser/java:upstream_java" ] } } diff --git a/patches/chrome-android-chrome_java_sources.gni.patch b/patches/chrome-android-chrome_java_sources.gni.patch index e64c9fb03700..c47d0726f84e 100644 --- a/patches/chrome-android-chrome_java_sources.gni.patch +++ b/patches/chrome-android-chrome_java_sources.gni.patch @@ -1,8 +1,8 @@ diff --git a/chrome/android/chrome_java_sources.gni b/chrome/android/chrome_java_sources.gni -index 7bccbeb001b623dfdbc38a968a91c2f8208a7139..5b7e32bced523b1626f0b863296afdd6dd025b07 100644 +index 631aa76e9a7d71da72aeb52ae8da86cd8b429fa9..eb5427541ca4d53666b6056d64ce151478571a48 100644 --- a/chrome/android/chrome_java_sources.gni +++ b/chrome/android/chrome_java_sources.gni -@@ -1225,3 +1225,4 @@ chrome_java_sources = [ +@@ -1215,3 +1215,4 @@ chrome_java_sources = [ "java/src/org/chromium/chrome/browser/webauth/authenticator/CableAuthenticatorUSBActivity.java", "java/src/org/chromium/chrome/browser/webshare/ShareServiceImplementationFactory.java", ] diff --git a/patches/chrome-android-chrome_public_apk_tmpl.gni.patch b/patches/chrome-android-chrome_public_apk_tmpl.gni.patch index 2100088a1380..c5b295fc1eb6 100644 --- a/patches/chrome-android-chrome_public_apk_tmpl.gni.patch +++ b/patches/chrome-android-chrome_public_apk_tmpl.gni.patch @@ -1,8 +1,8 @@ diff --git a/chrome/android/chrome_public_apk_tmpl.gni b/chrome/android/chrome_public_apk_tmpl.gni -index 541d1cde3bfef9d3c6881c2d4260200d9be2eff0..afe36becb33eb579841a59f7a07d0b6dd7c834a4 100644 +index 068b8391b06aba28364b63e4fe6f56d54b9ae4af..66f1df36666445906714b4e05f2ce0580aa9ced2 100644 --- a/chrome/android/chrome_public_apk_tmpl.gni +++ b/chrome/android/chrome_public_apk_tmpl.gni -@@ -102,6 +102,7 @@ template("chrome_public_common_apk_or_module_tmpl") { +@@ -98,6 +98,7 @@ template("chrome_public_common_apk_or_module_tmpl") { "*ic_file_download_white*", # Bottom edge seems misaligned. "*ic_lock.*", # Bottom edge seems misaligned. ] @@ -10,7 +10,7 @@ index 541d1cde3bfef9d3c6881c2d4260200d9be2eff0..afe36becb33eb579841a59f7a07d0b6d # Note most of these, with the exception of resource_exclusion_exceptions, # are currently duplicated in system_webview_apk_tmpl.gni. -@@ -212,6 +213,7 @@ template("chrome_public_common_apk_or_module_tmpl") { +@@ -198,6 +199,7 @@ template("chrome_public_common_apk_or_module_tmpl") { proguard_configs = [] } proguard_configs += [ "//chrome/android/proguard/main.flags" ] diff --git a/patches/chrome-android-expectations-lint-suppressions.xml.patch b/patches/chrome-android-expectations-lint-suppressions.xml.patch index f29eb0114f26..d7617b0db0ae 100644 --- a/patches/chrome-android-expectations-lint-suppressions.xml.patch +++ b/patches/chrome-android-expectations-lint-suppressions.xml.patch @@ -1,8 +1,8 @@ diff --git a/chrome/android/expectations/lint-suppressions.xml b/chrome/android/expectations/lint-suppressions.xml -index 1b9d298cdd79a76c29771b02f2d1daded7c8f79b..9f67d8c6e9f9d3c7242301526a4c9d74fb7c6798 100644 +index 9f4f1fc831d2b4beca3499eb4804129e7eb7a886..233195b029acc5897c2909389a73abc889cbe4be 100644 --- a/chrome/android/expectations/lint-suppressions.xml +++ b/chrome/android/expectations/lint-suppressions.xml -@@ -304,4 +304,5 @@ https://chromium.googlesource.com/chromium/src/+/main/build/android/docs/lint.md +@@ -300,4 +300,5 @@ https://chromium.googlesource.com/chromium/src/+/main/build/android/docs/lint.md diff --git a/patches/chrome-android-java-AndroidManifest.xml.patch b/patches/chrome-android-java-AndroidManifest.xml.patch index b817482f5dfa..ae4d144d6b51 100644 --- a/patches/chrome-android-java-AndroidManifest.xml.patch +++ b/patches/chrome-android-java-AndroidManifest.xml.patch @@ -1,5 +1,5 @@ diff --git a/chrome/android/java/AndroidManifest.xml b/chrome/android/java/AndroidManifest.xml -index 1fc712f4ad2450200c4ef4f25b8e4fca9cd489c5..a174abbc26959f62492c460db5a4b682add68ec2 100644 +index e861de3a552a0ad5719f910a398898396e7d8674..62ab20aa7360d1d1233894c1ef54bbeacb7325b0 100644 --- a/chrome/android/java/AndroidManifest.xml +++ b/chrome/android/java/AndroidManifest.xml @@ -28,6 +28,7 @@ by a child template that "extends" this file. @@ -79,7 +79,7 @@ index 1fc712f4ad2450200c4ef4f25b8e4fca9cd489c5..a174abbc26959f62492c460db5a4b682 -@@ -896,6 +911,7 @@ by a child template that "extends" this file. +@@ -888,6 +903,7 @@ by a child template that "extends" this file. -@@ -908,6 +924,7 @@ by a child template that "extends" this file. +@@ -900,6 +916,7 @@ by a child template that "extends" this file. -@@ -1193,6 +1210,7 @@ by a child template that "extends" this file. +@@ -1183,6 +1200,7 @@ by a child template that "extends" this file. android:configChanges="orientation|keyboardHidden|keyboard|screenSize|mcc|mnc|screenLayout|smallestScreenSize" > @@ -103,7 +103,7 @@ index 1fc712f4ad2450200c4ef4f25b8e4fca9cd489c5..a174abbc26959f62492c460db5a4b682 {% block extra_application_definitions %} {% endblock %} {% endmacro %} -@@ -1271,6 +1289,7 @@ by a child template that "extends" this file. +@@ -1254,6 +1272,7 @@ by a child template that "extends" this file. diff --git a/patches/chrome-android-java-src-org-chromium-chrome-browser-ChromeTabbedActivity.java.patch b/patches/chrome-android-java-src-org-chromium-chrome-browser-ChromeTabbedActivity.java.patch deleted file mode 100644 index 54847045ee77..000000000000 --- a/patches/chrome-android-java-src-org-chromium-chrome-browser-ChromeTabbedActivity.java.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java b/chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java -index 191f4ae5e04fa25f88d2a6aa7e8b1a087f4281ef..1d8f94595561fe5a7cfcf7a6b34c3bb650b0e05e 100644 ---- a/chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java -+++ b/chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java -@@ -1051,7 +1051,7 @@ public class ChromeTabbedActivity extends ChromeActivityincognito_access.is_enabled = util::CanBeIncognitoEnabled(&extension); info->incognito_access.is_active = util::IsIncognitoEnabled(extension.id(), browser_context_); diff --git a/patches/chrome-browser-extensions-api-identity-identity_get_auth_token_function.cc.patch b/patches/chrome-browser-extensions-api-identity-identity_get_auth_token_function.cc.patch index 5c613e56fa4c..376ebb499232 100644 --- a/patches/chrome-browser-extensions-api-identity-identity_get_auth_token_function.cc.patch +++ b/patches/chrome-browser-extensions-api-identity-identity_get_auth_token_function.cc.patch @@ -1,5 +1,5 @@ diff --git a/chrome/browser/extensions/api/identity/identity_get_auth_token_function.cc b/chrome/browser/extensions/api/identity/identity_get_auth_token_function.cc -index 4c4fb190e9f47720bcb71935498d4b4155a924ce..8cf1805a5b0e1d334f82c36285d4c2cc433d5749 100644 +index 6c3c4f1cb8f15f1f498f3c38f42ef9b2a17f8c25..fe97c5b0cb4d17ce63b59309a5dba9621471eb3e 100644 --- a/chrome/browser/extensions/api/identity/identity_get_auth_token_function.cc +++ b/chrome/browser/extensions/api/identity/identity_get_auth_token_function.cc @@ -44,6 +44,13 @@ @@ -111,7 +111,7 @@ index 4c4fb190e9f47720bcb71935498d4b4155a924ce..8cf1805a5b0e1d334f82c36285d4c2cc void IdentityGetAuthTokenFunction::OnRefreshTokenUpdatedForAccount( const CoreAccountInfo& account_info) { if (account_listening_mode_ != AccountListeningMode::kListeningTokens) -@@ -729,6 +790,84 @@ void IdentityGetAuthTokenFunction::OnGaiaRemoteConsentFlowApproved( +@@ -730,6 +791,84 @@ void IdentityGetAuthTokenFunction::OnGaiaRemoteConsentFlowApproved( StartMintTokenFlow(IdentityMintRequestQueue::MINT_TYPE_NONINTERACTIVE); } diff --git a/patches/chrome-browser-extensions-chrome_component_extension_resource_manager.cc.patch b/patches/chrome-browser-extensions-chrome_component_extension_resource_manager.cc.patch index 5d96b2c18664..0961aad8ad2a 100644 --- a/patches/chrome-browser-extensions-chrome_component_extension_resource_manager.cc.patch +++ b/patches/chrome-browser-extensions-chrome_component_extension_resource_manager.cc.patch @@ -1,8 +1,8 @@ diff --git a/chrome/browser/extensions/chrome_component_extension_resource_manager.cc b/chrome/browser/extensions/chrome_component_extension_resource_manager.cc -index e79415547cd1b07cab166f81915bf7e3cdcabbb2..56d80f0886654fee9415e5479547a8c48448c51e 100644 +index ef131afb1f24e2dbf6925c79c3b1fdeeab74d8e3..817f52c0a5d030df233b6871d1f1c0f46bf08cac 100644 --- a/chrome/browser/extensions/chrome_component_extension_resource_manager.cc +++ b/chrome/browser/extensions/chrome_component_extension_resource_manager.cc -@@ -157,6 +157,7 @@ ChromeComponentExtensionResourceManager::Data::Data() { +@@ -156,6 +156,7 @@ ChromeComponentExtensionResourceManager::Data::Data() { std::move(pdf_viewer_replacements); } #endif diff --git a/patches/chrome-browser-extensions-component_loader.h.patch b/patches/chrome-browser-extensions-component_loader.h.patch index e06e8491f364..c2dc2afc68e6 100644 --- a/patches/chrome-browser-extensions-component_loader.h.patch +++ b/patches/chrome-browser-extensions-component_loader.h.patch @@ -1,8 +1,8 @@ diff --git a/chrome/browser/extensions/component_loader.h b/chrome/browser/extensions/component_loader.h -index 39cd58279c4e61fc2f851b9f888f33f17c20b7d0..9ab36cac16a50768657779f9b2eb30912d8f4bbe 100644 +index 4baaa0c3328cf34d1148dcca9f38546394a53930..bedc8b30def639de607e5addf7421dd0952dc571 100644 --- a/chrome/browser/extensions/component_loader.h +++ b/chrome/browser/extensions/component_loader.h -@@ -85,7 +85,7 @@ class ComponentLoader { +@@ -84,7 +84,7 @@ class ComponentLoader { // the loader will skip loading component extensions that weren't supposed to // be loaded unless we are in signed user session (ChromeOS). For all other // platforms this |skip_session_components| is expected to be unset. @@ -11,7 +11,7 @@ index 39cd58279c4e61fc2f851b9f888f33f17c20b7d0..9ab36cac16a50768657779f9b2eb3091 // Similar to above but adds the default component extensions for kiosk mode. void AddDefaultComponentExtensionsForKioskMode(bool skip_session_components); -@@ -131,6 +131,7 @@ class ComponentLoader { +@@ -130,6 +130,7 @@ class ComponentLoader { } private: @@ -19,7 +19,7 @@ index 39cd58279c4e61fc2f851b9f888f33f17c20b7d0..9ab36cac16a50768657779f9b2eb3091 FRIEND_TEST_ALL_PREFIXES(ComponentLoaderTest, ParseManifest); // Information about a registered component extension. -@@ -177,6 +178,7 @@ class ComponentLoader { +@@ -175,6 +176,7 @@ class ComponentLoader { void AddDefaultComponentExtensionsWithBackgroundPagesForKioskMode(); #if BUILDFLAG(ENABLE_HANGOUT_SERVICES_EXTENSION) diff --git a/patches/chrome-browser-extensions-extension_management.cc.patch b/patches/chrome-browser-extensions-extension_management.cc.patch index f9133aa664c3..9b10689771ca 100644 --- a/patches/chrome-browser-extensions-extension_management.cc.patch +++ b/patches/chrome-browser-extensions-extension_management.cc.patch @@ -1,8 +1,8 @@ diff --git a/chrome/browser/extensions/extension_management.cc b/chrome/browser/extensions/extension_management.cc -index e63c44e8f724a7f46e8754d489647236ed12d9fb..95f3ba7ea7efcbab5229c322bce69a141116e5f5 100644 +index 3488182177e82599b19ab11cb2721a19aacf8681..a105d63034c36829eccbb91b9698a725dffd359e 100644 --- a/chrome/browser/extensions/extension_management.cc +++ b/chrome/browser/extensions/extension_management.cc -@@ -828,6 +828,7 @@ KeyedService* ExtensionManagementFactory::BuildServiceInstanceFor( +@@ -888,6 +888,7 @@ KeyedService* ExtensionManagementFactory::BuildServiceInstanceFor( content::BrowserContext* context) const { TRACE_EVENT0("browser,startup", "ExtensionManagementFactory::BuildServiceInstanceFor"); diff --git a/patches/chrome-browser-extensions-updater-chrome_update_client_config.h.patch b/patches/chrome-browser-extensions-updater-chrome_update_client_config.h.patch index 76c3641ae7bb..ab40e854f16a 100644 --- a/patches/chrome-browser-extensions-updater-chrome_update_client_config.h.patch +++ b/patches/chrome-browser-extensions-updater-chrome_update_client_config.h.patch @@ -1,8 +1,8 @@ diff --git a/chrome/browser/extensions/updater/chrome_update_client_config.h b/chrome/browser/extensions/updater/chrome_update_client_config.h -index 47a0644cbbdb6d545b7f3dc82a22055870e29fa9..db6b04a3da004ba7af831865713ff8a9e5da11fa 100644 +index d518d3f5b35115979568834ca435434978de4c82..b7ae13196a9c8d10cc3b21976c16a8811b531b40 100644 --- a/chrome/browser/extensions/updater/chrome_update_client_config.h +++ b/chrome/browser/extensions/updater/chrome_update_client_config.h -@@ -91,6 +91,7 @@ class ChromeUpdateClientConfig : public update_client::Configurator { +@@ -92,6 +92,7 @@ class ChromeUpdateClientConfig : public update_client::Configurator { #if BUILDFLAG(ENABLE_PUFFIN_PATCHES) absl::optional GetCrxCachePath() const override; #endif diff --git a/patches/chrome-browser-external_protocol-external_protocol_handler.cc.patch b/patches/chrome-browser-external_protocol-external_protocol_handler.cc.patch index 862547e266ea..44aaad310e9c 100644 --- a/patches/chrome-browser-external_protocol-external_protocol_handler.cc.patch +++ b/patches/chrome-browser-external_protocol-external_protocol_handler.cc.patch @@ -1,5 +1,5 @@ diff --git a/chrome/browser/external_protocol/external_protocol_handler.cc b/chrome/browser/external_protocol/external_protocol_handler.cc -index e6459bc3474df327be5eee03180c32ebc4587130..52291de2148b0669a641744f420b2941d88f5784 100644 +index 2722c3e70a8c5a75542429b23e43f884d6280b0b..c5e3ff2a505ea66d5cd4e7470d137243596f40c0 100644 --- a/chrome/browser/external_protocol/external_protocol_handler.cc +++ b/chrome/browser/external_protocol/external_protocol_handler.cc @@ -345,7 +345,7 @@ ExternalProtocolHandler::BlockState ExternalProtocolHandler::GetBlockState( diff --git a/patches/chrome-browser-first_run-upgrade_util_win.cc.patch b/patches/chrome-browser-first_run-upgrade_util_win.cc.patch index 37f784954b2e..f4970fd86945 100644 --- a/patches/chrome-browser-first_run-upgrade_util_win.cc.patch +++ b/patches/chrome-browser-first_run-upgrade_util_win.cc.patch @@ -1,5 +1,5 @@ diff --git a/chrome/browser/first_run/upgrade_util_win.cc b/chrome/browser/first_run/upgrade_util_win.cc -index 3dc61391aad6f12e1ed61ae043c31cdde186fb1e..4075bd8a7db9a113fd8e0a0266a9a264eaf7d2c6 100644 +index ffafc6a291910b9d58856a41a7988d92db73d97b..58cf0f43a7b376a897cf6f3d8022a4ec5f30d7dc 100644 --- a/chrome/browser/first_run/upgrade_util_win.cc +++ b/chrome/browser/first_run/upgrade_util_win.cc @@ -44,7 +44,7 @@ diff --git a/patches/chrome-browser-flags-BUILD.gn.patch b/patches/chrome-browser-flags-BUILD.gn.patch index cb2d2650429f..5c02a1e15ed4 100644 --- a/patches/chrome-browser-flags-BUILD.gn.patch +++ b/patches/chrome-browser-flags-BUILD.gn.patch @@ -1,8 +1,8 @@ diff --git a/chrome/browser/flags/BUILD.gn b/chrome/browser/flags/BUILD.gn -index 998075fc2dd120acbcbd160283910d7e286d35a3..cc6292a28ad59610438bceb1876cefbfa321c74c 100644 +index a2ac4f30cd3167eb4123f95b48dd4c3d15c4bd95..6f611ec7cddb416317ae5b284f0b69df5f679b30 100644 --- a/chrome/browser/flags/BUILD.gn +++ b/chrome/browser/flags/BUILD.gn -@@ -34,6 +34,7 @@ android_library("java") { +@@ -33,6 +33,7 @@ android_library("java") { "//third_party/android_deps:guava_android_java", "//third_party/androidx:androidx_annotation_annotation_java", ] diff --git a/patches/chrome-browser-importer-external_process_importer_host.h.patch b/patches/chrome-browser-importer-external_process_importer_host.h.patch index eb9ca674cb03..deb4b0f66812 100644 --- a/patches/chrome-browser-importer-external_process_importer_host.h.patch +++ b/patches/chrome-browser-importer-external_process_importer_host.h.patch @@ -1,5 +1,5 @@ diff --git a/chrome/browser/importer/external_process_importer_host.h b/chrome/browser/importer/external_process_importer_host.h -index e482d76980f8b9371b05d901e3cd9e7b08f5d98c..f9c7376e1416e32b2f8a42d60918235f6d397d7a 100644 +index a55ef6ae01873eff0d83d7ea82bfd506ca31566b..c22ff75ec50a6a030b175385b309b12dc7ae9c0c 100644 --- a/chrome/browser/importer/external_process_importer_host.h +++ b/chrome/browser/importer/external_process_importer_host.h @@ -75,6 +75,7 @@ class ExternalProcessImporterHost diff --git a/patches/chrome-browser-net-system_network_context_manager.cc.patch b/patches/chrome-browser-net-system_network_context_manager.cc.patch index fc8a1bb14d21..2a45cc8421e6 100644 --- a/patches/chrome-browser-net-system_network_context_manager.cc.patch +++ b/patches/chrome-browser-net-system_network_context_manager.cc.patch @@ -1,8 +1,8 @@ diff --git a/chrome/browser/net/system_network_context_manager.cc b/chrome/browser/net/system_network_context_manager.cc -index 39f5f4ab69d11ad4522770557cb739113687ba3a..37386797d6a58d3e82086ef547a78d05033f41ab 100644 +index f5f26dc65df1cb2e85d503399aed0767a55b9947..fb0d00191180003d9b52e59d53a572cd14ad6ea4 100644 --- a/chrome/browser/net/system_network_context_manager.cc +++ b/chrome/browser/net/system_network_context_manager.cc -@@ -305,7 +305,7 @@ class SystemNetworkContextManager::URLLoaderFactoryForSystem +@@ -308,7 +308,7 @@ class SystemNetworkContextManager::URLLoaderFactoryForSystem if (!manager_) return; manager_->GetURLLoaderFactory()->CreateLoaderAndStart( diff --git a/patches/chrome-browser-prefs-browser_prefs.cc.patch b/patches/chrome-browser-prefs-browser_prefs.cc.patch index 5b6f7ef3a1b1..595edbe1ffeb 100644 --- a/patches/chrome-browser-prefs-browser_prefs.cc.patch +++ b/patches/chrome-browser-prefs-browser_prefs.cc.patch @@ -1,8 +1,8 @@ diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc -index b0fd561c06612be55aa5910c69311ede168230ac..b08f04aeeed7d2da4747538cef026f313c133cf3 100644 +index 829d5faa9433f0cc5cdb577abed2f5e4489dc49a..027173f2631d8b029e7c66163c4a13d80569b1be 100644 --- a/chrome/browser/prefs/browser_prefs.cc +++ b/chrome/browser/prefs/browser_prefs.cc -@@ -1269,6 +1269,8 @@ void RegisterLocalState(PrefRegistrySimple* registry) { +@@ -1302,6 +1302,8 @@ void RegisterLocalState(PrefRegistrySimple* registry) { DeviceOAuth2TokenStoreDesktop::RegisterPrefs(registry); #endif @@ -11,7 +11,7 @@ index b0fd561c06612be55aa5910c69311ede168230ac..b08f04aeeed7d2da4747538cef026f31 #if BUILDFLAG(ENABLE_SCREEN_AI_SERVICE) screen_ai::RegisterLocalStatePrefs(registry); #endif // BUILDFLAG(ENABLE_SCREEN_AI_SERVICE) -@@ -1645,6 +1647,7 @@ void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry, +@@ -1686,6 +1688,7 @@ void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry, #endif registry->RegisterTimePref(prefs::kDIPSTimerLastUpdate, base::Time()); diff --git a/patches/chrome-browser-profiles-profile.cc.patch b/patches/chrome-browser-profiles-profile.cc.patch index 307f9e758704..8965746d1e3c 100644 --- a/patches/chrome-browser-profiles-profile.cc.patch +++ b/patches/chrome-browser-profiles-profile.cc.patch @@ -1,8 +1,8 @@ diff --git a/chrome/browser/profiles/profile.cc b/chrome/browser/profiles/profile.cc -index a82af67cd3afb6584b84d7355d463460e1af6636..57eef07bc0ec9a819677c42a3f4e5ff001dd04a2 100644 +index cb16500436e78c0a3ba4471438de5b5357ffd35c..3aaa04cebee7abc9b346359bf706bc58a5e24e18 100644 --- a/chrome/browser/profiles/profile.cc +++ b/chrome/browser/profiles/profile.cc -@@ -103,6 +103,7 @@ bool Profile::OTRProfileID::AllowsBrowserWindows() const { +@@ -104,6 +104,7 @@ bool Profile::OTRProfileID::AllowsBrowserWindows() const { // DevTools::BrowserContext, MediaRouter::Presentation, and // CaptivePortal::Signin are exceptions to this ban. if (*this == PrimaryID() || @@ -10,7 +10,7 @@ index a82af67cd3afb6584b84d7355d463460e1af6636..57eef07bc0ec9a819677c42a3f4e5ff0 base::StartsWith(profile_id_, kDevToolsOTRProfileIDPrefix, base::CompareCase::SENSITIVE) || base::StartsWith(profile_id_, kMediaRouterOTRProfileIDPrefix, -@@ -302,7 +303,7 @@ const char Profile::kProfileKey[] = "__PROFILE__"; +@@ -310,7 +311,7 @@ const char Profile::kProfileKey[] = "__PROFILE__"; void Profile::RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { registry->RegisterBooleanPref( prefs::kSearchSuggestEnabled, diff --git a/patches/chrome-browser-renderer_context_menu-render_view_context_menu.cc.patch b/patches/chrome-browser-renderer_context_menu-render_view_context_menu.cc.patch index 657fcde1d563..04c50fb6641d 100644 --- a/patches/chrome-browser-renderer_context_menu-render_view_context_menu.cc.patch +++ b/patches/chrome-browser-renderer_context_menu-render_view_context_menu.cc.patch @@ -1,8 +1,8 @@ diff --git a/chrome/browser/renderer_context_menu/render_view_context_menu.cc b/chrome/browser/renderer_context_menu/render_view_context_menu.cc -index 3718ed86606d6ee7388491c6ba9213c079fe512b..b051e414fff846e44b839882c79bc5e4197ac167 100644 +index 1907eb7b5c67797f736cf6fd0374ad1ff0a2d6e9..054f0d93bc88af9e95e2fe945d8ff9409f3c40c1 100644 --- a/chrome/browser/renderer_context_menu/render_view_context_menu.cc +++ b/chrome/browser/renderer_context_menu/render_view_context_menu.cc -@@ -1938,6 +1938,7 @@ void RenderViewContextMenu::AppendSearchProvider() { +@@ -1936,6 +1936,7 @@ void RenderViewContextMenu::AppendSearchProvider() { selection_navigation_url_ = match.destination_url; if (!selection_navigation_url_.is_valid()) return; diff --git a/patches/chrome-browser-renderer_context_menu-render_view_context_menu.h.patch b/patches/chrome-browser-renderer_context_menu-render_view_context_menu.h.patch index 84037ce01054..3a963263f9eb 100644 --- a/patches/chrome-browser-renderer_context_menu-render_view_context_menu.h.patch +++ b/patches/chrome-browser-renderer_context_menu-render_view_context_menu.h.patch @@ -1,5 +1,5 @@ diff --git a/chrome/browser/renderer_context_menu/render_view_context_menu.h b/chrome/browser/renderer_context_menu/render_view_context_menu.h -index 3199231012c450b5b8a6a2fd4d3f14b64968088b..072a5c8d657015db632d0c40e437a18c4140cbea 100644 +index 203daac4b57ce6f58529897746feeb8af0695433..5bbe688f010463039dfe5b298c16ba8a3c80257b 100644 --- a/chrome/browser/renderer_context_menu/render_view_context_menu.h +++ b/chrome/browser/renderer_context_menu/render_view_context_menu.h @@ -170,6 +170,7 @@ class RenderViewContextMenu diff --git a/patches/chrome-browser-resources-bookmarks-BUILD.gn.patch b/patches/chrome-browser-resources-bookmarks-BUILD.gn.patch index 2eaeed5c3e9c..5984dc12e1cd 100644 --- a/patches/chrome-browser-resources-bookmarks-BUILD.gn.patch +++ b/patches/chrome-browser-resources-bookmarks-BUILD.gn.patch @@ -1,8 +1,8 @@ diff --git a/chrome/browser/resources/bookmarks/BUILD.gn b/chrome/browser/resources/bookmarks/BUILD.gn -index cc5ee55e73cc5224e77ed1bc1ed3cb84a4a2b7a2..80e0c7c07735705cbcae9177147041518df8baee 100644 +index 08be7188d3efd679921640670f7bd96a3324ec91..8887081b81519095dd9b828e7599b53c2d656603 100644 --- a/chrome/browser/resources/bookmarks/BUILD.gn +++ b/chrome/browser/resources/bookmarks/BUILD.gn -@@ -71,4 +71,5 @@ build_webui("build") { +@@ -72,4 +72,5 @@ build_webui("build") { optimize_webui_resource_paths_rewrites = [ "bookmarks.rollup.js|bookmarks.js" ] } diff --git a/patches/chrome-browser-resources-bookmarks-bookmarks.ts.patch b/patches/chrome-browser-resources-bookmarks-bookmarks.ts.patch index 942e5a1b96f1..ee0ee20b2af6 100644 --- a/patches/chrome-browser-resources-bookmarks-bookmarks.ts.patch +++ b/patches/chrome-browser-resources-bookmarks-bookmarks.ts.patch @@ -1,5 +1,5 @@ diff --git a/chrome/browser/resources/bookmarks/bookmarks.ts b/chrome/browser/resources/bookmarks/bookmarks.ts -index e18d2f4269c72f8bfb1d46e16d443c4749836ae7..0ac13d17be6e694b3d7bdab6b19fff3397d48126 100644 +index 77a1b553ba84e8af23392ef68ae4bcef27aa91b4..6a529f06564f5174852ddb47547baccc49ce5fda 100644 --- a/chrome/browser/resources/bookmarks/bookmarks.ts +++ b/chrome/browser/resources/bookmarks/bookmarks.ts @@ -2,6 +2,7 @@ diff --git a/patches/chrome-browser-resources-bookmarks-command_manager.ts.patch b/patches/chrome-browser-resources-bookmarks-command_manager.ts.patch index 29e7315c93a0..dd69e50bdf63 100644 --- a/patches/chrome-browser-resources-bookmarks-command_manager.ts.patch +++ b/patches/chrome-browser-resources-bookmarks-command_manager.ts.patch @@ -1,5 +1,5 @@ diff --git a/chrome/browser/resources/bookmarks/command_manager.ts b/chrome/browser/resources/bookmarks/command_manager.ts -index c7035b0dccead100a688156658107cab581ab144..fb36a52a8fac449e3042565d774bf3473f661f0c 100644 +index e739c7845c4fbe1b28f448cea752ae2b942d4379..3bf96192e934d1a946437a1727cf5762d88793f1 100644 --- a/chrome/browser/resources/bookmarks/command_manager.ts +++ b/chrome/browser/resources/bookmarks/command_manager.ts @@ -427,7 +427,7 @@ export class BookmarksCommandManagerElement extends diff --git a/patches/chrome-browser-resources-downloads-downloads.ts.patch b/patches/chrome-browser-resources-downloads-downloads.ts.patch index 88b6f4cabb64..269d59f3f940 100644 --- a/patches/chrome-browser-resources-downloads-downloads.ts.patch +++ b/patches/chrome-browser-resources-downloads-downloads.ts.patch @@ -1,5 +1,5 @@ diff --git a/chrome/browser/resources/downloads/downloads.ts b/chrome/browser/resources/downloads/downloads.ts -index f54656f1d7ee40cf7dc1c95d3e416fc65c2bf293..74062bee8cc2fce442332fd53f7dec83bfdfa60b 100644 +index 0b05e22165c61dcb57aeeb46f251f697a6514978..ea224dc0fad035208782345c8520e2fe12b92902 100644 --- a/chrome/browser/resources/downloads/downloads.ts +++ b/chrome/browser/resources/downloads/downloads.ts @@ -2,6 +2,7 @@ diff --git a/patches/chrome-browser-resources-history-history_item.html.patch b/patches/chrome-browser-resources-history-history_item.html.patch index 84082adac912..96255cdb9a60 100644 --- a/patches/chrome-browser-resources-history-history_item.html.patch +++ b/patches/chrome-browser-resources-history-history_item.html.patch @@ -1,5 +1,5 @@ diff --git a/chrome/browser/resources/history/history_item.html b/chrome/browser/resources/history/history_item.html -index 3254453e4b20486fd7ce1bfb5622d1ca6b688eaa..67135e6dde3f6c899e937f58729b90e9d684d8ad 100644 +index dcc88249b65e1346a3c08faa67b277d33e023979..2682a30cb6ef43276aed2432cb8609c0d55b9a87 100644 --- a/chrome/browser/resources/history/history_item.html +++ b/chrome/browser/resources/history/history_item.html @@ -1,4 +1,4 @@ diff --git a/patches/chrome-browser-resources-history-history_item.ts.patch b/patches/chrome-browser-resources-history-history_item.ts.patch index fa4bece7fdaf..21b337f577e9 100644 --- a/patches/chrome-browser-resources-history-history_item.ts.patch +++ b/patches/chrome-browser-resources-history-history_item.ts.patch @@ -1,5 +1,5 @@ diff --git a/chrome/browser/resources/history/history_item.ts b/chrome/browser/resources/history/history_item.ts -index 2743f5c0aa454d1b8ff91260af329eefe58707db..f08b405dbc37a196bc52cccedacf101e5bdb941c 100644 +index e91e5cdea2466bb9092a1756b35316412b448ee7..aad88bb0b97c3f900bc7d21916ccc3003b7cc0f4 100644 --- a/chrome/browser/resources/history/history_item.ts +++ b/chrome/browser/resources/history/history_item.ts @@ -9,6 +9,7 @@ import 'chrome://resources/cr_elements/cr_icons.css.js'; diff --git a/patches/chrome-browser-resources-settings-BUILD.gn.patch b/patches/chrome-browser-resources-settings-BUILD.gn.patch index 5bdc19320d33..626ce57e686f 100644 --- a/patches/chrome-browser-resources-settings-BUILD.gn.patch +++ b/patches/chrome-browser-resources-settings-BUILD.gn.patch @@ -1,8 +1,8 @@ diff --git a/chrome/browser/resources/settings/BUILD.gn b/chrome/browser/resources/settings/BUILD.gn -index 3b79a77b102bc67b9cfb751db2a19eff08502dad..899778629dfc0f528e19b1fbf3636289350c0c49 100644 +index 86689c58f3cb8cad7f70ce0b519e3f89f8c14dbf..3b6af416764471183e9d088313b5dffc5946e7e5 100644 --- a/chrome/browser/resources/settings/BUILD.gn +++ b/chrome/browser/resources/settings/BUILD.gn -@@ -489,4 +489,5 @@ build_webui("build") { +@@ -480,4 +480,5 @@ build_webui("build") { "lazy_load.rollup.js|lazy_load.js", ] } diff --git a/patches/chrome-browser-resources-settings-people_page-sync_controls.ts.patch b/patches/chrome-browser-resources-settings-people_page-sync_controls.ts.patch index 2a4b45b9cef4..d66d7b894836 100644 --- a/patches/chrome-browser-resources-settings-people_page-sync_controls.ts.patch +++ b/patches/chrome-browser-resources-settings-people_page-sync_controls.ts.patch @@ -1,5 +1,5 @@ diff --git a/chrome/browser/resources/settings/people_page/sync_controls.ts b/chrome/browser/resources/settings/people_page/sync_controls.ts -index ce20540fa73c662cd375b0c54dd206852f32021d..35467cb443138bbd0113b56aa205120b80997102 100644 +index b8162976279eea18754bd3814068013bb5ed3728..698400aa2b24ecb554d4943304680ca2c5e38874 100644 --- a/chrome/browser/resources/settings/people_page/sync_controls.ts +++ b/chrome/browser/resources/settings/people_page/sync_controls.ts @@ -100,7 +100,7 @@ export class SettingsSyncControlsElement extends diff --git a/patches/chrome-browser-resources-settings-privacy_page-personalization_options.html.patch b/patches/chrome-browser-resources-settings-privacy_page-personalization_options.html.patch index cb28a64a4b90..1cdacc5c67f7 100644 --- a/patches/chrome-browser-resources-settings-privacy_page-personalization_options.html.patch +++ b/patches/chrome-browser-resources-settings-privacy_page-personalization_options.html.patch @@ -1,5 +1,5 @@ diff --git a/chrome/browser/resources/settings/privacy_page/personalization_options.html b/chrome/browser/resources/settings/privacy_page/personalization_options.html -index c01b1dcf517e95faf4f808cf85799ee4319d68a6..034cc3865d3ca51c023ae8e562c711227a46820e 100644 +index aad9cef9ec72a3535af7264b748be053b7ac8422..eede11d9c54bf2a2f954629358ea6f3aad8f122d 100644 --- a/chrome/browser/resources/settings/privacy_page/personalization_options.html +++ b/chrome/browser/resources/settings/privacy_page/personalization_options.html @@ -13,6 +13,7 @@ @@ -18,32 +18,31 @@ index c01b1dcf517e95faf4f808cf85799ee4319d68a6..034cc3865d3ca51c023ae8e562c71122 +@@ -43,6 +45,7 @@ + on-click="onMetricsReportingLinkClick_" external> + + - + - + + + + @@ -51,7 +50,7 @@ index c01b1dcf517e95faf4f808cf85799ee4319d68a6..034cc3865d3ca51c023ae8e562c71122 diff --git a/patches/chrome-browser-resources-settings-privacy_page-personalization_options.ts.patch b/patches/chrome-browser-resources-settings-privacy_page-personalization_options.ts.patch index 6dbcf7346020..a6a752da2f2f 100644 --- a/patches/chrome-browser-resources-settings-privacy_page-personalization_options.ts.patch +++ b/patches/chrome-browser-resources-settings-privacy_page-personalization_options.ts.patch @@ -1,8 +1,8 @@ diff --git a/chrome/browser/resources/settings/privacy_page/personalization_options.ts b/chrome/browser/resources/settings/privacy_page/personalization_options.ts -index d6b00eff7e54916680ba062b67491ec0728e3ecc..60c8fcff449dd746cd47b2a49f7f47cfcc661c3e 100644 +index 5c55e5518ba3087448b8333ae5c906fc14e0ac11..17e94c8eabe1a208fb60f1461d414952491e25a8 100644 --- a/chrome/browser/resources/settings/privacy_page/personalization_options.ts +++ b/chrome/browser/resources/settings/privacy_page/personalization_options.ts -@@ -76,7 +76,7 @@ export class SettingsPersonalizationOptionsElement extends +@@ -69,7 +69,7 @@ export class SettingsPersonalizationOptionsElement extends syncStatus: Object, @@ -11,7 +11,7 @@ index d6b00eff7e54916680ba062b67491ec0728e3ecc..60c8fcff449dd746cd47b2a49f7f47cf // TODO(dbeam): make a virtual.* pref namespace and set/get this normally // (but handled differently in C++). metricsReportingPref_: { -@@ -118,7 +118,7 @@ export class SettingsPersonalizationOptionsElement extends +@@ -104,7 +104,7 @@ export class SettingsPersonalizationOptionsElement extends pageVisibility: PrivacyPageVisibility; syncStatus: SyncStatus; @@ -20,7 +20,7 @@ index d6b00eff7e54916680ba062b67491ec0728e3ecc..60c8fcff449dd746cd47b2a49f7f47cf private metricsReportingPref_: chrome.settingsPrivate.PrefObject; private showRestart_: boolean; // -@@ -176,7 +176,7 @@ export class SettingsPersonalizationOptionsElement extends +@@ -137,7 +137,7 @@ export class SettingsPersonalizationOptionsElement extends override ready() { super.ready(); @@ -28,8 +28,8 @@ index d6b00eff7e54916680ba062b67491ec0728e3ecc..60c8fcff449dd746cd47b2a49f7f47cf + // const setMetricsReportingPref = (metricsReporting: MetricsReporting) => this.setMetricsReportingPref_(metricsReporting); - this.addWebUIListener('metrics-reporting-change', setMetricsReportingPref); -@@ -210,7 +210,7 @@ export class SettingsPersonalizationOptionsElement extends + this.addWebUiListener('metrics-reporting-change', setMetricsReportingPref); +@@ -171,7 +171,7 @@ export class SettingsPersonalizationOptionsElement extends } // diff --git a/patches/chrome-browser-resources-settings-privacy_page-privacy_page.html.patch b/patches/chrome-browser-resources-settings-privacy_page-privacy_page.html.patch index cfe5300acf93..b8b1b0f4f261 100644 --- a/patches/chrome-browser-resources-settings-privacy_page-privacy_page.html.patch +++ b/patches/chrome-browser-resources-settings-privacy_page-privacy_page.html.patch @@ -1,5 +1,5 @@ diff --git a/chrome/browser/resources/settings/privacy_page/privacy_page.html b/chrome/browser/resources/settings/privacy_page/privacy_page.html -index 6b67b92c57910fd9278fab8e9c5b981b13c48910..a6477de928b8f1cc5d3b8cf0f39054e1e14705db 100644 +index 366dcd2758e9dfaa67c711873582c57def487806..ef873b4f67d8fd120fcc8aa1d3389a8a0890af44 100644 --- a/chrome/browser/resources/settings/privacy_page/privacy_page.html +++ b/chrome/browser/resources/settings/privacy_page/privacy_page.html @@ -40,6 +40,7 @@ @@ -10,7 +10,7 @@ index 6b67b92c57910fd9278fab8e9c5b981b13c48910..a6477de928b8f1cc5d3b8cf0f39054e1 @@ -18,7 +18,7 @@ index 6b67b92c57910fd9278fab8e9c5b981b13c48910..a6477de928b8f1cc5d3b8cf0f39054e1 diff --git a/patches/chrome-browser-resources-settings-privacy_page-privacy_page.ts.patch b/patches/chrome-browser-resources-settings-privacy_page-privacy_page.ts.patch index 9bf861e93269..5a190e8e4887 100644 --- a/patches/chrome-browser-resources-settings-privacy_page-privacy_page.ts.patch +++ b/patches/chrome-browser-resources-settings-privacy_page-privacy_page.ts.patch @@ -1,11 +1,11 @@ diff --git a/chrome/browser/resources/settings/privacy_page/privacy_page.ts b/chrome/browser/resources/settings/privacy_page/privacy_page.ts -index 190c02848350e441232fe27f276ce7e8c0c91536..4b3a00dcbb53423a34dc4386e0fc592580814c23 100644 +index 563272df6cc068a6567d63c8bd645b2153358d90..a6bbd1d3e364e39bc70d2435a86cfe2cbf31f82c 100644 --- a/chrome/browser/resources/settings/privacy_page/privacy_page.ts +++ b/chrome/browser/resources/settings/privacy_page/privacy_page.ts -@@ -18,6 +18,7 @@ import '../site_settings/settings_category_default_radio_group.js'; - import '../settings_page/settings_animated_pages.js'; +@@ -18,6 +18,7 @@ import '../settings_page/settings_animated_pages.js'; import '../settings_page/settings_subpage.js'; import '../settings_shared.css.js'; + import '../site_settings/settings_category_default_radio_group.js'; +import './personalization_options.js'; import './privacy_guide/privacy_guide_dialog.js'; diff --git a/patches/chrome-browser-resources-settings-privacy_page-privacy_page_browser_proxy.ts.patch b/patches/chrome-browser-resources-settings-privacy_page-privacy_page_browser_proxy.ts.patch index 002f0c62d72f..42d5ec650fbc 100644 --- a/patches/chrome-browser-resources-settings-privacy_page-privacy_page_browser_proxy.ts.patch +++ b/patches/chrome-browser-resources-settings-privacy_page-privacy_page_browser_proxy.ts.patch @@ -1,8 +1,8 @@ diff --git a/chrome/browser/resources/settings/privacy_page/privacy_page_browser_proxy.ts b/chrome/browser/resources/settings/privacy_page/privacy_page_browser_proxy.ts -index 6450085f7c924172bb077454015b865cd350a7be..11e30622c22529b568781a2514e28845a14cf517 100644 +index 2e13c777517eae71cbf8da2b4e0d0f4ac3e066bf..f9d60fb20e02f9d224e09ee85461fcc1543e6320 100644 --- a/chrome/browser/resources/settings/privacy_page/privacy_page_browser_proxy.ts +++ b/chrome/browser/resources/settings/privacy_page/privacy_page_browser_proxy.ts -@@ -46,7 +46,7 @@ export interface SecureDnsSetting { +@@ -54,7 +54,7 @@ export interface SecureDnsSetting { } export interface PrivacyPageBrowserProxy { @@ -11,7 +11,7 @@ index 6450085f7c924172bb077454015b865cd350a7be..11e30622c22529b568781a2514e28845 getMetricsReporting(): Promise; setMetricsReportingEnabled(enabled: boolean): void; -@@ -84,7 +84,7 @@ export interface PrivacyPageBrowserProxy { +@@ -92,7 +92,7 @@ export interface PrivacyPageBrowserProxy { } export class PrivacyPageBrowserProxyImpl implements PrivacyPageBrowserProxy { diff --git a/patches/chrome-browser-resources-settings-route.ts.patch b/patches/chrome-browser-resources-settings-route.ts.patch index 5015a9bc58e9..dbcbaf4c140b 100644 --- a/patches/chrome-browser-resources-settings-route.ts.patch +++ b/patches/chrome-browser-resources-settings-route.ts.patch @@ -1,20 +1,20 @@ diff --git a/chrome/browser/resources/settings/route.ts b/chrome/browser/resources/settings/route.ts -index ad75a39061a033b398018af1a23740202574e1fc..7fe39f2b3df0315098c574c974b6e9fc29436cf9 100644 +index fe29bca524ba0d36497fe3813f9cdf8ecc9bc389..bf7b164c8f6cabf013eb0c1e7b29ea3ee62e0ffe 100644 --- a/chrome/browser/resources/settings/route.ts +++ b/chrome/browser/resources/settings/route.ts -@@ -9,6 +9,7 @@ import {pageVisibility} from './page_visibility.js'; - import {Route, Router} from './router.js'; - import {SettingsRoutes} from './settings_routes.js'; +@@ -8,6 +8,7 @@ import {loadTimeData} from 'chrome://resources/js/load_time_data.js'; + import {pageVisibility} from './page_visibility.js'; + import {Route, Router, SettingsRoutes} from './router.js'; +import addBraveRoutes from './brave_routes.js' /** * Add all of the child routes that originate from the privacy route, * regardless of whether the privacy section under basic or advanced. -@@ -242,6 +243,7 @@ function createBrowserSettingsRoutes(): Partial { +@@ -255,6 +256,7 @@ function createBrowserSettingsRoutes(): SettingsRoutes { loadTimeData.getString('performancePageTitle')); } } + addBraveRoutes(r); - return r; + return r as unknown as SettingsRoutes; } diff --git a/patches/chrome-browser-resources-settings-router.ts.patch b/patches/chrome-browser-resources-settings-router.ts.patch new file mode 100644 index 000000000000..77569c07f948 --- /dev/null +++ b/patches/chrome-browser-resources-settings-router.ts.patch @@ -0,0 +1,12 @@ +diff --git a/chrome/browser/resources/settings/router.ts b/chrome/browser/resources/settings/router.ts +index 384f546685777b5366f7bfe60c991017e31a082e..e3313869fb4dd310861bf60333f4ea47c7363023 100644 +--- a/chrome/browser/resources/settings/router.ts ++++ b/chrome/browser/resources/settings/router.ts +@@ -98,6 +98,7 @@ export interface SettingsRoutes { + SYNC_ADVANCED: Route; + SYSTEM: Route; + TRIGGERED_RESET_DIALOG: Route; ++ GET_STARTED: Route; SHIELDS: Route; SOCIAL_BLOCKING: Route; REWARDS: Route; EXTENSIONS: Route; BRAVE_SYNC: Route; BRAVE_SYNC_SETUP: Route; BRAVE_IPFS: Route; BRAVE_WALLET: Route; BRAVE_WEB3: Route; BRAVE_HELP_TIPS: Route; BRAVE_NEW_TAB: Route; THEMES: Route; + } + + /** Class for navigable routes. */ diff --git a/patches/chrome-browser-resources-settings-settings.ts.patch b/patches/chrome-browser-resources-settings-settings.ts.patch index 867cfef68f0a..a75b4dd375bc 100644 --- a/patches/chrome-browser-resources-settings-settings.ts.patch +++ b/patches/chrome-browser-resources-settings-settings.ts.patch @@ -1,5 +1,5 @@ diff --git a/chrome/browser/resources/settings/settings.ts b/chrome/browser/resources/settings/settings.ts -index acd9c8edbbc9baac21323a677c40a98f886b80d4..b9a2c0aaa26ec281c8e13dd198db4dfef9227f60 100644 +index 9f33a751eb51b7cede4069f864528811a5d9c8c5..0645b957986eb954a960a426b590b61f890c44fc 100644 --- a/chrome/browser/resources/settings/settings.ts +++ b/chrome/browser/resources/settings/settings.ts @@ -2,6 +2,7 @@ diff --git a/patches/chrome-browser-resources-settings-settings_page-main_page_mixin.ts.patch b/patches/chrome-browser-resources-settings-settings_page-main_page_mixin.ts.patch index 47e6168ec593..8e7048c9e7d8 100644 --- a/patches/chrome-browser-resources-settings-settings_page-main_page_mixin.ts.patch +++ b/patches/chrome-browser-resources-settings-settings_page-main_page_mixin.ts.patch @@ -1,5 +1,5 @@ diff --git a/chrome/browser/resources/settings/settings_page/main_page_mixin.ts b/chrome/browser/resources/settings/settings_page/main_page_mixin.ts -index e4a17d852d3d39c6371cc91ea6bfa61fbf4ca67d..05f397997c42faee5e1b58e630026c1fe32f87c2 100644 +index 36c490c99a90e87b2c61b2130590fbb1e6a32a32..b9491548c08dceaa4a9cffee8c88011026ee9fa9 100644 --- a/chrome/browser/resources/settings/settings_page/main_page_mixin.ts +++ b/chrome/browser/resources/settings/settings_page/main_page_mixin.ts @@ -38,7 +38,7 @@ guestTopLevelRoute = routes.PRIVACY; diff --git a/patches/chrome-browser-resources-settings-settings_routes.ts.patch b/patches/chrome-browser-resources-settings-settings_routes.ts.patch deleted file mode 100644 index c35274310684..000000000000 --- a/patches/chrome-browser-resources-settings-settings_routes.ts.patch +++ /dev/null @@ -1,10 +0,0 @@ -diff --git a/chrome/browser/resources/settings/settings_routes.ts b/chrome/browser/resources/settings/settings_routes.ts -index 2bace34bfad3d4b592a15514f6a0075bd611ac72..72ed64ed0385be5c7141516e3cbbcc4ab76b9882 100644 ---- a/chrome/browser/resources/settings/settings_routes.ts -+++ b/chrome/browser/resources/settings/settings_routes.ts -@@ -89,4 +89,5 @@ export interface SettingsRoutes { - SYNC_ADVANCED: Route; - SYSTEM: Route; - TRIGGERED_RESET_DIALOG: Route; -+ GET_STARTED: Route; SHIELDS: Route; SOCIAL_BLOCKING: Route; REWARDS: Route; EXTENSIONS: Route; BRAVE_SYNC: Route; BRAVE_IPFS: Route; BRAVE_WALLET: Route; BRAVE_WEB3: Route; BRAVE_HELP_TIPS: Route; BRAVE_NEW_TAB: Route; THEMES: Route; - } diff --git a/patches/chrome-browser-resources-settings-site_settings-category_default_setting.ts.patch b/patches/chrome-browser-resources-settings-site_settings-category_default_setting.ts.patch index e26817158554..b63d5caf8b38 100644 --- a/patches/chrome-browser-resources-settings-site_settings-category_default_setting.ts.patch +++ b/patches/chrome-browser-resources-settings-site_settings-category_default_setting.ts.patch @@ -1,5 +1,5 @@ diff --git a/chrome/browser/resources/settings/site_settings/category_default_setting.ts b/chrome/browser/resources/settings/site_settings/category_default_setting.ts -index 2f2f1de67e4f9d4e07b8aa97c7860c1ded6f27fe..b37b06c35bf7d1dd4d4fc6ae0534709f75d7909f 100644 +index 23ca13f050103ec396f8e3d73e03492475182dcf..58c6628fbb8248fd02e78d404155dac089c4e38b 100644 --- a/chrome/browser/resources/settings/site_settings/category_default_setting.ts +++ b/chrome/browser/resources/settings/site_settings/category_default_setting.ts @@ -184,6 +184,7 @@ export class CategoryDefaultSettingElement extends diff --git a/patches/chrome-browser-resources-settings-site_settings-constants.ts.patch b/patches/chrome-browser-resources-settings-site_settings-constants.ts.patch index 3a8f0cf449e6..0235936d87be 100644 --- a/patches/chrome-browser-resources-settings-site_settings-constants.ts.patch +++ b/patches/chrome-browser-resources-settings-site_settings-constants.ts.patch @@ -1,11 +1,11 @@ diff --git a/chrome/browser/resources/settings/site_settings/constants.ts b/chrome/browser/resources/settings/site_settings/constants.ts -index 4b5c3ba6ffe222098e2c7831cde47e4eff2b8d42..bb1658e65a638501cd2eec9312d82a9d8b1984d8 100644 +index 3e33bc32e4415928725e79305866b6e80eaa454b..4792f21c054180f80c0baa1bd9dda626fd9827af 100644 --- a/chrome/browser/resources/settings/site_settings/constants.ts +++ b/chrome/browser/resources/settings/site_settings/constants.ts -@@ -47,6 +47,7 @@ export enum ContentSettingsTypes { - // The following item is not in the C++ kContentSettingsTypeGroupNames, but it - // is used everywhere where ContentSettingsTypes is used in JS. +@@ -50,6 +50,7 @@ export enum ContentSettingsTypes { + // are used everywhere where ContentSettingsTypes is used in JS. PDF_DOCUMENTS = 'pdfDocuments', + SITE_DATA = 'site-data', + AUTOPLAY = 'autoplay', ETHEREUM = 'ethereum', SOLANA = 'solana', BRAVE_SHIELDS = 'braveShields', GOOGLE_SIGN_IN = 'googleSignIn', } diff --git a/patches/chrome-browser-resources-settings-site_settings_page-site_settings_page.ts.patch b/patches/chrome-browser-resources-settings-site_settings_page-site_settings_page.ts.patch index 96e8587f5df4..fc58091a164f 100644 --- a/patches/chrome-browser-resources-settings-site_settings_page-site_settings_page.ts.patch +++ b/patches/chrome-browser-resources-settings-site_settings_page-site_settings_page.ts.patch @@ -1,5 +1,5 @@ diff --git a/chrome/browser/resources/settings/site_settings_page/site_settings_page.ts b/chrome/browser/resources/settings/site_settings_page/site_settings_page.ts -index 7e998696f6e476a0fc7840eafd9626a039fe8ca3..47d0e1629dbdface8a20c1d0a9348d75fe787913 100644 +index b562f3f3de3b7f7b931b93dcd4fb51ae484f99b8..55b823c30df84fce8b4fd67727866a1f9a8331f0 100644 --- a/chrome/browser/resources/settings/site_settings_page/site_settings_page.ts +++ b/chrome/browser/resources/settings/site_settings_page/site_settings_page.ts @@ -8,6 +8,7 @@ diff --git a/patches/chrome-browser-resources-signin-profile_picker-profile_picker.ts.patch b/patches/chrome-browser-resources-signin-profile_picker-profile_picker.ts.patch index a090e56bb23f..18baf701a5fa 100644 --- a/patches/chrome-browser-resources-signin-profile_picker-profile_picker.ts.patch +++ b/patches/chrome-browser-resources-signin-profile_picker-profile_picker.ts.patch @@ -1,5 +1,5 @@ diff --git a/chrome/browser/resources/signin/profile_picker/profile_picker.ts b/chrome/browser/resources/signin/profile_picker/profile_picker.ts -index 17be6261ef877c0c23ce38d7ab09036e30354b3d..3e0b1757b0f24f9480d682f46568e6cbf0fd3138 100644 +index a034b5ea61ddf7330fac06aab88efc3d7b742303..d8b4465cd96582c54893cccf635b957cb3b5be08 100644 --- a/chrome/browser/resources/signin/profile_picker/profile_picker.ts +++ b/chrome/browser/resources/signin/profile_picker/profile_picker.ts @@ -2,6 +2,7 @@ @@ -7,6 +7,6 @@ index 17be6261ef877c0c23ce38d7ab09036e30354b3d..3e0b1757b0f24f9480d682f46568e6cb // found in the LICENSE file. +import 'chrome://resources/polymer_overriding.js' - export {loadTimeData} from 'chrome://resources/js/load_time_data.m.js'; + export {loadTimeData} from 'chrome://resources/js/load_time_data.js'; export {ensureLazyLoaded} from './ensure_lazy_loaded.js'; export {AutogeneratedThemeColorInfo, ManageProfilesBrowserProxy, ManageProfilesBrowserProxyImpl, ProfileState, UserThemeChoice} from './manage_profiles_browser_proxy.js'; diff --git a/patches/chrome-browser-resources-signin-profile_picker-profile_picker_main_view.ts.patch b/patches/chrome-browser-resources-signin-profile_picker-profile_picker_main_view.ts.patch index f3448f7d762b..aaee7c067774 100644 --- a/patches/chrome-browser-resources-signin-profile_picker-profile_picker_main_view.ts.patch +++ b/patches/chrome-browser-resources-signin-profile_picker-profile_picker_main_view.ts.patch @@ -1,12 +1,12 @@ diff --git a/chrome/browser/resources/signin/profile_picker/profile_picker_main_view.ts b/chrome/browser/resources/signin/profile_picker/profile_picker_main_view.ts -index 562e410db22fc0e1d9dc4edec11be1298e32f2f8..3fb00ff2df4b050dde9cf450ed7c426f6d1e4ee9 100644 +index 89360107e0f0b3b6398bdfd8bfcd5aaec0a5de33..93fae620d89e47056b5eaf0136efe587086421ef 100644 --- a/chrome/browser/resources/signin/profile_picker/profile_picker_main_view.ts +++ b/chrome/browser/resources/signin/profile_picker/profile_picker_main_view.ts -@@ -95,6 +95,7 @@ export class ProfilePickerMainViewElement extends +@@ -96,6 +96,7 @@ export class ProfilePickerMainViewElement extends if (!isProfileCreationAllowed()) { this.$.addProfile.style.display = 'none'; } + this.$.addProfile.style.borderRadius = '8px'; - } - override connectedCallback() { + this.addEventListener('view-enter-finish', this.onViewEnterFinish_); + } diff --git a/patches/chrome-browser-shell_integration.h.patch b/patches/chrome-browser-shell_integration.h.patch index 631f95fd2687..5f87a23fae32 100644 --- a/patches/chrome-browser-shell_integration.h.patch +++ b/patches/chrome-browser-shell_integration.h.patch @@ -1,8 +1,8 @@ diff --git a/chrome/browser/shell_integration.h b/chrome/browser/shell_integration.h -index 6385833bbdad93e13701ae4e0656a533cca38fff..2eb86bdfc7e5d95771a2fb9e9c60e6b29ccafd3c 100644 +index ac58e8cb287ec924d06d3acefdc1932880e90a8a..3abc296b80df992688c7d23b742ff2f45e70d07c 100644 --- a/chrome/browser/shell_integration.h +++ b/chrome/browser/shell_integration.h -@@ -249,6 +249,7 @@ class DefaultBrowserWorker : public DefaultWebClientWorker { +@@ -253,6 +253,7 @@ class DefaultBrowserWorker : public DefaultWebClientWorker { DefaultBrowserWorker(const DefaultBrowserWorker&) = delete; DefaultBrowserWorker& operator=(const DefaultBrowserWorker&) = delete; diff --git a/patches/chrome-browser-spellchecker-spellcheck_hunspell_dictionary.cc.patch b/patches/chrome-browser-spellchecker-spellcheck_hunspell_dictionary.cc.patch index 855bb2c6bce1..9c64007029e7 100644 --- a/patches/chrome-browser-spellchecker-spellcheck_hunspell_dictionary.cc.patch +++ b/patches/chrome-browser-spellchecker-spellcheck_hunspell_dictionary.cc.patch @@ -1,8 +1,8 @@ diff --git a/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc b/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc -index 6bb7c9948ea58a7579f1b4d82edba889163df938..d5ef12ec154ad99e9049a8ef1738582405682db5 100644 +index c331a7935eb07152c706c7e2bfc20cd29a33dfd2..ac96cd2f13420e73da455728a3f21e9f875dafa2 100644 --- a/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc +++ b/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc -@@ -279,7 +279,7 @@ GURL SpellcheckHunspellDictionary::GetDictionaryURL() { +@@ -277,7 +277,7 @@ GURL SpellcheckHunspellDictionary::GetDictionaryURL() { DCHECK(!bdict_file.empty()); static const char kDownloadServerUrl[] = diff --git a/patches/chrome-browser-sync-sync_service_factory.cc.patch b/patches/chrome-browser-sync-sync_service_factory.cc.patch index 970cecf7ec97..0a139ca59dcf 100644 --- a/patches/chrome-browser-sync-sync_service_factory.cc.patch +++ b/patches/chrome-browser-sync-sync_service_factory.cc.patch @@ -1,8 +1,8 @@ diff --git a/chrome/browser/sync/sync_service_factory.cc b/chrome/browser/sync/sync_service_factory.cc -index 1598ab3cbf4500710e79cf8edc9dd2d32cee027c..c6f41b76189f3e1cb57eb5085538688032fefd88 100644 +index 6aedbbd29d15a14576acf68f6844399704aa2a32..255eff287f14355a598ee7e731f96ccb352ff644 100644 --- a/chrome/browser/sync/sync_service_factory.cc +++ b/chrome/browser/sync/sync_service_factory.cc -@@ -166,7 +166,7 @@ std::unique_ptr BuildSyncService( +@@ -172,7 +172,7 @@ std::unique_ptr BuildSyncService( } auto sync_service = diff --git a/patches/chrome-browser-ui-BUILD.gn.patch b/patches/chrome-browser-ui-BUILD.gn.patch index 8831a0c9ff9b..a50d7747f9ac 100644 --- a/patches/chrome-browser-ui-BUILD.gn.patch +++ b/patches/chrome-browser-ui-BUILD.gn.patch @@ -1,8 +1,8 @@ diff --git a/chrome/browser/ui/BUILD.gn b/chrome/browser/ui/BUILD.gn -index 57133a0b9c92a6080bce58578918ad07ed94b6fb..693766377cb9927425d42b2879f924addde0d849 100644 +index 932388c3288896094d1e77c2dab602fc70348abe..9e21bab162e9402505a598dd705d4a59e9882b73 100644 --- a/chrome/browser/ui/BUILD.gn +++ b/chrome/browser/ui/BUILD.gn -@@ -668,6 +668,7 @@ static_library("ui") { +@@ -666,6 +666,7 @@ static_library("ui") { "//ui/webui", "//v8:v8_version", ] @@ -10,7 +10,7 @@ index 57133a0b9c92a6080bce58578918ad07ed94b6fb..693766377cb9927425d42b2879f924ad # TODO(crbug/925153): Remove this circular dependency. allow_circular_includes_from = [ -@@ -4001,10 +4002,13 @@ static_library("ui") { +@@ -4012,10 +4013,13 @@ static_library("ui") { ] deps += [ "//google_update" ] } else { diff --git a/patches/chrome-browser-ui-android-appmenu-internal-BUILD.gn.patch b/patches/chrome-browser-ui-android-appmenu-internal-BUILD.gn.patch index b712a75c3948..86a46baa9e4f 100644 --- a/patches/chrome-browser-ui-android-appmenu-internal-BUILD.gn.patch +++ b/patches/chrome-browser-ui-android-appmenu-internal-BUILD.gn.patch @@ -1,5 +1,5 @@ diff --git a/chrome/browser/ui/android/appmenu/internal/BUILD.gn b/chrome/browser/ui/android/appmenu/internal/BUILD.gn -index 08b92a1712f17664e684e2d365d4512f17358a10..0b975f79c46c42bb23e4f9299b3431ace7b83f6f 100644 +index d1f2ef120348297ebd98810dd0e6218c5df628bb..ff202a170703848db6b63bb9663824905a89f886 100644 --- a/chrome/browser/ui/android/appmenu/internal/BUILD.gn +++ b/chrome/browser/ui/android/appmenu/internal/BUILD.gn @@ -21,6 +21,7 @@ android_library("java") { diff --git a/patches/chrome-browser-ui-android-appmenu-internal-java-src-org-chromium-chrome-browser-ui-appmenu-AppMenu.java.patch b/patches/chrome-browser-ui-android-appmenu-internal-java-src-org-chromium-chrome-browser-ui-appmenu-AppMenu.java.patch index ffb1b42a4a72..9a3376bc42a8 100644 --- a/patches/chrome-browser-ui-android-appmenu-internal-java-src-org-chromium-chrome-browser-ui-appmenu-AppMenu.java.patch +++ b/patches/chrome-browser-ui-android-appmenu-internal-java-src-org-chromium-chrome-browser-ui-appmenu-AppMenu.java.patch @@ -1,8 +1,8 @@ diff --git a/chrome/browser/ui/android/appmenu/internal/java/src/org/chromium/chrome/browser/ui/appmenu/AppMenu.java b/chrome/browser/ui/android/appmenu/internal/java/src/org/chromium/chrome/browser/ui/appmenu/AppMenu.java -index b0de8e5672c922b4a36a4dc2175813536db1f82c..e1886d04627e612b25b2113db4663e76c37b8a3e 100644 +index fbbc57577be59a8bc7cd4045b622331214237600..76d23b34a5249898f3ac694acf5672b690cbe741 100644 --- a/chrome/browser/ui/android/appmenu/internal/java/src/org/chromium/chrome/browser/ui/appmenu/AppMenu.java +++ b/chrome/browser/ui/android/appmenu/internal/java/src/org/chromium/chrome/browser/ui/appmenu/AppMenu.java -@@ -225,6 +225,7 @@ class AppMenu implements OnItemClickListener, OnKeyListener, AppMenuClickHandler +@@ -220,6 +220,7 @@ class AppMenu implements OnItemClickListener, OnKeyListener, AppMenuClickHandler mPopup.setAnimationStyle( isMenuIconAtStart ? R.style.StartIconMenuAnim : R.style.EndIconMenuAnim); } diff --git a/patches/chrome-browser-ui-android-toolbar-BUILD.gn.patch b/patches/chrome-browser-ui-android-toolbar-BUILD.gn.patch index 8feb99dd5a6f..5e796fbec4e0 100644 --- a/patches/chrome-browser-ui-android-toolbar-BUILD.gn.patch +++ b/patches/chrome-browser-ui-android-toolbar-BUILD.gn.patch @@ -1,5 +1,5 @@ diff --git a/chrome/browser/ui/android/toolbar/BUILD.gn b/chrome/browser/ui/android/toolbar/BUILD.gn -index 2f24c59bd46e2d7a53e7382526399cef5794dada..d9662533bf45d11236a9c50263de2ff069199b74 100644 +index 1b4476d5fafe35caa001131fa590c317a015d440..e0d764bf793dd26500e563fa5581aebbd4a5c97a 100644 --- a/chrome/browser/ui/android/toolbar/BUILD.gn +++ b/chrome/browser/ui/android/toolbar/BUILD.gn @@ -110,6 +110,7 @@ android_library("java") { diff --git a/patches/chrome-browser-ui-android-toolbar-java-src-org-chromium-chrome-browser-toolbar-top-ToolbarPhone.java.patch b/patches/chrome-browser-ui-android-toolbar-java-src-org-chromium-chrome-browser-toolbar-top-ToolbarPhone.java.patch index d257cd1ea76c..eb4a7e88712f 100644 --- a/patches/chrome-browser-ui-android-toolbar-java-src-org-chromium-chrome-browser-toolbar-top-ToolbarPhone.java.patch +++ b/patches/chrome-browser-ui-android-toolbar-java-src-org-chromium-chrome-browser-toolbar-top-ToolbarPhone.java.patch @@ -1,5 +1,5 @@ diff --git a/chrome/browser/ui/android/toolbar/java/src/org/chromium/chrome/browser/toolbar/top/ToolbarPhone.java b/chrome/browser/ui/android/toolbar/java/src/org/chromium/chrome/browser/toolbar/top/ToolbarPhone.java -index bca927c701800b57ed12de030b231610ded7a658..ef1d0f76fb9812bcb6c0386f352a87bbbeda80c0 100644 +index c46f2e7d7f9428ee62ff675a536d8ad3171e5421..0b1d9adc3be698a38bef8876740f4fa4ce9407f6 100644 --- a/chrome/browser/ui/android/toolbar/java/src/org/chromium/chrome/browser/toolbar/top/ToolbarPhone.java +++ b/chrome/browser/ui/android/toolbar/java/src/org/chromium/chrome/browser/toolbar/top/ToolbarPhone.java @@ -395,6 +395,7 @@ public class ToolbarPhone extends ToolbarLayout implements OnClickListener, TabC @@ -18,7 +18,7 @@ index bca927c701800b57ed12de030b231610ded7a658..ef1d0f76fb9812bcb6c0386f352a87bb } @Override -@@ -1015,6 +1017,7 @@ public class ToolbarPhone extends ToolbarLayout implements OnClickListener, TabC +@@ -1016,6 +1018,7 @@ public class ToolbarPhone extends ToolbarLayout implements OnClickListener, TabC * New Tab Page. */ private void updateLocationBarLayoutForExpansionAnimation() { @@ -26,7 +26,7 @@ index bca927c701800b57ed12de030b231610ded7a658..ef1d0f76fb9812bcb6c0386f352a87bb TraceEvent.begin("ToolbarPhone.updateLocationBarLayoutForExpansionAnimation"); if (mOptimizationsEnabled && isInTabSwitcherMode()) return; -@@ -1325,6 +1328,7 @@ public class ToolbarPhone extends ToolbarLayout implements OnClickListener, TabC +@@ -1326,6 +1329,7 @@ public class ToolbarPhone extends ToolbarLayout implements OnClickListener, TabC canvas.restore(); } @@ -34,7 +34,7 @@ index bca927c701800b57ed12de030b231610ded7a658..ef1d0f76fb9812bcb6c0386f352a87bb // Draw the tab stack button and associated text if necessary. if (mTabSwitcherAnimationTabStackDrawable != null && mToggleTabStackButton != null && mUrlExpansionFraction != 1f) { -@@ -2055,6 +2059,7 @@ public class ToolbarPhone extends ToolbarLayout implements OnClickListener, TabC +@@ -2068,6 +2072,7 @@ public class ToolbarPhone extends ToolbarLayout implements OnClickListener, TabC } else { populateUrlClearExpansionAnimatorSet(animators); } diff --git a/patches/chrome-browser-ui-android-toolbar-java-src-org-chromium-chrome-browser-toolbar-top-ToolbarTablet.java.patch b/patches/chrome-browser-ui-android-toolbar-java-src-org-chromium-chrome-browser-toolbar-top-ToolbarTablet.java.patch index fbc30ee68bbb..c70da5652708 100644 --- a/patches/chrome-browser-ui-android-toolbar-java-src-org-chromium-chrome-browser-toolbar-top-ToolbarTablet.java.patch +++ b/patches/chrome-browser-ui-android-toolbar-java-src-org-chromium-chrome-browser-toolbar-top-ToolbarTablet.java.patch @@ -1,5 +1,5 @@ diff --git a/chrome/browser/ui/android/toolbar/java/src/org/chromium/chrome/browser/toolbar/top/ToolbarTablet.java b/chrome/browser/ui/android/toolbar/java/src/org/chromium/chrome/browser/toolbar/top/ToolbarTablet.java -index dcf9b9f88b88cb14ed0797b43e6719452d2180b3..502b3b8a191f7256b1a0ca8aaf031d6d6fd0910a 100644 +index 19b92b406c56d6909386b8eed4ea2624f4c8544a..eb22a7e29a02ace9622ce515a6b7d44b32b7d97a 100644 --- a/chrome/browser/ui/android/toolbar/java/src/org/chromium/chrome/browser/toolbar/top/ToolbarTablet.java +++ b/chrome/browser/ui/android/toolbar/java/src/org/chromium/chrome/browser/toolbar/top/ToolbarTablet.java @@ -353,10 +353,12 @@ public class ToolbarTablet diff --git a/patches/chrome-browser-ui-browser.cc.patch b/patches/chrome-browser-ui-browser.cc.patch index 508577293b36..06c7199180f4 100644 --- a/patches/chrome-browser-ui-browser.cc.patch +++ b/patches/chrome-browser-ui-browser.cc.patch @@ -1,8 +1,8 @@ diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc -index f0789647f62c8cfa8bef0eff8dd1a8a25cdf3af3..a7539749c37abd8bb2b0ac4f3fd8a26ddc793446 100644 +index 5f4092a34b16084368af523530920bace4503808..5d24ce83fa37f9b13a3285650799fa8d8172a195 100644 --- a/chrome/browser/ui/browser.cc +++ b/chrome/browser/ui/browser.cc -@@ -449,6 +449,7 @@ Browser* Browser::Create(const CreateParams& params) { +@@ -452,6 +452,7 @@ Browser* Browser::Create(const CreateParams& params) { // not possible, e.g. using the wrong profile or during shutdown. The caller // should handle this; see e.g. crbug.com/1141608 and crbug.com/1261628. CHECK_EQ(CreationStatus::kOk, GetCreationStatusForProfile(params.profile)); @@ -10,7 +10,7 @@ index f0789647f62c8cfa8bef0eff8dd1a8a25cdf3af3..a7539749c37abd8bb2b0ac4f3fd8a26d return new Browser(params); } -@@ -459,7 +460,7 @@ Browser::Browser(const CreateParams& params) +@@ -462,7 +463,7 @@ Browser::Browser(const CreateParams& params) window_(nullptr), tab_strip_model_delegate_( std::make_unique(this)), diff --git a/patches/chrome-browser-ui-browser_navigator.cc.patch b/patches/chrome-browser-ui-browser_navigator.cc.patch index 05923d7d8b76..ea4038e595c1 100644 --- a/patches/chrome-browser-ui-browser_navigator.cc.patch +++ b/patches/chrome-browser-ui-browser_navigator.cc.patch @@ -1,8 +1,8 @@ diff --git a/chrome/browser/ui/browser_navigator.cc b/chrome/browser/ui/browser_navigator.cc -index 6048fa087031e5769066234aa222f4a6affb1469..8989a1ba142496cba40401ef78985b3f5ca3c2a9 100644 +index abe8e2d792d539c8f550e646820f266f57debf53..8716b4b9a94c409fe5783fd7e1487aa17fdb2aca 100644 --- a/chrome/browser/ui/browser_navigator.cc +++ b/chrome/browser/ui/browser_navigator.cc -@@ -592,6 +592,7 @@ base::WeakPtr Navigate(NavigateParams* params) { +@@ -595,6 +595,7 @@ base::WeakPtr Navigate(NavigateParams* params) { // Block any navigation requests in locked fullscreen mode. return nullptr; } @@ -10,7 +10,7 @@ index 6048fa087031e5769066234aa222f4a6affb1469..8989a1ba142496cba40401ef78985b3f // Open System Apps in their standalone window if necessary. // TODO(crbug.com/1096345): Remove this code after we integrate with intent -@@ -885,6 +886,7 @@ base::WeakPtr Navigate(NavigateParams* params) { +@@ -890,6 +891,7 @@ base::WeakPtr Navigate(NavigateParams* params) { bool IsHostAllowedInIncognito(const GURL& url) { std::string scheme = url.scheme(); base::StringPiece host = url.host_piece(); diff --git a/patches/chrome-browser-ui-chrome_pages.cc.patch b/patches/chrome-browser-ui-chrome_pages.cc.patch index aad8f4c59509..f34cf0652bc0 100644 --- a/patches/chrome-browser-ui-chrome_pages.cc.patch +++ b/patches/chrome-browser-ui-chrome_pages.cc.patch @@ -1,8 +1,8 @@ diff --git a/chrome/browser/ui/chrome_pages.cc b/chrome/browser/ui/chrome_pages.cc -index 8ce93783882a5c5a09b10bdc1a8f2593b8c4ea86..7ac018da5689d3af7d89abe5f21bd682c0329780 100644 +index fcaaaa05da054877a361bcc59c8bbb80143485cf..cc7ac1cdbba58a4710ec3fff244b4df20bc05e20 100644 --- a/chrome/browser/ui/chrome_pages.cc +++ b/chrome/browser/ui/chrome_pages.cc -@@ -343,7 +343,7 @@ void ShowSlow(Browser* browser) { +@@ -344,7 +344,7 @@ void ShowSlow(Browser* browser) { #endif } diff --git a/patches/chrome-browser-ui-color-BUILD.gn.patch b/patches/chrome-browser-ui-color-BUILD.gn.patch index 96ccf197644b..ed5048b227a5 100644 --- a/patches/chrome-browser-ui-color-BUILD.gn.patch +++ b/patches/chrome-browser-ui-color-BUILD.gn.patch @@ -1,5 +1,5 @@ diff --git a/chrome/browser/ui/color/BUILD.gn b/chrome/browser/ui/color/BUILD.gn -index faaaab13bf6987f63b265a4e3db71d3ce385df28..7d947a163ce90b277ced78e813cebbdcb1e81456 100644 +index be0fad67cb8b89f6e740b975000b0a6692412cb8..87b7e6cfe8f5047d11879fcee34c285aaac97aca 100644 --- a/chrome/browser/ui/color/BUILD.gn +++ b/chrome/browser/ui/color/BUILD.gn @@ -42,6 +42,7 @@ source_set("mixers") { diff --git a/patches/chrome-browser-ui-dialogs-outdated_upgrade_bubble.cc.patch b/patches/chrome-browser-ui-dialogs-outdated_upgrade_bubble.cc.patch index 1d4fcb85a687..8b31643acbea 100644 --- a/patches/chrome-browser-ui-dialogs-outdated_upgrade_bubble.cc.patch +++ b/patches/chrome-browser-ui-dialogs-outdated_upgrade_bubble.cc.patch @@ -1,8 +1,8 @@ diff --git a/chrome/browser/ui/dialogs/outdated_upgrade_bubble.cc b/chrome/browser/ui/dialogs/outdated_upgrade_bubble.cc -index c28befcb3b7bedb824f11c7637c6404c7ce8aa7c..0a89e05f28cb1e35f5934f154e31b4f3a65b6edf 100644 +index 598436e3f4d41c67845d1249e01b1b958461d6eb..8eaa09f925d55f2797a5d57ea6dc50ba5d358afb 100644 --- a/chrome/browser/ui/dialogs/outdated_upgrade_bubble.cc +++ b/chrome/browser/ui/dialogs/outdated_upgrade_bubble.cc -@@ -42,6 +42,8 @@ constexpr int kNumIgnoredBuckets = 5; +@@ -35,6 +35,8 @@ namespace { // we redirect to the safetyCheck page that interacts with these. On other // platforms it may be possible to download an updated browser via a site. const char* kUpdateBrowserRedirectUrl = @@ -11,7 +11,7 @@ index c28befcb3b7bedb824f11c7637c6404c7ce8aa7c..0a89e05f28cb1e35f5934f154e31b4f3 #if BUILDFLAG(IS_CHROMEOS_LACROS) // The URL to be used to update Lacros-Chrome when auto-update failed // for too long. -@@ -51,6 +53,7 @@ const char* kUpdateBrowserRedirectUrl = +@@ -44,6 +46,7 @@ const char* kUpdateBrowserRedirectUrl = // too long. "https://www.google.com/chrome"; #endif diff --git a/patches/chrome-browser-ui-startup-startup_browser_creator_impl.cc.patch b/patches/chrome-browser-ui-startup-startup_browser_creator_impl.cc.patch index 73762dd30b4b..f7db667e474d 100644 --- a/patches/chrome-browser-ui-startup-startup_browser_creator_impl.cc.patch +++ b/patches/chrome-browser-ui-startup-startup_browser_creator_impl.cc.patch @@ -1,8 +1,8 @@ diff --git a/chrome/browser/ui/startup/startup_browser_creator_impl.cc b/chrome/browser/ui/startup/startup_browser_creator_impl.cc -index 8cae23dbdf22fd75e675df444eef31012276b19d..1d9f1e35f2e346c1e35a70fba0ae493e15e9e4b2 100644 +index 0268e498ff2dbe82bf1d1d99163f36aa202d63ad..fa92e34f3f1d39558d7c6d86136477b223244dcc 100644 --- a/chrome/browser/ui/startup/startup_browser_creator_impl.cc +++ b/chrome/browser/ui/startup/startup_browser_creator_impl.cc -@@ -398,6 +398,7 @@ StartupBrowserCreatorImpl::DetermineURLsAndLaunch( +@@ -413,6 +413,7 @@ StartupBrowserCreatorImpl::DetermineURLsAndLaunch( #elif !BUILDFLAG(IS_CHROMEOS_ASH) welcome_enabled = welcome::IsEnabled(profile_) && welcome::HasModulesToShow(profile_); diff --git a/patches/chrome-browser-ui-tab_helpers.cc.patch b/patches/chrome-browser-ui-tab_helpers.cc.patch index 2dc9094a5d15..78cde8f88fc3 100644 --- a/patches/chrome-browser-ui-tab_helpers.cc.patch +++ b/patches/chrome-browser-ui-tab_helpers.cc.patch @@ -1,8 +1,8 @@ diff --git a/chrome/browser/ui/tab_helpers.cc b/chrome/browser/ui/tab_helpers.cc -index 4b567389677bf4317392f4fbafacd7a6ef0aa618..237f8240308b9599e032a6955ce88435185c7d93 100644 +index d1f7fc57b3226f2caf3b709d127c777043504d3b..60183cf6e3c97cc4218d089cc1f18d34f0a25df2 100644 --- a/chrome/browser/ui/tab_helpers.cc +++ b/chrome/browser/ui/tab_helpers.cc -@@ -669,4 +669,5 @@ void TabHelpers::AttachTabHelpers(WebContents* web_contents) { +@@ -644,4 +644,5 @@ void TabHelpers::AttachTabHelpers(WebContents* web_contents) { // This is common code for all of us. PLEASE DO YOUR PART to keep it tidy and // organized. diff --git a/patches/chrome-browser-ui-tabs-tab_strip_model.h.patch b/patches/chrome-browser-ui-tabs-tab_strip_model.h.patch index 65accff23eaf..d28b43a1084a 100644 --- a/patches/chrome-browser-ui-tabs-tab_strip_model.h.patch +++ b/patches/chrome-browser-ui-tabs-tab_strip_model.h.patch @@ -1,8 +1,8 @@ diff --git a/chrome/browser/ui/tabs/tab_strip_model.h b/chrome/browser/ui/tabs/tab_strip_model.h -index 6788ae30d7dad86807f3312f27fb4e70317b0e3b..024702c8c15faffd8325fa073e5136d40bfa7958 100644 +index 8d241fdf774d2d885dae5f5d8b03d975b46d7f74..5c67b4cbbbcf31fe6044302b633beea5a8a49673 100644 --- a/chrome/browser/ui/tabs/tab_strip_model.h +++ b/chrome/browser/ui/tabs/tab_strip_model.h -@@ -576,6 +576,7 @@ class TabStripModel : public TabGroupController { +@@ -579,6 +579,7 @@ class TabStripModel : public TabGroupController { // Serialise this object into a trace. void WriteIntoTrace(perfetto::TracedValue context) const; diff --git a/patches/chrome-browser-ui-toolbar-chrome_location_bar_model_delegate.h.patch b/patches/chrome-browser-ui-toolbar-chrome_location_bar_model_delegate.h.patch index 03ea2dac2f67..05c017bfa7e1 100644 --- a/patches/chrome-browser-ui-toolbar-chrome_location_bar_model_delegate.h.patch +++ b/patches/chrome-browser-ui-toolbar-chrome_location_bar_model_delegate.h.patch @@ -1,8 +1,8 @@ diff --git a/chrome/browser/ui/toolbar/chrome_location_bar_model_delegate.h b/chrome/browser/ui/toolbar/chrome_location_bar_model_delegate.h -index 9650d891c1572196cc57f5b5b694a9cbf2c83360..e6340b92e69876da29ea9ecc39b9182280715589 100644 +index 8afbe8994d86a05c10ec92ac60f6f6db0899b36d..f7137304149e249a84a44cce96a0b900f34535cc 100644 --- a/chrome/browser/ui/toolbar/chrome_location_bar_model_delegate.h +++ b/chrome/browser/ui/toolbar/chrome_location_bar_model_delegate.h -@@ -64,6 +64,7 @@ class ChromeLocationBarModelDelegate : public LocationBarModelDelegate { +@@ -63,6 +63,7 @@ class ChromeLocationBarModelDelegate : public LocationBarModelDelegate { // Helper method to get the navigation entry from the navigation controller. content::NavigationEntry* GetNavigationEntry() const; diff --git a/patches/chrome-browser-ui-toolbar-recent_tabs_sub_menu_model.cc.patch b/patches/chrome-browser-ui-toolbar-recent_tabs_sub_menu_model.cc.patch index 51a18011edd6..e343ac8d8d0f 100644 --- a/patches/chrome-browser-ui-toolbar-recent_tabs_sub_menu_model.cc.patch +++ b/patches/chrome-browser-ui-toolbar-recent_tabs_sub_menu_model.cc.patch @@ -1,5 +1,5 @@ diff --git a/chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc b/chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc -index eb31c740b7ab8f40479a6bd67c49a18f1b239004..2566152d4eedcd0e5d5a237fdbe261ae0a554ee5 100644 +index 432868354db241d36ee41e9e5ca191edfb504670..3ecc839ad67d3f7f2845476a39fc9080a5c5a0c9 100644 --- a/chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc +++ b/chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc @@ -465,6 +465,8 @@ void RecentTabsSubMenuModel::BuildTabsFromOtherDevices() { diff --git a/patches/chrome-browser-ui-toolbar-recent_tabs_sub_menu_model.h.patch b/patches/chrome-browser-ui-toolbar-recent_tabs_sub_menu_model.h.patch index 8ceed7bdbfd6..d8857e21a273 100644 --- a/patches/chrome-browser-ui-toolbar-recent_tabs_sub_menu_model.h.patch +++ b/patches/chrome-browser-ui-toolbar-recent_tabs_sub_menu_model.h.patch @@ -1,5 +1,5 @@ diff --git a/chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.h b/chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.h -index e37f57270399ed2def9c4615f1a00e1495159bf8..cfa0ddbd789f07b7b8f02849dd2bc1cfea506229 100644 +index 4067c3d35ae1f7078216ef5c7e3959119eaf1b10..f47abf151b042e6f35c25bb1164303b583b78e38 100644 --- a/chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.h +++ b/chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.h @@ -85,6 +85,7 @@ class RecentTabsSubMenuModel : public ui::SimpleMenuModel, diff --git a/patches/chrome-browser-ui-views-bookmarks-bookmark_bar_view.cc.patch b/patches/chrome-browser-ui-views-bookmarks-bookmark_bar_view.cc.patch index 2ea067318a7e..9bac1b4c9526 100644 --- a/patches/chrome-browser-ui-views-bookmarks-bookmark_bar_view.cc.patch +++ b/patches/chrome-browser-ui-views-bookmarks-bookmark_bar_view.cc.patch @@ -1,8 +1,8 @@ diff --git a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc -index 224bd1a4d300a7116ecf1e319235b5bf25882edd..d06b87a4531880d6736072d3e603f96e54d20aae 100644 +index 6c2e7da1b4990c59286d57eeaaf69e3991039766..f10520bb5efc920cbde858065a10af12e4308a20 100644 --- a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc +++ b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc -@@ -856,6 +856,7 @@ void BookmarkBarView::Layout() { +@@ -853,6 +853,7 @@ void BookmarkBarView::Layout() { x = next_x; } } diff --git a/patches/chrome-browser-ui-views-bookmarks-bookmark_bubble_view.cc.patch b/patches/chrome-browser-ui-views-bookmarks-bookmark_bubble_view.cc.patch index 4f4376f3a2f3..31ea70dc0b6b 100644 --- a/patches/chrome-browser-ui-views-bookmarks-bookmark_bubble_view.cc.patch +++ b/patches/chrome-browser-ui-views-bookmarks-bookmark_bubble_view.cc.patch @@ -1,8 +1,8 @@ diff --git a/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc b/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc -index 8b3bb9ad459b7e61b1f05de0ef2c2afae900bd49..44f5eb8364646f227b0a96e9fc780e2c2caba5ba 100644 +index 9e653a8596eb4d143ac67ebe6982f979eaa48a97..c313db66032b4221ed369949feb387776595956e 100644 --- a/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc +++ b/chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc -@@ -260,6 +260,7 @@ void BookmarkBubbleView::ShowBubble( +@@ -263,6 +263,7 @@ void BookmarkBubbleView::ShowBubble( dialog_model_builder.Build(), anchor_view, views::BubbleBorder::TOP_RIGHT); bookmark_bubble_ = bubble.get(); diff --git a/patches/chrome-browser-ui-views-download-download_item_view.h.patch b/patches/chrome-browser-ui-views-download-download_item_view.h.patch index c88490e63c13..b7821bf1c833 100644 --- a/patches/chrome-browser-ui-views-download-download_item_view.h.patch +++ b/patches/chrome-browser-ui-views-download-download_item_view.h.patch @@ -1,8 +1,8 @@ diff --git a/chrome/browser/ui/views/download/download_item_view.h b/chrome/browser/ui/views/download/download_item_view.h -index a9fd8f718b6e30d7643a355cf37ff04ccb9ea0d1..0d172a0ac525e03ed02fdec6ad5dac6868867756 100644 +index 7095b01c2a59595fd1d09bc164059a02e864e9e6..8dc69aeb6585066d36c1fd6db66cd55fa8947324 100644 --- a/chrome/browser/ui/views/download/download_item_view.h +++ b/chrome/browser/ui/views/download/download_item_view.h -@@ -118,6 +118,7 @@ class DownloadItemView : public views::View, +@@ -113,6 +113,7 @@ class DownloadItemView : public views::View, void OnPaintBackground(gfx::Canvas* canvas) override; void OnPaint(gfx::Canvas* canvas) override; void OnThemeChanged() override; diff --git a/patches/chrome-browser-ui-views-location_bar-location_bar_view.cc.patch b/patches/chrome-browser-ui-views-location_bar-location_bar_view.cc.patch index 16d4f601f0b8..41781b14ebe8 100644 --- a/patches/chrome-browser-ui-views-location_bar-location_bar_view.cc.patch +++ b/patches/chrome-browser-ui-views-location_bar-location_bar_view.cc.patch @@ -1,8 +1,8 @@ diff --git a/chrome/browser/ui/views/location_bar/location_bar_view.cc b/chrome/browser/ui/views/location_bar/location_bar_view.cc -index d30583033d7bfc6297531641591cd2b334b1ffdc..972037299c2df541d71df0de4c5a25ff07dcd445 100644 +index f46f5359245dbed2ff7f32d0bf9403519aa0d33e..78c88bbcb90ce110e500987256de39b003ce8e11 100644 --- a/chrome/browser/ui/views/location_bar/location_bar_view.cc +++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc -@@ -677,6 +677,7 @@ void LocationBarView::Layout() { +@@ -668,6 +668,7 @@ void LocationBarView::Layout() { } }; diff --git a/patches/chrome-browser-ui-views-location_bar-location_bar_view.h.patch b/patches/chrome-browser-ui-views-location_bar-location_bar_view.h.patch index 42dc530d1801..a1f06cc92a48 100644 --- a/patches/chrome-browser-ui-views-location_bar-location_bar_view.h.patch +++ b/patches/chrome-browser-ui-views-location_bar-location_bar_view.h.patch @@ -1,5 +1,5 @@ diff --git a/chrome/browser/ui/views/location_bar/location_bar_view.h b/chrome/browser/ui/views/location_bar/location_bar_view.h -index 91e4dd5077ddd94cece44bb544a3b5d991ce2644..da0acd7f1c261521d54f3b4887984c25823fb5a7 100644 +index cd834f43bf87d4878bd489fb91ff82f297ea052e..b69fec863a54caa29b7495945df7d03d8e655534 100644 --- a/chrome/browser/ui/views/location_bar/location_bar_view.h +++ b/chrome/browser/ui/views/location_bar/location_bar_view.h @@ -112,6 +112,7 @@ class LocationBarView : public LocationBar, @@ -18,7 +18,7 @@ index 91e4dd5077ddd94cece44bb544a3b5d991ce2644..da0acd7f1c261521d54f3b4887984c25 void Update(content::WebContents* contents); // Clears the location bar's state for |contents|. -@@ -248,6 +250,7 @@ class LocationBarView : public LocationBar, +@@ -246,6 +248,7 @@ class LocationBarView : public LocationBar, std::vector& GetContentSettingViewsForTest() { return content_setting_views_; } diff --git a/patches/chrome-browser-ui-views-omnibox-omnibox_popup_contents_view.cc.patch b/patches/chrome-browser-ui-views-omnibox-omnibox_popup_contents_view.cc.patch index e8bc769f5c76..4be6dc59f175 100644 --- a/patches/chrome-browser-ui-views-omnibox-omnibox_popup_contents_view.cc.patch +++ b/patches/chrome-browser-ui-views-omnibox-omnibox_popup_contents_view.cc.patch @@ -1,8 +1,8 @@ diff --git a/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc b/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc -index a2f392fb2f873386178c42dfc5857ca87c119c3e..0937e53b187428e4a88571ee80fc87af1b274b3e 100644 +index 9e2e18ec8e40b2a9f991578ba42ac121dca310f5..8637aaf8a85b7ca4c2b6d901baf171531924825b 100644 --- a/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc +++ b/chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc -@@ -348,7 +348,7 @@ void OmniboxPopupContentsView::UpdatePopupAppearance() { +@@ -351,7 +351,7 @@ void OmniboxPopupContentsView::UpdatePopupAppearance() { if (children().size() == i) { AddChildView(std::make_unique( i, edit_model_, diff --git a/patches/chrome-browser-ui-views-overlay-overlay_window_views.cc.patch b/patches/chrome-browser-ui-views-overlay-overlay_window_views.cc.patch deleted file mode 100644 index d1fb19fef8a0..000000000000 --- a/patches/chrome-browser-ui-views-overlay-overlay_window_views.cc.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff --git a/chrome/browser/ui/views/overlay/overlay_window_views.cc b/chrome/browser/ui/views/overlay/overlay_window_views.cc -index 7d91ecafdfc2b977aeb73c764cee6bb65f80b5a3..8c79edb7226b7b2907f2f84ae4362cede22be094 100644 ---- a/chrome/browser/ui/views/overlay/overlay_window_views.cc -+++ b/chrome/browser/ui/views/overlay/overlay_window_views.cc -@@ -533,6 +533,7 @@ void OverlayWindowViews::UpdateMaxSize(const gfx::Rect& work_area) { - - max_size_ = new_max_size; - -+ BRAVE_UPDATE_MAX_SIZE - if (!native_widget()) - return; - diff --git a/patches/chrome-browser-ui-views-overlay-video_overlay_window_views.cc.patch b/patches/chrome-browser-ui-views-overlay-video_overlay_window_views.cc.patch new file mode 100644 index 000000000000..e3f820c5f9ba --- /dev/null +++ b/patches/chrome-browser-ui-views-overlay-video_overlay_window_views.cc.patch @@ -0,0 +1,12 @@ +diff --git a/chrome/browser/ui/views/overlay/video_overlay_window_views.cc b/chrome/browser/ui/views/overlay/video_overlay_window_views.cc +index 4c83c6a6685490ce1899b119742fa25b6b9a50cd..4a9af5b0ee54f62d46758751f8710da02d183818 100644 +--- a/chrome/browser/ui/views/overlay/video_overlay_window_views.cc ++++ b/chrome/browser/ui/views/overlay/video_overlay_window_views.cc +@@ -640,6 +640,7 @@ void VideoOverlayWindowViews::UpdateMaxSize(const gfx::Rect& work_area) { + + max_size_ = new_max_size; + ++ BRAVE_UPDATE_MAX_SIZE + if (!native_widget()) + return; + diff --git a/patches/chrome-browser-ui-views-page_info-page_info_main_view.cc.patch b/patches/chrome-browser-ui-views-page_info-page_info_main_view.cc.patch index b7f8a1d95cf7..6c8d25bbe019 100644 --- a/patches/chrome-browser-ui-views-page_info-page_info_main_view.cc.patch +++ b/patches/chrome-browser-ui-views-page_info-page_info_main_view.cc.patch @@ -1,8 +1,8 @@ diff --git a/chrome/browser/ui/views/page_info/page_info_main_view.cc b/chrome/browser/ui/views/page_info/page_info_main_view.cc -index 9bf773fc5b447938986a53c5f22f3bc7bbd9f83c..a326b5c50332996ce42060b2d252497ff4ea26f4 100644 +index d70c6353eb971864719757a41a8d3c17bd4c210a..7760981a5fd0c6211e54ca96129939405bf958f1 100644 --- a/chrome/browser/ui/views/page_info/page_info_main_view.cc +++ b/chrome/browser/ui/views/page_info/page_info_main_view.cc -@@ -526,6 +526,7 @@ gfx::Size PageInfoMainView::CalculatePreferredSize() const { +@@ -535,6 +535,7 @@ gfx::Size PageInfoMainView::CalculatePreferredSize() const { if (site_settings_view_) { width = std::max(width, site_settings_view_->GetPreferredSize().width()); width = std::max(width, permissions_view_->GetPreferredSize().width()); diff --git a/patches/chrome-browser-ui-views-permissions-permission_prompt_bubble_view.cc.patch b/patches/chrome-browser-ui-views-permissions-permission_prompt_bubble_view.cc.patch index 95001414cb5c..459e5e2ba398 100644 --- a/patches/chrome-browser-ui-views-permissions-permission_prompt_bubble_view.cc.patch +++ b/patches/chrome-browser-ui-views-permissions-permission_prompt_bubble_view.cc.patch @@ -1,5 +1,5 @@ diff --git a/chrome/browser/ui/views/permissions/permission_prompt_bubble_view.cc b/chrome/browser/ui/views/permissions/permission_prompt_bubble_view.cc -index 2ec1fb696e4f95c26a7a1c6f009d191c96a38d67..34e25db9ed3cdaf5394f7c7cbada769bdb5068d2 100644 +index d1132d68dab3931074e240acae1d18525e6b99ce..81f68aed97716db49fbdb2aa77bd15cc9d46a80e 100644 --- a/chrome/browser/ui/views/permissions/permission_prompt_bubble_view.cc +++ b/chrome/browser/ui/views/permissions/permission_prompt_bubble_view.cc @@ -311,6 +311,7 @@ PermissionPromptBubbleView::PermissionPromptBubbleView( diff --git a/patches/chrome-browser-ui-views-side_panel-side_panel_coordinator.cc.patch b/patches/chrome-browser-ui-views-side_panel-side_panel_coordinator.cc.patch index 1b03c0507415..72a10054948f 100644 --- a/patches/chrome-browser-ui-views-side_panel-side_panel_coordinator.cc.patch +++ b/patches/chrome-browser-ui-views-side_panel-side_panel_coordinator.cc.patch @@ -1,8 +1,8 @@ diff --git a/chrome/browser/ui/views/side_panel/side_panel_coordinator.cc b/chrome/browser/ui/views/side_panel/side_panel_coordinator.cc -index bc3d6fa03f045a76967782b6f408c685c87d195c..6f57b34927df50a82094be3054398fe576151b30 100644 +index ca76f2c61bd3c1b1b5fafacfe41efbd7dc3fa3a6..c560b664f7c1bd17dd4234cea42820cf7e11ed07 100644 --- a/chrome/browser/ui/views/side_panel/side_panel_coordinator.cc +++ b/chrome/browser/ui/views/side_panel/side_panel_coordinator.cc -@@ -182,6 +182,7 @@ SidePanelCoordinator::~SidePanelCoordinator() { +@@ -184,6 +184,7 @@ SidePanelCoordinator::~SidePanelCoordinator() { void SidePanelCoordinator::Show( absl::optional entry_id, absl::optional open_trigger) { @@ -10,7 +10,7 @@ index bc3d6fa03f045a76967782b6f408c685c87d195c..6f57b34927df50a82094be3054398fe5 if (entry_id.has_value()) { Show(SidePanelEntry::Key(entry_id.value()), open_trigger); } else { -@@ -554,6 +555,7 @@ std::unique_ptr SidePanelCoordinator::CreateHeader() { +@@ -558,6 +559,7 @@ std::unique_ptr SidePanelCoordinator::CreateHeader() { ChromeDistanceMetric::DISTANCE_SIDE_PANEL_HEADER_VECTOR_ICON_SIZE))); header_close_button->SetFocusBehavior(views::View::FocusBehavior::ALWAYS); diff --git a/patches/chrome-browser-ui-views-tabs-new_tab_button.h.patch b/patches/chrome-browser-ui-views-tabs-new_tab_button.h.patch index 7e014b71730c..97c0159b0763 100644 --- a/patches/chrome-browser-ui-views-tabs-new_tab_button.h.patch +++ b/patches/chrome-browser-ui-views-tabs-new_tab_button.h.patch @@ -1,5 +1,5 @@ diff --git a/chrome/browser/ui/views/tabs/new_tab_button.h b/chrome/browser/ui/views/tabs/new_tab_button.h -index 5a4dbddf4b0d2b9237a4401e98e87a156d8ee72a..84db2916df6af5f03e954ee7bd6db8f33e1bb173 100644 +index e5617ec47973d9007c496c3fe2da584f61801dd0..dd93b07c3b459128800559e4a7453e8150169c40 100644 --- a/chrome/browser/ui/views/tabs/new_tab_button.h +++ b/chrome/browser/ui/views/tabs/new_tab_button.h @@ -48,6 +48,7 @@ class NewTabButton : public views::ImageButton, diff --git a/patches/chrome-browser-ui-views-tabs-tab.cc.patch b/patches/chrome-browser-ui-views-tabs-tab.cc.patch index 3c90288febcf..84a0c86b3231 100644 --- a/patches/chrome-browser-ui-views-tabs-tab.cc.patch +++ b/patches/chrome-browser-ui-views-tabs-tab.cc.patch @@ -1,5 +1,5 @@ diff --git a/chrome/browser/ui/views/tabs/tab.cc b/chrome/browser/ui/views/tabs/tab.cc -index 4e7a91bff0669d5f944a4b07dc62362a2f6fdf86..f07a30ff2a1ff857ad0984aa3b7ccfb36678df40 100644 +index fe22bf7428a51e39bb273282b5afc40f2e293748..b0e4999cf661ef3c51a5f09e4db34a429fc9be07 100644 --- a/chrome/browser/ui/views/tabs/tab.cc +++ b/chrome/browser/ui/views/tabs/tab.cc @@ -390,6 +390,7 @@ void Tab::Layout() { @@ -10,7 +10,7 @@ index 4e7a91bff0669d5f944a4b07dc62362a2f6fdf86..f07a30ff2a1ff857ad0984aa3b7ccfb3 } else if (showing_close_button_) { // Allow the title to overlay the close button's empty border padding. title_right = close_x - after_title_padding; -@@ -1008,6 +1009,7 @@ void Tab::UpdateIconVisibility() { +@@ -1010,6 +1011,7 @@ void Tab::UpdateIconVisibility() { available_width -= favicon_width; showing_close_button_ = large_enough_for_close_button; diff --git a/patches/chrome-browser-ui-views-tabs-tab_hover_card_bubble_view.h.patch b/patches/chrome-browser-ui-views-tabs-tab_hover_card_bubble_view.h.patch index dd93253e2ccd..6559a0d5ed42 100644 --- a/patches/chrome-browser-ui-views-tabs-tab_hover_card_bubble_view.h.patch +++ b/patches/chrome-browser-ui-views-tabs-tab_hover_card_bubble_view.h.patch @@ -1,8 +1,8 @@ diff --git a/chrome/browser/ui/views/tabs/tab_hover_card_bubble_view.h b/chrome/browser/ui/views/tabs/tab_hover_card_bubble_view.h -index 401131ee73bded8b9a5af519a2a29c4233b416a8..e69eb00e1c1441e94ffa1c809d2189bb36cff50d 100644 +index e2297c2305872b28bd645f3f918c425781b6edbd..abe790633fadd7739bfd10375c0bcccc558dc971 100644 --- a/chrome/browser/ui/views/tabs/tab_hover_card_bubble_view.h +++ b/chrome/browser/ui/views/tabs/tab_hover_card_bubble_view.h -@@ -137,6 +137,7 @@ class TabHoverCardBubbleView : public views::BubbleDialogDelegateView { +@@ -138,6 +138,7 @@ class TabHoverCardBubbleView : public views::BubbleDialogDelegateView { // available, or `absl::nullopt` to disable crossfades entirely. static absl::optional GetPreviewImageCrossfadeStart(); diff --git a/patches/chrome-browser-ui-views-tabs-tab_strip.cc.patch b/patches/chrome-browser-ui-views-tabs-tab_strip.cc.patch index 7e33ed3a9a20..a414f061b49b 100644 --- a/patches/chrome-browser-ui-views-tabs-tab_strip.cc.patch +++ b/patches/chrome-browser-ui-views-tabs-tab_strip.cc.patch @@ -1,8 +1,8 @@ diff --git a/chrome/browser/ui/views/tabs/tab_strip.cc b/chrome/browser/ui/views/tabs/tab_strip.cc -index 6421ed000b94945ca624054d8cf0da6224e6b9f3..ab61b95c23260a3b29a197bd6a10bf5c030a1a34 100644 +index 0a9ffa81d06d4bb284e8aa51758fbafc9e1b6644..65733ea97581eec15cfb116a5eb5d2d3f2ccb5d6 100644 --- a/chrome/browser/ui/views/tabs/tab_strip.cc +++ b/chrome/browser/ui/views/tabs/tab_strip.cc -@@ -493,6 +493,7 @@ class TabStrip::TabDragContextImpl : public TabDragContext, +@@ -495,6 +495,7 @@ class TabStrip::TabDragContextImpl : public TabDragContext, std::vector CalculateBoundsForDraggedViews( const std::vector& views) override { @@ -10,7 +10,7 @@ index 6421ed000b94945ca624054d8cf0da6224e6b9f3..ab61b95c23260a3b29a197bd6a10bf5c DCHECK(!views.empty()); std::vector bounds; -@@ -742,6 +743,7 @@ class TabStrip::TabDragContextImpl : public TabDragContext, +@@ -761,6 +762,7 @@ class TabStrip::TabDragContextImpl : public TabDragContext, continue; } diff --git a/patches/chrome-browser-ui-views-tabs-tab_style_views.cc.patch b/patches/chrome-browser-ui-views-tabs-tab_style_views.cc.patch index 956efa371a46..9a13b931e593 100644 --- a/patches/chrome-browser-ui-views-tabs-tab_style_views.cc.patch +++ b/patches/chrome-browser-ui-views-tabs-tab_style_views.cc.patch @@ -1,8 +1,8 @@ diff --git a/chrome/browser/ui/views/tabs/tab_style_views.cc b/chrome/browser/ui/views/tabs/tab_style_views.cc -index 88809500f4da967276bdda504a365c4ce470b118..3934ef75121f5f25dfff8ed9ba13e788aa9dba0c 100644 +index 50e89eae0d42068483673bce9bcf6b59dd72a2bf..0e988956ada64f408d4a13462a8c513be948c7b5 100644 --- a/chrome/browser/ui/views/tabs/tab_style_views.cc +++ b/chrome/browser/ui/views/tabs/tab_style_views.cc -@@ -74,6 +74,7 @@ class GM2TabStyle : public TabStyleViews { +@@ -75,6 +75,7 @@ class GM2TabStyle : public TabStyleViews { void HideHover(HideHoverStyle style) override; private: @@ -10,7 +10,7 @@ index 88809500f4da967276bdda504a365c4ce470b118..3934ef75121f5f25dfff8ed9ba13e788 // Gets the bounds for the leading and trailing separators for a tab. SeparatorBounds GetSeparatorBounds(float scale) const; -@@ -285,6 +286,7 @@ SkPath GM2TabStyle::GetPath(PathType path_type, +@@ -286,6 +287,7 @@ SkPath GM2TabStyle::GetPath(PathType path_type, const ShapeModifier shape_modifier = GetShapeModifier(path_type); const bool extend_left_to_bottom = shape_modifier & kNoLowerLeftArc; const bool extend_right_to_bottom = shape_modifier & kNoLowerRightArc; @@ -18,7 +18,7 @@ index 88809500f4da967276bdda504a365c4ce470b118..3934ef75121f5f25dfff8ed9ba13e788 SkPath path; -@@ -561,7 +563,7 @@ TabStyle::SeparatorBounds GM2TabStyle::GetSeparatorBounds(float scale) const { +@@ -562,7 +564,7 @@ TabStyle::SeparatorBounds GM2TabStyle::GetSeparatorBounds(float scale) const { separator_bounds.leading = gfx::RectF(aligned_bounds.x() + corner_radius, aligned_bounds.y() + @@ -27,7 +27,7 @@ index 88809500f4da967276bdda504a365c4ce470b118..3934ef75121f5f25dfff8ed9ba13e788 separator_size.width(), separator_size.height()); separator_bounds.trailing = separator_bounds.leading; -@@ -911,12 +913,16 @@ void GM2TabStyle::PaintSeparators(gfx::Canvas* canvas) const { +@@ -912,12 +914,16 @@ void GM2TabStyle::PaintSeparators(gfx::Canvas* canvas) const { SK_AlphaOPAQUE)); }; diff --git a/patches/chrome-browser-ui-views-toolbar-toolbar_view.cc.patch b/patches/chrome-browser-ui-views-toolbar-toolbar_view.cc.patch index 48e08f12b509..cdb594cb7867 100644 --- a/patches/chrome-browser-ui-views-toolbar-toolbar_view.cc.patch +++ b/patches/chrome-browser-ui-views-toolbar-toolbar_view.cc.patch @@ -1,5 +1,5 @@ diff --git a/chrome/browser/ui/views/toolbar/toolbar_view.cc b/chrome/browser/ui/views/toolbar/toolbar_view.cc -index b4d585985bf4c0b8b855651e10806b822afa9e1a..4c28eb1a19a61bd15ccb77408cc66eb9041e72aa 100644 +index dbe0846164b88eceea5e4d9f66110e467ee649c9..f0e93cfd2cf18c0ab0369b5e8d2331992fba9fd0 100644 --- a/chrome/browser/ui/views/toolbar/toolbar_view.cc +++ b/chrome/browser/ui/views/toolbar/toolbar_view.cc @@ -347,6 +347,7 @@ void ToolbarView::Init() { diff --git a/patches/chrome-browser-ui-webui-BUILD.gn.patch b/patches/chrome-browser-ui-webui-BUILD.gn.patch index 9049e3159b69..b44e10f6d24e 100644 --- a/patches/chrome-browser-ui-webui-BUILD.gn.patch +++ b/patches/chrome-browser-ui-webui-BUILD.gn.patch @@ -1,8 +1,8 @@ diff --git a/chrome/browser/ui/webui/BUILD.gn b/chrome/browser/ui/webui/BUILD.gn -index 44228b02c933822705d0076edd73ebf9e7984813..929a84f603344c8cd1de24abd29f90ad2f6dba2b 100644 +index 71d034edb5b657b20bd0128d7a3360db973009d0..d5e89aafc6c1d8a928b09c7d59bdb4fb75e83a3f 100644 --- a/chrome/browser/ui/webui/BUILD.gn +++ b/chrome/browser/ui/webui/BUILD.gn -@@ -69,4 +69,5 @@ source_set("configs") { +@@ -70,4 +70,5 @@ source_set("configs") { deps += [ "//ash/webui/sample_system_web_app_ui" ] } } diff --git a/patches/chrome-browser-ui-webui-chrome_web_ui_controller_factory.cc.patch b/patches/chrome-browser-ui-webui-chrome_web_ui_controller_factory.cc.patch index ba412602fe9b..2f21eaff7723 100644 --- a/patches/chrome-browser-ui-webui-chrome_web_ui_controller_factory.cc.patch +++ b/patches/chrome-browser-ui-webui-chrome_web_ui_controller_factory.cc.patch @@ -1,8 +1,8 @@ diff --git a/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc b/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc -index 2cf9f47ce495c6737366585b11087861c20563b2..028b24185ea3e42584aa3e75c495856b98996c47 100644 +index 9164ded909bacd91b5eb942a0f80dbd625359c4f..8683215e989d26cc20c9f9f8a7110546936a02dc 100644 --- a/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc +++ b/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc -@@ -1334,6 +1334,7 @@ void ChromeWebUIControllerFactory::GetFaviconForURL( +@@ -1326,6 +1326,7 @@ void ChromeWebUIControllerFactory::GetFaviconForURL( // static ChromeWebUIControllerFactory* ChromeWebUIControllerFactory::GetInstance() { diff --git a/patches/chrome-browser-ui-webui-downloads-downloads_ui.cc.patch b/patches/chrome-browser-ui-webui-downloads-downloads_ui.cc.patch index 37d00a61b437..ab9dc133c3c8 100644 --- a/patches/chrome-browser-ui-webui-downloads-downloads_ui.cc.patch +++ b/patches/chrome-browser-ui-webui-downloads-downloads_ui.cc.patch @@ -1,5 +1,5 @@ diff --git a/chrome/browser/ui/webui/downloads/downloads_ui.cc b/chrome/browser/ui/webui/downloads/downloads_ui.cc -index f96d0d06003e76b1340f53ae4403128302f49ab5..90ed13c5a36622d02dda6df9c97dd292c6ac63ed 100644 +index e888b31a53aa1533775bc2c5e4dde48011ecdad5..801e2716856fd579ea8b8e1c0dabb0b8ef553062 100644 --- a/chrome/browser/ui/webui/downloads/downloads_ui.cc +++ b/chrome/browser/ui/webui/downloads/downloads_ui.cc @@ -59,6 +59,7 @@ namespace { diff --git a/patches/chrome-browser-ui-webui-extensions-extensions_ui.cc.patch b/patches/chrome-browser-ui-webui-extensions-extensions_ui.cc.patch index 9264d559b032..2ced7395ae67 100644 --- a/patches/chrome-browser-ui-webui-extensions-extensions_ui.cc.patch +++ b/patches/chrome-browser-ui-webui-extensions-extensions_ui.cc.patch @@ -1,8 +1,8 @@ diff --git a/chrome/browser/ui/webui/extensions/extensions_ui.cc b/chrome/browser/ui/webui/extensions/extensions_ui.cc -index 2d0961a58426023d8c0b0bfc6db1fd64a6a9d65a..8f69502625653cc58518974e76d61567caf4c2d9 100644 +index 5b49aeb200c7b1987dd74fc87bcfc47fecf56080..e6a00b0aadae06e937cdd0413dc368d0efa5eda4 100644 --- a/chrome/browser/ui/webui/extensions/extensions_ui.cc +++ b/chrome/browser/ui/webui/extensions/extensions_ui.cc -@@ -392,6 +392,7 @@ content::WebUIDataSource* CreateExtensionsSource(Profile* profile, +@@ -396,6 +396,7 @@ content::WebUIDataSource* CreateExtensionsSource(Profile* profile, "showAccessRequestsInToolbarLearnMoreLink", chrome_extension_constants::kShowAccessRequestsInToolbarHelpURL); diff --git a/patches/chrome-browser-ui-webui-history-history_ui.cc.patch b/patches/chrome-browser-ui-webui-history-history_ui.cc.patch index 3cdea8d3739c..3f26a80be5d0 100644 --- a/patches/chrome-browser-ui-webui-history-history_ui.cc.patch +++ b/patches/chrome-browser-ui-webui-history-history_ui.cc.patch @@ -1,5 +1,5 @@ diff --git a/chrome/browser/ui/webui/history/history_ui.cc b/chrome/browser/ui/webui/history/history_ui.cc -index d1b8413380e198a86e8bd285ee33749b3188270d..1b5f748552e0c12389fe4a11c5f99e0bf7ab592e 100644 +index b4cd6b1a899f2b4348516d01bcc537e446338edf..f71cfdd9557bcc8dcc98efa3dd2a52a1a0eb7e5b 100644 --- a/chrome/browser/ui/webui/history/history_ui.cc +++ b/chrome/browser/ui/webui/history/history_ui.cc @@ -64,6 +64,7 @@ content::WebUIDataSource* CreateHistoryUIHTMLSource(Profile* profile) { diff --git a/patches/chrome-browser-ui-webui-settings-settings_localized_strings_provider.cc.patch b/patches/chrome-browser-ui-webui-settings-settings_localized_strings_provider.cc.patch index d856b61c3be3..c99ab194e34e 100644 --- a/patches/chrome-browser-ui-webui-settings-settings_localized_strings_provider.cc.patch +++ b/patches/chrome-browser-ui-webui-settings-settings_localized_strings_provider.cc.patch @@ -1,8 +1,8 @@ diff --git a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc -index c7e9d096a2bf8fefc5cc4a59208838a76a84812b..dbed07be38a069cfac1d44c1cf1e2033a9b242d5 100644 +index 62af3a765309dc7a87e19b05bf38f2fedc12e04f..0fade152231add95e2e1d85dbe3bcf54746a3d2f 100644 --- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc +++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc -@@ -3221,6 +3221,7 @@ void AddLocalizedStrings(content::WebUIDataSource* html_source, +@@ -3408,6 +3408,7 @@ void AddLocalizedStrings(content::WebUIDataSource* html_source, policy_indicator::AddLocalizedStrings(html_source); AddSecurityKeysStrings(html_source); diff --git a/patches/chrome-browser-ui-webui-settings-site_settings_helper.cc.patch b/patches/chrome-browser-ui-webui-settings-site_settings_helper.cc.patch index 1a51e5bd9fd4..9e4a98cba6e7 100644 --- a/patches/chrome-browser-ui-webui-settings-site_settings_helper.cc.patch +++ b/patches/chrome-browser-ui-webui-settings-site_settings_helper.cc.patch @@ -1,16 +1,16 @@ diff --git a/chrome/browser/ui/webui/settings/site_settings_helper.cc b/chrome/browser/ui/webui/settings/site_settings_helper.cc -index 315f61dde5a3bdb5ad75799bc7a2a3adce898476..6ff120b52dbe8e2c7ae789b09ccc870b3763ec33 100644 +index 2fcbaaaac2e34cc04e9c60164df2252afc9326c6..b33c558e61ab7d8ce2dc894510f2aa609a6f9e63 100644 --- a/chrome/browser/ui/webui/settings/site_settings_helper.cc +++ b/chrome/browser/ui/webui/settings/site_settings_helper.cc -@@ -173,6 +173,7 @@ const ContentSettingsTypeNameEntry kContentSettingsTypeGroupNames[] = { - // PPAPI_BROKER has been deprecated. The content setting is not used or +@@ -176,6 +176,7 @@ const ContentSettingsTypeNameEntry kContentSettingsTypeGroupNames[] = { // called from UI, so we don't need a representation JS string. {ContentSettingsType::DEPRECATED_PPAPI_BROKER, nullptr}, + {ContentSettingsType::REVOKED_UNUSED_SITE_PERMISSIONS, nullptr}, + BRAVE_CONTENT_SETTINGS_TYPE_GROUP_NAMES_LIST }; static_assert(std::size(kContentSettingsTypeGroupNames) == -@@ -361,6 +362,7 @@ bool HasRegisteredGroupName(ContentSettingsType type) { +@@ -364,6 +365,7 @@ bool HasRegisteredGroupName(ContentSettingsType type) { } ContentSettingsType ContentSettingsTypeFromGroupName(base::StringPiece name) { diff --git a/patches/chrome-browser-upgrade_detector-upgrade_detector_impl.cc.patch b/patches/chrome-browser-upgrade_detector-upgrade_detector_impl.cc.patch deleted file mode 100644 index d608d79f6881..000000000000 --- a/patches/chrome-browser-upgrade_detector-upgrade_detector_impl.cc.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/chrome/browser/upgrade_detector/upgrade_detector_impl.cc b/chrome/browser/upgrade_detector/upgrade_detector_impl.cc -index 3e6b2000510aea83c4844e7f6dfb13bebd345902..0c3c591fdcbc7ae1d64169a934d9fd9f853d8a6d 100644 ---- a/chrome/browser/upgrade_detector/upgrade_detector_impl.cc -+++ b/chrome/browser/upgrade_detector/upgrade_detector_impl.cc -@@ -476,7 +476,7 @@ void UpgradeDetectorImpl::Init() { - - // On Windows, only enable upgrade notifications for Google Chrome builds. - // Chromium does not use an auto-updater. --#if !BUILDFLAG(IS_WIN) || BUILDFLAG(GOOGLE_CHROME_BRANDING) -+#if !BUILDFLAG(IS_WIN) || BUILDFLAG(GOOGLE_CHROME_BRANDING) || defined(OFFICIAL_BUILD) - - // On macOS, only enable upgrade notifications if the updater (Keystone) is - // present. diff --git a/patches/chrome-browser-web_applications-os_integration-web_app_shortcut_mac.mm.patch b/patches/chrome-browser-web_applications-os_integration-web_app_shortcut_mac.mm.patch index f56a6bf38d35..98ef2eb00a7b 100644 --- a/patches/chrome-browser-web_applications-os_integration-web_app_shortcut_mac.mm.patch +++ b/patches/chrome-browser-web_applications-os_integration-web_app_shortcut_mac.mm.patch @@ -1,8 +1,8 @@ diff --git a/chrome/browser/web_applications/os_integration/web_app_shortcut_mac.mm b/chrome/browser/web_applications/os_integration/web_app_shortcut_mac.mm -index f0cdba3ae3464cef07c0dce25f2c34410f1e2753..54065109e334257ddd7705326cfeb0906001fae5 100644 +index 9585cbc35a90f299219059f5aaf02ab2e12183f3..744e8d8b9b94b8b8f52dae1bfccb02864a0f92a0 100644 --- a/chrome/browser/web_applications/os_integration/web_app_shortcut_mac.mm +++ b/chrome/browser/web_applications/os_integration/web_app_shortcut_mac.mm -@@ -749,6 +749,7 @@ base::FilePath GetChromeAppsFolder() { +@@ -743,6 +743,7 @@ base::FilePath GetChromeAppsFolder() { if (path.empty()) return path; diff --git a/patches/chrome-common-BUILD.gn.patch b/patches/chrome-common-BUILD.gn.patch index f2aa8c7842c1..92e89af42c93 100644 --- a/patches/chrome-common-BUILD.gn.patch +++ b/patches/chrome-common-BUILD.gn.patch @@ -1,8 +1,8 @@ diff --git a/chrome/common/BUILD.gn b/chrome/common/BUILD.gn -index be4a273060d49468867dde5bb91b63f50e694e02..5ba4eaa2ec370c3dbdccab2713ae194a6df0f1a4 100644 +index 3e3bb00ddb6ab1feaaef8db1679b392da372cacd..e3dc6122cee227f20294c1e865de340471c7881d 100644 --- a/chrome/common/BUILD.gn +++ b/chrome/common/BUILD.gn -@@ -89,6 +89,7 @@ source_set("channel_info") { +@@ -90,6 +90,7 @@ source_set("channel_info") { } else if (is_fuchsia) { sources += [ "channel_info_fuchsia.cc" ] } @@ -10,7 +10,7 @@ index be4a273060d49468867dde5bb91b63f50e694e02..5ba4eaa2ec370c3dbdccab2713ae194a } source_set("ini_parser") { -@@ -533,6 +534,7 @@ static_library("non_code_constants") { +@@ -536,6 +537,7 @@ static_library("non_code_constants") { "//printing/buildflags", "//ui/base:buildflags", ] diff --git a/patches/chrome-common-extensions-api-developer_private.idl.patch b/patches/chrome-common-extensions-api-developer_private.idl.patch index 299f0cefde5e..32a4fe24c5b7 100644 --- a/patches/chrome-common-extensions-api-developer_private.idl.patch +++ b/patches/chrome-common-extensions-api-developer_private.idl.patch @@ -1,8 +1,8 @@ diff --git a/chrome/common/extensions/api/developer_private.idl b/chrome/common/extensions/api/developer_private.idl -index 23478c1b3d24a9103be116c4cbd0dbf71b700b29..a1d872be48b17f0cdd0a618c2f53f303023d7942 100644 +index cf2d7e81ec1c0ef742138b54853775cf66b4e80b..c8df8c5a2ef8c4a09279b93f98d4362aeb750686 100644 --- a/chrome/common/extensions/api/developer_private.idl +++ b/chrome/common/extensions/api/developer_private.idl -@@ -233,6 +233,7 @@ namespace developerPrivate { +@@ -234,6 +234,7 @@ namespace developerPrivate { DOMString iconUrl; DOMString id; AccessModifier incognitoAccess; diff --git a/patches/chrome-common-extensions-chrome_extensions_client.cc.patch b/patches/chrome-common-extensions-chrome_extensions_client.cc.patch index 89e54711f7f2..5838928381f1 100644 --- a/patches/chrome-common-extensions-chrome_extensions_client.cc.patch +++ b/patches/chrome-common-extensions-chrome_extensions_client.cc.patch @@ -1,5 +1,5 @@ diff --git a/chrome/common/extensions/chrome_extensions_client.cc b/chrome/common/extensions/chrome_extensions_client.cc -index a97676ab75331515db44e38d1dd93166aded497a..629b57d6d33bab078fe66a041b54b34318397fe4 100644 +index 493161c29afc97feeb3f369fd65dd442024cd2f4..429f4ef2852a6712903a0561f5d21b9dd313bc6a 100644 --- a/chrome/common/extensions/chrome_extensions_client.cc +++ b/chrome/common/extensions/chrome_extensions_client.cc @@ -13,6 +13,7 @@ diff --git a/patches/chrome-installer-mac-BUILD.gn.patch b/patches/chrome-installer-mac-BUILD.gn.patch index 892baf1cab25..00d092a2fa75 100644 --- a/patches/chrome-installer-mac-BUILD.gn.patch +++ b/patches/chrome-installer-mac-BUILD.gn.patch @@ -1,5 +1,5 @@ diff --git a/chrome/installer/mac/BUILD.gn b/chrome/installer/mac/BUILD.gn -index f3717e93f0fc0eca494732dc573d26667b2f6897..2dbb73d6ba3639269067eb7761d16df99e85bdaf 100644 +index 753c397993eb34241b2ad628c8b559e720c8850e..718c2e61ae855781c080070dec4b39adca08d15a 100644 --- a/chrome/installer/mac/BUILD.gn +++ b/chrome/installer/mac/BUILD.gn @@ -18,7 +18,8 @@ group("mac") { diff --git a/patches/chrome-installer-mini_installer-BUILD.gn.patch b/patches/chrome-installer-mini_installer-BUILD.gn.patch index d61731f730ac..6756020c0aad 100644 --- a/patches/chrome-installer-mini_installer-BUILD.gn.patch +++ b/patches/chrome-installer-mini_installer-BUILD.gn.patch @@ -1,5 +1,5 @@ diff --git a/chrome/installer/mini_installer/BUILD.gn b/chrome/installer/mini_installer/BUILD.gn -index f72c5456309222e51d570e5d14676f28a73b405b..77b2a7470934712ece924d5f085b4b9676d419ae 100644 +index 7fe3f49dafecd0c81662e27f58e3cde4b52a1f4f..6ecdb461ff1b2bb32932eeca42181c536ed28f67 100644 --- a/chrome/installer/mini_installer/BUILD.gn +++ b/chrome/installer/mini_installer/BUILD.gn @@ -13,6 +13,7 @@ import("//third_party/icu/config.gni") @@ -10,7 +10,7 @@ index f72c5456309222e51d570e5d14676f28a73b405b..77b2a7470934712ece924d5f085b4b96 declare_args() { # The Chrome archive is compressed in official builds to reduce the size of -@@ -171,6 +172,9 @@ action("mini_installer_archive") { +@@ -174,6 +175,9 @@ action("mini_installer_archive") { "//mojo/core:shared_library", "//third_party/icu:icudata", ] diff --git a/patches/chrome-installer-setup-BUILD.gn.patch b/patches/chrome-installer-setup-BUILD.gn.patch index 72802f79e09c..11fc7816a8ea 100644 --- a/patches/chrome-installer-setup-BUILD.gn.patch +++ b/patches/chrome-installer-setup-BUILD.gn.patch @@ -1,8 +1,8 @@ diff --git a/chrome/installer/setup/BUILD.gn b/chrome/installer/setup/BUILD.gn -index b078dcbc6f99efbe2f70fc88fe78cd2109bca0dd..e757123cba905290c706e7093a8b802a32797b15 100644 +index c88c4ae4516a038ce2d9c31050b7bbacb68975f3..c73f973bffdc9deff40c1fefa6768b7963257314 100644 --- a/chrome/installer/setup/BUILD.gn +++ b/chrome/installer/setup/BUILD.gn -@@ -129,6 +129,7 @@ if (is_win) { +@@ -130,6 +130,7 @@ if (is_win) { "channel_override_work_item.h", ] } diff --git a/patches/chrome-installer-util-BUILD.gn.patch b/patches/chrome-installer-util-BUILD.gn.patch index 52e0fbd9ccf3..e82082fecc67 100644 --- a/patches/chrome-installer-util-BUILD.gn.patch +++ b/patches/chrome-installer-util-BUILD.gn.patch @@ -1,5 +1,5 @@ diff --git a/chrome/installer/util/BUILD.gn b/chrome/installer/util/BUILD.gn -index df0d6423cefb97fad5d1018c9b2a28a79010a5bd..9fdd353e815c7eb2ccff173ef9db28cabd60e703 100644 +index f03fa4fe5c71c882bdc8da0e3777f15e4b1d5ed2..28502a23d195188342f809402de666395e73a7ec 100644 --- a/chrome/installer/util/BUILD.gn +++ b/chrome/installer/util/BUILD.gn @@ -206,6 +206,7 @@ static_library("with_no_strings") { diff --git a/patches/chrome-installer-util-prebuild-create_installer_string_rc.py.patch b/patches/chrome-installer-util-prebuild-create_installer_string_rc.py.patch index 274116d70953..b0ecd6da0f77 100644 --- a/patches/chrome-installer-util-prebuild-create_installer_string_rc.py.patch +++ b/patches/chrome-installer-util-prebuild-create_installer_string_rc.py.patch @@ -1,8 +1,8 @@ diff --git a/chrome/installer/util/prebuild/create_installer_string_rc.py b/chrome/installer/util/prebuild/create_installer_string_rc.py -index 7c642731c440ce864ac88e251e84e772f6aaace3..bc0cc97fa347f9bc2904396f4b71218a2de556f3 100755 +index 9b174616ccee685ce6e672084795a25b8f067426..509876a90b75a18cb9155abecbc5990940725488 100755 --- a/chrome/installer/util/prebuild/create_installer_string_rc.py +++ b/chrome/installer/util/prebuild/create_installer_string_rc.py -@@ -92,3 +92,5 @@ MODE_SPECIFIC_STRINGS = { +@@ -104,3 +104,5 @@ MODE_SPECIFIC_STRINGS = { ], }, } diff --git a/patches/chrome-renderer-BUILD.gn.patch b/patches/chrome-renderer-BUILD.gn.patch index 960875580481..33322bda3773 100644 --- a/patches/chrome-renderer-BUILD.gn.patch +++ b/patches/chrome-renderer-BUILD.gn.patch @@ -1,8 +1,8 @@ diff --git a/chrome/renderer/BUILD.gn b/chrome/renderer/BUILD.gn -index 893347b565a89cd5907059b6e455e591ca64c7da..81fa2dc4b2d062ee4536bedc3fca1d4a0be603a4 100644 +index 289e3ad2abba45b5887520e6818457e26ed46478..b934411da3c48f70dd9b06cf700ec8fd119a9bd4 100644 --- a/chrome/renderer/BUILD.gn +++ b/chrome/renderer/BUILD.gn -@@ -216,6 +216,7 @@ static_library("renderer") { +@@ -214,6 +214,7 @@ static_library("renderer") { "//v8", ] diff --git a/patches/chrome-renderer-chrome_content_renderer_client.cc.patch b/patches/chrome-renderer-chrome_content_renderer_client.cc.patch index 9e2b0d5a5756..1628a135bc66 100644 --- a/patches/chrome-renderer-chrome_content_renderer_client.cc.patch +++ b/patches/chrome-renderer-chrome_content_renderer_client.cc.patch @@ -1,8 +1,8 @@ diff --git a/chrome/renderer/chrome_content_renderer_client.cc b/chrome/renderer/chrome_content_renderer_client.cc -index 3c3286f049ebc0ebab340e4ea799f2977584d4ea..066d7f32cdf65f733158c5c6e061f790d2ac20b6 100644 +index a800280bc057b11d8ebe9dc91ab6ac6c1fd2db01..a5f5f8a0c4366b92ec7e7575f41d4801678ca22c 100644 --- a/chrome/renderer/chrome_content_renderer_client.cc +++ b/chrome/renderer/chrome_content_renderer_client.cc -@@ -571,7 +571,7 @@ void ChromeContentRendererClient::RenderFrameCreated( +@@ -575,7 +575,7 @@ void ChromeContentRendererClient::RenderFrameCreated( ChromeExtensionsRendererClient::GetInstance()->extension_dispatcher()); #endif content_settings::ContentSettingsAgentImpl* content_settings = @@ -11,7 +11,7 @@ index 3c3286f049ebc0ebab340e4ea799f2977584d4ea..066d7f32cdf65f733158c5c6e061f790 render_frame, should_allow_for_content_settings, std::move(content_settings_delegate)); if (chrome_observer_.get()) { -@@ -761,6 +761,7 @@ void ChromeContentRendererClient::RenderFrameCreated( +@@ -760,6 +760,7 @@ void ChromeContentRendererClient::RenderFrameCreated( render_frame)); } #endif diff --git a/patches/chrome-renderer-chrome_content_renderer_client.h.patch b/patches/chrome-renderer-chrome_content_renderer_client.h.patch index 76da3086257a..d362faf79e82 100644 --- a/patches/chrome-renderer-chrome_content_renderer_client.h.patch +++ b/patches/chrome-renderer-chrome_content_renderer_client.h.patch @@ -1,5 +1,5 @@ diff --git a/chrome/renderer/chrome_content_renderer_client.h b/chrome/renderer/chrome_content_renderer_client.h -index d209ade50507aa6d1ebc95cbb8abd21458d698c7..acc6fc6803b604a09d507c9f314e7322fb5e32fd 100644 +index e0c1b41ec7003a5464dde28bd1d68ca5c531e63b..64476ae2ef8a8652aa59706e2b8d3635eeef1a99 100644 --- a/chrome/renderer/chrome_content_renderer_client.h +++ b/chrome/renderer/chrome_content_renderer_client.h @@ -231,6 +231,7 @@ class ChromeContentRendererClient diff --git a/patches/chrome-test-BUILD.gn.patch b/patches/chrome-test-BUILD.gn.patch index 5c0581e42c66..1ede8757510d 100644 --- a/patches/chrome-test-BUILD.gn.patch +++ b/patches/chrome-test-BUILD.gn.patch @@ -1,5 +1,5 @@ diff --git a/chrome/test/BUILD.gn b/chrome/test/BUILD.gn -index bb616ff91809a598227ea451455c8116fc74ab65..d783f8411d43116d591d6f2a255a5b27d97587fd 100644 +index 628af219b64dc8d84438abc758f920402b690a76..562654dba46fa6b208990fea68157aeed934e611 100644 --- a/chrome/test/BUILD.gn +++ b/chrome/test/BUILD.gn @@ -327,6 +327,7 @@ static_library("test_support") { @@ -10,7 +10,7 @@ index bb616ff91809a598227ea451455c8116fc74ab65..d783f8411d43116d591d6f2a255a5b27 data_deps = [] if (enable_pdf) { -@@ -5232,7 +5233,7 @@ config("disable_thinlto_cache_flags") { +@@ -5279,7 +5280,7 @@ config("disable_thinlto_cache_flags") { } config("pdb_larger_than_4gb") { diff --git a/patches/chrome-test-data-webui-settings-BUILD.gn.patch b/patches/chrome-test-data-webui-settings-BUILD.gn.patch index c9de0a574dc7..e704dd9f8298 100644 --- a/patches/chrome-test-data-webui-settings-BUILD.gn.patch +++ b/patches/chrome-test-data-webui-settings-BUILD.gn.patch @@ -1,12 +1,12 @@ diff --git a/chrome/test/data/webui/settings/BUILD.gn b/chrome/test/data/webui/settings/BUILD.gn -index b02a47bc39c3f0497ba9e2b7b2febb4a0e02b0bd..699e903ce76e6d454641ffecd646e44cda5542c1 100644 +index a26e1550ec7eaa12782102140337567d75aee33a..61e5a3cc991ecab7bddb7afad7eeb52af3e7a0ed 100644 --- a/chrome/test/data/webui/settings/BUILD.gn +++ b/chrome/test/data/webui/settings/BUILD.gn -@@ -234,6 +234,7 @@ ts_library("build_ts") { - definitions += +@@ -206,6 +206,7 @@ build_webui_tests("build") { + ts_definitions += [ "//tools/typescript/definitions/quick_unlock_private.d.ts" ] } -+ import("//brave/browser/resources/settings/sources.gni") definitions += brave_settings_ts_definitions - deps = [ - "..:build_ts", - "//chrome/browser/resources/settings:build_ts", ++ import("//brave/browser/resources/settings/sources.gni") ts_definitions += brave_settings_ts_definitions + + ts_deps = [ "//chrome/browser/resources/settings:build_ts" ] + } diff --git a/patches/chrome-utility-BUILD.gn.patch b/patches/chrome-utility-BUILD.gn.patch index c4d9680b0461..0b21351ceca0 100644 --- a/patches/chrome-utility-BUILD.gn.patch +++ b/patches/chrome-utility-BUILD.gn.patch @@ -1,5 +1,5 @@ diff --git a/chrome/utility/BUILD.gn b/chrome/utility/BUILD.gn -index 5c0f0ce689c09a743d6ac6e13ceae4eb383c587a..c72c324284476551cda657609f11df1851786854 100644 +index 63a0c23f068f15f7cbc8f41a80a3af93568f8486..22415191cceffc52603ddbb31b17dd45687186bc 100644 --- a/chrome/utility/BUILD.gn +++ b/chrome/utility/BUILD.gn @@ -72,6 +72,8 @@ static_library("utility") { diff --git a/patches/components-bookmarks-browser-bookmark_model.h.patch b/patches/components-bookmarks-browser-bookmark_model.h.patch index a95fe2f933c4..89b906cbfbbb 100644 --- a/patches/components-bookmarks-browser-bookmark_model.h.patch +++ b/patches/components-bookmarks-browser-bookmark_model.h.patch @@ -1,8 +1,8 @@ diff --git a/components/bookmarks/browser/bookmark_model.h b/components/bookmarks/browser/bookmark_model.h -index 9c633d9eaed5064bd4f9c2679b6b6cb540fc83b6..749ebd0e9e2c17662411d79cc93e7c1ffcced839 100644 +index 30f63894ef5a55316cfc65b6c3d1ee69952b66de..704f8b377f1604d2b97e4dd927a05509ff0476d5 100644 --- a/components/bookmarks/browser/bookmark_model.h +++ b/components/bookmarks/browser/bookmark_model.h -@@ -349,6 +349,7 @@ class BookmarkModel : public BookmarkUndoProvider, +@@ -351,6 +351,7 @@ class BookmarkModel : public BookmarkUndoProvider, return weak_factory_.GetWeakPtr(); } diff --git a/patches/components-browser_ui-site_settings-android-java-src-org-chromium-components-browser_ui-site_settings-SingleCategorySettings.java.patch b/patches/components-browser_ui-site_settings-android-java-src-org-chromium-components-browser_ui-site_settings-SingleCategorySettings.java.patch index faedf5a706cf..b371521b75f2 100644 --- a/patches/components-browser_ui-site_settings-android-java-src-org-chromium-components-browser_ui-site_settings-SingleCategorySettings.java.patch +++ b/patches/components-browser_ui-site_settings-android-java-src-org-chromium-components-browser_ui-site_settings-SingleCategorySettings.java.patch @@ -1,8 +1,8 @@ diff --git a/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SingleCategorySettings.java b/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SingleCategorySettings.java -index c2b381a725b570c8d3b68733fbfc88a32e38f7b0..b9c2f22f90d7fd61d4c51e3364866bc60559a20c 100644 +index b4ee4b2681b9b5a8fdf9e377dadcb8483f7ecfb6..d5e45ffe813129397eaa4e42c7c8ad81414f61b1 100644 --- a/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SingleCategorySettings.java +++ b/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SingleCategorySettings.java -@@ -441,7 +441,7 @@ public class SingleCategorySettings extends SiteSettingsPreferenceFragment +@@ -488,7 +488,7 @@ public class SingleCategorySettings extends SiteSettingsPreferenceFragment if (queryHasChanged) getInfoForOrigins(); return true; } diff --git a/patches/components-browser_ui-site_settings-android-java-src-org-chromium-components-browser_ui-site_settings-SiteSettingsCategory.java.patch b/patches/components-browser_ui-site_settings-android-java-src-org-chromium-components-browser_ui-site_settings-SiteSettingsCategory.java.patch index 1ba16063c77d..1e7bc0bccd33 100644 --- a/patches/components-browser_ui-site_settings-android-java-src-org-chromium-components-browser_ui-site_settings-SiteSettingsCategory.java.patch +++ b/patches/components-browser_ui-site_settings-android-java-src-org-chromium-components-browser_ui-site_settings-SiteSettingsCategory.java.patch @@ -1,26 +1,26 @@ diff --git a/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SiteSettingsCategory.java b/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SiteSettingsCategory.java -index f08c07401bf2e82bb9b38deff45f179ee39c8875..40fa5eab2ce0d2ad7c8269cb174247dae3e2454a 100644 +index ac5c71ffb62eec1988e820b500cbb78ce6702bc9..89932eab0b83d7653b4ea7dc88b48647df71f19a 100644 --- a/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SiteSettingsCategory.java +++ b/components/browser_ui/site_settings/android/java/src/org/chromium/components/browser_ui/site_settings/SiteSettingsCategory.java -@@ -43,7 +43,7 @@ public class SiteSettingsCategory { - Type.JAVASCRIPT, Type.MICROPHONE, Type.NFC, Type.NOTIFICATIONS, Type.POPUPS, +@@ -47,7 +47,7 @@ public class SiteSettingsCategory { Type.PROTECTED_MEDIA, Type.SENSORS, Type.SOUND, Type.USB, Type.VIRTUAL_REALITY, Type.USE_STORAGE, Type.AUTO_DARK_WEB_CONTENT, Type.REQUEST_DESKTOP_SITE, -- Type.FEDERATED_IDENTITY_API}) -+ Type.FEDERATED_IDENTITY_API, Type.AUTOPLAY}) + Type.FEDERATED_IDENTITY_API, Type.THIRD_PARTY_COOKIES, Type.SITE_DATA, +- Type.NUM_ENTRIES}) ++ Type.NUM_ENTRIES, Type.AUTOPLAY}) @Retention(RetentionPolicy.SOURCE) public @interface Type { // All updates here must also be reflected in {@link #preferenceKey(int) -@@ -74,10 +74,11 @@ public class SiteSettingsCategory { - int AUTO_DARK_WEB_CONTENT = 23; - int REQUEST_DESKTOP_SITE = 24; +@@ -80,10 +80,11 @@ public class SiteSettingsCategory { int FEDERATED_IDENTITY_API = 25; -+ int AUTOPLAY = 26; + int THIRD_PARTY_COOKIES = 26; + int SITE_DATA = 27; ++ int AUTOPLAY = 28; /** * Number of handled categories used for calculating array sizes. */ -- int NUM_ENTRIES = 26; -+ int NUM_ENTRIES = 27; +- int NUM_ENTRIES = 28; ++ int NUM_ENTRIES = 29; } private final BrowserContextHandle mBrowserContextHandle; diff --git a/patches/components-browser_ui-widget-android-java-res-values-dimens.xml.patch b/patches/components-browser_ui-widget-android-java-res-values-dimens.xml.patch index 9ece95117eeb..468cf2851560 100644 --- a/patches/components-browser_ui-widget-android-java-res-values-dimens.xml.patch +++ b/patches/components-browser_ui-widget-android-java-res-values-dimens.xml.patch @@ -1,8 +1,8 @@ diff --git a/components/browser_ui/widget/android/java/res/values/dimens.xml b/components/browser_ui/widget/android/java/res/values/dimens.xml -index c8672d3b020fede79174ec54db91651c60125ede..4d4d17cf64623755f0bb5ad00fe48be5eb3da0f9 100644 +index 7ab6fd858cc175a7eddc55accab1ee255f712736..d94dd144132bbd0c3c6b9f0c96572989b4bdc77c 100644 --- a/components/browser_ui/widget/android/java/res/values/dimens.xml +++ b/components/browser_ui/widget/android/java/res/values/dimens.xml -@@ -76,7 +76,7 @@ found in the LICENSE file. +@@ -75,7 +75,7 @@ found in the LICENSE file. 48dp diff --git a/patches/components-content_settings-browser-page_specific_content_settings.cc.patch b/patches/components-content_settings-browser-page_specific_content_settings.cc.patch index 9180f08ef6f5..de08935c0fd5 100644 --- a/patches/components-content_settings-browser-page_specific_content_settings.cc.patch +++ b/patches/components-content_settings-browser-page_specific_content_settings.cc.patch @@ -1,8 +1,8 @@ diff --git a/components/content_settings/browser/page_specific_content_settings.cc b/components/content_settings/browser/page_specific_content_settings.cc -index 506fb1a47a596e8fde601f711d7834a7bd492dc5..9ecea77e9ae3c84d2fa8543421f9cbc76da442b5 100644 +index 1b221f81ebdab5b76315a5dc2b351f587cda9234..8155f35d429c8a49708a1d02a4f0478f3c50b132 100644 --- a/components/content_settings/browser/page_specific_content_settings.cc +++ b/components/content_settings/browser/page_specific_content_settings.cc -@@ -561,6 +561,7 @@ bool PageSpecificContentSettings::IsContentBlocked( +@@ -589,6 +589,7 @@ bool PageSpecificContentSettings::IsContentBlocked( content_type == ContentSettingsType::ADS || content_type == ContentSettingsType::SOUND || content_type == ContentSettingsType::CLIPBOARD_READ_WRITE || @@ -10,7 +10,7 @@ index 506fb1a47a596e8fde601f711d7834a7bd492dc5..9ecea77e9ae3c84d2fa8543421f9cbc7 content_type == ContentSettingsType::SENSORS || content_type == ContentSettingsType::GEOLOCATION) { const auto& it = content_settings_status_.find(content_type); -@@ -583,6 +584,7 @@ bool PageSpecificContentSettings::IsContentAllowed( +@@ -611,6 +612,7 @@ bool PageSpecificContentSettings::IsContentAllowed( content_type != ContentSettingsType::MEDIASTREAM_CAMERA && content_type != ContentSettingsType::MIDI_SYSEX && content_type != ContentSettingsType::CLIPBOARD_READ_WRITE && diff --git a/patches/components-content_settings-core-browser-BUILD.gn.patch b/patches/components-content_settings-core-browser-BUILD.gn.patch index 13dc874d9fea..b242c62beb8f 100644 --- a/patches/components-content_settings-core-browser-BUILD.gn.patch +++ b/patches/components-content_settings-core-browser-BUILD.gn.patch @@ -1,8 +1,8 @@ diff --git a/components/content_settings/core/browser/BUILD.gn b/components/content_settings/core/browser/BUILD.gn -index 5ee472064ea565a22d521d813f0394ffafa43f80..4a34f46757007b279b9f33cb8cb0fb03d8aa7e9a 100644 +index 815fabf60d2c219027bf1e12f79e3c2418493ff8..2e24c1f2a3c48683585fa9add3d13fdba5e1cc71 100644 --- a/components/content_settings/core/browser/BUILD.gn +++ b/components/content_settings/core/browser/BUILD.gn -@@ -81,6 +81,7 @@ static_library("browser") { +@@ -77,6 +77,7 @@ static_library("browser") { } configs += [ "//build/config/compiler:wexit_time_destructors" ] diff --git a/patches/components-content_settings-core-browser-content_settings_default_provider.cc.patch b/patches/components-content_settings-core-browser-content_settings_default_provider.cc.patch index af0d3714ff37..cec74f88c2e9 100644 --- a/patches/components-content_settings-core-browser-content_settings_default_provider.cc.patch +++ b/patches/components-content_settings-core-browser-content_settings_default_provider.cc.patch @@ -1,5 +1,5 @@ diff --git a/components/content_settings/core/browser/content_settings_default_provider.cc b/components/content_settings/core/browser/content_settings_default_provider.cc -index 783839c7116b06128df8b2daf98dbe99d3b60dbb..12d28156ced83b2d5bf84a36e9f3cda7146226e0 100644 +index 41e8cd4287823d83fdd09917580a6c276a156dd8..031475e41c1e8b878e9fccbe7039e3e9787fe147 100644 --- a/components/content_settings/core/browser/content_settings_default_provider.cc +++ b/components/content_settings/core/browser/content_settings_default_provider.cc @@ -365,6 +365,7 @@ void DefaultProvider::DiscardOrMigrateObsoletePreferences() { diff --git a/patches/components-content_settings-core-browser-content_settings_policy_provider.cc.patch b/patches/components-content_settings-core-browser-content_settings_policy_provider.cc.patch index f28286f3b437..975f20d1400c 100644 --- a/patches/components-content_settings-core-browser-content_settings_policy_provider.cc.patch +++ b/patches/components-content_settings-core-browser-content_settings_policy_provider.cc.patch @@ -1,5 +1,5 @@ diff --git a/components/content_settings/core/browser/content_settings_policy_provider.cc b/components/content_settings/core/browser/content_settings_policy_provider.cc -index e2daa7902cb753818d397ae81a08203f6fe9925d..387e52558161b269d372750a4d184b3ea683c4c5 100644 +index 2624e1d7f3c53b5acb3bc4c4d2335819008f1abf..d6a80dd10fad91b313bb367b92fe97a0578a0464 100644 --- a/components/content_settings/core/browser/content_settings_policy_provider.cc +++ b/components/content_settings/core/browser/content_settings_policy_provider.cc @@ -34,6 +34,7 @@ struct PrefsForManagedContentSettingsMapEntry { diff --git a/patches/components-content_settings-core-browser-content_settings_pref.cc.patch b/patches/components-content_settings-core-browser-content_settings_pref.cc.patch index b35f4f22311a..5634aadc6d1e 100644 --- a/patches/components-content_settings-core-browser-content_settings_pref.cc.patch +++ b/patches/components-content_settings-core-browser-content_settings_pref.cc.patch @@ -1,5 +1,5 @@ diff --git a/components/content_settings/core/browser/content_settings_pref.cc b/components/content_settings/core/browser/content_settings_pref.cc -index bcb3e1f917e2c69f64bcdc5b52fb405b3f421e0c..bca21d9cbd8a9367d25c858dea847fea92f90488 100644 +index 386695753f709d5ea4ab68b06db0336a1981ffe9..376680d8c18ed0b5e5409e5f300ab84825311946 100644 --- a/components/content_settings/core/browser/content_settings_pref.cc +++ b/components/content_settings/core/browser/content_settings_pref.cc @@ -157,6 +157,7 @@ void ContentSettingsPref::SetWebsiteSetting( diff --git a/patches/components-content_settings-core-browser-content_settings_registry.cc.patch b/patches/components-content_settings-core-browser-content_settings_registry.cc.patch index 56a595c2a918..fdd34ece736d 100644 --- a/patches/components-content_settings-core-browser-content_settings_registry.cc.patch +++ b/patches/components-content_settings-core-browser-content_settings_registry.cc.patch @@ -1,8 +1,8 @@ diff --git a/components/content_settings/core/browser/content_settings_registry.cc b/components/content_settings/core/browser/content_settings_registry.cc -index 9333aca18738b362cc7cd54e3b9685a5dbe4a586..9480195d5ff05a27c9fc9a9e144ed43b9986932c 100644 +index f3a629dca7074c1a638ca8100eae45dc45e0d90c..da48fb4f9f451f8773ec601dfd6bed899ca0a59d 100644 --- a/components/content_settings/core/browser/content_settings_registry.cc +++ b/components/content_settings/core/browser/content_settings_registry.cc -@@ -618,6 +618,7 @@ void ContentSettingsRegistry::Init() { +@@ -598,6 +598,7 @@ void ContentSettingsRegistry::Init() { ContentSettingsInfo::INHERIT_IN_INCOGNITO, ContentSettingsInfo::PERSISTENT, ContentSettingsInfo::EXCEPTIONS_ON_SECURE_ORIGINS_ONLY); diff --git a/patches/components-content_settings-core-browser-cookie_settings.cc.patch b/patches/components-content_settings-core-browser-cookie_settings.cc.patch index 13da4c73b6be..d71e285eb461 100644 --- a/patches/components-content_settings-core-browser-cookie_settings.cc.patch +++ b/patches/components-content_settings-core-browser-cookie_settings.cc.patch @@ -1,8 +1,8 @@ diff --git a/components/content_settings/core/browser/cookie_settings.cc b/components/content_settings/core/browser/cookie_settings.cc -index 10cf2824bdb0cc21e0f727c2ed1fd13cbf7b51b4..9a4332a876b56741e27e88a21dc1ba5db863d21c 100644 +index dcdf811fb261904d11827b4bbb3c2a28be6f2810..7b778898c018a94e9980a882128cca22c8189565 100644 --- a/components/content_settings/core/browser/cookie_settings.cc +++ b/components/content_settings/core/browser/cookie_settings.cc -@@ -194,6 +194,7 @@ ContentSetting CookieSettings::GetCookieSettingInternal( +@@ -197,6 +197,7 @@ ContentSetting CookieSettings::GetCookieSettingInternal( DCHECK(value.is_int()); ContentSetting setting = ValueToContentSetting(value); bool block = block_third && is_third_party_request; diff --git a/patches/components-content_settings-core-common-content_settings.cc.patch b/patches/components-content_settings-core-common-content_settings.cc.patch index 785de6657dcf..de02a3ed98b7 100644 --- a/patches/components-content_settings-core-common-content_settings.cc.patch +++ b/patches/components-content_settings-core-common-content_settings.cc.patch @@ -1,11 +1,11 @@ diff --git a/components/content_settings/core/common/content_settings.cc b/components/content_settings/core/common/content_settings.cc -index c9e69f17d7a4c7ef390e688bc13aa6ab704bf4c0..fb03fe22d3c7ca0679a4576cedeed69aed7aa26b 100644 +index f516737a56282d248fe78717b94797b8ab9ca3d5..3e2b819cf46a29fe5906088be9f0bd0909fd1b8f 100644 --- a/components/content_settings/core/common/content_settings.cc +++ b/components/content_settings/core/common/content_settings.cc -@@ -109,6 +109,7 @@ constexpr HistogramValue kHistogramValue[] = { - {ContentSettingsType::NOTIFICATION_PERMISSION_REVIEW, 88}, - {ContentSettingsType::PRIVATE_NETWORK_GUARD, 89}, - {ContentSettingsType::PRIVATE_NETWORK_CHOOSER_DATA, 90}, +@@ -112,6 +112,7 @@ constexpr HistogramValue kHistogramValue[] = { + {ContentSettingsType::FEDERATED_IDENTITY_IDENTITY_PROVIDER_SIGNIN_STATUS, + 91}, + {ContentSettingsType::REVOKED_UNUSED_SITE_PERMISSIONS, 92}, + BRAVE_HISTOGRAM_VALUE_LIST }; diff --git a/patches/components-content_settings-core-common-cookie_settings_base.h.patch b/patches/components-content_settings-core-common-cookie_settings_base.h.patch index 509e434bafab..9136b8b00ddf 100644 --- a/patches/components-content_settings-core-common-cookie_settings_base.h.patch +++ b/patches/components-content_settings-core-common-cookie_settings_base.h.patch @@ -1,8 +1,8 @@ diff --git a/components/content_settings/core/common/cookie_settings_base.h b/components/content_settings/core/common/cookie_settings_base.h -index 56ce04cf7489560a4a9750c9e3e0adb4f00ae681..2fca787ee1420fb733868cdb11d4435d624c1014 100644 +index 0ee293b2c4972ba1babc232762d7b9d778182dcb..58c01489cb87f4f78578653c05729d331a842e8f 100644 --- a/components/content_settings/core/common/cookie_settings_base.h +++ b/components/content_settings/core/common/cookie_settings_base.h -@@ -71,7 +71,7 @@ class CookieSettingsBase { +@@ -73,7 +73,7 @@ class CookieSettingsBase { CookieSettingsBase(const CookieSettingsBase&) = delete; CookieSettingsBase& operator=(const CookieSettingsBase&) = delete; diff --git a/patches/components-content_settings-renderer-content_settings_agent_impl.cc.patch b/patches/components-content_settings-renderer-content_settings_agent_impl.cc.patch index f34745820c87..78a262699edc 100644 --- a/patches/components-content_settings-renderer-content_settings_agent_impl.cc.patch +++ b/patches/components-content_settings-renderer-content_settings_agent_impl.cc.patch @@ -1,8 +1,8 @@ diff --git a/components/content_settings/renderer/content_settings_agent_impl.cc b/components/content_settings/renderer/content_settings_agent_impl.cc -index 41947c7d3ff0cf6fef4046036ed1abacea792b93..d4ac4eb147d9a58006ad70d13e46ffca33331b2a 100644 +index 7847420167a30bb66747ad5d541fa0dfbfa60664..52626865781deaf549aa247cb6a056bd5d753447 100644 --- a/components/content_settings/renderer/content_settings_agent_impl.cc +++ b/components/content_settings/renderer/content_settings_agent_impl.cc -@@ -439,6 +439,7 @@ bool ContentSettingsAgentImpl::IsAllowlistedForContentSettings() const { +@@ -431,6 +431,7 @@ bool ContentSettingsAgentImpl::IsAllowlistedForContentSettings() const { const WebDocument& document = render_frame()->GetWebFrame()->GetDocument(); WebSecurityOrigin origin = document.GetSecurityOrigin(); WebURL document_url = document.Url(); diff --git a/patches/components-crash-core-browser-resources-crashes.js.patch b/patches/components-crash-core-browser-resources-crashes.js.patch deleted file mode 100644 index 0610c9028175..000000000000 --- a/patches/components-crash-core-browser-resources-crashes.js.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/components/crash/core/browser/resources/crashes.js b/components/crash/core/browser/resources/crashes.js -index d4b9c365faa37a2a18fbfc0579dda1aeedb6cbb4..3295bfc2aa0ba0043a173b72f00104f0468c735e 100644 ---- a/components/crash/core/browser/resources/crashes.js -+++ b/components/crash/core/browser/resources/crashes.js -@@ -108,7 +108,7 @@ function updateCrashList({ - crashLink.href = `https://goto.google.com/crash/${crash.id}`; - crashLink.target = '_blank'; - crashLink.textContent = crash.id; -- uploadIdValue.appendChild(crashLink); -+ //uploadIdValue.appendChild(crashLink); // feature disabled in Brave - } else { - uploadIdValue.textContent = crash.id; - } diff --git a/patches/components-crash-core-browser-resources-crashes.ts.patch b/patches/components-crash-core-browser-resources-crashes.ts.patch new file mode 100644 index 000000000000..e17e5a3f6e94 --- /dev/null +++ b/patches/components-crash-core-browser-resources-crashes.ts.patch @@ -0,0 +1,13 @@ +diff --git a/components/crash/core/browser/resources/crashes.ts b/components/crash/core/browser/resources/crashes.ts +index 591214145a8025abfa7a6478851f935530148521..7c99c663a630f7e6d82f0191efcc9f22663a3042 100644 +--- a/components/crash/core/browser/resources/crashes.ts ++++ b/components/crash/core/browser/resources/crashes.ts +@@ -141,7 +141,7 @@ function updateCrashList({ + crashLink.href = `https://goto.google.com/crash/${crash.id}`; + crashLink.target = '_blank'; + crashLink.textContent = crash.id; +- uploadIdValue.appendChild(crashLink); ++ // uploadIdValue.appendChild(crashLink); // feature disabled in Brave + } else { + uploadIdValue.textContent = crash.id; + } diff --git a/patches/components-download-internal-background_service-proto-entry.proto.patch b/patches/components-download-internal-background_service-proto-entry.proto.patch index ee81a006ed4b..0ecefe8f4cc2 100644 --- a/patches/components-download-internal-background_service-proto-entry.proto.patch +++ b/patches/components-download-internal-background_service-proto-entry.proto.patch @@ -1,11 +1,11 @@ diff --git a/components/download/internal/background_service/proto/entry.proto b/components/download/internal/background_service/proto/entry.proto -index 955323219619ada808758048c9d423905f25a8eb..82e51550903349bdb6aab3da6063d989e368d914 100644 +index 629efd9757163f4bf532c200a6a7b414ff40ac67..96e6f2b9852edf9719f2b3d0836cc1ea70b52cf3 100644 --- a/components/download/internal/background_service/proto/entry.proto +++ b/components/download/internal/background_service/proto/entry.proto -@@ -27,6 +27,7 @@ enum DownloadClient { +@@ -28,6 +28,7 @@ enum DownloadClient { // New clients should be added above here. - BOUNDARY = 10; + BOUNDARY = 11; + CUSTOM_LIST_SUBSCRIPTIONS = 256; } diff --git a/patches/components-download-internal-background_service-proto_conversions.cc.patch b/patches/components-download-internal-background_service-proto_conversions.cc.patch index 22ac09dc226a..0bf80aa1a7fe 100644 --- a/patches/components-download-internal-background_service-proto_conversions.cc.patch +++ b/patches/components-download-internal-background_service-proto_conversions.cc.patch @@ -1,17 +1,17 @@ diff --git a/components/download/internal/background_service/proto_conversions.cc b/components/download/internal/background_service/proto_conversions.cc -index be74ae46d79fc94962e720069fc37ba9af3ff48a..a25695be644346eeab64eda68a0febf5fa7823e3 100644 +index c776acb211ed2de3939f06860018e9d16f4babbc..4cd4e1f3c86724d40f44fb043903baa66fab3618 100644 --- a/components/download/internal/background_service/proto_conversions.cc +++ b/components/download/internal/background_service/proto_conversions.cc -@@ -77,6 +77,7 @@ protodb::DownloadClient ProtoConversions::DownloadClientToProto( - return protodb::DownloadClient::OPTIMIZATION_GUIDE_PREDICTION_MODELS; +@@ -79,6 +79,7 @@ protodb::DownloadClient ProtoConversions::DownloadClientToProto( + return protodb::DownloadClient::BRUSCHETTA; case DownloadClient::BOUNDARY: return protodb::DownloadClient::BOUNDARY; + BRAVE_DOWNLOAD_CLIENT_TO_PROTO } NOTREACHED(); -@@ -108,6 +109,7 @@ DownloadClient ProtoConversions::DownloadClientFromProto( - return DownloadClient::OPTIMIZATION_GUIDE_PREDICTION_MODELS; +@@ -112,6 +113,7 @@ DownloadClient ProtoConversions::DownloadClientFromProto( + return DownloadClient::BRUSCHETTA; case protodb::DownloadClient::BOUNDARY: return DownloadClient::BOUNDARY; + BRAVE_DOWNLOAD_CLIENT_FROM_PROTO diff --git a/patches/components-download-internal-common-download_item_impl.cc.patch b/patches/components-download-internal-common-download_item_impl.cc.patch index 035f12cb603f..12ee89c08f0d 100644 --- a/patches/components-download-internal-common-download_item_impl.cc.patch +++ b/patches/components-download-internal-common-download_item_impl.cc.patch @@ -1,8 +1,8 @@ diff --git a/components/download/internal/common/download_item_impl.cc b/components/download/internal/common/download_item_impl.cc -index 667eb32bf22c836cee31d0c3ab34b99f04013c2a..1240f1becc295b62c15737d496de48bbf7953fcf 100644 +index e86808a6941532ffdd06147d922badde20de91a5..be5eb8fa40e6f1824e116c109ce5f05ec4140963 100644 --- a/components/download/internal/common/download_item_impl.cc +++ b/components/download/internal/common/download_item_impl.cc -@@ -1934,8 +1934,8 @@ void DownloadItemImpl::OnDownloadCompleting() { +@@ -1933,8 +1933,8 @@ void DownloadItemImpl::OnDownloadCompleting() { base::Unretained(download_file_.get()), GetTargetFilePath(), delegate_->GetApplicationClientIdForFileScanning(), diff --git a/patches/components-download-public-background_service-clients.cc.patch b/patches/components-download-public-background_service-clients.cc.patch index 3b4f18b7f76e..2de1901f266c 100644 --- a/patches/components-download-public-background_service-clients.cc.patch +++ b/patches/components-download-public-background_service-clients.cc.patch @@ -1,11 +1,11 @@ diff --git a/components/download/public/background_service/clients.cc b/components/download/public/background_service/clients.cc -index ad9780ad6a2cdef8266dbe46484a90259da12cc1..bf6be3be2d7dc6e78190828edf658eb7cda7d2bb 100644 +index ca9151e61761137094c550fdbe25e204fa2916e1..e7047b84199e9f962666cc7bdd2ea9c545f898ae 100644 --- a/components/download/public/background_service/clients.cc +++ b/components/download/public/background_service/clients.cc -@@ -26,6 +26,7 @@ std::string BackgroundDownloadClientToString(DownloadClient client) { - return "PluginVmImage"; - case DownloadClient::OPTIMIZATION_GUIDE_PREDICTION_MODELS: +@@ -28,6 +28,7 @@ std::string BackgroundDownloadClientToString(DownloadClient client) { return "OptimizationGuidePredictionModels"; + case DownloadClient::BRUSCHETTA: + return "Bruschetta"; + BRAVE_BACKGROUND_DOWNLOAD_CLIENT_TO_STRING case DownloadClient::BOUNDARY: break; diff --git a/patches/components-download-public-background_service-clients.h.patch b/patches/components-download-public-background_service-clients.h.patch index 4dfc407b4bee..139889600f3e 100644 --- a/patches/components-download-public-background_service-clients.h.patch +++ b/patches/components-download-public-background_service-clients.h.patch @@ -1,11 +1,11 @@ diff --git a/components/download/public/background_service/clients.h b/components/download/public/background_service/clients.h -index 9943c8c5c2b230a427b13a9b32eeffeb42dae4bf..31a65ea21f9d4a15caf0ecfcd4b68e77005be39a 100644 +index d2547050c34bba5a336253860ac8a0d7e19b255f..baf131b6da0ef355543b7de50a931b494e6aae0e 100644 --- a/components/download/public/background_service/clients.h +++ b/components/download/public/background_service/clients.h -@@ -46,6 +46,7 @@ enum class DownloadClient { +@@ -48,6 +48,7 @@ enum class DownloadClient { // New clients should be added above here. - BOUNDARY = 7, + BOUNDARY = 8, + BRAVE_DOWNLOAD_CLIENT }; diff --git a/patches/components-embedder_support-user_agent_utils.cc.patch b/patches/components-embedder_support-user_agent_utils.cc.patch index 72db7d6362de..8d62b3d4ce9f 100644 --- a/patches/components-embedder_support-user_agent_utils.cc.patch +++ b/patches/components-embedder_support-user_agent_utils.cc.patch @@ -1,8 +1,8 @@ diff --git a/components/embedder_support/user_agent_utils.cc b/components/embedder_support/user_agent_utils.cc -index 2c5b4b4a85536e68ef5a1323e974729f818e9f5b..ba5161ec02353664664d6a9c09f87b42f8bdd625 100644 +index 40148eeaef7d16e06ff7f7af32cb7ec82f61142f..52fc9a5baa9017d9cec58922ae03fc157ee63293 100644 --- a/components/embedder_support/user_agent_utils.cc +++ b/components/embedder_support/user_agent_utils.cc -@@ -268,6 +268,7 @@ const blink::UserAgentBrandList GetUserAgentBrandList( +@@ -280,6 +280,7 @@ const blink::UserAgentBrandList GetUserAgentBrandList( #if !BUILDFLAG(CHROMIUM_BRANDING) brand = version_info::GetProductName(); #endif diff --git a/patches/components-error_page-common-localized_error.cc.patch b/patches/components-error_page-common-localized_error.cc.patch index df62ebe0a9b5..351c3eea1aee 100644 --- a/patches/components-error_page-common-localized_error.cc.patch +++ b/patches/components-error_page-common-localized_error.cc.patch @@ -1,8 +1,8 @@ diff --git a/components/error_page/common/localized_error.cc b/components/error_page/common/localized_error.cc -index 65bfb1ac568bb303feeaeb6cf6ff9e8aa23280c6..bcadd2d897564e51c4404bf4da95067f5654890b 100644 +index 3e6e49328455506e68b8a70b8779256b52d3c0ba..1ccdcdd79f15010138aeb00a0235f9929380ae59 100644 --- a/components/error_page/common/localized_error.cc +++ b/components/error_page/common/localized_error.cc -@@ -480,6 +480,7 @@ const LocalizedErrorMap* LookupErrorMap(const std::string& error_domain, +@@ -479,6 +479,7 @@ const LocalizedErrorMap* LookupErrorMap(const std::string& error_domain, int error_code, bool is_secure_dns_network_error, bool is_post) { diff --git a/patches/components-history-core-browser-history_types.h.patch b/patches/components-history-core-browser-history_types.h.patch index 46f243378826..7f61004e440b 100644 --- a/patches/components-history-core-browser-history_types.h.patch +++ b/patches/components-history-core-browser-history_types.h.patch @@ -1,5 +1,5 @@ diff --git a/components/history/core/browser/history_types.h b/components/history/core/browser/history_types.h -index 65849ab66754fba5e449f8e6b20f0688b9c73f37..df3fd0bbab1273a482294fc3ba7f4572b4617f66 100644 +index 3cbb236c60afdbbccd4dca20801e046e768e197f..cbba111215649c9b376a4f42f45f398234e2aaaf 100644 --- a/components/history/core/browser/history_types.h +++ b/components/history/core/browser/history_types.h @@ -52,6 +52,8 @@ enum VisitSource { diff --git a/patches/components-infobars-core-infobar_delegate.h.patch b/patches/components-infobars-core-infobar_delegate.h.patch index 57b30836fc06..e8026303f78b 100644 --- a/patches/components-infobars-core-infobar_delegate.h.patch +++ b/patches/components-infobars-core-infobar_delegate.h.patch @@ -1,11 +1,11 @@ diff --git a/components/infobars/core/infobar_delegate.h b/components/infobars/core/infobar_delegate.h -index 9c26957e515756df49bf61486c92b2f97330d464..323ee720d5b46e752aa2d85774fa58b23e92e6a5 100644 +index 6b66e5a7c998377465d6881b9c4bbd9f442d9b16..decd6a95ec4f4545db04e6b5a68fb6ee5512a768 100644 --- a/components/infobars/core/infobar_delegate.h +++ b/components/infobars/core/infobar_delegate.h -@@ -180,6 +180,7 @@ class InfoBarDelegate { - SUPPORTED_LINKS_INFOBAR_DELEGATE_CHROMEOS = 109, +@@ -184,6 +184,7 @@ class InfoBarDelegate { AUTOFILL_VIRTUAL_CARD_ENROLLMENT_INFOBAR_DELEGATE_MOBILE = 110, TAILORED_SECURITY_SERVICE_INFOBAR_DELEGATE = 111, + CHROME_FOR_TESTING_INFOBAR_DELEGATE = 112, + BRAVE_INFOBAR_DELEGATE_IDENTIFIERS }; diff --git a/patches/components-keyed_service-content-browser_context_keyed_service_factory.h.patch b/patches/components-keyed_service-content-browser_context_keyed_service_factory.h.patch index c7572f367b68..9e49e0d6f430 100644 --- a/patches/components-keyed_service-content-browser_context_keyed_service_factory.h.patch +++ b/patches/components-keyed_service-content-browser_context_keyed_service_factory.h.patch @@ -1,8 +1,8 @@ diff --git a/components/keyed_service/content/browser_context_keyed_service_factory.h b/components/keyed_service/content/browser_context_keyed_service_factory.h -index 2d15bc4016deb2425a1e3f0554478c185db7435b..2a87693b509b6b5976cbce17ca06eb64fe2861e0 100644 +index dda3f0c6163114dab45f1ece5ab5ec74ed206b41..5d0e3e030e94a9caa862e57a0c0217633cdee322 100644 --- a/components/keyed_service/content/browser_context_keyed_service_factory.h +++ b/components/keyed_service/content/browser_context_keyed_service_factory.h -@@ -161,6 +161,7 @@ class KEYED_SERVICE_EXPORT BrowserContextKeyedServiceFactory +@@ -164,6 +164,7 @@ class KEYED_SERVICE_EXPORT BrowserContextKeyedServiceFactory // and the default implementation removes it from |mapping_| and deletes // the pointer. virtual void BrowserContextShutdown(content::BrowserContext* context); diff --git a/patches/components-metrics-BUILD.gn.patch b/patches/components-metrics-BUILD.gn.patch index f9e882de7ac3..1c6cb8413b7e 100644 --- a/patches/components-metrics-BUILD.gn.patch +++ b/patches/components-metrics-BUILD.gn.patch @@ -1,5 +1,5 @@ diff --git a/components/metrics/BUILD.gn b/components/metrics/BUILD.gn -index 74b6a7a9ee39f35090e4b7bc2107554b7f156220..09defb74bf37256e5bbe6843faa4bb441337a7a1 100644 +index 05bf0885eee2059498c029a527a1ace929eb6921..370aa5e488b33e8e1b0709b1304428b2e9624650 100644 --- a/components/metrics/BUILD.gn +++ b/components/metrics/BUILD.gn @@ -253,6 +253,7 @@ static_library("metrics") { diff --git a/patches/components-omnibox-browser-BUILD.gn.patch b/patches/components-omnibox-browser-BUILD.gn.patch index b3254c459b2a..4f7f3cfa7ebe 100644 --- a/patches/components-omnibox-browser-BUILD.gn.patch +++ b/patches/components-omnibox-browser-BUILD.gn.patch @@ -1,8 +1,8 @@ diff --git a/components/omnibox/browser/BUILD.gn b/components/omnibox/browser/BUILD.gn -index 114217b5c033baf565f7fe63068ffd770be125f7..f84016696a613ed626fcbb023e6572b67fd9e71a 100644 +index 42080bd6db3ca2dd7333a99b8e5deab3cae35e7d..e68e855428fd734ad1812fc81cb26a1772d63518 100644 --- a/components/omnibox/browser/BUILD.gn +++ b/components/omnibox/browser/BUILD.gn -@@ -299,6 +299,7 @@ static_library("browser") { +@@ -318,6 +318,7 @@ static_library("browser") { "//ui/base", "//ui/gfx", ] diff --git a/patches/components-omnibox-browser-autocomplete_controller.cc.patch b/patches/components-omnibox-browser-autocomplete_controller.cc.patch index 6994a231def2..fa35757b8475 100644 --- a/patches/components-omnibox-browser-autocomplete_controller.cc.patch +++ b/patches/components-omnibox-browser-autocomplete_controller.cc.patch @@ -1,5 +1,5 @@ diff --git a/components/omnibox/browser/autocomplete_controller.cc b/components/omnibox/browser/autocomplete_controller.cc -index b8d4c7b5e588d43296acdcfcbd919c376d1976cc..8b413a805302380eb3b0863d0876324f040bfa9c 100644 +index 79b5379140e781d2befcf88d46c918945878763b..6a0835d204a2805b78bcee9505314a54cd1d315b 100644 --- a/components/omnibox/browser/autocomplete_controller.cc +++ b/components/omnibox/browser/autocomplete_controller.cc @@ -347,6 +347,7 @@ AutocompleteController::AutocompleteController( @@ -10,11 +10,11 @@ index b8d4c7b5e588d43296acdcfcbd919c376d1976cc..8b413a805302380eb3b0863d0876324f } // Providers run in the order they're added. Add `HistoryURLProvider` after // `SearchProvider` because: -@@ -993,6 +994,7 @@ void AutocompleteController::UpdateResult( +@@ -970,6 +971,7 @@ void AutocompleteController::UpdateResult( #if DCHECK_IS_ON() result_.Validate(); #endif // DCHECK_IS_ON() + BRAVE_AUTOCOMPLETE_CONTROLLER_UPDATE_RESULT // Below are all annotations after the match list is ready. - + if (!input_.IsZeroSuggest()) { diff --git a/patches/components-omnibox-browser-omnibox_edit_model.cc.patch b/patches/components-omnibox-browser-omnibox_edit_model.cc.patch index 874227c518b1..b7c84190ce90 100644 --- a/patches/components-omnibox-browser-omnibox_edit_model.cc.patch +++ b/patches/components-omnibox-browser-omnibox_edit_model.cc.patch @@ -1,8 +1,8 @@ diff --git a/components/omnibox/browser/omnibox_edit_model.cc b/components/omnibox/browser/omnibox_edit_model.cc -index 6823f3902ed7527c22586f715256b93e5c32cc98..e84cfc88fdbbb880c1145b6d66b86203bd10eaf0 100644 +index 714596287e06586b4c7fe05fed8fa5f1596ee1cc..5adaddabb378451511d2baa1941e2ec2578980bc 100644 --- a/components/omnibox/browser/omnibox_edit_model.cc +++ b/components/omnibox/browser/omnibox_edit_model.cc -@@ -455,6 +455,7 @@ void OmniboxEditModel::AdjustTextForCopy(int sel_min, +@@ -487,6 +487,7 @@ void OmniboxEditModel::AdjustTextForCopy(int sel_min, (*text == display_text_ || *text == url_for_editing_)) { *url_from_text = controller()->GetLocationBarModel()->GetURL(); *write_url = true; diff --git a/patches/components-optimization_guide-core-BUILD.gn.patch b/patches/components-optimization_guide-core-BUILD.gn.patch deleted file mode 100644 index 15727449debc..000000000000 --- a/patches/components-optimization_guide-core-BUILD.gn.patch +++ /dev/null @@ -1,36 +0,0 @@ -diff --git a/components/optimization_guide/core/BUILD.gn b/components/optimization_guide/core/BUILD.gn -index 29444c9b70244c041e3522fbff0b8eeaf99d55a5..da432afd5be59e023caedfa2e8d0e3ed1b63f3bb 100644 ---- a/components/optimization_guide/core/BUILD.gn -+++ b/components/optimization_guide/core/BUILD.gn -@@ -65,6 +65,14 @@ static_library("model_executor") { - "//components/optimization_guide:machine_learning_tflite_buildflags", - "//third_party/re2", - ] -+ deps = [ -+ ":features", -+ "//base", -+ "//components/optimization_guide/proto:optimization_guide_proto", -+ "//net", -+ "//url", -+ ] -+ - if (build_with_tflite_lib) { - public_deps += [ - "//components/optimization_guide/core:machine_learning", -@@ -74,15 +82,8 @@ static_library("model_executor") { - "//third_party/tflite_support", - "//third_party/tflite_support:tflite_support_proto", - ] -+ deps += [ ":machine_learning" ] - } -- deps = [ -- ":features", -- ":machine_learning", -- "//base", -- "//components/optimization_guide/proto:optimization_guide_proto", -- "//net", -- "//url", -- ] - } - - mojom("interfaces") { diff --git a/patches/components-page_info-page_info.cc.patch b/patches/components-page_info-page_info.cc.patch index 5578d79dc912..9e9af75f95e7 100644 --- a/patches/components-page_info-page_info.cc.patch +++ b/patches/components-page_info-page_info.cc.patch @@ -1,5 +1,5 @@ diff --git a/components/page_info/page_info.cc b/components/page_info/page_info.cc -index cb9befd20c02ec9e0a1f4283714cf438b4abed0f..2b1a33f886ad0aa2418675269cabd06a12c7a161 100644 +index d9b9633d74ff0c9b3bdab1e8b3c1635dc0dc0ff0..2571dbf54310a517c74007465a4a94676a308d69 100644 --- a/components/page_info/page_info.cc +++ b/components/page_info/page_info.cc @@ -1197,6 +1197,7 @@ void PageInfo::PresentSitePermissions() { diff --git a/patches/components-password_manager-core-browser-login_database.cc.patch b/patches/components-password_manager-core-browser-login_database.cc.patch index 0cc9f87749d9..2574d5b84332 100644 --- a/patches/components-password_manager-core-browser-login_database.cc.patch +++ b/patches/components-password_manager-core-browser-login_database.cc.patch @@ -1,11 +1,11 @@ diff --git a/components/password_manager/core/browser/login_database.cc b/components/password_manager/core/browser/login_database.cc -index effe0b67e02a1a4f0071d1b415f4dc5c5784b7a4..a8f688dfb1cdb7d9f04e391125f2e7115e6f0f0a 100644 +index ad1fad7f690226e28682de4a84fafd529a311152..87544a7b13603a7b9efc2a4a9586eeeae9b7ec4f 100644 --- a/components/password_manager/core/browser/login_database.cc +++ b/components/password_manager/core/browser/login_database.cc -@@ -1878,6 +1878,7 @@ FormRetrievalResult LoginDatabase::StatementToForms( +@@ -1858,6 +1858,7 @@ FormRetrievalResult LoginDatabase::StatementToForms( + EncryptionResult result = InitPasswordFormFromStatement( - *statement, /*decrypt_and_fill_password_value=*/true, &primary_key, - new_form.get()); + *statement, /*decrypt_and_fill_password_value=*/true, new_form.get()); + BRAVE_STATEMENT_TO_FORMS if (result == ENCRYPTION_RESULT_SERVICE_FAILURE) { has_service_failure = true; diff --git a/patches/components-password_manager-core-browser-password_form_filling.cc.patch b/patches/components-password_manager-core-browser-password_form_filling.cc.patch index dcbb87a0073c..78b8d659840a 100644 --- a/patches/components-password_manager-core-browser-password_form_filling.cc.patch +++ b/patches/components-password_manager-core-browser-password_form_filling.cc.patch @@ -1,8 +1,8 @@ diff --git a/components/password_manager/core/browser/password_form_filling.cc b/components/password_manager/core/browser/password_form_filling.cc -index 6d82421aa0f52afc7e5e41a3e90e46f82cc95207..e98466ec2f0d8c493c1c95ef733607ba5fc11924 100644 +index 3e2cf1a869bc4cffad95216d5a184b0576e8f702..3f8fb2ff80d0466bd8a6c780c700166ae67a16a4 100644 --- a/components/password_manager/core/browser/password_form_filling.cc +++ b/components/password_manager/core/browser/password_form_filling.cc -@@ -243,6 +243,7 @@ LikelyFormFilling SendFillInformationToRenderer( +@@ -250,6 +250,7 @@ LikelyFormFilling SendFillInformationToRenderer( bool wait_for_username = wait_for_username_reason != WaitForUsernameReason::kDontWait; diff --git a/patches/components-permissions-BUILD.gn.patch b/patches/components-permissions-BUILD.gn.patch index 743d34760009..0e59c80ade1a 100644 --- a/patches/components-permissions-BUILD.gn.patch +++ b/patches/components-permissions-BUILD.gn.patch @@ -1,8 +1,8 @@ diff --git a/components/permissions/BUILD.gn b/components/permissions/BUILD.gn -index 704d471a34e2429fa338a784d92c6297d765e506..8cec2694a1d9f1a19718e8f8fc802aa6577f2774 100644 +index 15deddf6d7463f83d2002d59adf6c2f0f6c195bb..529ef411230e3be20cef50c33803e046dc623ad4 100644 --- a/components/permissions/BUILD.gn +++ b/components/permissions/BUILD.gn -@@ -143,6 +143,7 @@ source_set("permissions") { +@@ -142,6 +142,7 @@ source_set("permissions") { "contexts/geolocation_permission_context_mac.h", ] } diff --git a/patches/components-permissions-permission_context_base.h.patch b/patches/components-permissions-permission_context_base.h.patch index 38dcd96de0fd..17d9fc968e8d 100644 --- a/patches/components-permissions-permission_context_base.h.patch +++ b/patches/components-permissions-permission_context_base.h.patch @@ -1,5 +1,5 @@ diff --git a/components/permissions/permission_context_base.h b/components/permissions/permission_context_base.h -index 7292fa44f446314d29dec4f5b164bf4a518cb299..923094ead992cf027adc0a7c20104a34ed0585bc 100644 +index 3a03e83b11491f46fe0f65eb85ceb97b19da8fc5..5e756f4d7dd7d2dc045426aa866a1e8cf0e14ddc 100644 --- a/components/permissions/permission_context_base.h +++ b/components/permissions/permission_context_base.h @@ -122,6 +122,7 @@ class PermissionContextBase : public content_settings::Observer { diff --git a/patches/components-permissions-permission_uma_util.cc.patch b/patches/components-permissions-permission_uma_util.cc.patch index 4cdced291670..759b48f8d8d9 100644 --- a/patches/components-permissions-permission_uma_util.cc.patch +++ b/patches/components-permissions-permission_uma_util.cc.patch @@ -1,5 +1,5 @@ diff --git a/components/permissions/permission_uma_util.cc b/components/permissions/permission_uma_util.cc -index b7e9488342e551347c61e256d43287aca9ea69bf..d7be0de3903892ff4536e8d8ad95d2c97ff0bb23 100644 +index cf4ef6f8f179d1311525bd5c9fb37d98aed32ff1..698dac086f1c3b90599bd63d36311c5266d8e8f4 100644 --- a/components/permissions/permission_uma_util.cc +++ b/components/permissions/permission_uma_util.cc @@ -109,6 +109,7 @@ RequestTypeForUma GetUmaValueForRequestType(RequestType request_type) { diff --git a/patches/components-policy-tools-generate_policy_source.py.patch b/patches/components-policy-tools-generate_policy_source.py.patch index 2350fc4de0dc..5bcc18296876 100644 --- a/patches/components-policy-tools-generate_policy_source.py.patch +++ b/patches/components-policy-tools-generate_policy_source.py.patch @@ -1,5 +1,5 @@ diff --git a/components/policy/tools/generate_policy_source.py b/components/policy/tools/generate_policy_source.py -index feb36d536f184b8d9f8e7284a26ba68d8b2205ea..1aa486b4811f4cd5a5e10f785f72a563297acd49 100755 +index 273a7686a494f5813ba7540025f4a95c29bfd8c2..49afbccc92bb69db3959ef79d95916c838c30c55 100755 --- a/components/policy/tools/generate_policy_source.py +++ b/components/policy/tools/generate_policy_source.py @@ -55,6 +55,7 @@ PLATFORM_STRINGS = { @@ -10,7 +10,7 @@ index feb36d536f184b8d9f8e7284a26ba68d8b2205ea..1aa486b4811f4cd5a5e10f785f72a563 class PolicyDetails: """Parses a policy template and caches all its details.""" -@@ -382,6 +383,7 @@ def main(): +@@ -384,6 +385,7 @@ def main(): chrome_major_version = ParseVersionFile(version_path) template_file_contents = _LoadJSONFile(template_file_name) diff --git a/patches/components-safe_browsing-core-common-safe_browsing_prefs.cc.patch b/patches/components-safe_browsing-core-common-safe_browsing_prefs.cc.patch index ecd25ac5a83b..2f67020af6d5 100644 --- a/patches/components-safe_browsing-core-common-safe_browsing_prefs.cc.patch +++ b/patches/components-safe_browsing-core-common-safe_browsing_prefs.cc.patch @@ -1,5 +1,5 @@ diff --git a/components/safe_browsing/core/common/safe_browsing_prefs.cc b/components/safe_browsing/core/common/safe_browsing_prefs.cc -index 12d10cc3059df7946a436561fc8b7b08bfe4af1a..f6b195d894ff3646c521455ada712e40b509ed4c 100644 +index 2c44c3d9c4622167aa861bd9efae678b49140d31..227b2020b4c54cbdcf3a608f108a5b2936788978 100644 --- a/components/safe_browsing/core/common/safe_browsing_prefs.cc +++ b/components/safe_browsing/core/common/safe_browsing_prefs.cc @@ -150,6 +150,7 @@ bool IsSafeBrowsingEnabled(const PrefService& prefs) { @@ -9,4 +9,4 @@ index 12d10cc3059df7946a436561fc8b7b08bfe4af1a..f6b195d894ff3646c521455ada712e40 + BRAVE_IS_ENHANCED_PROTECTION_ENABLED // SafeBrowsingEnabled is checked too due to devices being out // of sync or not on a version that includes SafeBrowsingEnhanced pref. - return base::FeatureList::IsEnabled(kEnhancedProtection) && + return prefs.GetBoolean(prefs::kSafeBrowsingEnhanced) && diff --git a/patches/components-search_engines-default_search_manager.cc.patch b/patches/components-search_engines-default_search_manager.cc.patch index c327e968b879..c27a168b2432 100644 --- a/patches/components-search_engines-default_search_manager.cc.patch +++ b/patches/components-search_engines-default_search_manager.cc.patch @@ -1,8 +1,8 @@ diff --git a/components/search_engines/default_search_manager.cc b/components/search_engines/default_search_manager.cc -index 49c73ced1be1605bf78d70a907ecb26d4e97b24f..6a9fcf73023742805967bd67d9c0132a60dbdac5 100644 +index 0b37f607039a980ca59f1afa5dc4e6e2fd9aec04..280224b94c0b71a952fe6cb8a77d0a0c297a336c 100644 --- a/components/search_engines/default_search_manager.cc +++ b/components/search_engines/default_search_manager.cc -@@ -314,6 +314,7 @@ void DefaultSearchManager::LoadDefaultSearchEngineFromPrefs() { +@@ -315,6 +315,7 @@ void DefaultSearchManager::LoadDefaultSearchEngineFromPrefs() { // Check if default search preference is overriden by extension. if (pref->IsExtensionControlled()) { extension_default_search_ = std::move(turl_data); diff --git a/patches/components-search_engines-prepopulated_engines.json.patch b/patches/components-search_engines-prepopulated_engines.json.patch index 42e61b5f79ea..290864b97081 100644 --- a/patches/components-search_engines-prepopulated_engines.json.patch +++ b/patches/components-search_engines-prepopulated_engines.json.patch @@ -1,5 +1,5 @@ diff --git a/components/search_engines/prepopulated_engines.json b/components/search_engines/prepopulated_engines.json -index 5a0bf4d6b071d34beeead55cf4f462c5c35de007..c2e914d6f7b770931cb8b4cd2fbea0b8ae9d26ff 100644 +index b5e448c2654df6d40fbf4c2546a55415aba96787..d30725a2edac18eeed572c92a7573f0ad325be4e 100644 --- a/components/search_engines/prepopulated_engines.json +++ b/components/search_engines/prepopulated_engines.json @@ -91,17 +91,6 @@ @@ -20,7 +20,7 @@ index 5a0bf4d6b071d34beeead55cf4f462c5c35de007..c2e914d6f7b770931cb8b4cd2fbea0b8 "ecosia": { "name": "Ecosia", "keyword": "ecosia.org", -@@ -171,16 +160,6 @@ +@@ -172,16 +161,6 @@ "id": 102 }, diff --git a/patches/components-sync-BUILD.gn.patch b/patches/components-sync-BUILD.gn.patch index a03b0972a79b..f8fa210063e9 100644 --- a/patches/components-sync-BUILD.gn.patch +++ b/patches/components-sync-BUILD.gn.patch @@ -1,5 +1,5 @@ diff --git a/components/sync/BUILD.gn b/components/sync/BUILD.gn -index aa8ab6f262c519dd22c537d682e46b6f862db113..d0086f77968d8d49cce77dbcbd941a3b03476eb2 100644 +index eb8b313ed8c20891d5e8e1ef5bb801f49b3c47c3..bb9551017d867c3fde612bb4b8276bbb79061655 100644 --- a/components/sync/BUILD.gn +++ b/components/sync/BUILD.gn @@ -19,6 +19,7 @@ group("sync") { diff --git a/patches/components-sync-driver-sync_service_impl.h.patch b/patches/components-sync-driver-sync_service_impl.h.patch index c0013f34f834..d94db130bdce 100644 --- a/patches/components-sync-driver-sync_service_impl.h.patch +++ b/patches/components-sync-driver-sync_service_impl.h.patch @@ -1,5 +1,5 @@ diff --git a/components/sync/driver/sync_service_impl.h b/components/sync/driver/sync_service_impl.h -index 7e05b0d2006d163d4052454e2c5ad71b0b350770..abb6957fd3589bf0b937d63af0e92d68b8f92b4e 100644 +index 494748039d4198773ec1464e9882af1d56d3d555..21a42bda9baac298bdf89b477991f7ae00de0d64 100644 --- a/components/sync/driver/sync_service_impl.h +++ b/components/sync/driver/sync_service_impl.h @@ -238,6 +238,7 @@ class SyncServiceImpl : public SyncService, diff --git a/patches/components-sync-engine-sync_scheduler_impl.cc.patch b/patches/components-sync-engine-sync_scheduler_impl.cc.patch index cbbc8daba908..9c6b2dfe711d 100644 --- a/patches/components-sync-engine-sync_scheduler_impl.cc.patch +++ b/patches/components-sync-engine-sync_scheduler_impl.cc.patch @@ -1,8 +1,8 @@ diff --git a/components/sync/engine/sync_scheduler_impl.cc b/components/sync/engine/sync_scheduler_impl.cc -index b8ee801ec971de6c6e3b3e52c19cc32ef0a424cd..d953711147171cdff00821ffede806984a0b355f 100644 +index 139e285399f9965e88c1181e19e93d9840bbcf89..f9ae55e7dfc72f2a088154a1af24ffab4d726657 100644 --- a/components/sync/engine/sync_scheduler_impl.cc +++ b/components/sync/engine/sync_scheduler_impl.cc -@@ -508,6 +508,7 @@ void SyncSchedulerImpl::HandleFailure( +@@ -507,6 +507,7 @@ void SyncSchedulerImpl::HandleFailure( SDVLOG(2) << "Sync cycle failed. Will back off for " << wait_interval_->length.InMilliseconds() << "ms."; } diff --git a/patches/components-sync-protocol-device_info_specifics.proto.patch b/patches/components-sync-protocol-device_info_specifics.proto.patch index aa80fafbb76e..fc0de6021402 100644 --- a/patches/components-sync-protocol-device_info_specifics.proto.patch +++ b/patches/components-sync-protocol-device_info_specifics.proto.patch @@ -1,5 +1,5 @@ diff --git a/components/sync/protocol/device_info_specifics.proto b/components/sync/protocol/device_info_specifics.proto -index bbced6284dd0f7611de6661c6be6322fca3d0705..b9614d3b9d8dac6cc959f4899c18421ae779408c 100644 +index d14dec2b4aca53a69da5612bfb42e9585bd00834..36720b0f758a90f9e6c26db91ef84598c0219c09 100644 --- a/components/sync/protocol/device_info_specifics.proto +++ b/components/sync/protocol/device_info_specifics.proto @@ -17,6 +17,7 @@ option optimize_for = LITE_RUNTIME; @@ -10,10 +10,10 @@ index bbced6284dd0f7611de6661c6be6322fca3d0705..b9614d3b9d8dac6cc959f4899c18421a // Information about a device that is running a sync-enabled Chrome browser. We // are mapping the per-client cache guid to more specific information about the -@@ -90,6 +91,7 @@ message DeviceInfoSpecifics { - ChromeVersionInfo chrome_version_info = 17; - GooglePlayServicesVersionInfo google_play_services_version_info = 18; - } +@@ -98,6 +99,7 @@ message DeviceInfoSpecifics { + + // The form factor of the device. + optional SyncEnums.DeviceFormFactor device_form_factor = 20; + optional BraveSpecificFields brave_fields = 1000; } diff --git a/patches/components-sync-protocol-proto_visitors.h.patch b/patches/components-sync-protocol-proto_visitors.h.patch index 2a625e1fb7f5..4f1891e582f5 100644 --- a/patches/components-sync-protocol-proto_visitors.h.patch +++ b/patches/components-sync-protocol-proto_visitors.h.patch @@ -1,8 +1,8 @@ diff --git a/components/sync/protocol/proto_visitors.h b/components/sync/protocol/proto_visitors.h -index 09c680f25e8e557e16d1ec16f820242c5495feee..b0da9f3496f5e4f197d88edecc9e356e2e28041c 100644 +index 3d3bb299f3f52815d2cd7e4c7ae1a683ba9ae71e..f961fc48c9225e8021371a7daff3118c6afafa90 100644 --- a/components/sync/protocol/proto_visitors.h +++ b/components/sync/protocol/proto_visitors.h -@@ -471,6 +471,7 @@ VISIT_PROTO_FIELDS(const sync_pb::DeviceInfoSpecifics& proto) { +@@ -474,6 +474,7 @@ VISIT_PROTO_FIELDS(const sync_pb::DeviceInfoSpecifics& proto) { VISIT(manufacturer); VISIT(last_updated_timestamp); VISIT(feature_fields); @@ -10,7 +10,7 @@ index 09c680f25e8e557e16d1ec16f820242c5495feee..b0da9f3496f5e4f197d88edecc9e356e VISIT(sharing_fields); VISIT(invalidation_fields); VISIT(paask_fields); -@@ -483,6 +484,7 @@ VISIT_PROTO_FIELDS(const sync_pb::FeatureSpecificFields& proto) { +@@ -488,6 +489,7 @@ VISIT_PROTO_FIELDS(const sync_pb::FeatureSpecificFields& proto) { VISIT(send_tab_to_self_receiving_enabled); } diff --git a/patches/components-sync-protocol-protocol_sources.gni.patch b/patches/components-sync-protocol-protocol_sources.gni.patch index b76f511cc2b4..ef99cc0eed7b 100644 --- a/patches/components-sync-protocol-protocol_sources.gni.patch +++ b/patches/components-sync-protocol-protocol_sources.gni.patch @@ -1,8 +1,8 @@ diff --git a/components/sync/protocol/protocol_sources.gni b/components/sync/protocol/protocol_sources.gni -index ef6cd86fb434d851889f91522af944b8704d38f4..9fba8a4b4089126ea262ef3c92c4cbb05bf58a50 100644 +index 83bd7faf4b58d3ad5897b6ae5cec86cceeab9ebf..eba0dcb725a068a0a371933c8b2d28b28afa36dd 100644 --- a/components/sync/protocol/protocol_sources.gni +++ b/components/sync/protocol/protocol_sources.gni -@@ -76,3 +76,4 @@ sync_protocol_sources = [ +@@ -78,3 +78,4 @@ sync_protocol_sources = [ "wifi_configuration_specifics.proto", "workspace_desk_specifics.proto", ] diff --git a/patches/components-sync_device_info-BUILD.gn.patch b/patches/components-sync_device_info-BUILD.gn.patch index 467999c1b052..6dc2ec7d23d1 100644 --- a/patches/components-sync_device_info-BUILD.gn.patch +++ b/patches/components-sync_device_info-BUILD.gn.patch @@ -1,10 +1,10 @@ diff --git a/components/sync_device_info/BUILD.gn b/components/sync_device_info/BUILD.gn -index 5e685e37202c28b9393b19ce163c37f2f486e362..f03e73c4aa2f749afc8dd92a0d38c2b1f1907106 100644 +index a5dd5cb4fa5f78b600f825e25e7f699102f8d425..f42f8e91e95775e4b5d4d28f50cec667e723e967 100644 --- a/components/sync_device_info/BUILD.gn +++ b/components/sync_device_info/BUILD.gn @@ -92,6 +92,7 @@ static_library("sync_device_info") { - "//chromeos/system", - ] + if (is_chromeos_ash) { + deps += [ "//chromeos/ash/components/system" ] } + sources += brave_components_sync_device_info_sources deps += brave_components_sync_device_info_deps } diff --git a/patches/components-sync_device_info-device_info_sync_bridge.cc.patch b/patches/components-sync_device_info-device_info_sync_bridge.cc.patch index cf6ecd771f6f..696d4361c134 100644 --- a/patches/components-sync_device_info-device_info_sync_bridge.cc.patch +++ b/patches/components-sync_device_info-device_info_sync_bridge.cc.patch @@ -1,8 +1,8 @@ diff --git a/components/sync_device_info/device_info_sync_bridge.cc b/components/sync_device_info/device_info_sync_bridge.cc -index 320aafa9a9be7aa3c2ea3acb9f1d96cece1895dc..eaa2096692173966b1eef982acbf4ea53468cac3 100644 +index 30621d716e577c14587046fbc0342d7381668dc2..a823c382e037608c43538c4c62c7d8afa310af64 100644 --- a/components/sync_device_info/device_info_sync_bridge.cc +++ b/components/sync_device_info/device_info_sync_bridge.cc -@@ -296,6 +296,7 @@ std::unique_ptr MakeLocalDeviceSpecifics( +@@ -273,6 +273,7 @@ std::unique_ptr MakeLocalDeviceSpecifics( GetSpecificsFieldNumberFromModelType(data_type)); } @@ -10,7 +10,7 @@ index 320aafa9a9be7aa3c2ea3acb9f1d96cece1895dc..eaa2096692173966b1eef982acbf4ea5 return specifics; } -@@ -465,6 +466,7 @@ absl::optional DeviceInfoSyncBridge::ApplySyncChanges( +@@ -444,6 +445,7 @@ absl::optional DeviceInfoSyncBridge::ApplySyncChanges( for (const std::unique_ptr& change : entity_changes) { const std::string guid = change->storage_key(); @@ -18,7 +18,7 @@ index 320aafa9a9be7aa3c2ea3acb9f1d96cece1895dc..eaa2096692173966b1eef982acbf4ea5 // Reupload local device if it was deleted from the server. if (local_cache_guid_ == guid && change->type() == EntityChange::ACTION_DELETE) { -@@ -475,7 +477,7 @@ absl::optional DeviceInfoSyncBridge::ApplySyncChanges( +@@ -454,7 +456,7 @@ absl::optional DeviceInfoSyncBridge::ApplySyncChanges( // Ignore any remote changes that have a cache guid that is or was this // local device. if (device_info_prefs_->IsRecentLocalCacheGuid(guid)) { @@ -27,7 +27,7 @@ index 320aafa9a9be7aa3c2ea3acb9f1d96cece1895dc..eaa2096692173966b1eef982acbf4ea5 } if (change->type() == EntityChange::ACTION_DELETE) { -@@ -742,6 +744,7 @@ void DeviceInfoSyncBridge::OnReadAllMetadata( +@@ -721,6 +723,7 @@ void DeviceInfoSyncBridge::OnReadAllMetadata( return; } diff --git a/patches/components-translate-content-renderer-per_frame_translate_agent.cc.patch b/patches/components-translate-content-renderer-per_frame_translate_agent.cc.patch index 4279c9808ac3..1b8f0e2bbc79 100644 --- a/patches/components-translate-content-renderer-per_frame_translate_agent.cc.patch +++ b/patches/components-translate-content-renderer-per_frame_translate_agent.cc.patch @@ -1,5 +1,5 @@ diff --git a/components/translate/content/renderer/per_frame_translate_agent.cc b/components/translate/content/renderer/per_frame_translate_agent.cc -index 51b3fdb189b9225524873a5c56bc4f1a696c03e9..246ff15d33b24fcd25068d074369f64a268dbc60 100644 +index 179c198c9b4009fe7dd6379e136ab36a74ebcda8..dcde2286046ea438b5caed4ee3bdb8115a3ec628 100644 --- a/components/translate/content/renderer/per_frame_translate_agent.cc +++ b/components/translate/content/renderer/per_frame_translate_agent.cc @@ -50,7 +50,7 @@ const int kTranslateInitCheckDelayMs = 150; diff --git a/patches/components-update_client-BUILD.gn.patch b/patches/components-update_client-BUILD.gn.patch index dd5dc59bad3a..3fb3f5942a39 100644 --- a/patches/components-update_client-BUILD.gn.patch +++ b/patches/components-update_client-BUILD.gn.patch @@ -1,8 +1,8 @@ diff --git a/components/update_client/BUILD.gn b/components/update_client/BUILD.gn -index a904b265e18001ca82b516e147930cceb6cd88a7..607ce02e5e5e960342337d939998fe5f25c86420 100644 +index b4e9a189acc36c611ae5f34aefc982f6f3741462..41aecfde29c0c17534d0b9ac0d9d78a53e77a32a 100644 --- a/components/update_client/BUILD.gn +++ b/components/update_client/BUILD.gn -@@ -193,6 +193,8 @@ static_library("update_client") { +@@ -194,6 +194,8 @@ static_library("update_client") { "puffin_patcher.h", ] } diff --git a/patches/components-variations-variations_seed_store.cc.patch b/patches/components-variations-variations_seed_store.cc.patch index 4ff6d278c6ac..8ca919651ae8 100644 --- a/patches/components-variations-variations_seed_store.cc.patch +++ b/patches/components-variations-variations_seed_store.cc.patch @@ -1,5 +1,5 @@ diff --git a/components/variations/variations_seed_store.cc b/components/variations/variations_seed_store.cc -index d05b808c0cb19605ebb2b257f2cfb13509702ac5..4a64302f250fbfab34e81d2227a26acfd73d8fec 100644 +index 69edd741d2e6ad90d8bed70f4d7966d029464dd4..286f4d9c989597e2676c88b254ca3d399f713023 100644 --- a/components/variations/variations_seed_store.cc +++ b/components/variations/variations_seed_store.cc @@ -49,6 +49,7 @@ const base::FeatureParam kVariationsAsyncProcessing{ diff --git a/patches/content-browser-renderer_host-navigation_controller_impl.cc.patch b/patches/content-browser-renderer_host-navigation_controller_impl.cc.patch index 9db59934da0a..9573166eb356 100644 --- a/patches/content-browser-renderer_host-navigation_controller_impl.cc.patch +++ b/patches/content-browser-renderer_host-navigation_controller_impl.cc.patch @@ -1,8 +1,8 @@ diff --git a/content/browser/renderer_host/navigation_controller_impl.cc b/content/browser/renderer_host/navigation_controller_impl.cc -index 7bbb66fee4f8e14a5f27825406ebeee9ca4bf8e6..8689250625fdb800ab5fe1d5cb88cfe403e0c73e 100644 +index ca48d1019d7f8feef5f0ecb3507c664822f99d2a..e420cb7814a02e09e8ba6b056a250cf488056479 100644 --- a/content/browser/renderer_host/navigation_controller_impl.cc +++ b/content/browser/renderer_host/navigation_controller_impl.cc -@@ -3545,16 +3545,17 @@ base::WeakPtr NavigationControllerImpl::NavigateWithoutEntry( +@@ -3444,16 +3444,17 @@ base::WeakPtr NavigationControllerImpl::NavigateWithoutEntry( // Note: we intentionally leave the pending entry in place for renderer debug // URLs, unlike the cases below where we clear it if the navigation doesn't // proceed. diff --git a/patches/content-browser-renderer_host-navigation_request.cc.patch b/patches/content-browser-renderer_host-navigation_request.cc.patch index 5802837fb448..333f64383b43 100644 --- a/patches/content-browser-renderer_host-navigation_request.cc.patch +++ b/patches/content-browser-renderer_host-navigation_request.cc.patch @@ -1,8 +1,8 @@ diff --git a/content/browser/renderer_host/navigation_request.cc b/content/browser/renderer_host/navigation_request.cc -index 636b3e88c5b409e27af025993796e3f94b625c52..91b3f6bc7ee0f65e381e538b9dd6b8c80a0c61c6 100644 +index 8dcc8499e45be5127d80ac882d10a9a2c7a9e8dd..f765547058da73b07f0e464f081c8a637cca8438 100644 --- a/content/browser/renderer_host/navigation_request.cc +++ b/content/browser/renderer_host/navigation_request.cc -@@ -2930,6 +2930,7 @@ void NavigationRequest::OnRequestRedirected( +@@ -2998,6 +2998,7 @@ void NavigationRequest::OnRequestRedirected( common_params_->url = redirect_info.new_url; common_params_->method = redirect_info.new_method; common_params_->referrer->url = GURL(redirect_info.new_referrer); @@ -10,7 +10,7 @@ index 636b3e88c5b409e27af025993796e3f94b625c52..91b3f6bc7ee0f65e381e538b9dd6b8c8 common_params_->referrer = Referrer::SanitizeForRequest( common_params_->url, *common_params_->referrer); -@@ -4416,6 +4417,7 @@ void NavigationRequest::OnStartChecksComplete( +@@ -4487,6 +4488,7 @@ void NavigationRequest::OnStartChecksComplete( headers.MergeFrom(TakeModifiedRequestHeaders()); begin_params_->headers = headers.ToString(); diff --git a/patches/content-browser-zygote_host-zygote_host_impl_linux.cc.patch b/patches/content-browser-zygote_host-zygote_host_impl_linux.cc.patch index e6bc9ea174c0..7ec548f522b0 100644 --- a/patches/content-browser-zygote_host-zygote_host_impl_linux.cc.patch +++ b/patches/content-browser-zygote_host-zygote_host_impl_linux.cc.patch @@ -1,5 +1,5 @@ diff --git a/content/browser/zygote_host/zygote_host_impl_linux.cc b/content/browser/zygote_host/zygote_host_impl_linux.cc -index 2de8b35aa18a11e6d5bf44954e5ae4b3bcd9d4ea..38db2c1e4f59daa4c21129ca6194a990b9681c9d 100644 +index 7bc5e4acf632d7a643e5eb3099e893963703426c..fdf38432c9a5cb3cec52577c544adde091631888 100644 --- a/content/browser/zygote_host/zygote_host_impl_linux.cc +++ b/content/browser/zygote_host/zygote_host_impl_linux.cc @@ -125,6 +125,7 @@ void ZygoteHostImpl::Init(const base::CommandLine& command_line) { diff --git a/patches/content-common-BUILD.gn.patch b/patches/content-common-BUILD.gn.patch index bc51c4e67a43..c8f3978c34e9 100644 --- a/patches/content-common-BUILD.gn.patch +++ b/patches/content-common-BUILD.gn.patch @@ -1,5 +1,5 @@ diff --git a/content/common/BUILD.gn b/content/common/BUILD.gn -index 32594910ef32e64dbd5d9fda1fe00b5da912a279..389379166cd767a3cf0afd6daf87012cc5f420f3 100644 +index 54df36f673af12688e0575664c44c30be0cb6584..d7ab483ab86e25cca47fc65ba454b834de4223b1 100644 --- a/content/common/BUILD.gn +++ b/content/common/BUILD.gn @@ -71,6 +71,7 @@ source_set("common") { diff --git a/patches/content-public-browser-content_browser_client.h.patch b/patches/content-public-browser-content_browser_client.h.patch index b03b7eb2e64b..b9c2fe2cea60 100644 --- a/patches/content-public-browser-content_browser_client.h.patch +++ b/patches/content-public-browser-content_browser_client.h.patch @@ -1,8 +1,8 @@ diff --git a/content/public/browser/content_browser_client.h b/content/public/browser/content_browser_client.h -index bdb4632c5653457a1a8e024a6a9c9f5c4d823610..ff56a42709010b7b78a9be744098323f3ba6dfa5 100644 +index eaedfc8f8603dc5af5406450ad290f34f7b8a055..5701bc26f84b36dfdecc4217d5ec39e50fb0fdcd 100644 --- a/content/public/browser/content_browser_client.h +++ b/content/public/browser/content_browser_client.h -@@ -2051,6 +2051,7 @@ class CONTENT_EXPORT ContentBrowserClient { +@@ -2055,6 +2055,7 @@ class CONTENT_EXPORT ContentBrowserClient { virtual ui::AXMode GetAXModeForBrowserContext( BrowserContext* browser_context); diff --git a/patches/content-renderer-render_frame_impl.cc.patch b/patches/content-renderer-render_frame_impl.cc.patch index effc0fab2879..001c3c42bbbe 100644 --- a/patches/content-renderer-render_frame_impl.cc.patch +++ b/patches/content-renderer-render_frame_impl.cc.patch @@ -1,8 +1,8 @@ diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc -index bdaf710b1413db96e6049c027e7ead78d30514cd..5efeb925cd35f946402354e45437506cec98644f 100644 +index 3d43d9488891f0bd27b7caaf53d8236402059bef..364330195387d5af1c536ec21f6a7225e3060aa0 100644 --- a/content/renderer/render_frame_impl.cc +++ b/content/renderer/render_frame_impl.cc -@@ -4423,6 +4423,7 @@ bool RenderFrameImpl::ShouldUseUserAgentOverride() const { +@@ -4437,6 +4437,7 @@ bool RenderFrameImpl::ShouldUseUserAgentOverride() const { // Temporarily return early and fix properly as part of // https://crbug.com/426555. if (web_view->MainFrame()->IsWebRemoteFrame()) diff --git a/patches/content-renderer-render_thread_impl.cc.patch b/patches/content-renderer-render_thread_impl.cc.patch index 00aa8ae4f051..44710755613f 100644 --- a/patches/content-renderer-render_thread_impl.cc.patch +++ b/patches/content-renderer-render_thread_impl.cc.patch @@ -1,8 +1,8 @@ diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc -index 15b082726ad01563ad0a9dec9ac7af900c28e8a2..69ab3fed1bbb6b0175c6dee30bfbaff84dc2ecd6 100644 +index 2ac91dcba1d7af4878822dd476843b8205fd37e7..7de95a046b4972a02ef51fb7daf5c79262d8b413 100644 --- a/content/renderer/render_thread_impl.cc +++ b/content/renderer/render_thread_impl.cc -@@ -936,6 +936,7 @@ void RenderThreadImpl::InitializeRenderer( +@@ -925,6 +925,7 @@ void RenderThreadImpl::InitializeRenderer( } void RenderThreadImpl::RegisterSchemes() { diff --git a/patches/extensions-browser-api-web_request-web_request_api.cc.patch b/patches/extensions-browser-api-web_request-web_request_api.cc.patch index 9a7e572aca01..c6c335682955 100644 --- a/patches/extensions-browser-api-web_request-web_request_api.cc.patch +++ b/patches/extensions-browser-api-web_request-web_request_api.cc.patch @@ -1,8 +1,8 @@ diff --git a/extensions/browser/api/web_request/web_request_api.cc b/extensions/browser/api/web_request/web_request_api.cc -index 93b751e31d4ba23932adaa9f04a660929cd3eda9..64772149d2a9791df188ac589ace96cca1230a74 100644 +index f3bdc2025a0febce845b09bcf8b8b811d10a4b05..578620d841c0a4aa96a5d044d03c30c4a9673db2 100644 --- a/extensions/browser/api/web_request/web_request_api.cc +++ b/extensions/browser/api/web_request/web_request_api.cc -@@ -1395,6 +1395,9 @@ ExtensionWebRequestEventRouter::OnAuthRequired( +@@ -1388,6 +1388,9 @@ ExtensionWebRequestEventRouter::OnAuthRequired( const net::AuthChallengeInfo& auth_info, AuthCallback callback, net::AuthCredentials* credentials) { diff --git a/patches/extensions-browser-sandboxed_unpacker.cc.patch b/patches/extensions-browser-sandboxed_unpacker.cc.patch deleted file mode 100644 index b8818b32963f..000000000000 --- a/patches/extensions-browser-sandboxed_unpacker.cc.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff --git a/extensions/browser/sandboxed_unpacker.cc b/extensions/browser/sandboxed_unpacker.cc -index e444e64fdf3c694f807821c4c281c961ad4f4e68..130555d249dd9b90e312dfa120d8201d8cb61cff 100644 ---- a/extensions/browser/sandboxed_unpacker.cc -+++ b/extensions/browser/sandboxed_unpacker.cc -@@ -1050,6 +1050,7 @@ absl::optional SandboxedUnpacker::RewriteManifestFile( - DCHECK(!public_key_.empty()); - base::Value final_manifest = manifest.Clone(); - final_manifest.SetStringKey(manifest_keys::kPublicKey, public_key_); -+ BRAVE_SANDBOXEDUNPACKER_REWRITEMANIFESTFILE - - { - std::string differential_fingerprint; diff --git a/patches/extensions-common-api-_api_features.json.patch b/patches/extensions-common-api-_api_features.json.patch index 8bcb0be74420..20e493ac5339 100644 --- a/patches/extensions-common-api-_api_features.json.patch +++ b/patches/extensions-common-api-_api_features.json.patch @@ -1,8 +1,8 @@ diff --git a/extensions/common/api/_api_features.json b/extensions/common/api/_api_features.json -index ffe3b2bf7520c76e817f43a370178d1cc81344c5..b9f51eb07c92898c05181d19df0b70e47bf6a7a3 100644 +index 9567b153348b9e0647e70ec87fb8254f178578cc..6a254cdb500741a2feeca2af6dd7655c4e662fdc 100644 --- a/extensions/common/api/_api_features.json +++ b/extensions/common/api/_api_features.json -@@ -593,6 +593,7 @@ +@@ -619,6 +619,7 @@ "matches": [ "chrome://password-change/*", "chrome://file-manager/*" diff --git a/patches/extensions-renderer-native_extension_bindings_system.h.patch b/patches/extensions-renderer-native_extension_bindings_system.h.patch index b9064fa67274..201688f1e34c 100644 --- a/patches/extensions-renderer-native_extension_bindings_system.h.patch +++ b/patches/extensions-renderer-native_extension_bindings_system.h.patch @@ -1,8 +1,8 @@ diff --git a/extensions/renderer/native_extension_bindings_system.h b/extensions/renderer/native_extension_bindings_system.h -index b0cb48530c0f4147dfd9021612a1a4e9b91bbc17..8864a75bde791284720cf4b473368c659e555d52 100644 +index 31785e4d9052fa487d86b583c31eff75e7b9f2ae..330fe5293dec61da3f679c97aff10fcd1ed0751a 100644 --- a/extensions/renderer/native_extension_bindings_system.h +++ b/extensions/renderer/native_extension_bindings_system.h -@@ -41,6 +41,7 @@ class NativeExtensionBindingsSystem { +@@ -42,6 +42,7 @@ class NativeExtensionBindingsSystem { NativeExtensionBindingsSystem& operator=( const NativeExtensionBindingsSystem&) = delete; diff --git a/patches/ios-chrome-browser-prefs-browser_prefs.mm.patch b/patches/ios-chrome-browser-prefs-browser_prefs.mm.patch index 7604b3338d29..e86e81f909c9 100644 --- a/patches/ios-chrome-browser-prefs-browser_prefs.mm.patch +++ b/patches/ios-chrome-browser-prefs-browser_prefs.mm.patch @@ -1,8 +1,8 @@ diff --git a/ios/chrome/browser/prefs/browser_prefs.mm b/ios/chrome/browser/prefs/browser_prefs.mm -index 14b1aa155424c223942b56d0189e7b7707509dd5..f6ae9e72de0bc25d86b3407328235716a1598b83 100644 +index 4ca1af8af6686efe3bfb5cd855dd9ab57324d2bc..2663eb2c84d76a83a931031606a3f13b2307fede 100644 --- a/ios/chrome/browser/prefs/browser_prefs.mm +++ b/ios/chrome/browser/prefs/browser_prefs.mm -@@ -208,6 +208,7 @@ void RegisterLocalStatePrefs(PrefRegistrySimple* registry) { +@@ -210,6 +210,7 @@ void RegisterLocalStatePrefs(PrefRegistrySimple* registry) { prefs::kAutofillBrandingIconAnimationRemainingCountPrefName, 2); registry->RegisterDictionaryPref(kLocalConsentsDictionary); @@ -10,7 +10,7 @@ index 14b1aa155424c223942b56d0189e7b7707509dd5..f6ae9e72de0bc25d86b3407328235716 } void RegisterBrowserStatePrefs(user_prefs::PrefRegistrySyncable* registry) { -@@ -338,6 +339,7 @@ void RegisterBrowserStatePrefs(user_prefs::PrefRegistrySyncable* registry) { +@@ -340,6 +341,7 @@ void RegisterBrowserStatePrefs(user_prefs::PrefRegistrySyncable* registry) { base::to_underlying( prerender_prefs::NetworkPredictionSetting::kEnabledWifiOnly), user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); @@ -18,9 +18,9 @@ index 14b1aa155424c223942b56d0189e7b7707509dd5..f6ae9e72de0bc25d86b3407328235716 } // This method should be periodically pruned of year+ old migrations. -@@ -400,4 +402,5 @@ void MigrateObsoleteBrowserStatePrefs(PrefService* prefs) { - if (!account_id.empty()) - prefs->SetString(prefs::kGoogleServicesLastGaiaId, account_id); - } +@@ -405,4 +407,5 @@ void MigrateObsoleteBrowserStatePrefs(PrefService* prefs) { + + // Added 12/2022. + prefs->ClearPref(reading_list::prefs::kDeprecatedReadingListHasUnseenEntries); + BRAVE_MIGRATE_OBSOLETE_BROWSER_STATE_PREFS } diff --git a/patches/media-audio-pulse-pulse_util.cc.patch b/patches/media-audio-pulse-pulse_util.cc.patch index 677689b2871e..d26dd3d73300 100644 --- a/patches/media-audio-pulse-pulse_util.cc.patch +++ b/patches/media-audio-pulse-pulse_util.cc.patch @@ -1,5 +1,5 @@ diff --git a/media/audio/pulse/pulse_util.cc b/media/audio/pulse/pulse_util.cc -index 1ef136960b3a3b8771a4f0739c419352ea13ef7f..76d94e43110f0396c1a405dd200b9abd8460e0f7 100644 +index 054ab8b305d9ebaa3af75138b8a6616ea3060e2b..922a2991fe0e8b2a998cf75abae8f31102126d0d 100644 --- a/media/audio/pulse/pulse_util.cc +++ b/media/audio/pulse/pulse_util.cc @@ -38,7 +38,7 @@ namespace { diff --git a/patches/net-BUILD.gn.patch b/patches/net-BUILD.gn.patch index d164a0b317f9..7444c332705b 100644 --- a/patches/net-BUILD.gn.patch +++ b/patches/net-BUILD.gn.patch @@ -1,8 +1,8 @@ diff --git a/net/BUILD.gn b/net/BUILD.gn -index 40f143dd9ba73d4fa17f6fa512f2af7a7d6b5d1d..7f7a09d4b0dedb130390396c8337a836697a263e 100644 +index c633dcd9554d07ebcdf7f071ad73f1e7e42b7cca..67ce31702e9beaf9358819c945f4a86e25f4d394 100644 --- a/net/BUILD.gn +++ b/net/BUILD.gn -@@ -1131,6 +1131,7 @@ component("net") { +@@ -1136,6 +1136,7 @@ component("net") { "reporting/reporting_uploader.h", ] } diff --git a/patches/net-base-proxy_server.cc.patch b/patches/net-base-proxy_server.cc.patch index 9da49ab284a1..e7409a4ad06b 100644 --- a/patches/net-base-proxy_server.cc.patch +++ b/patches/net-base-proxy_server.cc.patch @@ -1,5 +1,5 @@ diff --git a/net/base/proxy_server.cc b/net/base/proxy_server.cc -index c2a3e48f409585ee555d0860031abffb3dc12718..b07d5c5ac6f699bd0a47c09cf76fae90755f6324 100644 +index 16756fa513563a823fe36d9dbddd68de56d17c59..46bf636b688e59cf14757e5f59f549b75274b6e9 100644 --- a/net/base/proxy_server.cc +++ b/net/base/proxy_server.cc @@ -60,6 +60,7 @@ ProxyServer ProxyServer::FromSchemeHostAndPort(Scheme scheme, diff --git a/patches/net-cookies-canonical_cookie.cc.patch b/patches/net-cookies-canonical_cookie.cc.patch index fe3dc96a11b0..02f9104ab185 100644 --- a/patches/net-cookies-canonical_cookie.cc.patch +++ b/patches/net-cookies-canonical_cookie.cc.patch @@ -1,5 +1,5 @@ diff --git a/net/cookies/canonical_cookie.cc b/net/cookies/canonical_cookie.cc -index 2fff8cee9cb84c9908413f1c9abc2ad51a450972..f09144e5206b880b7b72060a5617c4d587a7d979 100644 +index f0b68755fab2235aecbf10ea6197b24066c0bbd0..a272b36a1123a788af4815520a3ad68e285dbd5e 100644 --- a/net/cookies/canonical_cookie.cc +++ b/net/cookies/canonical_cookie.cc @@ -516,6 +516,7 @@ base::Time CanonicalCookie::ValidateAndAdjustExpiryDate( diff --git a/patches/net-http-transport_security_state.cc.patch b/patches/net-http-transport_security_state.cc.patch index 8f63ba389bfe..3888eacabfa3 100644 --- a/patches/net-http-transport_security_state.cc.patch +++ b/patches/net-http-transport_security_state.cc.patch @@ -1,11 +1,11 @@ diff --git a/net/http/transport_security_state.cc b/net/http/transport_security_state.cc -index 1133374c14770c115656edce4169d273b142f043..979716997c91bb812548dc9d30860a8f83393b61 100644 +index 1077e9f28956c278a6a3ccc946cd26f8e79aa9cf..cd6a14913960eb14a873436d4019f275d5178146 100644 --- a/net/http/transport_security_state.cc +++ b/net/http/transport_security_state.cc -@@ -414,6 +414,7 @@ TransportSecurityState::TransportSecurityState( +@@ -382,6 +382,7 @@ TransportSecurityState::TransportSecurityState( + // others don't end up with pins that cannot be easily updated. #if !BUILDFLAG(GOOGLE_CHROME_BRANDING) || BUILDFLAG(IS_IOS) enable_static_pins_ = false; - enable_static_expect_ct_ = false; + BRAVE_ENABLE_STATIC_PINS #endif // Check that there no invalid entries in the static HSTS bypass list. diff --git a/patches/net-proxy_resolution-configured_proxy_resolution_service.cc.patch b/patches/net-proxy_resolution-configured_proxy_resolution_service.cc.patch index 7c29bc8d9eef..bce356932383 100644 --- a/patches/net-proxy_resolution-configured_proxy_resolution_service.cc.patch +++ b/patches/net-proxy_resolution-configured_proxy_resolution_service.cc.patch @@ -1,8 +1,8 @@ diff --git a/net/proxy_resolution/configured_proxy_resolution_service.cc b/net/proxy_resolution/configured_proxy_resolution_service.cc -index 45a5e755fe1d6472ed5114180e684e4763460512..8c8917ee7b9203a46eac208eaa2d028ec03ab441 100644 +index 09f8244729f235260b07946168bc19ae71b44bf1..f98f8fe4fc55e9cc8a86e7e9e7228e43187234d7 100644 --- a/net/proxy_resolution/configured_proxy_resolution_service.cc +++ b/net/proxy_resolution/configured_proxy_resolution_service.cc -@@ -976,6 +976,7 @@ int ConfiguredProxyResolutionService::TryToCompleteSynchronously( +@@ -975,6 +975,7 @@ int ConfiguredProxyResolutionService::TryToCompleteSynchronously( config_->value().proxy_rules().Apply(url, result); result->set_traffic_annotation( MutableNetworkTrafficAnnotationTag(config_->traffic_annotation())); diff --git a/patches/sandbox-policy-win-sandbox_win.cc.patch b/patches/sandbox-policy-win-sandbox_win.cc.patch index 3bf67e26d25f..54d7ecb257fd 100644 --- a/patches/sandbox-policy-win-sandbox_win.cc.patch +++ b/patches/sandbox-policy-win-sandbox_win.cc.patch @@ -1,8 +1,8 @@ diff --git a/sandbox/policy/win/sandbox_win.cc b/sandbox/policy/win/sandbox_win.cc -index a885e8cbc626c565bc15a778e88171a740415d1d..3b982c85feb24d826aa18765854905df03a75311 100644 +index f20c7697746d13d67057f2be8f72d9a494234061..deac6ee352af1a781258e4b89643dd9d5b03cc2d 100644 --- a/sandbox/policy/win/sandbox_win.cc +++ b/sandbox/policy/win/sandbox_win.cc -@@ -857,6 +857,7 @@ ResultCode LaunchWithoutSandbox( +@@ -815,6 +815,7 @@ ResultCode LaunchWithoutSandbox( base::Process* process) { base::LaunchOptions options; options.handles_to_inherit = handles_to_inherit; diff --git a/patches/services-network-cookie_manager.cc.patch b/patches/services-network-cookie_manager.cc.patch index 401ee07253ca..ae55ba6c0ea2 100644 --- a/patches/services-network-cookie_manager.cc.patch +++ b/patches/services-network-cookie_manager.cc.patch @@ -1,5 +1,5 @@ diff --git a/services/network/cookie_manager.cc b/services/network/cookie_manager.cc -index 9da2056ddd3cff1c3b5ece77e9654bef1d2a40f1..b0314a9a5825f2e4d4b9dad5cb4d4fc2a7ff0b40 100644 +index 120f304fc27dbe0bcd9a78d3274f533503c2cd66..404622d0de025f7fb89441a344138d272a9ac5da 100644 --- a/services/network/cookie_manager.cc +++ b/services/network/cookie_manager.cc @@ -350,6 +350,7 @@ CookieDeletionInfo DeletionFilterToInfo(mojom::CookieDeletionFilterPtr filter) { diff --git a/patches/services-network-cookie_settings.cc.patch b/patches/services-network-cookie_settings.cc.patch index 396762d4212c..326b5704372d 100644 --- a/patches/services-network-cookie_settings.cc.patch +++ b/patches/services-network-cookie_settings.cc.patch @@ -1,12 +1,12 @@ diff --git a/services/network/cookie_settings.cc b/services/network/cookie_settings.cc -index 8aa5f5eb69f4eb0a2f5e2b67f3030ce7696b379f..33bbfccc611ebf1397dea7f0e1934e14facccb14 100644 +index 83ae43e3841c2c234fa4add9ce8921b2e8a4661c..78695828da4fd8afe36fa0d999102c90ade35afd 100644 --- a/services/network/cookie_settings.cc +++ b/services/network/cookie_settings.cc -@@ -256,6 +256,7 @@ CookieSettings::GetCookieSettingWithMetadata(const GURL& url, +@@ -228,6 +228,7 @@ CookieSettings::GetCookieSettingWithMetadata( match) { cookie_setting = match->GetContentSetting(); found_explicit_setting = IsExplicitSetting(*match); + BRAVE_COOKIE_SETTINGS_GET_COOKIE_SETTINGS_INTERNAL } - if (cookie_setting != CONTENT_SETTING_BLOCK && !found_explicit_setting) { + bool allowed_by_storage_access_grant = false; diff --git a/patches/services-network-cors-cors_url_loader.cc.patch b/patches/services-network-cors-cors_url_loader.cc.patch index 2c532fed8da5..2c068ff11626 100644 --- a/patches/services-network-cors-cors_url_loader.cc.patch +++ b/patches/services-network-cors-cors_url_loader.cc.patch @@ -1,8 +1,8 @@ diff --git a/services/network/cors/cors_url_loader.cc b/services/network/cors/cors_url_loader.cc -index c98341c33a59823cfcc18bdbd0344b13f48d1c93..6b119a04ca01e54e9aec6e3b8f273b132b7550c4 100644 +index ff42dffc08c92a91800aa1b1a764de8f49e0914b..09e63dbe525f2b320348174134b796ebeabf3c92 100644 --- a/services/network/cors/cors_url_loader.cc +++ b/services/network/cors/cors_url_loader.cc -@@ -732,6 +732,7 @@ void CorsURLLoader::StartRequest() { +@@ -730,6 +730,7 @@ void CorsURLLoader::StartRequest() { (fetch_cors_flag_ || (request_.method != net::HttpRequestHeaders::kGetMethod && request_.method != net::HttpRequestHeaders::kHeadMethod))) { diff --git a/patches/services-network-public-cpp-BUILD.gn.patch b/patches/services-network-public-cpp-BUILD.gn.patch index 05d6ad368c1b..cfda19f3f516 100644 --- a/patches/services-network-public-cpp-BUILD.gn.patch +++ b/patches/services-network-public-cpp-BUILD.gn.patch @@ -1,8 +1,8 @@ diff --git a/services/network/public/cpp/BUILD.gn b/services/network/public/cpp/BUILD.gn -index 01e0d03b544247097d9bccdc619287f7d13bd9dd..adbbdf32e5e9b5a024c361cee3e39bdfaa99af53 100644 +index d23e85462ba39b3f0003431f8301c18e1d43bb14..dc58c49ec5b570b714911c5d25c04f5f92258f09 100644 --- a/services/network/public/cpp/BUILD.gn +++ b/services/network/public/cpp/BUILD.gn -@@ -178,6 +178,7 @@ component("cpp") { +@@ -183,6 +183,7 @@ component("cpp") { "//services/proxy_resolver/public/mojom", ] diff --git a/patches/services-network-resolve_host_request.cc.patch b/patches/services-network-resolve_host_request.cc.patch index b96f5419ff08..ab08e24699ed 100644 --- a/patches/services-network-resolve_host_request.cc.patch +++ b/patches/services-network-resolve_host_request.cc.patch @@ -1,8 +1,8 @@ diff --git a/services/network/resolve_host_request.cc b/services/network/resolve_host_request.cc -index 64f3e88eb86a501853cd728d89f524c08f9479a6..166a0d14fee3efb28504d629e449f01a05e5ab25 100644 +index fd76753fa9c27625b5d1008285481aa5f7b8cdd1..a17a22cf0b2a59ecf9f37e88a57d2618ac90a5fd 100644 --- a/services/network/resolve_host_request.cc +++ b/services/network/resolve_host_request.cc -@@ -71,6 +71,7 @@ int ResolveHostRequest::Start( +@@ -94,6 +94,7 @@ int ResolveHostRequest::Start( mojo::Remote response_client( std::move(pending_response_client)); if (rv != net::ERR_IO_PENDING) { diff --git a/patches/third_party-blink-renderer-BUILD.gn.patch b/patches/third_party-blink-renderer-BUILD.gn.patch index af4fe8a1257f..e8b57f4f423a 100644 --- a/patches/third_party-blink-renderer-BUILD.gn.patch +++ b/patches/third_party-blink-renderer-BUILD.gn.patch @@ -1,5 +1,5 @@ diff --git a/third_party/blink/renderer/BUILD.gn b/third_party/blink/renderer/BUILD.gn -index 6d140b8974be973fc3a33d3441a8db266d800ed9..952a8270b4dcf2290ecc83b2e8bade2d9e139a25 100644 +index 28ad2d010b06022e96363beb8b0819038fb4b7d0..b4ec384b037d31d40c280e747cbc91d1080cd842 100644 --- a/third_party/blink/renderer/BUILD.gn +++ b/third_party/blink/renderer/BUILD.gn @@ -9,6 +9,7 @@ if (is_clang) { diff --git a/patches/third_party-blink-renderer-bindings-BUILD.gn.patch b/patches/third_party-blink-renderer-bindings-BUILD.gn.patch index fef759c8158e..265125eab4ff 100644 --- a/patches/third_party-blink-renderer-bindings-BUILD.gn.patch +++ b/patches/third_party-blink-renderer-bindings-BUILD.gn.patch @@ -1,5 +1,5 @@ diff --git a/third_party/blink/renderer/bindings/BUILD.gn b/third_party/blink/renderer/bindings/BUILD.gn -index 1288dfbf6361428bb8a3298812aa9ba6f26b4c79..38be558ee556256f95cac6ce32df5eab6accb6eb 100644 +index 488b2ddf8462dbb9a85eb010818265e92a6e8c53..9971e8f977ed027c92807e83da1789dc8726f5db 100644 --- a/third_party/blink/renderer/bindings/BUILD.gn +++ b/third_party/blink/renderer/bindings/BUILD.gn @@ -173,6 +173,7 @@ template("generate_bindings") { diff --git a/patches/third_party-blink-renderer-bindings-generated_in_modules.gni.patch b/patches/third_party-blink-renderer-bindings-generated_in_modules.gni.patch index fc2be876e8e1..54b69cfe922c 100644 --- a/patches/third_party-blink-renderer-bindings-generated_in_modules.gni.patch +++ b/patches/third_party-blink-renderer-bindings-generated_in_modules.gni.patch @@ -1,10 +1,10 @@ diff --git a/third_party/blink/renderer/bindings/generated_in_modules.gni b/third_party/blink/renderer/bindings/generated_in_modules.gni -index db72e5edb2f0ae5df1553acae5b6bfb16b30dcfd..6d6301548235252380998f0b70528c6156874b72 100644 +index 1ba87c3eb1c617190b584d8eab01e540cba39eb8..748bd741aa18acc62f9df88c3738aa6eebb2f4af 100644 --- a/third_party/blink/renderer/bindings/generated_in_modules.gni +++ b/third_party/blink/renderer/bindings/generated_in_modules.gni -@@ -2600,6 +2600,7 @@ generated_interface_sources_in_modules = [ - "$root_gen_dir/third_party/blink/renderer/bindings/modules/v8/v8_xr_webgl_layer.cc", - "$root_gen_dir/third_party/blink/renderer/bindings/modules/v8/v8_xr_webgl_layer.h", +@@ -2644,6 +2644,7 @@ generated_interface_sources_in_modules = [ + "$root_gen_dir/third_party/blink/renderer/bindings/modules/v8/v8_xr_webgl_sub_image.cc", + "$root_gen_dir/third_party/blink/renderer/bindings/modules/v8/v8_xr_webgl_sub_image.h", ] +generated_interface_sources_in_modules += brave_generated_interface_sources_in_modules diff --git a/patches/third_party-blink-renderer-bindings-idl_in_modules.gni.patch b/patches/third_party-blink-renderer-bindings-idl_in_modules.gni.patch index 578a8d1edf4c..9126efbde0be 100644 --- a/patches/third_party-blink-renderer-bindings-idl_in_modules.gni.patch +++ b/patches/third_party-blink-renderer-bindings-idl_in_modules.gni.patch @@ -1,9 +1,9 @@ diff --git a/third_party/blink/renderer/bindings/idl_in_modules.gni b/third_party/blink/renderer/bindings/idl_in_modules.gni -index fec4479cbc6398a2e1c348f22b98339ae38a31be..894e500220b141fd77b88d2f7eb63c4d3e1e08ce 100644 +index 293f44c52f72dea7bd583162ae2481cd107e8608..d1d9a817006f07af5ceb5fdf5984086f93cd0835 100644 --- a/third_party/blink/renderer/bindings/idl_in_modules.gni +++ b/third_party/blink/renderer/bindings/idl_in_modules.gni -@@ -1173,6 +1173,7 @@ static_idl_files_in_modules = get_path_info( - "//third_party/blink/renderer/modules/xr/xr_webgl_layer_init.idl", +@@ -1184,6 +1184,7 @@ static_idl_files_in_modules = get_path_info( + "//third_party/blink/renderer/modules/xr/xr_webgl_sub_image.idl", ], "abspath") +static_idl_files_in_modules += get_path_info(brave_static_idl_files_in_modules, "abspath") diff --git a/patches/third_party-blink-renderer-bindings-scripts-bind_gen-interface.py.patch b/patches/third_party-blink-renderer-bindings-scripts-bind_gen-interface.py.patch index a32cf0611673..cfaa62cb37b1 100644 --- a/patches/third_party-blink-renderer-bindings-scripts-bind_gen-interface.py.patch +++ b/patches/third_party-blink-renderer-bindings-scripts-bind_gen-interface.py.patch @@ -1,8 +1,8 @@ diff --git a/third_party/blink/renderer/bindings/scripts/bind_gen/interface.py b/third_party/blink/renderer/bindings/scripts/bind_gen/interface.py -index 3ee794e8b17e77505c4cca82ec0a9accc73b9b91..e963bf3921d2de6f6ef6055cf1b17dcbc4c9f305 100644 +index 1c163ff51d24a2415ed3c76ca46404a4727548f2..c17a29720cccdd2aeee29a6c79ba9a64fdd54465 100644 --- a/third_party/blink/renderer/bindings/scripts/bind_gen/interface.py +++ b/third_party/blink/renderer/bindings/scripts/bind_gen/interface.py -@@ -8132,3 +8132,4 @@ def generate_interfaces(task_queue): +@@ -8188,3 +8188,4 @@ def generate_interfaces(task_queue): "InitIDLInterfacesForTesting", "init_idl_interfaces_for_testing", for_testing=True) diff --git a/patches/third_party-blink-renderer-core-BUILD.gn.patch b/patches/third_party-blink-renderer-core-BUILD.gn.patch index 8b3d648bd2dc..2e7c60f0b596 100644 --- a/patches/third_party-blink-renderer-core-BUILD.gn.patch +++ b/patches/third_party-blink-renderer-core-BUILD.gn.patch @@ -1,8 +1,8 @@ diff --git a/third_party/blink/renderer/core/BUILD.gn b/third_party/blink/renderer/core/BUILD.gn -index d600ced2a7c798a5f7bca7e854d1a6b3f92e68d5..dc9babf1b489d3b0a42ca7043e247625163c52cb 100644 +index e6cfaa6d322f9766ade654bf82484d9e8aa18ae4..98fa4f243dae7728008401db0b113086af15faa5 100644 --- a/third_party/blink/renderer/core/BUILD.gn +++ b/third_party/blink/renderer/core/BUILD.gn -@@ -371,6 +371,7 @@ component("core") { +@@ -368,6 +368,7 @@ component("core") { "Carbon.framework", ] } diff --git a/patches/third_party-blink-renderer-core-dom-events-event_target.cc.patch b/patches/third_party-blink-renderer-core-dom-events-event_target.cc.patch index 6ce96c778c69..846d7814e4c2 100644 --- a/patches/third_party-blink-renderer-core-dom-events-event_target.cc.patch +++ b/patches/third_party-blink-renderer-core-dom-events-event_target.cc.patch @@ -1,8 +1,8 @@ diff --git a/third_party/blink/renderer/core/dom/events/event_target.cc b/third_party/blink/renderer/core/dom/events/event_target.cc -index 9b77d717ba42129db61a28f2bf0942a027047e0c..423027c28ac0fe067ed691bdc456334c55e4eef2 100644 +index 6289781d7fbc84af4366428968bea32d24cf8a35..13d0bf277f640188e52f0e04c5a6526dc7c5d990 100644 --- a/third_party/blink/renderer/core/dom/events/event_target.cc +++ b/third_party/blink/renderer/core/dom/events/event_target.cc -@@ -477,6 +477,7 @@ bool EventTarget::AddEventListenerInternal( +@@ -479,6 +479,7 @@ bool EventTarget::AddEventListenerInternal( bool added = EnsureEventTargetData().event_listener_map.Add( event_type, listener, options, ®istered_listener); if (added) { @@ -10,7 +10,7 @@ index 9b77d717ba42129db61a28f2bf0942a027047e0c..423027c28ac0fe067ed691bdc456334c if (options->hasSignal()) { // Instead of passing the entire |options| here, which could create a // circular reference due to |options| holding a Member, just -@@ -610,6 +611,7 @@ bool EventTarget::RemoveEventListenerInternal( +@@ -614,6 +615,7 @@ bool EventTarget::RemoveEventListenerInternal( &index_of_removed_listener, ®istered_listener)) return false; diff --git a/patches/third_party-blink-renderer-core-html-canvas-canvas_async_blob_creator.cc.patch b/patches/third_party-blink-renderer-core-html-canvas-canvas_async_blob_creator.cc.patch index a7a2fe929df7..00b71f318f2c 100644 --- a/patches/third_party-blink-renderer-core-html-canvas-canvas_async_blob_creator.cc.patch +++ b/patches/third_party-blink-renderer-core-html-canvas-canvas_async_blob_creator.cc.patch @@ -1,8 +1,8 @@ diff --git a/third_party/blink/renderer/core/html/canvas/canvas_async_blob_creator.cc b/third_party/blink/renderer/core/html/canvas/canvas_async_blob_creator.cc -index fc6b95e45f3343753978c0f8500212a9a21ecffe..9a0916e5b87b5695edfc2ceac606d0e950c3b0ac 100644 +index 59d6e4ba0c0dc95e785c20bc341dbbbb115badd2..eb23e704c145110769278821a57380e3af213883 100644 --- a/third_party/blink/renderer/core/html/canvas/canvas_async_blob_creator.cc +++ b/third_party/blink/renderer/core/html/canvas/canvas_async_blob_creator.cc -@@ -262,6 +262,7 @@ CanvasAsyncBlobCreator::CanvasAsyncBlobCreator( +@@ -208,6 +208,7 @@ CanvasAsyncBlobCreator::CanvasAsyncBlobCreator( std::min(info.height(), max_dimension)); src_data_.reset(info, src_data_.addr(), src_data_.rowBytes()); } diff --git a/patches/third_party-blink-renderer-core-html-canvas-html_canvas_element.cc.patch b/patches/third_party-blink-renderer-core-html-canvas-html_canvas_element.cc.patch index 4586936dc609..2ab78317d75f 100644 --- a/patches/third_party-blink-renderer-core-html-canvas-html_canvas_element.cc.patch +++ b/patches/third_party-blink-renderer-core-html-canvas-html_canvas_element.cc.patch @@ -1,8 +1,8 @@ diff --git a/third_party/blink/renderer/core/html/canvas/html_canvas_element.cc b/third_party/blink/renderer/core/html/canvas/html_canvas_element.cc -index 7f95eb174be19aa13f8191b881cc8c9176e5197c..d0c5833e523dea756bfb6f60049d3c3a43f6dbba 100644 +index 340b2b9a73b57a2752164a2cb816b933131d5dc4..af8209bdee62096318222963b05228e83d43165c 100644 --- a/third_party/blink/renderer/core/html/canvas/html_canvas_element.cc +++ b/third_party/blink/renderer/core/html/canvas/html_canvas_element.cc -@@ -1068,6 +1068,7 @@ String HTMLCanvasElement::ToDataURLInternal( +@@ -1066,6 +1066,7 @@ String HTMLCanvasElement::ToDataURLInternal( if (!data_buffer) return String("data:,"); diff --git a/patches/third_party-blink-renderer-core-permissions_policy-permissions_policy_features.json5.patch b/patches/third_party-blink-renderer-core-permissions_policy-permissions_policy_features.json5.patch index 2e47528d17b9..598a6e23653d 100644 --- a/patches/third_party-blink-renderer-core-permissions_policy-permissions_policy_features.json5.patch +++ b/patches/third_party-blink-renderer-core-permissions_policy-permissions_policy_features.json5.patch @@ -1,8 +1,8 @@ diff --git a/third_party/blink/renderer/core/permissions_policy/permissions_policy_features.json5 b/third_party/blink/renderer/core/permissions_policy/permissions_policy_features.json5 -index b5648eb75cfef2ecd2a58f088d4e571d2dd8d70f..dca1aa3ce2054a6b81e0a8619d98e6bb540f0329 100644 +index e677d78fc33d6ea2afe4ba9ff4dfe0307b9d723d..7f1cba8ea9379a793acd0f06d80cb9ab1b21e119 100644 --- a/third_party/blink/renderer/core/permissions_policy/permissions_policy_features.json5 +++ b/third_party/blink/renderer/core/permissions_policy/permissions_policy_features.json5 -@@ -409,5 +409,13 @@ +@@ -408,5 +408,13 @@ name: "WindowPlacement", permissions_policy_name: "window-placement", }, diff --git a/patches/third_party-blink-renderer-core-script-script_loader.cc.patch b/patches/third_party-blink-renderer-core-script-script_loader.cc.patch index 83a251c43caa..ebc28c608820 100644 --- a/patches/third_party-blink-renderer-core-script-script_loader.cc.patch +++ b/patches/third_party-blink-renderer-core-script-script_loader.cc.patch @@ -1,8 +1,8 @@ diff --git a/third_party/blink/renderer/core/script/script_loader.cc b/third_party/blink/renderer/core/script/script_loader.cc -index 68f54b7aba1befeb7e2a8370024c54d1bd6e2119..faddc32fb93310ad74853a1e8fa48f2eeaaa8c5f 100644 +index 50c1e710ca3c3fc46fb93f9d5545d22df134adba..27db9693ad5ea2730813e1f0ee8e9f553467b824 100644 --- a/third_party/blink/renderer/core/script/script_loader.cc +++ b/third_party/blink/renderer/core/script/script_loader.cc -@@ -713,6 +713,7 @@ PendingScript* ScriptLoader::PrepareScript( +@@ -714,6 +714,7 @@ PendingScript* ScriptLoader::PrepareScript( parser_state, credentials_mode, referrer_policy, fetch_priority_hint, render_blocking_behavior, RejectCoepUnsafeNone(false)); diff --git a/patches/third_party-blink-renderer-modules-BUILD.gn.patch b/patches/third_party-blink-renderer-modules-BUILD.gn.patch index 71510af704e8..da3b9b548d96 100644 --- a/patches/third_party-blink-renderer-modules-BUILD.gn.patch +++ b/patches/third_party-blink-renderer-modules-BUILD.gn.patch @@ -1,5 +1,5 @@ diff --git a/third_party/blink/renderer/modules/BUILD.gn b/third_party/blink/renderer/modules/BUILD.gn -index e37a216ee6c2eecc4cb2cd3c0587fb4d697f07f6..4e56e34efaa8d278afc318e82d5ad39e5daf21af 100644 +index 630a696497ad7b61afbb0510c05daabc03669c26..2e6bf83e3a7169f82cbe7c320e931f34ca133d6d 100644 --- a/third_party/blink/renderer/modules/BUILD.gn +++ b/third_party/blink/renderer/modules/BUILD.gn @@ -15,6 +15,7 @@ if (is_android) { @@ -10,7 +10,7 @@ index e37a216ee6c2eecc4cb2cd3c0587fb4d697f07f6..4e56e34efaa8d278afc318e82d5ad39e config("modules_implementation") { defines = [ "BLINK_MODULES_IMPLEMENTATION=1" ] -@@ -171,6 +172,7 @@ component("modules") { +@@ -170,6 +171,7 @@ component("modules") { # generating the snapshot for android, blink is compiled with # current_os="linux" and target_os="android". Using target_os is necessary as # we need to compile in the same way as would happen when current_os="android". diff --git a/patches/third_party-blink-renderer-modules-canvas-canvas2d-base_rendering_context_2d.cc.patch b/patches/third_party-blink-renderer-modules-canvas-canvas2d-base_rendering_context_2d.cc.patch index cb89688f3d15..cd035cfc58c6 100644 --- a/patches/third_party-blink-renderer-modules-canvas-canvas2d-base_rendering_context_2d.cc.patch +++ b/patches/third_party-blink-renderer-modules-canvas-canvas2d-base_rendering_context_2d.cc.patch @@ -1,8 +1,8 @@ diff --git a/third_party/blink/renderer/modules/canvas/canvas2d/base_rendering_context_2d.cc b/third_party/blink/renderer/modules/canvas/canvas2d/base_rendering_context_2d.cc -index 533207adc4060f8e5633a789966d2307e0994453..7f63eeeca1b1395f7571f402ce1674fa05cc96ad 100644 +index e1f80d5f609fa5758c7887a147baf196ae976dfb..d9a51e7ffa85b81ca9e87882e805efe7c18965bd 100644 --- a/third_party/blink/renderer/modules/canvas/canvas2d/base_rendering_context_2d.cc +++ b/third_party/blink/renderer/modules/canvas/canvas2d/base_rendering_context_2d.cc -@@ -1943,6 +1943,7 @@ ImageData* BaseRenderingContext2D::getImageData( +@@ -1918,6 +1918,7 @@ ImageData* BaseRenderingContext2D::getImageData( } ImageData* BaseRenderingContext2D::getImageDataInternal( @@ -10,7 +10,7 @@ index 533207adc4060f8e5633a789966d2307e0994453..7f63eeeca1b1395f7571f402ce1674fa int sx, int sy, int sw, -@@ -2080,6 +2081,7 @@ ImageData* BaseRenderingContext2D::getImageDataInternal( +@@ -2058,6 +2059,7 @@ ImageData* BaseRenderingContext2D::getImageDataInternal( DCHECK(!bounds.intersect(SkIRect::MakeXYWH(sx, sy, sw, sh))); } } diff --git a/patches/third_party-blink-renderer-modules-canvas-canvas2d-canvas_rendering_context_2d.cc.patch b/patches/third_party-blink-renderer-modules-canvas-canvas2d-canvas_rendering_context_2d.cc.patch index 28797b797a7c..cfa3097c30c8 100644 --- a/patches/third_party-blink-renderer-modules-canvas-canvas2d-canvas_rendering_context_2d.cc.patch +++ b/patches/third_party-blink-renderer-modules-canvas-canvas2d-canvas_rendering_context_2d.cc.patch @@ -1,8 +1,8 @@ diff --git a/third_party/blink/renderer/modules/canvas/canvas2d/canvas_rendering_context_2d.cc b/third_party/blink/renderer/modules/canvas/canvas2d/canvas_rendering_context_2d.cc -index 207010dd0af0ebeed81831c5317cb6bc2972288f..697d92824cd06899a714265fbebbf949fc845334 100644 +index 020b4d97ec280fadd9a4280f840aeee8f144c96d..a27a01ec1578c960607ef7f20098d514d6fa6bc5 100644 --- a/third_party/blink/renderer/modules/canvas/canvas2d/canvas_rendering_context_2d.cc +++ b/third_party/blink/renderer/modules/canvas/canvas2d/canvas_rendering_context_2d.cc -@@ -922,6 +922,7 @@ TextMetrics* CanvasRenderingContext2D::measureText(const String& text) { +@@ -931,6 +931,7 @@ TextMetrics* CanvasRenderingContext2D::measureText(const String& text) { if (!canvas()->GetDocument().GetFrame()) return MakeGarbageCollected(); diff --git a/patches/third_party-blink-renderer-modules-canvas-canvas2d-canvas_rendering_context_2d.idl.patch b/patches/third_party-blink-renderer-modules-canvas-canvas2d-canvas_rendering_context_2d.idl.patch index 786f4f09cccc..e79e73e6537d 100644 --- a/patches/third_party-blink-renderer-modules-canvas-canvas2d-canvas_rendering_context_2d.idl.patch +++ b/patches/third_party-blink-renderer-modules-canvas-canvas2d-canvas_rendering_context_2d.idl.patch @@ -1,5 +1,5 @@ diff --git a/third_party/blink/renderer/modules/canvas/canvas2d/canvas_rendering_context_2d.idl b/third_party/blink/renderer/modules/canvas/canvas2d/canvas_rendering_context_2d.idl -index 7927a51d3cb281dff1dc68cb817f827985f5c244..5a0b6e0852337b09b7ec645309455b173a7ca783 100644 +index 992c2277131bf7b18eeaf0a2a7ad77ce936c1c51..40449b118f7f4942ac3e878ffd2b88397f05699c 100644 --- a/third_party/blink/renderer/modules/canvas/canvas2d/canvas_rendering_context_2d.idl +++ b/third_party/blink/renderer/modules/canvas/canvas2d/canvas_rendering_context_2d.idl @@ -112,10 +112,10 @@ interface CanvasRenderingContext2D { diff --git a/patches/third_party-blink-renderer-modules-canvas-offscreencanvas2d-offscreen_canvas_rendering_context_2d.idl.patch b/patches/third_party-blink-renderer-modules-canvas-offscreencanvas2d-offscreen_canvas_rendering_context_2d.idl.patch index 50a3e20424b3..bf613445461f 100644 --- a/patches/third_party-blink-renderer-modules-canvas-offscreencanvas2d-offscreen_canvas_rendering_context_2d.idl.patch +++ b/patches/third_party-blink-renderer-modules-canvas-offscreencanvas2d-offscreen_canvas_rendering_context_2d.idl.patch @@ -1,5 +1,5 @@ diff --git a/third_party/blink/renderer/modules/canvas/offscreencanvas2d/offscreen_canvas_rendering_context_2d.idl b/third_party/blink/renderer/modules/canvas/offscreencanvas2d/offscreen_canvas_rendering_context_2d.idl -index 3e00bd93b6b6733fd97a1a70f381815ad476a584..92f7ab361c11d90957b532479b0213ff89ab65d7 100644 +index cc241d0663298dbf7d09c940c8d069c8c6a0b5a0..b01703bfe748af46da2177b78260558c740c7b7b 100644 --- a/third_party/blink/renderer/modules/canvas/offscreencanvas2d/offscreen_canvas_rendering_context_2d.idl +++ b/third_party/blink/renderer/modules/canvas/offscreencanvas2d/offscreen_canvas_rendering_context_2d.idl @@ -68,10 +68,10 @@ diff --git a/patches/third_party-blink-renderer-modules-csspaint-paint_rendering_context_2d.idl.patch b/patches/third_party-blink-renderer-modules-csspaint-paint_rendering_context_2d.idl.patch index 8307c27a8f6e..3c0ac1b41474 100644 --- a/patches/third_party-blink-renderer-modules-csspaint-paint_rendering_context_2d.idl.patch +++ b/patches/third_party-blink-renderer-modules-csspaint-paint_rendering_context_2d.idl.patch @@ -1,5 +1,5 @@ diff --git a/third_party/blink/renderer/modules/csspaint/paint_rendering_context_2d.idl b/third_party/blink/renderer/modules/csspaint/paint_rendering_context_2d.idl -index 49bfd50aed8893853c7e475b9634472637ea5b54..ad9ec7732dc39413ebc72bc56712afc6527528de 100644 +index 4cbf97ad00e4a2927615688793ddea4fa77fdcdd..ca9ca86ebfb0939de70febcfbeae27118bc2d15a 100644 --- a/third_party/blink/renderer/modules/csspaint/paint_rendering_context_2d.idl +++ b/third_party/blink/renderer/modules/csspaint/paint_rendering_context_2d.idl @@ -63,10 +63,10 @@ diff --git a/patches/third_party-blink-renderer-modules-mediastream-media_devices.cc.patch b/patches/third_party-blink-renderer-modules-mediastream-media_devices.cc.patch index 32b9aa98d0d2..71cb9db8b46e 100644 --- a/patches/third_party-blink-renderer-modules-mediastream-media_devices.cc.patch +++ b/patches/third_party-blink-renderer-modules-mediastream-media_devices.cc.patch @@ -1,5 +1,5 @@ diff --git a/third_party/blink/renderer/modules/mediastream/media_devices.cc b/third_party/blink/renderer/modules/mediastream/media_devices.cc -index 1eac9ca82003e8f0bb15d0a20e3857fa6bdcfb40..9c8c6093051766d57c2e3304eb7b6ef8f1f912c0 100644 +index c43fa84a284e07bbbd363b2de3201da39e58a977..695d73dd2071757a0b2e21d3929196bf0af66334 100644 --- a/third_party/blink/renderer/modules/mediastream/media_devices.cc +++ b/third_party/blink/renderer/modules/mediastream/media_devices.cc @@ -859,6 +859,7 @@ void MediaDevices::DevicesEnumerated( @@ -7,6 +7,6 @@ index 1eac9ca82003e8f0bb15d0a20e3857fa6bdcfb40..9c8c6093051766d57c2e3304eb7b6ef8 } + BRAVE_MEDIA_DEVICES_DEVICES_ENUMERATED - RecordEnumeratedDevices(resolver, media_devices); - RecordEnumerateDevicesLatency(request_metadata.start_time); - + RecordEnumeratedDevices(result_tracker->GetScriptState(), media_devices); + // TODO(crbug.com/1395324): Remove this custom EnumerateDevices latency + // tracking by reverting crrev.com/c/3944912/ once the diff --git a/patches/third_party-blink-renderer-modules-webaudio-audio_buffer.cc.patch b/patches/third_party-blink-renderer-modules-webaudio-audio_buffer.cc.patch index 687f01b79f6d..18499cb33f88 100644 --- a/patches/third_party-blink-renderer-modules-webaudio-audio_buffer.cc.patch +++ b/patches/third_party-blink-renderer-modules-webaudio-audio_buffer.cc.patch @@ -1,5 +1,5 @@ diff --git a/third_party/blink/renderer/modules/webaudio/audio_buffer.cc b/third_party/blink/renderer/modules/webaudio/audio_buffer.cc -index 1d323417ea4c7c04b07f12922208f03f84d0b946..4393324122ff96d7ca0fac6b3e02d36b2b7c50cd 100644 +index 2e032806463bb25fd0371c1a03538985a9fd164a..2e6ac692c7d772ce717cb6fad53cd9f7c1c7d9de 100644 --- a/third_party/blink/renderer/modules/webaudio/audio_buffer.cc +++ b/third_party/blink/renderer/modules/webaudio/audio_buffer.cc @@ -197,6 +197,7 @@ AudioBuffer::AudioBuffer(AudioBus* bus) diff --git a/patches/third_party-blink-renderer-modules-webgl-webgl2_rendering_context_base.cc.patch b/patches/third_party-blink-renderer-modules-webgl-webgl2_rendering_context_base.cc.patch index 397435656bdc..1e25cb21fe88 100644 --- a/patches/third_party-blink-renderer-modules-webgl-webgl2_rendering_context_base.cc.patch +++ b/patches/third_party-blink-renderer-modules-webgl-webgl2_rendering_context_base.cc.patch @@ -1,5 +1,5 @@ diff --git a/third_party/blink/renderer/modules/webgl/webgl2_rendering_context_base.cc b/third_party/blink/renderer/modules/webgl/webgl2_rendering_context_base.cc -index 7c6266a03ef194fa5c605c41c92f1eaa120dab58..3829a0796c718eec165dc3589f03c33a9fb2aa79 100644 +index b73267021d6c46580855f5e532d3826a16ef9bc3..1047275582ab16623822a76d8f7bb876857d696b 100644 --- a/third_party/blink/renderer/modules/webgl/webgl2_rendering_context_base.cc +++ b/third_party/blink/renderer/modules/webgl/webgl2_rendering_context_base.cc @@ -5237,6 +5237,7 @@ ScriptValue WebGL2RenderingContextBase::getParameter(ScriptState* script_state, @@ -10,7 +10,7 @@ index 7c6266a03ef194fa5c605c41c92f1eaa120dab58..3829a0796c718eec165dc3589f03c33a switch (pname) { case GL_SHADING_LANGUAGE_VERSION: { return WebGLAny( -@@ -5780,6 +5781,7 @@ ScriptValue WebGL2RenderingContextBase::getFramebufferAttachmentParameter( +@@ -5788,6 +5789,7 @@ ScriptValue WebGL2RenderingContextBase::getFramebufferAttachmentParameter( if (isContextLost() || !ValidateGetFramebufferAttachmentParameterFunc( kFunctionName, target, attachment)) return ScriptValue::CreateNull(script_state->GetIsolate()); @@ -18,7 +18,7 @@ index 7c6266a03ef194fa5c605c41c92f1eaa120dab58..3829a0796c718eec165dc3589f03c33a WebGLFramebuffer* framebuffer_binding = GetFramebufferBinding(target); DCHECK(!framebuffer_binding || framebuffer_binding->Object()); -@@ -5998,6 +6000,7 @@ ScriptValue WebGL2RenderingContextBase::getTexParameter( +@@ -6006,6 +6008,7 @@ ScriptValue WebGL2RenderingContextBase::getTexParameter( GLenum pname) { if (isContextLost() || !ValidateTextureBinding("getTexParameter", target)) return ScriptValue::CreateNull(script_state->GetIsolate()); diff --git a/patches/third_party-blink-renderer-modules-webgl-webgl_rendering_context_base.cc.patch b/patches/third_party-blink-renderer-modules-webgl-webgl_rendering_context_base.cc.patch index 3384bf1c0f2e..4776463800d0 100644 --- a/patches/third_party-blink-renderer-modules-webgl-webgl_rendering_context_base.cc.patch +++ b/patches/third_party-blink-renderer-modules-webgl-webgl_rendering_context_base.cc.patch @@ -1,8 +1,8 @@ diff --git a/third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.cc b/third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.cc -index 4441b31c8802c14825b5836e3e7a2af716c65002..86942a8c9147ee1adb5fc0e8c7494f73c0780082 100644 +index d57716d564be1f488c2e9d427d8d9c078ea93778..e33924e50610d9b645e38d8596753abb62303e2f 100644 --- a/third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.cc +++ b/third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.cc -@@ -3045,6 +3045,7 @@ WebGLActiveInfo* WebGLRenderingContextBase::getActiveAttrib( +@@ -3051,6 +3051,7 @@ WebGLActiveInfo* WebGLRenderingContextBase::getActiveAttrib( GLuint index) { if (!ValidateWebGLProgramOrShader("getActiveAttrib", program)) return nullptr; @@ -10,7 +10,7 @@ index 4441b31c8802c14825b5836e3e7a2af716c65002..86942a8c9147ee1adb5fc0e8c7494f73 GLuint program_id = ObjectNonZero(program); GLint max_name_length = -1; ContextGL()->GetProgramiv(program_id, GL_ACTIVE_ATTRIBUTE_MAX_LENGTH, -@@ -3076,6 +3077,7 @@ WebGLActiveInfo* WebGLRenderingContextBase::getActiveUniform( +@@ -3082,6 +3083,7 @@ WebGLActiveInfo* WebGLRenderingContextBase::getActiveUniform( GLuint index) { if (!ValidateWebGLProgramOrShader("getActiveUniform", program)) return nullptr; @@ -18,7 +18,7 @@ index 4441b31c8802c14825b5836e3e7a2af716c65002..86942a8c9147ee1adb5fc0e8c7494f73 GLuint program_id = ObjectNonZero(program); GLint max_name_length = -1; ContextGL()->GetProgramiv(program_id, GL_ACTIVE_UNIFORM_MAX_LENGTH, -@@ -3106,6 +3108,7 @@ absl::optional>> +@@ -3112,6 +3114,7 @@ absl::optional>> WebGLRenderingContextBase::getAttachedShaders(WebGLProgram* program) { if (!ValidateWebGLProgramOrShader("getAttachedShaders", program)) return absl::nullopt; @@ -26,7 +26,7 @@ index 4441b31c8802c14825b5836e3e7a2af716c65002..86942a8c9147ee1adb5fc0e8c7494f73 HeapVector> shader_objects; for (GLenum shaderType : {GL_VERTEX_SHADER, GL_FRAGMENT_SHADER}) { -@@ -3120,6 +3123,7 @@ GLint WebGLRenderingContextBase::getAttribLocation(WebGLProgram* program, +@@ -3126,6 +3129,7 @@ GLint WebGLRenderingContextBase::getAttribLocation(WebGLProgram* program, const String& name) { if (!ValidateWebGLProgramOrShader("getAttribLocation", program)) return -1; @@ -34,7 +34,7 @@ index 4441b31c8802c14825b5836e3e7a2af716c65002..86942a8c9147ee1adb5fc0e8c7494f73 if (!ValidateLocationLength("getAttribLocation", name)) return -1; if (!ValidateString("getAttribLocation", name)) -@@ -3153,6 +3157,7 @@ ScriptValue WebGLRenderingContextBase::getBufferParameter( +@@ -3159,6 +3163,7 @@ ScriptValue WebGLRenderingContextBase::getBufferParameter( GLenum pname) { if (isContextLost() || !ValidateBufferTarget("getBufferParameter", target)) return ScriptValue::CreateNull(script_state->GetIsolate()); @@ -42,7 +42,7 @@ index 4441b31c8802c14825b5836e3e7a2af716c65002..86942a8c9147ee1adb5fc0e8c7494f73 switch (pname) { case GL_BUFFER_USAGE: { -@@ -3292,6 +3297,7 @@ ScriptValue WebGLRenderingContextBase::getFramebufferAttachmentParameter( +@@ -3298,6 +3303,7 @@ ScriptValue WebGLRenderingContextBase::getFramebufferAttachmentParameter( target, attachment)) return ScriptValue::CreateNull(script_state->GetIsolate()); @@ -50,7 +50,7 @@ index 4441b31c8802c14825b5836e3e7a2af716c65002..86942a8c9147ee1adb5fc0e8c7494f73 if (!framebuffer_binding_ || !framebuffer_binding_->Object()) { SynthesizeGLError(GL_INVALID_OPERATION, "getFramebufferAttachmentParameter", "no framebuffer bound"); -@@ -3690,6 +3696,7 @@ ScriptValue WebGLRenderingContextBase::getParameter(ScriptState* script_state, +@@ -3696,6 +3702,7 @@ ScriptValue WebGLRenderingContextBase::getParameter(ScriptState* script_state, "invalid parameter name, OES_standard_derivatives not enabled"); return ScriptValue::CreateNull(script_state->GetIsolate()); case WebGLDebugRendererInfo::kUnmaskedRendererWebgl: @@ -58,7 +58,7 @@ index 4441b31c8802c14825b5836e3e7a2af716c65002..86942a8c9147ee1adb5fc0e8c7494f73 if (ExtensionEnabled(kWebGLDebugRendererInfoName)) { if (IdentifiabilityStudySettings::Get()->ShouldSampleType( blink::IdentifiableSurface::Type::kWebGLParameter)) { -@@ -3705,6 +3712,7 @@ ScriptValue WebGLRenderingContextBase::getParameter(ScriptState* script_state, +@@ -3711,6 +3718,7 @@ ScriptValue WebGLRenderingContextBase::getParameter(ScriptState* script_state, "invalid parameter name, WEBGL_debug_renderer_info not enabled"); return ScriptValue::CreateNull(script_state->GetIsolate()); case WebGLDebugRendererInfo::kUnmaskedVendorWebgl: @@ -66,7 +66,7 @@ index 4441b31c8802c14825b5836e3e7a2af716c65002..86942a8c9147ee1adb5fc0e8c7494f73 if (ExtensionEnabled(kWebGLDebugRendererInfoName)) { if (IdentifiabilityStudySettings::Get()->ShouldSampleType( blink::IdentifiableSurface::Type::kWebGLParameter)) { -@@ -3797,6 +3805,7 @@ ScriptValue WebGLRenderingContextBase::getProgramParameter( +@@ -3803,6 +3811,7 @@ ScriptValue WebGLRenderingContextBase::getProgramParameter( // intended to prevent applications from entering an infinite polling loop. if (isContextLost() && pname == GL_COMPLETION_STATUS_KHR) return WebGLAny(script_state, true); @@ -74,7 +74,7 @@ index 4441b31c8802c14825b5836e3e7a2af716c65002..86942a8c9147ee1adb5fc0e8c7494f73 if (!ValidateWebGLProgramOrShader("getProgramParamter", program)) { return ScriptValue::CreateNull(script_state->GetIsolate()); } -@@ -3852,6 +3861,7 @@ ScriptValue WebGLRenderingContextBase::getProgramParameter( +@@ -3858,6 +3867,7 @@ ScriptValue WebGLRenderingContextBase::getProgramParameter( String WebGLRenderingContextBase::getProgramInfoLog(WebGLProgram* program) { if (!ValidateWebGLProgramOrShader("getProgramInfoLog", program)) return String(); @@ -82,7 +82,7 @@ index 4441b31c8802c14825b5836e3e7a2af716c65002..86942a8c9147ee1adb5fc0e8c7494f73 GLStringQuery query(ContextGL()); return query.Run(ObjectNonZero(program)); } -@@ -3862,6 +3872,7 @@ ScriptValue WebGLRenderingContextBase::getRenderbufferParameter( +@@ -3868,6 +3878,7 @@ ScriptValue WebGLRenderingContextBase::getRenderbufferParameter( GLenum pname) { if (isContextLost()) return ScriptValue::CreateNull(script_state->GetIsolate()); @@ -90,7 +90,7 @@ index 4441b31c8802c14825b5836e3e7a2af716c65002..86942a8c9147ee1adb5fc0e8c7494f73 if (target != GL_RENDERBUFFER) { SynthesizeGLError(GL_INVALID_ENUM, "getRenderbufferParameter", "invalid target"); -@@ -3913,6 +3924,7 @@ ScriptValue WebGLRenderingContextBase::getShaderParameter( +@@ -3919,6 +3930,7 @@ ScriptValue WebGLRenderingContextBase::getShaderParameter( // intended to prevent applications from entering an infinite polling loop. if (isContextLost() && pname == GL_COMPLETION_STATUS_KHR) return WebGLAny(script_state, true); @@ -98,7 +98,7 @@ index 4441b31c8802c14825b5836e3e7a2af716c65002..86942a8c9147ee1adb5fc0e8c7494f73 if (!ValidateWebGLProgramOrShader("getShaderParameter", shader)) { return ScriptValue::CreateNull(script_state->GetIsolate()); } -@@ -3944,6 +3956,7 @@ ScriptValue WebGLRenderingContextBase::getShaderParameter( +@@ -3950,6 +3962,7 @@ ScriptValue WebGLRenderingContextBase::getShaderParameter( String WebGLRenderingContextBase::getShaderInfoLog(WebGLShader* shader) { if (!ValidateWebGLProgramOrShader("getShaderInfoLog", shader)) return String(); @@ -106,7 +106,7 @@ index 4441b31c8802c14825b5836e3e7a2af716c65002..86942a8c9147ee1adb5fc0e8c7494f73 GLStringQuery query(ContextGL()); return query.Run(ObjectNonZero(shader)); } -@@ -3974,6 +3987,7 @@ WebGLShaderPrecisionFormat* WebGLRenderingContextBase::getShaderPrecisionFormat( +@@ -3980,6 +3993,7 @@ WebGLShaderPrecisionFormat* WebGLRenderingContextBase::getShaderPrecisionFormat( GLint precision = 0; ContextGL()->GetShaderPrecisionFormat(shader_type, precision_type, range, &precision); @@ -114,7 +114,7 @@ index 4441b31c8802c14825b5836e3e7a2af716c65002..86942a8c9147ee1adb5fc0e8c7494f73 auto* result = MakeGarbageCollected( range[0], range[1], precision); if (IdentifiabilityStudySettings::Get()->ShouldSampleType( -@@ -3986,6 +4000,7 @@ WebGLShaderPrecisionFormat* WebGLRenderingContextBase::getShaderPrecisionFormat( +@@ -3992,6 +4006,7 @@ WebGLShaderPrecisionFormat* WebGLRenderingContextBase::getShaderPrecisionFormat( String WebGLRenderingContextBase::getShaderSource(WebGLShader* shader) { if (!ValidateWebGLProgramOrShader("getShaderSource", shader)) return String(); @@ -122,7 +122,7 @@ index 4441b31c8802c14825b5836e3e7a2af716c65002..86942a8c9147ee1adb5fc0e8c7494f73 return EnsureNotNull(shader->Source()); } -@@ -4011,6 +4026,7 @@ ScriptValue WebGLRenderingContextBase::getTexParameter( +@@ -4017,6 +4032,7 @@ ScriptValue WebGLRenderingContextBase::getTexParameter( GLenum pname) { if (isContextLost()) return ScriptValue::CreateNull(script_state->GetIsolate()); @@ -130,7 +130,7 @@ index 4441b31c8802c14825b5836e3e7a2af716c65002..86942a8c9147ee1adb5fc0e8c7494f73 if (!ValidateTextureBinding("getTexParameter", target)) return ScriptValue::CreateNull(script_state->GetIsolate()); switch (pname) { -@@ -4045,6 +4061,7 @@ ScriptValue WebGLRenderingContextBase::getUniform( +@@ -4051,6 +4067,7 @@ ScriptValue WebGLRenderingContextBase::getUniform( const WebGLUniformLocation* uniform_location) { if (!ValidateWebGLProgramOrShader("getUniform", program)) return ScriptValue::CreateNull(script_state->GetIsolate()); @@ -138,7 +138,7 @@ index 4441b31c8802c14825b5836e3e7a2af716c65002..86942a8c9147ee1adb5fc0e8c7494f73 DCHECK(uniform_location); if (uniform_location->Program() != program) { SynthesizeGLError(GL_INVALID_OPERATION, "getUniform", -@@ -4304,6 +4321,7 @@ WebGLUniformLocation* WebGLRenderingContextBase::getUniformLocation( +@@ -4310,6 +4327,7 @@ WebGLUniformLocation* WebGLRenderingContextBase::getUniformLocation( const String& name) { if (!ValidateWebGLProgramOrShader("getUniformLocation", program)) return nullptr; @@ -146,7 +146,7 @@ index 4441b31c8802c14825b5836e3e7a2af716c65002..86942a8c9147ee1adb5fc0e8c7494f73 if (!ValidateLocationLength("getUniformLocation", name)) return nullptr; if (!ValidateString("getUniformLocation", name)) -@@ -4328,6 +4346,7 @@ ScriptValue WebGLRenderingContextBase::getVertexAttrib( +@@ -4334,6 +4352,7 @@ ScriptValue WebGLRenderingContextBase::getVertexAttrib( GLenum pname) { if (isContextLost()) return ScriptValue::CreateNull(script_state->GetIsolate()); @@ -154,7 +154,7 @@ index 4441b31c8802c14825b5836e3e7a2af716c65002..86942a8c9147ee1adb5fc0e8c7494f73 if (index >= max_vertex_attribs_) { SynthesizeGLError(GL_INVALID_VALUE, "getVertexAttrib", "index out of range"); -@@ -4405,6 +4424,7 @@ int64_t WebGLRenderingContextBase::getVertexAttribOffset(GLuint index, +@@ -4411,6 +4430,7 @@ int64_t WebGLRenderingContextBase::getVertexAttribOffset(GLuint index, GLenum pname) { if (isContextLost()) return 0; @@ -162,7 +162,7 @@ index 4441b31c8802c14825b5836e3e7a2af716c65002..86942a8c9147ee1adb5fc0e8c7494f73 GLvoid* result = nullptr; // NOTE: If pname is ever a value that returns more than 1 element // this will corrupt memory. -@@ -4760,6 +4780,7 @@ void WebGLRenderingContextBase::ReadPixelsHelper(GLint x, +@@ -4766,6 +4786,7 @@ void WebGLRenderingContextBase::ReadPixelsHelper(GLint x, int64_t offset) { if (isContextLost()) return; diff --git a/patches/third_party-blink-renderer-platform-BUILD.gn.patch b/patches/third_party-blink-renderer-platform-BUILD.gn.patch index e528e5697eab..76bcd9a79375 100644 --- a/patches/third_party-blink-renderer-platform-BUILD.gn.patch +++ b/patches/third_party-blink-renderer-platform-BUILD.gn.patch @@ -1,8 +1,8 @@ diff --git a/third_party/blink/renderer/platform/BUILD.gn b/third_party/blink/renderer/platform/BUILD.gn -index 7575dfdb01293f64c3118f9b0f8df008bad38e06..468f6d1a7e7c925804ef90a14b281929944728f1 100644 +index 7c8fc3182b3701e411947944a101c1fbf0976f8b..3420d82b6622375d289fb413399159b8255af289 100644 --- a/third_party/blink/renderer/platform/BUILD.gn +++ b/third_party/blink/renderer/platform/BUILD.gn -@@ -1819,6 +1819,7 @@ component("platform") { +@@ -1838,6 +1838,7 @@ component("platform") { configs -= [ "//build/config/compiler:default_symbols" ] configs += blink_symbols_config diff --git a/patches/third_party/catapult/telemetry-telemetry-internal-backends-chrome-desktop_browser_finder.py.patch b/patches/third_party/catapult/telemetry-telemetry-internal-backends-chrome-desktop_browser_finder.py.patch index 9559a3c2c647..07187d84f969 100644 --- a/patches/third_party/catapult/telemetry-telemetry-internal-backends-chrome-desktop_browser_finder.py.patch +++ b/patches/third_party/catapult/telemetry-telemetry-internal-backends-chrome-desktop_browser_finder.py.patch @@ -1,8 +1,8 @@ diff --git a/telemetry/telemetry/internal/backends/chrome/desktop_browser_finder.py b/telemetry/telemetry/internal/backends/chrome/desktop_browser_finder.py -index 461051842dc9fbebf8798b7551e8659bf97e31e3..b3d32f3a9dd9064b930c3c8027cca062de93b297 100644 +index 623c7a58dbccadc403ffd1410853e5455d9c9d30..1076a9338142b65981bce22414a8bedd4a5cd74b 100644 --- a/telemetry/telemetry/internal/backends/chrome/desktop_browser_finder.py +++ b/telemetry/telemetry/internal/backends/chrome/desktop_browser_finder.py -@@ -475,3 +475,4 @@ def FindAllAvailableBrowsers(finder_options, device): +@@ -477,3 +477,4 @@ def FindAllAvailableBrowsers(finder_options, device): return [] return browsers diff --git a/patches/tools-clang-pylib-clang-compile_db.py.patch b/patches/tools-clang-pylib-clang-compile_db.py.patch index 2e28b49fb71f..71d8e6b21bf9 100644 --- a/patches/tools-clang-pylib-clang-compile_db.py.patch +++ b/patches/tools-clang-pylib-clang-compile_db.py.patch @@ -1,8 +1,8 @@ diff --git a/tools/clang/pylib/clang/compile_db.py b/tools/clang/pylib/clang/compile_db.py -index ff6ff9d3d4ae9cb25330ca88f2747fdac66eb939..607bd896ca625520b93282d6f284ee65bf06822b 100755 +index ca06d706bbf6afb6aaa40b98f1c505bfe820e388..ea49762cbe4dea3672539de2e412233007896847 100755 --- a/tools/clang/pylib/clang/compile_db.py +++ b/tools/clang/pylib/clang/compile_db.py -@@ -212,3 +212,4 @@ def Read(path): +@@ -211,3 +211,4 @@ def Read(path): """ with open(os.path.join(path, 'compile_commands.json'), 'rb') as db: return json.load(db) diff --git a/patches/tools-gritsettings-resource_ids.spec.patch b/patches/tools-gritsettings-resource_ids.spec.patch index 921afcf91780..bc5dd30e57c8 100644 --- a/patches/tools-gritsettings-resource_ids.spec.patch +++ b/patches/tools-gritsettings-resource_ids.spec.patch @@ -1,5 +1,5 @@ diff --git a/tools/gritsettings/resource_ids.spec b/tools/gritsettings/resource_ids.spec -index 070b499be40e6540145fd24593779b15b6aa5d36..d4f6843ac86a5e6e6fbcdefe472cb40b8611305a 100644 +index cc28e95c153fd33a3f5844f5d2cc198acc7dbf49..da6ed3bee2829d093fe4132267b7e81e441d0456 100644 --- a/tools/gritsettings/resource_ids.spec +++ b/tools/gritsettings/resource_ids.spec @@ -41,6 +41,9 @@ @@ -12,7 +12,7 @@ index 070b499be40e6540145fd24593779b15b6aa5d36..d4f6843ac86a5e6e6fbcdefe472cb40b "chrome/app/google_chrome_strings.grd": { "messages": [400], }, -@@ -205,7 +208,7 @@ +@@ -209,7 +212,7 @@ "includes": [1600], }, "<(SHARED_INTERMEDIATE_DIR)/chrome/browser/resources/history/resources.grd": { @@ -21,7 +21,7 @@ index 070b499be40e6540145fd24593779b15b6aa5d36..d4f6843ac86a5e6e6fbcdefe472cb40b "includes": [1620], }, "<(SHARED_INTERMEDIATE_DIR)/chrome/browser/resources/identity_internals/resources.grd": { -@@ -292,7 +295,7 @@ +@@ -296,7 +299,7 @@ "includes": [1940], }, "<(SHARED_INTERMEDIATE_DIR)/chrome/browser/resources/settings/resources.grd": { @@ -30,7 +30,7 @@ index 070b499be40e6540145fd24593779b15b6aa5d36..d4f6843ac86a5e6e6fbcdefe472cb40b "includes": [1960], }, "<(SHARED_INTERMEDIATE_DIR)/chrome/browser/resources/signin/profile_picker/resources.grd": { -@@ -725,6 +728,9 @@ +@@ -733,6 +736,9 @@ "components/components_chromium_strings.grd": { "messages": [3520], }, diff --git a/patches/tools-json_schema_compiler-feature_compiler.py.patch b/patches/tools-json_schema_compiler-feature_compiler.py.patch index 35f990dc2df1..8c0baefdc1a4 100644 --- a/patches/tools-json_schema_compiler-feature_compiler.py.patch +++ b/patches/tools-json_schema_compiler-feature_compiler.py.patch @@ -1,5 +1,5 @@ diff --git a/tools/json_schema_compiler/feature_compiler.py b/tools/json_schema_compiler/feature_compiler.py -index 7a938eb885b77856948a271ed9b40372491c2145..f87a833d4817cd1bcb043ea35baa603e694bd25a 100644 +index 72fd4b50c91ea3a0715abcc0c667136d02df0c84..a95eddab1142a45f8a1d9f839a05c4d36c20aa7c 100644 --- a/tools/json_schema_compiler/feature_compiler.py +++ b/tools/json_schema_compiler/feature_compiler.py @@ -774,6 +774,7 @@ class FeatureCompiler(object): diff --git a/patches/tools-licenses.py.patch b/patches/tools-licenses-licenses.py.patch similarity index 82% rename from patches/tools-licenses.py.patch rename to patches/tools-licenses-licenses.py.patch index 34be2b3227ea..a866217a8916 100644 --- a/patches/tools-licenses.py.patch +++ b/patches/tools-licenses-licenses.py.patch @@ -1,9 +1,9 @@ -diff --git a/tools/licenses.py b/tools/licenses.py -index de49fae95801e402cef4cda481bdf17222c9525c..fee2b33b157778166239c3410b6ea08342d5337a 100755 ---- a/tools/licenses.py -+++ b/tools/licenses.py +diff --git a/tools/licenses/licenses.py b/tools/licenses/licenses.py +index 6f2e1a707767462e7b0e6909149cc16e6b22e62c..185e03d6c325857ad9fb03146722b9355e4db773 100755 +--- a/tools/licenses/licenses.py ++++ b/tools/licenses/licenses.py @@ -39,6 +39,7 @@ from spdx_writer import SpdxWriter - _REPOSITORY_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) + _REPOSITORY_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..')) sys.path.insert(0, os.path.join(_REPOSITORY_ROOT, 'build/android/gyp')) from util import build_utils +from brave_license_helper import AddBraveCredits, BRAVE_THIRD_PARTY_DIRS, CheckBraveMissingLicense diff --git a/patches/tools-metrics-histograms-metadata-histogram_suffixes_list.xml.patch b/patches/tools-metrics-histograms-metadata-histogram_suffixes_list.xml.patch index 63a9be10f80d..266647eae2c8 100644 --- a/patches/tools-metrics-histograms-metadata-histogram_suffixes_list.xml.patch +++ b/patches/tools-metrics-histograms-metadata-histogram_suffixes_list.xml.patch @@ -1,8 +1,8 @@ diff --git a/tools/metrics/histograms/metadata/histogram_suffixes_list.xml b/tools/metrics/histograms/metadata/histogram_suffixes_list.xml -index a99ccc4f55b2925a0318bc1baf4f81bca1185d33..26da4027de2cb856fc85cc42a0b3f6cd42e9f0b0 100644 +index 6bdee9f10483106190f20b6db37472a53499e422..fb88eddf615dca89466c7928965dd5d2ebf01a40 100644 --- a/tools/metrics/histograms/metadata/histogram_suffixes_list.xml +++ b/tools/metrics/histograms/metadata/histogram_suffixes_list.xml -@@ -7206,6 +7206,7 @@ chromium-metrics-reviews@google.com. +@@ -4234,6 +4234,7 @@ chromium-metrics-reviews@google.com. diff --git a/patches/tools-perf-core-results_dashboard.py.patch b/patches/tools-perf-core-results_dashboard.py.patch index 3600aee371a5..153be6379af3 100644 --- a/patches/tools-perf-core-results_dashboard.py.patch +++ b/patches/tools-perf-core-results_dashboard.py.patch @@ -1,8 +1,8 @@ diff --git a/tools/perf/core/results_dashboard.py b/tools/perf/core/results_dashboard.py -index 2c7224383387d23bcf478c34ec909f1762d7a8e2..33bdc97a62331acd7c830dcde7df361786066f9e 100755 +index 81c7a4ceb51d01c0c932cbdca6f45442ca098ac7..72927c76867178e07b8afb6203a91d2bf1f4f3cf 100755 --- a/tools/perf/core/results_dashboard.py +++ b/tools/perf/core/results_dashboard.py -@@ -502,3 +502,4 @@ def _SendHistogramJson(url, histogramset_json, token_generator_callback): +@@ -527,3 +527,4 @@ def _SendHistogramJson(url, logging.info('Upload completion token created. Token id: %s' % token) except Exception as e: # pylint: disable=broad-except logging.warning('Error fetching upload completion token: %s' % e) diff --git a/patches/tools-perf-process_perf_results.py.patch b/patches/tools-perf-process_perf_results.py.patch index 5df747ec5f1c..9f1142f4ed94 100644 --- a/patches/tools-perf-process_perf_results.py.patch +++ b/patches/tools-perf-process_perf_results.py.patch @@ -1,5 +1,5 @@ diff --git a/tools/perf/process_perf_results.py b/tools/perf/process_perf_results.py -index deecd19f5384ab594296a6817b4b9b9e52d1ab4e..a7a1f0d734407cb0557ac33aa13fd7b53beb262e 100755 +index 671e3d3474178e69199341b2ba83f295dc0a4b3f..a2a2f3183ebdd23c49b447332f955d122a2a76e9 100755 --- a/tools/perf/process_perf_results.py +++ b/tools/perf/process_perf_results.py @@ -41,7 +41,7 @@ except ImportError: diff --git a/patches/ui-accessibility-platform-ax_platform_node_cocoa.mm.patch b/patches/ui-accessibility-platform-ax_platform_node_cocoa.mm.patch index 2a896e29c997..f6b685319104 100644 --- a/patches/ui-accessibility-platform-ax_platform_node_cocoa.mm.patch +++ b/patches/ui-accessibility-platform-ax_platform_node_cocoa.mm.patch @@ -1,8 +1,8 @@ diff --git a/ui/accessibility/platform/ax_platform_node_cocoa.mm b/ui/accessibility/platform/ax_platform_node_cocoa.mm -index 491e45ea6ca181f640144387cd94cdeedc7a2321..534910e7092cc3ae056cd22b8e8f914f4dd0aad0 100644 +index a679ec857c2500ceba91fc7fdda2d077cf26553e..bfa037103f08a6ec814283e4cdd7b61ce53ea32e 100644 --- a/ui/accessibility/platform/ax_platform_node_cocoa.mm +++ b/ui/accessibility/platform/ax_platform_node_cocoa.mm -@@ -2213,6 +2213,7 @@ bool IsAXSetter(SEL selector) { +@@ -2263,6 +2263,7 @@ void CollectAncestorRoles( if (!_node) return nil; diff --git a/patches/ui-native_theme-native_theme_win.cc.patch b/patches/ui-native_theme-native_theme_win.cc.patch index 49b23b74c5f2..87af17afa1cb 100644 --- a/patches/ui-native_theme-native_theme_win.cc.patch +++ b/patches/ui-native_theme-native_theme_win.cc.patch @@ -1,8 +1,8 @@ diff --git a/ui/native_theme/native_theme_win.cc b/ui/native_theme/native_theme_win.cc -index 6230688b9ed1dcb239482cfa1dab7daeaf0501c2..ef2c2e143762980bd860f179369725fb70b8bbe5 100644 +index c2f3c20cbe92e877acc30111314a0ee2bce539a1..e2bd868eddbcbf837049cd7fd71c817706027e58 100644 --- a/ui/native_theme/native_theme_win.cc +++ b/ui/native_theme/native_theme_win.cc -@@ -1585,6 +1585,7 @@ void NativeThemeWin::UpdateDarkModeStatus() { +@@ -1586,6 +1586,7 @@ void NativeThemeWin::UpdateDarkModeStatus() { &apps_use_light_theme); dark_mode_enabled = (apps_use_light_theme == 0); } diff --git a/patches/ui-views-controls-button-md_text_button.cc.patch b/patches/ui-views-controls-button-md_text_button.cc.patch index 0f0c33d66b11..26c3e839bfd0 100644 --- a/patches/ui-views-controls-button-md_text_button.cc.patch +++ b/patches/ui-views-controls-button-md_text_button.cc.patch @@ -1,8 +1,8 @@ diff --git a/ui/views/controls/button/md_text_button.cc b/ui/views/controls/button/md_text_button.cc -index 2110ef33b92bd6535bf243c03ae0fe2ee7cea5d4..8214c1cb8db1ccd3d9a6a5c347b91af13b5892b0 100644 +index 3cc7267d297eb16df11944e6471ccb89aa6b9d5d..eb81c06124e4a19d757137982c8864006ac0413e 100644 --- a/ui/views/controls/button/md_text_button.cc +++ b/ui/views/controls/button/md_text_button.cc -@@ -250,6 +250,7 @@ void MdTextButton::UpdateColors() { +@@ -262,6 +262,7 @@ void MdTextButton::UpdateColors() { UpdateTextColor(); UpdateBackgroundColor(); SchedulePaint(); diff --git a/patches/ui-webui-resources-BUILD.gn.patch b/patches/ui-webui-resources-BUILD.gn.patch index 19b4bd218ef4..182d59a142db 100644 --- a/patches/ui-webui-resources-BUILD.gn.patch +++ b/patches/ui-webui-resources-BUILD.gn.patch @@ -1,8 +1,8 @@ diff --git a/ui/webui/resources/BUILD.gn b/ui/webui/resources/BUILD.gn -index 138269201bf8305f329b4c5a2bb88e1922d6f26c..6c59c34d2f577f610cb45aaecdb32cde7835537c 100644 +index 786f1f84f144812507a82da47c63838caddee801..28df78d3a9b69ab5b538cbe51bb38de06e2a35da 100644 --- a/ui/webui/resources/BUILD.gn +++ b/ui/webui/resources/BUILD.gn -@@ -105,6 +105,7 @@ generate_grd("build_grd") { +@@ -102,6 +102,7 @@ generate_grd("build_grd") { "$root_gen_dir/ui/webui/resources/cr_components/color_change_listener/resources.grdp", ] } @@ -10,10 +10,10 @@ index 138269201bf8305f329b4c5a2bb88e1922d6f26c..6c59c34d2f577f610cb45aaecdb32cde } if (is_chromeos_ash) { -@@ -234,6 +235,7 @@ ts_library("library") { - ":generate_definitions", - ":preprocess", - ] +@@ -208,6 +209,7 @@ ts_library("library") { + if (is_ios) { + extra_deps += [ ":generate_definitions" ] + } + import("//brave/ui/webui/resources/sources.gni") extra_deps += brave_ui_webui_resources_ts_extra_deps in_files += brave_local_files } diff --git a/patches/ui-webui-resources-cr_elements-cr_elements.gni.patch b/patches/ui-webui-resources-cr_elements-cr_elements.gni.patch index bb3a6ba682a7..ee80daefb955 100644 --- a/patches/ui-webui-resources-cr_elements-cr_elements.gni.patch +++ b/patches/ui-webui-resources-cr_elements-cr_elements.gni.patch @@ -1,8 +1,8 @@ diff --git a/ui/webui/resources/cr_elements/cr_elements.gni b/ui/webui/resources/cr_elements/cr_elements.gni -index 8e2a53ad7dd6e4ac821536f473f13d0fdf3c9678..b8b03ef5b83d77c6da899a2491e412d4232f20aa 100644 +index 5cbbb4151fbc8ad29c72e0f8c7fc30d558ae9db2..bf36744730cf898ec5cc9ead53ac513c015ac10b 100644 --- a/ui/webui/resources/cr_elements/cr_elements.gni +++ b/ui/webui/resources/cr_elements/cr_elements.gni -@@ -66,6 +66,7 @@ if (include_polymer) { +@@ -67,6 +67,7 @@ if (include_polymer) { web_component_files_polymer_ts += [ "cr_searchable_drop_down/cr_searchable_drop_down.ts" ] } diff --git a/patches/ui-webui-resources-cr_elements-cr_lottie-cr_lottie.ts.patch b/patches/ui-webui-resources-cr_elements-cr_lottie-cr_lottie.ts.patch index 836f4fcdfc82..549565197acc 100644 --- a/patches/ui-webui-resources-cr_elements-cr_lottie-cr_lottie.ts.patch +++ b/patches/ui-webui-resources-cr_elements-cr_lottie-cr_lottie.ts.patch @@ -1,8 +1,8 @@ diff --git a/ui/webui/resources/cr_elements/cr_lottie/cr_lottie.ts b/ui/webui/resources/cr_elements/cr_lottie/cr_lottie.ts -index 941508638cbc43dac79176766a0384824b502fba..75bc6070e80a514310ea5f93c42d4ad1e5f98468 100644 +index 629d74d3f2dff63cf51895d10c0067367fec208b..84579bd935c8e394cb623e8ed8ccea4483748ef5 100644 --- a/ui/webui/resources/cr_elements/cr_lottie/cr_lottie.ts +++ b/ui/webui/resources/cr_elements/cr_lottie/cr_lottie.ts -@@ -345,6 +345,7 @@ export class CrLottieElement extends PolymerElement { +@@ -360,6 +360,7 @@ export class CrLottieElement extends PolymerElement { this.fire_('cr-lottie-paused'); } else if (event.data.name === 'stopped') { this.fire_('cr-lottie-stopped'); diff --git a/patches/v8/BUILD.gn.patch b/patches/v8/BUILD.gn.patch index 976f9e7281be..b413b64f2900 100644 --- a/patches/v8/BUILD.gn.patch +++ b/patches/v8/BUILD.gn.patch @@ -1,8 +1,8 @@ diff --git a/BUILD.gn b/BUILD.gn -index 78fd8cd2d387902406c2663f5217e6b8717a5c30..984560838e305098a76f022f2da755dc6c1893a1 100644 +index c9fec31475d6c777183e911df6bef5214c0b765b..7de977bbcaad9c330bf04616909eb8bf72230c25 100644 --- a/BUILD.gn +++ b/BUILD.gn -@@ -621,6 +621,7 @@ config("internal_config_base") { +@@ -648,6 +648,7 @@ config("internal_config_base") { "$target_gen_dir", "$target_gen_dir/include", ] @@ -10,7 +10,7 @@ index 78fd8cd2d387902406c2663f5217e6b8717a5c30..984560838e305098a76f022f2da755dc } config("internal_config") { -@@ -2635,6 +2636,7 @@ v8_header_set("v8_headers") { +@@ -2682,6 +2683,7 @@ v8_header_set("v8_headers") { ":cppgc_headers", ":v8_version", ] diff --git a/patches/v8/src-codegen-compiler.cc.patch b/patches/v8/src-codegen-compiler.cc.patch index a5c2250bdd57..6ab498c86803 100644 --- a/patches/v8/src-codegen-compiler.cc.patch +++ b/patches/v8/src-codegen-compiler.cc.patch @@ -1,8 +1,8 @@ diff --git a/src/codegen/compiler.cc b/src/codegen/compiler.cc -index 9e7d2394fba06483f9fad30d440daf0abce876aa..c427b6d6b32dccc7ecfe7c054c426ea7ae657359 100644 +index 158d6f2d8703449ddd7d5e461f169c87b1f13e26..b911fad67052a42509a67eee4742fd3c950784c4 100644 --- a/src/codegen/compiler.cc +++ b/src/codegen/compiler.cc -@@ -2887,6 +2887,7 @@ MaybeHandle Compiler::GetFunctionFromEval( +@@ -2871,6 +2871,7 @@ MaybeHandle Compiler::GetFunctionFromEval( } } DCHECK(is_compiled_scope.is_compiled()); diff --git a/renderer/brave_wallet/brave_wallet_render_frame_observer_p3a_util.cc b/renderer/brave_wallet/brave_wallet_render_frame_observer_p3a_util.cc index 84489e15ea51..f4eb4132cb4d 100644 --- a/renderer/brave_wallet/brave_wallet_render_frame_observer_p3a_util.cc +++ b/renderer/brave_wallet/brave_wallet_render_frame_observer_p3a_util.cc @@ -7,8 +7,10 @@ #include "brave/components/brave_wallet/renderer/v8_helper.h" #include "gin/converter.h" +#include "third_party/blink/public/common/browser_interface_broker_proxy.h" #include "third_party/blink/public/web/blink.h" #include "third_party/blink/public/web/web_local_frame.h" +#include "v8/include/v8.h" namespace brave_wallet { diff --git a/test/BUILD.gn b/test/BUILD.gn index 10cae382d2ec..f986ad1f1b9c 100644 --- a/test/BUILD.gn +++ b/test/BUILD.gn @@ -182,7 +182,6 @@ test("brave_unit_tests") { "//brave/browser/ui/brave_tooltips", "//brave/browser/ui/webui/new_tab_page:unit_tests", "//brave/browser/web_discovery:unit_tests", - "//brave/chromium_src/components/autofill_assistant/browser:unit_tests", "//brave/chromium_src/components/privacy_sandbox:unit_tests", "//brave/chromium_src/net/base:unit_tests", "//brave/components/adblock_rust_ffi", @@ -479,7 +478,6 @@ test("brave_unit_tests") { "//brave/browser/extensions/chrome_content_verifier_delegate_unittest.cc", "//brave/browser/extensions/install_verifier_unittest.cc", "//brave/browser/extensions/mv2_warning_unittest.cc", - "//brave/chromium_src/extensions/browser/sandboxed_unpacker_unittest.cc", "//brave/common/importer/chrome_importer_utils_unittest.cc", "//chrome/browser/extensions/extension_service_test_base.cc", "//chrome/browser/extensions/extension_service_test_base.h", diff --git a/test/filters/browser_tests-linux.filter b/test/filters/browser_tests-linux.filter index 12f13abf298d..616dd0687505 100644 --- a/test/filters/browser_tests-linux.filter +++ b/test/filters/browser_tests-linux.filter @@ -24,7 +24,6 @@ -ExternalProtocolHandlerSandboxBrowserTest.* -IndividualNetworkContextsPrefetchProxyBrowserTest.* -LayoutInstabilityTest.* --MetricIntegrationTest.FirstInputDelay -MultiscreenWindowPlacementPermissionContextTest.IsExtendedCrossOriginAllow -MultiscreenWindowPlacementPermissionContextTest.IsExtendedCrossOriginDeny -MultiscreenWindowPlacementPermissionContextTest.IsExtendedSameOriginAllow diff --git a/test/filters/browser_tests-windows-x86.filter b/test/filters/browser_tests-windows-x86.filter index b1baaa9f1aa6..7b947d0e3af2 100644 --- a/test/filters/browser_tests-windows-x86.filter +++ b/test/filters/browser_tests-windows-x86.filter @@ -11,6 +11,5 @@ -CDM_10/ECKEncryptedMediaTest.MultipeCdmTypes/0 -CDM_11/ECKEncryptedMediaTest.MultipeCdmTypes/0 -# These tests fail on x86 CI but pass locally --MetricIntegrationTest.FirstInputDelay +# This test fails on x86 CI but passes locally -MetricIntegrationTest.LargestContentfulPaint_SubframeInput diff --git a/test/filters/browser_tests.filter b/test/filters/browser_tests.filter index b6146075dae3..4cfcefb050e8 100644 --- a/test/filters/browser_tests.filter +++ b/test/filters/browser_tests.filter @@ -54,6 +54,8 @@ -All/SharedStoragePrefBrowserTest.WorkletLength/PrivacySandboxEnabled_3PCookiesAllowed -All/SharedStoragePrefBrowserTest.WorkletRemainingBudget/PrivacySandboxEnabled_3PCookiesAllowed -All/SharedStoragePrefBrowserTest.WorkletSet/PrivacySandboxEnabled_3PCookiesAllowed +-BrowsingDataModelBrowserTest.SharedStorageHandledCorrectly +-BrowsingDataModelBrowserTest.SharedStorageAccessReportedCorrectly -SharedStorageChromeBrowserTest.AddModule_EmptyResultError -SharedStorageChromeBrowserTest.AddModule_LoadFailureError -SharedStorageChromeBrowserTest.AddModule_MultipleAddModuleError @@ -81,8 +83,10 @@ -SharedStorageChromeBrowserTest.WorkletNumPerPage_Three -SharedStorageChromeBrowserTest.WorkletNumPerPage_Two -SharedStorageChromeBrowserTest.WorkletTiming +-SharedStorageFencedFrameChromeBrowserTest.FencedFrameNavigateTop_BudgetWithdrawal +-SharedStorageFencedFrameChromeBrowserTest.TwoFencedFrames_DifferentURNs_EachNavigateOnce_BudgetWithdrawalTwice -# This test fails because kPrerender2 feature is disabled. Javascipt in the +# This test fails because kPrerender2 feature is disabled. Javascript in the # test expects `document.prerendering === false` whereas we have # `document.prerendering === unknown` -OmniboxPrerenderDefaultPrerender2BrowserTest.PrerenderFunctionsCheckWithDefaultFlag @@ -134,12 +138,13 @@ -LazyLoadPrerenderBrowserTest.* -LiveTabCountPageLoadMetricsBrowserTest.LoadSingleTabWithPrerendering -LoginDetectionPrerenderBrowserTest.* +-LookalikeUrlNavigationThrottleBrowserTest.* +-LookalikeUrlNavigationThrottlePrerenderBrowserTest.* +-LookalikeUrlNavigationThrottleSignedExchangeBrowserTest.* -MediaEngagementContentsObserverPrerenderBrowserTest.* -MediaHistoryForPrerenderBrowserTest.* -MixedContentSettingsTabHelperPrerenderBrowserTest.* -NavigationMetricsRecorderPrerenderBrowserTest.* --NavigationPredictorPreconnectClientPrerenderBrowserTestNoDelay.* --NavigationPredictorPrerenderBrowserTest.* -NetErrorTabHelperWithPrerenderingTest.* -NewTabPageNavigationThrottlePrerenderTest.* -NoStatePrefetchPrerenderBrowserTest.* @@ -170,6 +175,8 @@ -PrerenderOmniboxSearchSuggestionExpiryBrowserTest.* -PrerenderPageLoadMetricsBrowserTest.* -PrerenderPageLoadMetricsObserverBrowserTest.* +-PrerenderHoldbackBrowserTest.PreloadingHoldbackNotOverridden +-PrerenderHoldbackBrowserTest.PreloadingHoldbackOverridden -PrerenderSiteDetailsBrowserTest.* -PrerenderTaskBrowserTest.* -PrintPrerenderBrowserTest.* @@ -177,6 +184,7 @@ -SBNavigationObserverBrowserTest.PrerenderReferrerChains -SSLPrerenderTest.* -SafeBrowsingTriggeredPopupBlockerPrerenderingBrowserTest.* +-SafetyTipPageInfoBubbleViewBrowserTest.MetricsOnlyHeuristicDoesntShowInPageInfo -SafetyTipPageInfoBubbleViewPrerenderBrowserTest.* -ScriptingAPIPrerenderingTest.Basic -SearchEngineTabHelperPrerenderingBrowserTest.* @@ -200,8 +208,8 @@ -ZoomControllerForPrerenderingTest.* # This test fails because we intentionally disable trust tokens via -# network::features::kTrustTokens --BrowsingDataModelTrustTokenBrowserTest.TrustTokenIssuance +# network::features::kPrivateStateTokens +-BrowsingDataModelBrowserTest.TrustTokenIssuance # These tests fail because we intentionally disable direct/raw sockets via # policy::policy_prefs::kIsolatedAppsDeveloperModeAllowed. See @@ -211,6 +219,8 @@ -ChromeDirectSocketsTcpIsolatedWebAppTest.TcpReadWrite -ChromeDirectSocketsUdpApiTest.UdpReadWrite -ChromeDirectSocketsUdpIsolatedWebAppTest.UdpReadWrite +-InstallIsolatedWebAppFromCommandLineFromFileBrowserTest.AppFromCommandLineIsInstalled +-InstallIsolatedWebAppFromCommandLineFromUrlBrowserTest.AppFromCommandLineIsInstalled -IsolatedWebAppsDeveloperModeAllowedPolicyTest.MockTcp/0 -IsolatedWebAppsDeveloperModeAllowedPolicyTest.MockUdp/0 @@ -231,10 +241,15 @@ # https://github.com/brave/brave-browser/issues/25733 -UnusedSitePermissionsServiceBrowserTest.TestIncognitoProfile -UnusedSitePermissionsServiceBrowserTest.TestNavigationUpdatesLastUsedDate +-UnusedSitePermissionsServiceBrowserTest.TestRevokeUnusedPermissions # These tests fail because of the following failed DCHECK in web_view_guest.cc: # render_frame_host->IsActive() || (content::SiteIsolationPolicy::IsSiteIsolationForGuestsEnabled() && render_frame_host->IsInLifecycleState( RenderFrameHost::LifecycleState::kPendingDeletion)) --WebViewSSLErrorTests/WebViewSSLErrorTest.*/SiteIsolationForGuestsEnabled +-ContentScriptTrackerAppBrowserTest.WebViewContentScript +-WebAuthFlowInBrowserTabParamBrowserTest.OnAuthFlowFailureChangeCalled/WithoutWebAuthFlowInBrowserTab +-WebViewSSLErrorTests/WebViewSSLErrorTest.*/SiteIsolationForGuestsEnabled_UseErrorPage +-WebViewSSLErrorTests/WebViewSSLErrorTest.*/SiteIsolationForGuestsEnabled_UseInterstitial +-ZoomControllerBrowserTest.SettingsZoomAfterSigninWorks # These tests use BroadcastChannel to communicate between 3p frame, we partition # these channels, which breaks test communication. @@ -274,6 +289,30 @@ # This test times out because we Disable "Use a prediction service to load # pages more quickly" (via prefetch::prefs::kNetworkPredictionOptions pref). +-All/LoadingPredictorNetworkIsolationKeyBrowserTest.* +-All/PredictionManagerBrowserTest.* +-All/PredictionManagerBrowserTest.*/* +-All/PredictionManagerModelDownloadingBrowserTest.* +-All/PredictionManagerModelDownloadingBrowserTest.*/* +-LoadingPredictorBrowserTest.* +-LoadingPredictorBrowserTestWithNoLocalPredictions.* +-LoadingPredictorBrowserTestWithOptimizationGuide.* +-LoadingPredictorBrowserTestWithProxy.* +-LoadingPredictorPrefetchBrowserTest.* +-LoadingPredictorPrefetchCounterfactualBrowserTest.* +-NavigationPredictorPreconnectClientBrowserTest.* +-NavigationPredictorPreconnectClientBrowserTestPreconnectOnDidFinishNavigationNoDelay.* +-NavigationPredictorPreconnectClientBrowserTestPreconnectOnDidFinishNavigationSecondDelay.* +-NavigationPredictorPreconnectClientBrowserTestWithHoldback.* +-NavigationPredictorPreconnectClientBrowserTestWithSearch.* +-NavigationPredictorPreconnectClientBrowserTestWithUnusedIdleSocketTimeout.* +-NavigationPredictorPreconnectClientFencedFrameBrowserTest.* +-NavigationPredictorPreconnectClientPrerenderBrowserTestNoDelay.* +-NavigationPredictorPrerenderBrowserTest.* +-NavigationPredictorSameDocumentPreconnectClientBrowserTest.* +-PredictionManagerModelPackageOverrideTest.* +-PredictionModelStoreBrowserTest.* +-PredictionServiceBrowserTest.* -SearchNavigationPrefetchNoCancelBrowserTest.PrefetchIsNotCancelled # The tests below are being disabled due to current incompatibilities between @@ -285,6 +324,7 @@ # The tests below are disabled as extension_urls::GetWebstoreUpdateUrl() relies # on brave overrides that require a command line argument for the webstore. -All/WebstoreInstallerWithWithholdingUIBrowserTest.WithholdingHostsOnInstall/* +-WebstoreInstallerMV2BrowserTest.SimultaneousInstall -WebstoreInstallerMV2BrowserTest.WebstoreInstall # These tests fail because we disable subresource web bundles. @@ -329,6 +369,74 @@ -WebViewTests/WebViewTest.DownloadCookieIsolation_CrossSession/SiteIsolationForGuestsDisabled -WebViewTests/WebViewTest.DownloadCookieIsolation_CrossSession/SiteIsolationForGuestsEnabled +# These tests fail because we intentionally disable fenced frames via +# blink::features::kFencedFrames +-AccessContextAuditFencedFrameBrowserTest.* +-All/IntentPickerBubbleViewFencedFrameBrowserTest.* +-All/SafeBrowsingFencedFrameBrowserTest.* +-BackgroundFetchFencedFrameBrowserTest.* +-ContentSettingsWithFencedFrameBrowserTest.RendererContentSettings +-ContentSettingsWithFencedFrameBrowserTest.StorageAccessInFencedFrame +-ContentSettingsWorkerModulesWithFencedFrameBrowserTest.WorkerImportModuleBlocked +-ContextMenuFencedFrameTest.MenuContentsVerification_Fencedframe +-DeclarativeNetRequestApiFencedFrameTest/DeclarativeNetRequestApiFencedFrameTest.* +-ExtensionWebRequestApiFencedFrameTest.DeclarativeSendMessage +-ExtensionWebRequestApiFencedFrameTest/ExtensionWebRequestApiFencedFrameTest.* +-FencedFrameSiteDetailsBrowserTest.* +-InspectUIFencedFrameTest.* +-MessagingApiFencedFrameTest.Load +-MessagingApiFencedFrameTest/MessagingApiFencedFrameTest.* +-PerformanceHintsObserverFencedFrameTest.* +-PrefetchProxyFencedFrameBrowserTest.* +-SigninReauthViewControllerFencedFrameBrowserTest.* +-TabContentsTagFencedFrameTest.FencedFrameDoesNotUpdateTitle +-WebNavigationApiFencedFrameTest.Load +-WebNavigationApiFencedFrameTest/WebNavigationApiFencedFrameTest.* +-WebViewTests/WebViewFencedFrameTest.FencedFrameInGuestHasGuestSiteInstance/SiteIsolationForGuestsEnabled + +# These tests fail because we intentionally disable +# blink::features::kAdInterestGroupAPI +-BrowsingDataModelBrowserTest.InterestGroupsAccessReportedCorrectly +-BrowsingDataModelBrowserTest.InterestGroupsHandledCorrectly +-InterestGroupFledgeOnBrowserTest.* +-InterestGroupPermissionsBrowserTest.* + +# These tests fail because we intentionally disable DICE signin via +# BraveAccountConsistencyModeManager::IsDiceSignInAllowed() +-DiceBrowserTest.* +-DiceBrowsingDataRemoverBrowserTest.* +-DiceManageAccountBrowserTest.* +-DiceSigninUiUtilBrowserTest.* +-DiceWebSigninInterceptionBubbleBrowserTest.* +-DiceWebSigninInterceptionBubbleV2BrowserTest.OpenLearnMoreLinkInNewTab +-DiceWebSigninInterceptorBrowserTest.* +-DiceWebSigninInterceptorEnterpriseBrowserTest.* +-FirstRunFlowControllerDiceBrowserTest.SignInAndSync + +# These tests fail because we intentionally disable prefs::kEnableMediaRouter +-All/CastMirroringServiceHostBrowserTestTabSwitcher.SwitchTabSource/* + +# These tests fail because of the following CHECK in identity_test_utils.cc: +# identity_manager->AreRefreshTokensLoaded() +-GaiaRemoteConsentFlowBrowserTest.* +-SyncConfirmationUIDialogPixelTest.InvokeUi_default/* +-SyncConfirmationUIWindowPixelTest.InvokeUi_default/* + +# This test fails with the following error: +# Terminating render process for bad Mojo message: Received bad user message: +# No binder found for interface brave_news.mojom.BraveNewsController for the frame/document scope +-InteractiveBrowserTestBrowsertest.InstrumentTabsAsTestSteps + +# These tests fail because we disable DIPS via dips::kFeature +-All/DIPSTabHelperBrowserTest.*/* +-DIPSBounceDetectorBrowserTest.* + +# These tests fail on CI but pass locally +-DeviceChooserExtensionBrowserTests/DeviceChooserExtensionBrowserTest.ChooserAnchoredToExtensionIcon/WebHid +-DeviceChooserExtensionBrowserTests/DeviceChooserExtensionBrowserTest.ChooserAnchoredToExtensionIcon/WebUsb +-MetricIntegrationTest.FirstInputDelay +-WebAppTabStripBrowserTest.TabbedModeMediaCSS + # Tests below this point have not been diagnosed or had issues created yet. -_/WebrtcLoggingPrivateApiStartEventLoggingTestFeatureAndPolicyEnabled.* -AccessCodeCastHandlerBrowserTest.* @@ -359,12 +467,7 @@ -All/GetAuthTokenFunctionEnableGranularPermissionsTest.EnableGranularPermissions/* -All/IdentityGetProfileUserInfoFunctionTestWithAccountStatusParam.* -All/IntentPickerBubbleViewBrowserTest.* --All/IntentPickerBubbleViewFencedFrameBrowserTest.* --All/LoadingPredictorNetworkIsolationKeyBrowserTest.* -All/LoginPromptBrowserTest.* --All/LookalikeUrlNavigationThrottleBrowserTest.* --All/LookalikeUrlNavigationThrottleDigitalAssetLinksBrowserTest.* --All/LookalikeUrlNavigationThrottleSignedExchangeBrowserTest.* -All/MultiActionAPICanvasTest.* -All/MultiActionAPITest.* -All/NetInfoNetworkQualityEstimatorHoldbackBrowserTest.* @@ -391,7 +494,6 @@ -All/PromotionalTabsEnabledPolicyWhatsNewTest.* -All/QuietUIPromoBrowserTest.* -All/ReportingBrowserTest.* --All/SafeBrowsingFencedFrameBrowserTest.* -All/SameOriginUaOriginTrialBrowserTest.* -All/ScrollToTextFragmentPolicyTest.* -All/SearchEnginePreconnectorForegroundBrowserTest.* @@ -489,14 +591,12 @@ -ContentAnalysisDialogCustomMessageAppearanceBrowserTest.* -ContentAutofillDriverBrowserTest.* -ContentFaviconDriverTest.* --ContextMenuFencedFrameTest.MenuContentsVerification_Fencedframe +-ContentScriptApiPrerenderingTest.* -ContentScriptApiTest.* -ContentSettingBubbleDialogTest.* -ContentSettingImageModelBrowserTest.* -ContentSettingsBackForwardCacheBrowserTest.* -ContentSettingsTest.* --ContentSettingsWithFencedFrameBrowserTest.RendererContentSettings --ContentSettingsWorkerModulesWithFencedFrameBrowserTest.WorkerImportModuleBlocked -ContentSettingsWorkerModulesBrowserTest.* -ContentVerifierPolicyTest.* -ContextMenuBrowserTest.* @@ -511,7 +611,6 @@ -DataSaverWebAPIsBrowserTest.* -DebuggerApiTest.* -DeclarativeContentApiTest.* --DeclarativeNetRequestApiFencedFrameTest/DeclarativeNetRequestApiFencedFrameTest.* -DefaultProfileExtensionBrowserTest.* -DestroyProfileOnBrowserClose/ProfileHelperTestWithDestroyProfile.* -DestroyProfileOnBrowserClose/ProfileManagerBrowserTest.* @@ -524,14 +623,6 @@ -DevToolsTagTest.* -DevToolsTest.NewWindowFromBrowserContext -DevToolsTest.TestRawHeadersWithRedirectAndHSTS --DiceBrowserTest.* --DiceBrowsingDataRemoverBrowserTest.* --DiceManageAccountBrowserTest.* --DiceSigninUiUtilBrowserTest.* --DiceWebSigninInterceptionBubbleBrowserTest.* --DiceWebSigninInterceptionBubbleV2BrowserTest.OpenLearnMoreLinkInNewTab --DiceWebSigninInterceptorBrowserTest.* --DiceWebSigninInterceptorEnterpriseBrowserTest.* -DIPSBounceDetectorBrowserTest.DetectStatefulRedirect_Client_IgnoreThirdPartySubresource -DIPSBounceDetectorBrowserTest.Histograms_BounceCategory_Client -DIPSBounceDetectorBrowserTest.Histograms_BounceCategory_Server @@ -584,13 +675,11 @@ -ExtensionTelemetryServiceBrowserTest.* -ExtensionUninstallDialogViewInteractiveBrowserTest.* -ExtensionURLRewriteBrowserTest.* --ExtensionWebRequestApiFencedFrameTest/ExtensionWebRequestApiFencedFrameTest.* -ExtensionWebRequestApiTest.* -ExtensionWebstorePrivateApiAllowlistEnforcementTest.* -ExtensionWebstorePrivateApiTest.* -ExternalProtocolHandlerBrowserTest.* -FeatureEnabled/WebrtcLoggingPrivateApiStartEventLoggingTestFeatureOrPolicyDisabled.* --FencedFrameSiteDetailsBrowserTest.* -FieldTrialTest.* -FileIFrameAPITest.* -FindInPageControllerTest.* @@ -657,12 +746,10 @@ -IncognitoProfileMainNetworkContext/NetworkContextConfigurationManagedProxySettingsBrowserTest.* -IncognitoProfileMainNetworkContext/NetworkContextConfigurationProxyOnStartBrowserTest.* -IncognitoProfileMainNetworkContext/NetworkContextConfigurationProxySettingsBrowserTest.* --InspectUIFencedFrameTest.* -InspectUITest.* -IntentChipButtonBrowserTest.* +-IntentChipButtonSkipIntentPickerBrowserTest.ClickingChipOpensApp -IntentChipButtonSkipIntentPickerBrowserTest.ShowsIntentChipCollapsed --InterestGroupFledgeOnBrowserTest.* --InterestGroupPermissionsBrowserTest.* -IsolatedAppsDeveloperModeAllowedPolicyTest.* -JavascriptFrameworksUkmObserverBrowserTest.* -KeepAliveDevToolsTest.* @@ -671,12 +758,6 @@ -LiveCaptionSpeechRecognitionHostTest.* -LoadAndLaunchExtensionBrowserTest.* -LoadImageBrowserTest.* --LoadingPredictorBrowserTest.* --LoadingPredictorBrowserTestWithNoLocalPredictions.* --LoadingPredictorBrowserTestWithOptimizationGuide.* --LoadingPredictorBrowserTestWithProxy.* --LoadingPredictorPrefetchBrowserTest.* --LoadingPredictorPrefetchCounterfactualBrowserTest.* -LocalCardMigrationBrowserTest.* -LocalCardMigrationBrowserTestForStatusChip.* -LocalCardMigrationBrowserUiTest.InvokeUi_default @@ -689,7 +770,6 @@ -MediaRouterIntegrationOneUABrowserTest.* -MediaRouterIntegrationOneUANoReceiverBrowserTest.* -MediaRouterUIBrowserTest.* --MessagingApiFencedFrameTest/MessagingApiFencedFrameTest.* -MetadataCheckAndDeepScanningBrowserTest.* -MetricsLogBrowserTest.CommandLineKeyHash -MetricsServiceBrowserDoUploadTest.* @@ -704,14 +784,6 @@ -NativeBindingsApiTest.* -NativeMessagingLaunchBackgroundModeApiTest.* -NavigationEntryRemoverTest.* --NavigationPredictorPreconnectClientBrowserTest.* --NavigationPredictorPreconnectClientBrowserTestPreconnectOnDidFinishNavigationNoDelay.* --NavigationPredictorPreconnectClientBrowserTestPreconnectOnDidFinishNavigationSecondDelay.* --NavigationPredictorPreconnectClientBrowserTestWithHoldback.* --NavigationPredictorPreconnectClientBrowserTestWithSearch.* --NavigationPredictorPreconnectClientBrowserTestWithUnusedIdleSocketTimeout.* --NavigationPredictorPreconnectClientFencedFrameBrowserTest.* --NavigationPredictorSameDocumentPreconnectClientBrowserTest.* -NetInfoBrowserTest.* -NetworkConnectionTrackerBrowserTest.SimulateNetworkServiceCrash -NetworkOnOrOff/ProfileMenuViewSignoutTestWithNetwork.* @@ -769,6 +841,7 @@ -PasswordManagerAnonymousIframeTest.DisablePasswordManagerOnAnonymousIframe -PasswordManagerBackForwardCacheBrowserTest.* -PasswordManagerBrowserTest.* +-PasswordManagerCredentiallessIframeTest.DisablePasswordManagerOnCredentiallessIframe -PasswordManagerInternalsWebUIBrowserTest.* -PDFExtensionHitTestTest.ContextMenuCoordinates -PDFExtensionRegionSearchTest.NoContextMenuCommandExtensionMainFrame @@ -782,7 +855,6 @@ -PDFIFrameNavigationThrottleBrowserTest.* -PKIMetadataComponentUpdater/PKIMetadataComponentUpdaterTest.* -PerformanceHintsObserverBrowserTest.* --PerformanceHintsObserverFencedFrameTest.* -PermissionRequestManagerWithBackForwardCacheBrowserTest.* -PersistentBackground/DeclarativeNetRequestLazyApiTest.TestMatchOutcome/0 -PersistentBackground/ExtensionI18nTest.* @@ -800,13 +872,7 @@ -PolicyUpdateServiceTest.* -PolicyVariationsServiceTest.* -PolicyWebStoreIconTest.* --PredictionManagerBrowserTest.* --PredictionManagerModelDownloadingBrowserTest.* --PredictionManagerModelPackageOverrideTest.* --PredictionManagerNoUserPermissionsTest.* --PredictionServiceBrowserTest.* -PrefetchBrowserTest.* --PrefetchProxyFencedFrameBrowserTest.* -PrefsFunctionalTest.* -PreinstalledAppsBrowserTest.* -PreinstalledAppsMigrationBrowserTest.* @@ -867,6 +933,7 @@ -PushMessagingBrowserTest.* -PushMessagingExpWebFeaturesBrowserTest/PushMessagingExpWebFeaturesBrowserTest.CrossOriginFrame/* -PushMessagingIncognitoBrowserTest.* +-PushMessagingPartitionedBrowserTest/PushMessagingPartitionedBrowserTest.*/* -PwaInstallViewBrowserTest.* -QuicAllowedPolicyIsFalse.* -QuicAllowedPolicyIsTrue.* @@ -952,7 +1019,6 @@ -SignedExchangeSecurityStateTest.SecurityLevelIsSecureAfterPrefetch/* -SigninInterceptFirstRunExperienceDialogBrowserTest.* -SigninReauthViewControllerBrowserTest.* --SigninReauthViewControllerFencedFrameBrowserTest.* -SiteDetailsBrowserTest.* -SiteEngagementHelperBrowserTest.* -SitePerProcessWebViewTest.* @@ -1005,12 +1071,12 @@ -TabActivityWatcherTestWithBackgroundLogDisabledAndOnlyOneOldestTab.LogOldestNTabFeatures -TabActivityWatcherTestWithBackgroundLogEnabled.DiscardedTabGetsPreviousSourceId -TabCaptureApiTest.* --TabContentsTagFencedFrameTest.FencedFrameDoesNotUpdateTitle -TabContentsTagTest.* -TabHelperBrowserTest.* -TabManagerTest.* -TabManagerTestWithTwoTabs.* -TabRestoreTest.* +-TabSharingUIViewsPreferCurrentTabBrowserTest.* -TabStatsTrackerBrowserTest.TabStatsObserverBasics -TabStatsTrackerBrowserTest.TabsAndWindowsAreCountedAccurately -TabUsageScenarioTrackerBrowserTest.FullScreenVideo @@ -1063,9 +1129,9 @@ -WebAppOfflineDarkModeTest.* -WebAppTabStripBrowserTest.NavigationThrottle -WebAppTabStripBrowserTest.ReparentingPinsHomeTab +-WebAppTabStripBrowserTest.TabbedModeMediaCSS -WebAppTabStripLinkCapturingBrowserTest.* -WebNavigationApiBackForwardCacheTest.* --WebNavigationApiFencedFrameTest/WebNavigationApiFencedFrameTest.* -WebRtcDesktopCaptureBrowserTest.* -WebrtcLoggingPrivateApiBrowserTest.* -WebrtcLoggingPrivateApiStartEventLoggingTestFeatureAndPolicyEnabled.* @@ -1082,13 +1148,14 @@ -WebUiNtpBrowserTest.* -WebUiNtpInterceptionWebRequestAPITest.* -WebUIWebViewBrowserTest.* +-WebViewHttpsFirstModeTests/WebViewHttpsFirstModeTest.GuestLoadsHttpWithoutError/SiteIsolationForGuestsEnabled_UseErrorPage +-WebViewHttpsFirstModeTests/WebViewHttpsFirstModeTest.GuestLoadsHttpWithoutError/SiteIsolationForGuestsEnabled_UseInterstitial +-WebViewHttpsFirstModeTests/WebViewHttpsFirstModeTest.GuestLoadsHttpsWithoutError/SiteIsolationForGuestsEnabled_UseErrorPage +-WebViewHttpsFirstModeTests/WebViewHttpsFirstModeTest.GuestLoadsHttpsWithoutError/SiteIsolationForGuestsEnabled_UseInterstitial -WebViewTest.* -WebViewTests/ChromeSignInWebViewTest.ClosingChromeSignInShouldNotCrash/SiteIsolationForGuestsEnabled -WebViewTests/IsolatedOriginWebViewTest.IsolatedOriginInWebview/SiteIsolationForGuestsEnabled -WebViewTests/IsolatedOriginWebViewTest.LoadIsolatedOriginInWebviewAfterLoadingInRegularTab/SiteIsolationForGuestsEnabled --WebViewTests/WebViewFencedFrameTest.FencedFrameInGuestHasGuestSiteInstance/SiteIsolationForGuestsEnabled --WebViewTests/WebViewHttpsFirstModeTest.GuestLoadsHttpWithoutError/SiteIsolationForGuestsEnabled --WebViewTests/WebViewHttpsFirstModeTest.GuestLoadsHttpsWithoutError/SiteIsolationForGuestsEnabled -WebViewTests/WebViewNewWindowTest.NewWindow_DifferentCoopStatesInRelatedWebviews/SiteIsolationForGuestsEnabled -WebViewTests/WebViewPdfTest.ContextMenuNavigationInMimeHandlerView/SiteIsolationForGuestsEnabled -WebViewTests/WebViewSafeBrowsingTest.Shim_TestLoadAbortSafeBrowsing/SiteIsolationForGuestsEnabled diff --git a/test/filters/unit_tests.filter b/test/filters/unit_tests.filter index 4ddc778f1acc..427bb4fd505d 100644 --- a/test/filters/unit_tests.filter +++ b/test/filters/unit_tests.filter @@ -8,6 +8,8 @@ # These tests crash due to TestingBraveBrowserProcess::greaselion_download_service() # having NOTREACHED which causes an immediate crash # https://github.com/brave/brave-browser/issues/25726 +-All/AppLauncherHandlerTest.HandleClosedWhileUninstallingExtension/OSIntegrationSubManagers_Disabled +-All/AppLauncherHandlerTest.HandleClosedWhileUninstallingExtension/OSIntegrationSubManagers_Enabled -All/PriceTrackingViewFeatureFlagTest.PriceTrackingViewCreation/* -ApcScrimManagerImplTest.DisabledScrimCannotBeShown -ApcScrimManagerImplTest.HideDoesNotImmediatelySetOriginalAxMode @@ -19,6 +21,7 @@ -BatterySaverButtonTest.* -BrowserViewTestWithStopLoadingAnimationForHiddenWindow.LoadingAnimationNotRenderedWhenWindowHidden -ChromeBrowsingDataRemoverDelegateOriginTrialsTest.PersistentOriginTrialsAreDeleted +-DownloadBubbleRowViewTest.CopyAcceleratorCopiesFile -ExtensionActionViewControllerFeatureUnitTest.* -ExtensionActionViewControllerGrayscaleTest.* -ExtensionActionViewControllerUnitTest.* @@ -29,6 +32,16 @@ -PeopleHandlerSignoutTest.SignoutNotAllowedSyncOn -PeopleHandlerSignoutTest.SignoutWithSyncOff -PeopleHandlerSignoutTest.SignoutWithSyncOn +-SavedTabGroupModelListenerTest.CreatesRemovesBrowserListener +-SavedTabGroupModelListenerTest.GetTabStripModelWithTabGroupId + +# These tests crash due to TestingBraveBrowserProcess::extension_whitelist_service() +# having NOTREACHED which causes an immediate crash +-All/UnpackedInstallerUnitTest.WithheldHostPermissionsWithFlag/* +-ChromeAppsIconFactoryTest.LoadCompressedIcon +-ChromeAppsIconFactoryTest.LoadCompressedIconWithoutEffect +-ChromeAppsIconFactoryTest.LoadStandardIcon +-ChromeAppsIconFactoryTest.LoadUncompressedIcon # These tests crash when BraveExtensionManagement is initialized via a # TestExtensionSystem @@ -87,10 +100,6 @@ -PrerenderManagerTest.StartSameSuggestionPrerender -PrerenderTest.* -# These tests fail because we have features::kNavigationRequestPreconnect -# disabled --PreconnectManagerTest.* - # Tests failing due to our replacing of MdTextButton with MdTextButtonBase. -ScreenshotCapturedBubbleTest.EditNavigatesToImageEditorWebUI @@ -101,6 +110,34 @@ # Test flaky in cr109, although corrected in newer revisions -TabStripScrollSessionTestWithVariableSpeed.GivenScrollSessionWhenMaybeStartThenTimerCallback +# These tests fail because we intentionally disable DICE signin via +# BraveAccountConsistencyModeManager::IsDiceSignInAllowed() +-All/DiceWebSigninInterceptorManagedAccountTest.* +-All/ProcessDiceHeaderDelegateImplTestEnableSync.* +-All/ProcessDiceHeaderDelegateImplTestHandleTokenExchangeFailure.* +-DiceSigninUiUtilTest.* +-DiceTurnSyncOnHelperTest.* +-DiceWebSigninInterceptorForcedSeparationTest.* +-DiceWebSigninInterceptorTest.* +-GAIAInfoUpdateServiceDiceTest.* + +# This test fails because we disable the privacy sandbox +-PrivacySandboxServiceTest.MetricsLoggingOccursCorrectly + +# This test fails because we intentionally disable the Federated Credential +# Management API via features::kFedCm +-FederatedIdentityApiPermissionContextTest.WhitelistedSiteForThirdPartyCookies + +# These tests fail because we intentionally disable preloading via +# features::kEarlyHintsPreloadForNavigation +-PreconnectManagerTest.* + +# These tests fail because we disable DIPS via dips::kFeature +-All/DIPSDatabaseAllColumnTest.*/* +-All/DIPSDatabaseGarbageCollectionTest.*/* +-All/DIPSDatabaseInteractionTest.*/* +-DIPSDatabaseHistogramTest.* + # Tests below this point have not been diagnosed or had issues created yet. -AboutFlagsHistogramTest.* -AboutFlagsTest.* @@ -116,7 +153,6 @@ -ActivityLogTestWithoutSwitch.* -All/ActionTrackerTest.* -All/ChromeLabs*Test.* --All/DiceWebSigninInterceptorManagedAccountTest.* -All/EnterpriseProfileWelcomeHandleProceedTest.HandleProceed/* -All/ExtensionActionAPIUnitTest.* -All/ExtensionContextMenuModelWithUserHostControlsTest.PageAccessItemsVisibilityBasedOnSiteSettings/* @@ -127,8 +163,6 @@ -All/MultipleRulesetsTest.* -All/ParameterizedDeclarativeContentActionTest.* -All/PreinstalledWebAppManagerTest.ReplacementExtensionBlockedByPolicy/* --All/ProcessDiceHeaderDelegateImplTestEnableSync.* --All/ProcessDiceHeaderDelegateImplTestHandleTokenExchangeFailure.* -All/RulesetManagerTest.* -All/SearchProviderCommandLineOverrideTest.CommandLineOverrides/* -All/SearchProviderTest.* @@ -231,10 +265,6 @@ -DevicePermissionsManagerTest.* -DevToolsUIBindingsTest.* -DevToolsUIDataSourceTest.* --DiceSigninUiUtilTest.* --DiceTurnSyncOnHelperTest.* --DiceWebSigninInterceptorForcedSeparationTest.* --DiceWebSigninInterceptorTest.* -DocumentOverlayWindowViewsTest.* -DownloadBubblePrefsTest.EnhancedProtectionEnabled -DownloadProtectionServiceTest.* @@ -275,6 +305,7 @@ -ExtensionsMenuViewUnitTest.* -ExtensionSourcePriorityTest.* -ExtensionsTabbedMenuViewUnitTest.* +-ExtensionsToolbarButtonUnitTest.ButtonOpensMenu -ExtensionsToolbarContainerUnitTest.* -ExtensionsToolbarControlsTest.* -ExtensionsToolbarControlsUnitTest.* @@ -297,7 +328,6 @@ -ForegroundedOrClosedTest.* -FullscreenControllerStateUnitTest.* -FullStreamUIPolicyTest.* --GAIAInfoUpdateServiceDiceTest.* -GalleryWatchManagerTest.* -GCMProfileServiceTest.* -GeolocationPermissionContextDelegateTests.* diff --git a/ui/webui/resources/br_elements/br_toolbar/br_toolbar.ts b/ui/webui/resources/br_elements/br_toolbar/br_toolbar.ts index 80b1a37be2ce..4e1e99510c9e 100644 --- a/ui/webui/resources/br_elements/br_toolbar/br_toolbar.ts +++ b/ui/webui/resources/br_elements/br_toolbar/br_toolbar.ts @@ -11,6 +11,7 @@ import 'chrome://resources/br_elements/br_shared_vars.css.js'; import 'chrome://resources/br_elements/br_shared_style.css.js'; import './br_toolbar_search_field.js'; import {getTemplate} from './br_toolbar.html.js' +import {loadTimeData} from '../../js/load_time_data.js'; const customCurrentWebUINameMap = { extensions: 'settings', @@ -182,20 +183,35 @@ Polymer({ }) }, + getLoadTimeDataBoolean: function(value: string) { + if (loadTimeData.data_) { + return loadTimeData.getBoolean(value) + } + return window.loadTimeData.getBoolean(value) + }, + + getLoadTimeDataString: function(value: string) { + if (loadTimeData.data_) { + return loadTimeData.getString(value) + } + return window.loadTimeData.getString(value) + }, + initStrings: function() { - this.historyTitle = loadTimeData.getString('brToolbarHistoryTitle') - this.settingsTitle = loadTimeData.getString('brToolbarSettingsTitle') - this.bookmarksTitle = loadTimeData.getString('brToolbarBookmarksTitle') - this.downloadsTitle = loadTimeData.getString('brToolbarDownloadsTitle') - this.braveRewardsTitle = loadTimeData.getString('brToolbarRewardsTitle') - this.walletsTitle = loadTimeData.getString('brToolbarWalletsTitle') + this.historyTitle = this.getLoadTimeDataString('brToolbarHistoryTitle') + this.settingsTitle = this.getLoadTimeDataString('brToolbarSettingsTitle') + this.bookmarksTitle = this.getLoadTimeDataString('brToolbarBookmarksTitle') + this.downloadsTitle = this.getLoadTimeDataString('brToolbarDownloadsTitle') + this.braveRewardsTitle = this.getLoadTimeDataString('brToolbarRewardsTitle') + this.walletsTitle = this.getLoadTimeDataString('brToolbarWalletsTitle') }, /** @override */ attached: function () { this.shouldShowRewardsButton_ = - loadTimeData.getBoolean('brToolbarShowRewardsButton') - this.isBraveWalletAllowed_ = loadTimeData.getBoolean('isBraveWalletAllowed') + this.getLoadTimeDataBoolean('brToolbarShowRewardsButton') + this.isBraveWalletAllowed_ = + this.getLoadTimeDataBoolean('isBraveWalletAllowed') this.initSlotFilledDetection() this.initStrings() this.initFontLoadDetection() diff --git a/ui/webui/resources/i18n_behavior.ts b/ui/webui/resources/i18n_behavior.ts index 4ba8425a0bf6..949b7dc8d09b 100644 --- a/ui/webui/resources/i18n_behavior.ts +++ b/ui/webui/resources/i18n_behavior.ts @@ -22,7 +22,7 @@ * code. */ -import {loadTimeData} from '//resources/js/load_time_data.m.js'; +import {loadTimeData} from '//resources/js/load_time_data.js'; import {parseHtmlSubset, sanitizeInnerHtml, SanitizeInnerHtmlOpts} from '//resources/js/parse_html_subset.js'; /** @polymerBehavior */ diff --git a/vendor/bat-native-ads/src/bat/ads/internal/diagnostics/diagnostic_manager_unittest.cc b/vendor/bat-native-ads/src/bat/ads/internal/diagnostics/diagnostic_manager_unittest.cc index 9eb8738aa352..cae59728a0d0 100644 --- a/vendor/bat-native-ads/src/bat/ads/internal/diagnostics/diagnostic_manager_unittest.cc +++ b/vendor/bat-native-ads/src/bat/ads/internal/diagnostics/diagnostic_manager_unittest.cc @@ -67,11 +67,11 @@ TEST_F(BatAdsDiagnosticManagerTest, DiagnosticManager) { }, { "name": "Catalog last updated", - "value": "Wednesday, November 18, 1970 at 12:34:56 PM" + "value": "Wednesday, November 18, 1970 at 12:34:56\u202fPM" }, { "name": "Last unidle time", - "value": "Monday, July 8, 1996 at 9:25:00 AM" + "value": "Monday, July 8, 1996 at 9:25:00\u202fAM" } ])~"); ASSERT_TRUE(expected_list.is_list()); diff --git a/vendor/bat-native-ads/src/bat/ads/internal/diagnostics/entries/catalog_last_updated_diagnostic_entry_unittest.cc b/vendor/bat-native-ads/src/bat/ads/internal/diagnostics/entries/catalog_last_updated_diagnostic_entry_unittest.cc index 14c44bd99e6f..7cb52bc5df75 100644 --- a/vendor/bat-native-ads/src/bat/ads/internal/diagnostics/entries/catalog_last_updated_diagnostic_entry_unittest.cc +++ b/vendor/bat-native-ads/src/bat/ads/internal/diagnostics/entries/catalog_last_updated_diagnostic_entry_unittest.cc @@ -31,7 +31,7 @@ TEST_F(BatAdsCatalogLastUpdatedDiagnosticEntryTest, CatalogLastUpdated) { EXPECT_EQ(DiagnosticEntryType::kCatalogLastUpdated, diagnostic_entry.GetType()); EXPECT_EQ("Catalog last updated", diagnostic_entry.GetName()); - EXPECT_EQ("Wednesday, November 18, 1970 at 12:34:56 PM", + EXPECT_EQ("Wednesday, November 18, 1970 at 12:34:56\u202fPM", diagnostic_entry.GetValue()); } diff --git a/vendor/bat-native-ads/src/bat/ads/internal/diagnostics/entries/last_unidle_time_diagnostic_entry_unittest.cc b/vendor/bat-native-ads/src/bat/ads/internal/diagnostics/entries/last_unidle_time_diagnostic_entry_unittest.cc index 4beb61118090..aead9d4920ff 100644 --- a/vendor/bat-native-ads/src/bat/ads/internal/diagnostics/entries/last_unidle_time_diagnostic_entry_unittest.cc +++ b/vendor/bat-native-ads/src/bat/ads/internal/diagnostics/entries/last_unidle_time_diagnostic_entry_unittest.cc @@ -28,7 +28,8 @@ TEST_F(BatAdsLastUnIdleTimeDiagnosticEntryTest, LastUnIdleTime) { // Assert EXPECT_EQ(DiagnosticEntryType::kLastUnIdleTime, diagnostic_entry.GetType()); EXPECT_EQ("Last unidle time", diagnostic_entry.GetName()); - EXPECT_EQ("Monday, July 8, 1996 at 12:34:56 PM", diagnostic_entry.GetValue()); + EXPECT_EQ("Monday, July 8, 1996 at 12:34:56\u202fPM", + diagnostic_entry.GetValue()); } TEST_F(BatAdsLastUnIdleTimeDiagnosticEntryTest, WasNeverUnIdle) {