From acc87a0383c36fc09aecbaad3ac34a1b00f7e15d Mon Sep 17 00:00:00 2001 From: RoyalOughtness <129108030+RoyalOughtness@users.noreply.github.com> Date: Tue, 12 Nov 2024 18:58:49 -0800 Subject: [PATCH 1/2] chore: update patches for 131 --- patches/disable-extensions-by-default.patch | 14 ++---- ...e-password-manager-prompt-by-default.patch | 9 ++-- patches/remove-unused-preferences.patch | 47 ++++++++++--------- 3 files changed, 32 insertions(+), 38 deletions(-) diff --git a/patches/disable-extensions-by-default.patch b/patches/disable-extensions-by-default.patch index 2bb0277..1f10f15 100644 --- a/patches/disable-extensions-by-default.patch +++ b/patches/disable-extensions-by-default.patch @@ -1,24 +1,16 @@ diff --git a/chrome/browser/profiles/profile.cc b/chrome/browser/profiles/profile.cc -index e2db3688e3e0b..c825e075431d6 100644 +index 89254771117da..411ef3dfa5908 100644 --- a/chrome/browser/profiles/profile.cc +++ b/chrome/browser/profiles/profile.cc -@@ -44,6 +44,7 @@ +@@ -42,6 +42,7 @@ #include "content/public/browser/web_contents.h" #include "content/public/browser/web_ui.h" #include "extensions/buildflags/buildflags.h" +#include "base/command_line.h" #if BUILDFLAG(IS_CHROMEOS) - #include "chromeos/constants/pref_names.h" -@@ -51,7 +52,6 @@ - - #if BUILDFLAG(IS_CHROMEOS_ASH) #include "ash/constants/ash_switches.h" --#include "base/command_line.h" - #endif - - #if BUILDFLAG(IS_ANDROID) -@@ -331,7 +331,9 @@ void Profile::RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { +@@ -321,7 +322,9 @@ void Profile::RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { registry->RegisterIntegerPref(prefs::kContextualSearchPromoCardShownCount, 0); #endif // BUILDFLAG(IS_ANDROID) registry->RegisterStringPref(prefs::kSessionExitType, std::string()); diff --git a/patches/disable-password-manager-prompt-by-default.patch b/patches/disable-password-manager-prompt-by-default.patch index 59b7cd0..dbcb20a 100644 --- a/patches/disable-password-manager-prompt-by-default.patch +++ b/patches/disable-password-manager-prompt-by-default.patch @@ -1,8 +1,8 @@ diff --git a/components/password_manager/core/browser/password_manager.cc b/components/password_manager/core/browser/password_manager.cc -index a3b82f509db5e..976c82e9f4650 100644 +index aac3a2f63d8a2..ed26baf23170a 100644 --- a/components/password_manager/core/browser/password_manager.cc +++ b/components/password_manager/core/browser/password_manager.cc -@@ -315,14 +315,14 @@ bool HasManuallyFilledFields(const PasswordForm& form) { +@@ -319,7 +319,7 @@ bool HasManuallyFilledFields(const PasswordForm& form) { void PasswordManager::RegisterProfilePrefs( user_prefs::PrefRegistrySyncable* registry) { registry->RegisterBooleanPref( @@ -10,7 +10,8 @@ index a3b82f509db5e..976c82e9f4650 100644 + prefs::kCredentialsEnableService, false, user_prefs::PrefRegistrySyncable::SYNCABLE_PRIORITY_PREF); #if BUILDFLAG(IS_IOS) - registry->RegisterBooleanPref(prefs::kCredentialProviderEnabledOnStartup, + // Deprecated pref in profile prefs. +@@ -327,7 +327,7 @@ void PasswordManager::RegisterProfilePrefs( false); #endif // BUILDFLAG(IS_IOS) registry->RegisterBooleanPref( @@ -19,7 +20,7 @@ index a3b82f509db5e..976c82e9f4650 100644 user_prefs::PrefRegistrySyncable::SYNCABLE_PRIORITY_PREF); registry->RegisterBooleanPref( prefs::kWasAutoSignInFirstRunExperienceShown, false, -@@ -350,7 +350,7 @@ void PasswordManager::RegisterProfilePrefs( +@@ -355,7 +355,7 @@ void PasswordManager::RegisterProfilePrefs( registry->RegisterListPref(prefs::kPasswordHashDataList, PrefRegistry::NO_REGISTRATION_FLAGS); registry->RegisterBooleanPref( diff --git a/patches/remove-unused-preferences.patch b/patches/remove-unused-preferences.patch index 85711c7..c19fa6e 100644 --- a/patches/remove-unused-preferences.patch +++ b/patches/remove-unused-preferences.patch @@ -1,8 +1,8 @@ diff --git a/chrome/browser/resources/settings/basic_page/basic_page.html b/chrome/browser/resources/settings/basic_page/basic_page.html -index f44cde44ed34f..5789ec59b6879 100644 +index e33e49405479b..000fb0e66d237 100644 --- a/chrome/browser/resources/settings/basic_page/basic_page.html +++ b/chrome/browser/resources/settings/basic_page/basic_page.html -@@ -17,7 +17,7 @@ +@@ -27,7 +27,7 @@