Explorar o código

refresh patches

PF4Public %!s(int64=4) %!d(string=hai) anos
pai
achega
045e3b97b3

+ 3 - 3
patches/core/bromite/disable-fetching-field-trials.patch

@@ -10,7 +10,7 @@ Subject: Disable fetching of all field trials
 
 --- a/chrome/browser/flags/android/java/src/org/chromium/chrome/browser/flags/ChromeFeatureList.java
 +++ b/chrome/browser/flags/android/java/src/org/chromium/chrome/browser/flags/ChromeFeatureList.java
-@@ -108,10 +108,7 @@ public abstract class ChromeFeatureList 
+@@ -108,10 +108,7 @@ public abstract class ChromeFeatureList
       */
      public static int getFieldTrialParamByFeatureAsInt(
              String featureName, String paramName, int defaultValue) {
@@ -22,7 +22,7 @@ Subject: Disable fetching of all field trials
      }
  
      /**
-@@ -128,10 +125,7 @@ public abstract class ChromeFeatureList 
+@@ -128,10 +125,7 @@ public abstract class ChromeFeatureList
       */
      public static double getFieldTrialParamByFeatureAsDouble(
              String featureName, String paramName, double defaultValue) {
@@ -34,7 +34,7 @@ Subject: Disable fetching of all field trials
      }
  
      /**
-@@ -148,10 +142,7 @@ public abstract class ChromeFeatureList 
+@@ -148,10 +142,7 @@ public abstract class ChromeFeatureList
       */
      public static boolean getFieldTrialParamByFeatureAsBoolean(
              String featureName, String paramName, boolean defaultValue) {

+ 3 - 3
patches/core/inox-patchset/0001-fix-building-without-safebrowsing.patch

@@ -236,7 +236,7 @@
          command_line->AppendSwitch(
              switches::kDisableClientSidePhishingDetection);
        }
-@@ -3971,7 +3946,7 @@ ChromeContentBrowserClient::CreateThrott
+@@ -3973,7 +3948,7 @@ ChromeContentBrowserClient::CreateThrott
        base::BindRepeating(&MaybeTriggerSecurityInterstitialShownEvent));
    throttles.push_back(std::make_unique<SSLErrorNavigationThrottle>(
        handle,
@@ -245,7 +245,7 @@
        base::BindOnce(&HandleSSLErrorWrapper), base::BindOnce(&IsInHostedApp)));
  
    throttles.push_back(std::make_unique<LoginNavigationThrottle>(handle));
-@@ -3992,12 +3967,6 @@ ChromeContentBrowserClient::CreateThrott
+@@ -3994,12 +3969,6 @@ ChromeContentBrowserClient::CreateThrott
        GooglePasswordManagerNavigationThrottle::MaybeCreateThrottleFor(handle));
  #endif
  
@@ -766,7 +766,7 @@
        CreatePrefService(pref_registry_, CreateExtensionPrefStore(this, false),
 --- a/chrome/browser/profiles/profiles_state.cc
 +++ b/chrome/browser/profiles/profiles_state.cc
-@@ -222,9 +222,6 @@ void RemoveBrowsingDataForProfile(const 
+@@ -222,9 +222,6 @@ void RemoveBrowsingDataForProfile(const
    // The BrowsingDataRemover relies on many objects that aren't created in unit
    // tests. Previously this code would depend on content::ResourceDispatcherHost
    // but that's gone, so do a similar hack for now.

+ 1 - 1
patches/core/iridium-browser/all-add-trk-prefixes-to-possibly-evil-connections.patch

@@ -603,7 +603,7 @@ by default.
        "image_url": "{google:baseURL}searchbyimage/upload",
 --- a/components/translate/core/browser/translate_url_fetcher.cc
 +++ b/components/translate/core/browser/translate_url_fetcher.cc
-@@ -113,6 +113,7 @@ bool TranslateURLFetcher::Request(const 
+@@ -113,6 +113,7 @@ bool TranslateURLFetcher::Request(const
          max_retry_on_5xx_, network::SimpleURLLoader::RetryMode::RETRY_ON_5XX);
    }
  

+ 1 - 1
patches/core/ungoogled-chromium/block-trk-and-subdomains.patch

@@ -218,7 +218,7 @@
  
 --- a/url/url_constants.h
 +++ b/url/url_constants.h
-@@ -32,6 +32,7 @@ COMPONENT_EXPORT(URL) extern const char 
+@@ -32,6 +32,7 @@ COMPONENT_EXPORT(URL) extern const char
  COMPONENT_EXPORT(URL) extern const char kMailToScheme[];
  COMPONENT_EXPORT(URL) extern const char kQuicTransportScheme[];
  COMPONENT_EXPORT(URL) extern const char kTelScheme[];

+ 1 - 1
patches/core/ungoogled-chromium/disable-fonts-googleapis-references.patch

@@ -35,7 +35,7 @@
    document.head.appendChild(e);
 --- a/third_party/catapult/third_party/polymer/components/font-roboto/roboto.html
 +++ b/third_party/catapult/third_party/polymer/components/font-roboto/roboto.html
-@@ -7,4 +7,4 @@ The complete set of contributors may be 
+@@ -7,4 +7,4 @@ The complete set of contributors may be
  Code distributed by Google as part of the polymer project is also
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
  -->

+ 2 - 2
patches/core/ungoogled-chromium/fix-building-without-safebrowsing.patch

@@ -2,7 +2,7 @@
 
 --- a/chrome/browser/chrome_content_browser_client.cc
 +++ b/chrome/browser/chrome_content_browser_client.cc
-@@ -4964,18 +4964,7 @@ ChromeContentBrowserClient::GetSafeBrows
+@@ -4966,18 +4966,7 @@ ChromeContentBrowserClient::GetSafeBrows
      bool safe_browsing_enabled_for_profile) {
    DCHECK_CURRENTLY_ON(BrowserThread::IO);
  
@@ -592,7 +592,7 @@
    base::WeakPtrFactory<NativeFileSystemFileWriterImpl> weak_factory_{this};
 --- a/content/public/browser/native_file_system_permission_context.h
 +++ b/content/public/browser/native_file_system_permission_context.h
-@@ -100,13 +100,6 @@ class NativeFileSystemPermissionContext 
+@@ -100,13 +100,6 @@ class NativeFileSystemPermissionContext
        base::OnceCallback<void(SensitiveDirectoryResult)> callback) = 0;
  
    enum class AfterWriteCheckResult { kAllow, kBlock };

+ 9 - 9
patches/core/ungoogled-chromium/remove-unused-preferences-fields.patch

@@ -55,7 +55,7 @@
  #include "components/signin/public/base/signin_pref_names.h"
  #include "components/translate/core/browser/translate_pref_names.h"
  
-@@ -95,8 +94,6 @@ const char* const kPrefsExposedToJava[] 
+@@ -95,8 +94,6 @@ const char* const kPrefsExposedToJava[]
      autofill::prefs::kAutofillCreditCardEnabled,
      prefs::kUsageStatsEnabled,
      offline_pages::prefetch_prefs::kUserSettingEnabled,
@@ -159,7 +159,7 @@
  
        if (prefs->GetBoolean(prefs::kPrintPreviewDisabled))
          command_line->AppendSwitch(switches::kDisablePrintPreview);
-@@ -4290,7 +4284,7 @@ ChromeContentBrowserClient::CreateURLLoa
+@@ -4292,7 +4286,7 @@ ChromeContentBrowserClient::CreateURLLoa
  
    signin::IdentityManager* identity_manager =
        IdentityManagerFactory::GetForProfile(profile);
@@ -337,7 +337,7 @@
  #include "components/spellcheck/browser/pref_names.h"
  #include "components/translate/core/browser/translate_pref_names.h"
  #include "extensions/browser/extension_pref_value_map.h"
-@@ -114,11 +113,6 @@ const PrefMappingEntry kPrefMapping[] = 
+@@ -114,11 +113,6 @@ const PrefMappingEntry kPrefMapping[] =
       APIPermission::kPrivacy},
      {"doNotTrackEnabled", prefs::kEnableDoNotTrack, APIPermission::kPrivacy,
       APIPermission::kPrivacy},
@@ -1335,7 +1335,7 @@
      RequestOutcome* reason) const {
 --- a/chrome/browser/safe_browsing/chrome_password_protection_service.h
 +++ b/chrome/browser/safe_browsing/chrome_password_protection_service.h
-@@ -217,13 +217,6 @@ class ChromePasswordProtectionService : 
+@@ -217,13 +217,6 @@ class ChromePasswordProtectionService :
    bool UserClickedThroughSBInterstitial(
        content::WebContents* web_contents) override;
  
@@ -2067,7 +2067,7 @@
  // static
 --- a/chrome/browser/ui/browser_command_controller.h
 +++ b/chrome/browser/ui/browser_command_controller.h
-@@ -212,7 +212,6 @@ class BrowserCommandController : public 
+@@ -212,7 +212,6 @@ class BrowserCommandController : public
  
    PrefChangeRegistrar profile_pref_registrar_;
    PrefChangeRegistrar local_pref_registrar_;
@@ -2562,7 +2562,7 @@
  #include "components/strings/grit/components_strings.h"
  #include "content/public/browser/web_ui.h"
  #include "content/public/browser/web_ui_data_source.h"
-@@ -106,9 +105,7 @@ void SigninErrorUI::Initialize(Browser* 
+@@ -106,9 +105,7 @@ void SigninErrorUI::Initialize(Browser*
    if (is_profile_blocked) {
      source->AddLocalizedString("profileBlockedMessage",
                                 IDS_OLD_PROFILES_DISABLED_MESSAGE);
@@ -4120,7 +4120,7 @@
        primary_account_manager->GetAuthenticatedAccountInfo();
 --- a/components/signin/internal/identity_manager/primary_account_policy_manager_impl.h
 +++ b/components/signin/internal/identity_manager/primary_account_policy_manager_impl.h
-@@ -50,9 +50,6 @@ class PrimaryAccountPolicyManagerImpl : 
+@@ -50,9 +50,6 @@ class PrimaryAccountPolicyManagerImpl :
    // profile-specific local prefs (like kGoogleServicesUsernamePattern).
    PrefChangeRegistrar local_state_pref_registrar_;
  
@@ -4352,7 +4352,7 @@
  #include "components/sync_preferences/testing_pref_service_syncable.h"
 --- a/tools/metrics/histograms/enums.xml
 +++ b/tools/metrics/histograms/enums.xml
-@@ -64148,7 +64148,6 @@ Full version information for the fingerp
+@@ -64150,7 +64150,6 @@ Full version information for the fingerp
    <int value="3" label="kRestoreOnStartup"/>
    <int value="4" label="kURLsToRestoreOnStartup"/>
    <int value="5" label="extensions::pref_names::kExtensions"/>
@@ -4360,7 +4360,7 @@
    <int value="7" label="kSearchProviderOverrides"/>
    <int value="8" label="kDefaultSearchProviderSearchURL (Obsolete 12/2016)"/>
    <int value="9" label="kDefaultSearchProviderKeyword (Obsolete 12/2016)"/>
-@@ -64163,10 +64162,7 @@ Full version information for the fingerp
+@@ -64165,10 +64164,7 @@ Full version information for the fingerp
    <int value="18" label="kSafeBrowsingIncidentsSent"/>
    <int value="19" label="kSwReporterPromptVersion"/>
    <int value="20" label="kSwReporterPromptReason"/>

+ 1 - 1
patches/extra/bromite/flag-fingerprinting-canvas-image-data-noise.patch

@@ -302,7 +302,7 @@ approach to change color components.
  }  // namespace blink
 --- a/third_party/blink/renderer/platform/graphics/static_bitmap_image.h
 +++ b/third_party/blink/renderer/platform/graphics/static_bitmap_image.h
-@@ -34,6 +34,8 @@ class PLATFORM_EXPORT StaticBitmapImage 
+@@ -34,6 +34,8 @@ class PLATFORM_EXPORT StaticBitmapImage
  
    StaticBitmapImage(ImageOrientation orientation) : orientation_(orientation) {}
  

+ 1 - 1
patches/extra/bromite/flag-max-connections-per-host.patch

@@ -39,7 +39,7 @@ with limited CPU/memory resources and it is disabled by default.
  // Ensure that all effective connection types returned by Network Quality
  // Estimator (NQE) are also exposed via flags.
  static_assert(net::EFFECTIVE_CONNECTION_TYPE_LAST + 2 ==
-@@ -2524,6 +2529,9 @@ const FeatureEntry kFeatureEntries[] = {
+@@ -2527,6 +2532,9 @@ const FeatureEntry kFeatureEntries[] = {
       flag_descriptions::kAutofillCreditCardUploadDescription, kOsAll,
       FEATURE_VALUE_TYPE(autofill::features::kAutofillUpstream)},
  #endif  // TOOLKIT_VIEWS || OS_ANDROID

+ 1 - 1
patches/extra/inox-patchset/0008-restore-classic-ntp.patch

@@ -39,7 +39,7 @@
  
  const base::Feature kRemoteSuggestionsEmulateM58FetchingSchedule{
      "RemoteSuggestionsEmulateM58FetchingSchedule",
-@@ -69,10 +69,10 @@ const char kNotificationsDailyLimit[] = 
+@@ -69,10 +69,10 @@ const char kNotificationsDailyLimit[] =
  const char kNotificationsIgnoredLimitParam[] = "ignored_limit";
  
  const base::Feature kKeepPrefetchedContentSuggestions{

+ 1 - 1
patches/extra/inox-patchset/0019-disable-battery-status-service.patch

@@ -11,7 +11,7 @@
  }
  
  BatteryStatusService::~BatteryStatusService() = default;
-@@ -40,58 +37,16 @@ BatteryStatusService::AddCallback(const 
+@@ -40,58 +37,16 @@ BatteryStatusService::AddCallback(const
    DCHECK(main_thread_task_runner_->BelongsToCurrentThread());
    DCHECK(!is_shutdown_);
  

+ 2 - 2
patches/extra/ungoogled-chromium/add-flag-to-configure-extension-downloading.patch

@@ -41,7 +41,7 @@
  #include "chrome/browser/chrome_notification_types.h"
  #include "chrome/browser/extensions/crx_installer.h"
  #include "chrome/browser/extensions/extension_install_prompt.h"
-@@ -126,6 +127,14 @@ scoped_refptr<extensions::CrxInstaller> 
+@@ -126,6 +127,14 @@ scoped_refptr<extensions::CrxInstaller>
    return installer;
  }
  
@@ -67,7 +67,7 @@
    }
 --- a/chrome/browser/download/download_crx_util.h
 +++ b/chrome/browser/download/download_crx_util.h
-@@ -43,6 +43,10 @@ scoped_refptr<extensions::CrxInstaller> 
+@@ -43,6 +43,10 @@ scoped_refptr<extensions::CrxInstaller>
      Profile* profile,
      const download::DownloadItem& download_item);
  

+ 1 - 1
patches/extra/ungoogled-chromium/add-flag-to-scroll-tabs.patch

@@ -17,7 +17,7 @@
  const FeatureEntry::Choice kTouchEventFeatureDetectionChoices[] = {
      {flags_ui::kGenericExperimentChoiceDisabled, "", ""},
      {flags_ui::kGenericExperimentChoiceEnabled,
-@@ -3708,6 +3718,11 @@ const FeatureEntry kFeatureEntries[] = {
+@@ -3711,6 +3721,11 @@ const FeatureEntry kFeatureEntries[] = {
       FEATURE_VALUE_TYPE(
           autofill::features::kAutofillEnableAccountWalletStorage)},
  

+ 1 - 1
patches/extra/ungoogled-chromium/add-flag-to-show-avatar-button.patch

@@ -20,7 +20,7 @@
  const FeatureEntry::Choice kTouchEventFeatureDetectionChoices[] = {
      {flags_ui::kGenericExperimentChoiceDisabled, "", ""},
      {flags_ui::kGenericExperimentChoiceEnabled,
-@@ -3809,6 +3822,11 @@ const FeatureEntry kFeatureEntries[] = {
+@@ -3812,6 +3825,11 @@ const FeatureEntry kFeatureEntries[] = {
       FEATURE_VALUE_TYPE(arc::kEnableUnifiedAudioFocusFeature)},
  #endif  // defined(OS_CHROMEOS)