From d4570d8387546184a70a9a1a9342d537b4093e87 Mon Sep 17 00:00:00 2001 From: Zoraver Kang Date: Tue, 18 Feb 2020 17:00:14 -0500 Subject: [PATCH 1/2] Update to Chromium 80.0.3987.116 --- chromium_version.txt | 2 +- .../disable-webstore-urls.patch | 2 +- .../remove-unused-preferences-fields.patch | 22 +++++++++---------- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/chromium_version.txt b/chromium_version.txt index fa6c9e91..46adb5db 100644 --- a/chromium_version.txt +++ b/chromium_version.txt @@ -1 +1 @@ -80.0.3987.106 +80.0.3987.116 diff --git a/patches/core/ungoogled-chromium/disable-webstore-urls.patch b/patches/core/ungoogled-chromium/disable-webstore-urls.patch index 09e4da48..42908c87 100644 --- a/patches/core/ungoogled-chromium/disable-webstore-urls.patch +++ b/patches/core/ungoogled-chromium/disable-webstore-urls.patch @@ -2,7 +2,7 @@ --- a/chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc +++ b/chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc -@@ -601,10 +601,6 @@ std::vector ChromeContentBr +@@ -605,10 +605,6 @@ std::vector ChromeContentBr GetOriginsRequiringDedicatedProcess() { std::vector list; diff --git a/patches/core/ungoogled-chromium/remove-unused-preferences-fields.patch b/patches/core/ungoogled-chromium/remove-unused-preferences-fields.patch index a792f85d..5b355b46 100644 --- a/patches/core/ungoogled-chromium/remove-unused-preferences-fields.patch +++ b/patches/core/ungoogled-chromium/remove-unused-preferences-fields.patch @@ -52,7 +52,7 @@ #include "components/signin/public/base/signin_pref_names.h" #include "components/translate/core/browser/translate_pref_names.h" -@@ -93,8 +92,6 @@ const char* const kPrefsExposedToJava[] +@@ -93,8 +92,6 @@ const char* const kPrefsExposedToJava[] autofill::prefs::kAutofillCreditCardEnabled, prefs::kUsageStatsEnabled, offline_pages::prefetch_prefs::kUserSettingEnabled, @@ -301,7 +301,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" -@@ -111,11 +110,6 @@ const PrefMappingEntry kPrefMapping[] = +@@ -111,11 +110,6 @@ const PrefMappingEntry kPrefMapping[] = APIPermission::kPrivacy}, {"doNotTrackEnabled", prefs::kEnableDoNotTrack, APIPermission::kPrivacy, APIPermission::kPrivacy}, @@ -1348,7 +1348,7 @@ RequestOutcome* reason) const { --- a/chrome/browser/safe_browsing/chrome_password_protection_service.h +++ b/chrome/browser/safe_browsing/chrome_password_protection_service.h -@@ -210,13 +210,6 @@ class ChromePasswordProtectionService : +@@ -210,13 +210,6 @@ class ChromePasswordProtectionService : bool UserClickedThroughSBInterstitial( content::WebContents* web_contents) override; @@ -2101,7 +2101,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_; @@ -2608,7 +2608,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); @@ -3798,15 +3798,15 @@ #include "google_apis/gaia/gaia_oauth_client.h" --- a/components/signin/internal/identity_manager/gaia_cookie_manager_service.cc +++ b/components/signin/internal/identity_manager/gaia_cookie_manager_service.cc -@@ -26,7 +26,6 @@ - #include "components/signin/internal/identity_manager/oauth_multilogin_helper.h" +@@ -28,7 +28,6 @@ #include "components/signin/internal/identity_manager/ubertoken_fetcher_impl.h" + #include "components/signin/public/base/signin_buildflags.h" #include "components/signin/public/base/signin_metrics.h" -#include "components/signin/public/base/signin_pref_names.h" #include "components/signin/public/identity_manager/set_accounts_in_cookie_result.h" #include "google_apis/gaia/gaia_constants.h" #include "google_apis/gaia/gaia_urls.h" -@@ -429,9 +428,7 @@ GaiaCookieManagerService::GaiaCookieMana +@@ -431,9 +430,7 @@ GaiaCookieManagerService::GaiaCookieMana listAccountsUnexpectedServerResponseRetried_(false), external_cc_result_fetched_(false), list_accounts_stale_(true) { @@ -3817,7 +3817,7 @@ if (!gaia_cookie_last_list_accounts_data.empty()) { if (!gaia::ParseListAccountsData(gaia_cookie_last_list_accounts_data, -@@ -454,8 +451,6 @@ GaiaCookieManagerService::~GaiaCookieMan +@@ -456,8 +453,6 @@ GaiaCookieManagerService::~GaiaCookieMan // static void GaiaCookieManagerService::RegisterPrefs(PrefRegistrySimple* registry) { @@ -3826,7 +3826,7 @@ } void GaiaCookieManagerService::InitCookieListener() { -@@ -833,16 +828,12 @@ void GaiaCookieManagerService::OnListAcc +@@ -839,16 +834,12 @@ void GaiaCookieManagerService::OnListAcc &signed_out_accounts_)) { listed_accounts_.clear(); signed_out_accounts_.clear(); @@ -4106,7 +4106,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_; From 6056988937ebc32f14293809487dbaaa65939834 Mon Sep 17 00:00:00 2001 From: Zoraver Kang Date: Mon, 24 Feb 2020 16:09:11 -0500 Subject: [PATCH 2/2] Update Chromium to 80.0.3987.122 --- chromium_version.txt | 2 +- .../core/bromite/disable-fetching-field-trials.patch | 6 +++--- .../0001-fix-building-without-safebrowsing.patch | 2 +- ...add-trk-prefixes-to-possibly-evil-connections.patch | 2 +- .../ungoogled-chromium/block-trk-and-subdomains.patch | 2 +- .../disable-fonts-googleapis-references.patch | 2 +- .../fix-building-without-safebrowsing.patch | 2 +- .../remove-unused-preferences-fields.patch | 10 +++++----- .../flag-fingerprinting-canvas-image-data-noise.patch | 2 +- .../inox-patchset/0006-modify-default-prefs.patch | 2 +- .../extra/inox-patchset/0008-restore-classic-ntp.patch | 2 +- .../0019-disable-battery-status-service.patch | 2 +- .../add-flag-to-configure-extension-downloading.patch | 4 ++-- 13 files changed, 20 insertions(+), 20 deletions(-) diff --git a/chromium_version.txt b/chromium_version.txt index 46adb5db..27d193e0 100644 --- a/chromium_version.txt +++ b/chromium_version.txt @@ -1 +1 @@ -80.0.3987.116 +80.0.3987.122 diff --git a/patches/core/bromite/disable-fetching-field-trials.patch b/patches/core/bromite/disable-fetching-field-trials.patch index 6e7e9c27..449f5fcc 100644 --- a/patches/core/bromite/disable-fetching-field-trials.patch +++ b/patches/core/bromite/disable-fetching-field-trials.patch @@ -10,7 +10,7 @@ Subject: Disable fetching of all field trials --- a/chrome/android/java/src/org/chromium/chrome/browser/ChromeFeatureList.java +++ b/chrome/android/java/src/org/chromium/chrome/browser/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) { diff --git a/patches/core/inox-patchset/0001-fix-building-without-safebrowsing.patch b/patches/core/inox-patchset/0001-fix-building-without-safebrowsing.patch index 904a8da7..956c7091 100644 --- a/patches/core/inox-patchset/0001-fix-building-without-safebrowsing.patch +++ b/patches/core/inox-patchset/0001-fix-building-without-safebrowsing.patch @@ -766,7 +766,7 @@ CreatePrefService(pref_registry_, CreateExtensionPrefStore(this, false), --- a/chrome/browser/profiles/profiles_state.cc +++ b/chrome/browser/profiles/profiles_state.cc -@@ -227,9 +227,6 @@ void RemoveBrowsingDataForProfile(const +@@ -227,9 +227,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. diff --git a/patches/core/iridium-browser/all-add-trk-prefixes-to-possibly-evil-connections.patch b/patches/core/iridium-browser/all-add-trk-prefixes-to-possibly-evil-connections.patch index 411f8a22..078cb663 100644 --- a/patches/core/iridium-browser/all-add-trk-prefixes-to-possibly-evil-connections.patch +++ b/patches/core/iridium-browser/all-add-trk-prefixes-to-possibly-evil-connections.patch @@ -604,7 +604,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); } diff --git a/patches/core/ungoogled-chromium/block-trk-and-subdomains.patch b/patches/core/ungoogled-chromium/block-trk-and-subdomains.patch index 1d9d3389..297f4624 100644 --- a/patches/core/ungoogled-chromium/block-trk-and-subdomains.patch +++ b/patches/core/ungoogled-chromium/block-trk-and-subdomains.patch @@ -247,7 +247,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[]; diff --git a/patches/core/ungoogled-chromium/disable-fonts-googleapis-references.patch b/patches/core/ungoogled-chromium/disable-fonts-googleapis-references.patch index 4a3ea081..2a6c69c0 100644 --- a/patches/core/ungoogled-chromium/disable-fonts-googleapis-references.patch +++ b/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 --> diff --git a/patches/core/ungoogled-chromium/fix-building-without-safebrowsing.patch b/patches/core/ungoogled-chromium/fix-building-without-safebrowsing.patch index 2e90815c..0b256dc7 100644 --- a/patches/core/ungoogled-chromium/fix-building-without-safebrowsing.patch +++ b/patches/core/ungoogled-chromium/fix-building-without-safebrowsing.patch @@ -592,7 +592,7 @@ base::WeakPtrFactory weak_factory_{this}; --- a/content/public/browser/native_file_system_permission_context.h +++ b/content/public/browser/native_file_system_permission_context.h -@@ -95,13 +95,6 @@ class NativeFileSystemPermissionContext +@@ -95,13 +95,6 @@ class NativeFileSystemPermissionContext base::OnceCallback callback) = 0; enum class AfterWriteCheckResult { kAllow, kBlock }; diff --git a/patches/core/ungoogled-chromium/remove-unused-preferences-fields.patch b/patches/core/ungoogled-chromium/remove-unused-preferences-fields.patch index 5b355b46..8d5ac30c 100644 --- a/patches/core/ungoogled-chromium/remove-unused-preferences-fields.patch +++ b/patches/core/ungoogled-chromium/remove-unused-preferences-fields.patch @@ -1751,15 +1751,15 @@ #include "google_apis/google_api_keys.h" #if defined(OS_CHROMEOS) -@@ -86,7 +85,6 @@ AccountConsistencyModeManager::AccountCo - bool signin_allowed = - prefs->GetBoolean(prefs::kSigninAllowedOnNextStartup) && - !base::CommandLine::ForCurrentProcess()->HasSwitch("disallow-signin"); +@@ -100,7 +99,6 @@ AccountConsistencyModeManager::AccountCo + // pref. + bool signin_allowed = prefs->GetBoolean(prefs::kSigninAllowedOnNextStartup) && + IsBrowserSigninAllowedByCommandLine(); - prefs->SetBoolean(prefs::kSigninAllowed, signin_allowed); UMA_HISTOGRAM_BOOLEAN("Signin.SigninAllowed", signin_allowed); #endif -@@ -221,7 +219,7 @@ AccountConsistencyModeManager::ComputeAc +@@ -235,7 +233,7 @@ AccountConsistencyModeManager::ComputeAc return AccountConsistencyMethod::kDisabled; } diff --git a/patches/extra/bromite/flag-fingerprinting-canvas-image-data-noise.patch b/patches/extra/bromite/flag-fingerprinting-canvas-image-data-noise.patch index fd1bac26..7d79ec38 100644 --- a/patches/extra/bromite/flag-fingerprinting-canvas-image-data-noise.patch +++ b/patches/extra/bromite/flag-fingerprinting-canvas-image-data-noise.patch @@ -304,7 +304,7 @@ approach to change color components. return sync_token; --- a/third_party/blink/renderer/platform/graphics/static_bitmap_image.h +++ b/third_party/blink/renderer/platform/graphics/static_bitmap_image.h -@@ -30,6 +30,8 @@ class PLATFORM_EXPORT StaticBitmapImage +@@ -30,6 +30,8 @@ class PLATFORM_EXPORT StaticBitmapImage static scoped_refptr Create(sk_sp data, const SkImageInfo&); diff --git a/patches/extra/inox-patchset/0006-modify-default-prefs.patch b/patches/extra/inox-patchset/0006-modify-default-prefs.patch index a7d6760d..06455e69 100644 --- a/patches/extra/inox-patchset/0006-modify-default-prefs.patch +++ b/patches/extra/inox-patchset/0006-modify-default-prefs.patch @@ -67,7 +67,7 @@ --- a/chrome/browser/signin/account_consistency_mode_manager.cc +++ b/chrome/browser/signin/account_consistency_mode_manager.cc -@@ -118,7 +118,7 @@ void AccountConsistencyModeManager::Regi +@@ -132,7 +132,7 @@ void AccountConsistencyModeManager::Regi registry->RegisterBooleanPref(prefs::kAccountConsistencyMirrorRequired, false); #endif diff --git a/patches/extra/inox-patchset/0008-restore-classic-ntp.patch b/patches/extra/inox-patchset/0008-restore-classic-ntp.patch index c5cfdfb3..c590c386 100644 --- a/patches/extra/inox-patchset/0008-restore-classic-ntp.patch +++ b/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{ diff --git a/patches/extra/inox-patchset/0019-disable-battery-status-service.patch b/patches/extra/inox-patchset/0019-disable-battery-status-service.patch index 15159110..89891fae 100644 --- a/patches/extra/inox-patchset/0019-disable-battery-status-service.patch +++ b/patches/extra/inox-patchset/0019-disable-battery-status-service.patch @@ -11,7 +11,7 @@ } BatteryStatusService::~BatteryStatusService() { -@@ -67,58 +64,16 @@ BatteryStatusService::AddCallback(const +@@ -67,58 +64,16 @@ BatteryStatusService::AddCallback(const DCHECK(main_thread_task_runner_->BelongsToCurrentThread()); DCHECK(!is_shutdown_); diff --git a/patches/extra/ungoogled-chromium/add-flag-to-configure-extension-downloading.patch b/patches/extra/ungoogled-chromium/add-flag-to-configure-extension-downloading.patch index aa97e6b9..d9b6614f 100644 --- a/patches/extra/ungoogled-chromium/add-flag-to-configure-extension-downloading.patch +++ b/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 +@@ -126,6 +127,14 @@ scoped_refptr 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 +@@ -43,6 +43,10 @@ scoped_refptr Profile* profile, const download::DownloadItem& download_item);