From 45b7fe33fcca66111d3f1bba4b75e5438362dd80 Mon Sep 17 00:00:00 2001 From: Shokara Kou Date: Wed, 8 Jun 2022 08:43:41 -0400 Subject: update ugc to 100.0.4896.75 --- www/chromium-uc/Makefile | 2 +- www/chromium-uc/distinfo | 4 +- .../bromite/disable-fetching-field-trials.patch | 10 +- .../patches/core/debian/disable/unrar.patch | 24 +- .../0001-fix-building-without-safebrowsing.patch | 307 ++-- .../0003-disable-autofill-download-manager.patch | 12 +- .../0005-disable-default-extensions.patch | 26 +- .../0007-disable-web-resource-service.patch | 4 +- .../0009-disable-google-ipv6-probes.patch | 6 +- .../inox-patchset/0015-disable-update-pings.patch | 6 +- .../0017-disable-new-avatar-menu.patch | 4 +- .../core/inox-patchset/0021-disable-rlz.patch | 10 +- ...trk-prefixes-to-possibly-evil-connections.patch | 357 ++-- .../safe_browsing-disable-incident-reporting.patch | 24 +- ...ng-disable-reporting-of-safebrowsing-over.patch | 8 +- .../core/ungoogled-chromium/block-requests.patch | 32 +- .../block-trk-and-subdomains.patch | 120 +- .../disable-crash-reporter.patch | 6 +- .../disable-domain-reliability.patch | 44 +- .../core/ungoogled-chromium/disable-floc.patch | 78 - .../disable-fonts-googleapis-references.patch | 38 +- .../core/ungoogled-chromium/disable-gaia.patch | 9 +- .../core/ungoogled-chromium/disable-gcm.patch | 6 +- .../disable-google-host-detection.patch | 67 +- .../ungoogled-chromium/disable-mei-preload.patch | 10 +- .../disable-network-time-tracker.patch | 6 +- .../disable-privacy-sandbox.patch | 70 +- .../disable-profile-avatar-downloading.patch | 4 +- .../core/ungoogled-chromium/disable-signin.patch | 6 +- .../disable-untraceable-urls.patch | 47 +- .../disable-webrtc-log-uploader.patch | 4 +- .../ungoogled-chromium/disable-webstore-urls.patch | 65 +- .../core/ungoogled-chromium/doh-changes.patch | 26 +- .../fix-building-with-prunned-binaries.patch | 16 +- .../fix-building-without-enabling-reporting.patch | 215 --- .../fix-building-without-one-click-signin.patch | 16 +- .../fix-building-without-safebrowsing.patch | 837 +++++---- .../fix-learn-doubleclick-hsts.patch | 4 +- .../remove-unused-preferences-fields.patch | 1837 +++++++++++--------- ...eplace-google-search-engine-with-nosearch.patch | 6 +- .../toggle-translation-via-switch.patch | 28 +- ...inting-flags-client-rects-and-measuretext.patch | 132 +- ...ag-fingerprinting-canvas-image-data-noise.patch | 66 +- .../bromite/flag-max-connections-per-host.patch | 64 +- .../extra/debian/disable/google-api-warning.patch | 6 +- .../extra/debian/disable/welcome-page.patch | 8 +- .../extra/debian/fixes/connection-message.patch | 4 +- .../patches/extra/debian/gn/parallel.patch | 4 +- .../inox-patchset/0006-modify-default-prefs.patch | 108 +- .../inox-patchset/0008-restore-classic-ntp.patch | 10 +- .../0013-disable-missing-key-warning.patch | 4 +- .../inox-patchset/0016-chromium-sandbox-pie.patch | 6 +- .../0018-disable-first-run-behaviour.patch | 6 +- .../0019-disable-battery-status-service.patch | 10 +- .../iridium-browser/Remove-EV-certificates.patch | 26 +- ...-disable-profile-auto-import-on-first-run.patch | 14 +- ...il-force-text-x-suse-ymp-to-be-downloaded.patch | 4 +- ...crease-default-key-length-for-newly-gener.patch | 6 +- ...s-prompt-for-download-directory-by-defaul.patch | 6 +- .../prefs-only-keep-cookies-until-exit.patch | 10 +- .../updater-disable-auto-update.patch | 4 +- .../add-components-ungoogled.patch | 6 +- .../add-extra-channel-info.patch | 4 +- .../add-flag-for-bookmark-bar-ntp.patch | 14 +- .../add-flag-for-close-confirmation.patch | 34 +- .../add-flag-for-custom-ntp.patch | 22 +- .../add-flag-for-grab-handle.patch | 12 +- ...d-flag-for-omnibox-autocomplete-filtering.patch | 30 +- .../add-flag-for-pdf-plugin-name.patch | 82 +- .../add-flag-for-qr-generator.patch | 32 +- .../add-flag-for-search-engine-collection.patch | 38 +- .../add-flag-for-tab-hover-cards.patch | 24 +- .../add-flag-for-tabsearch-button.patch | 26 +- .../add-flag-to-clear-data-on-exit.patch | 36 +- .../add-flag-to-close-window-with-last-tab.patch | 18 +- ...d-flag-to-configure-extension-downloading.patch | 34 +- .../add-flag-to-convert-popups-to-tabs.patch | 27 +- .../add-flag-to-disable-beforeunload.patch | 14 +- ...-flag-to-disable-local-history-expiration.patch | 12 +- .../add-flag-to-force-punycode-hostnames.patch | 16 +- .../add-flag-to-hide-crashed-bubble.patch | 20 +- .../add-flag-to-hide-tab-close-buttons.patch | 38 +- .../add-flag-to-scroll-tabs.patch | 22 +- .../add-flag-to-show-avatar-button.patch | 18 +- .../add-flag-to-stack-tabs.patch | 33 - .../add-ipv6-probing-option.patch | 32 +- .../add-suggestions-url-field.patch | 116 +- .../add-ungoogled-flag-headers.patch | 18 +- .../disable-dial-repeating-discovery.patch | 18 +- .../disable-download-quarantine.patch | 73 +- .../disable-formatting-in-omnibox.patch | 6 +- .../disable-intranet-redirect-detector.patch | 4 +- .../disable-remote-optimization-guide.patch | 11 + .../disable-webgl-renderer-info.patch | 8 +- .../enable-default-prefetch-privacy-changes.patch | 6 +- .../enable-menu-on-reload-button.patch | 6 +- .../enable-page-saving-on-more-pages.patch | 29 +- .../enable-paste-and-go-new-tab-button.patch | 16 +- ...ilding-without-mdns-and-service-discovery.patch | 4 +- .../ungoogled-chromium/fix-distilled-icons.patch | 4 +- .../ungoogled-chromium/keep-expired-flags.patch | 8 +- .../prepopulated-search-engines.patch | 10 +- ...remove-disable-setuid-sandbox-as-bad-flag.patch | 8 +- .../ungoogled-chromium/remove-uneeded-ui.patch | 177 +- 104 files changed, 2934 insertions(+), 3131 deletions(-) delete mode 100644 www/chromium-uc/patches/core/ungoogled-chromium/disable-floc.patch delete mode 100644 www/chromium-uc/patches/core/ungoogled-chromium/fix-building-without-enabling-reporting.patch delete mode 100644 www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-stack-tabs.patch create mode 100644 www/chromium-uc/patches/extra/ungoogled-chromium/disable-remote-optimization-guide.patch diff --git a/www/chromium-uc/Makefile b/www/chromium-uc/Makefile index f52c0c8..4580fda 100644 --- a/www/chromium-uc/Makefile +++ b/www/chromium-uc/Makefile @@ -8,7 +8,7 @@ DPB_PROPERTIES= parallel parallel2 COMMENT= Chromium browser -V= 96.0.4664.110 +V= 100.0.4896.75 REVISION= 1 diff --git a/www/chromium-uc/distinfo b/www/chromium-uc/distinfo index 7dfdeb3..8c1134d 100644 --- a/www/chromium-uc/distinfo +++ b/www/chromium-uc/distinfo @@ -1,2 +1,2 @@ -SHA256 (chromium-96.0.4664.110.tar.xz) = NqmdKcLpOpl1vlNkjyzT/6TuQ3MPIXouftiMGQGmceg= -SIZE (chromium-96.0.4664.110.tar.xz) = 1209944416 +SHA256 (chromium-100.0.4896.75.tar.xz) = JE7TUt+qGrax8Id8SIT9F6p9cTP6UvEpqfsBMl6gwMA= +SIZE (chromium-100.0.4896.75.tar.xz) = 1358118152 diff --git a/www/chromium-uc/patches/core/bromite/disable-fetching-field-trials.patch b/www/chromium-uc/patches/core/bromite/disable-fetching-field-trials.patch index ebb9aec..ada54c2 100644 --- a/www/chromium-uc/patches/core/bromite/disable-fetching-field-trials.patch +++ b/www/chromium-uc/patches/core/bromite/disable-fetching-field-trials.patch @@ -8,8 +8,8 @@ Subject: Disable fetching of all field trials .../variations/service/variations_service.cc | 12 +----------- 2 files changed, 5 insertions(+), 26 deletions(-) ---- chrome/browser/flags/android/java/src/org/chromium/chrome/browser/flags/ChromeFeatureList.java.orig -+++ chrome/browser/flags/android/java/src/org/chromium/chrome/browser/flags/ChromeFeatureList.java +--- a/chrome/browser/flags/android/java/src/org/chromium/chrome/browser/flags/ChromeFeatureList.java ++++ b/chrome/browser/flags/android/java/src/org/chromium/chrome/browser/flags/ChromeFeatureList.java @@ -105,11 +105,7 @@ public abstract class ChromeFeatureList * the specified parameter does not exist. */ @@ -65,9 +65,9 @@ Subject: Disable fetching of all field trials } /* Alphabetical: */ ---- components/variations/service/variations_service.cc.orig -+++ components/variations/service/variations_service.cc -@@ -238,17 +238,7 @@ bool GetInstanceManipulations(const net: +--- a/components/variations/service/variations_service.cc ++++ b/components/variations/service/variations_service.cc +@@ -234,17 +234,7 @@ bool GetInstanceManipulations(const net: // Variations seed fetching is only enabled in official Chrome builds, if a URL // is specified on the command line, and for testing. bool IsFetchingEnabled() { diff --git a/www/chromium-uc/patches/core/debian/disable/unrar.patch b/www/chromium-uc/patches/core/debian/disable/unrar.patch index a87c2a8..e2164c0 100644 --- a/www/chromium-uc/patches/core/debian/disable/unrar.patch +++ b/www/chromium-uc/patches/core/debian/disable/unrar.patch @@ -2,19 +2,19 @@ description: disable support for safe browsing inspection of rar files author: Michael Gilbert bug: http://bugs.debian.org/914487 ---- chrome/browser/safe_browsing/download_protection/file_analyzer.cc.orig -+++ chrome/browser/safe_browsing/download_protection/file_analyzer.cc -@@ -95,7 +95,7 @@ void FileAnalyzer::Start(const base::Fil +--- a/chrome/browser/safe_browsing/download_protection/file_analyzer.cc ++++ b/chrome/browser/safe_browsing/download_protection/file_analyzer.cc +@@ -97,7 +97,7 @@ void FileAnalyzer::Start(const base::Fil if (inspection_type == DownloadFileType::ZIP) { StartExtractZipFeatures(); } else if (inspection_type == DownloadFileType::RAR) { - StartExtractRarFeatures(); + LOG(WARNING) << "Safebrowser inspection of rar files is disabled in this build"; - #if defined(OS_MAC) + #if BUILDFLAG(IS_MAC) } else if (inspection_type == DownloadFileType::DMG) { StartExtractDmgFeatures(); ---- chrome/common/safe_browsing/BUILD.gn.orig -+++ chrome/common/safe_browsing/BUILD.gn +--- a/chrome/common/safe_browsing/BUILD.gn ++++ b/chrome/common/safe_browsing/BUILD.gn @@ -58,39 +58,6 @@ if (safe_browsing_mode == 1) { public_deps = [ "//components/safe_browsing/core/common/proto:csd_proto" ] } @@ -63,17 +63,17 @@ bug: http://bugs.debian.org/914487 "//components/safe_browsing/core/common", ] ---- chrome/services/file_util/safe_archive_analyzer.cc.orig -+++ chrome/services/file_util/safe_archive_analyzer.cc -@@ -7,7 +7,6 @@ - #include "base/macros.h" +--- a/chrome/services/file_util/safe_archive_analyzer.cc ++++ b/chrome/services/file_util/safe_archive_analyzer.cc +@@ -6,7 +6,6 @@ + #include "build/build_config.h" #include "chrome/common/safe_browsing/archive_analyzer_results.h" -#include "chrome/common/safe_browsing/rar_analyzer.h" #include "chrome/common/safe_browsing/zip_analyzer.h" - #if defined(OS_MAC) -@@ -47,8 +46,7 @@ void SafeArchiveAnalyzer::AnalyzeRarFile + #if BUILDFLAG(IS_MAC) +@@ -46,8 +45,7 @@ void SafeArchiveAnalyzer::AnalyzeRarFile AnalyzeRarFileCallback callback) { DCHECK(rar_file.IsValid()); diff --git a/www/chromium-uc/patches/core/inox-patchset/0001-fix-building-without-safebrowsing.patch b/www/chromium-uc/patches/core/inox-patchset/0001-fix-building-without-safebrowsing.patch index 18fc72a..855718c 100644 --- a/www/chromium-uc/patches/core/inox-patchset/0001-fix-building-without-safebrowsing.patch +++ b/www/chromium-uc/patches/core/inox-patchset/0001-fix-building-without-safebrowsing.patch @@ -1,6 +1,6 @@ ---- chrome/browser/BUILD.gn.orig -+++ chrome/browser/BUILD.gn -@@ -2195,7 +2195,6 @@ static_library("browser") { +--- a/chrome/browser/BUILD.gn ++++ b/chrome/browser/BUILD.gn +@@ -2174,7 +2174,6 @@ static_library("browser") { "//components/reputation/core:proto", "//components/resources", "//components/safe_browsing/content/browser", @@ -8,7 +8,7 @@ "//components/safe_browsing/content/browser:safe_browsing_service", "//components/safe_browsing/content/browser/password_protection", "//components/safe_browsing/content/browser/web_ui", -@@ -3706,8 +3705,6 @@ static_library("browser") { +@@ -3719,8 +3718,6 @@ static_library("browser") { "download/download_commands.h", "download/download_crx_util.cc", "download/download_crx_util.h", @@ -17,9 +17,9 @@ "download/download_dir_policy_handler.cc", "download/download_dir_policy_handler.h", "download/download_dir_util.cc", ---- chrome/browser/browser_process.h.orig -+++ chrome/browser/browser_process.h -@@ -55,10 +55,6 @@ class NetworkQualityTracker; +--- a/chrome/browser/browser_process.h ++++ b/chrome/browser/browser_process.h +@@ -54,10 +54,6 @@ class NetworkQualityTracker; class SharedURLLoaderFactory; } @@ -30,7 +30,7 @@ namespace subresource_filter { class RulesetService; } -@@ -218,9 +214,6 @@ class BrowserProcess { +@@ -210,9 +206,6 @@ class BrowserProcess { // on this platform (or this is a unit test). virtual StatusTray* status_tray() = 0; @@ -40,8 +40,8 @@ // Returns the service providing versioned storage for rules used by the Safe // Browsing subresource filter. virtual subresource_filter::RulesetService* ---- chrome/browser/browser_process_impl.cc.orig -+++ chrome/browser/browser_process_impl.cc +--- a/chrome/browser/browser_process_impl.cc ++++ b/chrome/browser/browser_process_impl.cc @@ -70,7 +70,6 @@ #include "chrome/browser/printing/print_preview_dialog_controller.h" #include "chrome/browser/profiles/profile_manager.h" @@ -50,7 +50,7 @@ #include "chrome/browser/shell_integration.h" #include "chrome/browser/site_isolation/prefs_observer.h" #include "chrome/browser/ssl/secure_origin_prefs_observer.h" -@@ -395,8 +394,6 @@ void BrowserProcessImpl::StartTearDown() +@@ -393,8 +392,6 @@ void BrowserProcessImpl::StartTearDown() metrics_services_manager_.reset(); intranet_redirect_detector_.reset(); @@ -59,7 +59,7 @@ network_time_tracker_.reset(); #if BUILDFLAG(ENABLE_PLUGINS) plugins_resource_service_.reset(); -@@ -1030,14 +1027,6 @@ StatusTray* BrowserProcessImpl::status_t +@@ -1028,14 +1025,6 @@ StatusTray* BrowserProcessImpl::status_t return status_tray_.get(); } @@ -74,7 +74,7 @@ subresource_filter::RulesetService* BrowserProcessImpl::subresource_filter_ruleset_service() { DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); -@@ -1300,26 +1289,6 @@ void BrowserProcessImpl::CreateBackgroun +@@ -1280,26 +1269,6 @@ void BrowserProcessImpl::CreateBackgroun #endif } @@ -101,17 +101,17 @@ void BrowserProcessImpl::CreateSubresourceFilterRulesetService() { DCHECK(!subresource_filter_ruleset_service_); created_subresource_filter_ruleset_service_ = true; ---- chrome/browser/browser_process_impl.h.orig -+++ chrome/browser/browser_process_impl.h -@@ -190,7 +190,6 @@ class BrowserProcessImpl : public Browse +--- a/chrome/browser/browser_process_impl.h ++++ b/chrome/browser/browser_process_impl.h +@@ -189,7 +189,6 @@ class BrowserProcessImpl : public Browse std::unique_ptr manager) override; #endif StatusTray* status_tray() override; - safe_browsing::SafeBrowsingService* safe_browsing_service() override; subresource_filter::RulesetService* subresource_filter_ruleset_service() override; - federated_learning::FlocSortingLshClustersService* -@@ -344,9 +343,6 @@ class BrowserProcessImpl : public Browse + +@@ -336,9 +335,6 @@ class BrowserProcessImpl : public Browse std::unique_ptr background_mode_manager_; #endif @@ -121,17 +121,17 @@ bool created_subresource_filter_ruleset_service_ = false; std::unique_ptr subresource_filter_ruleset_service_; ---- chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc.orig -+++ chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc -@@ -70,7 +70,6 @@ +--- a/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc ++++ b/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc +@@ -63,7 +63,6 @@ + #include "chrome/browser/profiles/keep_alive/profile_keep_alive_types.h" + #include "chrome/browser/profiles/keep_alive/scoped_profile_keep_alive.h" #include "chrome/browser/profiles/profile.h" - #include "chrome/browser/profiles/profile_keep_alive_types.h" - #include "chrome/browser/profiles/scoped_profile_keep_alive.h" -#include "chrome/browser/safe_browsing/safe_browsing_service.h" #include "chrome/browser/search_engines/template_url_service_factory.h" #include "chrome/browser/share/share_history.h" #include "chrome/browser/share/share_ranking.h" -@@ -643,10 +642,6 @@ void ChromeBrowsingDataRemoverDelegate:: +@@ -617,10 +616,6 @@ void ChromeBrowsingDataRemoverDelegate:: base::RecordAction(UserMetricsAction("ClearBrowsingData_Cookies")); network::mojom::NetworkContext* safe_browsing_context = nullptr; @@ -140,11 +140,11 @@ - if (sb_service) - safe_browsing_context = sb_service->GetNetworkContext(profile_); - browsing_data::RemoveEmbedderCookieData( - delete_begin, delete_end, filter_builder, host_content_settings_map_, ---- chrome/browser/chrome_content_browser_client.cc.orig -+++ chrome/browser/chrome_content_browser_client.cc -@@ -921,34 +921,6 @@ void SetApplicationLocaleOnIOThread(cons + if (!filter_builder->IsCrossSiteClearSiteData()) { + browsing_data::RemoveEmbedderCookieData( +--- a/chrome/browser/chrome_content_browser_client.cc ++++ b/chrome/browser/chrome_content_browser_client.cc +@@ -950,34 +950,6 @@ void SetApplicationLocaleOnIOThread(cons GetIOThreadApplicationLocale() = locale; } @@ -173,13 +173,13 @@ - } - - private: -- CertificateReportingService* service_; +- raw_ptr service_; -}; - #if BUILDFLAG(ENABLE_EXTENSIONS) AppLoadedInTabSource ClassifyAppLoadedInTabSource( -@@ -1423,7 +1395,6 @@ void ChromeContentBrowserClient::PostAft +@@ -1465,7 +1437,6 @@ void ChromeContentBrowserClient::PostAft InitNetworkContextsParentDirectory(); DCHECK_CURRENTLY_ON(BrowserThread::UI); @@ -187,7 +187,7 @@ } bool ChromeContentBrowserClient::IsBrowserStartupComplete() { -@@ -4229,7 +4200,7 @@ ChromeContentBrowserClient::CreateThrott +@@ -4279,7 +4250,7 @@ ChromeContentBrowserClient::CreateThrott content::WebContents* web_contents = handle->GetWebContents(); throttles.push_back(std::make_unique( handle, @@ -196,7 +196,7 @@ base::BindOnce(&HandleSSLErrorWrapper), base::BindOnce(&IsInHostedApp), base::BindOnce( &ShouldIgnoreSslInterstitialBecauseNavigationDefaultedToHttps))); -@@ -4258,15 +4229,6 @@ ChromeContentBrowserClient::CreateThrott +@@ -4314,16 +4285,6 @@ ChromeContentBrowserClient::CreateThrott &throttles); #endif @@ -205,15 +205,16 @@ - g_browser_process->safe_browsing_service() - ? g_browser_process->safe_browsing_service()->ui_manager().get() - : nullptr; -- throttles.push_back( -- std::make_unique( -- handle, ui_manager)); +- MaybeAddThrottle( +- safe_browsing::SafeBrowsingNavigationThrottle::MaybeCreateThrottleFor( +- handle, ui_manager), +- &throttles); - if (base::FeatureList::IsEnabled(safe_browsing::kDelayedWarnings)) { throttles.push_back( std::make_unique( ---- chrome/browser/component_updater/file_type_policies_component_installer.cc.orig -+++ chrome/browser/component_updater/file_type_policies_component_installer.cc +--- a/chrome/browser/component_updater/file_type_policies_component_installer.cc ++++ b/chrome/browser/component_updater/file_type_policies_component_installer.cc @@ -40,20 +40,6 @@ const uint8_t kFileTypePoliciesPublicKey const char kFileTypePoliciesManifestName[] = "File Type Policies"; @@ -235,9 +236,9 @@ } } // namespace ---- chrome/browser/download/chrome_download_manager_delegate.cc.orig -+++ chrome/browser/download/chrome_download_manager_delegate.cc -@@ -436,13 +436,6 @@ ChromeDownloadManagerDelegate::~ChromeDo +--- a/chrome/browser/download/chrome_download_manager_delegate.cc ++++ b/chrome/browser/download/chrome_download_manager_delegate.cc +@@ -431,13 +431,6 @@ ChromeDownloadManagerDelegate::~ChromeDo void ChromeDownloadManagerDelegate::SetDownloadManager(DownloadManager* dm) { download_manager_ = dm; @@ -250,15 +251,16 @@ - } } - #if defined(OS_ANDROID) -@@ -791,16 +784,6 @@ void ChromeDownloadManagerDelegate::Choo - + #if BUILDFLAG(IS_ANDROID) +@@ -791,17 +784,6 @@ void ChromeDownloadManagerDelegate::Choo void ChromeDownloadManagerDelegate::SanitizeSavePackageResourceName( - base::FilePath* filename) { + base::FilePath* filename, + const GURL& source_url) { - safe_browsing::FileTypePolicies* file_type_policies = - safe_browsing::FileTypePolicies::GetInstance(); - -- if (file_type_policies->GetFileDangerLevel(*filename) == +- const PrefService* prefs = profile_->GetPrefs(); +- if (file_type_policies->GetFileDangerLevel(*filename, source_url, prefs) == - safe_browsing::DownloadFileType::NOT_DANGEROUS) - return; - @@ -268,9 +270,9 @@ } void ChromeDownloadManagerDelegate::SanitizeDownloadParameters( ---- chrome/browser/download/download_item_model.cc.orig -+++ chrome/browser/download/download_item_model.cc -@@ -86,7 +86,7 @@ class DownloadItemModelData : public bas +--- a/chrome/browser/download/download_item_model.cc ++++ b/chrome/browser/download/download_item_model.cc +@@ -87,7 +87,7 @@ class DownloadItemModelData : public bas // Danger level of the file determined based on the file type and whether // there was a user action associated with the download. @@ -279,7 +281,7 @@ // Whether the download is currently being revived. bool is_being_revived_; -@@ -123,7 +123,7 @@ DownloadItemModelData::DownloadItemModel +@@ -124,7 +124,7 @@ DownloadItemModelData::DownloadItemModel : should_show_in_shelf_(true), was_ui_notified_(false), should_prefer_opening_in_browser_(false), @@ -288,7 +290,7 @@ is_being_revived_(false) {} } // namespace -@@ -381,13 +381,13 @@ void DownloadItemModel::SetShouldPreferO +@@ -382,13 +382,13 @@ void DownloadItemModel::SetShouldPreferO data->should_prefer_opening_in_browser_ = preference; } @@ -305,7 +307,7 @@ DownloadItemModelData* data = DownloadItemModelData::GetOrCreate(download_); data->danger_level_ = danger_level; } -@@ -599,9 +599,6 @@ bool DownloadItemModel::IsCommandEnabled +@@ -604,9 +604,6 @@ bool DownloadItemModel::IsCommandEnabled // filename. Don't base an "Always open" decision based on it. Also // exclude extensions. return download_->CanOpenDownload() && @@ -315,9 +317,9 @@ !download_crx_util::IsExtensionDownload(*download_); case DownloadCommands::PAUSE: return !download_->IsSavePackageDownload() && ---- chrome/browser/download/download_prefs.cc.orig -+++ chrome/browser/download/download_prefs.cc -@@ -260,14 +260,7 @@ DownloadPrefs::DownloadPrefs(Profile* pr +--- a/chrome/browser/download/download_prefs.cc ++++ b/chrome/browser/download/download_prefs.cc +@@ -251,14 +251,7 @@ DownloadPrefs::DownloadPrefs(Profile* pr base::FilePath::StringType(1, base::FilePath::kExtensionSeparator) + extension); @@ -333,7 +335,7 @@ } } -@@ -475,10 +468,6 @@ bool DownloadPrefs::IsAutoOpenByPolicy(c +@@ -466,10 +459,6 @@ bool DownloadPrefs::IsAutoOpenByPolicy(c bool DownloadPrefs::EnableAutoOpenByUserBasedOnExtension( const base::FilePath& file_name) { base::FilePath::StringType extension = file_name.Extension(); @@ -344,9 +346,9 @@ DCHECK(extension[0] == base::FilePath::kExtensionSeparator); extension.erase(0, 1); ---- chrome/browser/download/download_target_determiner.cc.orig -+++ chrome/browser/download/download_target_determiner.cc -@@ -297,13 +297,6 @@ base::FilePath DownloadTargetDeterminer: +--- a/chrome/browser/download/download_target_determiner.cc ++++ b/chrome/browser/download/download_target_determiner.cc +@@ -298,13 +298,6 @@ base::FilePath DownloadTargetDeterminer: download_->GetURL(), download_->GetContentDisposition(), referrer_charset, suggested_filename, sniffed_mime_type, default_filename); @@ -360,13 +362,14 @@ // If no mime type or explicitly specified a name, don't replace file // extension. if (sniffed_mime_type.empty() || !suggested_filename.empty()) -@@ -1113,29 +1106,7 @@ DownloadFileType::DangerLevel DownloadTa +@@ -1111,30 +1104,7 @@ DownloadFileType::DangerLevel DownloadTa download_->HasUserGesture()) return DownloadFileType::NOT_DANGEROUS; - DownloadFileType::DangerLevel danger_level = - safe_browsing::FileTypePolicies::GetInstance()->GetFileDangerLevel( -- virtual_path_.BaseName()); +- virtual_path_.BaseName(), download_->GetURL(), +- GetProfile()->GetPrefs()); - - // A danger level of ALLOW_ON_USER_GESTURE is used to label potentially - // dangerous file types that have a high frequency of legitimate use. We would @@ -391,8 +394,8 @@ } absl::optional ---- chrome/browser/extensions/api/downloads/downloads_api.cc.orig -+++ chrome/browser/extensions/api/downloads/downloads_api.cc +--- a/chrome/browser/extensions/api/downloads/downloads_api.cc ++++ b/chrome/browser/extensions/api/downloads/downloads_api.cc @@ -36,7 +36,6 @@ #include "chrome/browser/browser_process.h" #include "chrome/browser/download/download_core_service.h" @@ -455,10 +458,10 @@ } DownloadsShowFunction::DownloadsShowFunction() {} ---- chrome/browser/extensions/api/downloads/downloads_api.h.orig -+++ chrome/browser/extensions/api/downloads/downloads_api.h +--- a/chrome/browser/extensions/api/downloads/downloads_api.h ++++ b/chrome/browser/extensions/api/downloads/downloads_api.h @@ -13,7 +13,6 @@ - #include "base/macros.h" + #include "base/memory/raw_ptr.h" #include "base/scoped_observation.h" #include "base/time/time.h" -#include "chrome/browser/download/download_danger_prompt.h" @@ -493,8 +496,8 @@ }; class DownloadsShowFunction : public ExtensionFunction { ---- chrome/browser/extensions/api/safe_browsing_private/safe_browsing_private_api.cc.orig -+++ chrome/browser/extensions/api/safe_browsing_private/safe_browsing_private_api.cc +--- a/chrome/browser/extensions/api/safe_browsing_private/safe_browsing_private_api.cc ++++ b/chrome/browser/extensions/api/safe_browsing_private/safe_browsing_private_api.cc @@ -54,38 +54,7 @@ SafeBrowsingPrivateGetReferrerChainFunct base::StringPrintf("Could not find tab with id %d.", params->tab_id))); } @@ -534,9 +537,9 @@ return RespondNow(ArgumentList( api::safe_browsing_private::GetReferrerChain::Results::Create( referrer_entries))); ---- chrome/browser/extensions/api/webstore_private/webstore_private_api.cc.orig -+++ chrome/browser/extensions/api/webstore_private/webstore_private_api.cc -@@ -683,18 +683,6 @@ void WebstorePrivateBeginInstallWithMani +--- a/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc ++++ b/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc +@@ -716,18 +716,6 @@ void WebstorePrivateBeginInstallWithMani void WebstorePrivateBeginInstallWithManifest3Function:: ReportFrictionAcceptedEvent() { @@ -555,7 +558,7 @@ } void WebstorePrivateBeginInstallWithManifest3Function::OnInstallPromptDone( -@@ -1159,52 +1147,9 @@ WebstorePrivateGetReferrerChainFunction: +@@ -1192,52 +1180,9 @@ WebstorePrivateGetReferrerChainFunction: ExtensionFunction::ResponseAction WebstorePrivateGetReferrerChainFunction::Run() { @@ -609,9 +612,9 @@ } WebstorePrivateGetExtensionStatusFunction:: ---- chrome/browser/extensions/blocklist_state_fetcher.cc.orig -+++ chrome/browser/extensions/blocklist_state_fetcher.cc -@@ -34,33 +34,8 @@ BlocklistStateFetcher::~BlocklistStateFe +--- a/chrome/browser/extensions/blocklist_state_fetcher.cc ++++ b/chrome/browser/extensions/blocklist_state_fetcher.cc +@@ -38,23 +38,8 @@ BlocklistStateFetcher::~BlocklistStateFe void BlocklistStateFetcher::Request(const std::string& id, RequestCallback callback) { DCHECK_CURRENTLY_ON(BrowserThread::UI); @@ -631,23 +634,13 @@ - if (request_already_sent) - return; - -- if (g_browser_process && g_browser_process->safe_browsing_service()) { -- if (base::FeatureList::IsEnabled( -- safe_browsing::kSafeBrowsingRemoveCookies)) { -- url_loader_factory_ = g_browser_process->shared_url_loader_factory(); -- } else { -- url_loader_factory_ = -- g_browser_process->safe_browsing_service()->GetURLLoaderFactory(); -- } -- } -- - SendRequest(id); + base::ThreadTaskRunnerHandle::Get()->PostTask( + FROM_HERE, base::BindOnce(std::move(callback), BLOCKLISTED_UNKNOWN)); } void BlocklistStateFetcher::SendRequest(const std::string& id) { -@@ -71,8 +46,7 @@ void BlocklistStateFetcher::SendRequest( +@@ -65,8 +50,7 @@ void BlocklistStateFetcher::SendRequest( std::string request_str; request.SerializeToString(&request_str); @@ -657,7 +650,7 @@ net::NetworkTrafficAnnotationTag traffic_annotation = net::DefineNetworkTrafficAnnotation("extension_blacklist", R"( semantics { -@@ -122,12 +96,6 @@ void BlocklistStateFetcher::SendRequest( +@@ -114,12 +98,6 @@ void BlocklistStateFetcher::SendRequest( base::Unretained(this), fetcher)); } @@ -670,9 +663,9 @@ void BlocklistStateFetcher::OnURLLoaderComplete( network::SimpleURLLoader* url_loader, std::unique_ptr response_body) { ---- chrome/browser/extensions/blocklist_state_fetcher.h.orig -+++ chrome/browser/extensions/blocklist_state_fetcher.h -@@ -37,8 +37,6 @@ class BlocklistStateFetcher { +--- a/chrome/browser/extensions/blocklist_state_fetcher.h ++++ b/chrome/browser/extensions/blocklist_state_fetcher.h +@@ -36,8 +36,6 @@ class BlocklistStateFetcher { virtual void Request(const std::string& id, RequestCallback callback); @@ -681,7 +674,7 @@ protected: void OnURLLoaderComplete(network::SimpleURLLoader* url_loader, std::unique_ptr response_body); -@@ -57,7 +55,6 @@ class BlocklistStateFetcher { +@@ -56,7 +54,6 @@ class BlocklistStateFetcher { void SendRequest(const std::string& id); @@ -689,20 +682,20 @@ scoped_refptr url_loader_factory_; // SimpleURLLoader -> (owned loader, extension id). ---- chrome/browser/metrics/chrome_metrics_service_client.cc.orig -+++ chrome/browser/metrics/chrome_metrics_service_client.cc -@@ -828,9 +828,6 @@ void ChromeMetricsServiceClient::Registe +--- a/chrome/browser/metrics/chrome_metrics_service_client.cc ++++ b/chrome/browser/metrics/chrome_metrics_service_client.cc +@@ -856,9 +856,6 @@ void ChromeMetricsServiceClient::Registe metrics_service_->RegisterMetricsProvider( std::make_unique()); - metrics_service_->RegisterMetricsProvider( - std::make_unique()); - - #if !defined(OS_ANDROID) && !BUILDFLAG(IS_CHROMEOS_ASH) + #if !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_CHROMEOS_ASH) metrics_service_->RegisterMetricsProvider( std::make_unique()); ---- chrome/browser/net/trial_comparison_cert_verifier_controller.cc.orig -+++ chrome/browser/net/trial_comparison_cert_verifier_controller.cc +--- a/chrome/browser/net/trial_comparison_cert_verifier_controller.cc ++++ b/chrome/browser/net/trial_comparison_cert_verifier_controller.cc @@ -138,9 +138,6 @@ void TrialComparisonCertVerifierControll std::string serialized_report; if (!report.Serialize(&serialized_report)) @@ -713,19 +706,19 @@ } // static ---- chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc.orig -+++ chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc -@@ -297,7 +297,6 @@ void ChromeBrowserMainExtraPartsProfiles +--- a/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc ++++ b/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc +@@ -317,7 +317,6 @@ void ChromeBrowserMainExtraPartsProfiles #if BUILDFLAG(IS_CHROMEOS_LACROS) CertDbInitializerFactory::GetInstance(); #endif - CertificateReportingServiceFactory::GetInstance(); - #if !defined(OS_ANDROID) + #if !BUILDFLAG(IS_ANDROID) ChromeBrowsingDataLifetimeManagerFactory::GetInstance(); #endif ---- chrome/browser/profiles/profile_impl.cc.orig -+++ chrome/browser/profiles/profile_impl.cc -@@ -93,7 +93,6 @@ +--- a/chrome/browser/profiles/profile_impl.cc ++++ b/chrome/browser/profiles/profile_impl.cc +@@ -94,7 +94,6 @@ #include "chrome/browser/profiles/profile_metrics.h" #include "chrome/browser/push_messaging/push_messaging_service_factory.h" #include "chrome/browser/push_messaging/push_messaging_service_impl.h" @@ -733,7 +726,7 @@ #include "chrome/browser/sessions/exit_type_service.h" #include "chrome/browser/sharing/sharing_service_factory.h" #include "chrome/browser/signin/identity_manager_factory.h" -@@ -627,17 +626,6 @@ void ProfileImpl::LoadPrefsForNormalStar +@@ -621,17 +620,6 @@ void ProfileImpl::LoadPrefsForNormalStar mojo::PendingRemote pref_validation_delegate; @@ -751,9 +744,9 @@ prefs_ = CreatePrefService(pref_registry_, CreateExtensionPrefStore(this, false), ---- chrome/browser/profiles/profiles_state.cc.orig -+++ chrome/browser/profiles/profiles_state.cc -@@ -259,9 +259,6 @@ void RemoveBrowsingDataForProfile(const +--- a/chrome/browser/profiles/profiles_state.cc ++++ b/chrome/browser/profiles/profiles_state.cc +@@ -255,9 +255,6 @@ void RemoveBrowsingDataForProfile(const // The BrowsingDataRemover relies on many objects that aren't created in unit // tests. Previously this code would depend on content::ResourceDispatcherHost // but that's gone, so do a similar hack for now. @@ -763,8 +756,8 @@ Profile* profile = g_browser_process->profile_manager()->GetProfileByPath(profile_path); if (!profile) ---- chrome/browser/safe_browsing/BUILD.gn.orig -+++ chrome/browser/safe_browsing/BUILD.gn +--- a/chrome/browser/safe_browsing/BUILD.gn ++++ b/chrome/browser/safe_browsing/BUILD.gn @@ -5,6 +5,7 @@ import("//components/safe_browsing/build import("//extensions/buildflags/buildflags.gni") @@ -773,7 +766,7 @@ sources = [ "chrome_controller_client.cc", "chrome_controller_client.h", -@@ -88,6 +89,7 @@ static_library("safe_browsing") { +@@ -89,6 +90,7 @@ static_library("safe_browsing") { "//extensions/browser", ] } @@ -781,7 +774,7 @@ if (safe_browsing_mode != 0) { # "Safe Browsing Basic" files used for safe browsing in full mode -@@ -411,6 +413,7 @@ static_library("advanced_protection") { +@@ -446,6 +448,7 @@ static_library("advanced_protection") { } source_set("metrics_collector") { @@ -789,7 +782,7 @@ sources = [ "safe_browsing_metrics_collector_factory.cc", "safe_browsing_metrics_collector_factory.h", -@@ -428,6 +431,7 @@ source_set("metrics_collector") { +@@ -463,6 +466,7 @@ source_set("metrics_collector") { "//components/safe_browsing/core/common:safe_browsing_prefs", "//content/public/browser", ] @@ -797,9 +790,9 @@ } source_set("test_support") { ---- chrome/browser/ssl/security_state_tab_helper.cc.orig -+++ chrome/browser/ssl/security_state_tab_helper.cc -@@ -217,89 +217,6 @@ bool SecurityStateTabHelper::UsedPolicyI +--- a/chrome/browser/ssl/security_state_tab_helper.cc ++++ b/chrome/browser/ssl/security_state_tab_helper.cc +@@ -180,89 +180,6 @@ bool SecurityStateTabHelper::UsedPolicyI security_state::MaliciousContentStatus SecurityStateTabHelper::GetMaliciousContentStatus() const { @@ -839,7 +832,7 @@ - MALICIOUS_CONTENT_STATUS_SIGNED_IN_SYNC_PASSWORD_REUSE; - } -#endif -- FALLTHROUGH; +- [[fallthrough]]; - case safe_browsing::SB_THREAT_TYPE_SIGNED_IN_NON_SYNC_PASSWORD_REUSE: -#if BUILDFLAG(FULL_SAFE_BROWSING) - if (safe_browsing::ChromePasswordProtectionService:: @@ -849,7 +842,7 @@ - MALICIOUS_CONTENT_STATUS_SIGNED_IN_NON_SYNC_PASSWORD_REUSE; - } -#endif -- FALLTHROUGH; +- [[fallthrough]]; - case safe_browsing::SB_THREAT_TYPE_ENTERPRISE_PASSWORD_REUSE: -#if BUILDFLAG(FULL_SAFE_BROWSING) - if (safe_browsing::ChromePasswordProtectionService:: @@ -889,19 +882,19 @@ return security_state::MALICIOUS_CONTENT_STATUS_NONE; } ---- chrome/browser/ui/BUILD.gn.orig -+++ chrome/browser/ui/BUILD.gn -@@ -3946,7 +3946,6 @@ static_library("ui") { - "views/device_chooser_content_view.h", - "views/devtools_process_observer.cc", - "views/devtools_process_observer.h", +--- a/chrome/browser/ui/BUILD.gn ++++ b/chrome/browser/ui/BUILD.gn +@@ -4152,7 +4152,6 @@ static_library("ui") { + "views/download/bubble/download_dialog_view.h", + "views/download/bubble/download_toolbar_button_view.cc", + "views/download/bubble/download_toolbar_button_view.h", - "views/download/download_danger_prompt_views.cc", "views/download/download_in_progress_dialog_view.cc", "views/download/download_in_progress_dialog_view.h", "views/download/download_item_view.cc", ---- chrome/browser/ui/tab_helpers.cc.orig -+++ chrome/browser/ui/tab_helpers.cc -@@ -330,16 +330,6 @@ void TabHelpers::AttachTabHelpers(WebCon +--- a/chrome/browser/ui/tab_helpers.cc ++++ b/chrome/browser/ui/tab_helpers.cc +@@ -363,22 +363,6 @@ void TabHelpers::AttachTabHelpers(WebCon // See https://crbug.com/910288. resource_coordinator::ResourceCoordinatorTabHelper::CreateForWebContents( web_contents); @@ -910,6 +903,12 @@ - safe_browsing::SafeBrowsingNavigationObserverManagerFactory:: - GetForBrowserContext(profile), - profile->GetPrefs(), g_browser_process->safe_browsing_service()); +- if (base::FeatureList::IsEnabled( +- safe_browsing::kTailoredSecurityIntegration)) { +- safe_browsing::TailoredSecurityUrlObserver::CreateForWebContents( +- web_contents, +- safe_browsing::TailoredSecurityServiceFactory::GetForProfile(profile)); +- } - safe_browsing::SafeBrowsingTabObserver::CreateForWebContents( - web_contents, - std::make_unique()); @@ -918,8 +917,8 @@ ReputationWebContentsObserver::CreateForWebContents(web_contents); SearchEngineTabHelper::CreateForWebContents(web_contents); SecurityStateTabHelper::CreateForWebContents(web_contents); ---- chrome/browser/ui/webui/downloads/downloads_dom_handler.cc.orig -+++ chrome/browser/ui/webui/downloads/downloads_dom_handler.cc +--- a/chrome/browser/ui/webui/downloads/downloads_dom_handler.cc ++++ b/chrome/browser/ui/webui/downloads/downloads_dom_handler.cc @@ -23,7 +23,6 @@ #include "base/threading/thread.h" #include "base/values.h" @@ -928,7 +927,7 @@ #include "chrome/browser/download/download_history.h" #include "chrome/browser/download/download_item_model.h" #include "chrome/browser/download/download_prefs.h" -@@ -171,9 +170,6 @@ void DownloadsDOMHandler::SaveDangerousR +@@ -172,9 +171,6 @@ void DownloadsDOMHandler::SaveDangerousR } CountDownloadsDOMEvents(DOWNLOADS_DOM_EVENT_SAVE_DANGEROUS); @@ -938,7 +937,7 @@ } void DownloadsDOMHandler::AcceptIncognitoWarning(const std::string& id) { -@@ -325,12 +321,6 @@ void DownloadsDOMHandler::RemoveDownload +@@ -326,12 +322,6 @@ void DownloadsDOMHandler::RemoveDownload IdSet ids; for (auto* download : to_remove) { @@ -951,7 +950,7 @@ DownloadItemModel item_model(download); if (!item_model.ShouldShowInShelf() || download->GetState() == download::DownloadItem::IN_PROGRESS) { -@@ -404,44 +394,6 @@ void DownloadsDOMHandler::FinalizeRemova +@@ -405,44 +395,6 @@ void DownloadsDOMHandler::FinalizeRemova } } @@ -996,17 +995,17 @@ bool DownloadsDOMHandler::IsDeletingHistoryAllowed() { content::DownloadManager* manager = GetMainNotifierManager(); return manager && ---- chrome/browser/ui/webui/downloads/downloads_dom_handler.h.orig -+++ chrome/browser/ui/webui/downloads/downloads_dom_handler.h +--- a/chrome/browser/ui/webui/downloads/downloads_dom_handler.h ++++ b/chrome/browser/ui/webui/downloads/downloads_dom_handler.h @@ -12,7 +12,6 @@ - #include "base/macros.h" + #include "base/memory/raw_ptr.h" #include "base/memory/weak_ptr.h" -#include "chrome/browser/download/download_danger_prompt.h" #include "chrome/browser/ui/webui/downloads/downloads.mojom-forward.h" #include "chrome/browser/ui/webui/downloads/downloads_list_tracker.h" #include "content/public/browser/web_contents_observer.h" -@@ -94,18 +93,6 @@ class DownloadsDOMHandler : public conte +@@ -95,18 +94,6 @@ class DownloadsDOMHandler : public conte // null-checking |original_notifier_|. content::DownloadManager* GetOriginalNotifierManager() const; @@ -1025,9 +1024,9 @@ // Returns true if the records of any downloaded items are allowed (and able) // to be deleted. bool IsDeletingHistoryAllowed(); ---- chrome/browser/ui/webui/interstitials/interstitial_ui.cc.orig -+++ chrome/browser/ui/webui/interstitials/interstitial_ui.cc -@@ -281,116 +281,6 @@ CreateHttpsOnlyModePage(content::WebCont +--- a/chrome/browser/ui/webui/interstitials/interstitial_ui.cc ++++ b/chrome/browser/ui/webui/interstitials/interstitial_ui.cc +@@ -273,120 +273,6 @@ CreateHttpsOnlyModePage(content::WebCont request_url)); } @@ -1037,7 +1036,8 @@ - safe_browsing::SB_THREAT_TYPE_URL_MALWARE; - GURL request_url("http://example.com"); - std::string url_param; -- if (net::GetValueForKeyInQuery(web_contents->GetURL(), "url", &url_param)) { +- if (net::GetValueForKeyInQuery(web_contents->GetVisibleURL(), "url", +- &url_param)) { - if (GURL(url_param).is_valid()) { - request_url = GURL(url_param); - } @@ -1046,7 +1046,8 @@ - // TODO(mattm): add flag to change main_frame_url or add dedicated flag to - // test subresource interstitials. - std::string type_param; -- if (net::GetValueForKeyInQuery(web_contents->GetURL(), "type", &type_param)) { +- if (net::GetValueForKeyInQuery(web_contents->GetVisibleURL(), "type", +- &type_param)) { - if (type_param == "malware") { - threat_type = safe_browsing::SB_THREAT_TYPE_URL_MALWARE; - } else if (type_param == "phishing") { @@ -1094,14 +1095,16 @@ - safe_browsing::SB_THREAT_TYPE_URL_MALWARE; - GURL request_url("http://example.com"); - std::string url_param; -- if (net::GetValueForKeyInQuery(web_contents->GetURL(), "url", &url_param)) { +- if (net::GetValueForKeyInQuery(web_contents->GetVisibleURL(), "url", +- &url_param)) { - if (GURL(url_param).is_valid()) - request_url = GURL(url_param); - } - GURL main_frame_url(request_url); - std::string type_param; - bool is_giant_webview = false; -- if (net::GetValueForKeyInQuery(web_contents->GetURL(), "type", &type_param)) { +- if (net::GetValueForKeyInQuery(web_contents->GetVisibleURL(), "type", +- &type_param)) { - if (type_param == "malware") { - threat_type = safe_browsing::SB_THREAT_TYPE_URL_MALWARE; - } else if (type_param == "phishing") { @@ -1144,16 +1147,16 @@ #if BUILDFLAG(ENABLE_CAPTIVE_PORTAL_DETECTION) std::unique_ptr CreateCaptivePortalBlockingPage( content::WebContents* web_contents) { -@@ -507,8 +397,6 @@ void InterstitialHTMLSource::StartDataRe +@@ -501,8 +387,6 @@ void InterstitialHTMLSource::StartDataRe + interstitial_delegate = CreateMITMSoftwareBlockingPage(web_contents); + } else if (path_without_query == "/blocked-interception") { interstitial_delegate = CreateBlockedInterceptionBlockingPage(web_contents); - } else if (path_without_query == "/legacy-tls") { - interstitial_delegate = CreateLegacyTLSBlockingPage(web_contents); - } else if (path_without_query == "/safebrowsing") { - interstitial_delegate = CreateSafeBrowsingBlockingPage(web_contents); } else if (path_without_query == "/clock") { interstitial_delegate = CreateBadClockBlockingPage(web_contents); } else if (path_without_query == "/lookalike") { -@@ -525,16 +413,12 @@ void InterstitialHTMLSource::StartDataRe +@@ -519,16 +403,12 @@ void InterstitialHTMLSource::StartDataRe interstitial_delegate = CreateHttpsOnlyModePage(web_contents); } @@ -1173,9 +1176,9 @@ html = interstitial_delegate.get()->GetHTMLContents(); } else { html = ui::ResourceBundle::GetSharedInstance().LoadDataResourceString( ---- chrome/renderer/chrome_content_renderer_client.cc.orig -+++ chrome/renderer/chrome_content_renderer_client.cc -@@ -97,7 +97,6 @@ +--- a/chrome/renderer/chrome_content_renderer_client.cc ++++ b/chrome/renderer/chrome_content_renderer_client.cc +@@ -91,7 +91,6 @@ #include "components/page_load_metrics/renderer/metrics_render_frame_observer.h" #include "components/paint_preview/buildflags/buildflags.h" #include "components/safe_browsing/buildflags.h" @@ -1183,8 +1186,8 @@ #include "components/spellcheck/spellcheck_buildflags.h" #include "components/subresource_filter/content/renderer/subresource_filter_agent.h" #include "components/subresource_filter/content/renderer/unverified_ruleset_dealer.h" ---- components/security_interstitials/content/cert_report_helper.cc.orig -+++ components/security_interstitials/content/cert_report_helper.cc +--- a/components/security_interstitials/content/cert_report_helper.cc ++++ b/components/security_interstitials/content/cert_report_helper.cc @@ -177,7 +177,6 @@ void CertReportHelper::FinishCertCollect return; } diff --git a/www/chromium-uc/patches/core/inox-patchset/0003-disable-autofill-download-manager.patch b/www/chromium-uc/patches/core/inox-patchset/0003-disable-autofill-download-manager.patch index b3f1614..952d579 100644 --- a/www/chromium-uc/patches/core/inox-patchset/0003-disable-autofill-download-manager.patch +++ b/www/chromium-uc/patches/core/inox-patchset/0003-disable-autofill-download-manager.patch @@ -1,6 +1,6 @@ ---- components/autofill/core/browser/autofill_download_manager.cc.orig -+++ components/autofill/core/browser/autofill_download_manager.cc -@@ -824,96 +824,6 @@ std::tuple AutofillDo +--- a/components/autofill/core/browser/autofill_download_manager.cc ++++ b/components/autofill/core/browser/autofill_download_manager.cc +@@ -803,94 +803,6 @@ std::tuple AutofillDo } bool AutofillDownloadManager::StartRequest(FormRequestData request_data) { @@ -9,9 +9,7 @@ - DCHECK(url_loader_factory); - - // Get the URL and method to use for this request. -- std::string method; -- GURL request_url; -- std::tie(request_url, method) = GetRequestURLAndMethod(request_data); +- auto [request_url, method] = GetRequestURLAndMethod(request_data); - - // Track the URL length for GET queries because the URL length can be in the - // thousands when rich metadata is enabled. @@ -29,7 +27,7 @@ - // 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) +-#if !BUILDFLAG(IS_IOS) - // Do not call IsolationInfo() for REQUEST_UPLOADs because Password Manager - // uploads when RenderFrameHostImpl::DidCommitNavigation() is called, in which - // case IsolationInfo() may crash because there is no committing diff --git a/www/chromium-uc/patches/core/inox-patchset/0005-disable-default-extensions.patch b/www/chromium-uc/patches/core/inox-patchset/0005-disable-default-extensions.patch index 894d468..cae1b63 100644 --- a/www/chromium-uc/patches/core/inox-patchset/0005-disable-default-extensions.patch +++ b/www/chromium-uc/patches/core/inox-patchset/0005-disable-default-extensions.patch @@ -1,16 +1,16 @@ ---- chrome/browser/extensions/component_extensions_allowlist/allowlist.cc.orig -+++ chrome/browser/extensions/component_extensions_allowlist/allowlist.cc +--- a/chrome/browser/extensions/component_extensions_allowlist/allowlist.cc ++++ b/chrome/browser/extensions/component_extensions_allowlist/allowlist.cc @@ -28,7 +28,6 @@ namespace extensions { bool IsComponentExtensionAllowlisted(const std::string& extension_id) { const char* const kAllowed[] = { - extension_misc::kInAppPaymentsSupportAppId, extension_misc::kPdfExtensionId, - #if defined(OS_CHROMEOS) + #if BUILDFLAG(IS_CHROMEOS) extension_misc::kAssessmentAssistantExtensionId, ---- chrome/browser/extensions/component_loader.cc.orig -+++ chrome/browser/extensions/component_loader.cc -@@ -354,11 +354,6 @@ void ComponentLoader::AddWebStoreApp() { +--- a/chrome/browser/extensions/component_loader.cc ++++ b/chrome/browser/extensions/component_loader.cc +@@ -356,11 +356,6 @@ void ComponentLoader::AddWebStoreApp() { if (!IsNormalSession()) return; #endif @@ -22,7 +22,7 @@ } #if BUILDFLAG(IS_CHROMEOS_ASH) -@@ -495,18 +490,6 @@ void ComponentLoader::AddDefaultComponen +@@ -503,18 +498,6 @@ void ComponentLoader::AddDefaultComponen AddHangoutServicesExtension(); #endif // BUILDFLAG(ENABLE_HANGOUT_SERVICES_EXTENSION) @@ -41,8 +41,8 @@ #if BUILDFLAG(IS_CHROMEOS_ASH) if (command_line->HasSwitch(switches::kLoadGuestModeTestExtension)) { base::FilePath path = base::FilePath(command_line->GetSwitchValueASCII( ---- chrome/browser/extensions/external_component_loader.cc.orig -+++ chrome/browser/extensions/external_component_loader.cc +--- a/chrome/browser/extensions/external_component_loader.cc ++++ b/chrome/browser/extensions/external_component_loader.cc @@ -30,9 +30,6 @@ ExternalComponentLoader::~ExternalCompon void ExternalComponentLoader::StartLoading() { @@ -51,10 +51,10 @@ - AddExternalExtension(extension_misc::kInAppPaymentsSupportAppId, prefs.get()); -#endif // BUILDFLAG(GOOGLE_CHROME_BRANDING) - #if defined(OS_CHROMEOS) + #if BUILDFLAG(IS_CHROMEOS) { ---- chrome/browser/extensions/webstore_installer.cc.orig -+++ chrome/browser/extensions/webstore_installer.cc +--- a/chrome/browser/extensions/webstore_installer.cc ++++ b/chrome/browser/extensions/webstore_installer.cc @@ -555,20 +555,6 @@ void WebstoreInstaller::DownloadNextPend void WebstoreInstaller::DownloadCrx( const std::string& extension_id, @@ -76,7 +76,7 @@ } // http://crbug.com/165634 -@@ -712,21 +698,6 @@ void WebstoreInstaller::UpdateDownloadPr +@@ -711,21 +697,6 @@ void WebstoreInstaller::UpdateDownloadPr void WebstoreInstaller::StartCrxInstaller(const DownloadItem& download) { DCHECK_CURRENTLY_ON(BrowserThread::UI); DCHECK(!crx_installer_.get()); diff --git a/www/chromium-uc/patches/core/inox-patchset/0007-disable-web-resource-service.patch b/www/chromium-uc/patches/core/inox-patchset/0007-disable-web-resource-service.patch index ad9e012..a52d1f8 100644 --- a/www/chromium-uc/patches/core/inox-patchset/0007-disable-web-resource-service.patch +++ b/www/chromium-uc/patches/core/inox-patchset/0007-disable-web-resource-service.patch @@ -1,5 +1,5 @@ ---- components/web_resource/web_resource_service.cc.orig -+++ components/web_resource/web_resource_service.cc +--- a/components/web_resource/web_resource_service.cc ++++ b/components/web_resource/web_resource_service.cc @@ -120,44 +120,7 @@ bool WebResourceService::GetFetchSchedul // Initializes the fetching of data from the resource server. Data // load calls OnSimpleLoaderComplete. diff --git a/www/chromium-uc/patches/core/inox-patchset/0009-disable-google-ipv6-probes.patch b/www/chromium-uc/patches/core/inox-patchset/0009-disable-google-ipv6-probes.patch index 9f78ade..25b43e1 100644 --- a/www/chromium-uc/patches/core/inox-patchset/0009-disable-google-ipv6-probes.patch +++ b/www/chromium-uc/patches/core/inox-patchset/0009-disable-google-ipv6-probes.patch @@ -1,6 +1,6 @@ ---- net/dns/host_resolver_manager.cc.orig -+++ net/dns/host_resolver_manager.cc -@@ -139,10 +139,10 @@ const unsigned kMinimumTTLSeconds = kCac +--- a/net/dns/host_resolver_manager.cc ++++ b/net/dns/host_resolver_manager.cc +@@ -151,10 +151,10 @@ const unsigned kMinimumTTLSeconds = kCac // cached. const int kIPv6ProbePeriodMs = 1000; diff --git a/www/chromium-uc/patches/core/inox-patchset/0015-disable-update-pings.patch b/www/chromium-uc/patches/core/inox-patchset/0015-disable-update-pings.patch index cc7f344..6dced3c 100644 --- a/www/chromium-uc/patches/core/inox-patchset/0015-disable-update-pings.patch +++ b/www/chromium-uc/patches/core/inox-patchset/0015-disable-update-pings.patch @@ -1,6 +1,6 @@ ---- chrome/updater/configurator.cc.orig -+++ chrome/updater/configurator.cc -@@ -82,7 +82,7 @@ int Configurator::UpdateDelay() const { +--- a/chrome/updater/configurator.cc ++++ b/chrome/updater/configurator.cc +@@ -91,7 +91,7 @@ int Configurator::UpdateDelay() const { } std::vector Configurator::UpdateUrl() const { diff --git a/www/chromium-uc/patches/core/inox-patchset/0017-disable-new-avatar-menu.patch b/www/chromium-uc/patches/core/inox-patchset/0017-disable-new-avatar-menu.patch index 269fb0c..e02f281 100644 --- a/www/chromium-uc/patches/core/inox-patchset/0017-disable-new-avatar-menu.patch +++ b/www/chromium-uc/patches/core/inox-patchset/0017-disable-new-avatar-menu.patch @@ -1,5 +1,5 @@ ---- components/signin/internal/identity_manager/primary_account_policy_manager_impl.cc.orig -+++ components/signin/internal/identity_manager/primary_account_policy_manager_impl.cc +--- a/components/signin/internal/identity_manager/primary_account_policy_manager_impl.cc ++++ b/components/signin/internal/identity_manager/primary_account_policy_manager_impl.cc @@ -86,7 +86,7 @@ void PrimaryAccountPolicyManagerImpl::On } diff --git a/www/chromium-uc/patches/core/inox-patchset/0021-disable-rlz.patch b/www/chromium-uc/patches/core/inox-patchset/0021-disable-rlz.patch index 4b96b3e..a8826c7 100644 --- a/www/chromium-uc/patches/core/inox-patchset/0021-disable-rlz.patch +++ b/www/chromium-uc/patches/core/inox-patchset/0021-disable-rlz.patch @@ -1,8 +1,8 @@ # Disable rlz ---- BUILD.gn.orig -+++ BUILD.gn -@@ -485,14 +485,6 @@ group("gn_all") { +--- a/BUILD.gn ++++ b/BUILD.gn +@@ -484,14 +484,6 @@ group("gn_all") { deps += [ "//chromeos:chromeos_unittests" ] } @@ -17,8 +17,8 @@ if (is_linux || is_chromeos) { # The following are definitely linux-only. deps += [ ---- rlz/buildflags/buildflags.gni.orig -+++ rlz/buildflags/buildflags.gni +--- a/rlz/buildflags/buildflags.gni ++++ b/rlz/buildflags/buildflags.gni @@ -7,6 +7,6 @@ import("//build/config/chromeos/ui_mode. # Whether we are using the rlz library or not. Platforms like Android send diff --git a/www/chromium-uc/patches/core/iridium-browser/all-add-trk-prefixes-to-possibly-evil-connections.patch b/www/chromium-uc/patches/core/iridium-browser/all-add-trk-prefixes-to-possibly-evil-connections.patch index 198b00e..a4d4885 100644 --- a/www/chromium-uc/patches/core/iridium-browser/all-add-trk-prefixes-to-possibly-evil-connections.patch +++ b/www/chromium-uc/patches/core/iridium-browser/all-add-trk-prefixes-to-possibly-evil-connections.patch @@ -66,8 +66,19 @@ by default. ui/views/examples/webview_example.cc | 2 +- 54 files changed, 89 insertions(+), 87 deletions(-) ---- build/apple/tweak_info_plist.py.orig -+++ build/apple/tweak_info_plist.py +--- a/ash/components/geolocation/simple_geolocation_provider.cc ++++ b/ash/components/geolocation/simple_geolocation_provider.cc +@@ -20,7 +20,7 @@ namespace ash { + namespace { + + const char kDefaultGeolocationProviderUrl[] = +- "https://www.googleapis.com/geolocation/v1/geolocate?"; ++ "trk:215:https://www.googleapis.com/geolocation/v1/geolocate?"; + + } // namespace + +--- a/build/apple/tweak_info_plist.py ++++ b/build/apple/tweak_info_plist.py @@ -195,7 +195,7 @@ def _AddKeystoneKeys(plist, bundle_ident also requires the |bundle_identifier| argument (com.example.product).""" plist['KSVersion'] = plist['CFBundleShortVersionString'] @@ -77,9 +88,9 @@ by default. _RemoveKeys(plist, 'KSChannelID') if base_tag != '': ---- chrome/browser/ash/customization/customization_document.cc.orig -+++ chrome/browser/ash/customization/customization_document.cc -@@ -175,7 +175,7 @@ std::string ReadFileInBackground(const b +--- a/chrome/browser/ash/customization/customization_document.cc ++++ b/chrome/browser/ash/customization/customization_document.cc +@@ -198,7 +198,7 @@ std::string ReadFileInBackground(const b // Template URL where to fetch OEM services customization manifest from. const char ServicesCustomizationDocument::kManifestUrl[] = @@ -88,9 +99,9 @@ by default. // A custom extensions::ExternalLoader that the ServicesCustomizationDocument // creates and uses to publish OEM default apps to the extensions system. ---- chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc.orig -+++ chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc -@@ -87,7 +87,7 @@ namespace { +--- a/chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc ++++ b/chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc +@@ -92,7 +92,7 @@ namespace { using api::file_manager_private::ProfileInfo; @@ -99,8 +110,8 @@ by default. // Thresholds for mountCrostini() API. constexpr base::TimeDelta kMountCrostiniSlowOperationThreshold = ---- chrome/browser/extensions/api/cryptotoken_private/cryptotoken_private_api.cc.orig -+++ chrome/browser/extensions/api/cryptotoken_private/cryptotoken_private_api.cc +--- a/chrome/browser/extensions/api/cryptotoken_private/cryptotoken_private_api.cc ++++ b/chrome/browser/extensions/api/cryptotoken_private/cryptotoken_private_api.cc @@ -52,8 +52,8 @@ namespace { const char kGoogleDotCom[] = "google.com"; @@ -112,9 +123,9 @@ by default. // ContainsAppIdByHash returns true iff the SHA-256 hash of one of the // elements of |list| equals |hash|. ---- chrome/browser/extensions/install_signer.cc.orig -+++ chrome/browser/extensions/install_signer.cc -@@ -67,7 +67,7 @@ const int kSignatureFormatVersion = 2; +--- a/chrome/browser/extensions/install_signer.cc ++++ b/chrome/browser/extensions/install_signer.cc +@@ -66,7 +66,7 @@ const int kSignatureFormatVersion = 2; const size_t kSaltBytes = 32; const char kBackendUrl[] = @@ -123,8 +134,8 @@ by default. const char kPublicKeyPEM[] = \ "-----BEGIN PUBLIC KEY-----" \ ---- chrome/browser/media/webrtc/webrtc_event_log_uploader.cc.orig -+++ chrome/browser/media/webrtc/webrtc_event_log_uploader.cc +--- a/chrome/browser/media/webrtc/webrtc_event_log_uploader.cc ++++ b/chrome/browser/media/webrtc/webrtc_event_log_uploader.cc @@ -125,7 +125,7 @@ void OnURLLoadUploadProgress(uint64_t cu } // namespace @@ -134,8 +145,8 @@ by default. WebRtcEventLogUploaderImpl::Factory::Factory( scoped_refptr task_runner) ---- chrome/browser/media/webrtc/webrtc_log_uploader.cc.orig -+++ chrome/browser/media/webrtc/webrtc_log_uploader.cc +--- a/chrome/browser/media/webrtc/webrtc_log_uploader.cc ++++ b/chrome/browser/media/webrtc/webrtc_log_uploader.cc @@ -485,7 +485,7 @@ void WebRtcLogUploader::UploadCompressed "Not implemented, it would be good to do so." })"); @@ -145,8 +156,8 @@ by default. auto resource_request = std::make_unique(); resource_request->url = !upload_url_for_testing_.is_empty() ? upload_url_for_testing_ ---- chrome/browser/nacl_host/nacl_infobar_delegate.cc.orig -+++ chrome/browser/nacl_host/nacl_infobar_delegate.cc +--- a/chrome/browser/nacl_host/nacl_infobar_delegate.cc ++++ b/chrome/browser/nacl_host/nacl_infobar_delegate.cc @@ -33,7 +33,7 @@ std::u16string NaClInfoBarDelegate::GetL } @@ -156,8 +167,8 @@ by default. } std::u16string NaClInfoBarDelegate::GetMessageText() const { ---- chrome/browser/profiles/profile_avatar_downloader.cc.orig -+++ chrome/browser/profiles/profile_avatar_downloader.cc +--- a/chrome/browser/profiles/profile_avatar_downloader.cc ++++ b/chrome/browser/profiles/profile_avatar_downloader.cc @@ -20,7 +20,7 @@ namespace { @@ -167,8 +178,8 @@ by default. } ProfileAvatarDownloader::ProfileAvatarDownloader(size_t icon_index, ---- chrome/browser/resources/default_apps/external_extensions.json.orig -+++ chrome/browser/resources/default_apps/external_extensions.json +--- a/chrome/browser/resources/default_apps/external_extensions.json ++++ b/chrome/browser/resources/default_apps/external_extensions.json @@ -23,17 +23,17 @@ }, // Google Sheets @@ -190,9 +201,9 @@ by default. } } ---- chrome/browser/safe_browsing/download_protection/download_feedback.cc.orig -+++ chrome/browser/safe_browsing/download_protection/download_feedback.cc -@@ -202,7 +202,7 @@ const int64_t DownloadFeedback::kMaxUplo +--- a/chrome/browser/safe_browsing/download_protection/download_feedback.cc ++++ b/chrome/browser/safe_browsing/download_protection/download_feedback.cc +@@ -192,7 +192,7 @@ const int64_t DownloadFeedback::kMaxUplo // static const char DownloadFeedback::kSbFeedbackURL[] = @@ -201,8 +212,8 @@ by default. // static DownloadFeedbackFactory* DownloadFeedback::factory_ = nullptr; ---- chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc.orig -+++ chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc +--- a/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc ++++ b/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc @@ -279,7 +279,7 @@ GURL SpellcheckHunspellDictionary::GetDi DCHECK(!bdict_file.empty()); @@ -212,9 +223,9 @@ by default. return GURL(std::string(kDownloadServerUrl) + base::ToLowerASCII(bdict_file)); ---- chrome/browser/supervised_user/supervised_user_service.cc.orig -+++ chrome/browser/supervised_user/supervised_user_service.cc -@@ -87,7 +87,7 @@ namespace { +--- a/chrome/browser/supervised_user/supervised_user_service.cc ++++ b/chrome/browser/supervised_user/supervised_user_service.cc +@@ -86,7 +86,7 @@ namespace { // The URL from which to download a host denylist if no local one exists yet. const char kDenylistURL[] = @@ -223,9 +234,9 @@ by default. // The filename under which we'll store the denylist (in the user data dir). The // old file will be used as a backup in case the new file has not been loaded // yet. ---- chrome/browser/ui/views/outdated_upgrade_bubble_view.cc.orig -+++ chrome/browser/ui/views/outdated_upgrade_bubble_view.cc -@@ -54,7 +54,7 @@ const char* kUpdateBrowserRedirectUrl = +--- a/chrome/browser/ui/dialogs/outdated_upgrade_bubble.cc ++++ b/chrome/browser/ui/dialogs/outdated_upgrade_bubble.cc +@@ -50,7 +50,7 @@ const char* kUpdateBrowserRedirectUrl = #else // The URL to be used to re-install Chrome when auto-update failed for // too long. @@ -234,9 +245,9 @@ by default. #endif bool g_upgrade_bubble_is_showing = false; ---- chrome/browser/ui/webui/ntp/ntp_resource_cache.cc.orig -+++ chrome/browser/ui/webui/ntp/ntp_resource_cache.cc -@@ -67,17 +67,17 @@ namespace { +--- a/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc ++++ b/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc +@@ -71,17 +71,17 @@ namespace { // The URL for the the Learn More page shown on incognito new tab. const char kLearnMoreIncognitoUrl[] = #if BUILDFLAG(IS_CHROMEOS_ASH) @@ -258,8 +269,8 @@ by default. #endif std::string ReplaceTemplateExpressions( ---- chrome/chrome_cleaner/components/recovery_component.cc.orig -+++ chrome/chrome_cleaner/components/recovery_component.cc +--- a/chrome/chrome_cleaner/components/recovery_component.cc ++++ b/chrome/chrome_cleaner/components/recovery_component.cc @@ -37,7 +37,7 @@ namespace chrome_cleaner { namespace { @@ -269,8 +280,8 @@ by default. "&installsource=swreporter&x=id%3Dnpdjjkjlcidkjlamlmmdelcjbcpdjocm" "%26v%3D0.0.0.0%26uc&acceptformat=crx3"; ---- chrome/chrome_cleaner/crash/crashpad_crash_reporter.cc.orig -+++ chrome/chrome_cleaner/crash/crashpad_crash_reporter.cc +--- a/chrome/chrome_cleaner/crash/crashpad_crash_reporter.cc ++++ b/chrome/chrome_cleaner/crash/crashpad_crash_reporter.cc @@ -28,7 +28,7 @@ namespace { @@ -280,8 +291,8 @@ by default. // Whether the current process is connected to a crash handler process. bool g_is_connected_to_crash_handler = false; ---- chrome/common/extensions/chrome_extensions_client.cc.orig -+++ chrome/common/extensions/chrome_extensions_client.cc +--- a/chrome/common/extensions/chrome_extensions_client.cc ++++ b/chrome/common/extensions/chrome_extensions_client.cc @@ -45,9 +45,9 @@ namespace { // TODO(battre): Delete the HTTP URL once the blocklist is downloaded via HTTPS. @@ -292,10 +303,10 @@ by default. - "https://www.gstatic.com/chrome/extensions/blocklist"; + "trk:270:https://www.gstatic.com/chrome/extensions/blocklist"; - const char kThumbsWhiteListedExtension[] = "khopmbdjffemhegeeobelklnbglcdgfh"; + } // namespace ---- chrome/installer/setup/google_chrome_behaviors.cc.orig -+++ chrome/installer/setup/google_chrome_behaviors.cc +--- a/chrome/installer/setup/google_chrome_behaviors.cc ++++ b/chrome/installer/setup/google_chrome_behaviors.cc @@ -37,7 +37,7 @@ namespace installer { namespace { @@ -305,19 +316,8 @@ by default. bool NavigateToUrlWithEdge(const std::wstring& url) { std::wstring protocol_url = L"microsoft-edge:" + url; ---- chromecast/browser/service/cast_service_simple.cc.orig -+++ chromecast/browser/service/cast_service_simple.cc -@@ -27,7 +27,7 @@ GURL GetStartupURL() { - const base::CommandLine::StringVector& args = command_line->GetArgs(); - - if (args.empty()) -- return GURL("http://www.google.com/"); -+ return GURL("trk:255:http://www.google.com/"); - - GURL url(args[0]); - if (url.is_valid() && url.has_scheme()) ---- chromecast/crash/linux/minidump_uploader.cc.orig -+++ chromecast/crash/linux/minidump_uploader.cc +--- a/chromecast/crash/linux/minidump_uploader.cc ++++ b/chromecast/crash/linux/minidump_uploader.cc @@ -41,7 +41,7 @@ namespace { const char kProductName[] = "Eureka"; @@ -327,19 +327,8 @@ by default. const char kVirtualChannel[] = "virtual-channel"; ---- chromeos/geolocation/simple_geolocation_provider.cc.orig -+++ chromeos/geolocation/simple_geolocation_provider.cc -@@ -20,7 +20,7 @@ namespace chromeos { - namespace { - - const char kDefaultGeolocationProviderUrl[] = -- "https://www.googleapis.com/geolocation/v1/geolocate?"; -+ "trk:215:https://www.googleapis.com/geolocation/v1/geolocate?"; - - } // namespace - ---- components/cloud_devices/common/cloud_devices_urls.cc.orig -+++ components/cloud_devices/common/cloud_devices_urls.cc +--- a/components/cloud_devices/common/cloud_devices_urls.cc ++++ b/components/cloud_devices/common/cloud_devices_urls.cc @@ -13,14 +13,14 @@ namespace cloud_devices { @@ -357,8 +346,8 @@ by default. } ---- components/drive/service/drive_api_service.cc.orig -+++ components/drive/service/drive_api_service.cc +--- a/components/drive/service/drive_api_service.cc ++++ b/components/drive/service/drive_api_service.cc @@ -75,9 +75,9 @@ namespace drive { namespace { @@ -371,9 +360,9 @@ by default. const char kDriveAppsScope[] = "https://www.googleapis.com/auth/drive.apps"; // Mime type to create a directory. ---- components/feedback/feedback_uploader.cc.orig -+++ components/feedback/feedback_uploader.cc -@@ -27,7 +27,7 @@ constexpr base::FilePath::CharType kFeed +--- a/components/feedback/feedback_uploader.cc ++++ b/components/feedback/feedback_uploader.cc +@@ -39,7 +39,7 @@ constexpr base::FilePath::CharType kFeed FILE_PATH_LITERAL("Feedback Reports"); constexpr char kFeedbackPostUrl[] = @@ -382,9 +371,9 @@ by default. constexpr char kProtoBufMimeType[] = "application/x-protobuf"; ---- components/google/core/common/google_util.cc.orig -+++ components/google/core/common/google_util.cc -@@ -143,7 +143,7 @@ bool IsGoogleSearchSubdomainUrl(const GU +--- a/components/google/core/common/google_util.cc ++++ b/components/google/core/common/google_util.cc +@@ -142,7 +142,7 @@ bool IsGoogleSearchSubdomainUrl(const GU // Global functions ----------------------------------------------------------- @@ -393,9 +382,9 @@ by default. bool HasGoogleSearchQueryParam(base::StringPiece str) { url::Component query(0, static_cast(str.length())), key, value; ---- components/history/core/browser/web_history_service.cc.orig -+++ components/history/core/browser/web_history_service.cc -@@ -42,13 +42,13 @@ namespace history { +--- a/components/history/core/browser/web_history_service.cc ++++ b/components/history/core/browser/web_history_service.cc +@@ -43,13 +43,13 @@ namespace history { namespace { const char kHistoryOAuthScope[] = @@ -412,8 +401,8 @@ by default. const char kHistoryAudioHistoryUrl[] = "https://history.google.com/history/api/lookup?client=audio"; ---- components/metrics/url_constants.cc.orig -+++ components/metrics/url_constants.cc +--- a/components/metrics/url_constants.cc ++++ b/components/metrics/url_constants.cc @@ -7,7 +7,7 @@ namespace metrics { @@ -423,8 +412,8 @@ by default. const char kNewMetricsServerUrlInsecure[] = "http://clientservices.googleapis.com/uma/v2"; ---- components/safe_browsing/content/browser/client_side_detection_service.cc.orig -+++ components/safe_browsing/content/browser/client_side_detection_service.cc +--- a/components/safe_browsing/content/browser/client_side_detection_service.cc ++++ b/components/safe_browsing/content/browser/client_side_detection_service.cc @@ -62,7 +62,7 @@ const int ClientSideDetectionService::kN const int ClientSideDetectionService::kPositiveCacheIntervalMinutes = 30; @@ -434,8 +423,8 @@ by default. struct ClientSideDetectionService::ClientPhishingReportInfo { std::unique_ptr loader; ---- components/safe_search_api/safe_search/safe_search_url_checker_client.cc.orig -+++ components/safe_search_api/safe_search/safe_search_url_checker_client.cc +--- a/components/safe_search_api/safe_search/safe_search_url_checker_client.cc ++++ b/components/safe_search_api/safe_search/safe_search_url_checker_client.cc @@ -28,7 +28,7 @@ namespace safe_search_api { namespace { @@ -445,8 +434,8 @@ by default. const char kDataContentType[] = "application/x-www-form-urlencoded"; const char kDataFormat[] = "key=%s&urls=%s"; ---- components/safe_search_api/stub_url_checker.cc.orig -+++ components/safe_search_api/stub_url_checker.cc +--- a/components/safe_search_api/stub_url_checker.cc ++++ b/components/safe_search_api/stub_url_checker.cc @@ -21,7 +21,7 @@ namespace safe_search_api { namespace { @@ -455,9 +444,9 @@ by default. + "trk:238:https://safesearch.googleapis.com/v1:classify"; std::string BuildResponse(bool is_porn) { - base::DictionaryValue dict; ---- components/translate/core/browser/translate_url_fetcher.cc.orig -+++ components/translate/core/browser/translate_url_fetcher.cc + base::Value dict(base::Value::Type::DICTIONARY); +--- a/components/translate/core/browser/translate_url_fetcher.cc ++++ b/components/translate/core/browser/translate_url_fetcher.cc @@ -99,6 +99,7 @@ bool TranslateURLFetcher::Request(const if (!extra_request_header_.empty()) resource_request->headers.AddHeaderFromString(extra_request_header_); @@ -466,9 +455,9 @@ by default. simple_loader_ = variations::CreateSimpleURLLoaderWithVariationsHeaderUnknownSignedIn( std::move(resource_request), ---- components/translate/core/common/translate_util.cc.orig -+++ components/translate/core/common/translate_util.cc -@@ -20,7 +20,7 @@ const char kDetectLanguageInSubFrames[] +--- a/components/translate/core/common/translate_util.cc ++++ b/components/translate/core/common/translate_util.cc +@@ -21,7 +21,7 @@ const char kDetectLanguageInSubFrames[] } // namespace @@ -477,8 +466,8 @@ by default. const base::Feature kTranslateSubFrames{"TranslateSubFrames", base::FEATURE_DISABLED_BY_DEFAULT}; ---- components/variations/variations_url_constants.cc.orig -+++ components/variations/variations_url_constants.cc +--- a/components/variations/variations_url_constants.cc ++++ b/components/variations/variations_url_constants.cc @@ -8,7 +8,7 @@ namespace variations { // Default server of Variations seed info. @@ -488,8 +477,8 @@ by default. const char kDefaultInsecureServerUrl[] = "http://clientservices.googleapis.com/chrome-variations/seed"; ---- content/browser/speech/speech_recognition_engine.cc.orig -+++ content/browser/speech/speech_recognition_engine.cc +--- a/content/browser/speech/speech_recognition_engine.cc ++++ b/content/browser/speech/speech_recognition_engine.cc @@ -33,7 +33,7 @@ namespace content { namespace { @@ -499,9 +488,9 @@ by default. const char kDownstreamUrl[] = "/down?"; const char kUpstreamUrl[] = "/up?"; ---- content/browser/webauth/authenticator_common.cc.orig -+++ content/browser/webauth/authenticator_common.cc -@@ -88,9 +88,9 @@ enum class RequestExtension { +--- a/content/browser/webauth/authenticator_common.cc ++++ b/content/browser/webauth/authenticator_common.cc +@@ -91,9 +91,9 @@ enum class RequestExtension { namespace { constexpr char kGstaticAppId[] = @@ -513,19 +502,19 @@ by default. WebAuthenticationDelegate* GetWebAuthenticationDelegate() { return GetContentClient()->browser()->GetWebAuthenticationDelegate(); ---- content/shell/browser/shell_browser_main_parts.cc.orig -+++ content/shell/browser/shell_browser_main_parts.cc -@@ -96,7 +96,7 @@ GURL GetStartupURL() { +--- a/content/shell/browser/shell_browser_main_parts.cc ++++ b/content/shell/browser/shell_browser_main_parts.cc +@@ -84,7 +84,7 @@ GURL GetStartupURL() { #else const base::CommandLine::StringVector& args = command_line->GetArgs(); if (args.empty()) - return GURL("https://www.google.com/"); + return GURL("trk:183:https://www.google.com/"); - #if defined(OS_WIN) + #if BUILDFLAG(IS_WIN) GURL url(base::WideToUTF16(args[0])); ---- extensions/common/extension_urls.cc.orig -+++ extensions/common/extension_urls.cc +--- a/extensions/common/extension_urls.cc ++++ b/extensions/common/extension_urls.cc @@ -26,9 +26,9 @@ bool IsSourceFromAnExtension(const std:: namespace extension_urls { @@ -538,9 +527,9 @@ by default. GURL GetWebstoreLaunchURL() { extensions::ExtensionsClient* client = extensions::ExtensionsClient::Get(); ---- google_apis/gaia/gaia_constants.cc.orig -+++ google_apis/gaia/gaia_constants.cc -@@ -25,133 +25,133 @@ const char kSyncService[] = "chromiumsyn +--- a/google_apis/gaia/gaia_constants.cc ++++ b/google_apis/gaia/gaia_constants.cc +@@ -25,149 +25,149 @@ const char kSyncService[] = "chromiumsyn const char kRemotingService[] = "chromoting"; // OAuth scopes. @@ -593,125 +582,145 @@ by default. - "https://www.googleapis.com/auth/userinfo.profile"; + "trk:079:https://www.googleapis.com/auth/userinfo.profile"; + // OAuth2 scope for access to the parent approval widget. + const char kParentApprovalOAuth2Scope[] = +- "https://www.googleapis.com/auth/kids.parentapproval"; ++ "trk:080:https://www.googleapis.com/auth/kids.parentapproval"; + // OAuth2 scope for access to the people API (read-only). const char kPeopleApiReadOnlyOAuth2Scope[] = - "https://www.googleapis.com/auth/peopleapi.readonly"; -+ "trk:080:https://www.googleapis.com/auth/peopleapi.readonly"; ++ "trk:081:https://www.googleapis.com/auth/peopleapi.readonly"; + + // OAuth2 scope for access to the programmatic challenge API (read-only). + const char kProgrammaticChallengeOAuth2Scope[] = +- "https://www.googleapis.com/auth/accounts.programmaticchallenge"; ++ "trk:082:https://www.googleapis.com/auth/accounts.programmaticchallenge"; // OAuth2 scope for access to the Reauth flow. const char kAccountsReauthOAuth2Scope[] = - "https://www.googleapis.com/auth/accounts.reauth"; -+ "trk:081:https://www.googleapis.com/auth/accounts.reauth"; ++ "trk:083:https://www.googleapis.com/auth/accounts.reauth"; // OAuth2 scope for access to audit recording (ARI). const char kAuditRecordingOAuth2Scope[] = - "https://www.googleapis.com/auth/auditrecording-pa"; -+ "trk:082:https://www.googleapis.com/auth/auditrecording-pa"; ++ "trk:084:https://www.googleapis.com/auth/auditrecording-pa"; // OAuth2 scope for access to clear cut logs. -const char kClearCutOAuth2Scope[] = "https://www.googleapis.com/auth/cclog"; -+const char kClearCutOAuth2Scope[] = "trk:083:https://www.googleapis.com/auth/cclog"; ++const char kClearCutOAuth2Scope[] = "trk:085:https://www.googleapis.com/auth/cclog"; // OAuth2 scope for FCM, the Firebase Cloud Messaging service. const char kFCMOAuthScope[] = - "https://www.googleapis.com/auth/firebase.messaging"; -+ "trk:084:https://www.googleapis.com/auth/firebase.messaging"; ++ "trk:086:https://www.googleapis.com/auth/firebase.messaging"; // OAuth2 scope for access to Tachyon api. -const char kTachyonOAuthScope[] = "https://www.googleapis.com/auth/tachyon"; -+const char kTachyonOAuthScope[] = "trk:085:https://www.googleapis.com/auth/tachyon"; ++const char kTachyonOAuthScope[] = "trk:087:https://www.googleapis.com/auth/tachyon"; // OAuth2 scope for access to the Photos API. -const char kPhotosOAuth2Scope[] = "https://www.googleapis.com/auth/photos"; -+const char kPhotosOAuth2Scope[] = "trk:086:https://www.googleapis.com/auth/photos"; ++const char kPhotosOAuth2Scope[] = "trk:088:https://www.googleapis.com/auth/photos"; // OAuth2 scope for access to Cast backdrop API. const char kCastBackdropOAuth2Scope[] = - "https://www.googleapis.com/auth/cast.backdrop"; -+ "trk:087:https://www.googleapis.com/auth/cast.backdrop"; ++ "trk:089:https://www.googleapis.com/auth/cast.backdrop"; // OAuth scope for access to Cloud Translation API. const char kCloudTranslationOAuth2Scope[] = - "https://www.googleapis.com/auth/cloud-translation"; -+ "trk:088:https://www.googleapis.com/auth/cloud-translation"; ++ "trk:090:https://www.googleapis.com/auth/cloud-translation"; // OAuth2 scope for access to passwords leak checking API. const char kPasswordsLeakCheckOAuth2Scope[] = - "https://www.googleapis.com/auth/identity.passwords.leak.check"; -+ "trk:089:https://www.googleapis.com/auth/identity.passwords.leak.check"; ++ "trk:091:https://www.googleapis.com/auth/identity.passwords.leak.check"; // OAuth2 scope for access to Chrome safe browsing API. const char kChromeSafeBrowsingOAuth2Scope[] = - "https://www.googleapis.com/auth/chrome-safe-browsing"; -+ "trk:090:https://www.googleapis.com/auth/chrome-safe-browsing"; ++ "trk:092:https://www.googleapis.com/auth/chrome-safe-browsing"; // OAuth2 scope for access to kid permissions by URL. const char kClassifyUrlKidPermissionOAuth2Scope[] = - "https://www.googleapis.com/auth/kid.permission"; -+ "trk:091:https://www.googleapis.com/auth/kid.permission"; ++ "trk:093:https://www.googleapis.com/auth/kid.permission"; const char kKidFamilyReadonlyOAuth2Scope[] = - "https://www.googleapis.com/auth/kid.family.readonly"; -+ "trk:092:https://www.googleapis.com/auth/kid.family.readonly"; ++ "trk:094:https://www.googleapis.com/auth/kid.family.readonly"; // OAuth2 scope for access to payments. const char kPaymentsOAuth2Scope[] = - "https://www.googleapis.com/auth/wallet.chrome"; -+ "trk:093:https://www.googleapis.com/auth/wallet.chrome"; ++ "trk:095:https://www.googleapis.com/auth/wallet.chrome"; const char kCryptAuthOAuth2Scope[] = - "https://www.googleapis.com/auth/cryptauth"; -+ "trk:094:https://www.googleapis.com/auth/cryptauth"; ++ "trk:096:https://www.googleapis.com/auth/cryptauth"; // OAuth2 scope for access to Drive. -const char kDriveOAuth2Scope[] = "https://www.googleapis.com/auth/drive"; -+const char kDriveOAuth2Scope[] = "trk:095:https://www.googleapis.com/auth/drive"; ++const char kDriveOAuth2Scope[] = "trk:097:https://www.googleapis.com/auth/drive"; // The scope required for an access token in order to query ItemSuggest. const char kDriveReadOnlyOAuth2Scope[] = - "https://www.googleapis.com/auth/drive.readonly"; -+ "trk:096:https://www.googleapis.com/auth/drive.readonly"; ++ "trk:098:https://www.googleapis.com/auth/drive.readonly"; // OAuth2 scope for access to Assistant SDK. const char kAssistantOAuth2Scope[] = - "https://www.googleapis.com/auth/assistant-sdk-prototype"; -+ "trk:097:https://www.googleapis.com/auth/assistant-sdk-prototype"; ++ "trk:099:https://www.googleapis.com/auth/assistant-sdk-prototype"; // OAuth2 scope for access to nearby devices (fast pair) APIs. const char kCloudPlatformProjectsOAuth2Scope[] = - "https://www.googleapis.com/auth/cloudplatformprojects"; -+ "trk:098:https://www.googleapis.com/auth/cloudplatformprojects"; ++ "trk:100:https://www.googleapis.com/auth/cloudplatformprojects"; // OAuth2 scope for access to nearby sharing. const char kNearbyShareOAuth2Scope[] = - "https://www.googleapis.com/auth/nearbysharing-pa"; -+ "trk:099:https://www.googleapis.com/auth/nearbysharing-pa"; ++ "trk:101:https://www.googleapis.com/auth/nearbysharing-pa"; // OAuth2 scopes for access to GCM account tracker. -const char kGCMGroupServerOAuth2Scope[] = "https://www.googleapis.com/auth/gcm"; -+const char kGCMGroupServerOAuth2Scope[] = "trk:100:https://www.googleapis.com/auth/gcm"; ++const char kGCMGroupServerOAuth2Scope[] = "trk:102:https://www.googleapis.com/auth/gcm"; const char kGCMCheckinServerOAuth2Scope[] = - "https://www.googleapis.com/auth/android_checkin"; -+ "trk:101:https://www.googleapis.com/auth/android_checkin"; ++ "trk:103:https://www.googleapis.com/auth/android_checkin"; // OAuth2 scope for access to readonly Chrome web store. const char kChromeWebstoreOAuth2Scope[] = - "https://www.googleapis.com/auth/chromewebstore.readonly"; -+ "trk:102:https://www.googleapis.com/auth/chromewebstore.readonly"; ++ "trk:104:https://www.googleapis.com/auth/chromewebstore.readonly"; // OAuth2 scope for access to Account Capabilities API. const char kAccountCapabilitiesOAuth2Scope[] = - "https://www.googleapis.com/auth/account.capabilities"; -+ "trk:103:https://www.googleapis.com/auth/account.capabilities"; ++ "trk:105:https://www.googleapis.com/auth/account.capabilities"; // OAuth2 scope for support content API. const char kSupportContentOAuth2Scope[] = - "https://www.googleapis.com/auth/supportcontent"; -+ "trk:104:https://www.googleapis.com/auth/supportcontent"; ++ "trk:106:https://www.googleapis.com/auth/supportcontent"; // OAuth 2 scope for NTP Photos module API. const char kPhotosModuleOAuth2Scope[] = ---- google_apis/gaia/gaia_urls.cc.orig -+++ google_apis/gaia/gaia_urls.cc +- "https://www.googleapis.com/auth/photos.firstparty.readonly"; ++ "trk:107:https://www.googleapis.com/auth/photos.firstparty.readonly"; + + // OAuth 2 scope for NTP Photos module image API. + const char kPhotosModuleImageOAuth2Scope[] = +- "https://www.googleapis.com/auth/photos.image.readonly"; ++ "trk:108:https://www.googleapis.com/auth/photos.image.readonly"; + + // Used to mint uber auth tokens when needed. + const char kGaiaSid[] = "sid"; +--- a/google_apis/gaia/gaia_urls.cc ++++ b/google_apis/gaia/gaia_urls.cc @@ -24,6 +24,7 @@ namespace { @@ -720,8 +729,8 @@ by default. const char kDefaultGoogleUrl[] = "http://google.com"; const char kDefaultGaiaUrl[] = "https://accounts.google.com"; const char kDefaultGoogleApisBaseUrl[] = "https://www.googleapis.com"; ---- google_apis/gcm/engine/gservices_settings.cc.orig -+++ google_apis/gcm/engine/gservices_settings.cc +--- a/google_apis/gcm/engine/gservices_settings.cc ++++ b/google_apis/gcm/engine/gservices_settings.cc @@ -30,18 +30,18 @@ const char kRegistrationURLKey[] = "gcm_ const int64_t kDefaultCheckinInterval = 2 * 24 * 60 * 60; // seconds = 2 days. @@ -744,19 +753,8 @@ by default. const int kMaxSecurePort = 65535; std::string MakeMCSEndpoint(const std::string& mcs_hostname, int port) { ---- jingle/notifier/base/gaia_token_pre_xmpp_auth.cc.orig -+++ jingle/notifier/base/gaia_token_pre_xmpp_auth.cc -@@ -36,7 +36,7 @@ class GaiaCookieMechanism : public jingl - // These attributes are necessary for working with non-gmail gaia - // accounts. - const std::string NS_GOOGLE_AUTH_PROTOCOL( -- "http://www.google.com/talk/protocol/auth"); -+ "trk:179:http://www.google.com/talk/protocol/auth"); - const jingle_xmpp::QName QN_GOOGLE_ALLOW_GENERATED_JID_XMPP_LOGIN( - NS_GOOGLE_AUTH_PROTOCOL, "allow-generated-jid"); - const jingle_xmpp::QName QN_GOOGLE_AUTH_CLIENT_USES_FULL_BIND_RESULT( ---- remoting/base/breakpad_mac.mm.orig -+++ remoting/base/breakpad_mac.mm +--- a/remoting/base/breakpad_mac.mm ++++ b/remoting/base/breakpad_mac.mm @@ -50,7 +50,7 @@ void InitializeCrashReporting() { breakpad_config[@BREAKPAD_REPORT_INTERVAL] = @"21600"; } @@ -766,8 +764,8 @@ by default. } if (!BreakpadCreate(breakpad_config)) { ---- remoting/protocol/jingle_messages.cc.orig -+++ remoting/protocol/jingle_messages.cc +--- a/remoting/protocol/jingle_messages.cc ++++ b/remoting/protocol/jingle_messages.cc @@ -27,7 +27,7 @@ const char kJabberNamespace[] = "jabber: const char kJingleNamespace[] = "urn:xmpp:jingle:1"; @@ -777,8 +775,8 @@ by default. const char kWebrtcTransportNamespace[] = "google:remoting:webrtc"; ---- rlz/lib/lib_values.cc.orig -+++ rlz/lib/lib_values.cc +--- a/rlz/lib/lib_values.cc ++++ b/rlz/lib/lib_values.cc @@ -40,7 +40,7 @@ const char kSetDccResponseVariable[] = " // @@ -788,37 +786,8 @@ by default. const int kFinancialPort = 443; // Ping times in 100-nanosecond intervals. ---- third_party/libjingle_xmpp/xmpp/constants.cc.orig -+++ third_party/libjingle_xmpp/xmpp/constants.cc -@@ -194,7 +194,7 @@ const StaticQName QN_SASL_TEMPORARY_AUTH - - // These are non-standard. - const char NS_GOOGLE_AUTH_PROTOCOL[] = -- "http://www.google.com/talk/protocol/auth"; -+ "trk:236:http://www.google.com/talk/protocol/auth"; - const StaticQName QN_GOOGLE_AUTH_CLIENT_USES_FULL_BIND_RESULT = - { NS_GOOGLE_AUTH_PROTOCOL, "client-uses-full-bind-result" }; - const StaticQName QN_GOOGLE_ALLOW_NON_GOOGLE_ID_XMPP_LOGIN = -@@ -338,7 +338,7 @@ const char STR_SHOW_DND[] = "dnd"; - const char STR_SHOW_XA[] = "xa"; - const char STR_SHOW_OFFLINE[] = "offline"; - --const char NS_GOOGLE_PSTN_CONFERENCE[] = "http://www.google.com/pstn-conference"; -+const char NS_GOOGLE_PSTN_CONFERENCE[] = "trk:237:http://www.google.com/pstn-conference"; - const StaticQName QN_GOOGLE_PSTN_CONFERENCE_STATUS = { NS_GOOGLE_PSTN_CONFERENCE, "status" }; - const StaticQName QN_ATTR_STATUS = { STR_EMPTY, "status" }; - -@@ -433,7 +433,7 @@ const StaticQName QN_MUC_ROLE = { NS_MUC - const char STR_AFFILIATION_NONE[] = "none"; - const char STR_ROLE_PARTICIPANT[] = "participant"; - --const char NS_GOOGLE_SESSION[] = "http://www.google.com/session"; -+const char NS_GOOGLE_SESSION[] = "trk:238:http://www.google.com/session"; - const StaticQName QN_GOOGLE_CIRCLE_ID = { STR_EMPTY, "google-circle-id" }; - const StaticQName QN_GOOGLE_USER_ID = { STR_EMPTY, "google-user-id" }; - const StaticQName QN_GOOGLE_SESSION_BLOCKED = { NS_GOOGLE_SESSION, "blocked" }; ---- ui/accessibility/extensions/chromevoxclassic/chromevox/background/prefs.js.orig -+++ ui/accessibility/extensions/chromevoxclassic/chromevox/background/prefs.js +--- a/ui/accessibility/extensions/chromevoxclassic/chromevox/background/prefs.js ++++ b/ui/accessibility/extensions/chromevoxclassic/chromevox/background/prefs.js @@ -72,9 +72,9 @@ cvox.ChromeVoxPrefs.DEFAULT_PREFS = { 'outputContextFirst': false, 'position': '{}', @@ -831,8 +800,8 @@ by default. 'sticky': false, 'typingEcho': 0, 'useIBeamCursor': cvox.ChromeVox.isMac, ---- ui/accessibility/extensions/chromevoxclassic/host/chrome/host.js.orig -+++ ui/accessibility/extensions/chromevoxclassic/host/chrome/host.js +--- a/ui/accessibility/extensions/chromevoxclassic/host/chrome/host.js ++++ b/ui/accessibility/extensions/chromevoxclassic/host/chrome/host.js @@ -96,9 +96,9 @@ cvox.ChromeHost.prototype.init = functio (!cvox.ApiImplementation.siteSpecificScriptLoader || !cvox.ApiImplementation.siteSpecificScriptBase); @@ -845,8 +814,8 @@ by default. if (apiPrefsChanged) { var searchInit = prefs['siteSpecificEnhancements'] === 'true' ? cvox.SearchLoader.init : ---- ui/views/examples/webview_example.cc.orig -+++ ui/views/examples/webview_example.cc +--- a/ui/views/examples/webview_example.cc ++++ b/ui/views/examples/webview_example.cc @@ -29,7 +29,7 @@ void WebViewExample::CreateExampleView(V webview_->GetWebContents()->SetDelegate(this); container->SetLayoutManager(std::make_unique()); diff --git a/www/chromium-uc/patches/core/iridium-browser/safe_browsing-disable-incident-reporting.patch b/www/chromium-uc/patches/core/iridium-browser/safe_browsing-disable-incident-reporting.patch index 021abee..bcaf7ce 100644 --- a/www/chromium-uc/patches/core/iridium-browser/safe_browsing-disable-incident-reporting.patch +++ b/www/chromium-uc/patches/core/iridium-browser/safe_browsing-disable-incident-reporting.patch @@ -14,9 +14,9 @@ the URL so we get notified if this happens again in the future). .../security_interstitials/core/safe_browsing_loud_error_ui.cc | 1 + 5 files changed, 7 insertions(+), 4 deletions(-) ---- chrome/browser/safe_browsing/chrome_safe_browsing_blocking_page_factory.cc.orig -+++ chrome/browser/safe_browsing/chrome_safe_browsing_blocking_page_factory.cc -@@ -35,8 +35,7 @@ ChromeSafeBrowsingBlockingPageFactory::C +--- a/chrome/browser/safe_browsing/chrome_safe_browsing_blocking_page_factory.cc ++++ b/chrome/browser/safe_browsing/chrome_safe_browsing_blocking_page_factory.cc +@@ -36,8 +36,7 @@ ChromeSafeBrowsingBlockingPageFactory::C Profile::FromBrowserContext(web_contents->GetBrowserContext()); // Create appropriate display options for this blocking page. PrefService* prefs = profile->GetPrefs(); @@ -26,8 +26,8 @@ the URL so we get notified if this happens again in the future). bool is_proceed_anyway_disabled = prefs->GetBoolean(prefs::kSafeBrowsingProceedAnywayDisabled); ---- chrome/browser/safe_browsing/incident_reporting/incident_report_uploader_impl.cc.orig -+++ chrome/browser/safe_browsing/incident_reporting/incident_report_uploader_impl.cc +--- a/chrome/browser/safe_browsing/incident_reporting/incident_report_uploader_impl.cc ++++ b/chrome/browser/safe_browsing/incident_reporting/incident_report_uploader_impl.cc @@ -27,7 +27,7 @@ namespace safe_browsing { namespace { @@ -37,8 +37,8 @@ the URL so we get notified if this happens again in the future). constexpr net::NetworkTrafficAnnotationTag kSafeBrowsingIncidentTrafficAnnotation = ---- chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc.orig -+++ chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc +--- a/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc ++++ b/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc @@ -308,11 +308,14 @@ IncidentReportingService::UploadContext: // static @@ -54,9 +54,9 @@ the URL so we get notified if this happens again in the future). } IncidentReportingService::IncidentReportingService( ---- chrome/browser/safe_browsing/safe_browsing_service.cc.orig -+++ chrome/browser/safe_browsing/safe_browsing_service.cc -@@ -286,7 +286,7 @@ SafeBrowsingUIManager* SafeBrowsingServi +--- a/chrome/browser/safe_browsing/safe_browsing_service.cc ++++ b/chrome/browser/safe_browsing/safe_browsing_service.cc +@@ -278,7 +278,7 @@ SafeBrowsingUIManager* SafeBrowsingServi } void SafeBrowsingService::RegisterAllDelayedAnalysis() { @@ -65,8 +65,8 @@ the URL so we get notified if this happens again in the future). RegisterBinaryIntegrityAnalysis(); #endif } ---- components/security_interstitials/core/safe_browsing_loud_error_ui.cc.orig -+++ components/security_interstitials/core/safe_browsing_loud_error_ui.cc +--- a/components/security_interstitials/core/safe_browsing_loud_error_ui.cc ++++ b/components/security_interstitials/core/safe_browsing_loud_error_ui.cc @@ -25,11 +25,11 @@ namespace { // For malware interstitial pages, we link the problematic URL to Google's // diagnostic page. diff --git a/www/chromium-uc/patches/core/iridium-browser/safe_browsing-disable-reporting-of-safebrowsing-over.patch b/www/chromium-uc/patches/core/iridium-browser/safe_browsing-disable-reporting-of-safebrowsing-over.patch index 23f0675..3864e25 100644 --- a/www/chromium-uc/patches/core/iridium-browser/safe_browsing-disable-reporting-of-safebrowsing-over.patch +++ b/www/chromium-uc/patches/core/iridium-browser/safe_browsing-disable-reporting-of-safebrowsing-over.patch @@ -11,9 +11,9 @@ This prevents trk:148 (phishing) and trk:149 (malware). components/safe_browsing/content/browser/client_side_detection_service.cc | 5 +++++ 1 file changed, 5 insertions(+) ---- components/safe_browsing/content/browser/client_side_detection_service.cc.orig -+++ components/safe_browsing/content/browser/client_side_detection_service.cc -@@ -209,6 +209,10 @@ void ClientSideDetectionService::StartCl +--- a/components/safe_browsing/content/browser/client_side_detection_service.cc ++++ b/components/safe_browsing/content/browser/client_side_detection_service.cc +@@ -217,6 +217,10 @@ void ClientSideDetectionService::StartCl return; } @@ -24,7 +24,7 @@ This prevents trk:148 (phishing) and trk:149 (malware). // Fill in metadata about which model we used. *request->mutable_population() = delegate_->GetUserPopulation(); -@@ -288,6 +292,7 @@ void ClientSideDetectionService::StartCl +@@ -296,6 +300,7 @@ void ClientSideDetectionService::StartCl base::BindOnce(&WebUIInfoSingleton::AddToClientPhishingRequestsSent, base::Unretained(WebUIInfoSingleton::GetInstance()), std::move(request), access_token)); diff --git a/www/chromium-uc/patches/core/ungoogled-chromium/block-requests.patch b/www/chromium-uc/patches/core/ungoogled-chromium/block-requests.patch index 1e29eb6..13eb9d7 100644 --- a/www/chromium-uc/patches/core/ungoogled-chromium/block-requests.patch +++ b/www/chromium-uc/patches/core/ungoogled-chromium/block-requests.patch @@ -1,7 +1,7 @@ ## Prevent request attempts # chrome://discards/ attempts to use d3 to display the graph ---- chrome/browser/new_tab_page/one_google_bar/one_google_bar_loader_impl.cc.orig -+++ chrome/browser/new_tab_page/one_google_bar/one_google_bar_loader_impl.cc +--- a/chrome/browser/new_tab_page/one_google_bar/one_google_bar_loader_impl.cc ++++ b/chrome/browser/new_tab_page/one_google_bar/one_google_bar_loader_impl.cc @@ -286,6 +286,7 @@ OneGoogleBarLoaderImpl::OneGoogleBarLoad OneGoogleBarLoaderImpl::~OneGoogleBarLoaderImpl() = default; @@ -10,8 +10,8 @@ callbacks_.push_back(std::move(callback)); // Note: If there is an ongoing request, abandon it. It's possible that ---- chrome/browser/new_tab_page/promos/promo_service.cc.orig -+++ chrome/browser/new_tab_page/promos/promo_service.cc +--- a/chrome/browser/new_tab_page/promos/promo_service.cc ++++ b/chrome/browser/new_tab_page/promos/promo_service.cc @@ -138,6 +138,7 @@ PromoService::PromoService( PromoService::~PromoService() = default; @@ -20,8 +20,8 @@ net::NetworkTrafficAnnotationTag traffic_annotation = net::DefineNetworkTrafficAnnotation("promo_service", R"( semantics { ---- chrome/browser/resources/discards/graph_doc_template.html.orig -+++ chrome/browser/resources/discards/graph_doc_template.html +--- a/chrome/browser/resources/discards/graph_doc_template.html ++++ b/chrome/browser/resources/discards/graph_doc_template.html @@ -78,10 +78,6 @@ URL. As result, this document needs to b } @@ -33,8 +33,8 @@ ---- chrome/browser/search/background/ntp_background_service.cc.orig -+++ chrome/browser/search/background/ntp_background_service.cc +--- a/chrome/browser/search/background/ntp_background_service.cc ++++ b/chrome/browser/search/background/ntp_background_service.cc @@ -83,6 +83,7 @@ void NtpBackgroundService::Shutdown() { } @@ -43,8 +43,8 @@ if (collections_loader_ != nullptr) return; collection_error_info_.ClearError(); ---- chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc.orig -+++ chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc +--- a/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc ++++ b/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc @@ -286,6 +286,7 @@ GURL SpellcheckHunspellDictionary::GetDi } @@ -53,8 +53,8 @@ DCHECK_CURRENTLY_ON(BrowserThread::UI); DCHECK(browser_context_); ---- components/assist_ranker/ranker_url_fetcher.cc.orig -+++ components/assist_ranker/ranker_url_fetcher.cc +--- a/components/assist_ranker/ranker_url_fetcher.cc ++++ b/components/assist_ranker/ranker_url_fetcher.cc @@ -31,6 +31,7 @@ bool RankerURLFetcher::Request( const GURL& url, RankerURLFetcher::Callback callback, @@ -63,11 +63,11 @@ // This function is not supposed to be called if the previous operation is not // finished. if (state_ == REQUESTING) { ---- components/update_client/update_checker.cc.orig -+++ components/update_client/update_checker.cc -@@ -129,6 +129,7 @@ void UpdateCheckerImpl::CheckForUpdates( +--- a/components/update_client/update_checker.cc ++++ b/components/update_client/update_checker.cc +@@ -109,6 +109,7 @@ void UpdateCheckerImpl::CheckForUpdates( + const IdToComponentPtrMap& components, const base::flat_map& additional_attributes, - bool enabled_component_updates, UpdateCheckCallback update_check_callback) { + return; DCHECK(thread_checker_.CalledOnValidThread()); diff --git a/www/chromium-uc/patches/core/ungoogled-chromium/block-trk-and-subdomains.patch b/www/chromium-uc/patches/core/ungoogled-chromium/block-trk-and-subdomains.patch index 8b68a77..37961f4 100644 --- a/www/chromium-uc/patches/core/ungoogled-chromium/block-trk-and-subdomains.patch +++ b/www/chromium-uc/patches/core/ungoogled-chromium/block-trk-and-subdomains.patch @@ -1,9 +1,9 @@ # Block all connection requests with 'qjz9zk' in the domain name or with a 'trk:' scheme. # This patch is based on Iridium's 'net: add "trk:" scheme and help identify URLs being retrieved' ---- chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.cc.orig -+++ chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.cc -@@ -56,6 +56,7 @@ ChromeAutocompleteSchemeClassifier::GetI +--- a/chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.cc ++++ b/chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.cc +@@ -57,6 +57,7 @@ ChromeAutocompleteSchemeClassifier::GetI if (base::IsStringASCII(scheme) && (ProfileIOData::IsHandledProtocol(scheme) || base::LowerCaseEqualsASCII(scheme, content::kViewSourceScheme) || @@ -11,8 +11,8 @@ base::LowerCaseEqualsASCII(scheme, url::kJavaScriptScheme) || base::LowerCaseEqualsASCII(scheme, url::kDataScheme))) { return metrics::OmniboxInputType::URL; ---- chrome/browser/history/history_utils.cc.orig -+++ chrome/browser/history/history_utils.cc +--- a/chrome/browser/history/history_utils.cc ++++ b/chrome/browser/history/history_utils.cc @@ -21,6 +21,7 @@ bool CanAddURLToHistory(const GURL& url) url.SchemeIs(content::kChromeDevToolsScheme) || url.SchemeIs(content::kChromeUIScheme) || @@ -21,21 +21,21 @@ url.SchemeIs(chrome::kChromeNativeScheme) || url.SchemeIs(chrome::kChromeSearchScheme) || url.SchemeIs(dom_distiller::kDomDistillerScheme)) ---- chrome/browser/ui/singleton_tabs.cc.orig -+++ chrome/browser/ui/singleton_tabs.cc -@@ -99,7 +99,8 @@ int GetIndexOfExistingTab(Browser* brows - - // Skip view-source tabs. This is needed because RewriteURLIfNecessary - // removes the "view-source:" scheme which leads to incorrect matching. -- if (tab_url.SchemeIs(content::kViewSourceScheme)) -+ if (tab_url.SchemeIs(content::kViewSourceScheme) || -+ tab_url.SchemeIs(url::kTraceScheme)) +--- a/chrome/browser/ui/singleton_tabs.cc ++++ b/chrome/browser/ui/singleton_tabs.cc +@@ -102,7 +102,8 @@ int GetIndexOfExistingTab(Browser* brows + // RewriteURLIfNecessary removes the "view-source:" scheme which could lead + // to incorrect matching, so ensure that the target and the candidate are + // either both view-source:, or neither is. +- if (tab_url.SchemeIs(content::kViewSourceScheme) != target_is_view_source) { ++ if (tab_url.SchemeIs(content::kViewSourceScheme) != target_is_view_source || ++ tab_url.SchemeIs(url::kTraceScheme)) { continue; + } - GURL rewritten_tab_url = tab_url; ---- components/omnibox/browser/autocomplete_input.cc.orig -+++ components/omnibox/browser/autocomplete_input.cc -@@ -533,7 +533,8 @@ void AutocompleteInput::ParseForEmphasiz +--- a/components/omnibox/browser/autocomplete_input.cc ++++ b/components/omnibox/browser/autocomplete_input.cc +@@ -561,7 +561,8 @@ void AutocompleteInput::ParseForEmphasiz // For the view-source and blob schemes, we should emphasize the host of the // URL qualified by the view-source or blob prefix. if ((base::LowerCaseEqualsASCII(scheme_str, kViewSourceScheme) || @@ -45,8 +45,8 @@ (static_cast(text.length()) > after_scheme_and_colon)) { // Obtain the URL prefixed by view-source or blob and parse it. std::u16string real_url(text.substr(after_scheme_and_colon)); ---- components/url_formatter/url_fixer.cc.orig -+++ components/url_formatter/url_fixer.cc +--- a/components/url_formatter/url_fixer.cc ++++ b/components/url_formatter/url_fixer.cc @@ -562,6 +562,10 @@ GURL FixupURL(const std::string& text, c } } @@ -58,19 +58,19 @@ // We handle the file scheme separately. if (scheme == url::kFileScheme) return GURL(parts.scheme.is_valid() ? text : FixupPath(text)); ---- content/browser/child_process_security_policy_impl.cc.orig -+++ content/browser/child_process_security_policy_impl.cc -@@ -861,6 +861,7 @@ ChildProcessSecurityPolicyImpl::ChildPro +--- a/content/browser/child_process_security_policy_impl.cc ++++ b/content/browser/child_process_security_policy_impl.cc +@@ -732,6 +732,7 @@ ChildProcessSecurityPolicyImpl::ChildPro + RegisterWebSafeScheme(url::kWssScheme); #endif // BUILDFLAG(ENABLE_WEBSOCKETS) - RegisterWebSafeScheme(url::kFtpScheme); RegisterWebSafeScheme(url::kDataScheme); + RegisterWebSafeScheme(url::kTraceScheme); - RegisterWebSafeScheme("feed"); // TODO(nick): https://crbug.com/651534 blob: and filesystem: schemes embed ---- net/BUILD.gn.orig -+++ net/BUILD.gn -@@ -1010,6 +1010,8 @@ component("net") { + // other origins, so we should not treat them as web safe. Remove callers of +--- a/net/BUILD.gn ++++ b/net/BUILD.gn +@@ -1019,6 +1019,8 @@ component("net") { "url_request/report_sender.h", "url_request/static_http_user_agent_settings.cc", "url_request/static_http_user_agent_settings.h", @@ -80,7 +80,7 @@ "url_request/url_fetcher.h", "url_request/url_fetcher_core.cc", --- /dev/null -+++ net/url_request/trk_protocol_handler.cc ++++ b/net/url_request/trk_protocol_handler.cc @@ -0,0 +1,25 @@ +// Copyright (c) 2018 The ungoogled-chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be @@ -108,8 +108,8 @@ + +} // namespace net --- /dev/null -+++ net/url_request/trk_protocol_handler.h -@@ -0,0 +1,32 @@ ++++ b/net/url_request/trk_protocol_handler.h +@@ -0,0 +1,30 @@ +// Copyright (c) 2018 The ungoogled-chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. @@ -118,7 +118,6 @@ +#define NET_URL_REQUEST_TRK_PROTOCOL_HANDLER_H_ + +#include "base/compiler_specific.h" -+#include "base/macros.h" +#include "net/base/net_export.h" +#include "net/url_request/url_request_job_factory.h" + @@ -131,19 +130,18 @@ + : public URLRequestJobFactory::ProtocolHandler { + public: + TrkProtocolHandler(); ++ TrkProtocolHandler(const TrkProtocolHandler&) = delete; ++ TrkProtocolHandler& operator=(const TrkProtocolHandler&) = delete; + std::unique_ptr CreateJob( + URLRequest* request) const override; + bool IsSafeRedirectTarget(const GURL& location) const override; -+ -+ private: -+ DISALLOW_COPY_AND_ASSIGN(TrkProtocolHandler); +}; + +} // namespace net + +#endif // NET_URL_REQUEST_TRK_PROTOCOL_HANDLER_H_ ---- net/url_request/url_request.cc.orig -+++ net/url_request/url_request.cc +--- a/net/url_request/url_request.cc ++++ b/net/url_request/url_request.cc @@ -12,6 +12,7 @@ #include "base/compiler_specific.h" #include "base/metrics/histogram_macros.h" @@ -152,7 +150,7 @@ #include "base/strings/utf_string_conversions.h" #include "base/synchronization/lock.h" #include "base/threading/thread_task_runner_handle.h" -@@ -46,6 +47,7 @@ +@@ -45,6 +46,7 @@ #include "net/url_request/url_request_redirect_job.h" #include "url/gurl.h" #include "url/origin.h" @@ -160,7 +158,7 @@ using base::Time; using std::string; -@@ -595,6 +597,12 @@ URLRequest::URLRequest(const GURL& url, +@@ -609,6 +611,12 @@ URLRequest::URLRequest(const GURL& url, // Sanity check out environment. DCHECK(base::ThreadTaskRunnerHandle::IsSet()); @@ -173,17 +171,17 @@ context->url_requests()->insert(this); net_log_.BeginEvent(NetLogEventType::REQUEST_ALIVE, [&] { return NetLogURLRequestConstructorParams(url, priority_, ---- net/url_request/url_request_context_builder.cc.orig -+++ net/url_request/url_request_context_builder.cc -@@ -46,6 +46,7 @@ - #include "net/quic/quic_stream_factory.h" +--- a/net/url_request/url_request_context_builder.cc ++++ b/net/url_request/url_request_context_builder.cc +@@ -48,6 +48,7 @@ + #include "net/socket/network_binding_client_socket_factory.h" #include "net/ssl/ssl_config_service_defaults.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_job_factory.h" -@@ -546,6 +547,9 @@ std::unique_ptr URLRe +@@ -618,6 +619,9 @@ std::unique_ptr URLRe } protocol_handlers_.clear(); @@ -193,28 +191,30 @@ storage->set_job_factory(std::move(job_factory)); return std::move(context); ---- url/url_constants.cc.orig -+++ url/url_constants.cc -@@ -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"; +--- a/url/url_constants.cc ++++ b/url/url_constants.cc +@@ -46,6 +46,8 @@ const char kQuicTransportScheme[] = "qui + const char16_t kQuicTransportScheme16[] = u"quic-transport"; const char kTelScheme[] = "tel"; + const char16_t kTelScheme16[] = u"tel"; +const char kTraceScheme[] = "trk"; ++const char16_t kTraceScheme16[] = u"trk"; const char kUrnScheme[] = "urn"; - const char kWsScheme[] = "ws"; - const char kWssScheme[] = "wss"; ---- url/url_constants.h.orig -+++ url/url_constants.h -@@ -32,6 +32,7 @@ COMPONENT_EXPORT(URL) extern const char - COMPONENT_EXPORT(URL) extern const char kMailToScheme[]; - COMPONENT_EXPORT(URL) extern const char kQuicTransportScheme[]; + const char16_t kUrnScheme16[] = u"urn"; + const char kUuidInPackageScheme[] = "uuid-in-package"; +--- a/url/url_constants.h ++++ b/url/url_constants.h +@@ -50,6 +50,8 @@ COMPONENT_EXPORT(URL) extern const char + COMPONENT_EXPORT(URL) extern const char16_t kQuicTransportScheme16[]; COMPONENT_EXPORT(URL) extern const char kTelScheme[]; + COMPONENT_EXPORT(URL) extern const char16_t kTelScheme16[]; +COMPONENT_EXPORT(URL) extern const char kTraceScheme[]; ++COMPONENT_EXPORT(URL) extern const char16_t kTraceScheme16[]; COMPONENT_EXPORT(URL) extern const char kUrnScheme[]; - COMPONENT_EXPORT(URL) extern const char kWsScheme[]; - COMPONENT_EXPORT(URL) extern const char kWssScheme[]; ---- url/url_util.cc.orig -+++ url/url_util.cc + COMPONENT_EXPORT(URL) extern const char16_t kUrnScheme16[]; + COMPONENT_EXPORT(URL) extern const char kUuidInPackageScheme[]; +--- a/url/url_util.cc ++++ b/url/url_util.cc @@ -63,7 +63,7 @@ struct SchemeRegistry { // Schemes that do not trigger mixed content warning. diff --git a/www/chromium-uc/patches/core/ungoogled-chromium/disable-crash-reporter.patch b/www/chromium-uc/patches/core/ungoogled-chromium/disable-crash-reporter.patch index a4b3c51..e23a778 100644 --- a/www/chromium-uc/patches/core/ungoogled-chromium/disable-crash-reporter.patch +++ b/www/chromium-uc/patches/core/ungoogled-chromium/disable-crash-reporter.patch @@ -1,8 +1,8 @@ # Disable some background communication with clients2.google.com ---- components/crash/core/app/crashpad_linux.cc.orig -+++ components/crash/core/app/crashpad_linux.cc -@@ -59,8 +59,7 @@ void SetFirstChanceExceptionHandler(bool +--- a/components/crash/core/app/crashpad_linux.cc ++++ b/components/crash/core/app/crashpad_linux.cc +@@ -60,8 +60,7 @@ void SetFirstChanceExceptionHandler(bool } bool IsCrashpadEnabled() { diff --git a/www/chromium-uc/patches/core/ungoogled-chromium/disable-domain-reliability.patch b/www/chromium-uc/patches/core/ungoogled-chromium/disable-domain-reliability.patch index adc446c..d342db3 100644 --- a/www/chromium-uc/patches/core/ungoogled-chromium/disable-domain-reliability.patch +++ b/www/chromium-uc/patches/core/ungoogled-chromium/disable-domain-reliability.patch @@ -2,8 +2,8 @@ # Many of these changes are for thoroughness, # the most significant changes are in service_factory.cc and uploader.cc ---- chrome/browser/domain_reliability/service_factory.cc.orig -+++ chrome/browser/domain_reliability/service_factory.cc +--- a/chrome/browser/domain_reliability/service_factory.cc ++++ b/chrome/browser/domain_reliability/service_factory.cc @@ -11,34 +11,12 @@ namespace domain_reliability { @@ -40,8 +40,8 @@ } } // namespace domain_reliability ---- components/domain_reliability/BUILD.gn.orig -+++ components/domain_reliability/BUILD.gn +--- a/components/domain_reliability/BUILD.gn ++++ b/components/domain_reliability/BUILD.gn @@ -7,26 +7,6 @@ action("bake_in_configs") { script = "bake_in_configs.py" @@ -98,8 +98,8 @@ } component("domain_reliability") { ---- components/domain_reliability/bake_in_configs.py.orig -+++ components/domain_reliability/bake_in_configs.py +--- a/components/domain_reliability/bake_in_configs.py ++++ b/components/domain_reliability/bake_in_configs.py @@ -490,7 +490,7 @@ def origin_is_whitelisted(origin): domain = origin[8:-1] else: @@ -109,9 +109,9 @@ def quote_and_wrap_text(text, width=79, prefix=' "', suffix='"'): ---- components/domain_reliability/google_configs.cc.orig -+++ components/domain_reliability/google_configs.cc -@@ -11,564 +11,6 @@ +--- a/components/domain_reliability/google_configs.cc ++++ b/components/domain_reliability/google_configs.cc +@@ -11,548 +11,6 @@ namespace domain_reliability { @@ -402,9 +402,6 @@ - {"ampproject.net", true, false, false}, - {"ampproject.org", true, false, false}, - {"android.com", true, false, false}, -- {"anycast-edge.metric.gstatic.com", true, false, false}, -- {"anycast-stb.metric.gstatic.com", true, false, false}, -- {"anycast.metric.gstatic.com", true, false, false}, - {"cdn.ampproject.org", true, false, false}, - {"chromecast.com", true, false, false}, - {"chromeexperiments.com", true, false, false}, @@ -461,19 +458,6 @@ - {"picasa.com", true, false, false}, - {"recaptcha.net", true, false, false}, - {"stackdriver.com", true, false, false}, -- {"stbcast-stb.metric.gstatic.com", true, false, false}, -- {"stbcast.metric.gstatic.com", true, false, false}, -- {"stbcast2-stb.metric.gstatic.com", true, false, false}, -- {"stbcast2.metric.gstatic.com", true, false, false}, -- {"stbcast3-stb.metric.gstatic.com", true, false, false}, -- {"stbcast3.metric.gstatic.com", true, false, false}, -- {"stbcast4-stb.metric.gstatic.com", true, false, false}, -- {"stbcast4.metric.gstatic.com", true, false, false}, -- {"unicast-edge.metric.gstatic.com", true, false, false}, -- {"unicast-stb.metric.gstatic.com", true, false, false}, -- {"unicast.metric.gstatic.com", true, false, false}, -- {"unicast2-stb.metric.gstatic.com", true, false, false}, -- {"unicast2.metric.gstatic.com", true, false, false}, - {"waze.com", true, false, false}, - {"withgoogle.com", true, false, false}, - {"youtu.be", true, false, false}, @@ -676,7 +660,7 @@ std::unique_ptr MaybeGetGoogleConfig( const std::string& hostname) { bool is_www_subdomain = -@@ -578,23 +20,6 @@ std::unique_ptr config; std::unique_ptr superdomain_config; @@ -700,7 +684,7 @@ if (config) { DCHECK(config->origin.host() == hostname); return config; -@@ -613,11 +38,6 @@ std::vector> configs_out; @@ -712,9 +696,9 @@ return configs_out; } ---- components/domain_reliability/uploader.cc.orig -+++ components/domain_reliability/uploader.cc -@@ -79,7 +79,7 @@ class DomainReliabilityUploaderImpl : pu +--- a/components/domain_reliability/uploader.cc ++++ b/components/domain_reliability/uploader.cc +@@ -80,7 +80,7 @@ class DomainReliabilityUploaderImpl : pu if (discard_uploads_) discarded_upload_count_++; diff --git a/www/chromium-uc/patches/core/ungoogled-chromium/disable-floc.patch b/www/chromium-uc/patches/core/ungoogled-chromium/disable-floc.patch deleted file mode 100644 index 3ef84c2..0000000 --- a/www/chromium-uc/patches/core/ungoogled-chromium/disable-floc.patch +++ /dev/null @@ -1,78 +0,0 @@ ---- chrome/browser/federated_learning/floc_id_provider_factory.cc.orig -+++ chrome/browser/federated_learning/floc_id_provider_factory.cc -@@ -49,42 +49,7 @@ FlocIdProviderFactory::~FlocIdProviderFa - - KeyedService* FlocIdProviderFactory::BuildServiceInstanceFor( - content::BrowserContext* context) const { -- if (!base::FeatureList::IsEnabled(kFederatedLearningOfCohorts)) -- return nullptr; -- -- Profile* profile = Profile::FromBrowserContext(context); -- -- syncer::SyncService* sync_service = -- SyncServiceFactory::GetForProfile(profile); -- if (!sync_service) -- return nullptr; -- -- PrivacySandboxSettings* privacy_sandbox_settings = -- PrivacySandboxSettingsFactory::GetForProfile(profile); -- if (!privacy_sandbox_settings) -- return nullptr; -- -- FlocRemotePermissionService* floc_remote_permission_service = -- FlocRemotePermissionServiceFactory::GetForProfile(profile); -- if (!floc_remote_permission_service) -- return nullptr; -- -- history::HistoryService* history_service = -- HistoryServiceFactory::GetForProfile(profile, -- ServiceAccessType::IMPLICIT_ACCESS); -- if (!history_service) -- return nullptr; -- -- syncer::UserEventService* user_event_service = -- browser_sync::UserEventServiceFactory::GetForProfile(profile); -- if (!user_event_service) -- return nullptr; -- -- auto floc_event_logger = std::make_unique( -- sync_service, floc_remote_permission_service, user_event_service); -- -- return new FlocIdProviderImpl(profile->GetPrefs(), privacy_sandbox_settings, -- history_service, std::move(floc_event_logger)); -+ return nullptr; - } - - } // namespace federated_learning ---- chrome/browser/privacy_sandbox/privacy_sandbox_settings.cc.orig -+++ chrome/browser/privacy_sandbox/privacy_sandbox_settings.cc -@@ -132,8 +132,7 @@ bool ShouldDisablePrivacySandbox( - - // Returns whether FLoC is allowable by the current state of |pref_service|. - bool IsFlocAllowedByPrefs(PrefService* pref_service) { -- return pref_service->GetBoolean(prefs::kPrivacySandboxFlocEnabled) && -- pref_service->GetBoolean(prefs::kPrivacySandboxApisEnabled); -+ return false; - } - - // Returns the number of days in |time|, rounded to the closest day by hour if -@@ -207,7 +206,7 @@ PrivacySandboxSettings::PrivacySandboxSe - PrivacySandboxSettings::~PrivacySandboxSettings() = default; - - bool PrivacySandboxSettings::IsFlocAllowed() const { -- return IsFlocAllowedByPrefs(pref_service_); -+ return false; - } - - bool PrivacySandboxSettings::IsFlocAllowedForContext( ---- components/privacy_sandbox/privacy_sandbox_prefs.cc.orig -+++ components/privacy_sandbox/privacy_sandbox_prefs.cc -@@ -42,7 +42,7 @@ void RegisterProfilePrefs(PrefRegistrySi - registry->RegisterTimePref(prefs::kPrivacySandboxFlocDataAccessibleSince, - base::Time()); - registry->RegisterBooleanPref( -- prefs::kPrivacySandboxFlocEnabled, true, -+ prefs::kPrivacySandboxFlocEnabled, false, - user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); - } - diff --git a/www/chromium-uc/patches/core/ungoogled-chromium/disable-fonts-googleapis-references.patch b/www/chromium-uc/patches/core/ungoogled-chromium/disable-fonts-googleapis-references.patch index e969364..ebfc63a 100644 --- a/www/chromium-uc/patches/core/ungoogled-chromium/disable-fonts-googleapis-references.patch +++ b/www/chromium-uc/patches/core/ungoogled-chromium/disable-fonts-googleapis-references.patch @@ -1,7 +1,7 @@ # Disables references to fonts.googleapis.com ---- chrome/browser/ash/child_accounts/time_limits/web_time_limit_error_page/resources/web_time_limit_error_page.html.orig -+++ chrome/browser/ash/child_accounts/time_limits/web_time_limit_error_page/resources/web_time_limit_error_page.html +--- a/chrome/browser/ash/child_accounts/time_limits/web_time_limit_error_page/resources/web_time_limit_error_page.html ++++ b/chrome/browser/ash/child_accounts/time_limits/web_time_limit_error_page/resources/web_time_limit_error_page.html @@ -5,7 +5,7 @@ @@ -11,8 +11,8 @@ ---- chrome/browser/resources/chromeos/accessibility/chromevox/options/options.css.orig -+++ chrome/browser/resources/chromeos/accessibility/chromevox/options/options.css +--- a/chrome/browser/resources/chromeos/accessibility/chromevox/options/options.css ++++ b/chrome/browser/resources/chromeos/accessibility/chromevox/options/options.css @@ -2,7 +2,7 @@ * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ @@ -22,8 +22,8 @@ body { margin: 0 0 20px 0; ---- chrome/browser/resources/chromeos/accessibility/select_to_speak/options.css.orig -+++ chrome/browser/resources/chromeos/accessibility/select_to_speak/options.css +--- a/chrome/browser/resources/chromeos/accessibility/select_to_speak/options.css ++++ b/chrome/browser/resources/chromeos/accessibility/select_to_speak/options.css @@ -2,7 +2,7 @@ * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ @@ -33,8 +33,8 @@ body { margin: 0 0 20px 0; ---- chrome/browser/supervised_user/supervised_user_error_page/resources/supervised_user_block_interstitial.html.orig -+++ chrome/browser/supervised_user/supervised_user_error_page/resources/supervised_user_block_interstitial.html +--- a/chrome/browser/supervised_user/supervised_user_error_page/resources/supervised_user_block_interstitial.html ++++ b/chrome/browser/supervised_user/supervised_user_error_page/resources/supervised_user_block_interstitial.html @@ -5,7 +5,7 @@ @@ -44,9 +44,9 @@ ---- components/dom_distiller/content/browser/dom_distiller_viewer_source.cc.orig -+++ components/dom_distiller/content/browser/dom_distiller_viewer_source.cc -@@ -300,7 +300,7 @@ bool DomDistillerViewerSource::ShouldSer +--- a/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc ++++ b/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc +@@ -298,7 +298,7 @@ bool DomDistillerViewerSource::ShouldSer std::string DomDistillerViewerSource::GetContentSecurityPolicy( network::mojom::CSPDirectiveName directive) { if (directive == network::mojom::CSPDirectiveName::StyleSrc) { @@ -55,8 +55,8 @@ } else if (directive == network::mojom::CSPDirectiveName::ChildSrc) { return "child-src *;"; } else if (directive == ---- components/dom_distiller/core/html/preview.html.orig -+++ components/dom_distiller/core/html/preview.html +--- a/components/dom_distiller/core/html/preview.html ++++ b/components/dom_distiller/core/html/preview.html @@ -11,7 +11,7 @@ found in the LICENSE file. Title goes here and it could be kind of lengthy - Publisher name @@ -66,8 +66,8 @@ -- +- + + -- -- +- @@ -207,8 +209,8 @@ - on-click="onAdvancedProtectionProgramLinkClick_" - external> - ---- chrome/browser/resources/settings/search_page/search_page.html.orig -+++ chrome/browser/resources/settings/search_page/search_page.html +--- a/chrome/browser/resources/settings/search_page/search_page.html ++++ b/chrome/browser/resources/settings/search_page/search_page.html @@ -12,10 +12,6 @@
@@ -220,19 +222,8 @@