From 3f783ccc699da606d58359125f0f8bf55ce2f9d4 Mon Sep 17 00:00:00 2001 From: Albert Tang Date: Fri, 10 Jan 2020 14:04:40 -0600 Subject: [PATCH] Update to Chromium 80.0.3987.42 --- chromium_version.txt | 2 +- .../disable-fetching-field-trials.patch | 6 +- ...01-fix-building-without-safebrowsing.patch | 109 ++- ...03-disable-autofill-download-manager.patch | 11 +- .../0005-disable-default-extensions.patch | 8 +- .../0007-disable-web-resource-service.patch | 2 +- .../0009-disable-google-ipv6-probes.patch | 2 +- .../0014-disable-translation-lang-fetch.patch | 4 +- .../0015-disable-update-pings.patch | 2 +- .../chromium-exclude_unwind_tables.patch | 2 +- ...refixes-to-possibly-evil-connections.patch | 52 +- ..._browsing-disable-incident-reporting.patch | 2 +- .../block-trk-and-subdomains.patch | 47 +- .../disable-fonts-googleapis-references.patch | 8 +- .../ungoogled-chromium/disable-gaia.patch | 31 +- .../core/ungoogled-chromium/disable-gcm.patch | 6 +- .../disable-google-host-detection.patch | 9 +- .../disable-mei-preload.patch | 4 +- .../ungoogled-chromium/disable-signin.patch | 2 +- .../disable-translate.patch | 4 +- .../disable-untraceable-urls.patch | 8 +- .../disable-webstore-urls.patch | 33 +- ...ix-building-without-one-click-signin.patch | 6 +- .../fix-building-without-safebrowsing.patch | 78 +- .../remove-unused-preferences-fields.patch | 768 ++++++++---------- .../use-local-devtools-files.patch | 55 +- ...g-flags-client-rects-and-measuretext.patch | 66 +- ...ngerprinting-canvas-image-data-noise.patch | 36 +- .../flag-max-connections-per-host.patch | 24 +- patches/extra/debian/disable/fuzzers.patch | 2 +- .../debian/disable/google-api-warning.patch | 2 +- .../extra/debian/disable/welcome-page.patch | 2 +- .../0006-modify-default-prefs.patch | 24 +- .../0011-add-duckduckgo-search-engine.patch | 2 +- .../0018-disable-first-run-behaviour.patch | 2 +- ...ble-profile-auto-import-on-first-run.patch | 2 +- .../prefs-only-keep-cookies-until-exit.patch | 4 +- .../updater-disable-auto-update.patch | 2 +- ...dd-flag-for-search-engine-collection.patch | 22 +- ...g-to-configure-extension-downloading.patch | 6 +- ...add-flag-to-force-punycode-hostnames.patch | 16 +- .../add-flag-to-hide-crashed-bubble.patch | 10 +- .../add-flag-to-scroll-tabs.patch | 10 +- .../add-flag-to-show-avatar-button.patch | 8 +- .../add-flag-to-stack-tabs.patch | 4 +- .../add-ipv6-probing-option.patch | 12 +- .../add-suggestions-url-field.patch | 12 +- .../default-to-https-scheme.patch | 4 +- .../disable-formatting-in-omnibox.patch | 2 +- .../disable-intranet-redirect-detector.patch | 2 +- .../disable-webgl-renderer-info.patch | 2 +- .../enable-page-saving-on-more-pages.patch | 6 +- .../enable-paste-and-go-new-tab-button.patch | 2 +- .../ungoogled-chromium/popups-to-tabs.patch | 2 +- ...e-disable-setuid-sandbox-as-bad-flag.patch | 2 +- patches/extra/ungoogled-chromium/searx.patch | 2 +- 56 files changed, 675 insertions(+), 878 deletions(-) diff --git a/chromium_version.txt b/chromium_version.txt index e3ba28f3..dbeac61e 100644 --- a/chromium_version.txt +++ b/chromium_version.txt @@ -1 +1 @@ -79.0.3945.130 +80.0.3987.42 diff --git a/patches/core/bromite/disable-fetching-field-trials.patch b/patches/core/bromite/disable-fetching-field-trials.patch index 656081e2..6e7e9c27 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 -@@ -107,10 +107,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 } /** -@@ -127,10 +124,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 } /** -@@ -147,10 +141,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 d3b7e06a..1d715aec 100644 --- a/patches/core/inox-patchset/0001-fix-building-without-safebrowsing.patch +++ b/patches/core/inox-patchset/0001-fix-building-without-safebrowsing.patch @@ -1,6 +1,6 @@ --- a/chrome/browser/BUILD.gn +++ b/chrome/browser/BUILD.gn -@@ -2985,8 +2985,6 @@ jumbo_static_library("browser") { +@@ -3096,8 +3096,6 @@ jumbo_static_library("browser") { "download/download_commands.h", "download/download_crx_util.cc", "download/download_crx_util.h", @@ -67,7 +67,7 @@ network_time_tracker_.reset(); #if BUILDFLAG(ENABLE_PLUGINS) plugins_resource_service_.reset(); -@@ -950,22 +947,6 @@ StatusTray* BrowserProcessImpl::status_t +@@ -952,22 +949,6 @@ StatusTray* BrowserProcessImpl::status_t return status_tray_.get(); } @@ -90,7 +90,7 @@ subresource_filter::RulesetService* BrowserProcessImpl::subresource_filter_ruleset_service() { DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); -@@ -1221,26 +1202,6 @@ void BrowserProcessImpl::CreateBackgroun +@@ -1223,26 +1204,6 @@ void BrowserProcessImpl::CreateBackgroun #endif } @@ -141,7 +141,7 @@ subresource_filter_ruleset_service_; --- a/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc +++ b/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc -@@ -58,7 +58,6 @@ +@@ -60,7 +60,6 @@ #include "chrome/browser/previews/previews_service.h" #include "chrome/browser/previews/previews_service_factory.h" #include "chrome/browser/profiles/profile.h" @@ -149,8 +149,8 @@ #include "chrome/browser/search_engines/template_url_service_factory.h" #include "chrome/browser/translate/chrome_translate_client.h" #include "chrome/browser/web_data_service_factory.h" -@@ -662,36 +661,6 @@ void ChromeBrowsingDataRemoverDelegate:: - CONTENT_SETTINGS_TYPE_CLIENT_HINTS, base::Time(), base::Time::Max(), +@@ -665,36 +664,6 @@ void ChromeBrowsingDataRemoverDelegate:: + ContentSettingsType::CLIENT_HINTS, base::Time(), base::Time::Max(), website_settings_filter); - // Clear the safebrowsing cookies only if time period is for "all time". It @@ -188,7 +188,7 @@ --- a/chrome/browser/chrome_content_browser_client.cc +++ b/chrome/browser/chrome_content_browser_client.cc -@@ -837,30 +837,6 @@ void SetApplicationLocaleOnIOThread(cons +@@ -834,30 +834,6 @@ void SetApplicationLocaleOnIOThread(cons GetIOThreadApplicationLocale() = locale; } @@ -219,7 +219,7 @@ #if defined(OS_ANDROID) float GetDeviceScaleAdjustment() { static const float kMinFSM = 1.05f; -@@ -1259,7 +1235,6 @@ void ChromeContentBrowserClient::PostAft +@@ -1290,7 +1266,6 @@ void ChromeContentBrowserClient::PostAft InitNetworkContextsParentDirectory(); DCHECK_CURRENTLY_ON(BrowserThread::UI); @@ -227,7 +227,7 @@ } bool ChromeContentBrowserClient::IsBrowserStartupComplete() { -@@ -2062,7 +2037,7 @@ void ChromeContentBrowserClient::AppendE +@@ -2097,7 +2072,7 @@ void ChromeContentBrowserClient::AppendE // Disable client-side phishing detection in the renderer if it is // disabled in the Profile preferences or the browser process. if (!prefs->GetBoolean(prefs::kSafeBrowsingEnabled) || @@ -236,7 +236,7 @@ command_line->AppendSwitch( switches::kDisableClientSidePhishingDetection); } -@@ -3948,7 +3923,7 @@ ChromeContentBrowserClient::CreateThrott +@@ -3959,7 +3934,7 @@ ChromeContentBrowserClient::CreateThrott throttles.push_back(std::make_unique( handle, @@ -245,7 +245,7 @@ base::Bind(&SSLErrorHandler::HandleSSLError), base::Bind(&IsInHostedApp))); -@@ -3970,12 +3945,6 @@ ChromeContentBrowserClient::CreateThrott +@@ -3981,12 +3956,6 @@ ChromeContentBrowserClient::CreateThrott GooglePasswordManagerNavigationThrottle::MaybeCreateThrottleFor(handle)); #endif @@ -283,7 +283,7 @@ } // namespace --- a/chrome/browser/download/chrome_download_manager_delegate.cc +++ b/chrome/browser/download/chrome_download_manager_delegate.cc -@@ -322,13 +322,6 @@ ChromeDownloadManagerDelegate::~ChromeDo +@@ -321,13 +321,6 @@ ChromeDownloadManagerDelegate::~ChromeDo void ChromeDownloadManagerDelegate::SetDownloadManager(DownloadManager* dm) { download_manager_ = dm; @@ -297,7 +297,7 @@ } #if defined(OS_ANDROID) -@@ -638,16 +631,6 @@ void ChromeDownloadManagerDelegate::Choo +@@ -633,16 +626,6 @@ void ChromeDownloadManagerDelegate::Choo void ChromeDownloadManagerDelegate::SanitizeSavePackageResourceName( base::FilePath* filename) { @@ -313,7 +313,7 @@ - *filename = filename->AddExtension(default_filename.BaseName().value()); } - void ChromeDownloadManagerDelegate::OpenDownloadUsingPlatformHandler( + void ChromeDownloadManagerDelegate::SanitizeDownloadParameters( --- a/chrome/browser/download/download_item_model.cc +++ b/chrome/browser/download/download_item_model.cc @@ -75,7 +75,7 @@ class DownloadItemModelData : public bas @@ -379,7 +379,7 @@ } } -@@ -385,10 +378,6 @@ bool DownloadPrefs::IsAutoOpenEnabledBas +@@ -387,10 +380,6 @@ bool DownloadPrefs::IsAutoOpenEnabledBas bool DownloadPrefs::EnableAutoOpenBasedOnExtension( const base::FilePath& file_name) { base::FilePath::StringType extension = file_name.Extension(); @@ -574,7 +574,7 @@ referrer_entries))); --- a/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc +++ b/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc -@@ -683,51 +683,9 @@ WebstorePrivateGetReferrerChainFunction: +@@ -721,51 +721,9 @@ WebstorePrivateGetReferrerChainFunction: ExtensionFunction::ResponseAction WebstorePrivateGetReferrerChainFunction::Run() { @@ -626,7 +626,7 @@ + ""))); } - } // namespace extensions + WebstorePrivateGetExtensionStatusFunction:: --- a/chrome/browser/extensions/blacklist_state_fetcher.cc +++ b/chrome/browser/extensions/blacklist_state_fetcher.cc @@ -32,28 +32,8 @@ BlacklistStateFetcher::~BlacklistStateFe @@ -704,7 +704,7 @@ // SimpleURLLoader -> (owned loader, extension id). --- a/chrome/browser/metrics/chrome_metrics_service_client.cc +++ b/chrome/browser/metrics/chrome_metrics_service_client.cc -@@ -759,9 +759,6 @@ void ChromeMetricsServiceClient::Registe +@@ -767,9 +767,6 @@ void ChromeMetricsServiceClient::Registe metrics_service_->RegisterMetricsProvider( std::make_unique()); @@ -728,14 +728,14 @@ // static --- a/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc +++ b/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc -@@ -252,7 +252,6 @@ void ChromeBrowserMainExtraPartsProfiles +@@ -224,7 +224,6 @@ void ChromeBrowserMainExtraPartsProfiles #if BUILDFLAG(ENABLE_CAPTIVE_PORTAL_DETECTION) CaptivePortalServiceFactory::GetInstance(); #endif - CertificateReportingServiceFactory::GetInstance(); ChromeBrowsingDataRemoverDelegateFactory::GetInstance(); - #if defined(OS_CHROMEOS) - chromeos::android_sms::AndroidSmsServiceFactory::GetInstance(); + ChromeSigninClientFactory::GetInstance(); + ClientHintsFactory::GetInstance(); --- a/chrome/browser/profiles/profile_impl.cc +++ b/chrome/browser/profiles/profile_impl.cc @@ -91,7 +91,6 @@ @@ -746,7 +746,7 @@ #include "chrome/browser/sharing/sharing_service_factory.h" #include "chrome/browser/signin/identity_manager_factory.h" #include "chrome/browser/signin/signin_ui_util.h" -@@ -602,17 +601,6 @@ void ProfileImpl::LoadPrefsForNormalStar +@@ -579,17 +578,6 @@ void ProfileImpl::LoadPrefsForNormalStar mojo::PendingRemote pref_validation_delegate; @@ -784,8 +784,8 @@ jumbo_static_library("safe_browsing") { + if (false) { sources = [ - "safe_browsing_controller_client.cc", - "safe_browsing_controller_client.h", + "chrome_controller_client.cc", + "chrome_controller_client.h", @@ -62,6 +63,7 @@ jumbo_static_library("safe_browsing") { ] deps += [ "//extensions/browser" ] @@ -796,7 +796,7 @@ # "Safe Browsing Basic" files used for safe browsing in full mode --- a/chrome/browser/ssl/captive_portal_blocking_page.cc +++ b/chrome/browser/ssl/captive_portal_blocking_page.cc -@@ -211,10 +211,7 @@ void CaptivePortalBlockingPage::Populate +@@ -222,10 +222,7 @@ void CaptivePortalBlockingPage::Populate load_time_data->SetString("recurrentErrorParagraph", ""); load_time_data->SetBoolean("show_recurrent_error_paragraph", false); @@ -808,7 +808,7 @@ } void CaptivePortalBlockingPage::CommandReceived(const std::string& command) { -@@ -229,8 +226,6 @@ void CaptivePortalBlockingPage::CommandR +@@ -240,8 +237,6 @@ void CaptivePortalBlockingPage::CommandR security_interstitials::SecurityInterstitialCommand cmd = static_cast( command_num); @@ -817,20 +817,9 @@ switch (cmd) { case security_interstitials::CMD_OPEN_LOGIN: captive_portal::CaptivePortalMetrics::LogCaptivePortalBlockingPageEvent( ---- a/chrome/browser/ssl/cert_report_helper.cc -+++ b/chrome/browser/ssl/cert_report_helper.cc -@@ -181,8 +181,6 @@ void CertReportHelper::FinishCertCollect - LOG(ERROR) << "Failed to serialize certificate report."; - return; - } -- -- ssl_cert_reporter_->ReportInvalidCertificateChain(serialized_report); - } - - bool CertReportHelper::ShouldShowCertificateReporterCheckbox() { --- a/chrome/browser/ssl/security_state_tab_helper.cc +++ b/chrome/browser/ssl/security_state_tab_helper.cc -@@ -234,92 +234,6 @@ bool SecurityStateTabHelper::UsedPolicyI +@@ -248,92 +248,6 @@ bool SecurityStateTabHelper::UsedPolicyI security_state::MaliciousContentStatus SecurityStateTabHelper::GetMaliciousContentStatus() const { @@ -947,7 +936,7 @@ void ChromeSubresourceFilterClient::OnReloadRequested() { --- a/chrome/browser/ui/BUILD.gn +++ b/chrome/browser/ui/BUILD.gn -@@ -2706,7 +2706,6 @@ jumbo_static_library("ui") { +@@ -2764,7 +2764,6 @@ jumbo_static_library("ui") { "views/device_chooser_content_view.h", "views/devtools_process_observer.cc", "views/devtools_process_observer.h", @@ -957,7 +946,7 @@ "views/download/download_item_view.cc", --- a/chrome/browser/ui/tab_helpers.cc +++ b/chrome/browser/ui/tab_helpers.cc -@@ -248,10 +248,6 @@ void TabHelpers::AttachTabHelpers(WebCon +@@ -256,10 +256,6 @@ void TabHelpers::AttachTabHelpers(WebCon PreviewsUITabHelper::CreateForWebContents(web_contents); RecentlyAudibleHelper::CreateForWebContents(web_contents); ResourceLoadingHintsWebContentsObserver::CreateForWebContents(web_contents); @@ -965,17 +954,17 @@ - web_contents); - safe_browsing::TriggerCreator::MaybeCreateTriggersForWebContents( - profile, web_contents); - safety_tips::ReputationWebContentsObserver::CreateForWebContents( - web_contents); + ReputationWebContentsObserver::CreateForWebContents(web_contents); SearchEngineTabHelper::CreateForWebContents(web_contents); -@@ -304,7 +300,6 @@ void TabHelpers::AttachTabHelpers(WebCon + SecurityStateTabHelper::CreateForWebContents(web_contents); +@@ -310,7 +306,6 @@ void TabHelpers::AttachTabHelpers(WebCon + pdf::PDFWebContentsHelper::CreateForWebContentsWithClient( web_contents, std::make_unique()); - PluginObserver::CreateForWebContents(web_contents); SadTabHelper::CreateForWebContents(web_contents); - safe_browsing::SafeBrowsingTabObserver::CreateForWebContents(web_contents); SearchTabHelper::CreateForWebContents(web_contents); - TabDialogs::CreateForWebContents(web_contents); - if (base::FeatureList::IsEnabled(features::kTabHoverCardImages) || + if (base::FeatureList::IsEnabled(features::kSyncEncryptionKeysWebApi)) { + SyncEncryptionKeysTabHelper::CreateForWebContents(web_contents); --- a/chrome/browser/ui/webui/downloads/downloads_dom_handler.cc +++ b/chrome/browser/ui/webui/downloads/downloads_dom_handler.cc @@ -23,7 +23,6 @@ @@ -996,7 +985,7 @@ } void DownloadsDOMHandler::DiscardDangerous(const std::string& id) { -@@ -312,12 +308,6 @@ void DownloadsDOMHandler::RemoveDownload +@@ -317,12 +313,6 @@ void DownloadsDOMHandler::RemoveDownload IdSet ids; for (auto* download : to_remove) { @@ -1009,7 +998,7 @@ DownloadItemModel item_model(download); if (!item_model.ShouldShowInShelf() || download->GetState() == download::DownloadItem::IN_PROGRESS) { -@@ -374,32 +364,6 @@ void DownloadsDOMHandler::FinalizeRemova +@@ -379,32 +369,6 @@ void DownloadsDOMHandler::FinalizeRemova } } @@ -1073,7 +1062,7 @@ bool IsDeletingHistoryAllowed(); --- a/chrome/browser/ui/webui/interstitials/interstitial_ui.cc +++ b/chrome/browser/ui/webui/interstitials/interstitial_ui.cc -@@ -277,117 +277,6 @@ LookalikeUrlInterstitialPage* CreateLook +@@ -250,117 +250,6 @@ LookalikeUrlInterstitialPage* CreateLook safe_url)); } @@ -1133,7 +1122,7 @@ - // parts which depend on the NavigationEntry are not hit. - return safe_browsing::SafeBrowsingBlockingPage::CreateBlockingPage( - g_browser_process->safe_browsing_service()->ui_manager().get(), -- web_contents, main_frame_url, resource); +- web_contents, main_frame_url, resource, true); -} - -TestSafeBrowsingBlockingPageQuiet* CreateSafeBrowsingQuietBlockingPage( @@ -1191,16 +1180,16 @@ #if BUILDFLAG(ENABLE_CAPTIVE_PORTAL_DETECTION) CaptivePortalBlockingPage* CreateCaptivePortalBlockingPage( content::WebContents* web_contents) { -@@ -493,8 +382,6 @@ void InterstitialHTMLSource::StartDataRe - interstitial_delegate.reset(CreateSSLBlockingPage(web_contents)); - } else if (path_without_query == "/mitm-software-ssl") { - interstitial_delegate.reset(CreateMITMSoftwareBlockingPage(web_contents)); +@@ -473,8 +362,6 @@ void InterstitialHTMLSource::StartDataRe + } else if (path_without_query == "/blocked-interception") { + interstitial_delegate.reset( + CreateBlockedInterceptionBlockingPage(web_contents)); - } else if (path_without_query == "/safebrowsing") { - interstitial_delegate.reset(CreateSafeBrowsingBlockingPage(web_contents)); } else if (path_without_query == "/clock") { interstitial_delegate.reset(CreateBadClockBlockingPage(web_contents)); } else if (path_without_query == "/lookalike") { -@@ -506,13 +393,6 @@ void InterstitialHTMLSource::StartDataRe +@@ -486,13 +373,6 @@ void InterstitialHTMLSource::StartDataRe } else if (path_without_query == "/origin_policy") { interstitial_delegate.reset( CreateOriginPolicyInterstitialPage(web_contents)); @@ -1235,3 +1224,13 @@ const base::Feature kThreatDomDetailsTagAndAttributeFeature{ "ThreatDomDetailsTagAttributes", base::FEATURE_DISABLED_BY_DEFAULT}; +--- a/components/security_interstitials/content/cert_report_helper.cc ++++ b/components/security_interstitials/content/cert_report_helper.cc +@@ -160,7 +160,6 @@ void CertReportHelper::FinishCertCollect + return; + } + +- ssl_cert_reporter_->ReportInvalidCertificateChain(serialized_report); + } + + bool CertReportHelper::ShouldShowCertificateReporterCheckbox() { diff --git a/patches/core/inox-patchset/0003-disable-autofill-download-manager.patch b/patches/core/inox-patchset/0003-disable-autofill-download-manager.patch index d7aab13f..50d45566 100644 --- a/patches/core/inox-patchset/0003-disable-autofill-download-manager.patch +++ b/patches/core/inox-patchset/0003-disable-autofill-download-manager.patch @@ -1,6 +1,6 @@ --- a/components/autofill/core/browser/autofill_download_manager.cc +++ b/components/autofill/core/browser/autofill_download_manager.cc -@@ -829,86 +829,6 @@ AutofillDownloadManager::GetRequestURLAn +@@ -830,95 +830,6 @@ AutofillDownloadManager::GetRequestURLAn } bool AutofillDownloadManager::StartRequest(FormRequestData request_data) { @@ -28,6 +28,15 @@ - resource_request->credentials_mode = network::mojom::CredentialsMode::kOmit; - resource_request->method = method; - +- // On iOS we have a single, shared URLLoaderFactory provided by BrowserState. +- // As it is shared, it is not trusted and we cannot assign trusted_params +- // to the network request. +-#if !defined(OS_IOS) +- resource_request->trusted_params = network::ResourceRequest::TrustedParams(); +- resource_request->trusted_params->network_isolation_key = +- driver_->NetworkIsolationKey(); +-#endif +- - // Add Chrome experiment state to the request headers. - variations::AppendVariationsHeaderUnknownSignedIn( - request_url, diff --git a/patches/core/inox-patchset/0005-disable-default-extensions.patch b/patches/core/inox-patchset/0005-disable-default-extensions.patch index ec6f2575..023601d2 100644 --- a/patches/core/inox-patchset/0005-disable-default-extensions.patch +++ b/patches/core/inox-patchset/0005-disable-default-extensions.patch @@ -10,7 +10,7 @@ #if defined(OS_CHROMEOS) --- a/chrome/browser/extensions/component_loader.cc +++ b/chrome/browser/extensions/component_loader.cc -@@ -342,11 +342,6 @@ void ComponentLoader::AddWebStoreApp() { +@@ -338,11 +338,6 @@ void ComponentLoader::AddWebStoreApp() { if (!IsNormalSession()) return; #endif @@ -22,7 +22,7 @@ } #if defined(OS_CHROMEOS) -@@ -444,11 +439,6 @@ void ComponentLoader::AddDefaultComponen +@@ -447,11 +442,6 @@ void ComponentLoader::AddDefaultComponen AddKeyboardApp(); #else // defined(OS_CHROMEOS) DCHECK(!skip_session_components); @@ -34,7 +34,7 @@ #endif // defined(OS_CHROMEOS) if (!skip_session_components) { -@@ -523,13 +513,6 @@ void ComponentLoader::AddDefaultComponen +@@ -526,13 +516,6 @@ void ComponentLoader::AddDefaultComponen AddHangoutServicesExtension(); #endif // BUILDFLAG(ENABLE_HANGOUT_SERVICES_EXTENSION) @@ -83,7 +83,7 @@ } // http://crbug.com/165634 -@@ -723,21 +709,6 @@ void WebstoreInstaller::UpdateDownloadPr +@@ -724,21 +710,6 @@ void WebstoreInstaller::UpdateDownloadPr void WebstoreInstaller::StartCrxInstaller(const DownloadItem& download) { DCHECK_CURRENTLY_ON(BrowserThread::UI); DCHECK(!crx_installer_.get()); diff --git a/patches/core/inox-patchset/0007-disable-web-resource-service.patch b/patches/core/inox-patchset/0007-disable-web-resource-service.patch index 84da48a2..a52d1f8c 100644 --- a/patches/core/inox-patchset/0007-disable-web-resource-service.patch +++ b/patches/core/inox-patchset/0007-disable-web-resource-service.patch @@ -1,6 +1,6 @@ --- a/components/web_resource/web_resource_service.cc +++ b/components/web_resource/web_resource_service.cc -@@ -124,44 +124,7 @@ bool WebResourceService::GetFetchSchedul +@@ -120,44 +120,7 @@ bool WebResourceService::GetFetchSchedul // Initializes the fetching of data from the resource server. Data // load calls OnSimpleLoaderComplete. void WebResourceService::StartFetch() { diff --git a/patches/core/inox-patchset/0009-disable-google-ipv6-probes.patch b/patches/core/inox-patchset/0009-disable-google-ipv6-probes.patch index 8c73548b..1345e03b 100644 --- a/patches/core/inox-patchset/0009-disable-google-ipv6-probes.patch +++ b/patches/core/inox-patchset/0009-disable-google-ipv6-probes.patch @@ -1,6 +1,6 @@ --- a/net/dns/host_resolver_manager.cc +++ b/net/dns/host_resolver_manager.cc -@@ -123,10 +123,10 @@ const unsigned kMinimumTTLSeconds = kCac +@@ -128,10 +128,10 @@ const unsigned kMinimumTTLSeconds = kCac // cached. const int kIPv6ProbePeriodMs = 1000; diff --git a/patches/core/inox-patchset/0014-disable-translation-lang-fetch.patch b/patches/core/inox-patchset/0014-disable-translation-lang-fetch.patch index 46044851..f821cf44 100644 --- a/patches/core/inox-patchset/0014-disable-translation-lang-fetch.patch +++ b/patches/core/inox-patchset/0014-disable-translation-lang-fetch.patch @@ -1,6 +1,6 @@ --- a/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc +++ b/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc -@@ -170,7 +170,6 @@ void SpellcheckHunspellDictionary::Retry +@@ -162,7 +162,6 @@ void SpellcheckHunspellDictionary::Retry return; } browser_context_ = browser_context; @@ -8,7 +8,7 @@ } bool SpellcheckHunspellDictionary::IsReady() const { -@@ -408,9 +407,6 @@ void SpellcheckHunspellDictionary::Initi +@@ -400,9 +399,6 @@ void SpellcheckHunspellDictionary::Initi } if (browser_context_) { diff --git a/patches/core/inox-patchset/0015-disable-update-pings.patch b/patches/core/inox-patchset/0015-disable-update-pings.patch index b2f83e5c..bc671270 100644 --- a/patches/core/inox-patchset/0015-disable-update-pings.patch +++ b/patches/core/inox-patchset/0015-disable-update-pings.patch @@ -1,6 +1,6 @@ --- a/chrome/updater/configurator.cc +++ b/chrome/updater/configurator.cc -@@ -56,7 +56,7 @@ int Configurator::UpdateDelay() const { +@@ -60,7 +60,7 @@ int Configurator::UpdateDelay() const { } std::vector Configurator::UpdateUrl() const { diff --git a/patches/core/inox-patchset/chromium-exclude_unwind_tables.patch b/patches/core/inox-patchset/chromium-exclude_unwind_tables.patch index cdf75087..1b91f32d 100644 --- a/patches/core/inox-patchset/chromium-exclude_unwind_tables.patch +++ b/patches/core/inox-patchset/chromium-exclude_unwind_tables.patch @@ -1,6 +1,6 @@ --- a/build/config/compiler/compiler.gni +++ b/build/config/compiler/compiler.gni -@@ -87,19 +87,19 @@ declare_args() { +@@ -82,19 +82,19 @@ declare_args() { # is_component_build=false. Very large debug symbols can have unwanted side # effects so this is enforced by default for chromium. forbid_non_component_debug_builds = build_with_chromium 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 81604c84..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 @@ -84,7 +84,7 @@ by default. for tag_suffix in _TagSuffixes(): --- a/chrome/browser/chromeos/customization/customization_document.cc +++ b/chrome/browser/chromeos/customization/customization_document.cc -@@ -175,7 +175,7 @@ std::string ReadFileInBackground(const b +@@ -172,7 +172,7 @@ std::string ReadFileInBackground(const b // Template URL where to fetch OEM services customization manifest from. const char ServicesCustomizationDocument::kManifestUrl[] = @@ -95,9 +95,9 @@ by default. // creates and uses to publish OEM default apps to the extensions system. --- a/chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc +++ b/chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc -@@ -1053,7 +1053,7 @@ void FileManagerPrivateInternalGetDownlo +@@ -1042,7 +1042,7 @@ void FileManagerPrivateInternalGetDownlo IdentityManagerFactory::GetForProfile(chrome_details.GetProfile()); - const std::string& account_id = identity_manager->GetPrimaryAccountId(); + const CoreAccountId& account_id = identity_manager->GetPrimaryAccountId(); std::vector scopes; - scopes.emplace_back("https://www.googleapis.com/auth/drive.readonly"); + scopes.emplace_back("trk:208:https://www.googleapis.com/auth/drive.readonly"); @@ -106,7 +106,7 @@ by default. content::BrowserContext::GetDefaultStoragePartition( --- a/chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc +++ b/chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc -@@ -84,7 +84,7 @@ namespace { +@@ -82,7 +82,7 @@ namespace { using api::file_manager_private::ProfileInfo; @@ -188,9 +188,9 @@ by default. } ProfileAvatarDownloader::ProfileAvatarDownloader( ---- a/chrome/browser/resources/chromeos/chromevox/chromevox/background/prefs.js -+++ b/chrome/browser/resources/chromeos/chromevox/chromevox/background/prefs.js -@@ -87,9 +87,9 @@ cvox.ChromeVoxPrefs.DEFAULT_PREFS = { +--- a/chrome/browser/resources/chromeos/accessibility/chromevox/background/prefs.js ++++ b/chrome/browser/resources/chromeos/accessibility/chromevox/background/prefs.js +@@ -86,9 +86,9 @@ ChromeVoxPrefs.DEFAULT_PREFS = { 'position': '{}', 'siteSpecificEnhancements': true, 'siteSpecificScriptBase': @@ -250,7 +250,7 @@ by default. DownloadFeedbackFactory* DownloadFeedback::factory_ = nullptr; --- a/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc +++ b/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc -@@ -263,7 +263,7 @@ GURL SpellcheckHunspellDictionary::GetDi +@@ -255,7 +255,7 @@ GURL SpellcheckHunspellDictionary::GetDi DCHECK(!bdict_file.empty()); static const char kDownloadServerUrl[] = @@ -294,7 +294,7 @@ by default. // The maximum number of ignored bubble we track in the NumLaterPerReinstall --- a/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc +++ b/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc -@@ -73,17 +73,17 @@ namespace { +@@ -78,17 +78,17 @@ namespace { // The URL for the the Learn More page shown on incognito new tab. const char kLearnMoreIncognitoUrl[] = #if defined(OS_CHROMEOS) @@ -332,7 +332,7 @@ by default. --- a/chrome/common/url_constants.cc +++ b/chrome/common/url_constants.cc -@@ -246,7 +246,7 @@ const char kSyncErrorsHelpURL[] = +@@ -249,7 +249,7 @@ const char kSyncErrorsHelpURL[] = "https://support.google.com/chrome/?p=settings_sync_error"; const char kSyncGoogleDashboardURL[] = @@ -341,7 +341,7 @@ by default. const char kSyncLearnMoreURL[] = "https://support.google.com/chrome/?p=settings_sign_in"; -@@ -350,7 +350,7 @@ const char kNaturalScrollHelpURL[] = +@@ -353,7 +353,7 @@ const char kNaturalScrollHelpURL[] = const char kOemEulaURLPath[] = "oem"; const char kOnlineEulaURLPath[] = @@ -523,7 +523,7 @@ by default. --- a/components/password_manager/core/browser/password_store.cc +++ b/components/password_manager/core/browser/password_store.cc -@@ -230,10 +230,10 @@ void PasswordStore::GetLogins(const Form +@@ -239,10 +239,10 @@ void PasswordStore::GetLogins(const Form // TODO(mdm): actually delete them at some point, say M24 or so. base::Time cutoff; // the null time if (form.scheme == PasswordForm::Scheme::kHtml && @@ -551,7 +551,7 @@ by default. --- a/components/policy/resources/policy_templates.json +++ b/components/policy/resources/policy_templates.json -@@ -3797,7 +3797,7 @@ +@@ -3910,7 +3910,7 @@ 'dynamic_refresh': True, 'per_profile': True, }, @@ -560,7 +560,7 @@ by default. 'id': 34, 'caption': '''Configure the list of force-installed apps and extensions''', 'tags': ['full-admin-access'], -@@ -8031,7 +8031,7 @@ +@@ -8174,7 +8174,7 @@ 'features': { 'dynamic_refresh': True, }, @@ -658,7 +658,7 @@ by default. if (url.is_valid() && url.has_scheme()) --- a/extensions/browser/updater/safe_manifest_parser.cc +++ b/extensions/browser/updater/safe_manifest_parser.cc -@@ -27,7 +27,7 @@ namespace { +@@ -28,7 +28,7 @@ namespace { constexpr char kExpectedGupdateProtocol[] = "2.0"; constexpr char kExpectedGupdateXmlns[] = @@ -784,28 +784,6 @@ by default. const char kWebrtcTransportNamespace[] = "google:remoting:webrtc"; ---- a/remoting/webapp/base/js/xmpp_login_handler.js -+++ b/remoting/webapp/base/js/xmpp_login_handler.js -@@ -295,7 +295,7 @@ remoting.XmppLoginHandler.prototype.star - 'auth:allow-generated-jid="true" ' + - 'auth:client-uses-full-bind-result="true" ' + - 'auth:allow-non-google-login="true" ' + -- 'xmlns:auth="http://www.google.com/talk/protocol/auth">' + -+ 'xmlns:auth="trk:176:http://www.google.com/talk/protocol/auth">' + - cookie + - ''); - }; ---- a/remoting/webapp/crd/manifest.json.jinja2 -+++ b/remoting/webapp/crd/manifest.json.jinja2 -@@ -24,7 +24,7 @@ - "client_id": "{{ REMOTING_IDENTITY_API_CLIENT_ID }}", - "scopes": [ - {% if USE_GCD %} -- "https://www.googleapis.com/auth/clouddevices", -+ "trk:198:https://www.googleapis.com/auth/clouddevices", - {% endif %} - "https://www.googleapis.com/auth/chromoting", - "https://www.googleapis.com/auth/googletalk", --- a/ui/views/examples/webview_example.cc +++ b/ui/views/examples/webview_example.cc @@ -25,7 +25,7 @@ void WebViewExample::CreateExampleView(V diff --git a/patches/core/iridium-browser/safe_browsing-disable-incident-reporting.patch b/patches/core/iridium-browser/safe_browsing-disable-incident-reporting.patch index 9aeb839f..308e3cee 100644 --- a/patches/core/iridium-browser/safe_browsing-disable-incident-reporting.patch +++ b/patches/core/iridium-browser/safe_browsing-disable-incident-reporting.patch @@ -54,7 +54,7 @@ the URL so we get notified if this happens again in the future). --- a/chrome/browser/safe_browsing/safe_browsing_service.cc +++ b/chrome/browser/safe_browsing/safe_browsing_service.cc -@@ -232,7 +232,7 @@ SafeBrowsingUIManager* SafeBrowsingServi +@@ -229,7 +229,7 @@ SafeBrowsingUIManager* SafeBrowsingServi } void SafeBrowsingService::RegisterAllDelayedAnalysis() { diff --git a/patches/core/ungoogled-chromium/block-trk-and-subdomains.patch b/patches/core/ungoogled-chromium/block-trk-and-subdomains.patch index 6902a66d..b82f6b51 100644 --- a/patches/core/ungoogled-chromium/block-trk-and-subdomains.patch +++ b/patches/core/ungoogled-chromium/block-trk-and-subdomains.patch @@ -35,15 +35,15 @@ GURL rewritten_tab_url = tab_url; --- a/chromecast/browser/url_request_context_factory.cc +++ b/chromecast/browser/url_request_context_factory.cc -@@ -39,6 +39,7 @@ - #include "net/http/http_stream_factory.h" +@@ -40,6 +40,7 @@ #include "net/proxy_resolution/proxy_resolution_service.h" + #include "net/quic/quic_context.h" #include "net/ssl/ssl_config_service_defaults.h" +#include "net/url_request/trk_protocol_handler.h" #include "net/url_request/url_request_context.h" #include "net/url_request/url_request_context_builder.h" #include "net/url_request/url_request_context_getter.h" -@@ -245,13 +246,17 @@ void URLRequestContextFactory::Initializ +@@ -248,13 +249,17 @@ void URLRequestContextFactory::Initializ new net::URLRequestJobFactoryImpl()); // Keep ProtocolHandlers added in sync with // CastContentBrowserClient::IsHandledURL(). @@ -100,8 +100,8 @@ return GURL(parts.scheme.is_valid() ? text : FixupPath(text)); --- a/content/browser/child_process_security_policy_impl.cc +++ b/content/browser/child_process_security_policy_impl.cc -@@ -513,6 +513,7 @@ ChildProcessSecurityPolicyImpl::ChildPro - RegisterWebSafeScheme(url::kHttpsScheme); +@@ -531,6 +531,7 @@ ChildProcessSecurityPolicyImpl::ChildPro + #endif // BUILDFLAG(ENABLE_WEBSOCKETS) RegisterWebSafeScheme(url::kFtpScheme); RegisterWebSafeScheme(url::kDataScheme); + RegisterWebSafeScheme(url::kTraceScheme); @@ -110,7 +110,7 @@ // TODO(nick): https://crbug.com/651534 blob: and filesystem: schemes embed --- a/net/BUILD.gn +++ b/net/BUILD.gn -@@ -1801,6 +1801,8 @@ component("net") { +@@ -1662,6 +1662,8 @@ component("net") { "url_request/report_sender.h", "url_request/static_http_user_agent_settings.cc", "url_request/static_http_user_agent_settings.h", @@ -202,7 +202,7 @@ using base::Time; using std::string; -@@ -592,6 +594,12 @@ URLRequest::URLRequest(const GURL& url, +@@ -579,6 +581,12 @@ URLRequest::URLRequest(const GURL& url, // Sanity check out environment. DCHECK(base::ThreadTaskRunnerHandle::IsSet()); @@ -218,16 +218,16 @@ --- a/net/url_request/url_request_context_builder.cc +++ b/net/url_request/url_request_context_builder.cc @@ -40,6 +40,7 @@ + #include "net/quic/quic_stream_factory.h" #include "net/ssl/ssl_config_service_defaults.h" - #include "net/url_request/data_protocol_handler.h" #include "net/url_request/static_http_user_agent_settings.h" +#include "net/url_request/trk_protocol_handler.h" #include "net/url_request/url_request_context.h" #include "net/url_request/url_request_context_storage.h" #include "net/url_request/url_request_intercepting_job_factory.h" -@@ -621,6 +622,9 @@ std::unique_ptr URLRe - job_factory->SetProtocolHandler(url::kDataScheme, - std::make_unique()); +@@ -629,6 +630,9 @@ std::unique_ptr URLRe + } + protocol_handlers_.clear(); + job_factory->SetProtocolHandler(url::kTraceScheme, + std::make_unique()); @@ -237,9 +237,9 @@ storage->set_ftp_auth_cache(std::make_unique()); --- a/url/url_constants.cc +++ b/url/url_constants.cc -@@ -26,6 +26,7 @@ const char kHttpsScheme[] = "https"; - const char kJavaScriptScheme[] = "javascript"; - const char kMailToScheme[] = "mailto"; +@@ -28,6 +28,7 @@ const char kMailToScheme[] = "mailto"; + // See also: https://www.iana.org/assignments/uri-schemes/prov/quic-transport + const char kQuicTransportScheme[] = "quic-transport"; const char kTelScheme[] = "tel"; +const char kTraceScheme[] = "trk"; const char kWsScheme[] = "ws"; @@ -247,9 +247,9 @@ --- a/url/url_constants.h +++ b/url/url_constants.h -@@ -32,6 +32,7 @@ COMPONENT_EXPORT(URL) extern const char - COMPONENT_EXPORT(URL) extern const char kJavaScriptScheme[]; +@@ -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[]; +COMPONENT_EXPORT(URL) extern const char kTraceScheme[]; COMPONENT_EXPORT(URL) extern const char kWsScheme[]; @@ -257,15 +257,16 @@ --- a/url/url_util.cc +++ b/url/url_util.cc -@@ -52,6 +52,7 @@ struct SchemeRegistry { - kHttpsScheme, - kAboutScheme, - kDataScheme, -+ kTraceScheme, - kWssScheme, +@@ -49,7 +49,7 @@ struct SchemeRegistry { + + // Schemes that do not trigger mixed content warning. + std::vector secure_schemes = { +- kHttpsScheme, kAboutScheme, kDataScheme, kQuicTransportScheme, kWssScheme, ++ kHttpsScheme, kAboutScheme, kDataScheme, kTraceScheme, kQuicTransportScheme, kWssScheme, }; -@@ -67,6 +68,7 @@ struct SchemeRegistry { + // Schemes that normal pages cannot link to or access (i.e., with the same +@@ -64,6 +64,7 @@ struct SchemeRegistry { kAboutScheme, kJavaScriptScheme, kDataScheme, diff --git a/patches/core/ungoogled-chromium/disable-fonts-googleapis-references.patch b/patches/core/ungoogled-chromium/disable-fonts-googleapis-references.patch index cbf3e892..2a6c69c0 100644 --- a/patches/core/ungoogled-chromium/disable-fonts-googleapis-references.patch +++ b/patches/core/ungoogled-chromium/disable-fonts-googleapis-references.patch @@ -2,7 +2,7 @@ --- a/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc +++ b/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc -@@ -317,7 +317,7 @@ bool DomDistillerViewerSource::ShouldSer +@@ -295,7 +295,7 @@ bool DomDistillerViewerSource::ShouldSer } std::string DomDistillerViewerSource::GetContentSecurityPolicyStyleSrc() { @@ -24,10 +24,10 @@ .english :lang(zh) {display: none} --- a/components/dom_distiller/core/javascript/dom_distiller_viewer.js +++ b/components/dom_distiller/core/javascript/dom_distiller_viewer.js -@@ -130,7 +130,7 @@ function maybeSetWebFont() { - return; +@@ -132,7 +132,7 @@ function maybeSetWebFont() { + } - var e = document.createElement('link'); + const e = document.createElement('link'); - e.href = 'https://fonts.googleapis.com/css?family=Roboto'; + e.href = 'chrome://resources/css/roboto.css'; e.rel = 'stylesheet'; diff --git a/patches/core/ungoogled-chromium/disable-gaia.patch b/patches/core/ungoogled-chromium/disable-gaia.patch index 441d6d67..cdf7894a 100644 --- a/patches/core/ungoogled-chromium/disable-gaia.patch +++ b/patches/core/ungoogled-chromium/disable-gaia.patch @@ -3,14 +3,14 @@ --- a/chrome/browser/browser_resources.grd +++ b/chrome/browser/browser_resources.grd -@@ -270,7 +270,6 @@ - - - -- - - - +@@ -173,7 +173,6 @@ + + + +- + + + --- a/chrome/browser/ui/webui/signin/inline_login_ui.cc +++ b/chrome/browser/ui/webui/signin/inline_login_ui.cc @@ -52,7 +52,6 @@ content::WebUIDataSource* CreateWebUIDat @@ -23,8 +23,8 @@ source->AddLocalizedString( --- a/google_apis/gaia/gaia_auth_fetcher.cc +++ b/google_apis/gaia/gaia_auth_fetcher.cc -@@ -259,63 +259,6 @@ void GaiaAuthFetcher::CreateAndStartGaia - int load_flags, +@@ -296,64 +296,6 @@ void GaiaAuthFetcher::CreateAndStartGaia + network::mojom::CredentialsMode credentials_mode, const net::NetworkTrafficAnnotationTag& traffic_annotation) { DCHECK(!fetch_pending_) << "Tried to fetch two things at once!"; - @@ -32,7 +32,7 @@ - resource_request->url = gaia_gurl; - original_url_ = gaia_gurl; - -- if (!(load_flags & net::LOAD_DO_NOT_SEND_COOKIES)) { +- if (credentials_mode != network::mojom::CredentialsMode::kOmit) { - DCHECK_EQ(GaiaUrls::GetInstance()->gaia_url(), gaia_gurl.GetOrigin()) - << gaia_gurl; - resource_request->site_for_cookies = GaiaUrls::GetInstance()->gaia_url(); @@ -55,13 +55,14 @@ - // maintain a separation between the user's browsing and Chrome's internal - // services. Where such mixing is desired (MergeSession or OAuthLogin), it - // will be done explicitly. -- resource_request->load_flags = load_flags; +- resource_request->credentials_mode = credentials_mode; - - url_loader_ = network::SimpleURLLoader::Create(std::move(resource_request), - traffic_annotation); -- if (!body.empty()) -- url_loader_->AttachStringForUpload(body, -- "application/x-www-form-urlencoded"); +- if (!body.empty()) { +- DCHECK(!body_content_type.empty()); +- url_loader_->AttachStringForUpload(body, body_content_type); +- } - - url_loader_->SetAllowHttpErrorResults(true); - diff --git a/patches/core/ungoogled-chromium/disable-gcm.patch b/patches/core/ungoogled-chromium/disable-gcm.patch index c4043052..32f0f67c 100644 --- a/patches/core/ungoogled-chromium/disable-gcm.patch +++ b/patches/core/ungoogled-chromium/disable-gcm.patch @@ -2,7 +2,7 @@ --- a/components/gcm_driver/gcm_client_impl.cc +++ b/components/gcm_driver/gcm_client_impl.cc -@@ -466,6 +466,7 @@ void GCMClientImpl::StartGCM() { +@@ -467,6 +467,7 @@ void GCMClientImpl::StartGCM() { void GCMClientImpl::InitializeMCSClient() { DCHECK(network_connection_tracker_); @@ -10,7 +10,7 @@ std::vector endpoints; endpoints.push_back(gservices_settings_.GetMCSMainEndpoint()); GURL fallback_endpoint = gservices_settings_.GetMCSFallbackEndpoint(); -@@ -666,27 +667,6 @@ void GCMClientImpl::RemoveHeartbeatInter +@@ -670,27 +671,6 @@ void GCMClientImpl::RemoveHeartbeatInter void GCMClientImpl::StartCheckin() { DCHECK(io_task_runner_->RunsTasksInCurrentSequence()); @@ -38,7 +38,7 @@ } void GCMClientImpl::OnCheckinCompleted( -@@ -745,24 +725,6 @@ void GCMClientImpl::SetGServicesSettings +@@ -749,24 +729,6 @@ void GCMClientImpl::SetGServicesSettings void GCMClientImpl::SchedulePeriodicCheckin() { DCHECK(io_task_runner_->RunsTasksInCurrentSequence()); diff --git a/patches/core/ungoogled-chromium/disable-google-host-detection.patch b/patches/core/ungoogled-chromium/disable-google-host-detection.patch index e0e8c14b..aef71a4c 100644 --- a/patches/core/ungoogled-chromium/disable-google-host-detection.patch +++ b/patches/core/ungoogled-chromium/disable-google-host-detection.patch @@ -50,12 +50,11 @@ } void GoogleURLLoaderThrottle::WillRedirectRequest( -@@ -64,33 +30,6 @@ void GoogleURLLoaderThrottle::WillRedire +@@ -64,32 +30,6 @@ void GoogleURLLoaderThrottle::WillRedire bool* /* defer */, std::vector* to_be_removed_headers, net::HttpRequestHeaders* modified_headers) { -- network::mojom::URLResponseHeadPtr response_head_ptr = response_head; -- variations::RemoveVariationsHeaderIfNeeded(*redirect_info, *response_head_ptr, +- variations::RemoveVariationsHeaderIfNeeded(*redirect_info, response_head, - to_be_removed_headers); - - // URLLoaderThrottles can only change the redirect URL when the network @@ -84,9 +83,9 @@ } #if BUILDFLAG(ENABLE_EXTENSIONS) -@@ -98,17 +37,5 @@ void GoogleURLLoaderThrottle::WillProces +@@ -97,17 +37,5 @@ void GoogleURLLoaderThrottle::WillProces const GURL& response_url, - network::ResourceResponseHead* response_head, + network::mojom::URLResponseHead* response_head, bool* defer) { - // Built-in additional protection for the chrome web store origin. - GURL webstore_url(extension_urls::GetWebstoreLaunchURL()); diff --git a/patches/core/ungoogled-chromium/disable-mei-preload.patch b/patches/core/ungoogled-chromium/disable-mei-preload.patch index 8f19d44b..a9a68500 100644 --- a/patches/core/ungoogled-chromium/disable-mei-preload.patch +++ b/patches/core/ungoogled-chromium/disable-mei-preload.patch @@ -7,7 +7,7 @@ --- a/chrome/BUILD.gn +++ b/chrome/BUILD.gn -@@ -337,7 +337,6 @@ if (!is_android && !is_mac) { +@@ -358,7 +358,6 @@ if (!is_android && !is_mac) { } data_deps += [ @@ -15,7 +15,7 @@ "//third_party/widevine/cdm", ] -@@ -1206,7 +1205,6 @@ if (is_win) { +@@ -1214,7 +1213,6 @@ if (is_win) { ":packed_resources", ":swiftshader_library", ":widevine_cdm_library", diff --git a/patches/core/ungoogled-chromium/disable-signin.patch b/patches/core/ungoogled-chromium/disable-signin.patch index 907078c4..a4afa032 100644 --- a/patches/core/ungoogled-chromium/disable-signin.patch +++ b/patches/core/ungoogled-chromium/disable-signin.patch @@ -2,7 +2,7 @@ --- a/chrome/browser/ui/chrome_pages.cc +++ b/chrome/browser/ui/chrome_pages.cc -@@ -519,23 +519,6 @@ GURL GetOSSettingsUrl(const std::string& +@@ -509,23 +509,6 @@ GURL GetOSSettingsUrl(const std::string& #if !defined(OS_ANDROID) && !defined(OS_CHROMEOS) void ShowBrowserSignin(Browser* browser, signin_metrics::AccessPoint access_point) { diff --git a/patches/core/ungoogled-chromium/disable-translate.patch b/patches/core/ungoogled-chromium/disable-translate.patch index e0accdcc..63643c1b 100644 --- a/patches/core/ungoogled-chromium/disable-translate.patch +++ b/patches/core/ungoogled-chromium/disable-translate.patch @@ -14,7 +14,7 @@ TranslateHelper::~TranslateHelper() { --- a/components/translate/core/browser/translate_manager.cc +++ b/components/translate/core/browser/translate_manager.cc -@@ -679,8 +679,7 @@ void TranslateManager::FilterIsTranslate +@@ -692,8 +692,7 @@ void TranslateManager::FilterIsTranslate TranslateBrowserMetrics::INITIATION_STATUS_NO_NETWORK); } @@ -36,4 +36,4 @@ + &data_, "var securityOrigin = '';"); // Load embedded translate.js. - data_.append(ui::ResourceBundle::GetSharedInstance().DecompressDataResource( + data_.append(ui::ResourceBundle::GetSharedInstance().LoadDataResourceString( diff --git a/patches/core/ungoogled-chromium/disable-untraceable-urls.patch b/patches/core/ungoogled-chromium/disable-untraceable-urls.patch index b46f7080..3c488806 100644 --- a/patches/core/ungoogled-chromium/disable-untraceable-urls.patch +++ b/patches/core/ungoogled-chromium/disable-untraceable-urls.patch @@ -2,7 +2,7 @@ --- a/chrome/browser/plugins/plugins_resource_service.cc +++ b/chrome/browser/plugins/plugins_resource_service.cc -@@ -54,9 +54,6 @@ const int kStartResourceFetchDelayMs = 6 +@@ -53,9 +53,6 @@ const int kStartResourceFetchDelayMs = 6 // Delay between calls to update the cache 1 day and 2 minutes in testing mode. const int kCacheUpdateDelayMs = 24 * 60 * 60 * 1000; @@ -12,7 +12,7 @@ GURL GetPluginsServerURL() { std::string filename; #if defined(OS_WIN) -@@ -71,7 +68,7 @@ GURL GetPluginsServerURL() { +@@ -70,7 +67,7 @@ GURL GetPluginsServerURL() { #error Unknown platform #endif @@ -62,7 +62,7 @@ // Constructs a model loader to fetch a model using |url_loader_factory|. --- a/rlz/lib/financial_ping.cc +++ b/rlz/lib/financial_ping.cc -@@ -338,7 +338,7 @@ FinancialPing::PingResponse FinancialPin +@@ -339,7 +339,7 @@ FinancialPing::PingResponse FinancialPin // Open network connection. InternetHandle connection_handle = InternetConnectA(inet_handle, @@ -71,7 +71,7 @@ INTERNET_FLAG_NO_CACHE_WRITE, 0); if (!connection_handle) return PING_FAILURE; -@@ -382,7 +382,7 @@ FinancialPing::PingResponse FinancialPin +@@ -383,7 +383,7 @@ FinancialPing::PingResponse FinancialPin return PING_SUCCESSFUL; #else std::string url = diff --git a/patches/core/ungoogled-chromium/disable-webstore-urls.patch b/patches/core/ungoogled-chromium/disable-webstore-urls.patch index 6ca81aab..09e4da48 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 -@@ -599,10 +599,6 @@ std::vector ChromeContentBr +@@ -601,10 +601,6 @@ std::vector ChromeContentBr GetOriginsRequiringDedicatedProcess() { std::vector list; @@ -102,7 +102,7 @@ bool ShouldRetryRequest(const network::SimpleURLLoader* loader) { DCHECK(loader); -@@ -310,12 +301,6 @@ void ExtensionDownloader::DoStartAllPend +@@ -308,12 +299,6 @@ void ExtensionDownloader::DoStartAllPend ReportStats(); url_stats_ = URLStats(); @@ -115,7 +115,7 @@ fetches_preparing_.clear(); } -@@ -349,11 +334,6 @@ bool ExtensionDownloader::AddExtensionDa +@@ -347,11 +332,6 @@ bool ExtensionDownloader::AddExtensionDa return false; } @@ -127,7 +127,7 @@ // Skip extensions with empty IDs. if (id.empty()) { DLOG(WARNING) << "Found extension with empty ID"; -@@ -362,12 +342,10 @@ bool ExtensionDownloader::AddExtensionDa +@@ -360,12 +340,10 @@ bool ExtensionDownloader::AddExtensionDa return false; } @@ -142,24 +142,7 @@ } else { url_stats_.other_url_count++; } -@@ -648,13 +626,9 @@ void ExtensionDownloader::OnManifestLoad - const int error = - response_code == -1 ? loader->NetError() : response_code; - const std::string uma_histogram_name = -- url.DomainIs(kGoogleDotCom) -- ? std::string( -- "Extensions." -- "ExtensionUpdaterFirstUpdateCheckErrorsGoogleUrl") -- : std::string( -- "Extensions." -- "ExtensionUpdaterFirstUpdateCheckErrorsNonGoogleUrl"); -+ std::string( -+ "Extensions." -+ "ExtensionUpdaterFirstUpdateCheckErrorsNonGoogleUrl"); - const auto& extension_ids = - manifests_queue_.active_request()->extension_ids(); - for (auto it = extension_ids.begin(); it != extension_ids.end(); ++it) { -@@ -724,20 +698,6 @@ void ExtensionDownloader::HandleManifest +@@ -702,20 +680,6 @@ void ExtensionDownloader::HandleManifest fetch_data->request_ids())); } @@ -177,10 +160,10 @@ - } - } - - NotifyExtensionsDownloadStageChanged(no_updates, - ExtensionDownloaderDelegate::FINISHED); + NotifyExtensionsDownloadStageChanged( + no_updates, ExtensionDownloaderDelegate::Stage::FINISHED); NotifyExtensionsDownloadFailed( -@@ -1190,11 +1150,7 @@ bool ExtensionDownloader::IterateFetchCr +@@ -1193,11 +1157,7 @@ bool ExtensionDownloader::IterateFetchCr // fetch. switch (fetch->credentials) { case ExtensionFetch::CREDENTIALS_NONE: diff --git a/patches/core/ungoogled-chromium/fix-building-without-one-click-signin.patch b/patches/core/ungoogled-chromium/fix-building-without-one-click-signin.patch index 80657f23..c8a8af1a 100644 --- a/patches/core/ungoogled-chromium/fix-building-without-one-click-signin.patch +++ b/patches/core/ungoogled-chromium/fix-building-without-one-click-signin.patch @@ -2,7 +2,7 @@ --- a/chrome/browser/ui/BUILD.gn +++ b/chrome/browser/ui/BUILD.gn -@@ -3382,8 +3382,6 @@ jumbo_static_library("ui") { +@@ -3446,8 +3446,6 @@ jumbo_static_library("ui") { "views/sync/dice_bubble_sync_promo_view.h", "views/sync/dice_signin_button_view.cc", "views/sync/dice_signin_button_view.h", @@ -25,7 +25,7 @@ } --- a/chrome/browser/ui/webui/signin/inline_login_handler_impl.cc +++ b/chrome/browser/ui/webui/signin/inline_login_handler_impl.cc -@@ -329,6 +329,7 @@ void InlineSigninHelper::OnClientOAuthSu +@@ -330,6 +330,7 @@ void InlineSigninHelper::OnClientOAuthSu const ClientOAuthResult& result, Profile* /*profile*/, Profile::CreateStatus /*status*/) { @@ -33,7 +33,7 @@ HandlerSigninReason reason = GetHandlerSigninReason(current_url_); if (reason == HandlerSigninReason::FETCH_LST_ONLY) { // Constants are only available on Windows for the Google Credential -@@ -418,6 +419,7 @@ void InlineSigninHelper::OnClientOAuthSu +@@ -419,6 +420,7 @@ void InlineSigninHelper::OnClientOAuthSu CreateSyncStarter(result.refresh_token); } base::ThreadTaskRunnerHandle::Get()->DeleteSoon(FROM_HERE, this); diff --git a/patches/core/ungoogled-chromium/fix-building-without-safebrowsing.patch b/patches/core/ungoogled-chromium/fix-building-without-safebrowsing.patch index 27573bb7..ad5300ab 100644 --- a/patches/core/ungoogled-chromium/fix-building-without-safebrowsing.patch +++ b/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 -@@ -4900,19 +4900,7 @@ ChromeContentBrowserClient::GetSafeBrows +@@ -4901,19 +4901,7 @@ ChromeContentBrowserClient::GetSafeBrows content::ResourceContext* resource_context) { DCHECK_CURRENTLY_ON(BrowserThread::IO); @@ -68,7 +68,7 @@ #include "chrome/browser/sessions/session_tab_helper.h" #include "chrome/browser/ui/browser_dialogs.h" #include "chrome/common/chrome_paths.h" -@@ -328,75 +327,6 @@ class ReadPermissionGrantImpl +@@ -328,78 +327,6 @@ class ReadPermissionGrantImpl PermissionStatus status_ = PermissionStatus::GRANTED; }; @@ -133,6 +133,9 @@ - - // This shouldn't be returned for Native File System write checks. - case Result::ASYNC_SCANNING: +- case Result::SENSITIVE_CONTENT_WARNING: +- case Result::SENSITIVE_CONTENT_BLOCK: +- case Result::DEEP_SCANNED_SAFE: - NOTREACHED(); - return ChromeNativeFileSystemPermissionContext::AfterWriteCheckResult:: - kAllow; @@ -144,7 +147,7 @@ } // namespace ChromeNativeFileSystemPermissionContext::Grants::Grants() = default; -@@ -677,29 +607,6 @@ void ChromeNativeFileSystemPermissionCon +@@ -680,29 +607,6 @@ void ChromeNativeFileSystemPermissionCon process_id, frame_id, std::move(callback))); } @@ -191,7 +194,7 @@ // method when grants stop being scoped to a frame. --- a/chrome/browser/password_manager/chrome_password_manager_client.cc +++ b/chrome/browser/password_manager/chrome_password_manager_client.cc -@@ -24,7 +24,6 @@ +@@ -25,7 +25,6 @@ #include "chrome/browser/password_manager/password_store_factory.h" #include "chrome/browser/prerender/prerender_contents.h" #include "chrome/browser/profiles/profile.h" @@ -199,7 +202,7 @@ #include "chrome/browser/signin/identity_manager_factory.h" #include "chrome/browser/site_isolation/site_isolation_policy.h" #include "chrome/browser/sync/profile_sync_service_factory.h" -@@ -91,11 +90,11 @@ +@@ -93,11 +92,11 @@ #if BUILDFLAG(FULL_SAFE_BROWSING) #include "chrome/browser/safe_browsing/advanced_protection_status_manager.h" #include "chrome/browser/safe_browsing/advanced_protection_status_manager_factory.h" @@ -211,8 +214,8 @@ -#endif #if defined(OS_ANDROID) - #include "chrome/browser/android/preferences/preferences_launcher.h" -@@ -539,6 +538,7 @@ bool ChromePasswordManagerClient::IsIsol + #include "chrome/browser/android/tab_android.h" +@@ -543,6 +542,7 @@ bool ChromePasswordManagerClient::IsIsol return SiteIsolationPolicy::IsIsolationForPasswordSitesEnabled(); } @@ -220,7 +223,7 @@ #if defined(ON_FOCUS_PING_ENABLED) || \ defined(SYNC_PASSWORD_REUSE_DETECTION_ENABLED) safe_browsing::PasswordProtectionService* -@@ -561,6 +561,7 @@ void ChromePasswordManagerClient::CheckS +@@ -565,6 +565,7 @@ void ChromePasswordManagerClient::CheckS } } #endif // defined(ON_FOCUS_PING_ENABLED) @@ -228,7 +231,7 @@ #if defined(SYNC_PASSWORD_REUSE_DETECTION_ENABLED) void ChromePasswordManagerClient::CheckProtectedPasswordEntry( -@@ -568,24 +569,11 @@ void ChromePasswordManagerClient::CheckP +@@ -572,24 +573,11 @@ void ChromePasswordManagerClient::CheckP const std::string& username, const std::vector& matching_domains, bool password_field_exists) { @@ -253,17 +256,17 @@ } #endif // defined(SYNC_PASSWORD_REUSE_WARNING_ENABLED) -@@ -692,7 +680,9 @@ void ChromePasswordManagerClient::OnInpu +@@ -710,7 +698,9 @@ void ChromePasswordManagerClient::OnInpu if (key_event.windows_key_code == (ui::VKEY_V & 0x1f)) { OnPaste(); } else { +#if defined(SYNC_PASSWORD_REUSE_DETECTION_ENABLED) - password_reuse_detection_manager_.OnKeyPressed(key_event.text); + password_reuse_detection_manager_.OnKeyPressedCommitted(key_event.text); +#endif // defined(SYNC_PASSWORD_REUSE_DETECTION_ENABLED) } #endif // defined(OS_ANDROID) } -@@ -806,9 +796,11 @@ void ChromePasswordManagerClient::OnPast +@@ -836,9 +826,11 @@ void ChromePasswordManagerClient::OnPast base::string16 text; clipboard->ReadText(ui::ClipboardBuffer::kCopyPaste, &text); was_on_paste_called_ = true; @@ -278,8 +281,8 @@ const gfx::RectF& bounds) { --- a/chrome/browser/password_manager/chrome_password_manager_client.h +++ b/chrome/browser/password_manager/chrome_password_manager_client.h -@@ -181,7 +181,7 @@ class ChromePasswordManagerClient - void OnImeTextCommittedEvent(const base::string16& text_str) override; +@@ -184,7 +184,7 @@ class ChromePasswordManagerClient + void OnImeFinishComposingTextEvent() override; #endif // defined(OS_ANDROID) -#if defined(ON_FOCUS_PING_ENABLED) @@ -289,7 +292,7 @@ safe_browsing::PasswordProtectionService* GetPasswordProtectionService() --- a/chrome/browser/ui/tab_contents/chrome_web_contents_view_handle_drop.cc +++ b/chrome/browser/ui/tab_contents/chrome_web_contents_view_handle_drop.cc -@@ -36,34 +36,4 @@ void HandleOnPerformDrop( +@@ -37,35 +37,4 @@ void HandleOnPerformDrop( content::WebContents* web_contents, const content::DropData& drop_data, content::WebContentsViewDelegate::DropCompletionCallback callback) { @@ -322,19 +325,20 @@ - - safe_browsing::DeepScanningDialogDelegate::ShowForWebContents( - web_contents, std::move(data), -- base::BindOnce(&DeepScanCompletionCallback, std::move(callback))); +- base::BindOnce(&DeepScanCompletionCallback, std::move(callback)), +- safe_browsing::DeepScanAccessPoint::DRAG_AND_DROP); } --- a/chrome/browser/ui/views/download/download_item_view.cc +++ b/chrome/browser/ui/views/download/download_item_view.cc -@@ -1059,6 +1059,7 @@ void DownloadItemView::ShowDeepScanningD - deep_scanning_label_ = AddChildView(std::move(deep_scanning_label)); - deep_scanning_label_->SetSize(AdjustTextAndGetSize(deep_scanning_label_)); +@@ -1127,6 +1127,7 @@ void DownloadItemView::ShowDeepScanningD + }, + base::Unretained(this)))); +#if BUILDFLAG(FULL_SAFE_BROWSING) int delay_delivery = g_browser_process->local_state()->GetInteger( prefs::kDelayDeliveryUntilVerdict); if (delay_delivery != safe_browsing::DELAY_DOWNLOADS && -@@ -1070,6 +1071,9 @@ void DownloadItemView::ShowDeepScanningD +@@ -1138,6 +1139,9 @@ void DownloadItemView::ShowDeepScanningD } else { open_button_->SetEnabled(false); } @@ -344,7 +348,7 @@ file_name_label_->SetVisible(false); status_label_->SetVisible(false); -@@ -1357,6 +1361,8 @@ base::string16 DownloadItemView::ElidedF +@@ -1445,7 +1449,9 @@ base::string16 DownloadItemView::ElidedF } void DownloadItemView::OpenDownloadDuringAsyncScanning() { @@ -353,19 +357,21 @@ +#endif should_open_while_scanning_ = true; } + --- a/chrome/browser/ui/views/safe_browsing/password_reuse_modal_warning_dialog.cc +++ b/chrome/browser/ui/views/safe_browsing/password_reuse_modal_warning_dialog.cc -@@ -147,9 +147,7 @@ PasswordReuseModalWarningDialog::Passwor - service_->AddObserver(this); - - views::Label* message_body_label = CreateMessageBodyLabel( -- service_ -- ? service_->GetWarningDetailText(password_type) -- : l10n_util::GetStringUTF16(IDS_PAGE_INFO_CHANGE_PASSWORD_DETAILS)); -+ l10n_util::GetStringUTF16(IDS_PAGE_INFO_CHANGE_PASSWORD_DETAILS)); - - if (password_type.account_type() == - ReusedPasswordAccountType::SAVED_PASSWORD) { +@@ -159,10 +159,7 @@ PasswordReuseModalWarningDialog::Passwor + placeholder_offsets); + } else { + views::Label* message_body_label = CreateMessageBodyLabel( +- service_ +- ? service_->GetWarningDetailText(password_type, +- &placeholder_offsets) +- : l10n_util::GetStringUTF16(IDS_PAGE_INFO_CHANGE_PASSWORD_DETAILS)); ++ l10n_util::GetStringUTF16(IDS_PAGE_INFO_CHANGE_PASSWORD_DETAILS)); + CreateGaiaPasswordReuseModalWarningDialog(message_body_label); + } + } --- a/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc +++ b/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc @@ -78,8 +78,6 @@ @@ -375,9 +381,9 @@ -#include "components/safe_browsing/web_ui/constants.h" -#include "components/safe_browsing/web_ui/safe_browsing_ui.h" #include "components/security_interstitials/content/connection_help_ui.h" + #include "components/security_interstitials/content/known_interception_disclosure_ui.h" #include "components/security_interstitials/content/urls.h" - #include "content/public/browser/web_contents.h" -@@ -390,8 +388,6 @@ WebUIFactoryFunction GetWebUIFactoryFunc +@@ -414,8 +412,6 @@ WebUIFactoryFunction GetWebUIFactoryFunc return &NewWebUI; if (url.host_piece() == chrome::kChromeUIQuotaInternalsHost) return &NewWebUI; @@ -388,7 +394,7 @@ if (url.host_piece() == chrome::kChromeUISuggestionsHost) --- a/components/password_manager/content/browser/content_password_manager_driver.cc +++ b/components/password_manager/content/browser/content_password_manager_driver.cc -@@ -296,7 +296,7 @@ void ContentPasswordManagerDriver::ShowT +@@ -309,7 +309,7 @@ void ContentPasswordManagerDriver::ShowT void ContentPasswordManagerDriver::CheckSafeBrowsingReputation( const GURL& form_action, const GURL& frame_url) { @@ -399,7 +405,7 @@ } --- a/components/password_manager/core/browser/password_manager_client.h +++ b/components/password_manager/core/browser/password_manager_client.h -@@ -273,7 +273,7 @@ class PasswordManagerClient { +@@ -279,7 +279,7 @@ class PasswordManagerClient { // Returns the current best guess as to the page's display language. virtual std::string GetPageLanguage() const; diff --git a/patches/core/ungoogled-chromium/remove-unused-preferences-fields.patch b/patches/core/ungoogled-chromium/remove-unused-preferences-fields.patch index b14415cc..e7223415 100644 --- a/patches/core/ungoogled-chromium/remove-unused-preferences-fields.patch +++ b/patches/core/ungoogled-chromium/remove-unused-preferences-fields.patch @@ -23,8 +23,8 @@ // TODO(amalova): Make sure NetworkContext is configured correctly when --- a/chrome/app/settings_strings.grdp +++ b/chrome/app/settings_strings.grdp -@@ -2932,18 +2932,6 @@ - +@@ -2994,18 +2994,6 @@ + Uses cookies to remember your preferences, even if you don’t visit those pages - @@ -39,88 +39,28 @@ - - To detect dangerous apps and sites, Chrome sends URLs of some pages you visit, limited system information, and some page content to Google - - - Use enhanced spell check + + Enhanced spell check ---- a/chrome/browser/android/preferences/pref_service_bridge.cc -+++ b/chrome/browser/android/preferences/pref_service_bridge.cc -@@ -47,8 +47,6 @@ - #include "components/metrics/metrics_pref_names.h" - #include "components/password_manager/core/common/password_manager_pref_names.h" - #include "components/prefs/pref_service.h" --#include "components/safe_browsing/common/safe_browsing_prefs.h" --#include "components/signin/public/base/signin_pref_names.h" - #include "components/strings/grit/components_locale_settings.h" - #include "components/translate/core/browser/translate_pref_names.h" - #include "components/translate/core/browser/translate_prefs.h" -@@ -458,28 +456,25 @@ static void JNI_PrefServiceBridge_SetSaf - static jboolean JNI_PrefServiceBridge_GetSafeBrowsingExtendedReportingManaged( - JNIEnv* env, - const JavaParamRef& obj) { -- PrefService* pref_service = GetPrefService(); -- return pref_service->IsManagedPreference( -- prefs::kSafeBrowsingScoutReportingEnabled); -+ return false; - } - - static jboolean JNI_PrefServiceBridge_GetSafeBrowsingEnabled( - JNIEnv* env, - const JavaParamRef& obj) { -- return GetPrefService()->GetBoolean(prefs::kSafeBrowsingEnabled); -+ return false; - } - - static void JNI_PrefServiceBridge_SetSafeBrowsingEnabled( - JNIEnv* env, - const JavaParamRef& obj, - jboolean enabled) { -- GetPrefService()->SetBoolean(prefs::kSafeBrowsingEnabled, enabled); - } - - static jboolean JNI_PrefServiceBridge_GetSafeBrowsingManaged( - JNIEnv* env, - const JavaParamRef& obj) { -- return GetPrefService()->IsManagedPreference(prefs::kSafeBrowsingEnabled); -+ return false; - } - - static jboolean JNI_PrefServiceBridge_GetNotificationsEnabled( -@@ -894,14 +889,14 @@ static ScopedJavaLocalRef JNI_P - JNIEnv* env, - const JavaParamRef& obj) { - return ConvertUTF8ToJavaString( -- env, GetPrefService()->GetString(prefs::kGoogleServicesLastAccountId)); -+ env, ""); - } - - static ScopedJavaLocalRef JNI_PrefServiceBridge_GetSyncLastAccountName( - JNIEnv* env, - const JavaParamRef& obj) { - return ConvertUTF8ToJavaString( -- env, GetPrefService()->GetString(prefs::kGoogleServicesLastUsername)); -+ env, ""); - } - - static void JNI_PrefServiceBridge_SetTranslateEnabled( --- a/chrome/browser/android/preferences/prefs.h +++ b/chrome/browser/android/preferences/prefs.h -@@ -19,7 +19,6 @@ +@@ -20,7 +20,6 @@ #include "components/offline_pages/core/prefetch/prefetch_prefs.h" #include "components/password_manager/core/common/password_manager_pref_names.h" #include "components/payments/core/payment_prefs.h" -#include "components/safe_browsing/common/safe_browsing_prefs.h" + #include "components/signin/public/base/signin_pref_names.h" + #include "components/translate/core/browser/translate_pref_names.h" - // A preference exposed to Java. - // A Java counterpart will be generated for this enum. -@@ -69,8 +68,6 @@ const char* const kPrefsExposedToJava[] +@@ -93,8 +92,6 @@ const char* const kPrefsExposedToJava[] autofill::prefs::kAutofillCreditCardEnabled, prefs::kUsageStatsEnabled, offline_pages::prefetch_prefs::kUserSettingEnabled, - prefs::kSafeBrowsingExtendedReportingOptInAllowed, - prefs::kSafeBrowsingEnabled, password_manager::prefs::kPasswordManagerOnboardingState, - password_manager::prefs::kPasswordLeakDetectionEnabled, - }; + prefs::kSearchSuggestEnabled, + password_manager::prefs::kCredentialsEnableService, --- a/chrome/browser/android/signin/signin_manager_android.cc +++ b/chrome/browser/android/signin/signin_manager_android.cc @@ -13,7 +13,6 @@ @@ -183,7 +123,7 @@ BooleanPrefMember force_browser_signin_; --- a/chrome/browser/chrome_content_browser_client.cc +++ b/chrome/browser/chrome_content_browser_client.cc -@@ -232,14 +232,12 @@ +@@ -233,14 +233,12 @@ #include "components/safe_browsing/browser/browser_url_loader_throttle.h" #include "components/safe_browsing/browser/url_checker_delegate.h" #include "components/safe_browsing/buildflags.h" @@ -198,7 +138,7 @@ #include "components/subresource_filter/content/browser/content_subresource_filter_throttle_manager.h" #include "components/translate/core/common/translate_switches.h" #include "components/url_formatter/url_fixer.h" -@@ -2034,13 +2032,9 @@ void ChromeContentBrowserClient::AppendE +@@ -2069,13 +2067,9 @@ void ChromeContentBrowserClient::AppendE } } @@ -215,7 +155,7 @@ if (prefs->GetBoolean(prefs::kPrintPreviewDisabled)) command_line->AppendSwitch(switches::kDisablePrintPreview); -@@ -4258,7 +4252,7 @@ ChromeContentBrowserClient::CreateURLLoa +@@ -4257,7 +4251,7 @@ ChromeContentBrowserClient::CreateURLLoa signin::IdentityManager* identity_manager = IdentityManagerFactory::GetForProfile(profile); @@ -324,7 +264,7 @@ #include "components/security_state/core/features.h" --- a/chrome/browser/extensions/api/identity/identity_apitest.cc +++ b/chrome/browser/extensions/api/identity/identity_apitest.cc -@@ -48,7 +48,6 @@ +@@ -47,7 +47,6 @@ #include "components/prefs/pref_service.h" #include "components/signin/core/browser/account_reconcilor.h" #include "components/signin/public/base/list_accounts_test_utils.h" @@ -409,15 +349,15 @@ prefs->SetBoolean(prefs::kWebRTCNonProxiedUdpEnabled, false); --- a/chrome/browser/extensions/api/safe_browsing_private/safe_browsing_private_event_router.cc +++ b/chrome/browser/extensions/api/safe_browsing_private/safe_browsing_private_event_router.cc -@@ -23,7 +23,6 @@ - #include "components/policy/core/common/cloud/device_management_service.h" +@@ -43,7 +43,6 @@ + #include "components/policy/core/common/cloud/machine_level_user_cloud_policy_manager.h" #include "components/policy/core/common/cloud/realtime_reporting_job_configuration.h" #include "components/prefs/pref_service.h" -#include "components/safe_browsing/common/safe_browsing_prefs.h" #include "components/safe_browsing/proto/webprotect.pb.h" #include "components/signin/public/identity_manager/identity_manager.h" - #include "content/public/browser/browser_context.h" -@@ -86,12 +85,6 @@ SafeBrowsingPrivateEventRouter::SafeBrow + #if defined(OS_CHROMEOS) +@@ -123,12 +122,6 @@ SafeBrowsingPrivateEventRouter::SafeBrow // in tests. if (g_browser_process && g_browser_process->local_state()) { RealtimeReportingPrefChanged(std::string()); @@ -430,7 +370,7 @@ } } -@@ -485,9 +478,7 @@ void SafeBrowsingPrivateEventRouter::Ini +@@ -707,9 +700,7 @@ void SafeBrowsingPrivateEventRouter::OnC bool SafeBrowsingPrivateEventRouter::IsRealtimeReportingEnabled() { // g_browser_process and/or g_browser_process->local_state() may be null // in tests. @@ -443,25 +383,25 @@ void SafeBrowsingPrivateEventRouter::RealtimeReportingPrefChanged( --- a/chrome/browser/extensions/api/safe_browsing_private/safe_browsing_private_event_router.h +++ b/chrome/browser/extensions/api/safe_browsing_private/safe_browsing_private_event_router.h -@@ -12,7 +12,6 @@ - #include "base/macros.h" +@@ -14,7 +14,6 @@ + #include "base/memory/weak_ptr.h" #include "base/values.h" #include "components/keyed_service/core/keyed_service.h" -#include "components/prefs/pref_change_registrar.h" namespace content { class BrowserContext; -@@ -183,7 +182,6 @@ class SafeBrowsingPrivateEventRouter : p - signin::IdentityManager* identity_manager_ = nullptr; - EventRouter* event_router_ = nullptr; - std::unique_ptr client_; +@@ -249,7 +248,6 @@ class SafeBrowsingPrivateEventRouter : p + // The |private_client_| is used on platforms where we cannot just get a + // client and we create our own (used through |client_|). + std::unique_ptr private_client_; - PrefChangeRegistrar registrar_; + base::WeakPtrFactory weak_ptr_factory_{this}; DISALLOW_COPY_AND_ASSIGN(SafeBrowsingPrivateEventRouter); - }; --- a/chrome/browser/extensions/api/safe_browsing_private/safe_browsing_private_event_router_unittest.cc +++ b/chrome/browser/extensions/api/safe_browsing_private/safe_browsing_private_event_router_unittest.cc -@@ -15,7 +15,6 @@ +@@ -21,7 +21,6 @@ #include "chrome/test/base/testing_profile_manager.h" #include "components/policy/core/common/cloud/mock_cloud_policy_client.h" #include "components/policy/core/common/cloud/realtime_reporting_job_configuration.h" @@ -471,7 +411,7 @@ #include "testing/gmock/include/gmock/gmock.h" --- a/chrome/browser/extensions/api/settings_private/prefs_util.cc +++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc -@@ -29,7 +29,6 @@ +@@ -28,7 +28,6 @@ #include "components/payments/core/payment_prefs.h" #include "components/prefs/pref_service.h" #include "components/proxy_config/proxy_config_pref_names.h" @@ -479,7 +419,7 @@ #include "components/search_engines/default_search_manager.h" #include "components/spellcheck/browser/pref_names.h" #include "components/translate/core/browser/translate_pref_names.h" -@@ -244,10 +243,6 @@ const PrefsUtil::TypedPrefMap& PrefsUtil +@@ -243,10 +242,6 @@ const PrefsUtil::TypedPrefMap& PrefsUtil settings_api::PrefType::PREF_TYPE_BOOLEAN; // Sync and personalization page. @@ -514,14 +454,14 @@ #include "net/net_buildflags.h" --- a/chrome/browser/net/trial_comparison_cert_verifier_controller.cc +++ b/chrome/browser/net/trial_comparison_cert_verifier_controller.cc -@@ -21,7 +21,6 @@ - #include "chrome/browser/ssl/certificate_error_report.h" +@@ -20,7 +20,6 @@ + #include "chrome/browser/safe_browsing/certificate_reporting_service_factory.h" #include "chrome/common/channel_info.h" #include "chrome/common/chrome_features.h" -#include "components/safe_browsing/common/safe_browsing_prefs.h" + #include "components/security_interstitials/content/certificate_error_report.h" #include "content/public/browser/browser_task_traits.h" #include "content/public/browser/browser_thread.h" - #include "net/base/features.h" @@ -43,12 +42,6 @@ TrialComparisonCertVerifierController::T // enabled. return; @@ -566,14 +506,14 @@ receiver_set_; --- a/chrome/browser/net/trial_comparison_cert_verifier_controller_unittest.cc +++ b/chrome/browser/net/trial_comparison_cert_verifier_controller_unittest.cc -@@ -22,7 +22,6 @@ +@@ -21,7 +21,6 @@ #include "chrome/test/base/testing_browser_process.h" #include "chrome/test/base/testing_profile.h" #include "chrome/test/base/testing_profile_manager.h" -#include "components/safe_browsing/common/safe_browsing_prefs.h" + #include "components/security_interstitials/content/cert_logger.pb.h" #include "components/sync_preferences/testing_pref_service_syncable.h" #include "content/public/browser/browser_task_traits.h" - #include "content/public/test/browser_task_environment.h" --- a/chrome/browser/password_manager/password_store_factory.cc +++ b/chrome/browser/password_manager/password_store_factory.cc @@ -180,14 +180,6 @@ PasswordStoreFactory::BuildServiceInstan @@ -637,17 +577,18 @@ } --- a/chrome/browser/policy/configuration_policy_handler_list_factory.cc +++ b/chrome/browser/policy/configuration_policy_handler_list_factory.cc -@@ -64,9 +64,7 @@ +@@ -68,10 +68,8 @@ #include "components/policy/core/common/policy_pref_names.h" #include "components/policy/core/common/schema.h" #include "components/policy/policy_constants.h" -#include "components/safe_browsing/common/safe_browsing_prefs.h" #include "components/search_engines/default_search_policy_handler.h" + #include "components/security_state/core/security_state_pref_names.h" -#include "components/signin/public/base/signin_pref_names.h" #include "components/spellcheck/spellcheck_buildflags.h" #include "components/sync/base/pref_names.h" #include "components/sync/driver/sync_policy_handler.h" -@@ -169,12 +167,6 @@ const PolicyToPreferenceMapEntry kSimple +@@ -173,12 +171,6 @@ const PolicyToPreferenceMapEntry kSimple { key::kQuicAllowed, prefs::kQuicAllowed, base::Value::Type::BOOLEAN }, @@ -660,9 +601,9 @@ { key::kUrlKeyedAnonymizedDataCollectionEnabled, unified_consent::prefs::kUrlKeyedAnonymizedDataCollectionEnabled, base::Value::Type::BOOLEAN }, -@@ -329,29 +321,9 @@ const PolicyToPreferenceMapEntry kSimple - { key::kAllowCrossOriginAuthPrompt, - prefs::kAllowCrossOriginAuthPrompt, +@@ -336,24 +328,9 @@ const PolicyToPreferenceMapEntry kSimple + { key::kGloballyScopeHTTPAuthCacheEnabled, + prefs::kGloballyScopeHTTPAuthCacheEnabled, base::Value::Type::BOOLEAN }, - { key::kPasswordProtectionWarningTrigger, - prefs::kPasswordProtectionWarningTrigger, @@ -679,18 +620,13 @@ { key::kSafeSitesFilterBehavior, policy_prefs::kSafeSitesFilterBehavior, base::Value::Type::INTEGER}, -- { key::kSafeBrowsingRealTimeLookupEnabled, -- prefs::kSafeBrowsingRealTimeLookupEnabled, -- base::Value::Type::BOOLEAN -- }, - { key::kSendFilesForMalwareCheck, - prefs::kSafeBrowsingSendFilesForMalwareCheck, -- base::Value::Type::INTEGER -- }, - #if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_CHROMEOS) - { key::kAuthNegotiateDelegateByKdcPolicy, - prefs::kAuthNegotiateDelegateByKdcPolicy, -@@ -458,18 +430,12 @@ const PolicyToPreferenceMapEntry kSimple +- base::Value::Type::INTEGER }, + { key::kWebComponentsV0Enabled, + prefs::kWebComponentsV0Enabled, + base::Value::Type::BOOLEAN }, +@@ -466,18 +443,12 @@ const PolicyToPreferenceMapEntry kSimple { key::kURLWhitelist, policy_prefs::kUrlWhitelist, base::Value::Type::LIST }, @@ -709,13 +645,10 @@ { key::kSSLErrorOverrideAllowed, prefs::kSSLErrorOverrideAllowed, base::Value::Type::BOOLEAN }, -@@ -1169,30 +1135,6 @@ const PolicyToPreferenceMapEntry kSimple +@@ -1175,27 +1146,6 @@ const PolicyToPreferenceMapEntry kSimple { key::kBrowserSwitcherDelay, browser_switcher::prefs::kDelay, base::Value::Type::INTEGER }, -- { key::kUnsafeEventsReportingEnabled, -- prefs::kUnsafeEventsReportingEnabled, -- base::Value::Type::BOOLEAN }, - { key::kDelayDeliveryUntilVerdict, - prefs::kDelayDeliveryUntilVerdict, - base::Value::Type::INTEGER }, @@ -728,19 +661,29 @@ - { key::kCheckContentCompliance, - prefs::kCheckContentCompliance, - base::Value::Type::INTEGER }, -- { key::kDomainsToCheckComplianceOfDownloadedContent, -- prefs::kDomainsToCheckComplianceOfDownloadedContent, +- { key::kURLsToCheckComplianceOfDownloadedContent, +- prefs::kURLsToCheckComplianceOfDownloadedContent, - base::Value::Type::LIST }, -- { key::kDomainsToCheckForMalwareOfUploadedContent, -- prefs::kDomainsToCheckForMalwareOfUploadedContent, +- { key::kURLsToCheckForMalwareOfUploadedContent, +- prefs::kURLsToCheckForMalwareOfUploadedContent, - base::Value::Type::LIST }, -- { key::kDomainsToNotCheckComplianceOfUploadedContent, -- prefs::kDomainsToNotCheckComplianceOfUploadedContent, +- { key::kURLsToNotCheckComplianceOfUploadedContent, +- prefs::kURLsToNotCheckComplianceOfUploadedContent, - base::Value::Type::LIST }, #endif #if defined(OS_WIN) { key::kBrowserSwitcherUseIeSitelist, -@@ -1429,22 +1371,6 @@ std::unique_ptr BuildHandlerList( - signin_legacy_policies.push_back(std::make_unique( - key::kForceBrowserSignin, prefs::kForceBrowserSignin, - base::Value::Type::BOOLEAN)); -- signin_legacy_policies.push_back(std::make_unique( -- key::kSigninAllowed, --#if defined(OS_ANDROID) -- // The new kSigninAllowedOnNextStartup pref is only used on Desktop. -- // Keep the old kSigninAllowed pref for Android until the policy is -- // fully deprecated in M71 and can be removed. +@@ -1508,7 +1439,6 @@ std::unique_ptr(chrome_schema))); --- a/chrome/browser/prefs/browser_prefs.cc +++ b/chrome/browser/prefs/browser_prefs.cc -@@ -124,7 +124,6 @@ +@@ -126,7 +126,6 @@ #include "components/prefs/pref_service.h" #include "components/proxy_config/pref_proxy_config_tracker_impl.h" #include "components/rappor/rappor_service_impl.h" -#include "components/safe_browsing/common/safe_browsing_prefs.h" #include "components/search_engines/template_url_prepopulate_data.h" + #include "components/security_state/core/security_state.h" #include "components/sessions/core/session_id_generator.h" - #include "components/signin/public/identity_manager/identity_manager.h" -@@ -624,7 +623,6 @@ void RegisterLocalState(PrefRegistrySimp +@@ -639,7 +638,6 @@ void RegisterLocalState(PrefRegistrySimp profiles::RegisterPrefs(registry); rappor::RapporServiceImpl::RegisterPrefs(registry); RegisterScreenshotPrefs(registry); @@ -799,14 +736,14 @@ secure_origin_whitelist::RegisterPrefs(registry); sessions::SessionIdGenerator::RegisterPrefs(registry); SSLConfigServiceManager::RegisterPrefs(registry); -@@ -816,7 +814,6 @@ void RegisterProfilePrefs(user_prefs::Pr - ProtocolHandlerRegistry::RegisterProfilePrefs(registry); +@@ -838,7 +836,6 @@ void RegisterProfilePrefs(user_prefs::Pr PushMessagingAppIdentifier::RegisterProfilePrefs(registry); + QuietNotificationPermissionUiState::RegisterProfilePrefs(registry); RegisterBrowserUserPrefs(registry); - safe_browsing::RegisterProfilePrefs(registry); SafeBrowsingTriggeredPopupBlocker::RegisterProfilePrefs(registry); + security_state::RegisterProfilePrefs(registry); SessionStartupPref::RegisterProfilePrefs(registry); - SharingSyncPreference::RegisterProfilePrefs(registry); --- a/chrome/browser/prefs/chrome_pref_service_factory.cc +++ b/chrome/browser/prefs/chrome_pref_service_factory.cc @@ -47,10 +47,8 @@ @@ -879,25 +816,23 @@ } --- a/chrome/browser/profiles/gaia_info_update_service.cc +++ b/chrome/browser/profiles/gaia_info_update_service.cc -@@ -19,7 +19,6 @@ - #include "chrome/browser/signin/identity_manager_factory.h" +@@ -20,7 +20,6 @@ #include "chrome/common/pref_names.h" #include "components/prefs/pref_service.h" + #include "components/signin/public/base/avatar_icon_util.h" -#include "components/signin/public/base/signin_pref_names.h" #include "components/signin/public/identity_manager/account_info.h" #include "content/public/browser/notification_details.h" #include "content/public/browser/storage_partition.h" -@@ -145,10 +144,6 @@ void GAIAInfoUpdateService::OnProfileDow - } +@@ -88,8 +87,6 @@ void GAIAInfoUpdateService::Update(const + entry->SetGAIAName(base::UTF8ToUTF16(info.full_name)); - const base::string16 hosted_domain = downloader->GetProfileHostedDomain(); -- profile_->GetPrefs()->SetString( -- prefs::kGoogleServicesHostedDomain, -- (hosted_domain.empty() ? kNoHostedDomainFound -- : base::UTF16ToUTF8(hosted_domain))); - } + const base::string16 hosted_domain = base::UTF8ToUTF16(info.hosted_domain); +- profile_prefs_->SetString(prefs::kGoogleServicesHostedDomain, +- base::UTF16ToUTF8(hosted_domain)); - void GAIAInfoUpdateService::OnProfileDownloadFailure( + if (info.picture_url == kNoPictureURLFound) { + entry->SetGAIAPicture(gfx::Image()); --- a/chrome/browser/profiles/gaia_info_update_service_unittest.cc +++ b/chrome/browser/profiles/gaia_info_update_service_unittest.cc @@ -26,7 +26,6 @@ @@ -972,7 +907,7 @@ --- a/chrome/browser/profiles/profile_io_data.cc +++ b/chrome/browser/profiles/profile_io_data.cc -@@ -51,7 +51,6 @@ +@@ -52,7 +52,6 @@ #include "components/metrics/metrics_service.h" #include "components/net_log/chrome_net_log.h" #include "components/policy/core/common/cloud/user_cloud_policy_manager.h" @@ -982,7 +917,7 @@ #include "content/public/browser/browser_task_traits.h" --- a/chrome/browser/profiles/profile_manager.cc +++ b/chrome/browser/profiles/profile_manager.cc -@@ -82,7 +82,6 @@ +@@ -83,7 +83,6 @@ #include "components/search_engines/default_search_manager.h" #include "components/signin/public/base/signin_buildflags.h" #include "components/signin/public/base/signin_metrics.h" @@ -990,7 +925,7 @@ #include "components/signin/public/identity_manager/identity_manager.h" #include "components/signin/public/identity_manager/primary_account_mutator.h" #include "components/sync/base/stop_source.h" -@@ -1662,7 +1661,6 @@ void ProfileManager::AddProfileToStorage +@@ -1666,7 +1665,6 @@ void ProfileManager::AddProfileToStorage void ProfileManager::SetNonPersonalProfilePrefs(Profile* profile) { PrefService* prefs = profile->GetPrefs(); @@ -1041,31 +976,33 @@ --- a/chrome/browser/resources/settings/privacy_page/personalization_options.html +++ b/chrome/browser/resources/settings/privacy_page/personalization_options.html -@@ -41,10 +41,6 @@ - label="$i18n{linkDoctorPref}" +@@ -59,11 +59,6 @@ sub-label="$i18n{linkDoctorPrefDesc}"> -- -- - - -- -- + - password_store = - PasswordStoreFactory::GetForProfile(profile_, -@@ -1301,7 +1292,7 @@ PrefService* ChromePasswordProtectionSer + GetProfilePasswordStore(); +@@ -1356,7 +1347,7 @@ PrefService* ChromePasswordProtectionSer } bool ChromePasswordProtectionService::IsSafeBrowsingEnabled() { @@ -1212,7 +1149,7 @@ } bool ChromePasswordProtectionService::IsExtendedReporting() { -@@ -1332,10 +1323,8 @@ bool ChromePasswordProtectionService::Is +@@ -1387,10 +1378,8 @@ bool ChromePasswordProtectionService::Is return enabled; } @@ -1224,7 +1161,7 @@ *reason = RequestOutcome::TURNED_OFF_BY_ADMIN; return false; } -@@ -1497,24 +1486,6 @@ MaybeCreateNavigationThrottle(content::N +@@ -1555,24 +1544,6 @@ MaybeCreateNavigationThrottle(content::N : nullptr; } @@ -1251,7 +1188,7 @@ RequestOutcome* reason) const { --- a/chrome/browser/safe_browsing/chrome_password_protection_service.h +++ b/chrome/browser/safe_browsing/chrome_password_protection_service.h -@@ -202,13 +202,6 @@ class ChromePasswordProtectionService : +@@ -210,13 +210,6 @@ class ChromePasswordProtectionService : bool UserClickedThroughSBInterstitial( content::WebContents* web_contents) override; @@ -1331,19 +1268,19 @@ mojo::Remote phishing; process->BindReceiver(phishing.BindNewPipeAndPassReceiver()); ---- a/chrome/browser/safe_browsing/download_protection/binary_upload_service.cc -+++ b/chrome/browser/safe_browsing/download_protection/binary_upload_service.cc -@@ -18,7 +18,6 @@ - #include "chrome/browser/safe_browsing/download_protection/binary_fcm_service.h" - #include "chrome/browser/safe_browsing/download_protection/multipart_uploader.h" +--- a/chrome/browser/safe_browsing/cloud_content_scanning/binary_upload_service.cc ++++ b/chrome/browser/safe_browsing/cloud_content_scanning/binary_upload_service.cc +@@ -23,7 +23,6 @@ + #include "chrome/browser/safe_browsing/cloud_content_scanning/multipart_uploader.h" + #include "chrome/browser/safe_browsing/dm_token_utils.h" #include "components/prefs/pref_service.h" -#include "components/safe_browsing/common/safe_browsing_prefs.h" #include "components/safe_browsing/proto/webprotect.pb.h" + #include "content/public/browser/browser_task_traits.h" #include "content/public/browser/browser_thread.h" - #include "net/http/http_status_code.h" --- a/chrome/browser/safe_browsing/download_protection/check_client_download_request.cc +++ b/chrome/browser/safe_browsing/download_protection/check_client_download_request.cc -@@ -30,7 +30,6 @@ +@@ -35,7 +35,6 @@ #include "components/policy/core/browser/url_util.h" #include "components/policy/core/common/policy_pref_names.h" #include "components/prefs/pref_service.h" @@ -1353,7 +1290,7 @@ #include "components/safe_browsing/proto/csd.pb.h" --- a/chrome/browser/safe_browsing/download_protection/check_client_download_request_base.cc +++ b/chrome/browser/safe_browsing/download_protection/check_client_download_request_base.cc -@@ -22,7 +22,6 @@ +@@ -24,7 +24,6 @@ #include "chrome/browser/safe_browsing/download_protection/ppapi_download_request.h" #include "chrome/common/safe_browsing/file_type_policies.h" #include "components/prefs/pref_service.h" @@ -1363,7 +1300,7 @@ #include "content/public/browser/browser_context.h" --- a/chrome/browser/safe_browsing/download_protection/download_protection_service_unittest.cc +++ b/chrome/browser/safe_browsing/download_protection/download_protection_service_unittest.cc -@@ -63,7 +63,6 @@ +@@ -66,7 +66,6 @@ #include "components/password_manager/core/browser/test_password_store.h" #include "components/prefs/pref_service.h" #include "components/prefs/scoped_user_pref_update.h" @@ -1443,7 +1380,7 @@ #include "components/security_interstitials/content/security_interstitial_controller_client.h" --- a/chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc +++ b/chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc -@@ -45,7 +45,6 @@ +@@ -44,7 +44,6 @@ #include "components/prefs/pref_service.h" #include "components/safe_browsing/browser/threat_details.h" #include "components/safe_browsing/common/safe_browsing.mojom.h" @@ -1453,7 +1390,7 @@ #include "components/safe_browsing/db/util.h" --- a/chrome/browser/safe_browsing/safe_browsing_blocking_page_unittest.cc +++ b/chrome/browser/safe_browsing/safe_browsing_blocking_page_unittest.cc -@@ -22,7 +22,6 @@ +@@ -21,7 +21,6 @@ #include "chrome/test/base/testing_profile.h" #include "components/prefs/pref_service.h" #include "components/safe_browsing/browser/threat_details.h" @@ -1477,7 +1414,7 @@ // static --- a/chrome/browser/safe_browsing/safe_browsing_service.cc +++ b/chrome/browser/safe_browsing/safe_browsing_service.cc -@@ -88,7 +88,6 @@ base::FilePath SafeBrowsingService::GetB +@@ -86,7 +86,6 @@ base::FilePath SafeBrowsingService::GetB SafeBrowsingService::SafeBrowsingService() : services_delegate_(ServicesDelegate::Create(this)), @@ -1485,7 +1422,7 @@ shutdown_(false), enabled_(false), enabled_by_prefs_(false) {} -@@ -206,8 +205,6 @@ TriggerManager* SafeBrowsingService::tri +@@ -203,8 +202,6 @@ TriggerManager* SafeBrowsingService::tri PasswordProtectionService* SafeBrowsingService::GetPasswordProtectionService( Profile* profile) const { @@ -1494,7 +1431,7 @@ return nullptr; } -@@ -246,15 +243,11 @@ V4ProtocolConfig SafeBrowsingService::Ge +@@ -243,15 +240,11 @@ V4ProtocolConfig SafeBrowsingService::Ge VerdictCacheManager* SafeBrowsingService::GetVerdictCacheManager( Profile* profile) const { @@ -1510,7 +1447,7 @@ return nullptr; } -@@ -369,9 +362,6 @@ void SafeBrowsingService::OnProfileAdded +@@ -340,9 +333,6 @@ void SafeBrowsingService::OnProfileAdded std::unique_ptr registrar = std::make_unique(); registrar->Init(pref_service); @@ -1520,7 +1457,7 @@ // ClientSideDetectionService will need to be refresh the models // renderers have if extended-reporting changes. registrar->Add( -@@ -383,9 +373,6 @@ void SafeBrowsingService::OnProfileAdded +@@ -354,9 +344,6 @@ void SafeBrowsingService::OnProfileAdded prefs_map_[pref_service] = std::move(registrar); RefreshState(); @@ -1529,8 +1466,8 @@ - pref_service->GetBoolean(prefs::kSafeBrowsingEnabled)); // Extended Reporting metrics are handled together elsewhere. RecordExtendedReportingMetrics(*pref_service); - } -@@ -401,16 +388,9 @@ void SafeBrowsingService::RefreshState() + +@@ -395,16 +382,9 @@ void SafeBrowsingService::RefreshState() DCHECK_CURRENTLY_ON(BrowserThread::UI); // Check if any profile requires the service to be active. enabled_by_prefs_ = false; @@ -1550,15 +1487,15 @@ --- a/chrome/browser/safe_browsing/safe_browsing_service.h +++ b/chrome/browser/safe_browsing/safe_browsing_service.h -@@ -23,7 +23,6 @@ - #include "chrome/browser/profiles/profile_manager_observer.h" +@@ -25,7 +25,6 @@ + #include "chrome/browser/profiles/profile_observer.h" #include "chrome/browser/safe_browsing/services_delegate.h" #include "components/safe_browsing/buildflags.h" -#include "components/safe_browsing/common/safe_browsing_prefs.h" #include "components/safe_browsing/db/util.h" #include "components/safe_browsing/safe_browsing_service_interface.h" #include "content/public/browser/browser_thread.h" -@@ -93,15 +92,6 @@ class SafeBrowsingService : public SafeB +@@ -92,15 +91,6 @@ class SafeBrowsingService : public SafeB // Called on the main thread to let us know that the io_thread is going away. void ShutDown(); @@ -1574,7 +1511,7 @@ // Get current enabled status. Must be called on IO thread. bool enabled() const { DCHECK_CURRENTLY_ON(content::BrowserThread::IO); -@@ -267,10 +257,6 @@ class SafeBrowsingService : public SafeB +@@ -268,10 +258,6 @@ class SafeBrowsingService : public SafeB // Provides phishing and malware statistics. Accessed on UI thread. std::unique_ptr ping_manager_; @@ -1616,14 +1553,14 @@ #include "content/public/browser/browser_thread.h" --- a/chrome/browser/safe_browsing/ui_manager.cc +++ b/chrome/browser/safe_browsing/ui_manager.cc -@@ -24,7 +24,6 @@ +@@ -23,7 +23,6 @@ #include "chrome/common/url_constants.h" #include "components/prefs/pref_service.h" #include "components/safe_browsing/browser/threat_details.h" -#include "components/safe_browsing/common/safe_browsing_prefs.h" - #include "components/safe_browsing/features.h" #include "components/safe_browsing/ping_manager.h" #include "components/security_interstitials/content/security_interstitial_tab_helper.h" + #include "content/public/browser/browser_thread.h" --- a/chrome/browser/safe_browsing/ui_manager_unittest.cc +++ b/chrome/browser/safe_browsing/ui_manager_unittest.cc @@ -15,7 +15,6 @@ @@ -1654,7 +1591,7 @@ #include "google_apis/google_api_keys.h" #if defined(OS_CHROMEOS) -@@ -105,7 +104,6 @@ AccountConsistencyModeManager::AccountCo +@@ -86,7 +85,6 @@ AccountConsistencyModeManager::AccountCo bool signin_allowed = prefs->GetBoolean(prefs::kSigninAllowedOnNextStartup) && !base::CommandLine::ForCurrentProcess()->HasSwitch("disallow-signin"); @@ -1662,16 +1599,7 @@ UMA_HISTOGRAM_BOOLEAN("Signin.SigninAllowed", signin_allowed); #endif -@@ -126,7 +124,7 @@ AccountConsistencyModeManager::AccountCo - if (account_consistency_ == AccountConsistencyMethod::kDiceMigration) { - UMA_HISTOGRAM_BOOLEAN( - "Signin.TokenServiceDiceCompatible", -- prefs->GetBoolean(prefs::kTokenServiceDiceCompatible)); -+ false); - } - } - -@@ -288,7 +286,7 @@ AccountConsistencyModeManager::ComputeAc +@@ -221,7 +219,7 @@ AccountConsistencyModeManager::ComputeAc return AccountConsistencyMethod::kDisabled; } @@ -1682,7 +1610,7 @@ return AccountConsistencyMethod::kDisabled; --- a/chrome/browser/signin/account_consistency_mode_manager_unittest.cc +++ b/chrome/browser/signin/account_consistency_mode_manager_unittest.cc -@@ -20,7 +20,6 @@ +@@ -19,7 +19,6 @@ #include "components/prefs/testing_pref_store.h" #include "components/signin/public/base/account_consistency_method.h" #include "components/signin/public/base/signin_buildflags.h" @@ -1777,7 +1705,7 @@ } --- a/chrome/browser/signin/mirror_browsertest.cc +++ b/chrome/browser/signin/mirror_browsertest.cc -@@ -32,7 +32,6 @@ +@@ -31,7 +31,6 @@ #include "components/prefs/pref_service.h" #include "components/signin/core/browser/dice_header_helper.h" #include "components/signin/core/browser/signin_header_helper.h" @@ -1875,121 +1803,54 @@ #include "components/signin/public/identity_manager/primary_account_mutator.h" --- a/chrome/browser/ssl/bad_clock_blocking_page.cc +++ b/chrome/browser/ssl/bad_clock_blocking_page.cc -@@ -13,7 +13,6 @@ - #include "chrome/browser/renderer_preferences_util.h" - #include "chrome/browser/ssl/cert_report_helper.h" +@@ -12,7 +12,6 @@ + #include "chrome/browser/profiles/profile.h" + #include "chrome/browser/ssl/chrome_security_blocking_page_factory.h" #include "chrome/browser/ssl/ssl_error_controller_client.h" -#include "components/safe_browsing/common/safe_browsing_prefs.h" + #include "components/security_interstitials/content/cert_report_helper.h" #include "components/security_interstitials/content/ssl_cert_reporter.h" #include "components/security_interstitials/core/bad_clock_ui.h" - #include "components/security_interstitials/core/metrics_helper.h" --- a/chrome/browser/ssl/captive_portal_blocking_page.cc +++ b/chrome/browser/ssl/captive_portal_blocking_page.cc -@@ -21,7 +21,6 @@ +@@ -18,7 +18,6 @@ #include "chrome/browser/ssl/ssl_error_controller_client.h" #include "components/captive_portal/captive_portal_detector.h" #include "components/captive_portal/captive_portal_metrics.h" -#include "components/safe_browsing/common/safe_browsing_prefs.h" + #include "components/security_interstitials/content/cert_report_helper.h" #include "components/security_interstitials/content/ssl_cert_reporter.h" #include "components/security_interstitials/core/controller_client.h" - #include "components/security_interstitials/core/metrics_helper.h" ---- a/chrome/browser/ssl/cert_report_helper.cc -+++ b/chrome/browser/ssl/cert_report_helper.cc -@@ -20,7 +20,6 @@ - #include "chrome/common/channel_info.h" - #include "chrome/common/pref_names.h" - #include "components/prefs/pref_service.h" --#include "components/safe_browsing/common/safe_browsing_prefs.h" - #include "components/security_interstitials/content/ssl_cert_reporter.h" - #include "components/security_interstitials/core/controller_client.h" - #include "components/security_interstitials/core/metrics_helper.h" -@@ -94,9 +93,7 @@ void CertReportHelper::PopulateExtendedR - if (!show) - return; - -- load_time_data->SetBoolean(security_interstitials::kBoxChecked, -- safe_browsing::IsExtendedReportingEnabled( -- *GetProfile(web_contents_)->GetPrefs())); -+ load_time_data->SetBoolean(security_interstitials::kBoxChecked, false); - - const std::string privacy_link = base::StringPrintf( - security_interstitials::kPrivacyLinkHtml, -@@ -119,14 +116,8 @@ void CertReportHelper::HandleReportingCo - PrefService* pref_service) { - switch (command) { - case security_interstitials::CMD_DO_REPORT: -- safe_browsing::SetExtendedReportingPrefAndMetric( -- pref_service, true, /* value */ -- safe_browsing::SBER_OPTIN_SITE_SECURITY_INTERSTITIAL); - break; - case security_interstitials::CMD_DONT_REPORT: -- safe_browsing::SetExtendedReportingPrefAndMetric( -- pref_service, false, /* value */ -- safe_browsing::SBER_OPTIN_SITE_SECURITY_INTERSTITIAL); - break; - case security_interstitials::CMD_PROCEED: - user_action_ = CertificateErrorReport::USER_PROCEEDED; -@@ -144,8 +135,7 @@ void CertReportHelper::FinishCertCollect - if (!ShouldShowCertificateReporterCheckbox()) - return; - -- if (!safe_browsing::IsExtendedReportingEnabled( -- *GetProfile(web_contents_)->GetPrefs())) -+ if (true) - return; - - if (metrics_helper_) { -@@ -189,9 +179,7 @@ bool CertReportHelper::ShouldShowCertifi - const bool in_incognito = - web_contents_->GetBrowserContext()->IsOffTheRecord(); - const PrefService* pref_service = GetProfile(web_contents_)->GetPrefs(); -- bool can_show_checkbox = -- safe_browsing::IsExtendedReportingOptInAllowed(*pref_service) && -- !safe_browsing::IsExtendedReportingPolicyManaged(*pref_service); -+ bool can_show_checkbox = false; - - return base::FieldTrialList::FindFullName(kFinchExperimentName) == - kFinchGroupShowPossiblySend && --- a/chrome/browser/ssl/certificate_reporting_test_utils.cc +++ b/chrome/browser/ssl/certificate_reporting_test_utils.cc -@@ -17,7 +17,6 @@ - #include "chrome/browser/ssl/cert_report_helper.h" - #include "chrome/browser/ssl/certificate_error_report.h" +@@ -15,7 +15,6 @@ + #include "build/build_config.h" + #include "chrome/browser/profiles/profile.h" #include "components/prefs/pref_service.h" -#include "components/safe_browsing/common/safe_browsing_prefs.h" + #include "components/security_interstitials/content/cert_report_helper.h" + #include "components/security_interstitials/content/certificate_error_report.h" #include "components/variations/variations_associated_data.h" - #include "net/url_request/report_sender.h" - #include "net/url_request/url_request_context.h" --- a/chrome/browser/ssl/mitm_software_blocking_page.cc +++ b/chrome/browser/ssl/mitm_software_blocking_page.cc -@@ -11,7 +11,6 @@ - #include "chrome/browser/renderer_preferences_util.h" - #include "chrome/browser/ssl/cert_report_helper.h" +@@ -10,7 +10,6 @@ + #include "chrome/browser/profiles/profile.h" + #include "chrome/browser/ssl/chrome_security_blocking_page_factory.h" #include "chrome/browser/ssl/ssl_error_controller_client.h" -#include "components/safe_browsing/common/safe_browsing_prefs.h" + #include "components/security_interstitials/content/cert_report_helper.h" #include "components/security_interstitials/content/ssl_cert_reporter.h" #include "components/security_interstitials/core/metrics_helper.h" - #include "components/security_interstitials/core/mitm_software_ui.h" ---- a/chrome/browser/ssl/ssl_blocking_page.cc -+++ b/chrome/browser/ssl/ssl_blocking_page.cc -@@ -22,7 +22,6 @@ - #include "chrome/browser/ssl/chrome_ssl_host_state_delegate_factory.h" - #include "chrome/browser/ssl/ssl_error_controller_client.h" - #include "chrome/common/chrome_switches.h" --#include "components/safe_browsing/common/safe_browsing_prefs.h" - #include "components/security_interstitials/content/ssl_cert_reporter.h" - #include "components/security_interstitials/core/controller_client.h" - #include "components/security_interstitials/core/metrics_helper.h" --- a/chrome/browser/ssl/ssl_browsertest.cc +++ b/chrome/browser/ssl/ssl_browsertest.cc -@@ -90,7 +90,6 @@ +@@ -94,7 +94,6 @@ #include "components/policy/core/common/policy_map.h" #include "components/policy/policy_constants.h" #include "components/prefs/testing_pref_service.h" -#include "components/safe_browsing/common/safe_browsing_prefs.h" + #include "components/security_interstitials/content/cert_report_helper.h" #include "components/security_interstitials/content/security_interstitial_controller_client.h" #include "components/security_interstitials/content/security_interstitial_tab_helper.h" - #include "components/security_interstitials/core/controller_client.h" --- a/chrome/browser/ssl/ssl_error_controller_client.cc +++ b/chrome/browser/ssl/ssl_error_controller_client.cc @@ -22,7 +22,6 @@ @@ -2007,10 +1868,10 @@ #include "components/ntp_snippets/pref_names.h" #include "components/prefs/pref_value_map.h" -#include "components/signin/public/base/signin_pref_names.h" + #include "extensions/buildflags/buildflags.h" namespace { - -@@ -60,9 +59,6 @@ SupervisedUserSettingsPrefMappingEntry k +@@ -57,9 +56,6 @@ SupervisedUserSettingsPrefMappingEntry k supervised_users::kSafeSitesEnabled, prefs::kSupervisedUserSafeSites, }, { @@ -2020,7 +1881,7 @@ supervised_users::kUserName, prefs::kProfileName, }, }; -@@ -130,7 +126,6 @@ void SupervisedUserPrefStore::OnNewSetti +@@ -127,7 +123,6 @@ void SupervisedUserPrefStore::OnNewSetti prefs_->SetInteger(prefs::kForceYouTubeRestrict, safe_search_util::YOUTUBE_RESTRICT_MODERATE); prefs_->SetBoolean(prefs::kHideWebStoreIcon, true); @@ -2049,7 +1910,7 @@ InitCommandState(); -@@ -1392,7 +1387,7 @@ void BrowserCommandController::UpdateSho +@@ -1406,7 +1401,7 @@ void BrowserCommandController::UpdateSho return; command_updater_.UpdateCommandEnabled( @@ -2080,7 +1941,7 @@ #include "ui/events/keycodes/keyboard_codes.h" --- a/chrome/browser/ui/chrome_pages.cc +++ b/chrome/browser/ui/chrome_pages.cc -@@ -69,7 +69,6 @@ +@@ -70,7 +70,6 @@ #if !defined(OS_ANDROID) #include "chrome/browser/signin/identity_manager_factory.h" @@ -2088,7 +1949,7 @@ #include "components/signin/public/identity_manager/identity_manager.h" #endif -@@ -523,13 +522,7 @@ void ShowBrowserSignin(Browser* browser, +@@ -513,13 +512,7 @@ void ShowBrowserSignin(Browser* browser, void ShowBrowserSigninOrSettings(Browser* browser, signin_metrics::AccessPoint access_point) { @@ -2105,14 +1966,14 @@ --- a/chrome/browser/ui/views/download/download_item_view.cc +++ b/chrome/browser/ui/views/download/download_item_view.cc -@@ -46,7 +46,6 @@ +@@ -50,7 +50,6 @@ #include "components/download/public/common/download_item.h" #include "components/prefs/pref_service.h" #include "components/safe_browsing/buildflags.h" -#include "components/safe_browsing/common/safe_browsing_prefs.h" + #include "components/safe_browsing/features.h" #include "components/url_formatter/elide_url.h" #include "components/vector_icons/vector_icons.h" - #include "content/public/browser/download_item_utils.h" --- a/chrome/browser/ui/views/page_info/page_info_bubble_view_sync_browsertest.cc +++ b/chrome/browser/ui/views/page_info/page_info_bubble_view_sync_browsertest.cc @@ -17,7 +17,6 @@ @@ -2125,7 +1986,7 @@ #include "components/signin/public/identity_manager/identity_test_utils.h" --- a/chrome/browser/ui/views/profiles/profile_menu_view.cc +++ b/chrome/browser/ui/views/profiles/profile_menu_view.cc -@@ -45,7 +45,6 @@ +@@ -46,7 +46,6 @@ #include "chrome/grit/generated_resources.h" #include "chrome/grit/theme_resources.h" #include "components/signin/core/browser/signin_error_controller.h" @@ -2133,7 +1994,7 @@ #include "components/signin/public/identity_manager/accounts_mutator.h" #include "components/signin/public/identity_manager/primary_account_mutator.h" #include "components/strings/grit/components_strings.h" -@@ -531,11 +530,6 @@ void ProfileMenuView::BuildAutofillButto +@@ -545,11 +544,6 @@ void ProfileMenuView::BuildAutofillButto void ProfileMenuView::BuildSyncInfo() { Profile* profile = browser()->profile(); @@ -2145,7 +2006,7 @@ signin::IdentityManager* identity_manager = IdentityManagerFactory::GetForProfile(profile); -@@ -894,12 +888,6 @@ void ProfileMenuView::AddCurrentProfileV +@@ -912,12 +906,6 @@ void ProfileMenuView::AddCurrentProfileV IDS_PROFILES_EDIT_SIGNED_IN_PROFILE_ACCESSIBLE_NAME, profile_name, avatar_item.username)); } else { @@ -2160,7 +2021,7 @@ } --- a/chrome/browser/ui/views/profiles/profile_menu_view_browsertest.cc +++ b/chrome/browser/ui/views/profiles/profile_menu_view_browsertest.cc -@@ -49,7 +49,6 @@ +@@ -48,7 +48,6 @@ #include "chrome/test/base/ui_test_utils.h" #include "components/autofill/core/common/autofill_payments_features.h" #include "components/prefs/pref_service.h" @@ -2170,7 +2031,7 @@ #include "components/sync/driver/sync_user_settings.h" --- a/chrome/browser/ui/views/safe_browsing/password_reuse_modal_warning_dialog.cc +++ b/chrome/browser/ui/views/safe_browsing/password_reuse_modal_warning_dialog.cc -@@ -133,7 +133,6 @@ PasswordReuseModalWarningDialog::Passwor +@@ -134,7 +134,6 @@ PasswordReuseModalWarningDialog::Passwor OnWarningDone done_callback) : content::WebContentsObserver(web_contents), done_callback_(std::move(done_callback)), @@ -2178,7 +2039,7 @@ url_(web_contents->GetLastCommittedURL()), password_type_(password_type) { DialogDelegate::set_button_label(ui::DIALOG_BUTTON_OK, -@@ -142,10 +141,6 @@ PasswordReuseModalWarningDialog::Passwor +@@ -143,10 +142,6 @@ PasswordReuseModalWarningDialog::Passwor ui::DIALOG_BUTTON_CANCEL, l10n_util::GetStringUTF16(IDS_PAGE_INFO_IGNORE_PASSWORD_WARNING_BUTTON)); @@ -2186,10 +2047,10 @@ - if (service_) - service_->AddObserver(this); - - views::Label* message_body_label = CreateMessageBodyLabel( - l10n_util::GetStringUTF16(IDS_PAGE_INFO_CHANGE_PASSWORD_DETAILS)); + std::vector placeholder_offsets; -@@ -158,8 +153,6 @@ PasswordReuseModalWarningDialog::Passwor + if (password_type.account_type() == +@@ -165,8 +160,6 @@ PasswordReuseModalWarningDialog::Passwor } PasswordReuseModalWarningDialog::~PasswordReuseModalWarningDialog() { @@ -2200,7 +2061,7 @@ void PasswordReuseModalWarningDialog:: --- a/chrome/browser/ui/views/safe_browsing/password_reuse_modal_warning_dialog.h +++ b/chrome/browser/ui/views/safe_browsing/password_reuse_modal_warning_dialog.h -@@ -61,7 +61,6 @@ class PasswordReuseModalWarningDialog +@@ -63,7 +63,6 @@ class PasswordReuseModalWarningDialog private: OnWarningDone done_callback_; @@ -2262,7 +2123,7 @@ #include "content/public/browser/render_process_host.h" --- a/chrome/browser/ui/webui/management_ui_handler.cc +++ b/chrome/browser/ui/webui/management_ui_handler.cc -@@ -25,7 +25,6 @@ +@@ -24,7 +24,6 @@ #include "chrome/browser/profiles/profile.h" #include "chrome/common/pref_names.h" @@ -2270,7 +2131,7 @@ #include "components/strings/grit/components_strings.h" #include "content/public/browser/storage_partition.h" #include "content/public/browser/web_contents.h" -@@ -594,34 +593,6 @@ base::Value ManagementUIHandler::GetThre +@@ -595,34 +594,6 @@ base::Value ManagementUIHandler::GetThre const policy::PolicyService* policy_service = GetPolicyService(); const auto& chrome_policies = policy_service->GetPolicies( policy::PolicyNamespace(policy::POLICY_DOMAIN_CHROME, std::string())); @@ -2416,7 +2277,7 @@ #include "components/signin/public/identity_manager/accounts_mutator.h" #include "components/signin/public/identity_manager/identity_manager.h" #include "components/signin/public/identity_manager/primary_account_mutator.h" -@@ -337,9 +336,6 @@ void PeopleHandler::RegisterMessages() { +@@ -342,9 +341,6 @@ void PeopleHandler::RegisterMessages() { void PeopleHandler::OnJavascriptAllowed() { PrefService* prefs = profile_->GetPrefs(); profile_pref_registrar_.Init(prefs); @@ -2426,7 +2287,7 @@ signin::IdentityManager* identity_manager( IdentityManagerFactory::GetInstance()->GetForProfile(profile_)); -@@ -1013,7 +1009,7 @@ std::unique_ptr P +@@ -891,7 +887,7 @@ std::unique_ptr P service && service->HasDisableReason( syncer::SyncService::DISABLE_REASON_ENTERPRISE_POLICY); sync_status->SetBoolean( @@ -2437,7 +2298,7 @@ "firstSetupInProgress", --- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc +++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc -@@ -52,7 +52,6 @@ +@@ -54,7 +54,6 @@ #include "components/omnibox/common/omnibox_features.h" #include "components/password_manager/core/browser/manage_passwords_referrer.h" #include "components/password_manager/core/common/password_manager_features.h" @@ -2445,7 +2306,7 @@ #include "components/signin/public/base/signin_buildflags.h" #include "components/strings/grit/components_strings.h" #include "components/subresource_filter/core/browser/subresource_filter_features.h" -@@ -2481,14 +2480,6 @@ void AddPrivacyStrings(content::WebUIDat +@@ -2560,14 +2559,6 @@ void AddPrivacyStrings(content::WebUIDat {"clearBrowsingData", IDS_SETTINGS_CLEAR_BROWSING_DATA}, {"clearBrowsingDataDescription", IDS_SETTINGS_CLEAR_DATA_DESCRIPTION}, {"titleAndCount", IDS_SETTINGS_TITLE_AND_COUNT}, @@ -2470,7 +2331,7 @@ #include "components/signin/public/identity_manager/accounts_mutator.h" #include "components/signin/public/identity_manager/identity_manager.h" #include "components/signin/public/identity_manager/primary_account_mutator.h" -@@ -190,8 +189,7 @@ DiceTurnSyncOnHelper::DiceTurnSyncOnHelp +@@ -189,8 +188,7 @@ DiceTurnSyncOnHelper::DiceTurnSyncOnHelp // last authenticated account of the current profile, then Chrome will show a // confirmation dialog before starting sync. // TODO(skym): Warn for high risk upgrade scenario (https://crbug.com/572754). @@ -2482,7 +2343,7 @@ base::BindOnce(&DiceTurnSyncOnHelper::OnMergeAccountConfirmation, --- a/chrome/browser/ui/webui/signin/dice_turn_sync_on_helper_unittest.cc +++ b/chrome/browser/ui/webui/signin/dice_turn_sync_on_helper_unittest.cc -@@ -30,7 +30,6 @@ +@@ -29,7 +29,6 @@ #include "components/account_id/account_id.h" #include "components/prefs/pref_service.h" #include "components/signin/public/base/signin_metrics.h" @@ -2525,12 +2386,12 @@ ServiceAccessType::EXPLICIT_ACCESS); - password_store->SaveGaiaPasswordHash( - username, base::UTF8ToUTF16(password), +- /*is_primary_account_=*/true, - password_manager::metrics_util::GaiaPasswordHashChange:: - SAVED_ON_CHROME_SIGNIN); -- + if (profiles::IsLockAvailable(profile)) LocalAuth::SetLocalAuthCredentials(profile, password); - } --- a/chrome/browser/ui/webui/signin/signin_error_ui.cc +++ b/chrome/browser/ui/webui/signin/signin_error_ui.cc @@ -22,7 +22,6 @@ @@ -2590,8 +2451,8 @@ -#include "components/signin/public/base/signin_pref_names.h" #include "components/strings/grit/components_strings.h" #include "net/base/url_util.h" - #include "ui/resources/grit/webui_resources.h" -@@ -207,7 +206,7 @@ WelcomeUI::WelcomeUI(content::WebUI* web + +@@ -189,7 +188,7 @@ WelcomeUI::WelcomeUI(content::WebUI* web "returningUserModules", welcome::GetModules(profile).FindKey("returning-user")->GetString()); html_source->AddBoolean( @@ -2609,8 +2470,8 @@ -#include "components/safe_browsing/common/safe_browsing_prefs.h" #include "components/spellcheck/browser/pref_names.h" #include "components/sync_preferences/pref_service_syncable.h" - #include "components/unified_consent/feature.h" -@@ -35,7 +34,6 @@ namespace { + #include "components/unified_consent/unified_consent_metrics.h" +@@ -34,7 +33,6 @@ namespace { std::vector GetSyncedServicePrefNames() { return { prefs::kSearchSuggestEnabled, prefs::kAlternateErrorPagesEnabled, @@ -2683,7 +2544,7 @@ #include "url/origin.h" --- a/components/password_manager/core/browser/password_store.cc +++ b/components/password_manager/core/browser/password_store.cc -@@ -39,7 +39,6 @@ +@@ -41,7 +41,6 @@ #if defined(SYNC_PASSWORD_REUSE_DETECTION_ENABLED) #include "base/strings/string16.h" #include "components/password_manager/core/browser/password_store_signin_notifier.h" @@ -2713,7 +2574,7 @@ using autofill::PasswordForm; --- a/components/password_manager/core/browser/sync_credentials_filter_unittest.cc +++ b/components/password_manager/core/browser/sync_credentials_filter_unittest.cc -@@ -31,7 +31,6 @@ +@@ -32,7 +32,6 @@ #include "testing/gtest/include/gtest/gtest.h" #if defined(SYNC_PASSWORD_REUSE_DETECTION_ENABLED) @@ -2741,8 +2602,8 @@ #include "base/time/time.h" -#include "components/safe_browsing/common/safe_browsing_prefs.h" #include "components/safe_browsing/features.h" + #include "components/safe_browsing/safe_browsing_controller_client.h" #include "components/security_interstitials/content/security_interstitial_controller_client.h" - #include "components/security_interstitials/core/metrics_helper.h" --- a/components/safe_browsing/common/BUILD.gn +++ b/components/safe_browsing/common/BUILD.gn @@ -32,20 +32,8 @@ source_set("common") { @@ -2796,56 +2657,19 @@ bool is_metrics_reporting_active; std::string post_data; ---- a/components/safe_browsing/db/util.cc -+++ b/components/safe_browsing/db/util.cc -@@ -272,18 +272,6 @@ std::string ComposeUrl(const std::string - return url; - } - --std::string ComposeUrl(const std::string& prefix, -- const std::string& method, -- const std::string& client_name, -- const std::string& version, -- const std::string& additional_query, -- ExtendedReportingLevel reporting_level) { -- std::string url = -- ComposeUrl(prefix, method, client_name, version, additional_query); -- url.append(base::StringPrintf("&ext=%d", reporting_level)); -- return url; --} -- - } // namespace ProtocolManagerHelper - - } // namespace safe_browsing --- a/components/safe_browsing/db/util.h +++ b/components/safe_browsing/db/util.h -@@ -19,7 +19,6 @@ +@@ -18,7 +18,6 @@ #include "base/strings/string_piece.h" #include "base/time/time.h" #include "base/trace_event/traced_value.h" -#include "components/safe_browsing/common/safe_browsing_prefs.h" #include "components/safe_browsing/db/v4_protocol_manager_util.h" - class GURL; -@@ -213,15 +212,6 @@ std::string ComposeUrl(const std::string - const std::string& version, - const std::string& additional_query); - --// Similar to above function, and appends "&ext=1" at the end of URL if --// |is_extended_reporting| is true, otherwise, appends "&ext=0". --std::string ComposeUrl(const std::string& prefix, -- const std::string& method, -- const std::string& client_name, -- const std::string& version, -- const std::string& additional_query, -- ExtendedReportingLevel reporting_level); -- - } // namespace ProtocolManagerHelper - - } // namespace safe_browsing + namespace safe_browsing { --- a/components/safe_browsing/db/v4_local_database_manager.cc +++ b/components/safe_browsing/db/v4_local_database_manager.cc -@@ -233,10 +233,9 @@ const V4LocalDatabaseManager* +@@ -231,10 +231,9 @@ const V4LocalDatabaseManager* // static scoped_refptr V4LocalDatabaseManager::Create( @@ -2858,7 +2682,7 @@ } void V4LocalDatabaseManager::CollectDatabaseManagerInfo( -@@ -258,10 +257,8 @@ void V4LocalDatabaseManager::CollectData +@@ -256,10 +255,8 @@ void V4LocalDatabaseManager::CollectData V4LocalDatabaseManager::V4LocalDatabaseManager( const base::FilePath& base_path, @@ -2869,7 +2693,7 @@ list_infos_(GetListInfos()), task_runner_(task_runner_for_tests ? task_runner_for_tests -@@ -1016,8 +1013,7 @@ void V4LocalDatabaseManager::SetupUpdate +@@ -1017,8 +1014,7 @@ void V4LocalDatabaseManager::SetupUpdate weak_factory_.GetWeakPtr()); v4_update_protocol_manager_ = V4UpdateProtocolManager::Create( @@ -2912,7 +2736,7 @@ // information in the full hash request. --- a/components/safe_browsing/db/v4_protocol_manager_util.cc +++ b/components/safe_browsing/db/v4_protocol_manager_util.cc -@@ -87,8 +87,7 @@ void SetSbV4UrlPrefixForTesting(const ch +@@ -88,8 +88,7 @@ void SetSbV4UrlPrefixForTesting(const ch } std::string GetReportUrl(const V4ProtocolConfig& config, @@ -2922,7 +2746,7 @@ std::string url = base::StringPrintf( "%s/%s?client=%s&appver=%s&pver=4.0", kSbReportsURLPrefix, method.c_str(), config.client_name.c_str(), config.version.c_str()); -@@ -97,8 +96,6 @@ std::string GetReportUrl(const V4Protoco +@@ -98,8 +97,6 @@ std::string GetReportUrl(const V4Protoco base::StringAppendF(&url, "&key=%s", net::EscapeQueryParamValue(api_key, true).c_str()); } @@ -3112,7 +2936,7 @@ DISALLOW_COPY_AND_ASSIGN(V4UpdateProtocolManagerFactory); --- a/components/safe_browsing/password_protection/password_protection_service.cc +++ b/components/safe_browsing/password_protection/password_protection_service.cc -@@ -243,11 +243,6 @@ bool PasswordProtectionService::CanSendP +@@ -255,11 +255,6 @@ bool PasswordProtectionService::CanSendP IsPingingEnabled(trigger_type, password_type, reason); // Pinging is enabled for password_reuse trigger level; however we need to // make sure *reason is set appropriately. @@ -3124,7 +2948,7 @@ if (is_pinging_enabled && !IsURLWhitelistedForPasswordEntry(main_frame_url, reason)) { return true; -@@ -426,8 +421,7 @@ PasswordProtectionService::MaybeCreateNa +@@ -449,8 +444,7 @@ PasswordProtectionService::MaybeCreateNa bool PasswordProtectionService::IsWarningEnabled( ReusedPasswordAccountType password_type) { @@ -3157,7 +2981,7 @@ // policy. --- a/components/safe_browsing/ping_manager.cc +++ b/components/safe_browsing/ping_manager.cc -@@ -143,7 +143,7 @@ GURL PingManager::SafeBrowsingHitUrl( +@@ -140,7 +140,7 @@ GURL PingManager::SafeBrowsingHitUrl( hit_report.threat_type == SB_THREAT_TYPE_URL_CLIENT_SIDE_PHISHING || hit_report.threat_type == SB_THREAT_TYPE_URL_CLIENT_SIDE_MALWARE); std::string url = @@ -3168,23 +2992,14 @@ case SB_THREAT_TYPE_URL_MALWARE: --- a/components/safe_browsing/realtime/policy_engine.cc +++ b/components/safe_browsing/realtime/policy_engine.cc -@@ -7,7 +7,6 @@ - #include "base/feature_list.h" +@@ -8,7 +8,6 @@ #include "base/metrics/histogram_macros.h" + #include "build/build_config.h" #include "components/prefs/pref_service.h" -#include "components/safe_browsing/common/safe_browsing_prefs.h" #include "components/safe_browsing/features.h" #include "components/unified_consent/pref_names.h" #include "components/user_prefs/user_prefs.h" -@@ -37,7 +36,7 @@ bool RealTimePolicyEngine::IsUserOptedIn - bool RealTimePolicyEngine::IsEnabledByPolicy( - content::BrowserContext* browser_context) { - PrefService* pref_service = user_prefs::UserPrefs::Get(browser_context); -- return pref_service->GetBoolean(prefs::kSafeBrowsingRealTimeLookupEnabled); -+ return false; - } - - // static --- a/components/safe_browsing/triggers/suspicious_site_trigger_unittest.cc +++ b/components/safe_browsing/triggers/suspicious_site_trigger_unittest.cc @@ -10,7 +10,6 @@ @@ -3299,6 +3114,61 @@ } void SafeBrowsingUIHandler::GetCookie(const base::ListValue* args) { +--- a/components/security_interstitials/content/cert_report_helper.cc ++++ b/components/security_interstitials/content/cert_report_helper.cc +@@ -15,7 +15,6 @@ + #include "build/branding_buildflags.h" + #include "build/build_config.h" + #include "components/prefs/pref_service.h" +-#include "components/safe_browsing/common/safe_browsing_prefs.h" + #include "components/security_interstitials/content/ssl_cert_reporter.h" + #include "components/security_interstitials/core/controller_client.h" + #include "components/security_interstitials/core/metrics_helper.h" +@@ -83,8 +82,7 @@ void CertReportHelper::PopulateExtendedR + return; + + load_time_data->SetBoolean( +- security_interstitials::kBoxChecked, +- safe_browsing::IsExtendedReportingEnabled(*GetPrefs(web_contents_))); ++ security_interstitials::kBoxChecked, false); + + const std::string privacy_link = base::StringPrintf( + security_interstitials::kPrivacyLinkHtml, +@@ -107,14 +105,8 @@ void CertReportHelper::HandleReportingCo + PrefService* pref_service) { + switch (command) { + case security_interstitials::CMD_DO_REPORT: +- safe_browsing::SetExtendedReportingPrefAndMetric( +- pref_service, true, /* value */ +- safe_browsing::SBER_OPTIN_SITE_SECURITY_INTERSTITIAL); + break; + case security_interstitials::CMD_DONT_REPORT: +- safe_browsing::SetExtendedReportingPrefAndMetric( +- pref_service, false, /* value */ +- safe_browsing::SBER_OPTIN_SITE_SECURITY_INTERSTITIAL); + break; + case security_interstitials::CMD_PROCEED: + user_action_ = CertificateErrorReport::USER_PROCEEDED; +@@ -132,7 +124,7 @@ void CertReportHelper::FinishCertCollect + if (!ShouldShowCertificateReporterCheckbox()) + return; + +- if (!safe_browsing::IsExtendedReportingEnabled(*GetPrefs(web_contents_))) ++ if (true) + return; + + if (metrics_helper_) { +@@ -168,9 +160,7 @@ bool CertReportHelper::ShouldShowCertifi + const bool in_incognito = + web_contents_->GetBrowserContext()->IsOffTheRecord(); + const PrefService* pref_service = GetPrefs(web_contents_); +- bool can_show_checkbox = +- safe_browsing::IsExtendedReportingOptInAllowed(*pref_service) && +- !safe_browsing::IsExtendedReportingPolicyManaged(*pref_service); ++ bool can_show_checkbox = false; + + return base::FieldTrialList::FindFullName(kFinchExperimentName) == + kFinchGroupShowPossiblySend && --- a/components/security_interstitials/content/security_interstitial_controller_client.cc +++ b/components/security_interstitials/content/security_interstitial_controller_client.cc @@ -7,7 +7,6 @@ @@ -3382,6 +3252,16 @@ } base::string16 SecurityInterstitialPage::GetFormattedHostName() const { +--- a/components/security_interstitials/content/ssl_blocking_page.cc ++++ b/components/security_interstitials/content/ssl_blocking_page.cc +@@ -12,7 +12,6 @@ + #include "base/metrics/histogram_macros.h" + #include "base/strings/string_number_conversions.h" + #include "base/time/time.h" +-#include "components/safe_browsing/common/safe_browsing_prefs.h" + #include "components/security_interstitials/content/cert_report_helper.h" + #include "components/security_interstitials/content/security_interstitial_controller_client.h" + #include "components/security_interstitials/content/ssl_cert_reporter.h" --- a/components/security_interstitials/core/controller_client.cc +++ b/components/security_interstitials/core/controller_client.cc @@ -36,7 +36,6 @@ MetricsHelper* ControllerClient::metrics @@ -3504,18 +3384,8 @@ #include "components/signin/public/base/signin_client.h" -#include "components/signin/public/base/signin_pref_names.h" - namespace signin { - -@@ -270,8 +269,7 @@ void DiceAccountReconcilorDelegate::OnRe - // Migration happens on startup if the last reconcile was a no-op and the - // refresh tokens are Dice-compatible. - signin_client_->SetReadyForDiceMigration( -- reconcile_is_noop && signin_client_->GetPrefs()->GetBoolean( -- prefs::kTokenServiceDiceCompatible)); -+ reconcile_is_noop && false); - } - - } // namespace signin + const base::Feature kUseMultiloginEndpoint{"UseMultiloginEndpoint", + base::FEATURE_DISABLED_BY_DEFAULT}; --- a/components/signin/core/browser/dice_account_reconcilor_delegate_unittest.cc +++ b/components/signin/core/browser/dice_account_reconcilor_delegate_unittest.cc @@ -8,7 +8,6 @@ @@ -3606,7 +3476,7 @@ } AccountTrackerService::AccountIdMigrationState -@@ -386,14 +378,12 @@ AccountTrackerService::ComputeNewMigrati +@@ -387,14 +379,12 @@ AccountTrackerService::ComputeNewMigrati void AccountTrackerService::SetMigrationState(AccountIdMigrationState state) { DCHECK(state != MIGRATION_DONE || IsMigrationDone()); @@ -3622,7 +3492,7 @@ } base::FilePath AccountTrackerService::GetImagePathFor( -@@ -446,11 +436,10 @@ void AccountTrackerService::RemoveAccoun +@@ -447,11 +437,10 @@ void AccountTrackerService::RemoveAccoun } void AccountTrackerService::LoadFromPrefs() { @@ -3636,7 +3506,7 @@ std::string value; if (dict->GetString(kAccountKeyPath, &value)) { // Ignore incorrectly persisted non-canonical account ids. -@@ -530,13 +519,11 @@ void AccountTrackerService::LoadFromPref +@@ -531,13 +520,11 @@ void AccountTrackerService::LoadFromPref } void AccountTrackerService::SaveToPrefs(const AccountInfo& account_info) { @@ -3652,18 +3522,18 @@ + while (false) { std::string value; if (dict->GetString(kAccountKeyPath, &value) && - value == account_info.account_id.id) -@@ -546,9 +533,6 @@ void AccountTrackerService::SaveToPrefs( + value == account_info.account_id.ToString()) +@@ -547,9 +534,6 @@ void AccountTrackerService::SaveToPrefs( if (!dict) { dict = new base::DictionaryValue(); - update->Append(base::WrapUnique(dict)); - // |dict| is invalidated at this point, so it needs to be reset. - update->GetDictionary(update->GetSize() - 1, &dict); - dict->SetString(kAccountKeyPath, account_info.account_id.id); + dict->SetString(kAccountKeyPath, account_info.account_id.ToString()); } -@@ -569,14 +553,12 @@ void AccountTrackerService::RemoveFromPr +@@ -570,14 +554,12 @@ void AccountTrackerService::RemoveFromPr if (!pref_service_) return; @@ -3675,14 +3545,14 @@ + while (false) { std::string value; if (dict->GetString(kAccountKeyPath, &value) && - value == account_info.account_id.id) { + value == account_info.account_id.ToString()) { - update->Remove(i, nullptr); break; } } --- a/components/signin/internal/identity_manager/account_tracker_service.h +++ b/components/signin/internal/identity_manager/account_tracker_service.h -@@ -216,6 +216,8 @@ class AccountTrackerService { +@@ -222,6 +222,8 @@ class AccountTrackerService { AccountInfoCallback on_account_updated_callback_; AccountInfoCallback on_account_removed_callback_; @@ -3703,7 +3573,7 @@ #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 -@@ -25,7 +25,6 @@ +@@ -26,7 +26,6 @@ #include "components/signin/internal/identity_manager/oauth_multilogin_helper.h" #include "components/signin/internal/identity_manager/ubertoken_fetcher_impl.h" #include "components/signin/public/base/signin_metrics.h" @@ -3711,7 +3581,7 @@ #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" -@@ -421,9 +420,7 @@ GaiaCookieManagerService::GaiaCookieMana +@@ -429,9 +428,7 @@ GaiaCookieManagerService::GaiaCookieMana listAccountsUnexpectedServerResponseRetried_(false), external_cc_result_fetched_(false), list_accounts_stale_(true) { @@ -3722,7 +3592,7 @@ if (!gaia_cookie_last_list_accounts_data.empty()) { if (!gaia::ParseListAccountsData(gaia_cookie_last_list_accounts_data, -@@ -446,8 +443,6 @@ GaiaCookieManagerService::~GaiaCookieMan +@@ -454,8 +451,6 @@ GaiaCookieManagerService::~GaiaCookieMan // static void GaiaCookieManagerService::RegisterPrefs(PrefRegistrySimple* registry) { @@ -3731,7 +3601,7 @@ } void GaiaCookieManagerService::InitCookieListener() { -@@ -817,16 +812,12 @@ void GaiaCookieManagerService::OnListAcc +@@ -833,16 +828,12 @@ void GaiaCookieManagerService::OnListAcc &signed_out_accounts_)) { listed_accounts_.clear(); signed_out_accounts_.clear(); @@ -3760,7 +3630,7 @@ #include "google_apis/gaia/gaia_urls.h" --- a/components/signin/internal/identity_manager/mutable_profile_oauth2_token_service_delegate.cc +++ b/components/signin/internal/identity_manager/mutable_profile_oauth2_token_service_delegate.cc -@@ -18,7 +18,6 @@ +@@ -17,7 +17,6 @@ #include "components/prefs/pref_service.h" #include "components/signin/public/base/signin_client.h" #include "components/signin/public/base/signin_metrics.h" @@ -3768,16 +3638,16 @@ #include "components/signin/public/identity_manager/account_info.h" #include "components/signin/public/webdata/token_web_data.h" #include "components/webdata/common/web_data_service_base.h" -@@ -121,7 +120,7 @@ bool ShouldMigrateToDice(signin::Account - signin::DiceMethodGreaterOrEqual( - account_consistency, - signin::AccountConsistencyMethod::kDiceMigration) && +@@ -118,7 +117,7 @@ signin::LoadCredentialsState LoadCredent + bool ShouldMigrateToDice(signin::AccountConsistencyMethod account_consistency, + PrefService* prefs) { + return account_consistency == signin::AccountConsistencyMethod::kDice && - !prefs->GetBoolean(prefs::kTokenServiceDiceCompatible); + true; } } // namespace -@@ -278,7 +277,6 @@ MutableProfileOAuth2TokenServiceDelegate +@@ -276,7 +275,6 @@ MutableProfileOAuth2TokenServiceDelegate // static void MutableProfileOAuth2TokenServiceDelegate::RegisterProfilePrefs( PrefRegistrySimple* registry) { @@ -3785,7 +3655,7 @@ } std::unique_ptr -@@ -651,9 +649,6 @@ void MutableProfileOAuth2TokenServiceDel +@@ -634,9 +632,6 @@ void MutableProfileOAuth2TokenServiceDel UpdateCredentials(loading_primary_account_id_, old_login_token); } } @@ -3795,18 +3665,16 @@ } void MutableProfileOAuth2TokenServiceDelegate::UpdateCredentials( -@@ -846,10 +841,6 @@ void MutableProfileOAuth2TokenServiceDel +@@ -830,8 +825,6 @@ void MutableProfileOAuth2TokenServiceDel } void MutableProfileOAuth2TokenServiceDelegate::FinishLoadingCredentials() { --#if !defined(OS_CHROMEOS) - if (account_consistency_ == signin::AccountConsistencyMethod::kDice) - DCHECK(client_->GetPrefs()->GetBoolean(prefs::kTokenServiceDiceCompatible)); --#endif FireRefreshTokensLoaded(); } -@@ -880,8 +871,7 @@ void MutableProfileOAuth2TokenServiceDel +@@ -862,8 +855,7 @@ void MutableProfileOAuth2TokenServiceDel LOAD_CREDENTIALS_FINISHED_WITH_DB_CANNOT_BE_OPENED); if (account_consistency_ == signin::AccountConsistencyMethod::kDice && @@ -3818,10 +3686,10 @@ } --- a/components/signin/internal/identity_manager/mutable_profile_oauth2_token_service_delegate_unittest.cc +++ b/components/signin/internal/identity_manager/mutable_profile_oauth2_token_service_delegate_unittest.cc -@@ -26,7 +26,6 @@ +@@ -23,7 +23,6 @@ + #include "components/signin/internal/identity_manager/profile_oauth2_token_service.h" #include "components/signin/public/base/account_consistency_method.h" #include "components/signin/public/base/device_id_helper.h" - #include "components/signin/public/base/signin_buildflags.h" -#include "components/signin/public/base/signin_pref_names.h" #include "components/signin/public/base/test_signin_client.h" #include "components/signin/public/identity_manager/account_info.h" @@ -3901,10 +3769,10 @@ - bool consented = - client_->GetPrefs()->GetBoolean(prefs::kGoogleServicesConsentedToSync); + bool consented = false; + CoreAccountId account_id = CoreAccountId::FromString(pref_account_id); CoreAccountInfo account_info = - account_tracker_service_->GetAccountInfo(CoreAccountId(pref_account_id)); - if (consented) { -@@ -174,8 +138,7 @@ void PrimaryAccountManager::SetAuthentic + account_tracker_service_->GetAccountInfo(account_id); +@@ -175,8 +139,7 @@ void PrimaryAccountManager::SetAuthentic #if DCHECK_IS_ON() { @@ -3914,21 +3782,21 @@ bool consented_to_sync = client_->GetPrefs()->GetBoolean(prefs::kGoogleServicesConsentedToSync); -@@ -191,10 +154,6 @@ void PrimaryAccountManager::SetAuthentic +@@ -192,10 +155,6 @@ void PrimaryAccountManager::SetAuthentic // Go ahead and update the last signed in account info here as well. Once a // user is signed in the corresponding preferences should match. Doing it here // as opposed to on signin allows us to catch the upgrade scenario. - client_->GetPrefs()->SetString(prefs::kGoogleServicesLastAccountId, -- account_info.account_id.id); +- account_info.account_id.ToString()); - client_->GetPrefs()->SetString(prefs::kGoogleServicesLastUsername, - account_info.email); // Commit authenticated account info immediately so that it does not get lost // if Chrome crashes before the next commit interval. -@@ -208,19 +167,10 @@ void PrimaryAccountManager::SetPrimaryAc +@@ -209,19 +168,10 @@ void PrimaryAccountManager::SetPrimaryAc PrefService* prefs = client_->GetPrefs(); - const std::string& account_id = primary_account_info_.account_id.id; + const std::string& account_id = primary_account_info_.account_id.ToString(); - if (account_id.empty()) { - DCHECK(!consented_to_sync); - prefs->ClearPref(prefs::kGoogleServicesAccountId); @@ -3946,12 +3814,12 @@ DCHECK(!consented_pref || !primary_account_info().account_id.empty()); return consented_pref; } -@@ -325,7 +275,6 @@ void PrimaryAccountManager::OnSignoutDec +@@ -326,7 +276,6 @@ void PrimaryAccountManager::OnSignoutDec } const CoreAccountInfo account_info = GetAuthenticatedAccountInfo(); - client_->GetPrefs()->ClearPref(prefs::kGoogleServicesHostedDomain); - SetPrimaryAccountInternal(CoreAccountInfo(), /*consented_to_sync=*/false); + SetPrimaryAccountInternal(account_info, /*consented_to_sync=*/false); // Revoke all tokens before sending signed_out notification, because there --- a/components/signin/internal/identity_manager/primary_account_manager_unittest.cc @@ -4097,7 +3965,7 @@ #include "google_apis/gaia/gaia_urls.h" --- a/components/signin/public/base/BUILD.gn +++ b/components/signin/public/base/BUILD.gn -@@ -29,8 +29,6 @@ static_library("base") { +@@ -31,8 +31,6 @@ static_library("base") { "signin_client.h", "signin_metrics.cc", "signin_metrics.h", @@ -4245,7 +4113,7 @@ #include "components/sync_preferences/testing_pref_service_syncable.h" --- a/tools/metrics/histograms/enums.xml +++ b/tools/metrics/histograms/enums.xml -@@ -61489,7 +61489,6 @@ Full version information for the fingerp +@@ -62680,7 +62680,6 @@ Full version information for the fingerp @@ -4253,7 +4121,7 @@ -@@ -61504,10 +61503,7 @@ Full version information for the fingerp +@@ -62695,10 +62694,7 @@ Full version information for the fingerp diff --git a/patches/core/ungoogled-chromium/use-local-devtools-files.patch b/patches/core/ungoogled-chromium/use-local-devtools-files.patch index 9358b3cc..974393f8 100644 --- a/patches/core/ungoogled-chromium/use-local-devtools-files.patch +++ b/patches/core/ungoogled-chromium/use-local-devtools-files.patch @@ -3,23 +3,8 @@ # This also fixes local debugging with domain substitution # Related comment: https://bugs.chromium.org/p/chromium/issues/detail?id=710701#c14 ---- a/third_party/blink/renderer/devtools/BUILD.gn -+++ b/third_party/blink/renderer/devtools/BUILD.gn -@@ -1621,11 +1621,9 @@ if (!external_devtools_frontend) { - "$resources_out_dir/InspectorBackendCommands.js", - ] - -- # Bundle remote modules in ChromeOS. -- if (is_chromeos) { -+ # Always bundle remote modules. - grd_files += generated_remote_modules + devtools_emulated_devices_images + - lighthouse_locale_files -- } - - inputs = grd_files + devtools_image_files - outfile = "$root_gen_dir/devtools/devtools_resources.grd" ---- a/third_party/blink/renderer/devtools/front_end/audits_worker.json -+++ b/third_party/blink/renderer/devtools/front_end/audits_worker.json +--- a/third_party/devtools-frontend/src/front_end/audits_worker.json ++++ b/third_party/devtools-frontend/src/front_end/audits_worker.json @@ -1,6 +1,6 @@ { "modules": [ @@ -28,9 +13,9 @@ + { "name": "audits_worker" } ] } ---- a/third_party/blink/renderer/devtools/front_end/devtools_app.json -+++ b/third_party/blink/renderer/devtools/front_end/devtools_app.json -@@ -4,23 +4,23 @@ +--- a/third_party/devtools-frontend/src/front_end/devtools_app.json ++++ b/third_party/devtools-frontend/src/front_end/devtools_app.json +@@ -4,16 +4,16 @@ { "name": "inspector_main", "type": "autostart" }, { "name": "mobile_throttling", "type": "autostart" }, @@ -50,33 +35,3 @@ { "name": "har_importer" }, { "name": "help" }, { "name": "layers" }, - { "name": "layer_viewer" }, - { "name": "network" }, - { "name": "performance_monitor" }, -- { "name": "product_registry_impl", "type": "remote" }, -+ { "name": "product_registry_impl" }, - { "name": "resources" }, - { "name": "security" }, - { "name": "timeline" }, ---- a/third_party/blink/renderer/devtools/front_end/shell.json -+++ b/third_party/blink/renderer/devtools/front_end/shell.json -@@ -21,7 +21,7 @@ - - { "name": "changes" }, - { "name": "cm" }, -- { "name": "cm_modes", "type": "remote" }, -+ { "name": "cm_modes" }, - { "name": "color_picker" }, - { "name": "console" }, - { "name": "coverage" }, ---- a/third_party/blink/renderer/devtools/front_end/worker_app.json -+++ b/third_party/blink/renderer/devtools/front_end/worker_app.json -@@ -10,7 +10,7 @@ - { "name": "help" }, - { "name": "layer_viewer" }, - { "name": "network" }, -- { "name": "product_registry_impl", "type": "remote" }, -+ { "name": "product_registry_impl" }, - { "name": "resources" }, - { "name": "timeline" }, - { "name": "timeline_model" } diff --git a/patches/extra/bromite/fingerprinting-flags-client-rects-and-measuretext.patch b/patches/extra/bromite/fingerprinting-flags-client-rects-and-measuretext.patch index 1213e58a..94885020 100644 --- a/patches/extra/bromite/fingerprinting-flags-client-rects-and-measuretext.patch +++ b/patches/extra/bromite/fingerprinting-flags-client-rects-and-measuretext.patch @@ -9,17 +9,17 @@ --- a/chrome/browser/BUILD.gn +++ b/chrome/browser/BUILD.gn -@@ -2146,6 +2146,7 @@ jumbo_static_library("browser") { +@@ -2225,6 +2225,7 @@ jumbo_static_library("browser") { "//third_party/metrics_proto", "//third_party/re2", "//third_party/smhasher:cityhash", + "//third_party/ungoogled:switches", - "//third_party/webrtc_overrides", - "//third_party/webrtc_overrides:init_webrtc", + "//third_party/webrtc_overrides:webrtc_component", "//third_party/widevine/cdm:buildflags", + "//third_party/zlib", --- a/chrome/browser/about_flags.cc +++ b/chrome/browser/about_flags.cc -@@ -148,6 +148,7 @@ +@@ -150,6 +150,7 @@ #include "third_party/blink/public/common/features.h" #include "third_party/blink/public/common/forcedark/forcedark_switches.h" #include "third_party/leveldatabase/leveldb_features.h" @@ -27,7 +27,7 @@ #include "ui/accessibility/accessibility_features.h" #include "ui/accessibility/accessibility_switches.h" #include "ui/base/ui_base_features.h" -@@ -1461,6 +1462,14 @@ const FeatureEntry kFeatureEntries[] = { +@@ -1451,6 +1452,14 @@ const FeatureEntry kFeatureEntries[] = { "Force punycode hostnames", "Force punycode in hostnames instead of Unicode when displaying Internationalized Domain Names (IDNs).", kOsAll, SINGLE_VALUE_TYPE("force-punycode-hostnames")}, @@ -44,17 +44,17 @@ SINGLE_VALUE_TYPE(switches::kIgnoreGpuBlacklist)}, --- a/content/browser/BUILD.gn +++ b/content/browser/BUILD.gn -@@ -205,6 +205,7 @@ jumbo_source_set("browser") { +@@ -208,6 +208,7 @@ jumbo_source_set("browser") { "//third_party/libyuv", "//third_party/re2", "//third_party/sqlite", + "//third_party/ungoogled:switches", - "//third_party/webrtc/modules/desktop_capture:primitives", - "//third_party/webrtc/rtc_base:rtc_base", + "//third_party/webrtc_overrides:webrtc_component", "//third_party/zlib", + "//third_party/zlib/google:zip", --- a/content/browser/renderer_host/render_process_host_impl.cc +++ b/content/browser/renderer_host/render_process_host_impl.cc -@@ -220,6 +220,7 @@ +@@ -225,6 +225,7 @@ #include "third_party/blink/public/common/page/launching_process_state.h" #include "third_party/blink/public/common/user_agent/user_agent_metadata.h" #include "third_party/blink/public/public_buildflags.h" @@ -62,18 +62,18 @@ #include "third_party/skia/include/core/SkBitmap.h" #include "ui/accessibility/accessibility_switches.h" #include "ui/base/ui_base_switches.h" -@@ -3037,6 +3038,8 @@ void RenderProcessHostImpl::PropagateBro +@@ -3147,6 +3148,8 @@ void RenderProcessHostImpl::PropagateBro + switches::kEnableWebGLDraftExtensions, switches::kEnableWebGLImageChromium, - switches::kEnableWebVR, switches::kFileUrlPathAlias, + switches::kFingerprintingClientRectsNoise, + switches::kFingerprintingCanvasMeasureTextNoise, + switches::kForceDarkMode, switches::kForceDeviceScaleFactor, switches::kForceDisableWebRtcApmInAudioService, - switches::kForceDisplayColorProfile, --- a/content/child/BUILD.gn +++ b/content/child/BUILD.gn -@@ -123,6 +123,7 @@ target(link_target_type, "child") { +@@ -125,6 +125,7 @@ target(link_target_type, "child") { "//third_party/blink/public/common", "//third_party/blink/public/strings", "//third_party/ced", @@ -83,7 +83,7 @@ "//ui/events/blink", --- a/content/child/runtime_features.cc +++ b/content/child/runtime_features.cc -@@ -24,6 +24,7 @@ +@@ -26,6 +26,7 @@ #include "services/network/public/cpp/network_switches.h" #include "third_party/blink/public/common/features.h" #include "third_party/blink/public/platform/web_runtime_features.h" @@ -91,7 +91,7 @@ #include "ui/accessibility/accessibility_features.h" #include "ui/base/ui_base_features.h" #include "ui/events/blink/blink_features.h" -@@ -439,6 +440,10 @@ void SetRuntimeFeaturesFromCommandLine(c +@@ -447,6 +448,10 @@ void SetRuntimeFeaturesFromCommandLine(c switches::kEnableAccessibilityObjectModel, true}, {wrf::EnableAllowSyncXHRInPageDismissal, switches::kAllowSyncXHRInPageDismissal, true}, @@ -99,13 +99,13 @@ + switches::kFingerprintingClientRectsNoise, true}, + {wrf::EnableFingerprintingCanvasMeasureTextNoise, + switches::kFingerprintingCanvasMeasureTextNoise, true}, - }; - for (const auto& mapping : switchToFeatureMapping) { - if (command_line.HasSwitch(mapping.switch_name)) + {wrf::EnableShadowDOMV0, switches::kWebComponentsV0Enabled, true}, + {wrf::EnableCustomElementsV0, switches::kWebComponentsV0Enabled, true}, + {wrf::EnableHTMLImports, switches::kWebComponentsV0Enabled, true}, --- a/third_party/blink/public/platform/web_runtime_features.h +++ b/third_party/blink/public/platform/web_runtime_features.h -@@ -229,6 +229,8 @@ class WebRuntimeFeatures { - BLINK_PLATFORM_EXPORT static void EnableMergeBlockingNonBlockingPools(bool); +@@ -226,6 +226,8 @@ class WebRuntimeFeatures { + BLINK_PLATFORM_EXPORT static void EnableTranslateService(bool); BLINK_PLATFORM_EXPORT static void EnableGetDisplayMedia(bool); BLINK_PLATFORM_EXPORT static void EnableAllowSyncXHRInPageDismissal(bool); + BLINK_PLATFORM_EXPORT static void EnableFingerprintingClientRectsNoise(bool); @@ -123,7 +123,7 @@ #include "base/time/time.h" #include "cc/input/overscroll_behavior.h" #include "cc/input/scroll_snap_data.h" -@@ -1236,6 +1237,14 @@ Range* Document::CreateRangeAdjustedToTr +@@ -1307,6 +1308,14 @@ Range* Document::CreateRangeAdjustedToTr Position::BeforeNode(*shadow_host)); } @@ -138,7 +138,7 @@ SelectorQueryCache& Document::GetSelectorQueryCache() { if (!selector_query_cache_) selector_query_cache_ = std::make_unique(); -@@ -2791,6 +2800,15 @@ void Document::UpdateStyleAndLayoutTree( +@@ -2872,6 +2881,15 @@ void Document::UpdateStyleAndLayoutTree( #if DCHECK_IS_ON() AssertLayoutTreeUpdated(*this); #endif @@ -156,7 +156,7 @@ void Document::UpdateActiveStyle() { --- a/third_party/blink/renderer/core/dom/document.h +++ b/third_party/blink/renderer/core/dom/document.h -@@ -414,6 +414,10 @@ class CORE_EXPORT Document : public Cont +@@ -416,6 +416,10 @@ class CORE_EXPORT Document : public Cont has_xml_declaration_ = has_xml_declaration ? 1 : 0; } @@ -167,7 +167,7 @@ String visibilityState() const; bool IsPageVisible() const; bool hidden() const; -@@ -1934,6 +1938,9 @@ class CORE_EXPORT Document : public Cont +@@ -1968,6 +1972,9 @@ class CORE_EXPORT Document : public Cont base::ElapsedTimer start_time_; @@ -179,7 +179,7 @@ HeapVector> current_script_stack_; --- a/third_party/blink/renderer/core/dom/element.cc +++ b/third_party/blink/renderer/core/dom/element.cc -@@ -1877,6 +1877,11 @@ DOMRectList* Element::getClientRects() { +@@ -1902,6 +1902,11 @@ DOMRectList* Element::getClientRects() { DCHECK(element_layout_object); GetDocument().AdjustFloatQuadsForScrollAndAbsoluteZoom( quads, *element_layout_object); @@ -191,7 +191,7 @@ return DOMRectList::Create(quads); } -@@ -1894,6 +1899,9 @@ DOMRect* Element::getBoundingClientRect( +@@ -1919,6 +1924,9 @@ DOMRect* Element::getBoundingClientRect( DCHECK(element_layout_object); GetDocument().AdjustFloatRectForScrollAndAbsoluteZoom(result, *element_layout_object); @@ -266,7 +266,7 @@ const TextDirection&, --- 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 -@@ -818,9 +818,15 @@ TextMetrics* CanvasRenderingContext2D::m +@@ -821,9 +821,15 @@ TextMetrics* CanvasRenderingContext2D::m else direction = ToTextDirection(GetState().GetDirection(), canvas()); @@ -285,17 +285,17 @@ void CanvasRenderingContext2D::DrawTextInternal( --- a/third_party/blink/renderer/platform/BUILD.gn +++ b/third_party/blink/renderer/platform/BUILD.gn -@@ -1490,6 +1490,7 @@ jumbo_component("platform") { +@@ -1519,6 +1519,7 @@ jumbo_component("platform") { "//third_party/emoji-segmenter", "//third_party/icu", "//third_party/libyuv", + "//third_party/ungoogled:switches", - "//third_party/webrtc/api:libjingle_logging_api", - "//third_party/webrtc/api:packet_socket_factory", - "//third_party/webrtc/api/audio_codecs/L16:audio_decoder_L16", + "//third_party/webrtc_overrides:webrtc_component", + "//third_party/zlib/google:compression_utils", + "//ui/base:base", --- a/third_party/blink/renderer/platform/exported/web_runtime_features.cc +++ b/third_party/blink/renderer/platform/exported/web_runtime_features.cc -@@ -704,4 +704,12 @@ void WebRuntimeFeatures::EnableAccelerat +@@ -696,4 +696,12 @@ void WebRuntimeFeatures::EnableAccelerat RuntimeEnabledFeatures::SetAcceleratedSmallCanvasesEnabled(enable); } @@ -310,7 +310,7 @@ } // namespace blink --- a/third_party/blink/renderer/platform/runtime_enabled_features.json5 +++ b/third_party/blink/renderer/platform/runtime_enabled_features.json5 -@@ -693,6 +693,12 @@ +@@ -724,6 +724,12 @@ name: "FileSystem", status: "stable", }, 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 d627ed02..e4255f63 100644 --- a/patches/extra/bromite/flag-fingerprinting-canvas-image-data-noise.patch +++ b/patches/extra/bromite/flag-fingerprinting-canvas-image-data-noise.patch @@ -23,7 +23,7 @@ approach to change color components. --- a/chrome/browser/about_flags.cc +++ b/chrome/browser/about_flags.cc -@@ -1475,6 +1475,10 @@ const FeatureEntry kFeatureEntries[] = { +@@ -1465,6 +1465,10 @@ const FeatureEntry kFeatureEntries[] = { "Enable Canvas::measureText() fingerprint deception", "Scale the output values of Canvas::measureText() with a randomly selected factor in the range -0.0003% to 0.0003%, which are recomputed on every document initialization.", kOsAll, SINGLE_VALUE_TYPE(switches::kFingerprintingCanvasMeasureTextNoise)}, @@ -36,28 +36,28 @@ approach to change color components. SINGLE_VALUE_TYPE(switches::kIgnoreGpuBlacklist)}, --- a/content/browser/renderer_host/render_process_host_impl.cc +++ b/content/browser/renderer_host/render_process_host_impl.cc -@@ -3040,6 +3040,7 @@ void RenderProcessHostImpl::PropagateBro +@@ -3150,6 +3150,7 @@ void RenderProcessHostImpl::PropagateBro switches::kFileUrlPathAlias, switches::kFingerprintingClientRectsNoise, switches::kFingerprintingCanvasMeasureTextNoise, + switches::kFingerprintingCanvasImageDataNoise, + switches::kForceDarkMode, switches::kForceDeviceScaleFactor, switches::kForceDisableWebRtcApmInAudioService, - switches::kForceDisplayColorProfile, --- a/content/child/runtime_features.cc +++ b/content/child/runtime_features.cc -@@ -444,6 +444,8 @@ void SetRuntimeFeaturesFromCommandLine(c +@@ -452,6 +452,8 @@ void SetRuntimeFeaturesFromCommandLine(c switches::kFingerprintingClientRectsNoise, true}, {wrf::EnableFingerprintingCanvasMeasureTextNoise, switches::kFingerprintingCanvasMeasureTextNoise, true}, + {wrf::EnableFingerprintingCanvasImageDataNoise, + switches::kFingerprintingCanvasImageDataNoise, true}, - }; - for (const auto& mapping : switchToFeatureMapping) { - if (command_line.HasSwitch(mapping.switch_name)) + {wrf::EnableShadowDOMV0, switches::kWebComponentsV0Enabled, true}, + {wrf::EnableCustomElementsV0, switches::kWebComponentsV0Enabled, true}, + {wrf::EnableHTMLImports, switches::kWebComponentsV0Enabled, true}, --- a/third_party/blink/public/platform/web_runtime_features.h +++ b/third_party/blink/public/platform/web_runtime_features.h -@@ -231,6 +231,7 @@ class WebRuntimeFeatures { +@@ -228,6 +228,7 @@ class WebRuntimeFeatures { BLINK_PLATFORM_EXPORT static void EnableAllowSyncXHRInPageDismissal(bool); BLINK_PLATFORM_EXPORT static void EnableFingerprintingClientRectsNoise(bool); BLINK_PLATFORM_EXPORT static void EnableFingerprintingCanvasMeasureTextNoise(bool); @@ -67,7 +67,7 @@ approach to change color components. BLINK_PLATFORM_EXPORT static void EnableHTMLImports(bool); --- a/third_party/blink/renderer/platform/BUILD.gn +++ b/third_party/blink/renderer/platform/BUILD.gn -@@ -1454,7 +1454,9 @@ jumbo_component("platform") { +@@ -1478,7 +1478,9 @@ jumbo_component("platform") { "//third_party/blink/renderer:non_test_config", ] @@ -80,7 +80,7 @@ approach to change color components. ":blink_platform_public_deps", --- a/third_party/blink/renderer/platform/exported/web_runtime_features.cc +++ b/third_party/blink/renderer/platform/exported/web_runtime_features.cc -@@ -712,4 +712,8 @@ void WebRuntimeFeatures::EnableFingerpri +@@ -704,4 +704,8 @@ void WebRuntimeFeatures::EnableFingerpri RuntimeEnabledFeatures::SetFingerprintingCanvasMeasureTextNoiseEnabled(enable); } @@ -91,16 +91,16 @@ approach to change color components. } // namespace blink --- a/third_party/blink/renderer/platform/graphics/image_data_buffer.cc +++ b/third_party/blink/renderer/platform/graphics/image_data_buffer.cc -@@ -35,6 +35,8 @@ - #include +@@ -36,6 +36,8 @@ + #include "base/compiler_specific.h" #include "base/memory/ptr_util.h" +#include "base/rand_util.h" +#include "base/logging.h" #include "third_party/blink/renderer/platform/graphics/static_bitmap_image.h" #include "third_party/blink/renderer/platform/image-encoders/image_encoder.h" #include "third_party/blink/renderer/platform/runtime_enabled_features.h" -@@ -127,6 +129,11 @@ bool ImageDataBuffer::EncodeImageInterna +@@ -130,6 +132,11 @@ bool ImageDataBuffer::EncodeImageInterna const SkPixmap& pixmap) const { DCHECK(is_valid_); @@ -123,12 +123,11 @@ approach to change color components. #include "base/numerics/checked_math.h" #include "gpu/command_buffer/client/gles2_interface.h" #include "third_party/blink/renderer/platform/graphics/accelerated_static_bitmap_image.h" -@@ -11,12 +13,14 @@ +@@ -11,11 +13,13 @@ #include "third_party/blink/renderer/platform/graphics/image_observer.h" #include "third_party/blink/renderer/platform/graphics/paint/paint_image.h" #include "third_party/blink/renderer/platform/graphics/unaccelerated_static_bitmap_image.h" +#include "third_party/blink/renderer/platform/runtime_enabled_features.h" - #include "third_party/blink/renderer/platform/wtf/typed_arrays/array_buffer_contents.h" #include "third_party/skia/include/core/SkCanvas.h" #include "third_party/skia/include/core/SkImage.h" #include "third_party/skia/include/core/SkPaint.h" @@ -138,7 +137,7 @@ approach to change color components. #include "v8/include/v8.h" namespace blink { -@@ -141,10 +145,165 @@ bool StaticBitmapImage::ConvertToArrayBu +@@ -117,9 +121,164 @@ bool StaticBitmapImage::CopyToByteArray( DCHECK(read_pixels_successful || !sk_image->bounds().intersect(SkIRect::MakeXYWH( rect.X(), rect.Y(), info.width(), info.height()))); @@ -147,7 +146,6 @@ approach to change color components. + ShuffleSubchannelColorData(result.Data(), info, rect.X(), rect.Y()); + } + - result.Transfer(dest_contents); return true; } @@ -306,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 -@@ -44,6 +44,8 @@ class PLATFORM_EXPORT StaticBitmapImage +@@ -30,6 +30,8 @@ class PLATFORM_EXPORT StaticBitmapImage static scoped_refptr Create(sk_sp data, const SkImageInfo&); @@ -317,7 +315,7 @@ approach to change color components. // Methods overridden by all sub-classes --- a/third_party/blink/renderer/platform/runtime_enabled_features.json5 +++ b/third_party/blink/renderer/platform/runtime_enabled_features.json5 -@@ -699,6 +699,9 @@ +@@ -730,6 +730,9 @@ { name: "FingerprintingCanvasMeasureTextNoise", }, diff --git a/patches/extra/bromite/flag-max-connections-per-host.patch b/patches/extra/bromite/flag-max-connections-per-host.patch index e73271b9..9b3cb010 100644 --- a/patches/extra/bromite/flag-max-connections-per-host.patch +++ b/patches/extra/bromite/flag-max-connections-per-host.patch @@ -17,9 +17,9 @@ with limited CPU/memory resources and it is disabled by default. --- a/chrome/browser/BUILD.gn +++ b/chrome/browser/BUILD.gn -@@ -1981,6 +1981,7 @@ jumbo_static_library("browser") { +@@ -2062,6 +2062,7 @@ jumbo_static_library("browser") { "//components/net_log", - "//components/network_hints/common", + "//components/network_hints/common:mojo_bindings", "//components/network_session_configurator/browser", + "//components/network_session_configurator/common", "//components/network_time", @@ -27,7 +27,7 @@ with limited CPU/memory resources and it is disabled by default. "//components/offline_items_collection/core", --- a/chrome/browser/about_flags.cc +++ b/chrome/browser/about_flags.cc -@@ -701,6 +701,11 @@ const FeatureEntry::Choice kForceEffecti +@@ -739,6 +739,11 @@ const FeatureEntry::Choice kForceEffecti net::kEffectiveConnectionType4G}, }; @@ -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 == -@@ -2449,6 +2454,9 @@ const FeatureEntry kFeatureEntries[] = { +@@ -2440,6 +2445,9 @@ const FeatureEntry kFeatureEntries[] = { flag_descriptions::kAutofillCreditCardUploadDescription, kOsAll, FEATURE_VALUE_TYPE(autofill::features::kAutofillUpstream)}, #endif // TOOLKIT_VIEWS || OS_ANDROID @@ -74,10 +74,10 @@ with limited CPU/memory resources and it is disabled by default. #include "components/network_time/network_time_tracker.h" #include "components/optimization_guide/optimization_guide_features.h" #include "components/optimization_guide/optimization_guide_service.h" -@@ -131,6 +134,7 @@ - #include "extensions/buildflags/buildflags.h" +@@ -132,6 +135,7 @@ #include "extensions/common/constants.h" #include "media/media_buildflags.h" + #include "mojo/public/cpp/bindings/pending_receiver.h" +#include "net/socket/client_socket_pool_manager.h" #include "ppapi/buildflags/buildflags.h" #include "printing/buildflags/buildflags.h" @@ -103,9 +103,9 @@ with limited CPU/memory resources and it is disabled by default. --- a/chrome/browser/flag_descriptions.cc +++ b/chrome/browser/flag_descriptions.cc -@@ -1262,6 +1262,10 @@ const char kLookalikeUrlNavigationSugges - const char kMarkHttpAsName[] = "Mark non-secure origins as non-secure"; - const char kMarkHttpAsDescription[] = "Change the UI treatment for HTTP pages"; +@@ -1266,6 +1266,10 @@ extern const char kMediaInspectorLogging + "project; #enable-devtools-experiments must also be enabled as well on " + "desktop platforms"; +const char kMaxConnectionsPerHostName[] = "Maximum connections per host"; +const char kMaxConnectionsPerHostDescription[] = @@ -116,9 +116,9 @@ with limited CPU/memory resources and it is disabled by default. const char kMediaRouterCastAllowAllIPsDescription[] = --- a/chrome/browser/flag_descriptions.h +++ b/chrome/browser/flag_descriptions.h -@@ -767,6 +767,9 @@ extern const char kMarkHttpAsWarning[]; - extern const char kMarkHttpAsWarningAndDangerousOnFormEdits[]; - extern const char kMarkHttpAsWarningAndDangerousOnPasswordsAndCreditCards[]; +@@ -766,6 +766,9 @@ extern const char kMarkHttpAsWarningAndD + extern const char kMediaInspectorLoggingName[]; + extern const char kMediaInspectorLoggingDescription[]; +extern const char kMaxConnectionsPerHostName[]; +extern const char kMaxConnectionsPerHostDescription[]; diff --git a/patches/extra/debian/disable/fuzzers.patch b/patches/extra/debian/disable/fuzzers.patch index 31467a38..c0f756b1 100644 --- a/patches/extra/debian/disable/fuzzers.patch +++ b/patches/extra/debian/disable/fuzzers.patch @@ -15,7 +15,7 @@ author: Michael Gilbert "//testing/libfuzzer/fuzzers", --- a/content/test/BUILD.gn +++ b/content/test/BUILD.gn -@@ -2404,12 +2404,6 @@ test("content_perftests") { +@@ -2308,12 +2308,6 @@ test("content_perftests") { } } diff --git a/patches/extra/debian/disable/google-api-warning.patch b/patches/extra/debian/disable/google-api-warning.patch index 29705eef..fab856fd 100644 --- a/patches/extra/debian/disable/google-api-warning.patch +++ b/patches/extra/debian/disable/google-api-warning.patch @@ -3,7 +3,7 @@ author: Michael Gilbert --- a/chrome/browser/ui/startup/startup_browser_creator_impl.cc +++ b/chrome/browser/ui/startup/startup_browser_creator_impl.cc -@@ -845,10 +845,6 @@ void StartupBrowserCreatorImpl::AddInfoB +@@ -855,10 +855,6 @@ void StartupBrowserCreatorImpl::AddInfoB InfoBarService* infobar_service = InfoBarService::FromWebContents(web_contents); diff --git a/patches/extra/debian/disable/welcome-page.patch b/patches/extra/debian/disable/welcome-page.patch index 8d2e4944..7cf72626 100644 --- a/patches/extra/debian/disable/welcome-page.patch +++ b/patches/extra/debian/disable/welcome-page.patch @@ -4,7 +4,7 @@ bug-debian: http://bugs.debian.org/857767 --- a/chrome/browser/profiles/profile_manager.cc +++ b/chrome/browser/profiles/profile_manager.cc -@@ -1054,7 +1054,7 @@ void ProfileManager::InitProfileUserPref +@@ -1055,7 +1055,7 @@ void ProfileManager::InitProfileUserPref profile->GetPrefs()->SetString(prefs::kSupervisedUserId, supervised_user_id); } diff --git a/patches/extra/inox-patchset/0006-modify-default-prefs.patch b/patches/extra/inox-patchset/0006-modify-default-prefs.patch index 6763d954..a7d6760d 100644 --- a/patches/extra/inox-patchset/0006-modify-default-prefs.patch +++ b/patches/extra/inox-patchset/0006-modify-default-prefs.patch @@ -1,7 +1,7 @@ --- a/chrome/browser/background/background_mode_manager.cc +++ b/chrome/browser/background/background_mode_manager.cc -@@ -302,7 +302,7 @@ void BackgroundModeManager::RegisterPref +@@ -310,7 +310,7 @@ void BackgroundModeManager::RegisterPref registry->RegisterBooleanPref(prefs::kChromeCreatedLoginItem, false); registry->RegisterBooleanPref(prefs::kMigratedLoginItemPref, false); #endif @@ -12,7 +12,7 @@ void BackgroundModeManager::RegisterProfile(Profile* profile) { --- a/chrome/browser/chrome_content_browser_client.cc +++ b/chrome/browser/chrome_content_browser_client.cc -@@ -1115,7 +1115,7 @@ void ChromeContentBrowserClient::Registe +@@ -1144,7 +1144,7 @@ void ChromeContentBrowserClient::Registe void ChromeContentBrowserClient::RegisterProfilePrefs( user_prefs::PrefRegistrySyncable* registry) { registry->RegisterBooleanPref(prefs::kDisable3DAPIs, false); @@ -67,7 +67,7 @@ --- a/chrome/browser/signin/account_consistency_mode_manager.cc +++ b/chrome/browser/signin/account_consistency_mode_manager.cc -@@ -150,7 +150,7 @@ void AccountConsistencyModeManager::Regi +@@ -118,7 +118,7 @@ void AccountConsistencyModeManager::Regi registry->RegisterBooleanPref(prefs::kAccountConsistencyMirrorRequired, false); #endif @@ -94,7 +94,7 @@ registry->RegisterDictionaryPref(prefs::kAppWindowPlacement); --- a/chrome/browser/ui/navigation_correction_tab_observer.cc +++ b/chrome/browser/ui/navigation_correction_tab_observer.cc -@@ -43,7 +43,7 @@ NavigationCorrectionTabObserver::~Naviga +@@ -57,7 +57,7 @@ void NavigationCorrectionTabObserver::Se // static void NavigationCorrectionTabObserver::RegisterProfilePrefs( user_prefs::PrefRegistrySyncable* prefs) { @@ -129,7 +129,7 @@ prefs::kCloudPrintXmppPingEnabled, false); --- a/components/autofill/core/common/autofill_prefs.cc +++ b/components/autofill/core/common/autofill_prefs.cc -@@ -136,10 +136,10 @@ const char kAutocompleteLastVersionReten +@@ -131,10 +131,10 @@ const char kAutocompleteLastVersionReten void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { // Synced prefs. Used for cross-device choices, e.g., credit card Autofill. registry->RegisterBooleanPref( @@ -142,7 +142,7 @@ user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); registry->RegisterIntegerPref( prefs::kAutofillLastVersionDeduped, 0, -@@ -152,7 +152,7 @@ void RegisterProfilePrefs(user_prefs::Pr +@@ -147,7 +147,7 @@ void RegisterProfilePrefs(user_prefs::Pr prefs::kAutofillLastVersionDisusedAddressesDeleted, 0, user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); registry->RegisterBooleanPref( @@ -181,9 +181,9 @@ prefs::kCookieControlsMode, --- a/components/password_manager/core/browser/password_manager.cc +++ b/components/password_manager/core/browser/password_manager.cc -@@ -155,10 +155,10 @@ void PasswordManager::RegisterProfilePre - registry->RegisterBooleanPref(prefs::kBlacklistedCredentialsNormalized, - false); +@@ -178,10 +178,10 @@ void AddLocallySavedPredictions(FieldInf + void PasswordManager::RegisterProfilePrefs( + user_prefs::PrefRegistrySyncable* registry) { registry->RegisterBooleanPref( - prefs::kCredentialsEnableService, true, + prefs::kCredentialsEnableService, false, @@ -207,13 +207,13 @@ --- a/extensions/common/extension.cc +++ b/extensions/common/extension.cc -@@ -365,14 +365,6 @@ bool Extension::ShouldDisplayInExtension - if (is_theme()) +@@ -333,14 +333,6 @@ bool Extension::ShouldDisplayInExtension + if (type == Manifest::TYPE_THEME) return false; - // Hide component extensions because they are only extensions as an - // implementation detail of Chrome. -- if (extensions::Manifest::IsComponentLocation(location()) && +- if (Manifest::IsComponentLocation(location) && - !base::CommandLine::ForCurrentProcess()->HasSwitch( - switches::kShowComponentExtensionOptions)) { - return false; diff --git a/patches/extra/inox-patchset/0011-add-duckduckgo-search-engine.patch b/patches/extra/inox-patchset/0011-add-duckduckgo-search-engine.patch index d1694555..58844657 100644 --- a/patches/extra/inox-patchset/0011-add-duckduckgo-search-engine.patch +++ b/patches/extra/inox-patchset/0011-add-duckduckgo-search-engine.patch @@ -191,7 +191,7 @@ const PrepopulatedEngine* const engines_CZ[] = { + &duckduckgo, &google, - &seznam, + &seznam_cz, &bing, @@ -211,30 +219,31 @@ const PrepopulatedEngine* const engines_ diff --git a/patches/extra/inox-patchset/0018-disable-first-run-behaviour.patch b/patches/extra/inox-patchset/0018-disable-first-run-behaviour.patch index f242c73d..a0e4ae87 100644 --- a/patches/extra/inox-patchset/0018-disable-first-run-behaviour.patch +++ b/patches/extra/inox-patchset/0018-disable-first-run-behaviour.patch @@ -1,6 +1,6 @@ --- a/chrome/browser/ui/startup/startup_tab_provider.cc +++ b/chrome/browser/ui/startup/startup_tab_provider.cc -@@ -45,7 +45,7 @@ bool ProfileHasOtherTabbedBrowser(Profil +@@ -46,7 +46,7 @@ bool ProfileHasOtherTabbedBrowser(Profil StartupTabs StartupTabProviderImpl::GetOnboardingTabs(Profile* profile) const { // Chrome OS has its own welcome flow provided by OOBE. diff --git a/patches/extra/iridium-browser/browser-disable-profile-auto-import-on-first-run.patch b/patches/extra/iridium-browser/browser-disable-profile-auto-import-on-first-run.patch index f073bd7c..39c54d03 100644 --- a/patches/extra/iridium-browser/browser-disable-profile-auto-import-on-first-run.patch +++ b/patches/extra/iridium-browser/browser-disable-profile-auto-import-on-first-run.patch @@ -9,7 +9,7 @@ Subject: [PATCH 56/66] browser: disable profile auto-import on first run --- a/chrome/browser/chrome_browser_main.cc +++ b/chrome/browser/chrome_browser_main.cc -@@ -1568,8 +1568,6 @@ int ChromeBrowserMainParts::PreMainMessa +@@ -1580,8 +1580,6 @@ int ChromeBrowserMainParts::PreMainMessa // and preferences have been registered since some of the import code depends // on preferences. if (first_run::IsChromeFirstRun()) { diff --git a/patches/extra/iridium-browser/prefs-only-keep-cookies-until-exit.patch b/patches/extra/iridium-browser/prefs-only-keep-cookies-until-exit.patch index fc6d44f4..f292e730 100644 --- a/patches/extra/iridium-browser/prefs-only-keep-cookies-until-exit.patch +++ b/patches/extra/iridium-browser/prefs-only-keep-cookies-until-exit.patch @@ -14,8 +14,8 @@ Out with all those tracking cookies! // WARNING: The string names of the permissions passed in below are used to // generate preference names and should never be changed! -- Register(CONTENT_SETTINGS_TYPE_COOKIES, "cookies", CONTENT_SETTING_ALLOW, -+ Register(CONTENT_SETTINGS_TYPE_COOKIES, "cookies", CONTENT_SETTING_SESSION_ONLY, +- Register(ContentSettingsType::COOKIES, "cookies", CONTENT_SETTING_ALLOW, ++ Register(ContentSettingsType::COOKIES, "cookies", CONTENT_SETTING_SESSION_ONLY, WebsiteSettingsInfo::SYNCABLE, WhitelistedSchemes(kChromeUIScheme, kChromeDevToolsScheme), ValidSettings(CONTENT_SETTING_ALLOW, CONTENT_SETTING_BLOCK, diff --git a/patches/extra/iridium-browser/updater-disable-auto-update.patch b/patches/extra/iridium-browser/updater-disable-auto-update.patch index c3e84a33..cb4184b4 100644 --- a/patches/extra/iridium-browser/updater-disable-auto-update.patch +++ b/patches/extra/iridium-browser/updater-disable-auto-update.patch @@ -16,7 +16,7 @@ the case anyway, since we are based off Chromium, not Chrome. --- a/chrome/browser/app_controller_mac.mm +++ b/chrome/browser/app_controller_mac.mm -@@ -660,7 +660,7 @@ static base::mac::ScopedObjCClassSwizzle +@@ -661,7 +661,7 @@ static base::mac::ScopedObjCClassSwizzle CFStringRef checkInterval = CFSTR("checkInterval"); CFPropertyListRef plist = CFPreferencesCopyAppValue(checkInterval, app); if (!plist) { diff --git a/patches/extra/ungoogled-chromium/add-flag-for-search-engine-collection.patch b/patches/extra/ungoogled-chromium/add-flag-for-search-engine-collection.patch index d9daedb2..add5b74d 100644 --- a/patches/extra/ungoogled-chromium/add-flag-for-search-engine-collection.patch +++ b/patches/extra/ungoogled-chromium/add-flag-for-search-engine-collection.patch @@ -2,7 +2,7 @@ --- a/chrome/browser/about_flags.cc +++ b/chrome/browser/about_flags.cc -@@ -1430,6 +1430,10 @@ const FeatureEntry kFeatureEntries[] = { +@@ -1420,6 +1420,10 @@ const FeatureEntry kFeatureEntries[] = { "Enable stacking in tab strip", "Forces tabs to be stacked in the tab strip. Otherwise, they follow default behavior.", kOsAll, SINGLE_VALUE_TYPE("enable-stacked-tab-strip")}, @@ -15,7 +15,7 @@ SINGLE_VALUE_TYPE(switches::kIgnoreGpuBlacklist)}, --- a/chrome/renderer/chrome_render_frame_observer.cc +++ b/chrome/renderer/chrome_render_frame_observer.cc -@@ -153,9 +153,10 @@ ChromeRenderFrameObserver::ChromeRenderF +@@ -152,9 +152,10 @@ ChromeRenderFrameObserver::ChromeRenderF if (!render_frame->IsMainFrame()) return; @@ -72,7 +72,7 @@ #include "base/debug/crash_logging.h" #include "base/format_macros.h" #include "base/metrics/histogram_macros.h" -@@ -200,6 +201,12 @@ bool IsCreatedByExtension(const Template +@@ -199,6 +200,12 @@ bool IsCreatedByExtension(const Template template_url->type() == TemplateURL::OMNIBOX_API_EXTENSION; } @@ -85,15 +85,15 @@ } // namespace // TemplateURLService::LessWithPrefix ----------------------------------------- -@@ -285,6 +292,7 @@ TemplateURLService::TemplateURLService( - rappor::RapporServiceImpl* rappor_service, +@@ -283,6 +290,7 @@ TemplateURLService::TemplateURLService( + std::unique_ptr client, const base::Closure& dsp_change_callback) : prefs_(prefs), + should_autocollect_(true), search_terms_data_(std::move(search_terms_data)), web_data_service_(web_data_service), client_(std::move(client)), -@@ -349,7 +357,7 @@ bool TemplateURLService::CanAddAutogener +@@ -346,7 +354,7 @@ bool TemplateURLService::CanAddAutogener if (existing_url) { // We already have a TemplateURL for this keyword. Only allow it to be // replaced if the TemplateURL can be replaced. @@ -102,7 +102,7 @@ } // We don't have a TemplateURL with keyword. We still may not allow this -@@ -358,8 +366,8 @@ bool TemplateURLService::CanAddAutogener +@@ -355,8 +363,8 @@ bool TemplateURLService::CanAddAutogener // that may interfere with search queries). An easy heuristic for this is // whether the user has a TemplateURL that has been manually modified (e.g., // renamed) connected to the same host. @@ -113,7 +113,7 @@ } bool TemplateURLService::IsPrepopulatedOrCreatedByPolicy( -@@ -1407,6 +1415,8 @@ SyncDataMap TemplateURLService::CreateGU +@@ -1396,6 +1404,8 @@ SyncDataMap TemplateURLService::CreateGU void TemplateURLService::Init(const Initializer* initializers, int num_initializers) { @@ -122,7 +122,7 @@ if (client_) client_->SetOwner(this); -@@ -1631,6 +1641,9 @@ void TemplateURLService::ChangeToLoadedS +@@ -1620,6 +1630,9 @@ void TemplateURLService::ChangeToLoadedS bool TemplateURLService::CanAddAutogeneratedKeywordForHost( const std::string& host) const { @@ -132,7 +132,7 @@ const TemplateURLSet* urls = provider_map_->GetURLsForHost(host); if (!urls) return true; -@@ -1641,7 +1654,8 @@ bool TemplateURLService::CanAddAutogener +@@ -1630,7 +1643,8 @@ bool TemplateURLService::CanAddAutogener } bool TemplateURLService::CanReplace(const TemplateURL* t_url) const { @@ -144,7 +144,7 @@ TemplateURL* TemplateURLService::FindNonExtensionTemplateURLForKeyword( --- a/components/search_engines/template_url_service.h +++ b/components/search_engines/template_url_service.h -@@ -733,6 +733,8 @@ class TemplateURLService : public WebDat +@@ -728,6 +728,8 @@ class TemplateURLService : public WebDat // ---------- Browser state related members --------------------------------- PrefService* prefs_ = nullptr; 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 2bbec2c1..96045fb6 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 @@ -3,7 +3,7 @@ --- a/chrome/browser/about_flags.cc +++ b/chrome/browser/about_flags.cc -@@ -241,6 +241,16 @@ const unsigned kOsDesktop = kOsMac | kOs +@@ -243,6 +243,16 @@ const unsigned kOsDesktop = kOsMac | kOs const unsigned kOsAura = kOsWin | kOsLinux | kOsCrOS; #endif // USE_AURA || OS_ANDROID @@ -20,7 +20,7 @@ const FeatureEntry::Choice kTouchEventFeatureDetectionChoices[] = { {flags_ui::kGenericExperimentChoiceDisabled, "", ""}, {flags_ui::kGenericExperimentChoiceEnabled, -@@ -1412,6 +1422,10 @@ const FeatureEntry::Choice kEnableCrOSAc +@@ -1402,6 +1412,10 @@ const FeatureEntry::Choice kEnableCrOSAc // // When adding a new choice, add it to the end of the list. const FeatureEntry kFeatureEntries[] = { @@ -107,7 +107,7 @@ #include "base/logging.h" #include "base/metrics/histogram_macros.h" #include "base/stl_util.h" -@@ -169,6 +170,13 @@ bool ExtensionManagement::IsInstallation +@@ -189,6 +190,13 @@ bool ExtensionManagement::IsInstallation bool ExtensionManagement::IsOffstoreInstallAllowed( const GURL& url, const GURL& referrer_url) const { diff --git a/patches/extra/ungoogled-chromium/add-flag-to-force-punycode-hostnames.patch b/patches/extra/ungoogled-chromium/add-flag-to-force-punycode-hostnames.patch index 908c0a6b..4d6655f5 100644 --- a/patches/extra/ungoogled-chromium/add-flag-to-force-punycode-hostnames.patch +++ b/patches/extra/ungoogled-chromium/add-flag-to-force-punycode-hostnames.patch @@ -2,7 +2,7 @@ --- a/chrome/browser/about_flags.cc +++ b/chrome/browser/about_flags.cc -@@ -1434,6 +1434,10 @@ const FeatureEntry kFeatureEntries[] = { +@@ -1424,6 +1424,10 @@ const FeatureEntry kFeatureEntries[] = { "Disable search engine collection", "Prevents search engines from being added automatically.", kOsAll, SINGLE_VALUE_TYPE("disable-search-engine-collection")}, @@ -23,17 +23,17 @@ #include "base/lazy_instance.h" #include "base/numerics/safe_conversions.h" #include "base/stl_util.h" -@@ -244,6 +245,13 @@ IDNConversionResult IDNToUnicodeWithAdju - input16.reserve(host.length()); - input16.insert(input16.end(), host.begin(), host.end()); +@@ -267,6 +268,13 @@ IDNConversionResult IDNToUnicodeWithAdju + host16.reserve(host.length()); + host16.insert(host16.end(), host.begin(), host.end()); + if (base::CommandLine::ForCurrentProcess()->HasSwitch("force-punycode-hostnames")) { + // Leave as punycode. + IDNConversionResult result; -+ result.result = input16; ++ result.result = host16; + return result; + } + - bool is_tld_ascii = true; - size_t last_dot = host.rfind('.'); - if (last_dot != base::StringPiece::npos && + // Compute the top level domain to be used in spoof checks later. + base::StringPiece top_level_domain; + base::string16 top_level_domain_unicode; diff --git a/patches/extra/ungoogled-chromium/add-flag-to-hide-crashed-bubble.patch b/patches/extra/ungoogled-chromium/add-flag-to-hide-crashed-bubble.patch index 8f97a532..bfb44507 100644 --- a/patches/extra/ungoogled-chromium/add-flag-to-hide-crashed-bubble.patch +++ b/patches/extra/ungoogled-chromium/add-flag-to-hide-crashed-bubble.patch @@ -3,13 +3,13 @@ --- a/chrome/browser/ui/startup/startup_browser_creator_impl.cc +++ b/chrome/browser/ui/startup/startup_browser_creator_impl.cc -@@ -816,7 +816,8 @@ void StartupBrowserCreatorImpl::AddInfoB +@@ -827,7 +827,8 @@ void StartupBrowserCreatorImpl::AddInfoB if (!browser || !profile_ || browser->tab_strip_model()->count() == 0) return; -- if (HasPendingUncleanExit(browser->profile())) { +- if (HasPendingUncleanExit(browser->profile())) + if (HasPendingUncleanExit(browser->profile()) && -+ !command_line_.HasSwitch("hide-crashed-bubble")) { - SessionCrashedBubble::Show(browser); - } ++ !command_line_.HasSwitch("hide-crashed-bubble")) + SessionCrashedBubble::ShowIfNotOffTheRecordProfile(browser); + bool show_bad_flags_security_warnings = ShouldShowBadFlagsSecurityWarnings(); diff --git a/patches/extra/ungoogled-chromium/add-flag-to-scroll-tabs.patch b/patches/extra/ungoogled-chromium/add-flag-to-scroll-tabs.patch index fd23167f..908a5322 100644 --- a/patches/extra/ungoogled-chromium/add-flag-to-scroll-tabs.patch +++ b/patches/extra/ungoogled-chromium/add-flag-to-scroll-tabs.patch @@ -1,6 +1,6 @@ --- a/chrome/browser/about_flags.cc +++ b/chrome/browser/about_flags.cc -@@ -264,6 +264,16 @@ const FeatureEntry::Choice kShowAvatarBu +@@ -266,6 +266,16 @@ const FeatureEntry::Choice kShowAvatarBu "never"} }; @@ -17,7 +17,7 @@ const FeatureEntry::Choice kTouchEventFeatureDetectionChoices[] = { {flags_ui::kGenericExperimentChoiceDisabled, "", ""}, {flags_ui::kGenericExperimentChoiceEnabled, -@@ -3642,6 +3652,11 @@ const FeatureEntry kFeatureEntries[] = { +@@ -3630,6 +3640,11 @@ const FeatureEntry kFeatureEntries[] = { FEATURE_VALUE_TYPE( autofill::features::kAutofillEnableAccountWalletStorage)}, @@ -67,9 +67,9 @@ + scroll_event_changes_tab_ = ShouldScrollChangesTab(); +} - BrowserRootView::~BrowserRootView() = default; - -@@ -244,7 +259,7 @@ const char* BrowserRootView::GetClassNam + BrowserRootView::~BrowserRootView() { + // It's possible to destroy the browser while a drop is active. In this case, +@@ -251,7 +266,7 @@ const char* BrowserRootView::GetClassNam } bool BrowserRootView::OnMouseWheel(const ui::MouseWheelEvent& event) { diff --git a/patches/extra/ungoogled-chromium/add-flag-to-show-avatar-button.patch b/patches/extra/ungoogled-chromium/add-flag-to-show-avatar-button.patch index 2f967d5c..cc04c25b 100644 --- a/patches/extra/ungoogled-chromium/add-flag-to-show-avatar-button.patch +++ b/patches/extra/ungoogled-chromium/add-flag-to-show-avatar-button.patch @@ -1,6 +1,6 @@ --- a/chrome/browser/about_flags.cc +++ b/chrome/browser/about_flags.cc -@@ -251,6 +251,19 @@ const FeatureEntry::Choice kExtensionHan +@@ -253,6 +253,19 @@ const FeatureEntry::Choice kExtensionHan "always-prompt-for-install"}, }; @@ -20,7 +20,7 @@ const FeatureEntry::Choice kTouchEventFeatureDetectionChoices[] = { {flags_ui::kGenericExperimentChoiceDisabled, "", ""}, {flags_ui::kGenericExperimentChoiceEnabled, -@@ -3739,6 +3752,11 @@ const FeatureEntry kFeatureEntries[] = { +@@ -3724,6 +3737,11 @@ const FeatureEntry kFeatureEntries[] = { FEATURE_VALUE_TYPE(arc::kEnableUnifiedAudioFocusFeature)}, #endif // defined(OS_CHROMEOS) @@ -34,7 +34,7 @@ flag_descriptions::kUseAngleDescription, kOsWin, --- a/chrome/browser/ui/views/toolbar/toolbar_view.cc +++ b/chrome/browser/ui/views/toolbar/toolbar_view.cc -@@ -265,6 +265,15 @@ void ToolbarView::Init() { +@@ -217,6 +217,15 @@ void ToolbarView::Init() { std::unique_ptr toolbar_account_icon_container; @@ -50,7 +50,7 @@ bool show_avatar_toolbar_button = true; if (base::FeatureList::IsEnabled( autofill::features::kAutofillEnableToolbarStatusChip)) { -@@ -276,11 +285,17 @@ void ToolbarView::Init() { +@@ -228,11 +237,17 @@ void ToolbarView::Init() { } else { #if defined(OS_CHROMEOS) // ChromeOS only badges Incognito and Guest icons in the browser window. diff --git a/patches/extra/ungoogled-chromium/add-flag-to-stack-tabs.patch b/patches/extra/ungoogled-chromium/add-flag-to-stack-tabs.patch index 1b0bbf64..5d787e28 100644 --- a/patches/extra/ungoogled-chromium/add-flag-to-stack-tabs.patch +++ b/patches/extra/ungoogled-chromium/add-flag-to-stack-tabs.patch @@ -2,7 +2,7 @@ --- a/chrome/browser/about_flags.cc +++ b/chrome/browser/about_flags.cc -@@ -1412,6 +1412,10 @@ const FeatureEntry::Choice kEnableCrOSAc +@@ -1402,6 +1402,10 @@ const FeatureEntry::Choice kEnableCrOSAc // // When adding a new choice, add it to the end of the list. const FeatureEntry kFeatureEntries[] = { @@ -15,7 +15,7 @@ SINGLE_VALUE_TYPE(switches::kIgnoreGpuBlacklist)}, --- a/chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc +++ b/chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc -@@ -69,14 +69,13 @@ using content::WebContents; +@@ -71,14 +71,13 @@ using content::WebContents; namespace { bool DetermineTabStripLayoutStacked(PrefService* prefs, bool* adjust_layout) { diff --git a/patches/extra/ungoogled-chromium/add-ipv6-probing-option.patch b/patches/extra/ungoogled-chromium/add-ipv6-probing-option.patch index 73c28317..3a6f1234 100644 --- a/patches/extra/ungoogled-chromium/add-ipv6-probing-option.patch +++ b/patches/extra/ungoogled-chromium/add-ipv6-probing-option.patch @@ -11,7 +11,7 @@ #include "base/compiler_specific.h" #include "base/containers/linked_list.h" #include "base/debug/debugger.h" -@@ -123,11 +124,6 @@ const unsigned kMinimumTTLSeconds = kCac +@@ -128,11 +129,6 @@ const unsigned kMinimumTTLSeconds = kCac // cached. const int kIPv6ProbePeriodMs = 1000; @@ -23,12 +23,12 @@ enum DnsResolveStatus { RESOLVE_STATUS_DNS_SUCCESS = 0, RESOLVE_STATUS_PROC_SUCCESS, -@@ -3270,7 +3266,7 @@ bool HostResolverManager::IsIPv6Reachabl +@@ -3565,7 +3561,7 @@ bool HostResolverManager::IsIPv6Reachabl if ((tick_clock_->NowTicks() - last_ipv6_probe_time_).InMilliseconds() > kIPv6ProbePeriodMs) { - last_ipv6_probe_result_ = -- IsGloballyReachable(IPAddress(kIPv6ProbeAddress), net_log); -+ !base::CommandLine::ForCurrentProcess()->HasSwitch("set-ipv6-probe-false"); - last_ipv6_probe_time_ = tick_clock_->NowTicks(); + SetLastIPv6ProbeResult( +- IsGloballyReachable(IPAddress(kIPv6ProbeAddress), net_log)); ++ !base::CommandLine::ForCurrentProcess()->HasSwitch("set-ipv6-probe-false")); cached = false; } + net_log.AddEvent( diff --git a/patches/extra/ungoogled-chromium/add-suggestions-url-field.patch b/patches/extra/ungoogled-chromium/add-suggestions-url-field.patch index 1a1660c9..a5d2044c 100644 --- a/patches/extra/ungoogled-chromium/add-suggestions-url-field.patch +++ b/patches/extra/ungoogled-chromium/add-suggestions-url-field.patch @@ -130,7 +130,7 @@ bool EditSearchEngineController::IsKeywordValid( const base::string16& keyword_input) const { base::string16 keyword_input_trimmed( -@@ -81,10 +90,12 @@ bool EditSearchEngineController::IsKeywo +@@ -88,10 +97,12 @@ bool EditSearchEngineController::IsKeywo void EditSearchEngineController::AcceptAddOrEdit( const base::string16& title_input, const base::string16& keyword_input, @@ -144,7 +144,7 @@ TemplateURLService* template_url_service = TemplateURLServiceFactory::GetForProfile(profile_); -@@ -112,7 +123,8 @@ void EditSearchEngineController::AcceptA +@@ -119,7 +130,8 @@ void EditSearchEngineController::AcceptA } else { // Adding or modifying an entry via the Delegate. edit_keyword_delegate_->OnEditedKeyword(template_url_, title_input, @@ -417,7 +417,7 @@ --- a/components/search_engines/template_url_service.cc +++ b/components/search_engines/template_url_service.cc -@@ -608,7 +608,8 @@ void TemplateURLService::IncrementUsageC +@@ -605,7 +605,8 @@ void TemplateURLService::IncrementUsageC void TemplateURLService::ResetTemplateURL(TemplateURL* url, const base::string16& title, const base::string16& keyword, @@ -427,7 +427,7 @@ DCHECK(!IsCreatedByExtension(url)); DCHECK(!keyword.empty()); DCHECK(!search_url.empty()); -@@ -622,6 +623,7 @@ void TemplateURLService::ResetTemplateUR +@@ -619,6 +620,7 @@ void TemplateURLService::ResetTemplateUR } data.safe_for_autoreplace = false; data.last_modified = clock_->Now(); @@ -435,7 +435,7 @@ Update(url, TemplateURL(data)); } -@@ -1991,7 +1993,7 @@ TemplateURL* TemplateURLService::Add(std +@@ -1980,7 +1982,7 @@ TemplateURL* TemplateURLService::Add(std // Neither engine can be replaced. Uniquify the existing keyword. base::string16 new_keyword = UniquifyKeyword(*existing_turl, false); ResetTemplateURL(existing_turl, existing_turl->short_name(), @@ -446,7 +446,7 @@ } --- a/components/search_engines/template_url_service.h +++ b/components/search_engines/template_url_service.h -@@ -252,7 +252,8 @@ class TemplateURLService : public WebDat +@@ -247,7 +247,8 @@ class TemplateURLService : public WebDat void ResetTemplateURL(TemplateURL* url, const base::string16& title, const base::string16& keyword, diff --git a/patches/extra/ungoogled-chromium/default-to-https-scheme.patch b/patches/extra/ungoogled-chromium/default-to-https-scheme.patch index fe4439fa..005c6518 100644 --- a/patches/extra/ungoogled-chromium/default-to-https-scheme.patch +++ b/patches/extra/ungoogled-chromium/default-to-https-scheme.patch @@ -8,7 +8,7 @@ --- a/chrome/browser/resources/bookmarks/edit_dialog.js +++ b/chrome/browser/resources/bookmarks/edit_dialog.js -@@ -95,7 +95,7 @@ Polymer({ +@@ -111,7 +111,7 @@ Polymer({ /** * Validates the value of the URL field, returning true if it is a valid URL. @@ -17,7 +17,7 @@ * @return {boolean} * @private */ -@@ -107,7 +107,7 @@ Polymer({ +@@ -123,7 +123,7 @@ Polymer({ return true; } diff --git a/patches/extra/ungoogled-chromium/disable-formatting-in-omnibox.patch b/patches/extra/ungoogled-chromium/disable-formatting-in-omnibox.patch index a4adaeb5..f4fe408a 100644 --- a/patches/extra/ungoogled-chromium/disable-formatting-in-omnibox.patch +++ b/patches/extra/ungoogled-chromium/disable-formatting-in-omnibox.patch @@ -2,7 +2,7 @@ --- a/components/url_formatter/url_formatter.cc +++ b/components/url_formatter/url_formatter.cc -@@ -433,14 +433,14 @@ bool IDNToUnicodeOneComponent(const base +@@ -460,14 +460,14 @@ bool IDNToUnicodeOneComponent(const base } // namespace const FormatUrlType kFormatUrlOmitNothing = 0; diff --git a/patches/extra/ungoogled-chromium/disable-intranet-redirect-detector.patch b/patches/extra/ungoogled-chromium/disable-intranet-redirect-detector.patch index dc75caf2..adf492e2 100644 --- a/patches/extra/ungoogled-chromium/disable-intranet-redirect-detector.patch +++ b/patches/extra/ungoogled-chromium/disable-intranet-redirect-detector.patch @@ -3,7 +3,7 @@ --- a/chrome/browser/intranet_redirect_detector.cc +++ b/chrome/browser/intranet_redirect_detector.cc -@@ -96,9 +96,7 @@ void IntranetRedirectDetector::FinishSle +@@ -115,9 +115,7 @@ void IntranetRedirectDetector::FinishSle simple_loaders_.clear(); resulting_origins_.clear(); diff --git a/patches/extra/ungoogled-chromium/disable-webgl-renderer-info.patch b/patches/extra/ungoogled-chromium/disable-webgl-renderer-info.patch index 8a20d47f..c809f139 100644 --- a/patches/extra/ungoogled-chromium/disable-webgl-renderer-info.patch +++ b/patches/extra/ungoogled-chromium/disable-webgl-renderer-info.patch @@ -3,7 +3,7 @@ --- a/third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.cc +++ b/third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.cc -@@ -3347,16 +3347,14 @@ ScriptValue WebGLRenderingContextBase::g +@@ -3343,16 +3343,14 @@ ScriptValue WebGLRenderingContextBase::g return ScriptValue::CreateNull(script_state->GetIsolate()); case WebGLDebugRendererInfo::kUnmaskedRendererWebgl: if (ExtensionEnabled(kWebGLDebugRendererInfoName)) diff --git a/patches/extra/ungoogled-chromium/enable-page-saving-on-more-pages.patch b/patches/extra/ungoogled-chromium/enable-page-saving-on-more-pages.patch index d34ab051..ffc939cb 100644 --- a/patches/extra/ungoogled-chromium/enable-page-saving-on-more-pages.patch +++ b/patches/extra/ungoogled-chromium/enable-page-saving-on-more-pages.patch @@ -2,7 +2,7 @@ --- a/chrome/browser/ui/browser_commands.cc +++ b/chrome/browser/ui/browser_commands.cc -@@ -377,12 +377,6 @@ int GetContentRestrictions(const Browser +@@ -382,12 +382,6 @@ int GetContentRestrictions(const Browser CoreTabHelper* core_tab_helper = CoreTabHelper::FromWebContents(current_tab); content_restrictions = core_tab_helper->content_restrictions(); @@ -15,7 +15,7 @@ if (current_tab->ShowingInterstitialPage()) content_restrictions |= CONTENT_RESTRICTION_PRINT; } -@@ -1026,8 +1020,7 @@ bool CanSavePage(const Browser* browser) +@@ -1055,8 +1049,7 @@ bool CanSavePage(const Browser* browser) prefs::kAllowFileSelectionDialogs)) { return false; } @@ -66,7 +66,7 @@ // These lists are lazily initialized below and are leaked on shutdown to --- a/content/public/common/url_utils.cc +++ b/content/public/common/url_utils.cc -@@ -25,11 +25,7 @@ bool HasWebUIScheme(const GURL& url) { +@@ -28,11 +28,7 @@ bool HasWebUIScheme(const GURL& url) { } bool IsSavableURL(const GURL& url) { diff --git a/patches/extra/ungoogled-chromium/enable-paste-and-go-new-tab-button.patch b/patches/extra/ungoogled-chromium/enable-paste-and-go-new-tab-button.patch index 3a0799df..d1341ad0 100644 --- a/patches/extra/ungoogled-chromium/enable-paste-and-go-new-tab-button.patch +++ b/patches/extra/ungoogled-chromium/enable-paste-and-go-new-tab-button.patch @@ -13,7 +13,7 @@ AddChildView(std::make_unique()); --- a/chrome/browser/ui/views/tabs/tab_strip.cc +++ b/chrome/browser/ui/views/tabs/tab_strip.cc -@@ -3046,15 +3046,12 @@ void TabStrip::ButtonPressed(views::Butt +@@ -3219,15 +3219,12 @@ void TabStrip::ButtonPressed(views::Butt const ui::MouseEvent& mouse = static_cast(event); if (mouse.IsOnlyMiddleMouseButton()) { diff --git a/patches/extra/ungoogled-chromium/popups-to-tabs.patch b/patches/extra/ungoogled-chromium/popups-to-tabs.patch index 5873ce4b..7a3a68a6 100644 --- a/patches/extra/ungoogled-chromium/popups-to-tabs.patch +++ b/patches/extra/ungoogled-chromium/popups-to-tabs.patch @@ -2,7 +2,7 @@ --- a/content/renderer/render_view_impl.cc +++ b/content/renderer/render_view_impl.cc -@@ -279,7 +279,7 @@ WindowOpenDisposition RenderViewImpl::Na +@@ -275,7 +275,7 @@ WindowOpenDisposition RenderViewImpl::Na case blink::kWebNavigationPolicyNewWindow: return WindowOpenDisposition::NEW_WINDOW; case blink::kWebNavigationPolicyNewPopup: diff --git a/patches/extra/ungoogled-chromium/remove-disable-setuid-sandbox-as-bad-flag.patch b/patches/extra/ungoogled-chromium/remove-disable-setuid-sandbox-as-bad-flag.patch index 9a2b1206..500b7a13 100644 --- a/patches/extra/ungoogled-chromium/remove-disable-setuid-sandbox-as-bad-flag.patch +++ b/patches/extra/ungoogled-chromium/remove-disable-setuid-sandbox-as-bad-flag.patch @@ -2,7 +2,7 @@ --- a/chrome/browser/ui/startup/bad_flags_prompt.cc +++ b/chrome/browser/ui/startup/bad_flags_prompt.cc -@@ -60,7 +60,6 @@ static const char* kBadFlags[] = { +@@ -59,7 +59,6 @@ static const char* kBadFlags[] = { // These flags disable sandbox-related security. service_manager::switches::kDisableGpuSandbox, service_manager::switches::kDisableSeccompFilterSandbox, diff --git a/patches/extra/ungoogled-chromium/searx.patch b/patches/extra/ungoogled-chromium/searx.patch index 29cd3da5..a7350051 100644 --- a/patches/extra/ungoogled-chromium/searx.patch +++ b/patches/extra/ungoogled-chromium/searx.patch @@ -211,7 +211,7 @@ + &searx, &duckduckgo, &google, - &seznam, + &seznam_cz, @@ -219,6 +240,7 @@ const PrepopulatedEngine* const engines_ // Germany