summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www/chromium-uc/Makefile2
-rw-r--r--www/chromium-uc/patches/core/bromite/disable-fetching-field-trials.patch10
-rw-r--r--www/chromium-uc/patches/core/debian/disable/unrar.patch24
-rw-r--r--www/chromium-uc/patches/core/inox-patchset/0001-fix-building-without-safebrowsing.patch345
-rw-r--r--www/chromium-uc/patches/core/inox-patchset/0003-disable-autofill-download-manager.patch12
-rw-r--r--www/chromium-uc/patches/core/inox-patchset/0005-disable-default-extensions.patch30
-rw-r--r--www/chromium-uc/patches/core/inox-patchset/0007-disable-web-resource-service.patch4
-rw-r--r--www/chromium-uc/patches/core/inox-patchset/0009-disable-google-ipv6-probes.patch6
-rw-r--r--www/chromium-uc/patches/core/inox-patchset/0015-disable-update-pings.patch6
-rw-r--r--www/chromium-uc/patches/core/inox-patchset/0017-disable-new-avatar-menu.patch11
-rw-r--r--www/chromium-uc/patches/core/inox-patchset/0021-disable-rlz.patch10
-rw-r--r--www/chromium-uc/patches/core/iridium-browser/all-add-trk-prefixes-to-possibly-evil-connections.patch396
-rw-r--r--www/chromium-uc/patches/core/iridium-browser/safe_browsing-disable-incident-reporting.patch26
-rw-r--r--www/chromium-uc/patches/core/iridium-browser/safe_browsing-disable-reporting-of-safebrowsing-over.patch8
-rw-r--r--www/chromium-uc/patches/core/ungoogled-chromium/block-requests.patch36
-rw-r--r--www/chromium-uc/patches/core/ungoogled-chromium/block-trk-and-subdomains.patch120
-rw-r--r--www/chromium-uc/patches/core/ungoogled-chromium/disable-crash-reporter.patch6
-rw-r--r--www/chromium-uc/patches/core/ungoogled-chromium/disable-domain-reliability.patch44
-rw-r--r--www/chromium-uc/patches/core/ungoogled-chromium/disable-floc.patch78
-rw-r--r--www/chromium-uc/patches/core/ungoogled-chromium/disable-fonts-googleapis-references.patch38
-rw-r--r--www/chromium-uc/patches/core/ungoogled-chromium/disable-gaia.patch9
-rw-r--r--www/chromium-uc/patches/core/ungoogled-chromium/disable-gcm.patch6
-rw-r--r--www/chromium-uc/patches/core/ungoogled-chromium/disable-google-host-detection.patch73
-rw-r--r--www/chromium-uc/patches/core/ungoogled-chromium/disable-mei-preload.patch10
-rw-r--r--www/chromium-uc/patches/core/ungoogled-chromium/disable-network-time-tracker.patch6
-rw-r--r--www/chromium-uc/patches/core/ungoogled-chromium/disable-privacy-sandbox.patch116
-rw-r--r--www/chromium-uc/patches/core/ungoogled-chromium/disable-profile-avatar-downloading.patch4
-rw-r--r--www/chromium-uc/patches/core/ungoogled-chromium/disable-signin.patch6
-rw-r--r--www/chromium-uc/patches/core/ungoogled-chromium/disable-untraceable-urls.patch51
-rw-r--r--www/chromium-uc/patches/core/ungoogled-chromium/disable-webrtc-log-uploader.patch10
-rw-r--r--www/chromium-uc/patches/core/ungoogled-chromium/disable-webstore-urls.patch93
-rw-r--r--www/chromium-uc/patches/core/ungoogled-chromium/doh-changes.patch76
-rw-r--r--www/chromium-uc/patches/core/ungoogled-chromium/fix-building-with-prunned-binaries.patch16
-rw-r--r--www/chromium-uc/patches/core/ungoogled-chromium/fix-building-without-enabling-reporting.patch215
-rw-r--r--www/chromium-uc/patches/core/ungoogled-chromium/fix-building-without-one-click-signin.patch16
-rw-r--r--www/chromium-uc/patches/core/ungoogled-chromium/fix-building-without-safebrowsing.patch1200
-rw-r--r--www/chromium-uc/patches/core/ungoogled-chromium/fix-learn-doubleclick-hsts.patch4
-rw-r--r--www/chromium-uc/patches/core/ungoogled-chromium/remove-unused-preferences-fields.patch2243
-rw-r--r--www/chromium-uc/patches/core/ungoogled-chromium/replace-google-search-engine-with-nosearch.patch11
-rw-r--r--www/chromium-uc/patches/core/ungoogled-chromium/toggle-translation-via-switch.patch28
-rw-r--r--www/chromium-uc/patches/extra/bromite/fingerprinting-flags-client-rects-and-measuretext.patch138
-rw-r--r--www/chromium-uc/patches/extra/bromite/flag-fingerprinting-canvas-image-data-noise.patch68
-rw-r--r--www/chromium-uc/patches/extra/bromite/flag-max-connections-per-host.patch60
-rw-r--r--www/chromium-uc/patches/extra/debian/disable/google-api-warning.patch6
-rw-r--r--www/chromium-uc/patches/extra/debian/disable/welcome-page.patch8
-rw-r--r--www/chromium-uc/patches/extra/debian/fixes/connection-message.patch4
-rw-r--r--www/chromium-uc/patches/extra/debian/gn/parallel.patch4
-rw-r--r--www/chromium-uc/patches/extra/inox-patchset/0006-modify-default-prefs.patch125
-rw-r--r--www/chromium-uc/patches/extra/inox-patchset/0008-restore-classic-ntp.patch14
-rw-r--r--www/chromium-uc/patches/extra/inox-patchset/0013-disable-missing-key-warning.patch4
-rw-r--r--www/chromium-uc/patches/extra/inox-patchset/0016-chromium-sandbox-pie.patch6
-rw-r--r--www/chromium-uc/patches/extra/inox-patchset/0018-disable-first-run-behaviour.patch6
-rw-r--r--www/chromium-uc/patches/extra/inox-patchset/0019-disable-battery-status-service.patch10
-rw-r--r--www/chromium-uc/patches/extra/iridium-browser/Remove-EV-certificates.patch26
-rw-r--r--www/chromium-uc/patches/extra/iridium-browser/browser-disable-profile-auto-import-on-first-run.patch14
-rw-r--r--www/chromium-uc/patches/extra/iridium-browser/mime_util-force-text-x-suse-ymp-to-be-downloaded.patch4
-rw-r--r--www/chromium-uc/patches/extra/iridium-browser/net-cert-increase-default-key-length-for-newly-gener.patch6
-rw-r--r--www/chromium-uc/patches/extra/iridium-browser/prefs-always-prompt-for-download-directory-by-defaul.patch6
-rw-r--r--www/chromium-uc/patches/extra/iridium-browser/prefs-only-keep-cookies-until-exit.patch10
-rw-r--r--www/chromium-uc/patches/extra/iridium-browser/updater-disable-auto-update.patch6
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/add-components-ungoogled.patch14
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/add-extra-channel-info.patch4
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-bookmark-bar-ntp.patch26
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-close-confirmation.patch36
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-custom-ntp.patch24
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-grab-handle.patch12
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-omnibox-autocomplete-filtering.patch32
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-pdf-plugin-name.patch389
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-qr-generator.patch34
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-referrer-header.patch66
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-search-engine-collection.patch42
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-tab-hover-cards.patch34
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-tabsearch-button.patch26
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-change-http-accept-header.patch49
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-clear-data-on-exit.patch36
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-close-window-with-last-tab.patch20
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-configure-extension-downloading.patch36
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-convert-popups-to-tabs.patch27
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-disable-beforeunload.patch14
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-disable-local-history-expiration.patch12
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-disable-tls-grease.patch23
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-force-punycode-hostnames.patch16
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-hide-crashed-bubble.patch20
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-hide-tab-close-buttons.patch38
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-scroll-tabs.patch26
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-show-avatar-button.patch18
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-stack-tabs.patch33
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/add-ipv6-probing-option.patch32
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/add-suggestions-url-field.patch132
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/add-ungoogled-flag-headers.patch18
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/disable-dial-repeating-discovery.patch18
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/disable-download-quarantine.patch81
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/disable-formatting-in-omnibox.patch6
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/disable-intranet-redirect-detector.patch4
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/disable-remote-optimization-guide.patch11
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/disable-webgl-renderer-info.patch8
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/enable-default-prefetch-privacy-changes.patch6
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/enable-menu-on-reload-button.patch6
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/enable-page-saving-on-more-pages.patch29
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/enable-paste-and-go-new-tab-button.patch16
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/fix-building-without-mdns-and-service-discovery.patch4
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/fix-distilled-icons.patch4
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/keep-expired-flags.patch8
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/prepopulated-search-engines.patch10
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/remove-disable-setuid-sandbox-as-bad-flag.patch6
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/remove-uneeded-ui.patch185
106 files changed, 3597 insertions, 4024 deletions
diff --git a/www/chromium-uc/Makefile b/www/chromium-uc/Makefile
index f52c0c8..5e3b1ae 100644
--- a/www/chromium-uc/Makefile
+++ b/www/chromium-uc/Makefile
@@ -8,7 +8,7 @@ DPB_PROPERTIES= parallel parallel2
8 8
9COMMENT= Chromium browser 9COMMENT= Chromium browser
10 10
11V= 96.0.4664.110 11V= 102.0.5005.61
12 12
13REVISION= 1 13REVISION= 1
14 14
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..4e81932 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
8 .../variations/service/variations_service.cc | 12 +----------- 8 .../variations/service/variations_service.cc | 12 +-----------
9 2 files changed, 5 insertions(+), 26 deletions(-) 9 2 files changed, 5 insertions(+), 26 deletions(-)
10 10
11--- chrome/browser/flags/android/java/src/org/chromium/chrome/browser/flags/ChromeFeatureList.java.orig 11--- a/chrome/browser/flags/android/java/src/org/chromium/chrome/browser/flags/ChromeFeatureList.java
12+++ chrome/browser/flags/android/java/src/org/chromium/chrome/browser/flags/ChromeFeatureList.java 12+++ b/chrome/browser/flags/android/java/src/org/chromium/chrome/browser/flags/ChromeFeatureList.java
13@@ -105,11 +105,7 @@ public abstract class ChromeFeatureList 13@@ -105,11 +105,7 @@ public abstract class ChromeFeatureList
14 * the specified parameter does not exist. 14 * the specified parameter does not exist.
15 */ 15 */
@@ -65,9 +65,9 @@ Subject: Disable fetching of all field trials
65 } 65 }
66 66
67 /* Alphabetical: */ 67 /* Alphabetical: */
68--- components/variations/service/variations_service.cc.orig 68--- a/components/variations/service/variations_service.cc
69+++ components/variations/service/variations_service.cc 69+++ b/components/variations/service/variations_service.cc
70@@ -238,17 +238,7 @@ bool GetInstanceManipulations(const net: 70@@ -235,17 +235,7 @@ bool GetInstanceManipulations(const net:
71 // Variations seed fetching is only enabled in official Chrome builds, if a URL 71 // Variations seed fetching is only enabled in official Chrome builds, if a URL
72 // is specified on the command line, and for testing. 72 // is specified on the command line, and for testing.
73 bool IsFetchingEnabled() { 73 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..6657559 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
2author: Michael Gilbert <mgilbert@debian.org> 2author: Michael Gilbert <mgilbert@debian.org>
3bug: http://bugs.debian.org/914487 3bug: http://bugs.debian.org/914487
4 4
5--- chrome/browser/safe_browsing/download_protection/file_analyzer.cc.orig 5--- a/chrome/browser/safe_browsing/download_protection/file_analyzer.cc
6+++ chrome/browser/safe_browsing/download_protection/file_analyzer.cc 6+++ b/chrome/browser/safe_browsing/download_protection/file_analyzer.cc
7@@ -95,7 +95,7 @@ void FileAnalyzer::Start(const base::Fil 7@@ -96,7 +96,7 @@ void FileAnalyzer::Start(const base::Fil
8 if (inspection_type == DownloadFileType::ZIP) { 8 if (inspection_type == DownloadFileType::ZIP) {
9 StartExtractZipFeatures(); 9 StartExtractZipFeatures();
10 } else if (inspection_type == DownloadFileType::RAR) { 10 } else if (inspection_type == DownloadFileType::RAR) {
11- StartExtractRarFeatures(); 11- StartExtractRarFeatures();
12+ LOG(WARNING) << "Safebrowser inspection of rar files is disabled in this build"; 12+ LOG(WARNING) << "Safebrowser inspection of rar files is disabled in this build";
13 #if defined(OS_MAC) 13 #if BUILDFLAG(IS_MAC)
14 } else if (inspection_type == DownloadFileType::DMG) { 14 } else if (inspection_type == DownloadFileType::DMG) {
15 StartExtractDmgFeatures(); 15 StartExtractDmgFeatures();
16--- chrome/common/safe_browsing/BUILD.gn.orig 16--- a/chrome/common/safe_browsing/BUILD.gn
17+++ chrome/common/safe_browsing/BUILD.gn 17+++ b/chrome/common/safe_browsing/BUILD.gn
18@@ -58,39 +58,6 @@ if (safe_browsing_mode == 1) { 18@@ -58,39 +58,6 @@ if (safe_browsing_mode == 1) {
19 public_deps = [ "//components/safe_browsing/core/common/proto:csd_proto" ] 19 public_deps = [ "//components/safe_browsing/core/common/proto:csd_proto" ]
20 } 20 }
@@ -63,17 +63,17 @@ bug: http://bugs.debian.org/914487
63 "//components/safe_browsing/core/common", 63 "//components/safe_browsing/core/common",
64 ] 64 ]
65 65
66--- chrome/services/file_util/safe_archive_analyzer.cc.orig 66--- a/chrome/services/file_util/safe_archive_analyzer.cc
67+++ chrome/services/file_util/safe_archive_analyzer.cc 67+++ b/chrome/services/file_util/safe_archive_analyzer.cc
68@@ -7,7 +7,6 @@ 68@@ -6,7 +6,6 @@
69 #include "base/macros.h" 69
70 #include "build/build_config.h" 70 #include "build/build_config.h"
71 #include "chrome/common/safe_browsing/archive_analyzer_results.h" 71 #include "chrome/common/safe_browsing/archive_analyzer_results.h"
72-#include "chrome/common/safe_browsing/rar_analyzer.h" 72-#include "chrome/common/safe_browsing/rar_analyzer.h"
73 #include "chrome/common/safe_browsing/zip_analyzer.h" 73 #include "chrome/common/safe_browsing/zip_analyzer.h"
74 74
75 #if defined(OS_MAC) 75 #if BUILDFLAG(IS_MAC)
76@@ -47,8 +46,7 @@ void SafeArchiveAnalyzer::AnalyzeRarFile 76@@ -46,8 +45,7 @@ void SafeArchiveAnalyzer::AnalyzeRarFile
77 AnalyzeRarFileCallback callback) { 77 AnalyzeRarFileCallback callback) {
78 DCHECK(rar_file.IsValid()); 78 DCHECK(rar_file.IsValid());
79 79
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..2154f6f 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 @@
1--- chrome/browser/BUILD.gn.orig 1--- a/chrome/browser/BUILD.gn
2+++ chrome/browser/BUILD.gn 2+++ b/chrome/browser/BUILD.gn
3@@ -2195,7 +2195,6 @@ static_library("browser") { 3@@ -2214,7 +2214,6 @@ static_library("browser") {
4 "//components/reputation/core:proto", 4 "//components/reputation/core:proto",
5 "//components/resources", 5 "//components/resources",
6 "//components/safe_browsing/content/browser", 6 "//components/safe_browsing/content/browser",
@@ -8,7 +8,7 @@
8 "//components/safe_browsing/content/browser:safe_browsing_service", 8 "//components/safe_browsing/content/browser:safe_browsing_service",
9 "//components/safe_browsing/content/browser/password_protection", 9 "//components/safe_browsing/content/browser/password_protection",
10 "//components/safe_browsing/content/browser/web_ui", 10 "//components/safe_browsing/content/browser/web_ui",
11@@ -3706,8 +3705,6 @@ static_library("browser") { 11@@ -3754,8 +3753,6 @@ static_library("browser") {
12 "download/download_commands.h", 12 "download/download_commands.h",
13 "download/download_crx_util.cc", 13 "download/download_crx_util.cc",
14 "download/download_crx_util.h", 14 "download/download_crx_util.h",
@@ -17,9 +17,9 @@
17 "download/download_dir_policy_handler.cc", 17 "download/download_dir_policy_handler.cc",
18 "download/download_dir_policy_handler.h", 18 "download/download_dir_policy_handler.h",
19 "download/download_dir_util.cc", 19 "download/download_dir_util.cc",
20--- chrome/browser/browser_process.h.orig 20--- a/chrome/browser/browser_process.h
21+++ chrome/browser/browser_process.h 21+++ b/chrome/browser/browser_process.h
22@@ -55,10 +55,6 @@ class NetworkQualityTracker; 22@@ -54,10 +54,6 @@ class NetworkQualityTracker;
23 class SharedURLLoaderFactory; 23 class SharedURLLoaderFactory;
24 } 24 }
25 25
@@ -30,7 +30,7 @@
30 namespace subresource_filter { 30 namespace subresource_filter {
31 class RulesetService; 31 class RulesetService;
32 } 32 }
33@@ -218,9 +214,6 @@ class BrowserProcess { 33@@ -210,9 +206,6 @@ class BrowserProcess {
34 // on this platform (or this is a unit test). 34 // on this platform (or this is a unit test).
35 virtual StatusTray* status_tray() = 0; 35 virtual StatusTray* status_tray() = 0;
36 36
@@ -40,9 +40,9 @@
40 // Returns the service providing versioned storage for rules used by the Safe 40 // Returns the service providing versioned storage for rules used by the Safe
41 // Browsing subresource filter. 41 // Browsing subresource filter.
42 virtual subresource_filter::RulesetService* 42 virtual subresource_filter::RulesetService*
43--- chrome/browser/browser_process_impl.cc.orig 43--- a/chrome/browser/browser_process_impl.cc
44+++ chrome/browser/browser_process_impl.cc 44+++ b/chrome/browser/browser_process_impl.cc
45@@ -70,7 +70,6 @@ 45@@ -71,7 +71,6 @@
46 #include "chrome/browser/printing/print_preview_dialog_controller.h" 46 #include "chrome/browser/printing/print_preview_dialog_controller.h"
47 #include "chrome/browser/profiles/profile_manager.h" 47 #include "chrome/browser/profiles/profile_manager.h"
48 #include "chrome/browser/resource_coordinator/resource_coordinator_parts.h" 48 #include "chrome/browser/resource_coordinator/resource_coordinator_parts.h"
@@ -50,7 +50,7 @@
50 #include "chrome/browser/shell_integration.h" 50 #include "chrome/browser/shell_integration.h"
51 #include "chrome/browser/site_isolation/prefs_observer.h" 51 #include "chrome/browser/site_isolation/prefs_observer.h"
52 #include "chrome/browser/ssl/secure_origin_prefs_observer.h" 52 #include "chrome/browser/ssl/secure_origin_prefs_observer.h"
53@@ -395,8 +394,6 @@ void BrowserProcessImpl::StartTearDown() 53@@ -394,8 +393,6 @@ void BrowserProcessImpl::StartTearDown()
54 54
55 metrics_services_manager_.reset(); 55 metrics_services_manager_.reset();
56 intranet_redirect_detector_.reset(); 56 intranet_redirect_detector_.reset();
@@ -59,7 +59,7 @@
59 network_time_tracker_.reset(); 59 network_time_tracker_.reset();
60 #if BUILDFLAG(ENABLE_PLUGINS) 60 #if BUILDFLAG(ENABLE_PLUGINS)
61 plugins_resource_service_.reset(); 61 plugins_resource_service_.reset();
62@@ -1030,14 +1027,6 @@ StatusTray* BrowserProcessImpl::status_t 62@@ -1029,14 +1026,6 @@ StatusTray* BrowserProcessImpl::status_t
63 return status_tray_.get(); 63 return status_tray_.get();
64 } 64 }
65 65
@@ -74,7 +74,7 @@
74 subresource_filter::RulesetService* 74 subresource_filter::RulesetService*
75 BrowserProcessImpl::subresource_filter_ruleset_service() { 75 BrowserProcessImpl::subresource_filter_ruleset_service() {
76 DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); 76 DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
77@@ -1300,26 +1289,6 @@ void BrowserProcessImpl::CreateBackgroun 77@@ -1283,26 +1272,6 @@ void BrowserProcessImpl::CreateBackgroun
78 #endif 78 #endif
79 } 79 }
80 80
@@ -101,17 +101,17 @@
101 void BrowserProcessImpl::CreateSubresourceFilterRulesetService() { 101 void BrowserProcessImpl::CreateSubresourceFilterRulesetService() {
102 DCHECK(!subresource_filter_ruleset_service_); 102 DCHECK(!subresource_filter_ruleset_service_);
103 created_subresource_filter_ruleset_service_ = true; 103 created_subresource_filter_ruleset_service_ = true;
104--- chrome/browser/browser_process_impl.h.orig 104--- a/chrome/browser/browser_process_impl.h
105+++ chrome/browser/browser_process_impl.h 105+++ b/chrome/browser/browser_process_impl.h
106@@ -190,7 +190,6 @@ class BrowserProcessImpl : public Browse 106@@ -188,7 +188,6 @@ class BrowserProcessImpl : public Browse
107 std::unique_ptr<BackgroundModeManager> manager) override; 107 std::unique_ptr<BackgroundModeManager> manager) override;
108 #endif 108 #endif
109 StatusTray* status_tray() override; 109 StatusTray* status_tray() override;
110- safe_browsing::SafeBrowsingService* safe_browsing_service() override; 110- safe_browsing::SafeBrowsingService* safe_browsing_service() override;
111 subresource_filter::RulesetService* subresource_filter_ruleset_service() 111 subresource_filter::RulesetService* subresource_filter_ruleset_service()
112 override; 112 override;
113 federated_learning::FlocSortingLshClustersService* 113
114@@ -344,9 +343,6 @@ class BrowserProcessImpl : public Browse 114@@ -335,9 +334,6 @@ class BrowserProcessImpl : public Browse
115 std::unique_ptr<BackgroundModeManager> background_mode_manager_; 115 std::unique_ptr<BackgroundModeManager> background_mode_manager_;
116 #endif 116 #endif
117 117
@@ -121,17 +121,17 @@
121 bool created_subresource_filter_ruleset_service_ = false; 121 bool created_subresource_filter_ruleset_service_ = false;
122 std::unique_ptr<subresource_filter::RulesetService> 122 std::unique_ptr<subresource_filter::RulesetService>
123 subresource_filter_ruleset_service_; 123 subresource_filter_ruleset_service_;
124--- chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc.orig 124--- a/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc
125+++ chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc 125+++ b/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc
126@@ -70,7 +70,6 @@ 126@@ -66,7 +66,6 @@
127 #include "chrome/browser/profiles/keep_alive/profile_keep_alive_types.h"
128 #include "chrome/browser/profiles/keep_alive/scoped_profile_keep_alive.h"
127 #include "chrome/browser/profiles/profile.h" 129 #include "chrome/browser/profiles/profile.h"
128 #include "chrome/browser/profiles/profile_keep_alive_types.h"
129 #include "chrome/browser/profiles/scoped_profile_keep_alive.h"
130-#include "chrome/browser/safe_browsing/safe_browsing_service.h" 130-#include "chrome/browser/safe_browsing/safe_browsing_service.h"
131 #include "chrome/browser/safe_browsing/verdict_cache_manager_factory.h"
131 #include "chrome/browser/search_engines/template_url_service_factory.h" 132 #include "chrome/browser/search_engines/template_url_service_factory.h"
132 #include "chrome/browser/share/share_history.h" 133 #include "chrome/browser/share/share_history.h"
133 #include "chrome/browser/share/share_ranking.h" 134@@ -617,10 +616,6 @@ void ChromeBrowsingDataRemoverDelegate::
134@@ -643,10 +642,6 @@ void ChromeBrowsingDataRemoverDelegate::
135 base::RecordAction(UserMetricsAction("ClearBrowsingData_Cookies")); 135 base::RecordAction(UserMetricsAction("ClearBrowsingData_Cookies"));
136 136
137 network::mojom::NetworkContext* safe_browsing_context = nullptr; 137 network::mojom::NetworkContext* safe_browsing_context = nullptr;
@@ -140,11 +140,11 @@
140- if (sb_service) 140- if (sb_service)
141- safe_browsing_context = sb_service->GetNetworkContext(profile_); 141- safe_browsing_context = sb_service->GetNetworkContext(profile_);
142 142
143 browsing_data::RemoveEmbedderCookieData( 143 browsing_data::RemoveFederatedSiteSettingsData(delete_begin_, delete_end_,
144 delete_begin, delete_end, filter_builder, host_content_settings_map_, 144 host_content_settings_map_);
145--- chrome/browser/chrome_content_browser_client.cc.orig 145--- a/chrome/browser/chrome_content_browser_client.cc
146+++ chrome/browser/chrome_content_browser_client.cc 146+++ b/chrome/browser/chrome_content_browser_client.cc
147@@ -921,34 +921,6 @@ void SetApplicationLocaleOnIOThread(cons 147@@ -959,34 +959,6 @@ void SetApplicationLocaleOnIOThread(cons
148 GetIOThreadApplicationLocale() = locale; 148 GetIOThreadApplicationLocale() = locale;
149 } 149 }
150 150
@@ -173,13 +173,13 @@
173- } 173- }
174- 174-
175- private: 175- private:
176- CertificateReportingService* service_; 176- raw_ptr<CertificateReportingService> service_;
177-}; 177-};
178- 178-
179 #if BUILDFLAG(ENABLE_EXTENSIONS) 179 #if BUILDFLAG(ENABLE_EXTENSIONS)
180 180
181 AppLoadedInTabSource ClassifyAppLoadedInTabSource( 181 AppLoadedInTabSource ClassifyAppLoadedInTabSource(
182@@ -1423,7 +1395,6 @@ void ChromeContentBrowserClient::PostAft 182@@ -1495,7 +1467,6 @@ void ChromeContentBrowserClient::PostAft
183 InitNetworkContextsParentDirectory(); 183 InitNetworkContextsParentDirectory();
184 184
185 DCHECK_CURRENTLY_ON(BrowserThread::UI); 185 DCHECK_CURRENTLY_ON(BrowserThread::UI);
@@ -187,8 +187,15 @@
187 } 187 }
188 188
189 bool ChromeContentBrowserClient::IsBrowserStartupComplete() { 189 bool ChromeContentBrowserClient::IsBrowserStartupComplete() {
190@@ -4229,7 +4200,7 @@ ChromeContentBrowserClient::CreateThrott 190@@ -4290,14 +4261,9 @@ ChromeContentBrowserClient::CreateThrott
191 content::WebContents* web_contents = handle->GetWebContents(); 191 throttles.push_back(std::make_unique<PolicyBlocklistNavigationThrottle>(
192 handle, handle->GetWebContents()->GetBrowserContext()));
193
194- // Before setting up SSL error detection, configure SSLErrorHandler to invoke
195- // the relevant extension API whenever an SSL interstitial is shown.
196- SSLErrorHandler::SetClientCallbackOnInterstitialsShown(
197- base::BindRepeating(&MaybeTriggerSecurityInterstitialShownEvent));
198- content::WebContents* web_contents = handle->GetWebContents();
192 throttles.push_back(std::make_unique<SSLErrorNavigationThrottle>( 199 throttles.push_back(std::make_unique<SSLErrorNavigationThrottle>(
193 handle, 200 handle,
194- std::make_unique<CertificateReportingServiceCertReporter>(web_contents), 201- std::make_unique<CertificateReportingServiceCertReporter>(web_contents),
@@ -196,7 +203,7 @@
196 base::BindOnce(&HandleSSLErrorWrapper), base::BindOnce(&IsInHostedApp), 203 base::BindOnce(&HandleSSLErrorWrapper), base::BindOnce(&IsInHostedApp),
197 base::BindOnce( 204 base::BindOnce(
198 &ShouldIgnoreSslInterstitialBecauseNavigationDefaultedToHttps))); 205 &ShouldIgnoreSslInterstitialBecauseNavigationDefaultedToHttps)));
199@@ -4258,15 +4229,6 @@ ChromeContentBrowserClient::CreateThrott 206@@ -4332,16 +4298,6 @@ ChromeContentBrowserClient::CreateThrott
200 &throttles); 207 &throttles);
201 #endif 208 #endif
202 209
@@ -205,16 +212,17 @@
205- g_browser_process->safe_browsing_service() 212- g_browser_process->safe_browsing_service()
206- ? g_browser_process->safe_browsing_service()->ui_manager().get() 213- ? g_browser_process->safe_browsing_service()->ui_manager().get()
207- : nullptr; 214- : nullptr;
208- throttles.push_back( 215- MaybeAddThrottle(
209- std::make_unique<safe_browsing::SafeBrowsingNavigationThrottle>( 216- safe_browsing::SafeBrowsingNavigationThrottle::MaybeCreateThrottleFor(
210- handle, ui_manager)); 217- handle, ui_manager),
218- &throttles);
211- 219-
212 if (base::FeatureList::IsEnabled(safe_browsing::kDelayedWarnings)) { 220 if (base::FeatureList::IsEnabled(safe_browsing::kDelayedWarnings)) {
213 throttles.push_back( 221 throttles.push_back(
214 std::make_unique<safe_browsing::DelayedWarningNavigationThrottle>( 222 std::make_unique<safe_browsing::DelayedWarningNavigationThrottle>(
215--- chrome/browser/component_updater/file_type_policies_component_installer.cc.orig 223--- a/chrome/browser/component_updater/file_type_policies_component_installer.cc
216+++ chrome/browser/component_updater/file_type_policies_component_installer.cc 224+++ b/chrome/browser/component_updater/file_type_policies_component_installer.cc
217@@ -40,20 +40,6 @@ const uint8_t kFileTypePoliciesPublicKey 225@@ -39,20 +39,6 @@ const uint8_t kFileTypePoliciesPublicKey
218 const char kFileTypePoliciesManifestName[] = "File Type Policies"; 226 const char kFileTypePoliciesManifestName[] = "File Type Policies";
219 227
220 void LoadFileTypesFromDisk(const base::FilePath& pb_path) { 228 void LoadFileTypesFromDisk(const base::FilePath& pb_path) {
@@ -235,9 +243,9 @@
235 } 243 }
236 244
237 } // namespace 245 } // namespace
238--- chrome/browser/download/chrome_download_manager_delegate.cc.orig 246--- a/chrome/browser/download/chrome_download_manager_delegate.cc
239+++ chrome/browser/download/chrome_download_manager_delegate.cc 247+++ b/chrome/browser/download/chrome_download_manager_delegate.cc
240@@ -436,13 +436,6 @@ ChromeDownloadManagerDelegate::~ChromeDo 248@@ -430,13 +430,6 @@ ChromeDownloadManagerDelegate::~ChromeDo
241 249
242 void ChromeDownloadManagerDelegate::SetDownloadManager(DownloadManager* dm) { 250 void ChromeDownloadManagerDelegate::SetDownloadManager(DownloadManager* dm) {
243 download_manager_ = dm; 251 download_manager_ = dm;
@@ -250,15 +258,16 @@
250- } 258- }
251 } 259 }
252 260
253 #if defined(OS_ANDROID) 261 #if BUILDFLAG(IS_ANDROID)
254@@ -791,16 +784,6 @@ void ChromeDownloadManagerDelegate::Choo 262@@ -790,17 +783,6 @@ void ChromeDownloadManagerDelegate::Choo
255
256 void ChromeDownloadManagerDelegate::SanitizeSavePackageResourceName( 263 void ChromeDownloadManagerDelegate::SanitizeSavePackageResourceName(
257 base::FilePath* filename) { 264 base::FilePath* filename,
265 const GURL& source_url) {
258- safe_browsing::FileTypePolicies* file_type_policies = 266- safe_browsing::FileTypePolicies* file_type_policies =
259- safe_browsing::FileTypePolicies::GetInstance(); 267- safe_browsing::FileTypePolicies::GetInstance();
260- 268-
261- if (file_type_policies->GetFileDangerLevel(*filename) == 269- const PrefService* prefs = profile_->GetPrefs();
270- if (file_type_policies->GetFileDangerLevel(*filename, source_url, prefs) ==
262- safe_browsing::DownloadFileType::NOT_DANGEROUS) 271- safe_browsing::DownloadFileType::NOT_DANGEROUS)
263- return; 272- return;
264- 273-
@@ -268,9 +277,9 @@
268 } 277 }
269 278
270 void ChromeDownloadManagerDelegate::SanitizeDownloadParameters( 279 void ChromeDownloadManagerDelegate::SanitizeDownloadParameters(
271--- chrome/browser/download/download_item_model.cc.orig 280--- a/chrome/browser/download/download_item_model.cc
272+++ chrome/browser/download/download_item_model.cc 281+++ b/chrome/browser/download/download_item_model.cc
273@@ -86,7 +86,7 @@ class DownloadItemModelData : public bas 282@@ -89,7 +89,7 @@ class DownloadItemModelData : public bas
274 283
275 // Danger level of the file determined based on the file type and whether 284 // Danger level of the file determined based on the file type and whether
276 // there was a user action associated with the download. 285 // there was a user action associated with the download.
@@ -279,7 +288,7 @@
279 288
280 // Whether the download is currently being revived. 289 // Whether the download is currently being revived.
281 bool is_being_revived_; 290 bool is_being_revived_;
282@@ -123,7 +123,7 @@ DownloadItemModelData::DownloadItemModel 291@@ -126,7 +126,7 @@ DownloadItemModelData::DownloadItemModel
283 : should_show_in_shelf_(true), 292 : should_show_in_shelf_(true),
284 was_ui_notified_(false), 293 was_ui_notified_(false),
285 should_prefer_opening_in_browser_(false), 294 should_prefer_opening_in_browser_(false),
@@ -288,7 +297,7 @@
288 is_being_revived_(false) {} 297 is_being_revived_(false) {}
289 298
290 } // namespace 299 } // namespace
291@@ -381,13 +381,13 @@ void DownloadItemModel::SetShouldPreferO 300@@ -417,13 +417,13 @@ void DownloadItemModel::SetShouldPreferO
292 data->should_prefer_opening_in_browser_ = preference; 301 data->should_prefer_opening_in_browser_ = preference;
293 } 302 }
294 303
@@ -305,7 +314,7 @@
305 DownloadItemModelData* data = DownloadItemModelData::GetOrCreate(download_); 314 DownloadItemModelData* data = DownloadItemModelData::GetOrCreate(download_);
306 data->danger_level_ = danger_level; 315 data->danger_level_ = danger_level;
307 } 316 }
308@@ -599,9 +599,6 @@ bool DownloadItemModel::IsCommandEnabled 317@@ -643,9 +643,6 @@ bool DownloadItemModel::IsCommandEnabled
309 // filename. Don't base an "Always open" decision based on it. Also 318 // filename. Don't base an "Always open" decision based on it. Also
310 // exclude extensions. 319 // exclude extensions.
311 return download_->CanOpenDownload() && 320 return download_->CanOpenDownload() &&
@@ -315,9 +324,9 @@
315 !download_crx_util::IsExtensionDownload(*download_); 324 !download_crx_util::IsExtensionDownload(*download_);
316 case DownloadCommands::PAUSE: 325 case DownloadCommands::PAUSE:
317 return !download_->IsSavePackageDownload() && 326 return !download_->IsSavePackageDownload() &&
318--- chrome/browser/download/download_prefs.cc.orig 327--- a/chrome/browser/download/download_prefs.cc
319+++ chrome/browser/download/download_prefs.cc 328+++ b/chrome/browser/download/download_prefs.cc
320@@ -260,14 +260,7 @@ DownloadPrefs::DownloadPrefs(Profile* pr 329@@ -252,14 +252,7 @@ DownloadPrefs::DownloadPrefs(Profile* pr
321 base::FilePath::StringType(1, base::FilePath::kExtensionSeparator) + 330 base::FilePath::StringType(1, base::FilePath::kExtensionSeparator) +
322 extension); 331 extension);
323 332
@@ -333,7 +342,7 @@
333 } 342 }
334 } 343 }
335 344
336@@ -475,10 +468,6 @@ bool DownloadPrefs::IsAutoOpenByPolicy(c 345@@ -479,10 +472,6 @@ bool DownloadPrefs::IsAutoOpenByPolicy(c
337 bool DownloadPrefs::EnableAutoOpenByUserBasedOnExtension( 346 bool DownloadPrefs::EnableAutoOpenByUserBasedOnExtension(
338 const base::FilePath& file_name) { 347 const base::FilePath& file_name) {
339 base::FilePath::StringType extension = file_name.Extension(); 348 base::FilePath::StringType extension = file_name.Extension();
@@ -344,8 +353,8 @@
344 353
345 DCHECK(extension[0] == base::FilePath::kExtensionSeparator); 354 DCHECK(extension[0] == base::FilePath::kExtensionSeparator);
346 extension.erase(0, 1); 355 extension.erase(0, 1);
347--- chrome/browser/download/download_target_determiner.cc.orig 356--- a/chrome/browser/download/download_target_determiner.cc
348+++ chrome/browser/download/download_target_determiner.cc 357+++ b/chrome/browser/download/download_target_determiner.cc
349@@ -297,13 +297,6 @@ base::FilePath DownloadTargetDeterminer: 358@@ -297,13 +297,6 @@ base::FilePath DownloadTargetDeterminer:
350 download_->GetURL(), download_->GetContentDisposition(), referrer_charset, 359 download_->GetURL(), download_->GetContentDisposition(), referrer_charset,
351 suggested_filename, sniffed_mime_type, default_filename); 360 suggested_filename, sniffed_mime_type, default_filename);
@@ -360,13 +369,14 @@
360 // If no mime type or explicitly specified a name, don't replace file 369 // If no mime type or explicitly specified a name, don't replace file
361 // extension. 370 // extension.
362 if (sniffed_mime_type.empty() || !suggested_filename.empty()) 371 if (sniffed_mime_type.empty() || !suggested_filename.empty())
363@@ -1113,29 +1106,7 @@ DownloadFileType::DangerLevel DownloadTa 372@@ -1124,30 +1117,7 @@ DownloadFileType::DangerLevel DownloadTa
364 download_->HasUserGesture()) 373 download_->HasUserGesture())
365 return DownloadFileType::NOT_DANGEROUS; 374 return DownloadFileType::NOT_DANGEROUS;
366 375
367- DownloadFileType::DangerLevel danger_level = 376- DownloadFileType::DangerLevel danger_level =
368- safe_browsing::FileTypePolicies::GetInstance()->GetFileDangerLevel( 377- safe_browsing::FileTypePolicies::GetInstance()->GetFileDangerLevel(
369- virtual_path_.BaseName()); 378- virtual_path_.BaseName(), download_->GetURL(),
379- GetProfile()->GetPrefs());
370- 380-
371- // A danger level of ALLOW_ON_USER_GESTURE is used to label potentially 381- // A danger level of ALLOW_ON_USER_GESTURE is used to label potentially
372- // dangerous file types that have a high frequency of legitimate use. We would 382- // dangerous file types that have a high frequency of legitimate use. We would
@@ -391,8 +401,8 @@
391 } 401 }
392 402
393 absl::optional<base::Time> 403 absl::optional<base::Time>
394--- chrome/browser/extensions/api/downloads/downloads_api.cc.orig 404--- a/chrome/browser/extensions/api/downloads/downloads_api.cc
395+++ chrome/browser/extensions/api/downloads/downloads_api.cc 405+++ b/chrome/browser/extensions/api/downloads/downloads_api.cc
396@@ -36,7 +36,6 @@ 406@@ -36,7 +36,6 @@
397 #include "chrome/browser/browser_process.h" 407 #include "chrome/browser/browser_process.h"
398 #include "chrome/browser/download/download_core_service.h" 408 #include "chrome/browser/download/download_core_service.h"
@@ -401,7 +411,7 @@
401 #include "chrome/browser/download/download_file_icon_extractor.h" 411 #include "chrome/browser/download/download_file_icon_extractor.h"
402 #include "chrome/browser/download/download_open_prompt.h" 412 #include "chrome/browser/download/download_open_prompt.h"
403 #include "chrome/browser/download/download_prefs.h" 413 #include "chrome/browser/download/download_prefs.h"
404@@ -1274,9 +1273,6 @@ DownloadsAcceptDangerFunction::Downloads 414@@ -1277,9 +1276,6 @@ DownloadsAcceptDangerFunction::Downloads
405 415
406 DownloadsAcceptDangerFunction::~DownloadsAcceptDangerFunction() {} 416 DownloadsAcceptDangerFunction::~DownloadsAcceptDangerFunction() {}
407 417
@@ -411,7 +421,7 @@
411 ExtensionFunction::ResponseAction DownloadsAcceptDangerFunction::Run() { 421 ExtensionFunction::ResponseAction DownloadsAcceptDangerFunction::Run() {
412 std::unique_ptr<downloads::AcceptDanger::Params> params( 422 std::unique_ptr<downloads::AcceptDanger::Params> params(
413 downloads::AcceptDanger::Params::Create(args())); 423 downloads::AcceptDanger::Params::Create(args()));
414@@ -1314,42 +1310,7 @@ void DownloadsAcceptDangerFunction::Prom 424@@ -1317,42 +1313,7 @@ void DownloadsAcceptDangerFunction::Prom
415 return; 425 return;
416 } 426 }
417 RecordApiFunctions(DOWNLOADS_FUNCTION_ACCEPT_DANGER); 427 RecordApiFunctions(DOWNLOADS_FUNCTION_ACCEPT_DANGER);
@@ -455,10 +465,10 @@
455 } 465 }
456 466
457 DownloadsShowFunction::DownloadsShowFunction() {} 467 DownloadsShowFunction::DownloadsShowFunction() {}
458--- chrome/browser/extensions/api/downloads/downloads_api.h.orig 468--- a/chrome/browser/extensions/api/downloads/downloads_api.h
459+++ chrome/browser/extensions/api/downloads/downloads_api.h 469+++ b/chrome/browser/extensions/api/downloads/downloads_api.h
460@@ -13,7 +13,6 @@ 470@@ -13,7 +13,6 @@
461 #include "base/macros.h" 471 #include "base/memory/raw_ptr.h"
462 #include "base/scoped_observation.h" 472 #include "base/scoped_observation.h"
463 #include "base/time/time.h" 473 #include "base/time/time.h"
464-#include "chrome/browser/download/download_danger_prompt.h" 474-#include "chrome/browser/download/download_danger_prompt.h"
@@ -493,8 +503,8 @@
493 }; 503 };
494 504
495 class DownloadsShowFunction : public ExtensionFunction { 505 class DownloadsShowFunction : public ExtensionFunction {
496--- chrome/browser/extensions/api/safe_browsing_private/safe_browsing_private_api.cc.orig 506--- a/chrome/browser/extensions/api/safe_browsing_private/safe_browsing_private_api.cc
497+++ chrome/browser/extensions/api/safe_browsing_private/safe_browsing_private_api.cc 507+++ b/chrome/browser/extensions/api/safe_browsing_private/safe_browsing_private_api.cc
498@@ -54,38 +54,7 @@ SafeBrowsingPrivateGetReferrerChainFunct 508@@ -54,38 +54,7 @@ SafeBrowsingPrivateGetReferrerChainFunct
499 base::StringPrintf("Could not find tab with id %d.", params->tab_id))); 509 base::StringPrintf("Could not find tab with id %d.", params->tab_id)));
500 } 510 }
@@ -510,8 +520,8 @@
510- 520-
511- safe_browsing::ReferrerChain referrer_chain; 521- safe_browsing::ReferrerChain referrer_chain;
512- SafeBrowsingNavigationObserverManager::AttributionResult result = 522- SafeBrowsingNavigationObserverManager::AttributionResult result =
513- navigation_observer_manager->IdentifyReferrerChainByWebContents( 523- navigation_observer_manager->IdentifyReferrerChainByRenderFrameHost(
514- contents, kReferrerUserGestureLimit, &referrer_chain); 524- contents->GetMainFrame(), kReferrerUserGestureLimit, &referrer_chain);
515- 525-
516- // If the referrer chain is incomplete we'll append the most recent 526- // If the referrer chain is incomplete we'll append the most recent
517- // navigations to referrer chain for diagnostic purposes. This only happens if 527- // navigations to referrer chain for diagnostic purposes. This only happens if
@@ -534,9 +544,9 @@
534 return RespondNow(ArgumentList( 544 return RespondNow(ArgumentList(
535 api::safe_browsing_private::GetReferrerChain::Results::Create( 545 api::safe_browsing_private::GetReferrerChain::Results::Create(
536 referrer_entries))); 546 referrer_entries)));
537--- chrome/browser/extensions/api/webstore_private/webstore_private_api.cc.orig 547--- a/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
538+++ chrome/browser/extensions/api/webstore_private/webstore_private_api.cc 548+++ b/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
539@@ -683,18 +683,6 @@ void WebstorePrivateBeginInstallWithMani 549@@ -721,18 +721,6 @@ void WebstorePrivateBeginInstallWithMani
540 550
541 void WebstorePrivateBeginInstallWithManifest3Function:: 551 void WebstorePrivateBeginInstallWithManifest3Function::
542 ReportFrictionAcceptedEvent() { 552 ReportFrictionAcceptedEvent() {
@@ -555,7 +565,7 @@
555 } 565 }
556 566
557 void WebstorePrivateBeginInstallWithManifest3Function::OnInstallPromptDone( 567 void WebstorePrivateBeginInstallWithManifest3Function::OnInstallPromptDone(
558@@ -1159,52 +1147,9 @@ WebstorePrivateGetReferrerChainFunction: 568@@ -1202,55 +1190,9 @@ WebstorePrivateGetReferrerChainFunction:
559 569
560 ExtensionFunction::ResponseAction 570 ExtensionFunction::ResponseAction
561 WebstorePrivateGetReferrerChainFunction::Run() { 571 WebstorePrivateGetReferrerChainFunction::Run() {
@@ -565,8 +575,11 @@
565- return RespondNow(ArgumentList( 575- return RespondNow(ArgumentList(
566- api::webstore_private::GetReferrerChain::Results::Create(""))); 576- api::webstore_private::GetReferrerChain::Results::Create("")));
567- 577-
568- content::WebContents* web_contents = GetSenderWebContents(); 578- content::RenderFrameHost* rfh = render_frame_host();
569- if (!web_contents) { 579- content::RenderFrameHost* outermost_rfh =
580- rfh ? rfh->GetOutermostMainFrame() : nullptr;
581-
582- if (!outermost_rfh) {
570- return RespondNow(ErrorWithArguments( 583- return RespondNow(ErrorWithArguments(
571- api::webstore_private::GetReferrerChain::Results::Create(""), 584- api::webstore_private::GetReferrerChain::Results::Create(""),
572- kWebstoreUserCancelledError)); 585- kWebstoreUserCancelledError));
@@ -578,8 +591,8 @@
578- 591-
579- safe_browsing::ReferrerChain referrer_chain; 592- safe_browsing::ReferrerChain referrer_chain;
580- SafeBrowsingNavigationObserverManager::AttributionResult result = 593- SafeBrowsingNavigationObserverManager::AttributionResult result =
581- navigation_observer_manager->IdentifyReferrerChainByWebContents( 594- navigation_observer_manager->IdentifyReferrerChainByRenderFrameHost(
582- web_contents, kExtensionReferrerUserGestureLimit, &referrer_chain); 595- outermost_rfh, kExtensionReferrerUserGestureLimit, &referrer_chain);
583- 596-
584- // If the referrer chain is incomplete we'll append the most recent 597- // If the referrer chain is incomplete we'll append the most recent
585- // navigations to referrer chain for diagnostic purposes. This only happens if 598- // navigations to referrer chain for diagnostic purposes. This only happens if
@@ -609,9 +622,9 @@
609 } 622 }
610 623
611 WebstorePrivateGetExtensionStatusFunction:: 624 WebstorePrivateGetExtensionStatusFunction::
612--- chrome/browser/extensions/blocklist_state_fetcher.cc.orig 625--- a/chrome/browser/extensions/blocklist_state_fetcher.cc
613+++ chrome/browser/extensions/blocklist_state_fetcher.cc 626+++ b/chrome/browser/extensions/blocklist_state_fetcher.cc
614@@ -34,33 +34,8 @@ BlocklistStateFetcher::~BlocklistStateFe 627@@ -38,23 +38,8 @@ BlocklistStateFetcher::~BlocklistStateFe
615 void BlocklistStateFetcher::Request(const std::string& id, 628 void BlocklistStateFetcher::Request(const std::string& id,
616 RequestCallback callback) { 629 RequestCallback callback) {
617 DCHECK_CURRENTLY_ON(BrowserThread::UI); 630 DCHECK_CURRENTLY_ON(BrowserThread::UI);
@@ -631,23 +644,13 @@
631- if (request_already_sent) 644- if (request_already_sent)
632- return; 645- return;
633- 646-
634- if (g_browser_process && g_browser_process->safe_browsing_service()) {
635- if (base::FeatureList::IsEnabled(
636- safe_browsing::kSafeBrowsingRemoveCookies)) {
637- url_loader_factory_ = g_browser_process->shared_url_loader_factory();
638- } else {
639- url_loader_factory_ =
640- g_browser_process->safe_browsing_service()->GetURLLoaderFactory();
641- }
642- }
643-
644- SendRequest(id); 647- SendRequest(id);
645+ base::ThreadTaskRunnerHandle::Get()->PostTask( 648+ base::ThreadTaskRunnerHandle::Get()->PostTask(
646+ FROM_HERE, base::BindOnce(std::move(callback), BLOCKLISTED_UNKNOWN)); 649+ FROM_HERE, base::BindOnce(std::move(callback), BLOCKLISTED_UNKNOWN));
647 } 650 }
648 651
649 void BlocklistStateFetcher::SendRequest(const std::string& id) { 652 void BlocklistStateFetcher::SendRequest(const std::string& id) {
650@@ -71,8 +46,7 @@ void BlocklistStateFetcher::SendRequest( 653@@ -65,8 +50,7 @@ void BlocklistStateFetcher::SendRequest(
651 std::string request_str; 654 std::string request_str;
652 request.SerializeToString(&request_str); 655 request.SerializeToString(&request_str);
653 656
@@ -657,7 +660,7 @@
657 net::NetworkTrafficAnnotationTag traffic_annotation = 660 net::NetworkTrafficAnnotationTag traffic_annotation =
658 net::DefineNetworkTrafficAnnotation("extension_blacklist", R"( 661 net::DefineNetworkTrafficAnnotation("extension_blacklist", R"(
659 semantics { 662 semantics {
660@@ -122,12 +96,6 @@ void BlocklistStateFetcher::SendRequest( 663@@ -114,12 +98,6 @@ void BlocklistStateFetcher::SendRequest(
661 base::Unretained(this), fetcher)); 664 base::Unretained(this), fetcher));
662 } 665 }
663 666
@@ -670,9 +673,9 @@
670 void BlocklistStateFetcher::OnURLLoaderComplete( 673 void BlocklistStateFetcher::OnURLLoaderComplete(
671 network::SimpleURLLoader* url_loader, 674 network::SimpleURLLoader* url_loader,
672 std::unique_ptr<std::string> response_body) { 675 std::unique_ptr<std::string> response_body) {
673--- chrome/browser/extensions/blocklist_state_fetcher.h.orig 676--- a/chrome/browser/extensions/blocklist_state_fetcher.h
674+++ chrome/browser/extensions/blocklist_state_fetcher.h 677+++ b/chrome/browser/extensions/blocklist_state_fetcher.h
675@@ -37,8 +37,6 @@ class BlocklistStateFetcher { 678@@ -36,8 +36,6 @@ class BlocklistStateFetcher {
676 679
677 virtual void Request(const std::string& id, RequestCallback callback); 680 virtual void Request(const std::string& id, RequestCallback callback);
678 681
@@ -681,7 +684,7 @@
681 protected: 684 protected:
682 void OnURLLoaderComplete(network::SimpleURLLoader* url_loader, 685 void OnURLLoaderComplete(network::SimpleURLLoader* url_loader,
683 std::unique_ptr<std::string> response_body); 686 std::unique_ptr<std::string> response_body);
684@@ -57,7 +55,6 @@ class BlocklistStateFetcher { 687@@ -56,7 +54,6 @@ class BlocklistStateFetcher {
685 688
686 void SendRequest(const std::string& id); 689 void SendRequest(const std::string& id);
687 690
@@ -689,21 +692,21 @@
689 scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory_; 692 scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory_;
690 693
691 // SimpleURLLoader -> (owned loader, extension id). 694 // SimpleURLLoader -> (owned loader, extension id).
692--- chrome/browser/metrics/chrome_metrics_service_client.cc.orig 695--- a/chrome/browser/metrics/chrome_metrics_service_client.cc
693+++ chrome/browser/metrics/chrome_metrics_service_client.cc 696+++ b/chrome/browser/metrics/chrome_metrics_service_client.cc
694@@ -828,9 +828,6 @@ void ChromeMetricsServiceClient::Registe 697@@ -861,9 +861,6 @@ void ChromeMetricsServiceClient::Registe
695 metrics_service_->RegisterMetricsProvider( 698 metrics_service_->RegisterMetricsProvider(
696 std::make_unique<HttpsEngagementMetricsProvider>()); 699 std::make_unique<HttpsEngagementMetricsProvider>());
697 700
698- metrics_service_->RegisterMetricsProvider( 701- metrics_service_->RegisterMetricsProvider(
699- std::make_unique<CertificateReportingMetricsProvider>()); 702- std::make_unique<CertificateReportingMetricsProvider>());
700- 703-
701 #if !defined(OS_ANDROID) && !BUILDFLAG(IS_CHROMEOS_ASH) 704 #if !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_CHROMEOS_ASH)
702 metrics_service_->RegisterMetricsProvider( 705 metrics_service_->RegisterMetricsProvider(
703 std::make_unique<UpgradeMetricsProvider>()); 706 std::make_unique<UpgradeMetricsProvider>());
704--- chrome/browser/net/trial_comparison_cert_verifier_controller.cc.orig 707--- a/chrome/browser/net/trial_comparison_cert_verifier_controller.cc
705+++ chrome/browser/net/trial_comparison_cert_verifier_controller.cc 708+++ b/chrome/browser/net/trial_comparison_cert_verifier_controller.cc
706@@ -138,9 +138,6 @@ void TrialComparisonCertVerifierControll 709@@ -137,9 +137,6 @@ void TrialComparisonCertVerifierControll
707 std::string serialized_report; 710 std::string serialized_report;
708 if (!report.Serialize(&serialized_report)) 711 if (!report.Serialize(&serialized_report))
709 return; 712 return;
@@ -713,19 +716,19 @@
713 } 716 }
714 717
715 // static 718 // static
716--- chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc.orig 719--- a/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc
717+++ chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc 720+++ b/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc
718@@ -297,7 +297,6 @@ void ChromeBrowserMainExtraPartsProfiles 721@@ -324,7 +324,6 @@ void ChromeBrowserMainExtraPartsProfiles
719 #if BUILDFLAG(IS_CHROMEOS_LACROS) 722 #if BUILDFLAG(IS_CHROMEOS_LACROS)
720 CertDbInitializerFactory::GetInstance(); 723 CertDbInitializerFactory::GetInstance();
721 #endif 724 #endif
722- CertificateReportingServiceFactory::GetInstance(); 725- CertificateReportingServiceFactory::GetInstance();
723 #if !defined(OS_ANDROID) 726 #if !BUILDFLAG(IS_ANDROID)
724 ChromeBrowsingDataLifetimeManagerFactory::GetInstance(); 727 ChromeBrowsingDataLifetimeManagerFactory::GetInstance();
725 #endif 728 #endif
726--- chrome/browser/profiles/profile_impl.cc.orig 729--- a/chrome/browser/profiles/profile_impl.cc
727+++ chrome/browser/profiles/profile_impl.cc 730+++ b/chrome/browser/profiles/profile_impl.cc
728@@ -93,7 +93,6 @@ 731@@ -91,7 +91,6 @@
729 #include "chrome/browser/profiles/profile_metrics.h" 732 #include "chrome/browser/profiles/profile_metrics.h"
730 #include "chrome/browser/push_messaging/push_messaging_service_factory.h" 733 #include "chrome/browser/push_messaging/push_messaging_service_factory.h"
731 #include "chrome/browser/push_messaging/push_messaging_service_impl.h" 734 #include "chrome/browser/push_messaging/push_messaging_service_impl.h"
@@ -733,7 +736,7 @@
733 #include "chrome/browser/sessions/exit_type_service.h" 736 #include "chrome/browser/sessions/exit_type_service.h"
734 #include "chrome/browser/sharing/sharing_service_factory.h" 737 #include "chrome/browser/sharing/sharing_service_factory.h"
735 #include "chrome/browser/signin/identity_manager_factory.h" 738 #include "chrome/browser/signin/identity_manager_factory.h"
736@@ -627,17 +626,6 @@ void ProfileImpl::LoadPrefsForNormalStar 739@@ -623,17 +622,6 @@ void ProfileImpl::LoadPrefsForNormalStar
737 740
738 mojo::PendingRemote<prefs::mojom::TrackedPreferenceValidationDelegate> 741 mojo::PendingRemote<prefs::mojom::TrackedPreferenceValidationDelegate>
739 pref_validation_delegate; 742 pref_validation_delegate;
@@ -751,9 +754,9 @@
751 754
752 prefs_ = 755 prefs_ =
753 CreatePrefService(pref_registry_, CreateExtensionPrefStore(this, false), 756 CreatePrefService(pref_registry_, CreateExtensionPrefStore(this, false),
754--- chrome/browser/profiles/profiles_state.cc.orig 757--- a/chrome/browser/profiles/profiles_state.cc
755+++ chrome/browser/profiles/profiles_state.cc 758+++ b/chrome/browser/profiles/profiles_state.cc
756@@ -259,9 +259,6 @@ void RemoveBrowsingDataForProfile(const 759@@ -255,9 +255,6 @@ void RemoveBrowsingDataForProfile(const
757 // The BrowsingDataRemover relies on many objects that aren't created in unit 760 // The BrowsingDataRemover relies on many objects that aren't created in unit
758 // tests. Previously this code would depend on content::ResourceDispatcherHost 761 // tests. Previously this code would depend on content::ResourceDispatcherHost
759 // but that's gone, so do a similar hack for now. 762 // but that's gone, so do a similar hack for now.
@@ -763,9 +766,9 @@
763 Profile* profile = 766 Profile* profile =
764 g_browser_process->profile_manager()->GetProfileByPath(profile_path); 767 g_browser_process->profile_manager()->GetProfileByPath(profile_path);
765 if (!profile) 768 if (!profile)
766--- chrome/browser/safe_browsing/BUILD.gn.orig 769--- a/chrome/browser/safe_browsing/BUILD.gn
767+++ chrome/browser/safe_browsing/BUILD.gn 770+++ b/chrome/browser/safe_browsing/BUILD.gn
768@@ -5,6 +5,7 @@ import("//components/safe_browsing/build 771@@ -6,6 +6,7 @@ import("//components/safe_browsing/build
769 import("//extensions/buildflags/buildflags.gni") 772 import("//extensions/buildflags/buildflags.gni")
770 773
771 static_library("safe_browsing") { 774 static_library("safe_browsing") {
@@ -773,7 +776,7 @@
773 sources = [ 776 sources = [
774 "chrome_controller_client.cc", 777 "chrome_controller_client.cc",
775 "chrome_controller_client.h", 778 "chrome_controller_client.h",
776@@ -88,6 +89,7 @@ static_library("safe_browsing") { 779@@ -91,6 +92,7 @@ static_library("safe_browsing") {
777 "//extensions/browser", 780 "//extensions/browser",
778 ] 781 ]
779 } 782 }
@@ -781,7 +784,7 @@
781 784
782 if (safe_browsing_mode != 0) { 785 if (safe_browsing_mode != 0) {
783 # "Safe Browsing Basic" files used for safe browsing in full mode 786 # "Safe Browsing Basic" files used for safe browsing in full mode
784@@ -411,6 +413,7 @@ static_library("advanced_protection") { 787@@ -455,6 +457,7 @@ static_library("advanced_protection") {
785 } 788 }
786 789
787 source_set("metrics_collector") { 790 source_set("metrics_collector") {
@@ -789,7 +792,7 @@
789 sources = [ 792 sources = [
790 "safe_browsing_metrics_collector_factory.cc", 793 "safe_browsing_metrics_collector_factory.cc",
791 "safe_browsing_metrics_collector_factory.h", 794 "safe_browsing_metrics_collector_factory.h",
792@@ -428,6 +431,7 @@ source_set("metrics_collector") { 795@@ -472,6 +475,7 @@ source_set("metrics_collector") {
793 "//components/safe_browsing/core/common:safe_browsing_prefs", 796 "//components/safe_browsing/core/common:safe_browsing_prefs",
794 "//content/public/browser", 797 "//content/public/browser",
795 ] 798 ]
@@ -797,9 +800,9 @@
797 } 800 }
798 801
799 source_set("test_support") { 802 source_set("test_support") {
800--- chrome/browser/ssl/security_state_tab_helper.cc.orig 803--- a/chrome/browser/ssl/security_state_tab_helper.cc
801+++ chrome/browser/ssl/security_state_tab_helper.cc 804+++ b/chrome/browser/ssl/security_state_tab_helper.cc
802@@ -217,89 +217,6 @@ bool SecurityStateTabHelper::UsedPolicyI 805@@ -180,89 +180,6 @@ bool SecurityStateTabHelper::UsedPolicyI
803 806
804 security_state::MaliciousContentStatus 807 security_state::MaliciousContentStatus
805 SecurityStateTabHelper::GetMaliciousContentStatus() const { 808 SecurityStateTabHelper::GetMaliciousContentStatus() const {
@@ -839,7 +842,7 @@
839- MALICIOUS_CONTENT_STATUS_SIGNED_IN_SYNC_PASSWORD_REUSE; 842- MALICIOUS_CONTENT_STATUS_SIGNED_IN_SYNC_PASSWORD_REUSE;
840- } 843- }
841-#endif 844-#endif
842- FALLTHROUGH; 845- [[fallthrough]];
843- case safe_browsing::SB_THREAT_TYPE_SIGNED_IN_NON_SYNC_PASSWORD_REUSE: 846- case safe_browsing::SB_THREAT_TYPE_SIGNED_IN_NON_SYNC_PASSWORD_REUSE:
844-#if BUILDFLAG(FULL_SAFE_BROWSING) 847-#if BUILDFLAG(FULL_SAFE_BROWSING)
845- if (safe_browsing::ChromePasswordProtectionService:: 848- if (safe_browsing::ChromePasswordProtectionService::
@@ -849,7 +852,7 @@
849- MALICIOUS_CONTENT_STATUS_SIGNED_IN_NON_SYNC_PASSWORD_REUSE; 852- MALICIOUS_CONTENT_STATUS_SIGNED_IN_NON_SYNC_PASSWORD_REUSE;
850- } 853- }
851-#endif 854-#endif
852- FALLTHROUGH; 855- [[fallthrough]];
853- case safe_browsing::SB_THREAT_TYPE_ENTERPRISE_PASSWORD_REUSE: 856- case safe_browsing::SB_THREAT_TYPE_ENTERPRISE_PASSWORD_REUSE:
854-#if BUILDFLAG(FULL_SAFE_BROWSING) 857-#if BUILDFLAG(FULL_SAFE_BROWSING)
855- if (safe_browsing::ChromePasswordProtectionService:: 858- if (safe_browsing::ChromePasswordProtectionService::
@@ -889,19 +892,19 @@
889 return security_state::MALICIOUS_CONTENT_STATUS_NONE; 892 return security_state::MALICIOUS_CONTENT_STATUS_NONE;
890 } 893 }
891 894
892--- chrome/browser/ui/BUILD.gn.orig 895--- a/chrome/browser/ui/BUILD.gn
893+++ chrome/browser/ui/BUILD.gn 896+++ b/chrome/browser/ui/BUILD.gn
894@@ -3946,7 +3946,6 @@ static_library("ui") { 897@@ -4219,7 +4219,6 @@ static_library("ui") {
895 "views/device_chooser_content_view.h", 898 "views/download/bubble/download_dialog_view.h",
896 "views/devtools_process_observer.cc", 899 "views/download/bubble/download_toolbar_button_view.cc",
897 "views/devtools_process_observer.h", 900 "views/download/bubble/download_toolbar_button_view.h",
898- "views/download/download_danger_prompt_views.cc", 901- "views/download/download_danger_prompt_views.cc",
899 "views/download/download_in_progress_dialog_view.cc", 902 "views/download/download_in_progress_dialog_view.cc",
900 "views/download/download_in_progress_dialog_view.h", 903 "views/download/download_in_progress_dialog_view.h",
901 "views/download/download_item_view.cc", 904 "views/download/download_item_view.cc",
902--- chrome/browser/ui/tab_helpers.cc.orig 905--- a/chrome/browser/ui/tab_helpers.cc
903+++ chrome/browser/ui/tab_helpers.cc 906+++ b/chrome/browser/ui/tab_helpers.cc
904@@ -330,16 +330,6 @@ void TabHelpers::AttachTabHelpers(WebCon 907@@ -390,22 +390,6 @@ void TabHelpers::AttachTabHelpers(WebCon
905 // See https://crbug.com/910288. 908 // See https://crbug.com/910288.
906 resource_coordinator::ResourceCoordinatorTabHelper::CreateForWebContents( 909 resource_coordinator::ResourceCoordinatorTabHelper::CreateForWebContents(
907 web_contents); 910 web_contents);
@@ -910,6 +913,12 @@
910- safe_browsing::SafeBrowsingNavigationObserverManagerFactory:: 913- safe_browsing::SafeBrowsingNavigationObserverManagerFactory::
911- GetForBrowserContext(profile), 914- GetForBrowserContext(profile),
912- profile->GetPrefs(), g_browser_process->safe_browsing_service()); 915- profile->GetPrefs(), g_browser_process->safe_browsing_service());
916- if (base::FeatureList::IsEnabled(
917- safe_browsing::kTailoredSecurityIntegration)) {
918- safe_browsing::TailoredSecurityUrlObserver::CreateForWebContents(
919- web_contents,
920- safe_browsing::TailoredSecurityServiceFactory::GetForProfile(profile));
921- }
913- safe_browsing::SafeBrowsingTabObserver::CreateForWebContents( 922- safe_browsing::SafeBrowsingTabObserver::CreateForWebContents(
914- web_contents, 923- web_contents,
915- std::make_unique<safe_browsing::ChromeSafeBrowsingTabObserverDelegate>()); 924- std::make_unique<safe_browsing::ChromeSafeBrowsingTabObserverDelegate>());
@@ -918,8 +927,8 @@
918 ReputationWebContentsObserver::CreateForWebContents(web_contents); 927 ReputationWebContentsObserver::CreateForWebContents(web_contents);
919 SearchEngineTabHelper::CreateForWebContents(web_contents); 928 SearchEngineTabHelper::CreateForWebContents(web_contents);
920 SecurityStateTabHelper::CreateForWebContents(web_contents); 929 SecurityStateTabHelper::CreateForWebContents(web_contents);
921--- chrome/browser/ui/webui/downloads/downloads_dom_handler.cc.orig 930--- a/chrome/browser/ui/webui/downloads/downloads_dom_handler.cc
922+++ chrome/browser/ui/webui/downloads/downloads_dom_handler.cc 931+++ b/chrome/browser/ui/webui/downloads/downloads_dom_handler.cc
923@@ -23,7 +23,6 @@ 932@@ -23,7 +23,6 @@
924 #include "base/threading/thread.h" 933 #include "base/threading/thread.h"
925 #include "base/values.h" 934 #include "base/values.h"
@@ -928,7 +937,7 @@
928 #include "chrome/browser/download/download_history.h" 937 #include "chrome/browser/download/download_history.h"
929 #include "chrome/browser/download/download_item_model.h" 938 #include "chrome/browser/download/download_item_model.h"
930 #include "chrome/browser/download/download_prefs.h" 939 #include "chrome/browser/download/download_prefs.h"
931@@ -171,9 +170,6 @@ void DownloadsDOMHandler::SaveDangerousR 940@@ -172,9 +171,6 @@ void DownloadsDOMHandler::SaveDangerousR
932 } 941 }
933 942
934 CountDownloadsDOMEvents(DOWNLOADS_DOM_EVENT_SAVE_DANGEROUS); 943 CountDownloadsDOMEvents(DOWNLOADS_DOM_EVENT_SAVE_DANGEROUS);
@@ -938,7 +947,7 @@
938 } 947 }
939 948
940 void DownloadsDOMHandler::AcceptIncognitoWarning(const std::string& id) { 949 void DownloadsDOMHandler::AcceptIncognitoWarning(const std::string& id) {
941@@ -325,12 +321,6 @@ void DownloadsDOMHandler::RemoveDownload 950@@ -326,12 +322,6 @@ void DownloadsDOMHandler::RemoveDownload
942 IdSet ids; 951 IdSet ids;
943 952
944 for (auto* download : to_remove) { 953 for (auto* download : to_remove) {
@@ -951,7 +960,7 @@
951 DownloadItemModel item_model(download); 960 DownloadItemModel item_model(download);
952 if (!item_model.ShouldShowInShelf() || 961 if (!item_model.ShouldShowInShelf() ||
953 download->GetState() == download::DownloadItem::IN_PROGRESS) { 962 download->GetState() == download::DownloadItem::IN_PROGRESS) {
954@@ -404,44 +394,6 @@ void DownloadsDOMHandler::FinalizeRemova 963@@ -405,44 +395,6 @@ void DownloadsDOMHandler::FinalizeRemova
955 } 964 }
956 } 965 }
957 966
@@ -996,17 +1005,17 @@
996 bool DownloadsDOMHandler::IsDeletingHistoryAllowed() { 1005 bool DownloadsDOMHandler::IsDeletingHistoryAllowed() {
997 content::DownloadManager* manager = GetMainNotifierManager(); 1006 content::DownloadManager* manager = GetMainNotifierManager();
998 return manager && 1007 return manager &&
999--- chrome/browser/ui/webui/downloads/downloads_dom_handler.h.orig 1008--- a/chrome/browser/ui/webui/downloads/downloads_dom_handler.h
1000+++ chrome/browser/ui/webui/downloads/downloads_dom_handler.h 1009+++ b/chrome/browser/ui/webui/downloads/downloads_dom_handler.h
1001@@ -12,7 +12,6 @@ 1010@@ -12,7 +12,6 @@
1002 1011
1003 #include "base/macros.h" 1012 #include "base/memory/raw_ptr.h"
1004 #include "base/memory/weak_ptr.h" 1013 #include "base/memory/weak_ptr.h"
1005-#include "chrome/browser/download/download_danger_prompt.h" 1014-#include "chrome/browser/download/download_danger_prompt.h"
1006 #include "chrome/browser/ui/webui/downloads/downloads.mojom-forward.h" 1015 #include "chrome/browser/ui/webui/downloads/downloads.mojom-forward.h"
1007 #include "chrome/browser/ui/webui/downloads/downloads_list_tracker.h" 1016 #include "chrome/browser/ui/webui/downloads/downloads_list_tracker.h"
1008 #include "content/public/browser/web_contents_observer.h" 1017 #include "content/public/browser/web_contents_observer.h"
1009@@ -94,18 +93,6 @@ class DownloadsDOMHandler : public conte 1018@@ -95,18 +94,6 @@ class DownloadsDOMHandler : public conte
1010 // null-checking |original_notifier_|. 1019 // null-checking |original_notifier_|.
1011 content::DownloadManager* GetOriginalNotifierManager() const; 1020 content::DownloadManager* GetOriginalNotifierManager() const;
1012 1021
@@ -1025,9 +1034,9 @@
1025 // Returns true if the records of any downloaded items are allowed (and able) 1034 // Returns true if the records of any downloaded items are allowed (and able)
1026 // to be deleted. 1035 // to be deleted.
1027 bool IsDeletingHistoryAllowed(); 1036 bool IsDeletingHistoryAllowed();
1028--- chrome/browser/ui/webui/interstitials/interstitial_ui.cc.orig 1037--- a/chrome/browser/ui/webui/interstitials/interstitial_ui.cc
1029+++ chrome/browser/ui/webui/interstitials/interstitial_ui.cc 1038+++ b/chrome/browser/ui/webui/interstitials/interstitial_ui.cc
1030@@ -281,116 +281,6 @@ CreateHttpsOnlyModePage(content::WebCont 1039@@ -274,120 +274,6 @@ CreateHttpsOnlyModePage(content::WebCont
1031 request_url)); 1040 request_url));
1032 } 1041 }
1033 1042
@@ -1037,7 +1046,8 @@
1037- safe_browsing::SB_THREAT_TYPE_URL_MALWARE; 1046- safe_browsing::SB_THREAT_TYPE_URL_MALWARE;
1038- GURL request_url("http://example.com"); 1047- GURL request_url("http://example.com");
1039- std::string url_param; 1048- std::string url_param;
1040- if (net::GetValueForKeyInQuery(web_contents->GetURL(), "url", &url_param)) { 1049- if (net::GetValueForKeyInQuery(web_contents->GetVisibleURL(), "url",
1050- &url_param)) {
1041- if (GURL(url_param).is_valid()) { 1051- if (GURL(url_param).is_valid()) {
1042- request_url = GURL(url_param); 1052- request_url = GURL(url_param);
1043- } 1053- }
@@ -1046,7 +1056,8 @@
1046- // TODO(mattm): add flag to change main_frame_url or add dedicated flag to 1056- // TODO(mattm): add flag to change main_frame_url or add dedicated flag to
1047- // test subresource interstitials. 1057- // test subresource interstitials.
1048- std::string type_param; 1058- std::string type_param;
1049- if (net::GetValueForKeyInQuery(web_contents->GetURL(), "type", &type_param)) { 1059- if (net::GetValueForKeyInQuery(web_contents->GetVisibleURL(), "type",
1060- &type_param)) {
1050- if (type_param == "malware") { 1061- if (type_param == "malware") {
1051- threat_type = safe_browsing::SB_THREAT_TYPE_URL_MALWARE; 1062- threat_type = safe_browsing::SB_THREAT_TYPE_URL_MALWARE;
1052- } else if (type_param == "phishing") { 1063- } else if (type_param == "phishing") {
@@ -1094,14 +1105,16 @@
1094- safe_browsing::SB_THREAT_TYPE_URL_MALWARE; 1105- safe_browsing::SB_THREAT_TYPE_URL_MALWARE;
1095- GURL request_url("http://example.com"); 1106- GURL request_url("http://example.com");
1096- std::string url_param; 1107- std::string url_param;
1097- if (net::GetValueForKeyInQuery(web_contents->GetURL(), "url", &url_param)) { 1108- if (net::GetValueForKeyInQuery(web_contents->GetVisibleURL(), "url",
1109- &url_param)) {
1098- if (GURL(url_param).is_valid()) 1110- if (GURL(url_param).is_valid())
1099- request_url = GURL(url_param); 1111- request_url = GURL(url_param);
1100- } 1112- }
1101- GURL main_frame_url(request_url); 1113- GURL main_frame_url(request_url);
1102- std::string type_param; 1114- std::string type_param;
1103- bool is_giant_webview = false; 1115- bool is_giant_webview = false;
1104- if (net::GetValueForKeyInQuery(web_contents->GetURL(), "type", &type_param)) { 1116- if (net::GetValueForKeyInQuery(web_contents->GetVisibleURL(), "type",
1117- &type_param)) {
1105- if (type_param == "malware") { 1118- if (type_param == "malware") {
1106- threat_type = safe_browsing::SB_THREAT_TYPE_URL_MALWARE; 1119- threat_type = safe_browsing::SB_THREAT_TYPE_URL_MALWARE;
1107- } else if (type_param == "phishing") { 1120- } else if (type_param == "phishing") {
@@ -1144,16 +1157,16 @@
1144 #if BUILDFLAG(ENABLE_CAPTIVE_PORTAL_DETECTION) 1157 #if BUILDFLAG(ENABLE_CAPTIVE_PORTAL_DETECTION)
1145 std::unique_ptr<CaptivePortalBlockingPage> CreateCaptivePortalBlockingPage( 1158 std::unique_ptr<CaptivePortalBlockingPage> CreateCaptivePortalBlockingPage(
1146 content::WebContents* web_contents) { 1159 content::WebContents* web_contents) {
1147@@ -507,8 +397,6 @@ void InterstitialHTMLSource::StartDataRe 1160@@ -502,8 +388,6 @@ void InterstitialHTMLSource::StartDataRe
1161 interstitial_delegate = CreateMITMSoftwareBlockingPage(web_contents);
1162 } else if (path_without_query == "/blocked-interception") {
1148 interstitial_delegate = CreateBlockedInterceptionBlockingPage(web_contents); 1163 interstitial_delegate = CreateBlockedInterceptionBlockingPage(web_contents);
1149 } else if (path_without_query == "/legacy-tls") {
1150 interstitial_delegate = CreateLegacyTLSBlockingPage(web_contents);
1151- } else if (path_without_query == "/safebrowsing") { 1164- } else if (path_without_query == "/safebrowsing") {
1152- interstitial_delegate = CreateSafeBrowsingBlockingPage(web_contents); 1165- interstitial_delegate = CreateSafeBrowsingBlockingPage(web_contents);
1153 } else if (path_without_query == "/clock") { 1166 } else if (path_without_query == "/clock") {
1154 interstitial_delegate = CreateBadClockBlockingPage(web_contents); 1167 interstitial_delegate = CreateBadClockBlockingPage(web_contents);
1155 } else if (path_without_query == "/lookalike") { 1168 } else if (path_without_query == "/lookalike") {
1156@@ -525,16 +413,12 @@ void InterstitialHTMLSource::StartDataRe 1169@@ -520,16 +404,12 @@ void InterstitialHTMLSource::StartDataRe
1157 interstitial_delegate = CreateHttpsOnlyModePage(web_contents); 1170 interstitial_delegate = CreateHttpsOnlyModePage(web_contents);
1158 } 1171 }
1159 1172
@@ -1173,18 +1186,18 @@
1173 html = interstitial_delegate.get()->GetHTMLContents(); 1186 html = interstitial_delegate.get()->GetHTMLContents();
1174 } else { 1187 } else {
1175 html = ui::ResourceBundle::GetSharedInstance().LoadDataResourceString( 1188 html = ui::ResourceBundle::GetSharedInstance().LoadDataResourceString(
1176--- chrome/renderer/chrome_content_renderer_client.cc.orig 1189--- a/chrome/renderer/chrome_content_renderer_client.cc
1177+++ chrome/renderer/chrome_content_renderer_client.cc 1190+++ b/chrome/renderer/chrome_content_renderer_client.cc
1178@@ -97,7 +97,6 @@ 1191@@ -95,7 +95,6 @@
1179 #include "components/page_load_metrics/renderer/metrics_render_frame_observer.h"
1180 #include "components/paint_preview/buildflags/buildflags.h" 1192 #include "components/paint_preview/buildflags/buildflags.h"
1193 #include "components/password_manager/core/common/password_manager_features.h"
1181 #include "components/safe_browsing/buildflags.h" 1194 #include "components/safe_browsing/buildflags.h"
1182-#include "components/safe_browsing/content/renderer/threat_dom_details.h" 1195-#include "components/safe_browsing/content/renderer/threat_dom_details.h"
1183 #include "components/spellcheck/spellcheck_buildflags.h" 1196 #include "components/spellcheck/spellcheck_buildflags.h"
1184 #include "components/subresource_filter/content/renderer/subresource_filter_agent.h" 1197 #include "components/subresource_filter/content/renderer/subresource_filter_agent.h"
1185 #include "components/subresource_filter/content/renderer/unverified_ruleset_dealer.h" 1198 #include "components/subresource_filter/content/renderer/unverified_ruleset_dealer.h"
1186--- components/security_interstitials/content/cert_report_helper.cc.orig 1199--- a/components/security_interstitials/content/cert_report_helper.cc
1187+++ components/security_interstitials/content/cert_report_helper.cc 1200+++ b/components/security_interstitials/content/cert_report_helper.cc
1188@@ -177,7 +177,6 @@ void CertReportHelper::FinishCertCollect 1201@@ -177,7 +177,6 @@ void CertReportHelper::FinishCertCollect
1189 return; 1202 return;
1190 } 1203 }
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..a692d80 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 @@
1--- components/autofill/core/browser/autofill_download_manager.cc.orig 1--- a/components/autofill/core/browser/autofill_download_manager.cc
2+++ components/autofill/core/browser/autofill_download_manager.cc 2+++ b/components/autofill/core/browser/autofill_download_manager.cc
3@@ -824,96 +824,6 @@ std::tuple<GURL, std::string> AutofillDo 3@@ -802,94 +802,6 @@ std::tuple<GURL, std::string> AutofillDo
4 } 4 }
5 5
6 bool AutofillDownloadManager::StartRequest(FormRequestData request_data) { 6 bool AutofillDownloadManager::StartRequest(FormRequestData request_data) {
@@ -9,9 +9,7 @@
9- DCHECK(url_loader_factory); 9- DCHECK(url_loader_factory);
10- 10-
11- // Get the URL and method to use for this request. 11- // Get the URL and method to use for this request.
12- std::string method; 12- auto [request_url, method] = GetRequestURLAndMethod(request_data);
13- GURL request_url;
14- std::tie(request_url, method) = GetRequestURLAndMethod(request_data);
15- 13-
16- // Track the URL length for GET queries because the URL length can be in the 14- // Track the URL length for GET queries because the URL length can be in the
17- // thousands when rich metadata is enabled. 15- // thousands when rich metadata is enabled.
@@ -29,7 +27,7 @@
29- // On iOS we have a single, shared URLLoaderFactory provided by BrowserState. 27- // On iOS we have a single, shared URLLoaderFactory provided by BrowserState.
30- // As it is shared, it is not trusted and we cannot assign trusted_params 28- // As it is shared, it is not trusted and we cannot assign trusted_params
31- // to the network request. 29- // to the network request.
32-#if !defined(OS_IOS) 30-#if !BUILDFLAG(IS_IOS)
33- // Do not call IsolationInfo() for REQUEST_UPLOADs because Password Manager 31- // Do not call IsolationInfo() for REQUEST_UPLOADs because Password Manager
34- // uploads when RenderFrameHostImpl::DidCommitNavigation() is called, in which 32- // uploads when RenderFrameHostImpl::DidCommitNavigation() is called, in which
35- // case IsolationInfo() may crash because there is no committing 33- // 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..5b9cd42 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 @@
1--- chrome/browser/extensions/component_extensions_allowlist/allowlist.cc.orig 1--- a/chrome/browser/extensions/component_extensions_allowlist/allowlist.cc
2+++ chrome/browser/extensions/component_extensions_allowlist/allowlist.cc 2+++ b/chrome/browser/extensions/component_extensions_allowlist/allowlist.cc
3@@ -28,7 +28,6 @@ namespace extensions { 3@@ -27,7 +27,6 @@ namespace extensions {
4 4
5 bool IsComponentExtensionAllowlisted(const std::string& extension_id) { 5 bool IsComponentExtensionAllowlisted(const std::string& extension_id) {
6 const char* const kAllowed[] = { 6 const char* const kAllowed[] = {
7- extension_misc::kInAppPaymentsSupportAppId, 7- extension_misc::kInAppPaymentsSupportAppId,
8 extension_misc::kPdfExtensionId, 8 extension_misc::kPdfExtensionId,
9 #if defined(OS_CHROMEOS) 9 #if BUILDFLAG(IS_CHROMEOS)
10 extension_misc::kAssessmentAssistantExtensionId, 10 extension_misc::kAssessmentAssistantExtensionId,
11--- chrome/browser/extensions/component_loader.cc.orig 11--- a/chrome/browser/extensions/component_loader.cc
12+++ chrome/browser/extensions/component_loader.cc 12+++ b/chrome/browser/extensions/component_loader.cc
13@@ -354,11 +354,6 @@ void ComponentLoader::AddWebStoreApp() { 13@@ -356,11 +356,6 @@ void ComponentLoader::AddWebStoreApp() {
14 if (!IsNormalSession()) 14 if (!IsNormalSession())
15 return; 15 return;
16 #endif 16 #endif
@@ -22,7 +22,7 @@
22 } 22 }
23 23
24 #if BUILDFLAG(IS_CHROMEOS_ASH) 24 #if BUILDFLAG(IS_CHROMEOS_ASH)
25@@ -495,18 +490,6 @@ void ComponentLoader::AddDefaultComponen 25@@ -503,18 +498,6 @@ void ComponentLoader::AddDefaultComponen
26 AddHangoutServicesExtension(); 26 AddHangoutServicesExtension();
27 #endif // BUILDFLAG(ENABLE_HANGOUT_SERVICES_EXTENSION) 27 #endif // BUILDFLAG(ENABLE_HANGOUT_SERVICES_EXTENSION)
28 28
@@ -41,8 +41,8 @@
41 #if BUILDFLAG(IS_CHROMEOS_ASH) 41 #if BUILDFLAG(IS_CHROMEOS_ASH)
42 if (command_line->HasSwitch(switches::kLoadGuestModeTestExtension)) { 42 if (command_line->HasSwitch(switches::kLoadGuestModeTestExtension)) {
43 base::FilePath path = base::FilePath(command_line->GetSwitchValueASCII( 43 base::FilePath path = base::FilePath(command_line->GetSwitchValueASCII(
44--- chrome/browser/extensions/external_component_loader.cc.orig 44--- a/chrome/browser/extensions/external_component_loader.cc
45+++ chrome/browser/extensions/external_component_loader.cc 45+++ b/chrome/browser/extensions/external_component_loader.cc
46@@ -30,9 +30,6 @@ ExternalComponentLoader::~ExternalCompon 46@@ -30,9 +30,6 @@ ExternalComponentLoader::~ExternalCompon
47 47
48 void ExternalComponentLoader::StartLoading() { 48 void ExternalComponentLoader::StartLoading() {
@@ -51,11 +51,11 @@
51- AddExternalExtension(extension_misc::kInAppPaymentsSupportAppId, prefs.get()); 51- AddExternalExtension(extension_misc::kInAppPaymentsSupportAppId, prefs.get());
52-#endif // BUILDFLAG(GOOGLE_CHROME_BRANDING) 52-#endif // BUILDFLAG(GOOGLE_CHROME_BRANDING)
53 53
54 #if defined(OS_CHROMEOS) 54 #if BUILDFLAG(IS_CHROMEOS)
55 { 55 {
56--- chrome/browser/extensions/webstore_installer.cc.orig 56--- a/chrome/browser/extensions/webstore_installer.cc
57+++ chrome/browser/extensions/webstore_installer.cc 57+++ b/chrome/browser/extensions/webstore_installer.cc
58@@ -555,20 +555,6 @@ void WebstoreInstaller::DownloadNextPend 58@@ -553,20 +553,6 @@ void WebstoreInstaller::DownloadNextPend
59 void WebstoreInstaller::DownloadCrx( 59 void WebstoreInstaller::DownloadCrx(
60 const std::string& extension_id, 60 const std::string& extension_id,
61 InstallSource source) { 61 InstallSource source) {
@@ -76,7 +76,7 @@
76 } 76 }
77 77
78 // http://crbug.com/165634 78 // http://crbug.com/165634
79@@ -712,21 +698,6 @@ void WebstoreInstaller::UpdateDownloadPr 79@@ -709,21 +695,6 @@ void WebstoreInstaller::UpdateDownloadPr
80 void WebstoreInstaller::StartCrxInstaller(const DownloadItem& download) { 80 void WebstoreInstaller::StartCrxInstaller(const DownloadItem& download) {
81 DCHECK_CURRENTLY_ON(BrowserThread::UI); 81 DCHECK_CURRENTLY_ON(BrowserThread::UI);
82 DCHECK(!crx_installer_.get()); 82 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 @@
1--- components/web_resource/web_resource_service.cc.orig 1--- a/components/web_resource/web_resource_service.cc
2+++ components/web_resource/web_resource_service.cc 2+++ b/components/web_resource/web_resource_service.cc
3@@ -120,44 +120,7 @@ bool WebResourceService::GetFetchSchedul 3@@ -120,44 +120,7 @@ bool WebResourceService::GetFetchSchedul
4 // Initializes the fetching of data from the resource server. Data 4 // Initializes the fetching of data from the resource server. Data
5 // load calls OnSimpleLoaderComplete. 5 // 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..ff1eb51 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 @@
1--- net/dns/host_resolver_manager.cc.orig 1--- a/net/dns/host_resolver_manager.cc
2+++ net/dns/host_resolver_manager.cc 2+++ b/net/dns/host_resolver_manager.cc
3@@ -139,10 +139,10 @@ const unsigned kMinimumTTLSeconds = kCac 3@@ -153,10 +153,10 @@ const unsigned kMinimumTTLSeconds = kCac
4 // cached. 4 // cached.
5 const int kIPv6ProbePeriodMs = 1000; 5 const int kIPv6ProbePeriodMs = 1000;
6 6
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 @@
1--- chrome/updater/configurator.cc.orig 1--- a/chrome/updater/configurator.cc
2+++ chrome/updater/configurator.cc 2+++ b/chrome/updater/configurator.cc
3@@ -82,7 +82,7 @@ int Configurator::UpdateDelay() const { 3@@ -91,7 +91,7 @@ int Configurator::UpdateDelay() const {
4 } 4 }
5 5
6 std::vector<GURL> Configurator::UpdateUrl() const { 6 std::vector<GURL> 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
deleted file mode 100644
index 269fb0c..0000000
--- a/www/chromium-uc/patches/core/inox-patchset/0017-disable-new-avatar-menu.patch
+++ /dev/null
@@ -1,11 +0,0 @@
1--- components/signin/internal/identity_manager/primary_account_policy_manager_impl.cc.orig
2+++ components/signin/internal/identity_manager/primary_account_policy_manager_impl.cc
3@@ -86,7 +86,7 @@ void PrimaryAccountPolicyManagerImpl::On
4 }
5
6 bool PrimaryAccountPolicyManagerImpl::IsSigninAllowed() const {
7- return signin_allowed_.GetValue();
8+ return false;
9 }
10
11 void PrimaryAccountPolicyManagerImpl::OnSigninAllowedPrefChanged(
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..9620fb2 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 @@
1# Disable rlz 1# Disable rlz
2 2
3--- BUILD.gn.orig 3--- a/BUILD.gn
4+++ BUILD.gn 4+++ b/BUILD.gn
5@@ -485,14 +485,6 @@ group("gn_all") { 5@@ -482,14 +482,6 @@ group("gn_all") {
6 deps += [ "//chromeos:chromeos_unittests" ] 6 deps += [ "//chromeos:chromeos_unittests" ]
7 } 7 }
8 8
@@ -17,8 +17,8 @@
17 if (is_linux || is_chromeos) { 17 if (is_linux || is_chromeos) {
18 # The following are definitely linux-only. 18 # The following are definitely linux-only.
19 deps += [ 19 deps += [
20--- rlz/buildflags/buildflags.gni.orig 20--- a/rlz/buildflags/buildflags.gni
21+++ rlz/buildflags/buildflags.gni 21+++ b/rlz/buildflags/buildflags.gni
22@@ -7,6 +7,6 @@ import("//build/config/chromeos/ui_mode. 22@@ -7,6 +7,6 @@ import("//build/config/chromeos/ui_mode.
23 23
24 # Whether we are using the rlz library or not. Platforms like Android send 24 # 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..3b93e8f 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.
66 ui/views/examples/webview_example.cc | 2 +- 66 ui/views/examples/webview_example.cc | 2 +-
67 54 files changed, 89 insertions(+), 87 deletions(-) 67 54 files changed, 89 insertions(+), 87 deletions(-)
68 68
69--- build/apple/tweak_info_plist.py.orig 69--- a/ash/components/geolocation/simple_geolocation_provider.cc
70+++ build/apple/tweak_info_plist.py 70+++ b/ash/components/geolocation/simple_geolocation_provider.cc
71@@ -20,7 +20,7 @@ namespace ash {
72 namespace {
73
74 const char kDefaultGeolocationProviderUrl[] =
75- "https://www.googleapis.com/geolocation/v1/geolocate?";
76+ "trk:215:https://www.googleapis.com/geolocation/v1/geolocate?";
77
78 } // namespace
79
80--- a/build/apple/tweak_info_plist.py
81+++ b/build/apple/tweak_info_plist.py
71@@ -195,7 +195,7 @@ def _AddKeystoneKeys(plist, bundle_ident 82@@ -195,7 +195,7 @@ def _AddKeystoneKeys(plist, bundle_ident
72 also requires the |bundle_identifier| argument (com.example.product).""" 83 also requires the |bundle_identifier| argument (com.example.product)."""
73 plist['KSVersion'] = plist['CFBundleShortVersionString'] 84 plist['KSVersion'] = plist['CFBundleShortVersionString']
@@ -77,9 +88,9 @@ by default.
77 88
78 _RemoveKeys(plist, 'KSChannelID') 89 _RemoveKeys(plist, 'KSChannelID')
79 if base_tag != '': 90 if base_tag != '':
80--- chrome/browser/ash/customization/customization_document.cc.orig 91--- a/chrome/browser/ash/customization/customization_document.cc
81+++ chrome/browser/ash/customization/customization_document.cc 92+++ b/chrome/browser/ash/customization/customization_document.cc
82@@ -175,7 +175,7 @@ std::string ReadFileInBackground(const b 93@@ -198,7 +198,7 @@ std::string ReadFileInBackground(const b
83 94
84 // Template URL where to fetch OEM services customization manifest from. 95 // Template URL where to fetch OEM services customization manifest from.
85 const char ServicesCustomizationDocument::kManifestUrl[] = 96 const char ServicesCustomizationDocument::kManifestUrl[] =
@@ -88,9 +99,9 @@ by default.
88 99
89 // A custom extensions::ExternalLoader that the ServicesCustomizationDocument 100 // A custom extensions::ExternalLoader that the ServicesCustomizationDocument
90 // creates and uses to publish OEM default apps to the extensions system. 101 // creates and uses to publish OEM default apps to the extensions system.
91--- chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc.orig 102--- a/chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc
92+++ chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc 103+++ b/chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc
93@@ -87,7 +87,7 @@ namespace { 104@@ -93,7 +93,7 @@ namespace {
94 105
95 using api::file_manager_private::ProfileInfo; 106 using api::file_manager_private::ProfileInfo;
96 107
@@ -99,8 +110,8 @@ by default.
99 110
100 // Thresholds for mountCrostini() API. 111 // Thresholds for mountCrostini() API.
101 constexpr base::TimeDelta kMountCrostiniSlowOperationThreshold = 112 constexpr base::TimeDelta kMountCrostiniSlowOperationThreshold =
102--- chrome/browser/extensions/api/cryptotoken_private/cryptotoken_private_api.cc.orig 113--- a/chrome/browser/extensions/api/cryptotoken_private/cryptotoken_private_api.cc
103+++ chrome/browser/extensions/api/cryptotoken_private/cryptotoken_private_api.cc 114+++ b/chrome/browser/extensions/api/cryptotoken_private/cryptotoken_private_api.cc
104@@ -52,8 +52,8 @@ namespace { 115@@ -52,8 +52,8 @@ namespace {
105 116
106 const char kGoogleDotCom[] = "google.com"; 117 const char kGoogleDotCom[] = "google.com";
@@ -112,9 +123,9 @@ by default.
112 123
113 // ContainsAppIdByHash returns true iff the SHA-256 hash of one of the 124 // ContainsAppIdByHash returns true iff the SHA-256 hash of one of the
114 // elements of |list| equals |hash|. 125 // elements of |list| equals |hash|.
115--- chrome/browser/extensions/install_signer.cc.orig 126--- a/chrome/browser/extensions/install_signer.cc
116+++ chrome/browser/extensions/install_signer.cc 127+++ b/chrome/browser/extensions/install_signer.cc
117@@ -67,7 +67,7 @@ const int kSignatureFormatVersion = 2; 128@@ -66,7 +66,7 @@ const int kSignatureFormatVersion = 2;
118 const size_t kSaltBytes = 32; 129 const size_t kSaltBytes = 32;
119 130
120 const char kBackendUrl[] = 131 const char kBackendUrl[] =
@@ -123,8 +134,8 @@ by default.
123 134
124 const char kPublicKeyPEM[] = \ 135 const char kPublicKeyPEM[] = \
125 "-----BEGIN PUBLIC KEY-----" \ 136 "-----BEGIN PUBLIC KEY-----" \
126--- chrome/browser/media/webrtc/webrtc_event_log_uploader.cc.orig 137--- a/chrome/browser/media/webrtc/webrtc_event_log_uploader.cc
127+++ chrome/browser/media/webrtc/webrtc_event_log_uploader.cc 138+++ b/chrome/browser/media/webrtc/webrtc_event_log_uploader.cc
128@@ -125,7 +125,7 @@ void OnURLLoadUploadProgress(uint64_t cu 139@@ -125,7 +125,7 @@ void OnURLLoadUploadProgress(uint64_t cu
129 } // namespace 140 } // namespace
130 141
@@ -134,9 +145,9 @@ by default.
134 145
135 WebRtcEventLogUploaderImpl::Factory::Factory( 146 WebRtcEventLogUploaderImpl::Factory::Factory(
136 scoped_refptr<base::SequencedTaskRunner> task_runner) 147 scoped_refptr<base::SequencedTaskRunner> task_runner)
137--- chrome/browser/media/webrtc/webrtc_log_uploader.cc.orig 148--- a/chrome/browser/media/webrtc/webrtc_log_uploader.cc
138+++ chrome/browser/media/webrtc/webrtc_log_uploader.cc 149+++ b/chrome/browser/media/webrtc/webrtc_log_uploader.cc
139@@ -485,7 +485,7 @@ void WebRtcLogUploader::UploadCompressed 150@@ -484,7 +484,7 @@ void WebRtcLogUploader::UploadCompressed
140 "Not implemented, it would be good to do so." 151 "Not implemented, it would be good to do so."
141 })"); 152 })");
142 153
@@ -145,8 +156,8 @@ by default.
145 auto resource_request = std::make_unique<network::ResourceRequest>(); 156 auto resource_request = std::make_unique<network::ResourceRequest>();
146 resource_request->url = !upload_url_for_testing_.is_empty() 157 resource_request->url = !upload_url_for_testing_.is_empty()
147 ? upload_url_for_testing_ 158 ? upload_url_for_testing_
148--- chrome/browser/nacl_host/nacl_infobar_delegate.cc.orig 159--- a/chrome/browser/nacl_host/nacl_infobar_delegate.cc
149+++ chrome/browser/nacl_host/nacl_infobar_delegate.cc 160+++ b/chrome/browser/nacl_host/nacl_infobar_delegate.cc
150@@ -33,7 +33,7 @@ std::u16string NaClInfoBarDelegate::GetL 161@@ -33,7 +33,7 @@ std::u16string NaClInfoBarDelegate::GetL
151 } 162 }
152 163
@@ -156,8 +167,8 @@ by default.
156 } 167 }
157 168
158 std::u16string NaClInfoBarDelegate::GetMessageText() const { 169 std::u16string NaClInfoBarDelegate::GetMessageText() const {
159--- chrome/browser/profiles/profile_avatar_downloader.cc.orig 170--- a/chrome/browser/profiles/profile_avatar_downloader.cc
160+++ chrome/browser/profiles/profile_avatar_downloader.cc 171+++ b/chrome/browser/profiles/profile_avatar_downloader.cc
161@@ -20,7 +20,7 @@ 172@@ -20,7 +20,7 @@
162 173
163 namespace { 174 namespace {
@@ -167,8 +178,8 @@ by default.
167 } 178 }
168 179
169 ProfileAvatarDownloader::ProfileAvatarDownloader(size_t icon_index, 180 ProfileAvatarDownloader::ProfileAvatarDownloader(size_t icon_index,
170--- chrome/browser/resources/default_apps/external_extensions.json.orig 181--- a/chrome/browser/resources/default_apps/external_extensions.json
171+++ chrome/browser/resources/default_apps/external_extensions.json 182+++ b/chrome/browser/resources/default_apps/external_extensions.json
172@@ -23,17 +23,17 @@ 183@@ -23,17 +23,17 @@
173 }, 184 },
174 // Google Sheets 185 // Google Sheets
@@ -190,9 +201,9 @@ by default.
190 } 201 }
191 } 202 }
192 203
193--- chrome/browser/safe_browsing/download_protection/download_feedback.cc.orig 204--- a/chrome/browser/safe_browsing/download_protection/download_feedback.cc
194+++ chrome/browser/safe_browsing/download_protection/download_feedback.cc 205+++ b/chrome/browser/safe_browsing/download_protection/download_feedback.cc
195@@ -202,7 +202,7 @@ const int64_t DownloadFeedback::kMaxUplo 206@@ -192,7 +192,7 @@ const int64_t DownloadFeedback::kMaxUplo
196 207
197 // static 208 // static
198 const char DownloadFeedback::kSbFeedbackURL[] = 209 const char DownloadFeedback::kSbFeedbackURL[] =
@@ -201,8 +212,8 @@ by default.
201 212
202 // static 213 // static
203 DownloadFeedbackFactory* DownloadFeedback::factory_ = nullptr; 214 DownloadFeedbackFactory* DownloadFeedback::factory_ = nullptr;
204--- chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc.orig 215--- a/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
205+++ chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc 216+++ b/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
206@@ -279,7 +279,7 @@ GURL SpellcheckHunspellDictionary::GetDi 217@@ -279,7 +279,7 @@ GURL SpellcheckHunspellDictionary::GetDi
207 DCHECK(!bdict_file.empty()); 218 DCHECK(!bdict_file.empty());
208 219
@@ -212,20 +223,20 @@ by default.
212 223
213 return GURL(std::string(kDownloadServerUrl) + 224 return GURL(std::string(kDownloadServerUrl) +
214 base::ToLowerASCII(bdict_file)); 225 base::ToLowerASCII(bdict_file));
215--- chrome/browser/supervised_user/supervised_user_service.cc.orig 226--- a/chrome/browser/supervised_user/supervised_user_service.cc
216+++ chrome/browser/supervised_user/supervised_user_service.cc 227+++ b/chrome/browser/supervised_user/supervised_user_service.cc
217@@ -87,7 +87,7 @@ namespace { 228@@ -85,7 +85,7 @@ namespace {
218 229
219 // The URL from which to download a host denylist if no local one exists yet. 230 // The URL from which to download a host denylist if no local one exists yet.
220 const char kDenylistURL[] = 231 const char kDenylistURL[] =
221- "https://www.gstatic.com/chrome/supervised_user/denylist-20141001-1k.bin"; 232- "https://www.gstatic.com/chrome/supervised_user/denylist-20141001-1k.bin";
222+ "trk:272:https://www.gstatic.com/chrome/supervised_user/denylist-20141001-1k.bin"; 233+ "trk:272:https://www.gstatic.com/chrome/supervised_user/denylist-20141001-1k.bin";
223 // The filename under which we'll store the denylist (in the user data dir). The 234 // The filename under which we'll store the denylist (in the user data dir).
224 // old file will be used as a backup in case the new file has not been loaded 235 const char kDenylistFilename[] = "su-denylist.bin";
225 // yet. 236
226--- chrome/browser/ui/views/outdated_upgrade_bubble_view.cc.orig 237--- a/chrome/browser/ui/dialogs/outdated_upgrade_bubble.cc
227+++ chrome/browser/ui/views/outdated_upgrade_bubble_view.cc 238+++ b/chrome/browser/ui/dialogs/outdated_upgrade_bubble.cc
228@@ -54,7 +54,7 @@ const char* kUpdateBrowserRedirectUrl = 239@@ -49,7 +49,7 @@ const char* kUpdateBrowserRedirectUrl =
229 #else 240 #else
230 // The URL to be used to re-install Chrome when auto-update failed for 241 // The URL to be used to re-install Chrome when auto-update failed for
231 // too long. 242 // too long.
@@ -234,9 +245,9 @@ by default.
234 #endif 245 #endif
235 246
236 bool g_upgrade_bubble_is_showing = false; 247 bool g_upgrade_bubble_is_showing = false;
237--- chrome/browser/ui/webui/ntp/ntp_resource_cache.cc.orig 248--- a/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
238+++ chrome/browser/ui/webui/ntp/ntp_resource_cache.cc 249+++ b/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
239@@ -67,17 +67,17 @@ namespace { 250@@ -71,17 +71,17 @@ namespace {
240 // The URL for the the Learn More page shown on incognito new tab. 251 // The URL for the the Learn More page shown on incognito new tab.
241 const char kLearnMoreIncognitoUrl[] = 252 const char kLearnMoreIncognitoUrl[] =
242 #if BUILDFLAG(IS_CHROMEOS_ASH) 253 #if BUILDFLAG(IS_CHROMEOS_ASH)
@@ -258,8 +269,8 @@ by default.
258 #endif 269 #endif
259 270
260 std::string ReplaceTemplateExpressions( 271 std::string ReplaceTemplateExpressions(
261--- chrome/chrome_cleaner/components/recovery_component.cc.orig 272--- a/chrome/chrome_cleaner/components/recovery_component.cc
262+++ chrome/chrome_cleaner/components/recovery_component.cc 273+++ b/chrome/chrome_cleaner/components/recovery_component.cc
263@@ -37,7 +37,7 @@ namespace chrome_cleaner { 274@@ -37,7 +37,7 @@ namespace chrome_cleaner {
264 namespace { 275 namespace {
265 276
@@ -269,8 +280,8 @@ by default.
269 "&installsource=swreporter&x=id%3Dnpdjjkjlcidkjlamlmmdelcjbcpdjocm" 280 "&installsource=swreporter&x=id%3Dnpdjjkjlcidkjlamlmmdelcjbcpdjocm"
270 "%26v%3D0.0.0.0%26uc&acceptformat=crx3"; 281 "%26v%3D0.0.0.0%26uc&acceptformat=crx3";
271 282
272--- chrome/chrome_cleaner/crash/crashpad_crash_reporter.cc.orig 283--- a/chrome/chrome_cleaner/crash/crashpad_crash_reporter.cc
273+++ chrome/chrome_cleaner/crash/crashpad_crash_reporter.cc 284+++ b/chrome/chrome_cleaner/crash/crashpad_crash_reporter.cc
274@@ -28,7 +28,7 @@ 285@@ -28,7 +28,7 @@
275 namespace { 286 namespace {
276 287
@@ -280,8 +291,8 @@ by default.
280 291
281 // Whether the current process is connected to a crash handler process. 292 // Whether the current process is connected to a crash handler process.
282 bool g_is_connected_to_crash_handler = false; 293 bool g_is_connected_to_crash_handler = false;
283--- chrome/common/extensions/chrome_extensions_client.cc.orig 294--- a/chrome/common/extensions/chrome_extensions_client.cc
284+++ chrome/common/extensions/chrome_extensions_client.cc 295+++ b/chrome/common/extensions/chrome_extensions_client.cc
285@@ -45,9 +45,9 @@ namespace { 296@@ -45,9 +45,9 @@ namespace {
286 297
287 // TODO(battre): Delete the HTTP URL once the blocklist is downloaded via HTTPS. 298 // TODO(battre): Delete the HTTP URL once the blocklist is downloaded via HTTPS.
@@ -292,10 +303,10 @@ by default.
292- "https://www.gstatic.com/chrome/extensions/blocklist"; 303- "https://www.gstatic.com/chrome/extensions/blocklist";
293+ "trk:270:https://www.gstatic.com/chrome/extensions/blocklist"; 304+ "trk:270:https://www.gstatic.com/chrome/extensions/blocklist";
294 305
295 const char kThumbsWhiteListedExtension[] = "khopmbdjffemhegeeobelklnbglcdgfh"; 306 } // namespace
296 307
297--- chrome/installer/setup/google_chrome_behaviors.cc.orig 308--- a/chrome/installer/setup/google_chrome_behaviors.cc
298+++ chrome/installer/setup/google_chrome_behaviors.cc 309+++ b/chrome/installer/setup/google_chrome_behaviors.cc
299@@ -37,7 +37,7 @@ namespace installer { 310@@ -37,7 +37,7 @@ namespace installer {
300 namespace { 311 namespace {
301 312
@@ -305,19 +316,8 @@ by default.
305 316
306 bool NavigateToUrlWithEdge(const std::wstring& url) { 317 bool NavigateToUrlWithEdge(const std::wstring& url) {
307 std::wstring protocol_url = L"microsoft-edge:" + url; 318 std::wstring protocol_url = L"microsoft-edge:" + url;
308--- chromecast/browser/service/cast_service_simple.cc.orig 319--- a/chromecast/crash/linux/minidump_uploader.cc
309+++ chromecast/browser/service/cast_service_simple.cc 320+++ b/chromecast/crash/linux/minidump_uploader.cc
310@@ -27,7 +27,7 @@ GURL GetStartupURL() {
311 const base::CommandLine::StringVector& args = command_line->GetArgs();
312
313 if (args.empty())
314- return GURL("http://www.google.com/");
315+ return GURL("trk:255:http://www.google.com/");
316
317 GURL url(args[0]);
318 if (url.is_valid() && url.has_scheme())
319--- chromecast/crash/linux/minidump_uploader.cc.orig
320+++ chromecast/crash/linux/minidump_uploader.cc
321@@ -41,7 +41,7 @@ namespace { 321@@ -41,7 +41,7 @@ namespace {
322 322
323 const char kProductName[] = "Eureka"; 323 const char kProductName[] = "Eureka";
@@ -327,39 +327,9 @@ by default.
327 327
328 const char kVirtualChannel[] = "virtual-channel"; 328 const char kVirtualChannel[] = "virtual-channel";
329 329
330--- chromeos/geolocation/simple_geolocation_provider.cc.orig 330--- a/components/drive/service/drive_api_service.cc
331+++ chromeos/geolocation/simple_geolocation_provider.cc 331+++ b/components/drive/service/drive_api_service.cc
332@@ -20,7 +20,7 @@ namespace chromeos { 332@@ -76,9 +76,9 @@ namespace drive {
333 namespace {
334
335 const char kDefaultGeolocationProviderUrl[] =
336- "https://www.googleapis.com/geolocation/v1/geolocate?";
337+ "trk:215:https://www.googleapis.com/geolocation/v1/geolocate?";
338
339 } // namespace
340
341--- components/cloud_devices/common/cloud_devices_urls.cc.orig
342+++ components/cloud_devices/common/cloud_devices_urls.cc
343@@ -13,14 +13,14 @@
344 namespace cloud_devices {
345
346 const char kCloudPrintAuthScope[] =
347- "https://www.googleapis.com/auth/cloudprint";
348+ "trk:197:https://www.googleapis.com/auth/cloudprint";
349
350 namespace {
351
352 // Url must not be matched by "urls" section of
353 // cloud_print_app/manifest.json. If it's matched, print driver dialog will
354 // open sign-in page in separate window.
355-const char kCloudPrintURL[] = "https://www.google.com/cloudprint";
356+const char kCloudPrintURL[] = "trk:201:https://www.google.com/cloudprint";
357
358 }
359
360--- components/drive/service/drive_api_service.cc.orig
361+++ components/drive/service/drive_api_service.cc
362@@ -75,9 +75,9 @@ namespace drive {
363 namespace { 333 namespace {
364 334
365 // OAuth2 scopes for Drive API. 335 // OAuth2 scopes for Drive API.
@@ -371,9 +341,9 @@ by default.
371 const char kDriveAppsScope[] = "https://www.googleapis.com/auth/drive.apps"; 341 const char kDriveAppsScope[] = "https://www.googleapis.com/auth/drive.apps";
372 342
373 // Mime type to create a directory. 343 // Mime type to create a directory.
374--- components/feedback/feedback_uploader.cc.orig 344--- a/components/feedback/feedback_uploader.cc
375+++ components/feedback/feedback_uploader.cc 345+++ b/components/feedback/feedback_uploader.cc
376@@ -27,7 +27,7 @@ constexpr base::FilePath::CharType kFeed 346@@ -38,7 +38,7 @@ constexpr base::FilePath::CharType kFeed
377 FILE_PATH_LITERAL("Feedback Reports"); 347 FILE_PATH_LITERAL("Feedback Reports");
378 348
379 constexpr char kFeedbackPostUrl[] = 349 constexpr char kFeedbackPostUrl[] =
@@ -382,9 +352,9 @@ by default.
382 352
383 constexpr char kProtoBufMimeType[] = "application/x-protobuf"; 353 constexpr char kProtoBufMimeType[] = "application/x-protobuf";
384 354
385--- components/google/core/common/google_util.cc.orig 355--- a/components/google/core/common/google_util.cc
386+++ components/google/core/common/google_util.cc 356+++ b/components/google/core/common/google_util.cc
387@@ -143,7 +143,7 @@ bool IsGoogleSearchSubdomainUrl(const GU 357@@ -141,7 +141,7 @@ bool IsGoogleSearchSubdomainUrl(const GU
388 358
389 // Global functions ----------------------------------------------------------- 359 // Global functions -----------------------------------------------------------
390 360
@@ -393,9 +363,9 @@ by default.
393 363
394 bool HasGoogleSearchQueryParam(base::StringPiece str) { 364 bool HasGoogleSearchQueryParam(base::StringPiece str) {
395 url::Component query(0, static_cast<int>(str.length())), key, value; 365 url::Component query(0, static_cast<int>(str.length())), key, value;
396--- components/history/core/browser/web_history_service.cc.orig 366--- a/components/history/core/browser/web_history_service.cc
397+++ components/history/core/browser/web_history_service.cc 367+++ b/components/history/core/browser/web_history_service.cc
398@@ -42,13 +42,13 @@ namespace history { 368@@ -45,13 +45,13 @@ namespace history {
399 namespace { 369 namespace {
400 370
401 const char kHistoryOAuthScope[] = 371 const char kHistoryOAuthScope[] =
@@ -412,8 +382,8 @@ by default.
412 382
413 const char kHistoryAudioHistoryUrl[] = 383 const char kHistoryAudioHistoryUrl[] =
414 "https://history.google.com/history/api/lookup?client=audio"; 384 "https://history.google.com/history/api/lookup?client=audio";
415--- components/metrics/url_constants.cc.orig 385--- a/components/metrics/url_constants.cc
416+++ components/metrics/url_constants.cc 386+++ b/components/metrics/url_constants.cc
417@@ -7,7 +7,7 @@ 387@@ -7,7 +7,7 @@
418 namespace metrics { 388 namespace metrics {
419 389
@@ -423,9 +393,9 @@ by default.
423 393
424 const char kNewMetricsServerUrlInsecure[] = 394 const char kNewMetricsServerUrlInsecure[] =
425 "http://clientservices.googleapis.com/uma/v2"; 395 "http://clientservices.googleapis.com/uma/v2";
426--- components/safe_browsing/content/browser/client_side_detection_service.cc.orig 396--- a/components/safe_browsing/content/browser/client_side_detection_service.cc
427+++ components/safe_browsing/content/browser/client_side_detection_service.cc 397+++ b/components/safe_browsing/content/browser/client_side_detection_service.cc
428@@ -62,7 +62,7 @@ const int ClientSideDetectionService::kN 398@@ -61,7 +61,7 @@ const int ClientSideDetectionService::kN
429 const int ClientSideDetectionService::kPositiveCacheIntervalMinutes = 30; 399 const int ClientSideDetectionService::kPositiveCacheIntervalMinutes = 30;
430 400
431 const char ClientSideDetectionService::kClientReportPhishingUrl[] = 401 const char ClientSideDetectionService::kClientReportPhishingUrl[] =
@@ -434,8 +404,8 @@ by default.
434 404
435 struct ClientSideDetectionService::ClientPhishingReportInfo { 405 struct ClientSideDetectionService::ClientPhishingReportInfo {
436 std::unique_ptr<network::SimpleURLLoader> loader; 406 std::unique_ptr<network::SimpleURLLoader> loader;
437--- components/safe_search_api/safe_search/safe_search_url_checker_client.cc.orig 407--- a/components/safe_search_api/safe_search/safe_search_url_checker_client.cc
438+++ components/safe_search_api/safe_search/safe_search_url_checker_client.cc 408+++ b/components/safe_search_api/safe_search/safe_search_url_checker_client.cc
439@@ -28,7 +28,7 @@ namespace safe_search_api { 409@@ -28,7 +28,7 @@ namespace safe_search_api {
440 namespace { 410 namespace {
441 411
@@ -445,8 +415,8 @@ by default.
445 const char kDataContentType[] = "application/x-www-form-urlencoded"; 415 const char kDataContentType[] = "application/x-www-form-urlencoded";
446 const char kDataFormat[] = "key=%s&urls=%s"; 416 const char kDataFormat[] = "key=%s&urls=%s";
447 417
448--- components/safe_search_api/stub_url_checker.cc.orig 418--- a/components/safe_search_api/stub_url_checker.cc
449+++ components/safe_search_api/stub_url_checker.cc 419+++ b/components/safe_search_api/stub_url_checker.cc
450@@ -21,7 +21,7 @@ namespace safe_search_api { 420@@ -21,7 +21,7 @@ namespace safe_search_api {
451 namespace { 421 namespace {
452 422
@@ -455,9 +425,9 @@ by default.
455+ "trk:238:https://safesearch.googleapis.com/v1:classify"; 425+ "trk:238:https://safesearch.googleapis.com/v1:classify";
456 426
457 std::string BuildResponse(bool is_porn) { 427 std::string BuildResponse(bool is_porn) {
458 base::DictionaryValue dict; 428 base::Value dict(base::Value::Type::DICTIONARY);
459--- components/translate/core/browser/translate_url_fetcher.cc.orig 429--- a/components/translate/core/browser/translate_url_fetcher.cc
460+++ components/translate/core/browser/translate_url_fetcher.cc 430+++ b/components/translate/core/browser/translate_url_fetcher.cc
461@@ -99,6 +99,7 @@ bool TranslateURLFetcher::Request(const 431@@ -99,6 +99,7 @@ bool TranslateURLFetcher::Request(const
462 if (!extra_request_header_.empty()) 432 if (!extra_request_header_.empty())
463 resource_request->headers.AddHeaderFromString(extra_request_header_); 433 resource_request->headers.AddHeaderFromString(extra_request_header_);
@@ -466,9 +436,9 @@ by default.
466 simple_loader_ = 436 simple_loader_ =
467 variations::CreateSimpleURLLoaderWithVariationsHeaderUnknownSignedIn( 437 variations::CreateSimpleURLLoaderWithVariationsHeaderUnknownSignedIn(
468 std::move(resource_request), 438 std::move(resource_request),
469--- components/translate/core/common/translate_util.cc.orig 439--- a/components/translate/core/common/translate_util.cc
470+++ components/translate/core/common/translate_util.cc 440+++ b/components/translate/core/common/translate_util.cc
471@@ -20,7 +20,7 @@ const char kDetectLanguageInSubFrames[] 441@@ -21,7 +21,7 @@ const char kDetectLanguageInSubFrames[]
472 442
473 } // namespace 443 } // namespace
474 444
@@ -477,8 +447,8 @@ by default.
477 447
478 const base::Feature kTranslateSubFrames{"TranslateSubFrames", 448 const base::Feature kTranslateSubFrames{"TranslateSubFrames",
479 base::FEATURE_DISABLED_BY_DEFAULT}; 449 base::FEATURE_DISABLED_BY_DEFAULT};
480--- components/variations/variations_url_constants.cc.orig 450--- a/components/variations/variations_url_constants.cc
481+++ components/variations/variations_url_constants.cc 451+++ b/components/variations/variations_url_constants.cc
482@@ -8,7 +8,7 @@ namespace variations { 452@@ -8,7 +8,7 @@ namespace variations {
483 453
484 // Default server of Variations seed info. 454 // Default server of Variations seed info.
@@ -488,8 +458,8 @@ by default.
488 458
489 const char kDefaultInsecureServerUrl[] = 459 const char kDefaultInsecureServerUrl[] =
490 "http://clientservices.googleapis.com/chrome-variations/seed"; 460 "http://clientservices.googleapis.com/chrome-variations/seed";
491--- content/browser/speech/speech_recognition_engine.cc.orig 461--- a/content/browser/speech/speech_recognition_engine.cc
492+++ content/browser/speech/speech_recognition_engine.cc 462+++ b/content/browser/speech/speech_recognition_engine.cc
493@@ -33,7 +33,7 @@ namespace content { 463@@ -33,7 +33,7 @@ namespace content {
494 namespace { 464 namespace {
495 465
@@ -499,9 +469,9 @@ by default.
499 const char kDownstreamUrl[] = "/down?"; 469 const char kDownstreamUrl[] = "/down?";
500 const char kUpstreamUrl[] = "/up?"; 470 const char kUpstreamUrl[] = "/up?";
501 471
502--- content/browser/webauth/authenticator_common.cc.orig 472--- a/content/browser/webauth/authenticator_common.cc
503+++ content/browser/webauth/authenticator_common.cc 473+++ b/content/browser/webauth/authenticator_common.cc
504@@ -88,9 +88,9 @@ enum class RequestExtension { 474@@ -92,9 +92,9 @@ enum class RequestExtension {
505 namespace { 475 namespace {
506 476
507 constexpr char kGstaticAppId[] = 477 constexpr char kGstaticAppId[] =
@@ -513,19 +483,19 @@ by default.
513 483
514 WebAuthenticationDelegate* GetWebAuthenticationDelegate() { 484 WebAuthenticationDelegate* GetWebAuthenticationDelegate() {
515 return GetContentClient()->browser()->GetWebAuthenticationDelegate(); 485 return GetContentClient()->browser()->GetWebAuthenticationDelegate();
516--- content/shell/browser/shell_browser_main_parts.cc.orig 486--- a/content/shell/browser/shell_browser_main_parts.cc
517+++ content/shell/browser/shell_browser_main_parts.cc 487+++ b/content/shell/browser/shell_browser_main_parts.cc
518@@ -96,7 +96,7 @@ GURL GetStartupURL() { 488@@ -86,7 +86,7 @@ GURL GetStartupURL() {
519 #else 489 #else
520 const base::CommandLine::StringVector& args = command_line->GetArgs(); 490 const base::CommandLine::StringVector& args = command_line->GetArgs();
521 if (args.empty()) 491 if (args.empty())
522- return GURL("https://www.google.com/"); 492- return GURL("https://www.google.com/");
523+ return GURL("trk:183:https://www.google.com/"); 493+ return GURL("trk:183:https://www.google.com/");
524 494
525 #if defined(OS_WIN) 495 #if BUILDFLAG(IS_WIN)
526 GURL url(base::WideToUTF16(args[0])); 496 GURL url(base::WideToUTF16(args[0]));
527--- extensions/common/extension_urls.cc.orig 497--- a/extensions/common/extension_urls.cc
528+++ extensions/common/extension_urls.cc 498+++ b/extensions/common/extension_urls.cc
529@@ -26,9 +26,9 @@ bool IsSourceFromAnExtension(const std:: 499@@ -26,9 +26,9 @@ bool IsSourceFromAnExtension(const std::
530 500
531 namespace extension_urls { 501 namespace extension_urls {
@@ -538,9 +508,9 @@ by default.
538 508
539 GURL GetWebstoreLaunchURL() { 509 GURL GetWebstoreLaunchURL() {
540 extensions::ExtensionsClient* client = extensions::ExtensionsClient::Get(); 510 extensions::ExtensionsClient* client = extensions::ExtensionsClient::Get();
541--- google_apis/gaia/gaia_constants.cc.orig 511--- a/google_apis/gaia/gaia_constants.cc
542+++ google_apis/gaia/gaia_constants.cc 512+++ b/google_apis/gaia/gaia_constants.cc
543@@ -25,133 +25,133 @@ const char kSyncService[] = "chromiumsyn 513@@ -25,149 +25,149 @@ const char kSyncService[] = "chromiumsyn
544 const char kRemotingService[] = "chromoting"; 514 const char kRemotingService[] = "chromoting";
545 515
546 // OAuth scopes. 516 // OAuth scopes.
@@ -565,11 +535,6 @@ by default.
565- "https://www.googleapis.com/auth/chromesync_playpen"; 535- "https://www.googleapis.com/auth/chromesync_playpen";
566+ "trk:073:https://www.googleapis.com/auth/chromesync_playpen"; 536+ "trk:073:https://www.googleapis.com/auth/chromesync_playpen";
567 537
568 // OAuth2 scope for access to Kid Management API.
569 const char kKidManagementOAuth2Scope[] =
570- "https://www.googleapis.com/auth/kid.management";
571+ "trk:074:https://www.googleapis.com/auth/kid.management";
572
573 // OAuth2 scope for parental consent logging for secondary account addition. 538 // OAuth2 scope for parental consent logging for secondary account addition.
574 const char kKidManagementPrivilegedOAuth2Scope[] = 539 const char kKidManagementPrivilegedOAuth2Scope[] =
575- "https://www.googleapis.com/auth/kid.management.privileged"; 540- "https://www.googleapis.com/auth/kid.management.privileged";
@@ -593,125 +558,150 @@ by default.
593- "https://www.googleapis.com/auth/userinfo.profile"; 558- "https://www.googleapis.com/auth/userinfo.profile";
594+ "trk:079:https://www.googleapis.com/auth/userinfo.profile"; 559+ "trk:079:https://www.googleapis.com/auth/userinfo.profile";
595 560
561 // OAuth2 scope for access to the parent approval widget.
562 const char kParentApprovalOAuth2Scope[] =
563- "https://www.googleapis.com/auth/kids.parentapproval";
564+ "trk:080:https://www.googleapis.com/auth/kids.parentapproval";
565
596 // OAuth2 scope for access to the people API (read-only). 566 // OAuth2 scope for access to the people API (read-only).
597 const char kPeopleApiReadOnlyOAuth2Scope[] = 567 const char kPeopleApiReadOnlyOAuth2Scope[] =
598- "https://www.googleapis.com/auth/peopleapi.readonly"; 568- "https://www.googleapis.com/auth/peopleapi.readonly";
599+ "trk:080:https://www.googleapis.com/auth/peopleapi.readonly"; 569+ "trk:081:https://www.googleapis.com/auth/peopleapi.readonly";
570
571 // OAuth2 scope for access to the programmatic challenge API (read-only).
572 const char kProgrammaticChallengeOAuth2Scope[] =
573- "https://www.googleapis.com/auth/accounts.programmaticchallenge";
574+ "trk:082:https://www.googleapis.com/auth/accounts.programmaticchallenge";
600 575
601 // OAuth2 scope for access to the Reauth flow. 576 // OAuth2 scope for access to the Reauth flow.
602 const char kAccountsReauthOAuth2Scope[] = 577 const char kAccountsReauthOAuth2Scope[] =
603- "https://www.googleapis.com/auth/accounts.reauth"; 578- "https://www.googleapis.com/auth/accounts.reauth";
604+ "trk:081:https://www.googleapis.com/auth/accounts.reauth"; 579+ "trk:083:https://www.googleapis.com/auth/accounts.reauth";
605 580
606 // OAuth2 scope for access to audit recording (ARI). 581 // OAuth2 scope for access to audit recording (ARI).
607 const char kAuditRecordingOAuth2Scope[] = 582 const char kAuditRecordingOAuth2Scope[] =
608- "https://www.googleapis.com/auth/auditrecording-pa"; 583- "https://www.googleapis.com/auth/auditrecording-pa";
609+ "trk:082:https://www.googleapis.com/auth/auditrecording-pa"; 584+ "trk:084:https://www.googleapis.com/auth/auditrecording-pa";
610 585
611 // OAuth2 scope for access to clear cut logs. 586 // OAuth2 scope for access to clear cut logs.
612-const char kClearCutOAuth2Scope[] = "https://www.googleapis.com/auth/cclog"; 587-const char kClearCutOAuth2Scope[] = "https://www.googleapis.com/auth/cclog";
613+const char kClearCutOAuth2Scope[] = "trk:083:https://www.googleapis.com/auth/cclog"; 588+const char kClearCutOAuth2Scope[] = "trk:085:https://www.googleapis.com/auth/cclog";
614 589
615 // OAuth2 scope for FCM, the Firebase Cloud Messaging service. 590 // OAuth2 scope for FCM, the Firebase Cloud Messaging service.
616 const char kFCMOAuthScope[] = 591 const char kFCMOAuthScope[] =
617- "https://www.googleapis.com/auth/firebase.messaging"; 592- "https://www.googleapis.com/auth/firebase.messaging";
618+ "trk:084:https://www.googleapis.com/auth/firebase.messaging"; 593+ "trk:086:https://www.googleapis.com/auth/firebase.messaging";
619 594
620 // OAuth2 scope for access to Tachyon api. 595 // OAuth2 scope for access to Tachyon api.
621-const char kTachyonOAuthScope[] = "https://www.googleapis.com/auth/tachyon"; 596-const char kTachyonOAuthScope[] = "https://www.googleapis.com/auth/tachyon";
622+const char kTachyonOAuthScope[] = "trk:085:https://www.googleapis.com/auth/tachyon"; 597+const char kTachyonOAuthScope[] = "trk:087:https://www.googleapis.com/auth/tachyon";
623 598
624 // OAuth2 scope for access to the Photos API. 599 // OAuth2 scope for access to the Photos API.
625-const char kPhotosOAuth2Scope[] = "https://www.googleapis.com/auth/photos"; 600-const char kPhotosOAuth2Scope[] = "https://www.googleapis.com/auth/photos";
626+const char kPhotosOAuth2Scope[] = "trk:086:https://www.googleapis.com/auth/photos"; 601+const char kPhotosOAuth2Scope[] = "trk:088:https://www.googleapis.com/auth/photos";
602
603 // OAuth2 scope for access to the SecureConnect API.
604 extern const char kSecureConnectOAuth2Scope[] =
605- "https://www.googleapis.com/auth/bce.secureconnect";
606+ "trk:074:https://www.googleapis.com/auth/bce.secureconnect";
627 607
628 // OAuth2 scope for access to Cast backdrop API. 608 // OAuth2 scope for access to Cast backdrop API.
629 const char kCastBackdropOAuth2Scope[] = 609 const char kCastBackdropOAuth2Scope[] =
630- "https://www.googleapis.com/auth/cast.backdrop"; 610- "https://www.googleapis.com/auth/cast.backdrop";
631+ "trk:087:https://www.googleapis.com/auth/cast.backdrop"; 611+ "trk:089:https://www.googleapis.com/auth/cast.backdrop";
632 612
633 // OAuth scope for access to Cloud Translation API. 613 // OAuth scope for access to Cloud Translation API.
634 const char kCloudTranslationOAuth2Scope[] = 614 const char kCloudTranslationOAuth2Scope[] =
635- "https://www.googleapis.com/auth/cloud-translation"; 615- "https://www.googleapis.com/auth/cloud-translation";
636+ "trk:088:https://www.googleapis.com/auth/cloud-translation"; 616+ "trk:090:https://www.googleapis.com/auth/cloud-translation";
637 617
638 // OAuth2 scope for access to passwords leak checking API. 618 // OAuth2 scope for access to passwords leak checking API.
639 const char kPasswordsLeakCheckOAuth2Scope[] = 619 const char kPasswordsLeakCheckOAuth2Scope[] =
640- "https://www.googleapis.com/auth/identity.passwords.leak.check"; 620- "https://www.googleapis.com/auth/identity.passwords.leak.check";
641+ "trk:089:https://www.googleapis.com/auth/identity.passwords.leak.check"; 621+ "trk:091:https://www.googleapis.com/auth/identity.passwords.leak.check";
642 622
643 // OAuth2 scope for access to Chrome safe browsing API. 623 // OAuth2 scope for access to Chrome safe browsing API.
644 const char kChromeSafeBrowsingOAuth2Scope[] = 624 const char kChromeSafeBrowsingOAuth2Scope[] =
645- "https://www.googleapis.com/auth/chrome-safe-browsing"; 625- "https://www.googleapis.com/auth/chrome-safe-browsing";
646+ "trk:090:https://www.googleapis.com/auth/chrome-safe-browsing"; 626+ "trk:092:https://www.googleapis.com/auth/chrome-safe-browsing";
647 627
648 // OAuth2 scope for access to kid permissions by URL. 628 // OAuth2 scope for access to kid permissions by URL.
649 const char kClassifyUrlKidPermissionOAuth2Scope[] = 629 const char kClassifyUrlKidPermissionOAuth2Scope[] =
650- "https://www.googleapis.com/auth/kid.permission"; 630- "https://www.googleapis.com/auth/kid.permission";
651+ "trk:091:https://www.googleapis.com/auth/kid.permission"; 631+ "trk:093:https://www.googleapis.com/auth/kid.permission";
652 const char kKidFamilyReadonlyOAuth2Scope[] = 632 const char kKidFamilyReadonlyOAuth2Scope[] =
653- "https://www.googleapis.com/auth/kid.family.readonly"; 633- "https://www.googleapis.com/auth/kid.family.readonly";
654+ "trk:092:https://www.googleapis.com/auth/kid.family.readonly"; 634+ "trk:094:https://www.googleapis.com/auth/kid.family.readonly";
655 635
656 // OAuth2 scope for access to payments. 636 // OAuth2 scope for access to payments.
657 const char kPaymentsOAuth2Scope[] = 637 const char kPaymentsOAuth2Scope[] =
658- "https://www.googleapis.com/auth/wallet.chrome"; 638- "https://www.googleapis.com/auth/wallet.chrome";
659+ "trk:093:https://www.googleapis.com/auth/wallet.chrome"; 639+ "trk:095:https://www.googleapis.com/auth/wallet.chrome";
660 640
661 const char kCryptAuthOAuth2Scope[] = 641 const char kCryptAuthOAuth2Scope[] =
662- "https://www.googleapis.com/auth/cryptauth"; 642- "https://www.googleapis.com/auth/cryptauth";
663+ "trk:094:https://www.googleapis.com/auth/cryptauth"; 643+ "trk:096:https://www.googleapis.com/auth/cryptauth";
664 644
665 // OAuth2 scope for access to Drive. 645 // OAuth2 scope for access to Drive.
666-const char kDriveOAuth2Scope[] = "https://www.googleapis.com/auth/drive"; 646-const char kDriveOAuth2Scope[] = "https://www.googleapis.com/auth/drive";
667+const char kDriveOAuth2Scope[] = "trk:095:https://www.googleapis.com/auth/drive"; 647+const char kDriveOAuth2Scope[] = "trk:097:https://www.googleapis.com/auth/drive";
668 648
669 // The scope required for an access token in order to query ItemSuggest. 649 // The scope required for an access token in order to query ItemSuggest.
670 const char kDriveReadOnlyOAuth2Scope[] = 650 const char kDriveReadOnlyOAuth2Scope[] =
671- "https://www.googleapis.com/auth/drive.readonly"; 651- "https://www.googleapis.com/auth/drive.readonly";
672+ "trk:096:https://www.googleapis.com/auth/drive.readonly"; 652+ "trk:098:https://www.googleapis.com/auth/drive.readonly";
673 653
674 // OAuth2 scope for access to Assistant SDK. 654 // OAuth2 scope for access to Assistant SDK.
675 const char kAssistantOAuth2Scope[] = 655 const char kAssistantOAuth2Scope[] =
676- "https://www.googleapis.com/auth/assistant-sdk-prototype"; 656- "https://www.googleapis.com/auth/assistant-sdk-prototype";
677+ "trk:097:https://www.googleapis.com/auth/assistant-sdk-prototype"; 657+ "trk:099:https://www.googleapis.com/auth/assistant-sdk-prototype";
678 658
679 // OAuth2 scope for access to nearby devices (fast pair) APIs. 659 // OAuth2 scope for access to nearby devices (fast pair) APIs.
680 const char kCloudPlatformProjectsOAuth2Scope[] = 660 const char kCloudPlatformProjectsOAuth2Scope[] =
681- "https://www.googleapis.com/auth/cloudplatformprojects"; 661- "https://www.googleapis.com/auth/cloudplatformprojects";
682+ "trk:098:https://www.googleapis.com/auth/cloudplatformprojects"; 662+ "trk:100:https://www.googleapis.com/auth/cloudplatformprojects";
683 663
684 // OAuth2 scope for access to nearby sharing. 664 // OAuth2 scope for access to nearby sharing.
685 const char kNearbyShareOAuth2Scope[] = 665 const char kNearbyShareOAuth2Scope[] =
686- "https://www.googleapis.com/auth/nearbysharing-pa"; 666- "https://www.googleapis.com/auth/nearbysharing-pa";
687+ "trk:099:https://www.googleapis.com/auth/nearbysharing-pa"; 667+ "trk:101:https://www.googleapis.com/auth/nearbysharing-pa";
688 668
689 // OAuth2 scopes for access to GCM account tracker. 669 // OAuth2 scopes for access to GCM account tracker.
690-const char kGCMGroupServerOAuth2Scope[] = "https://www.googleapis.com/auth/gcm"; 670-const char kGCMGroupServerOAuth2Scope[] = "https://www.googleapis.com/auth/gcm";
691+const char kGCMGroupServerOAuth2Scope[] = "trk:100:https://www.googleapis.com/auth/gcm"; 671+const char kGCMGroupServerOAuth2Scope[] = "trk:102:https://www.googleapis.com/auth/gcm";
692 const char kGCMCheckinServerOAuth2Scope[] = 672 const char kGCMCheckinServerOAuth2Scope[] =
693- "https://www.googleapis.com/auth/android_checkin"; 673- "https://www.googleapis.com/auth/android_checkin";
694+ "trk:101:https://www.googleapis.com/auth/android_checkin"; 674+ "trk:103:https://www.googleapis.com/auth/android_checkin";
695 675
696 // OAuth2 scope for access to readonly Chrome web store. 676 // OAuth2 scope for access to readonly Chrome web store.
697 const char kChromeWebstoreOAuth2Scope[] = 677 const char kChromeWebstoreOAuth2Scope[] =
698- "https://www.googleapis.com/auth/chromewebstore.readonly"; 678- "https://www.googleapis.com/auth/chromewebstore.readonly";
699+ "trk:102:https://www.googleapis.com/auth/chromewebstore.readonly"; 679+ "trk:104:https://www.googleapis.com/auth/chromewebstore.readonly";
700 680
701 // OAuth2 scope for access to Account Capabilities API. 681 // OAuth2 scope for access to Account Capabilities API.
702 const char kAccountCapabilitiesOAuth2Scope[] = 682 const char kAccountCapabilitiesOAuth2Scope[] =
703- "https://www.googleapis.com/auth/account.capabilities"; 683- "https://www.googleapis.com/auth/account.capabilities";
704+ "trk:103:https://www.googleapis.com/auth/account.capabilities"; 684+ "trk:105:https://www.googleapis.com/auth/account.capabilities";
705 685
706 // OAuth2 scope for support content API. 686 // OAuth2 scope for support content API.
707 const char kSupportContentOAuth2Scope[] = 687 const char kSupportContentOAuth2Scope[] =
708- "https://www.googleapis.com/auth/supportcontent"; 688- "https://www.googleapis.com/auth/supportcontent";
709+ "trk:104:https://www.googleapis.com/auth/supportcontent"; 689+ "trk:106:https://www.googleapis.com/auth/supportcontent";
710 690
711 // OAuth 2 scope for NTP Photos module API. 691 // OAuth 2 scope for NTP Photos module API.
712 const char kPhotosModuleOAuth2Scope[] = 692 const char kPhotosModuleOAuth2Scope[] =
713--- google_apis/gaia/gaia_urls.cc.orig 693- "https://www.googleapis.com/auth/photos.firstparty.readonly";
714+++ google_apis/gaia/gaia_urls.cc 694+ "trk:107:https://www.googleapis.com/auth/photos.firstparty.readonly";
695
696 // OAuth 2 scope for NTP Photos module image API.
697 const char kPhotosModuleImageOAuth2Scope[] =
698- "https://www.googleapis.com/auth/photos.image.readonly";
699+ "trk:108:https://www.googleapis.com/auth/photos.image.readonly";
700
701 // Used to mint uber auth tokens when needed.
702 const char kGaiaSid[] = "sid";
703--- a/google_apis/gaia/gaia_urls.cc
704+++ b/google_apis/gaia/gaia_urls.cc
715@@ -24,6 +24,7 @@ 705@@ -24,6 +24,7 @@
716 namespace { 706 namespace {
717 707
@@ -720,9 +710,9 @@ by default.
720 const char kDefaultGoogleUrl[] = "http://google.com"; 710 const char kDefaultGoogleUrl[] = "http://google.com";
721 const char kDefaultGaiaUrl[] = "https://accounts.google.com"; 711 const char kDefaultGaiaUrl[] = "https://accounts.google.com";
722 const char kDefaultGoogleApisBaseUrl[] = "https://www.googleapis.com"; 712 const char kDefaultGoogleApisBaseUrl[] = "https://www.googleapis.com";
723--- google_apis/gcm/engine/gservices_settings.cc.orig 713--- a/google_apis/gcm/engine/gservices_settings.cc
724+++ google_apis/gcm/engine/gservices_settings.cc 714+++ b/google_apis/gcm/engine/gservices_settings.cc
725@@ -30,18 +30,18 @@ const char kRegistrationURLKey[] = "gcm_ 715@@ -29,18 +29,18 @@ const char kRegistrationURLKey[] = "gcm_
726 716
727 const int64_t kDefaultCheckinInterval = 2 * 24 * 60 * 60; // seconds = 2 days. 717 const int64_t kDefaultCheckinInterval = 2 * 24 * 60 * 60; // seconds = 2 days.
728 const int64_t kMinimumCheckinInterval = 12 * 60 * 60; // seconds = 12 hours. 718 const int64_t kMinimumCheckinInterval = 12 * 60 * 60; // seconds = 12 hours.
@@ -744,19 +734,8 @@ by default.
744 const int kMaxSecurePort = 65535; 734 const int kMaxSecurePort = 65535;
745 735
746 std::string MakeMCSEndpoint(const std::string& mcs_hostname, int port) { 736 std::string MakeMCSEndpoint(const std::string& mcs_hostname, int port) {
747--- jingle/notifier/base/gaia_token_pre_xmpp_auth.cc.orig 737--- a/remoting/base/breakpad_mac.mm
748+++ jingle/notifier/base/gaia_token_pre_xmpp_auth.cc 738+++ b/remoting/base/breakpad_mac.mm
749@@ -36,7 +36,7 @@ class GaiaCookieMechanism : public jingl
750 // These attributes are necessary for working with non-gmail gaia
751 // accounts.
752 const std::string NS_GOOGLE_AUTH_PROTOCOL(
753- "http://www.google.com/talk/protocol/auth");
754+ "trk:179:http://www.google.com/talk/protocol/auth");
755 const jingle_xmpp::QName QN_GOOGLE_ALLOW_GENERATED_JID_XMPP_LOGIN(
756 NS_GOOGLE_AUTH_PROTOCOL, "allow-generated-jid");
757 const jingle_xmpp::QName QN_GOOGLE_AUTH_CLIENT_USES_FULL_BIND_RESULT(
758--- remoting/base/breakpad_mac.mm.orig
759+++ remoting/base/breakpad_mac.mm
760@@ -50,7 +50,7 @@ void InitializeCrashReporting() { 739@@ -50,7 +50,7 @@ void InitializeCrashReporting() {
761 breakpad_config[@BREAKPAD_REPORT_INTERVAL] = @"21600"; 740 breakpad_config[@BREAKPAD_REPORT_INTERVAL] = @"21600";
762 } 741 }
@@ -766,8 +745,8 @@ by default.
766 } 745 }
767 746
768 if (!BreakpadCreate(breakpad_config)) { 747 if (!BreakpadCreate(breakpad_config)) {
769--- remoting/protocol/jingle_messages.cc.orig 748--- a/remoting/protocol/jingle_messages.cc
770+++ remoting/protocol/jingle_messages.cc 749+++ b/remoting/protocol/jingle_messages.cc
771@@ -27,7 +27,7 @@ const char kJabberNamespace[] = "jabber: 750@@ -27,7 +27,7 @@ const char kJabberNamespace[] = "jabber:
772 const char kJingleNamespace[] = "urn:xmpp:jingle:1"; 751 const char kJingleNamespace[] = "urn:xmpp:jingle:1";
773 752
@@ -777,8 +756,8 @@ by default.
777 756
778 const char kWebrtcTransportNamespace[] = "google:remoting:webrtc"; 757 const char kWebrtcTransportNamespace[] = "google:remoting:webrtc";
779 758
780--- rlz/lib/lib_values.cc.orig 759--- a/rlz/lib/lib_values.cc
781+++ rlz/lib/lib_values.cc 760+++ b/rlz/lib/lib_values.cc
782@@ -40,7 +40,7 @@ const char kSetDccResponseVariable[] = " 761@@ -40,7 +40,7 @@ const char kSetDccResponseVariable[] = "
783 // 762 //
784 763
@@ -788,37 +767,8 @@ by default.
788 const int kFinancialPort = 443; 767 const int kFinancialPort = 443;
789 768
790 // Ping times in 100-nanosecond intervals. 769 // Ping times in 100-nanosecond intervals.
791--- third_party/libjingle_xmpp/xmpp/constants.cc.orig 770--- a/ui/accessibility/extensions/chromevoxclassic/chromevox/background/prefs.js
792+++ third_party/libjingle_xmpp/xmpp/constants.cc 771+++ b/ui/accessibility/extensions/chromevoxclassic/chromevox/background/prefs.js
793@@ -194,7 +194,7 @@ const StaticQName QN_SASL_TEMPORARY_AUTH
794
795 // These are non-standard.
796 const char NS_GOOGLE_AUTH_PROTOCOL[] =
797- "http://www.google.com/talk/protocol/auth";
798+ "trk:236:http://www.google.com/talk/protocol/auth";
799 const StaticQName QN_GOOGLE_AUTH_CLIENT_USES_FULL_BIND_RESULT =
800 { NS_GOOGLE_AUTH_PROTOCOL, "client-uses-full-bind-result" };
801 const StaticQName QN_GOOGLE_ALLOW_NON_GOOGLE_ID_XMPP_LOGIN =
802@@ -338,7 +338,7 @@ const char STR_SHOW_DND[] = "dnd";
803 const char STR_SHOW_XA[] = "xa";
804 const char STR_SHOW_OFFLINE[] = "offline";
805
806-const char NS_GOOGLE_PSTN_CONFERENCE[] = "http://www.google.com/pstn-conference";
807+const char NS_GOOGLE_PSTN_CONFERENCE[] = "trk:237:http://www.google.com/pstn-conference";
808 const StaticQName QN_GOOGLE_PSTN_CONFERENCE_STATUS = { NS_GOOGLE_PSTN_CONFERENCE, "status" };
809 const StaticQName QN_ATTR_STATUS = { STR_EMPTY, "status" };
810
811@@ -433,7 +433,7 @@ const StaticQName QN_MUC_ROLE = { NS_MUC
812 const char STR_AFFILIATION_NONE[] = "none";
813 const char STR_ROLE_PARTICIPANT[] = "participant";
814
815-const char NS_GOOGLE_SESSION[] = "http://www.google.com/session";
816+const char NS_GOOGLE_SESSION[] = "trk:238:http://www.google.com/session";
817 const StaticQName QN_GOOGLE_CIRCLE_ID = { STR_EMPTY, "google-circle-id" };
818 const StaticQName QN_GOOGLE_USER_ID = { STR_EMPTY, "google-user-id" };
819 const StaticQName QN_GOOGLE_SESSION_BLOCKED = { NS_GOOGLE_SESSION, "blocked" };
820--- ui/accessibility/extensions/chromevoxclassic/chromevox/background/prefs.js.orig
821+++ ui/accessibility/extensions/chromevoxclassic/chromevox/background/prefs.js
822@@ -72,9 +72,9 @@ cvox.ChromeVoxPrefs.DEFAULT_PREFS = { 772@@ -72,9 +72,9 @@ cvox.ChromeVoxPrefs.DEFAULT_PREFS = {
823 'outputContextFirst': false, 773 'outputContextFirst': false,
824 'position': '{}', 774 'position': '{}',
@@ -831,8 +781,8 @@ by default.
831 'sticky': false, 781 'sticky': false,
832 'typingEcho': 0, 782 'typingEcho': 0,
833 'useIBeamCursor': cvox.ChromeVox.isMac, 783 'useIBeamCursor': cvox.ChromeVox.isMac,
834--- ui/accessibility/extensions/chromevoxclassic/host/chrome/host.js.orig 784--- a/ui/accessibility/extensions/chromevoxclassic/host/chrome/host.js
835+++ ui/accessibility/extensions/chromevoxclassic/host/chrome/host.js 785+++ b/ui/accessibility/extensions/chromevoxclassic/host/chrome/host.js
836@@ -96,9 +96,9 @@ cvox.ChromeHost.prototype.init = functio 786@@ -96,9 +96,9 @@ cvox.ChromeHost.prototype.init = functio
837 (!cvox.ApiImplementation.siteSpecificScriptLoader || 787 (!cvox.ApiImplementation.siteSpecificScriptLoader ||
838 !cvox.ApiImplementation.siteSpecificScriptBase); 788 !cvox.ApiImplementation.siteSpecificScriptBase);
@@ -845,8 +795,8 @@ by default.
845 if (apiPrefsChanged) { 795 if (apiPrefsChanged) {
846 var searchInit = prefs['siteSpecificEnhancements'] === 'true' ? 796 var searchInit = prefs['siteSpecificEnhancements'] === 'true' ?
847 cvox.SearchLoader.init : 797 cvox.SearchLoader.init :
848--- ui/views/examples/webview_example.cc.orig 798--- a/ui/views/examples/webview_example.cc
849+++ ui/views/examples/webview_example.cc 799+++ b/ui/views/examples/webview_example.cc
850@@ -29,7 +29,7 @@ void WebViewExample::CreateExampleView(V 800@@ -29,7 +29,7 @@ void WebViewExample::CreateExampleView(V
851 webview_->GetWebContents()->SetDelegate(this); 801 webview_->GetWebContents()->SetDelegate(this);
852 container->SetLayoutManager(std::make_unique<FillLayout>()); 802 container->SetLayoutManager(std::make_unique<FillLayout>());
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..4a81a5f 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).
14 .../security_interstitials/core/safe_browsing_loud_error_ui.cc | 1 + 14 .../security_interstitials/core/safe_browsing_loud_error_ui.cc | 1 +
15 5 files changed, 7 insertions(+), 4 deletions(-) 15 5 files changed, 7 insertions(+), 4 deletions(-)
16 16
17--- chrome/browser/safe_browsing/chrome_safe_browsing_blocking_page_factory.cc.orig 17--- a/chrome/browser/safe_browsing/chrome_safe_browsing_blocking_page_factory.cc
18+++ chrome/browser/safe_browsing/chrome_safe_browsing_blocking_page_factory.cc 18+++ b/chrome/browser/safe_browsing/chrome_safe_browsing_blocking_page_factory.cc
19@@ -35,8 +35,7 @@ ChromeSafeBrowsingBlockingPageFactory::C 19@@ -36,8 +36,7 @@ ChromeSafeBrowsingBlockingPageFactory::C
20 Profile::FromBrowserContext(web_contents->GetBrowserContext()); 20 Profile::FromBrowserContext(web_contents->GetBrowserContext());
21 // Create appropriate display options for this blocking page. 21 // Create appropriate display options for this blocking page.
22 PrefService* prefs = profile->GetPrefs(); 22 PrefService* prefs = profile->GetPrefs();
@@ -26,8 +26,8 @@ the URL so we get notified if this happens again in the future).
26 bool is_proceed_anyway_disabled = 26 bool is_proceed_anyway_disabled =
27 prefs->GetBoolean(prefs::kSafeBrowsingProceedAnywayDisabled); 27 prefs->GetBoolean(prefs::kSafeBrowsingProceedAnywayDisabled);
28 28
29--- chrome/browser/safe_browsing/incident_reporting/incident_report_uploader_impl.cc.orig 29--- a/chrome/browser/safe_browsing/incident_reporting/incident_report_uploader_impl.cc
30+++ chrome/browser/safe_browsing/incident_reporting/incident_report_uploader_impl.cc 30+++ b/chrome/browser/safe_browsing/incident_reporting/incident_report_uploader_impl.cc
31@@ -27,7 +27,7 @@ namespace safe_browsing { 31@@ -27,7 +27,7 @@ namespace safe_browsing {
32 namespace { 32 namespace {
33 33
@@ -37,9 +37,9 @@ the URL so we get notified if this happens again in the future).
37 37
38 constexpr net::NetworkTrafficAnnotationTag 38 constexpr net::NetworkTrafficAnnotationTag
39 kSafeBrowsingIncidentTrafficAnnotation = 39 kSafeBrowsingIncidentTrafficAnnotation =
40--- chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc.orig 40--- a/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc
41+++ chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc 41+++ b/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc
42@@ -308,11 +308,14 @@ IncidentReportingService::UploadContext: 42@@ -306,11 +306,14 @@ IncidentReportingService::UploadContext:
43 43
44 // static 44 // static
45 bool IncidentReportingService::IsEnabledForProfile(Profile* profile) { 45 bool IncidentReportingService::IsEnabledForProfile(Profile* profile) {
@@ -54,9 +54,9 @@ the URL so we get notified if this happens again in the future).
54 } 54 }
55 55
56 IncidentReportingService::IncidentReportingService( 56 IncidentReportingService::IncidentReportingService(
57--- chrome/browser/safe_browsing/safe_browsing_service.cc.orig 57--- a/chrome/browser/safe_browsing/safe_browsing_service.cc
58+++ chrome/browser/safe_browsing/safe_browsing_service.cc 58+++ b/chrome/browser/safe_browsing/safe_browsing_service.cc
59@@ -286,7 +286,7 @@ SafeBrowsingUIManager* SafeBrowsingServi 59@@ -278,7 +278,7 @@ SafeBrowsingUIManager* SafeBrowsingServi
60 } 60 }
61 61
62 void SafeBrowsingService::RegisterAllDelayedAnalysis() { 62 void SafeBrowsingService::RegisterAllDelayedAnalysis() {
@@ -65,8 +65,8 @@ the URL so we get notified if this happens again in the future).
65 RegisterBinaryIntegrityAnalysis(); 65 RegisterBinaryIntegrityAnalysis();
66 #endif 66 #endif
67 } 67 }
68--- components/security_interstitials/core/safe_browsing_loud_error_ui.cc.orig 68--- a/components/security_interstitials/core/safe_browsing_loud_error_ui.cc
69+++ components/security_interstitials/core/safe_browsing_loud_error_ui.cc 69+++ b/components/security_interstitials/core/safe_browsing_loud_error_ui.cc
70@@ -25,11 +25,11 @@ namespace { 70@@ -25,11 +25,11 @@ namespace {
71 // For malware interstitial pages, we link the problematic URL to Google's 71 // For malware interstitial pages, we link the problematic URL to Google's
72 // diagnostic page. 72 // 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..e6ceb63 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).
11 components/safe_browsing/content/browser/client_side_detection_service.cc | 5 +++++ 11 components/safe_browsing/content/browser/client_side_detection_service.cc | 5 +++++
12 1 file changed, 5 insertions(+) 12 1 file changed, 5 insertions(+)
13 13
14--- components/safe_browsing/content/browser/client_side_detection_service.cc.orig 14--- a/components/safe_browsing/content/browser/client_side_detection_service.cc
15+++ components/safe_browsing/content/browser/client_side_detection_service.cc 15+++ b/components/safe_browsing/content/browser/client_side_detection_service.cc
16@@ -209,6 +209,10 @@ void ClientSideDetectionService::StartCl 16@@ -216,6 +216,10 @@ void ClientSideDetectionService::StartCl
17 return; 17 return;
18 } 18 }
19 19
@@ -24,7 +24,7 @@ This prevents trk:148 (phishing) and trk:149 (malware).
24 // Fill in metadata about which model we used. 24 // Fill in metadata about which model we used.
25 *request->mutable_population() = delegate_->GetUserPopulation(); 25 *request->mutable_population() = delegate_->GetUserPopulation();
26 26
27@@ -288,6 +292,7 @@ void ClientSideDetectionService::StartCl 27@@ -295,6 +299,7 @@ void ClientSideDetectionService::StartCl
28 base::BindOnce(&WebUIInfoSingleton::AddToClientPhishingRequestsSent, 28 base::BindOnce(&WebUIInfoSingleton::AddToClientPhishingRequestsSent,
29 base::Unretained(WebUIInfoSingleton::GetInstance()), 29 base::Unretained(WebUIInfoSingleton::GetInstance()),
30 std::move(request), access_token)); 30 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..1fb55bb 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 @@
1## Prevent request attempts 1## Prevent request attempts
2# chrome://discards/ attempts to use d3 to display the graph 2# chrome://discards/ attempts to use d3 to display the graph
3--- chrome/browser/new_tab_page/one_google_bar/one_google_bar_loader_impl.cc.orig 3--- a/chrome/browser/new_tab_page/one_google_bar/one_google_bar_loader_impl.cc
4+++ chrome/browser/new_tab_page/one_google_bar/one_google_bar_loader_impl.cc 4+++ b/chrome/browser/new_tab_page/one_google_bar/one_google_bar_loader_impl.cc
5@@ -286,6 +286,7 @@ OneGoogleBarLoaderImpl::OneGoogleBarLoad 5@@ -286,6 +286,7 @@ OneGoogleBarLoaderImpl::OneGoogleBarLoad
6 OneGoogleBarLoaderImpl::~OneGoogleBarLoaderImpl() = default; 6 OneGoogleBarLoaderImpl::~OneGoogleBarLoaderImpl() = default;
7 7
@@ -10,9 +10,9 @@
10 callbacks_.push_back(std::move(callback)); 10 callbacks_.push_back(std::move(callback));
11 11
12 // Note: If there is an ongoing request, abandon it. It's possible that 12 // Note: If there is an ongoing request, abandon it. It's possible that
13--- chrome/browser/new_tab_page/promos/promo_service.cc.orig 13--- a/chrome/browser/new_tab_page/promos/promo_service.cc
14+++ chrome/browser/new_tab_page/promos/promo_service.cc 14+++ b/chrome/browser/new_tab_page/promos/promo_service.cc
15@@ -138,6 +138,7 @@ PromoService::PromoService( 15@@ -139,6 +139,7 @@ PromoService::PromoService(
16 PromoService::~PromoService() = default; 16 PromoService::~PromoService() = default;
17 17
18 void PromoService::Refresh() { 18 void PromoService::Refresh() {
@@ -20,8 +20,8 @@
20 net::NetworkTrafficAnnotationTag traffic_annotation = 20 net::NetworkTrafficAnnotationTag traffic_annotation =
21 net::DefineNetworkTrafficAnnotation("promo_service", R"( 21 net::DefineNetworkTrafficAnnotation("promo_service", R"(
22 semantics { 22 semantics {
23--- chrome/browser/resources/discards/graph_doc_template.html.orig 23--- a/chrome/browser/resources/discards/graph_doc_template.html
24+++ chrome/browser/resources/discards/graph_doc_template.html 24+++ b/chrome/browser/resources/discards/graph_doc_template.html
25@@ -78,10 +78,6 @@ URL. As result, this document needs to b 25@@ -78,10 +78,6 @@ URL. As result, this document needs to b
26 } 26 }
27 27
@@ -33,9 +33,9 @@
33 <script type="application/javascript"> 33 <script type="application/javascript">
34 ${javascript_file} 34 ${javascript_file}
35 </script> 35 </script>
36--- chrome/browser/search/background/ntp_background_service.cc.orig 36--- a/chrome/browser/search/background/ntp_background_service.cc
37+++ chrome/browser/search/background/ntp_background_service.cc 37+++ b/chrome/browser/search/background/ntp_background_service.cc
38@@ -83,6 +83,7 @@ void NtpBackgroundService::Shutdown() { 38@@ -84,6 +84,7 @@ void NtpBackgroundService::Shutdown() {
39 } 39 }
40 40
41 void NtpBackgroundService::FetchCollectionInfo() { 41 void NtpBackgroundService::FetchCollectionInfo() {
@@ -43,8 +43,8 @@
43 if (collections_loader_ != nullptr) 43 if (collections_loader_ != nullptr)
44 return; 44 return;
45 collection_error_info_.ClearError(); 45 collection_error_info_.ClearError();
46--- chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc.orig 46--- a/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
47+++ chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc 47+++ b/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
48@@ -286,6 +286,7 @@ GURL SpellcheckHunspellDictionary::GetDi 48@@ -286,6 +286,7 @@ GURL SpellcheckHunspellDictionary::GetDi
49 } 49 }
50 50
@@ -53,8 +53,8 @@
53 DCHECK_CURRENTLY_ON(BrowserThread::UI); 53 DCHECK_CURRENTLY_ON(BrowserThread::UI);
54 DCHECK(browser_context_); 54 DCHECK(browser_context_);
55 55
56--- components/assist_ranker/ranker_url_fetcher.cc.orig 56--- a/components/assist_ranker/ranker_url_fetcher.cc
57+++ components/assist_ranker/ranker_url_fetcher.cc 57+++ b/components/assist_ranker/ranker_url_fetcher.cc
58@@ -31,6 +31,7 @@ bool RankerURLFetcher::Request( 58@@ -31,6 +31,7 @@ bool RankerURLFetcher::Request(
59 const GURL& url, 59 const GURL& url,
60 RankerURLFetcher::Callback callback, 60 RankerURLFetcher::Callback callback,
@@ -63,11 +63,11 @@
63 // This function is not supposed to be called if the previous operation is not 63 // This function is not supposed to be called if the previous operation is not
64 // finished. 64 // finished.
65 if (state_ == REQUESTING) { 65 if (state_ == REQUESTING) {
66--- components/update_client/update_checker.cc.orig 66--- a/components/update_client/update_checker.cc
67+++ components/update_client/update_checker.cc 67+++ b/components/update_client/update_checker.cc
68@@ -129,6 +129,7 @@ void UpdateCheckerImpl::CheckForUpdates( 68@@ -108,6 +108,7 @@ void UpdateCheckerImpl::CheckForUpdates(
69 const IdToComponentPtrMap& components,
69 const base::flat_map<std::string, std::string>& additional_attributes, 70 const base::flat_map<std::string, std::string>& additional_attributes,
70 bool enabled_component_updates,
71 UpdateCheckCallback update_check_callback) { 71 UpdateCheckCallback update_check_callback) {
72+ return; 72+ return;
73 DCHECK(thread_checker_.CalledOnValidThread()); 73 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..f8e7844 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 @@
1# Block all connection requests with 'qjz9zk' in the domain name or with a 'trk:' scheme. 1# Block all connection requests with 'qjz9zk' in the domain name or with a 'trk:' scheme.
2# This patch is based on Iridium's 'net: add "trk:" scheme and help identify URLs being retrieved' 2# This patch is based on Iridium's 'net: add "trk:" scheme and help identify URLs being retrieved'
3 3
4--- chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.cc.orig 4--- a/chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.cc
5+++ chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.cc 5+++ b/chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.cc
6@@ -56,6 +56,7 @@ ChromeAutocompleteSchemeClassifier::GetI 6@@ -58,6 +58,7 @@ ChromeAutocompleteSchemeClassifier::GetI
7 if (base::IsStringASCII(scheme) && 7 if (base::IsStringASCII(scheme) &&
8 (ProfileIOData::IsHandledProtocol(scheme) || 8 (ProfileIOData::IsHandledProtocol(scheme) ||
9 base::LowerCaseEqualsASCII(scheme, content::kViewSourceScheme) || 9 base::LowerCaseEqualsASCII(scheme, content::kViewSourceScheme) ||
@@ -11,8 +11,8 @@
11 base::LowerCaseEqualsASCII(scheme, url::kJavaScriptScheme) || 11 base::LowerCaseEqualsASCII(scheme, url::kJavaScriptScheme) ||
12 base::LowerCaseEqualsASCII(scheme, url::kDataScheme))) { 12 base::LowerCaseEqualsASCII(scheme, url::kDataScheme))) {
13 return metrics::OmniboxInputType::URL; 13 return metrics::OmniboxInputType::URL;
14--- chrome/browser/history/history_utils.cc.orig 14--- a/chrome/browser/history/history_utils.cc
15+++ chrome/browser/history/history_utils.cc 15+++ b/chrome/browser/history/history_utils.cc
16@@ -21,6 +21,7 @@ bool CanAddURLToHistory(const GURL& url) 16@@ -21,6 +21,7 @@ bool CanAddURLToHistory(const GURL& url)
17 url.SchemeIs(content::kChromeDevToolsScheme) || 17 url.SchemeIs(content::kChromeDevToolsScheme) ||
18 url.SchemeIs(content::kChromeUIScheme) || 18 url.SchemeIs(content::kChromeUIScheme) ||
@@ -21,21 +21,21 @@
21 url.SchemeIs(chrome::kChromeNativeScheme) || 21 url.SchemeIs(chrome::kChromeNativeScheme) ||
22 url.SchemeIs(chrome::kChromeSearchScheme) || 22 url.SchemeIs(chrome::kChromeSearchScheme) ||
23 url.SchemeIs(dom_distiller::kDomDistillerScheme)) 23 url.SchemeIs(dom_distiller::kDomDistillerScheme))
24--- chrome/browser/ui/singleton_tabs.cc.orig 24--- a/chrome/browser/ui/singleton_tabs.cc
25+++ chrome/browser/ui/singleton_tabs.cc 25+++ b/chrome/browser/ui/singleton_tabs.cc
26@@ -99,7 +99,8 @@ int GetIndexOfExistingTab(Browser* brows 26@@ -102,7 +102,8 @@ int GetIndexOfExistingTab(Browser* brows
27 27 // RewriteURLIfNecessary removes the "view-source:" scheme which could lead
28 // Skip view-source tabs. This is needed because RewriteURLIfNecessary 28 // to incorrect matching, so ensure that the target and the candidate are
29 // removes the "view-source:" scheme which leads to incorrect matching. 29 // either both view-source:, or neither is.
30- if (tab_url.SchemeIs(content::kViewSourceScheme)) 30- if (tab_url.SchemeIs(content::kViewSourceScheme) != target_is_view_source) {
31+ if (tab_url.SchemeIs(content::kViewSourceScheme) || 31+ if (tab_url.SchemeIs(content::kViewSourceScheme) != target_is_view_source ||
32+ tab_url.SchemeIs(url::kTraceScheme)) 32+ tab_url.SchemeIs(url::kTraceScheme)) {
33 continue; 33 continue;
34 }
34 35
35 GURL rewritten_tab_url = tab_url; 36--- a/components/omnibox/browser/autocomplete_input.cc
36--- components/omnibox/browser/autocomplete_input.cc.orig 37+++ b/components/omnibox/browser/autocomplete_input.cc
37+++ components/omnibox/browser/autocomplete_input.cc 38@@ -560,7 +560,8 @@ void AutocompleteInput::ParseForEmphasiz
38@@ -533,7 +533,8 @@ void AutocompleteInput::ParseForEmphasiz
39 // For the view-source and blob schemes, we should emphasize the host of the 39 // For the view-source and blob schemes, we should emphasize the host of the
40 // URL qualified by the view-source or blob prefix. 40 // URL qualified by the view-source or blob prefix.
41 if ((base::LowerCaseEqualsASCII(scheme_str, kViewSourceScheme) || 41 if ((base::LowerCaseEqualsASCII(scheme_str, kViewSourceScheme) ||
@@ -45,8 +45,8 @@
45 (static_cast<int>(text.length()) > after_scheme_and_colon)) { 45 (static_cast<int>(text.length()) > after_scheme_and_colon)) {
46 // Obtain the URL prefixed by view-source or blob and parse it. 46 // Obtain the URL prefixed by view-source or blob and parse it.
47 std::u16string real_url(text.substr(after_scheme_and_colon)); 47 std::u16string real_url(text.substr(after_scheme_and_colon));
48--- components/url_formatter/url_fixer.cc.orig 48--- a/components/url_formatter/url_fixer.cc
49+++ components/url_formatter/url_fixer.cc 49+++ b/components/url_formatter/url_fixer.cc
50@@ -562,6 +562,10 @@ GURL FixupURL(const std::string& text, c 50@@ -562,6 +562,10 @@ GURL FixupURL(const std::string& text, c
51 } 51 }
52 } 52 }
@@ -58,19 +58,19 @@
58 // We handle the file scheme separately. 58 // We handle the file scheme separately.
59 if (scheme == url::kFileScheme) 59 if (scheme == url::kFileScheme)
60 return GURL(parts.scheme.is_valid() ? text : FixupPath(text)); 60 return GURL(parts.scheme.is_valid() ? text : FixupPath(text));
61--- content/browser/child_process_security_policy_impl.cc.orig 61--- a/content/browser/child_process_security_policy_impl.cc
62+++ content/browser/child_process_security_policy_impl.cc 62+++ b/content/browser/child_process_security_policy_impl.cc
63@@ -861,6 +861,7 @@ ChildProcessSecurityPolicyImpl::ChildPro 63@@ -735,6 +735,7 @@ ChildProcessSecurityPolicyImpl::ChildPro
64 RegisterWebSafeScheme(url::kWssScheme);
64 #endif // BUILDFLAG(ENABLE_WEBSOCKETS) 65 #endif // BUILDFLAG(ENABLE_WEBSOCKETS)
65 RegisterWebSafeScheme(url::kFtpScheme);
66 RegisterWebSafeScheme(url::kDataScheme); 66 RegisterWebSafeScheme(url::kDataScheme);
67+ RegisterWebSafeScheme(url::kTraceScheme); 67+ RegisterWebSafeScheme(url::kTraceScheme);
68 RegisterWebSafeScheme("feed");
69 68
70 // TODO(nick): https://crbug.com/651534 blob: and filesystem: schemes embed 69 // TODO(nick): https://crbug.com/651534 blob: and filesystem: schemes embed
71--- net/BUILD.gn.orig 70 // other origins, so we should not treat them as web safe. Remove callers of
72+++ net/BUILD.gn 71--- a/net/BUILD.gn
73@@ -1010,6 +1010,8 @@ component("net") { 72+++ b/net/BUILD.gn
73@@ -1004,6 +1004,8 @@ component("net") {
74 "url_request/report_sender.h", 74 "url_request/report_sender.h",
75 "url_request/static_http_user_agent_settings.cc", 75 "url_request/static_http_user_agent_settings.cc",
76 "url_request/static_http_user_agent_settings.h", 76 "url_request/static_http_user_agent_settings.h",
@@ -80,7 +80,7 @@
80 "url_request/url_fetcher.h", 80 "url_request/url_fetcher.h",
81 "url_request/url_fetcher_core.cc", 81 "url_request/url_fetcher_core.cc",
82--- /dev/null 82--- /dev/null
83+++ net/url_request/trk_protocol_handler.cc 83+++ b/net/url_request/trk_protocol_handler.cc
84@@ -0,0 +1,25 @@ 84@@ -0,0 +1,25 @@
85+// Copyright (c) 2018 The ungoogled-chromium Authors. All rights reserved. 85+// Copyright (c) 2018 The ungoogled-chromium Authors. All rights reserved.
86+// Use of this source code is governed by a BSD-style license that can be 86+// Use of this source code is governed by a BSD-style license that can be
@@ -108,8 +108,8 @@
108+ 108+
109+} // namespace net 109+} // namespace net
110--- /dev/null 110--- /dev/null
111+++ net/url_request/trk_protocol_handler.h 111+++ b/net/url_request/trk_protocol_handler.h
112@@ -0,0 +1,32 @@ 112@@ -0,0 +1,30 @@
113+// Copyright (c) 2018 The ungoogled-chromium Authors. All rights reserved. 113+// Copyright (c) 2018 The ungoogled-chromium Authors. All rights reserved.
114+// Use of this source code is governed by a BSD-style license that can be 114+// Use of this source code is governed by a BSD-style license that can be
115+// found in the LICENSE file. 115+// found in the LICENSE file.
@@ -118,7 +118,6 @@
118+#define NET_URL_REQUEST_TRK_PROTOCOL_HANDLER_H_ 118+#define NET_URL_REQUEST_TRK_PROTOCOL_HANDLER_H_
119+ 119+
120+#include "base/compiler_specific.h" 120+#include "base/compiler_specific.h"
121+#include "base/macros.h"
122+#include "net/base/net_export.h" 121+#include "net/base/net_export.h"
123+#include "net/url_request/url_request_job_factory.h" 122+#include "net/url_request/url_request_job_factory.h"
124+ 123+
@@ -131,19 +130,18 @@
131+ : public URLRequestJobFactory::ProtocolHandler { 130+ : public URLRequestJobFactory::ProtocolHandler {
132+ public: 131+ public:
133+ TrkProtocolHandler(); 132+ TrkProtocolHandler();
133+ TrkProtocolHandler(const TrkProtocolHandler&) = delete;
134+ TrkProtocolHandler& operator=(const TrkProtocolHandler&) = delete;
134+ std::unique_ptr<URLRequestJob> CreateJob( 135+ std::unique_ptr<URLRequestJob> CreateJob(
135+ URLRequest* request) const override; 136+ URLRequest* request) const override;
136+ bool IsSafeRedirectTarget(const GURL& location) const override; 137+ bool IsSafeRedirectTarget(const GURL& location) const override;
137+
138+ private:
139+ DISALLOW_COPY_AND_ASSIGN(TrkProtocolHandler);
140+}; 138+};
141+ 139+
142+} // namespace net 140+} // namespace net
143+ 141+
144+#endif // NET_URL_REQUEST_TRK_PROTOCOL_HANDLER_H_ 142+#endif // NET_URL_REQUEST_TRK_PROTOCOL_HANDLER_H_
145--- net/url_request/url_request.cc.orig 143--- a/net/url_request/url_request.cc
146+++ net/url_request/url_request.cc 144+++ b/net/url_request/url_request.cc
147@@ -12,6 +12,7 @@ 145@@ -12,6 +12,7 @@
148 #include "base/compiler_specific.h" 146 #include "base/compiler_specific.h"
149 #include "base/metrics/histogram_macros.h" 147 #include "base/metrics/histogram_macros.h"
@@ -152,7 +150,7 @@
152 #include "base/strings/utf_string_conversions.h" 150 #include "base/strings/utf_string_conversions.h"
153 #include "base/synchronization/lock.h" 151 #include "base/synchronization/lock.h"
154 #include "base/threading/thread_task_runner_handle.h" 152 #include "base/threading/thread_task_runner_handle.h"
155@@ -46,6 +47,7 @@ 153@@ -45,6 +46,7 @@
156 #include "net/url_request/url_request_redirect_job.h" 154 #include "net/url_request/url_request_redirect_job.h"
157 #include "url/gurl.h" 155 #include "url/gurl.h"
158 #include "url/origin.h" 156 #include "url/origin.h"
@@ -160,7 +158,7 @@
160 158
161 using base::Time; 159 using base::Time;
162 using std::string; 160 using std::string;
163@@ -595,6 +597,12 @@ URLRequest::URLRequest(const GURL& url, 161@@ -609,6 +611,12 @@ URLRequest::URLRequest(const GURL& url,
164 // Sanity check out environment. 162 // Sanity check out environment.
165 DCHECK(base::ThreadTaskRunnerHandle::IsSet()); 163 DCHECK(base::ThreadTaskRunnerHandle::IsSet());
166 164
@@ -173,17 +171,17 @@
173 context->url_requests()->insert(this); 171 context->url_requests()->insert(this);
174 net_log_.BeginEvent(NetLogEventType::REQUEST_ALIVE, [&] { 172 net_log_.BeginEvent(NetLogEventType::REQUEST_ALIVE, [&] {
175 return NetLogURLRequestConstructorParams(url, priority_, 173 return NetLogURLRequestConstructorParams(url, priority_,
176--- net/url_request/url_request_context_builder.cc.orig 174--- a/net/url_request/url_request_context_builder.cc
177+++ net/url_request/url_request_context_builder.cc 175+++ b/net/url_request/url_request_context_builder.cc
178@@ -46,6 +46,7 @@ 176@@ -47,6 +47,7 @@
179 #include "net/quic/quic_stream_factory.h" 177 #include "net/socket/network_binding_client_socket_factory.h"
180 #include "net/ssl/ssl_config_service_defaults.h" 178 #include "net/ssl/ssl_config_service_defaults.h"
181 #include "net/url_request/static_http_user_agent_settings.h" 179 #include "net/url_request/static_http_user_agent_settings.h"
182+#include "net/url_request/trk_protocol_handler.h" 180+#include "net/url_request/trk_protocol_handler.h"
183 #include "net/url_request/url_request_context.h" 181 #include "net/url_request/url_request_context.h"
184 #include "net/url_request/url_request_context_storage.h" 182 #include "net/url_request/url_request_context_storage.h"
185 #include "net/url_request/url_request_job_factory.h" 183 #include "net/url_request/url_request_job_factory.h"
186@@ -546,6 +547,9 @@ std::unique_ptr<URLRequestContext> URLRe 184@@ -628,6 +629,9 @@ std::unique_ptr<URLRequestContext> URLRe
187 } 185 }
188 protocol_handlers_.clear(); 186 protocol_handlers_.clear();
189 187
@@ -193,28 +191,30 @@
193 storage->set_job_factory(std::move(job_factory)); 191 storage->set_job_factory(std::move(job_factory));
194 192
195 return std::move(context); 193 return std::move(context);
196--- url/url_constants.cc.orig 194--- a/url/url_constants.cc
197+++ url/url_constants.cc 195+++ b/url/url_constants.cc
198@@ -28,6 +28,7 @@ const char kMailToScheme[] = "mailto"; 196@@ -46,6 +46,8 @@ const char kQuicTransportScheme[] = "qui
199 // See also: https://www.iana.org/assignments/uri-schemes/prov/quic-transport 197 const char16_t kQuicTransportScheme16[] = u"quic-transport";
200 const char kQuicTransportScheme[] = "quic-transport";
201 const char kTelScheme[] = "tel"; 198 const char kTelScheme[] = "tel";
199 const char16_t kTelScheme16[] = u"tel";
202+const char kTraceScheme[] = "trk"; 200+const char kTraceScheme[] = "trk";
201+const char16_t kTraceScheme16[] = u"trk";
203 const char kUrnScheme[] = "urn"; 202 const char kUrnScheme[] = "urn";
204 const char kWsScheme[] = "ws"; 203 const char16_t kUrnScheme16[] = u"urn";
205 const char kWssScheme[] = "wss"; 204 const char kUuidInPackageScheme[] = "uuid-in-package";
206--- url/url_constants.h.orig 205--- a/url/url_constants.h
207+++ url/url_constants.h 206+++ b/url/url_constants.h
208@@ -32,6 +32,7 @@ COMPONENT_EXPORT(URL) extern const char 207@@ -50,6 +50,8 @@ COMPONENT_EXPORT(URL) extern const char
209 COMPONENT_EXPORT(URL) extern const char kMailToScheme[]; 208 COMPONENT_EXPORT(URL) extern const char16_t kQuicTransportScheme16[];
210 COMPONENT_EXPORT(URL) extern const char kQuicTransportScheme[];
211 COMPONENT_EXPORT(URL) extern const char kTelScheme[]; 209 COMPONENT_EXPORT(URL) extern const char kTelScheme[];
210 COMPONENT_EXPORT(URL) extern const char16_t kTelScheme16[];
212+COMPONENT_EXPORT(URL) extern const char kTraceScheme[]; 211+COMPONENT_EXPORT(URL) extern const char kTraceScheme[];
212+COMPONENT_EXPORT(URL) extern const char16_t kTraceScheme16[];
213 COMPONENT_EXPORT(URL) extern const char kUrnScheme[]; 213 COMPONENT_EXPORT(URL) extern const char kUrnScheme[];
214 COMPONENT_EXPORT(URL) extern const char kWsScheme[]; 214 COMPONENT_EXPORT(URL) extern const char16_t kUrnScheme16[];
215 COMPONENT_EXPORT(URL) extern const char kWssScheme[]; 215 COMPONENT_EXPORT(URL) extern const char kUuidInPackageScheme[];
216--- url/url_util.cc.orig 216--- a/url/url_util.cc
217+++ url/url_util.cc 217+++ b/url/url_util.cc
218@@ -63,7 +63,7 @@ struct SchemeRegistry { 218@@ -63,7 +63,7 @@ struct SchemeRegistry {
219 219
220 // Schemes that do not trigger mixed content warning. 220 // 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 @@
1# Disable some background communication with clients2.google.com 1# Disable some background communication with clients2.google.com
2 2
3--- components/crash/core/app/crashpad_linux.cc.orig 3--- a/components/crash/core/app/crashpad_linux.cc
4+++ components/crash/core/app/crashpad_linux.cc 4+++ b/components/crash/core/app/crashpad_linux.cc
5@@ -59,8 +59,7 @@ void SetFirstChanceExceptionHandler(bool 5@@ -60,8 +60,7 @@ void SetFirstChanceExceptionHandler(bool
6 } 6 }
7 7
8 bool IsCrashpadEnabled() { 8 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 @@
2# Many of these changes are for thoroughness, 2# Many of these changes are for thoroughness,
3# the most significant changes are in service_factory.cc and uploader.cc 3# the most significant changes are in service_factory.cc and uploader.cc
4 4
5--- chrome/browser/domain_reliability/service_factory.cc.orig 5--- a/chrome/browser/domain_reliability/service_factory.cc
6+++ chrome/browser/domain_reliability/service_factory.cc 6+++ b/chrome/browser/domain_reliability/service_factory.cc
7@@ -11,34 +11,12 @@ 7@@ -11,34 +11,12 @@
8 8
9 namespace domain_reliability { 9 namespace domain_reliability {
@@ -40,8 +40,8 @@
40 } 40 }
41 41
42 } // namespace domain_reliability 42 } // namespace domain_reliability
43--- components/domain_reliability/BUILD.gn.orig 43--- a/components/domain_reliability/BUILD.gn
44+++ components/domain_reliability/BUILD.gn 44+++ b/components/domain_reliability/BUILD.gn
45@@ -7,26 +7,6 @@ action("bake_in_configs") { 45@@ -7,26 +7,6 @@ action("bake_in_configs") {
46 script = "bake_in_configs.py" 46 script = "bake_in_configs.py"
47 47
@@ -98,8 +98,8 @@
98 } 98 }
99 99
100 component("domain_reliability") { 100 component("domain_reliability") {
101--- components/domain_reliability/bake_in_configs.py.orig 101--- a/components/domain_reliability/bake_in_configs.py
102+++ components/domain_reliability/bake_in_configs.py 102+++ b/components/domain_reliability/bake_in_configs.py
103@@ -490,7 +490,7 @@ def origin_is_whitelisted(origin): 103@@ -490,7 +490,7 @@ def origin_is_whitelisted(origin):
104 domain = origin[8:-1] 104 domain = origin[8:-1]
105 else: 105 else:
@@ -109,9 +109,9 @@
109 109
110 110
111 def quote_and_wrap_text(text, width=79, prefix=' "', suffix='"'): 111 def quote_and_wrap_text(text, width=79, prefix=' "', suffix='"'):
112--- components/domain_reliability/google_configs.cc.orig 112--- a/components/domain_reliability/google_configs.cc
113+++ components/domain_reliability/google_configs.cc 113+++ b/components/domain_reliability/google_configs.cc
114@@ -11,564 +11,6 @@ 114@@ -11,548 +11,6 @@
115 115
116 namespace domain_reliability { 116 namespace domain_reliability {
117 117
@@ -402,9 +402,6 @@
402- {"ampproject.net", true, false, false}, 402- {"ampproject.net", true, false, false},
403- {"ampproject.org", true, false, false}, 403- {"ampproject.org", true, false, false},
404- {"android.com", true, false, false}, 404- {"android.com", true, false, false},
405- {"anycast-edge.metric.gstatic.com", true, false, false},
406- {"anycast-stb.metric.gstatic.com", true, false, false},
407- {"anycast.metric.gstatic.com", true, false, false},
408- {"cdn.ampproject.org", true, false, false}, 405- {"cdn.ampproject.org", true, false, false},
409- {"chromecast.com", true, false, false}, 406- {"chromecast.com", true, false, false},
410- {"chromeexperiments.com", true, false, false}, 407- {"chromeexperiments.com", true, false, false},
@@ -461,19 +458,6 @@
461- {"picasa.com", true, false, false}, 458- {"picasa.com", true, false, false},
462- {"recaptcha.net", true, false, false}, 459- {"recaptcha.net", true, false, false},
463- {"stackdriver.com", true, false, false}, 460- {"stackdriver.com", true, false, false},
464- {"stbcast-stb.metric.gstatic.com", true, false, false},
465- {"stbcast.metric.gstatic.com", true, false, false},
466- {"stbcast2-stb.metric.gstatic.com", true, false, false},
467- {"stbcast2.metric.gstatic.com", true, false, false},
468- {"stbcast3-stb.metric.gstatic.com", true, false, false},
469- {"stbcast3.metric.gstatic.com", true, false, false},
470- {"stbcast4-stb.metric.gstatic.com", true, false, false},
471- {"stbcast4.metric.gstatic.com", true, false, false},
472- {"unicast-edge.metric.gstatic.com", true, false, false},
473- {"unicast-stb.metric.gstatic.com", true, false, false},
474- {"unicast.metric.gstatic.com", true, false, false},
475- {"unicast2-stb.metric.gstatic.com", true, false, false},
476- {"unicast2.metric.gstatic.com", true, false, false},
477- {"waze.com", true, false, false}, 461- {"waze.com", true, false, false},
478- {"withgoogle.com", true, false, false}, 462- {"withgoogle.com", true, false, false},
479- {"youtu.be", true, false, false}, 463- {"youtu.be", true, false, false},
@@ -676,7 +660,7 @@
676 std::unique_ptr<const DomainReliabilityConfig> MaybeGetGoogleConfig( 660 std::unique_ptr<const DomainReliabilityConfig> MaybeGetGoogleConfig(
677 const std::string& hostname) { 661 const std::string& hostname) {
678 bool is_www_subdomain = 662 bool is_www_subdomain =
679@@ -578,23 +20,6 @@ std::unique_ptr<const DomainReliabilityC 663@@ -562,23 +20,6 @@ std::unique_ptr<const DomainReliabilityC
680 std::unique_ptr<const DomainReliabilityConfig> config; 664 std::unique_ptr<const DomainReliabilityConfig> config;
681 std::unique_ptr<const DomainReliabilityConfig> superdomain_config; 665 std::unique_ptr<const DomainReliabilityConfig> superdomain_config;
682 666
@@ -700,7 +684,7 @@
700 if (config) { 684 if (config) {
701 DCHECK(config->origin.host() == hostname); 685 DCHECK(config->origin.host() == hostname);
702 return config; 686 return config;
703@@ -613,11 +38,6 @@ std::vector<std::unique_ptr<const Domain 687@@ -597,11 +38,6 @@ std::vector<std::unique_ptr<const Domain
704 GetAllGoogleConfigsForTesting() { 688 GetAllGoogleConfigsForTesting() {
705 std::vector<std::unique_ptr<const DomainReliabilityConfig>> configs_out; 689 std::vector<std::unique_ptr<const DomainReliabilityConfig>> configs_out;
706 690
@@ -712,9 +696,9 @@
712 return configs_out; 696 return configs_out;
713 } 697 }
714 698
715--- components/domain_reliability/uploader.cc.orig 699--- a/components/domain_reliability/uploader.cc
716+++ components/domain_reliability/uploader.cc 700+++ b/components/domain_reliability/uploader.cc
717@@ -79,7 +79,7 @@ class DomainReliabilityUploaderImpl : pu 701@@ -80,7 +80,7 @@ class DomainReliabilityUploaderImpl : pu
718 if (discard_uploads_) 702 if (discard_uploads_)
719 discarded_upload_count_++; 703 discarded_upload_count_++;
720 704
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 @@
1--- chrome/browser/federated_learning/floc_id_provider_factory.cc.orig
2+++ chrome/browser/federated_learning/floc_id_provider_factory.cc
3@@ -49,42 +49,7 @@ FlocIdProviderFactory::~FlocIdProviderFa
4
5 KeyedService* FlocIdProviderFactory::BuildServiceInstanceFor(
6 content::BrowserContext* context) const {
7- if (!base::FeatureList::IsEnabled(kFederatedLearningOfCohorts))
8- return nullptr;
9-
10- Profile* profile = Profile::FromBrowserContext(context);
11-
12- syncer::SyncService* sync_service =
13- SyncServiceFactory::GetForProfile(profile);
14- if (!sync_service)
15- return nullptr;
16-
17- PrivacySandboxSettings* privacy_sandbox_settings =
18- PrivacySandboxSettingsFactory::GetForProfile(profile);
19- if (!privacy_sandbox_settings)
20- return nullptr;
21-
22- FlocRemotePermissionService* floc_remote_permission_service =
23- FlocRemotePermissionServiceFactory::GetForProfile(profile);
24- if (!floc_remote_permission_service)
25- return nullptr;
26-
27- history::HistoryService* history_service =
28- HistoryServiceFactory::GetForProfile(profile,
29- ServiceAccessType::IMPLICIT_ACCESS);
30- if (!history_service)
31- return nullptr;
32-
33- syncer::UserEventService* user_event_service =
34- browser_sync::UserEventServiceFactory::GetForProfile(profile);
35- if (!user_event_service)
36- return nullptr;
37-
38- auto floc_event_logger = std::make_unique<FlocEventLogger>(
39- sync_service, floc_remote_permission_service, user_event_service);
40-
41- return new FlocIdProviderImpl(profile->GetPrefs(), privacy_sandbox_settings,
42- history_service, std::move(floc_event_logger));
43+ return nullptr;
44 }
45
46 } // namespace federated_learning
47--- chrome/browser/privacy_sandbox/privacy_sandbox_settings.cc.orig
48+++ chrome/browser/privacy_sandbox/privacy_sandbox_settings.cc
49@@ -132,8 +132,7 @@ bool ShouldDisablePrivacySandbox(
50
51 // Returns whether FLoC is allowable by the current state of |pref_service|.
52 bool IsFlocAllowedByPrefs(PrefService* pref_service) {
53- return pref_service->GetBoolean(prefs::kPrivacySandboxFlocEnabled) &&
54- pref_service->GetBoolean(prefs::kPrivacySandboxApisEnabled);
55+ return false;
56 }
57
58 // Returns the number of days in |time|, rounded to the closest day by hour if
59@@ -207,7 +206,7 @@ PrivacySandboxSettings::PrivacySandboxSe
60 PrivacySandboxSettings::~PrivacySandboxSettings() = default;
61
62 bool PrivacySandboxSettings::IsFlocAllowed() const {
63- return IsFlocAllowedByPrefs(pref_service_);
64+ return false;
65 }
66
67 bool PrivacySandboxSettings::IsFlocAllowedForContext(
68--- components/privacy_sandbox/privacy_sandbox_prefs.cc.orig
69+++ components/privacy_sandbox/privacy_sandbox_prefs.cc
70@@ -42,7 +42,7 @@ void RegisterProfilePrefs(PrefRegistrySi
71 registry->RegisterTimePref(prefs::kPrivacySandboxFlocDataAccessibleSince,
72 base::Time());
73 registry->RegisterBooleanPref(
74- prefs::kPrivacySandboxFlocEnabled, true,
75+ prefs::kPrivacySandboxFlocEnabled, false,
76 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
77 }
78
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 @@
1# Disables references to fonts.googleapis.com 1# Disables references to fonts.googleapis.com
2 2
3--- chrome/browser/ash/child_accounts/time_limits/web_time_limit_error_page/resources/web_time_limit_error_page.html.orig 3--- a/chrome/browser/ash/child_accounts/time_limits/web_time_limit_error_page/resources/web_time_limit_error_page.html
4+++ chrome/browser/ash/child_accounts/time_limits/web_time_limit_error_page/resources/web_time_limit_error_page.html 4+++ b/chrome/browser/ash/child_accounts/time_limits/web_time_limit_error_page/resources/web_time_limit_error_page.html
5@@ -5,7 +5,7 @@ 5@@ -5,7 +5,7 @@
6 <meta name="viewport" 6 <meta name="viewport"
7 content="initial-scale=1, minimum-scale=1,width=device-width"> 7 content="initial-scale=1, minimum-scale=1,width=device-width">
@@ -11,8 +11,8 @@
11 <link rel="stylesheet" href="../../../../../../../components/security_interstitials/core/common/resources/interstitial_core.css"> 11 <link rel="stylesheet" href="../../../../../../../components/security_interstitials/core/common/resources/interstitial_core.css">
12 <link rel="stylesheet" href="../../../../../supervised_user/supervised_user_error_page/resources/supervised_user_block_interstitial.css"> 12 <link rel="stylesheet" href="../../../../../supervised_user/supervised_user_error_page/resources/supervised_user_block_interstitial.css">
13 </head> 13 </head>
14--- chrome/browser/resources/chromeos/accessibility/chromevox/options/options.css.orig 14--- a/chrome/browser/resources/chromeos/accessibility/chromevox/options/options.css
15+++ chrome/browser/resources/chromeos/accessibility/chromevox/options/options.css 15+++ b/chrome/browser/resources/chromeos/accessibility/chromevox/options/options.css
16@@ -2,7 +2,7 @@ 16@@ -2,7 +2,7 @@
17 * Use of this source code is governed by a BSD-style license that can be 17 * Use of this source code is governed by a BSD-style license that can be
18 * found in the LICENSE file. */ 18 * found in the LICENSE file. */
@@ -22,8 +22,8 @@
22 22
23 body { 23 body {
24 margin: 0 0 20px 0; 24 margin: 0 0 20px 0;
25--- chrome/browser/resources/chromeos/accessibility/select_to_speak/options.css.orig 25--- a/chrome/browser/resources/chromeos/accessibility/select_to_speak/options.css
26+++ chrome/browser/resources/chromeos/accessibility/select_to_speak/options.css 26+++ b/chrome/browser/resources/chromeos/accessibility/select_to_speak/options.css
27@@ -2,7 +2,7 @@ 27@@ -2,7 +2,7 @@
28 * Use of this source code is governed by a BSD-style license that can be 28 * Use of this source code is governed by a BSD-style license that can be
29 * found in the LICENSE file. */ 29 * found in the LICENSE file. */
@@ -33,8 +33,8 @@
33 33
34 body { 34 body {
35 margin: 0 0 20px 0; 35 margin: 0 0 20px 0;
36--- chrome/browser/supervised_user/supervised_user_error_page/resources/supervised_user_block_interstitial.html.orig 36--- a/chrome/browser/supervised_user/supervised_user_error_page/resources/supervised_user_block_interstitial.html
37+++ chrome/browser/supervised_user/supervised_user_error_page/resources/supervised_user_block_interstitial.html 37+++ b/chrome/browser/supervised_user/supervised_user_error_page/resources/supervised_user_block_interstitial.html
38@@ -5,7 +5,7 @@ 38@@ -5,7 +5,7 @@
39 <meta name="viewport" 39 <meta name="viewport"
40 content="initial-scale=1, minimum-scale=1, width=device-width"> 40 content="initial-scale=1, minimum-scale=1, width=device-width">
@@ -44,9 +44,9 @@
44 <link rel="stylesheet" href="../../../../../components/security_interstitials/core/common/resources/interstitial_core.css"> 44 <link rel="stylesheet" href="../../../../../components/security_interstitials/core/common/resources/interstitial_core.css">
45 <link rel="stylesheet" href="supervised_user_block_interstitial.css"> 45 <link rel="stylesheet" href="supervised_user_block_interstitial.css">
46 <script src="../../../../../ui/webui/resources/js/cr.js"></script> 46 <script src="../../../../../ui/webui/resources/js/cr.js"></script>
47--- components/dom_distiller/content/browser/dom_distiller_viewer_source.cc.orig 47--- a/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc
48+++ components/dom_distiller/content/browser/dom_distiller_viewer_source.cc 48+++ b/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc
49@@ -300,7 +300,7 @@ bool DomDistillerViewerSource::ShouldSer 49@@ -298,7 +298,7 @@ bool DomDistillerViewerSource::ShouldSer
50 std::string DomDistillerViewerSource::GetContentSecurityPolicy( 50 std::string DomDistillerViewerSource::GetContentSecurityPolicy(
51 network::mojom::CSPDirectiveName directive) { 51 network::mojom::CSPDirectiveName directive) {
52 if (directive == network::mojom::CSPDirectiveName::StyleSrc) { 52 if (directive == network::mojom::CSPDirectiveName::StyleSrc) {
@@ -55,8 +55,8 @@
55 } else if (directive == network::mojom::CSPDirectiveName::ChildSrc) { 55 } else if (directive == network::mojom::CSPDirectiveName::ChildSrc) {
56 return "child-src *;"; 56 return "child-src *;";
57 } else if (directive == 57 } else if (directive ==
58--- components/dom_distiller/core/html/preview.html.orig 58--- a/components/dom_distiller/core/html/preview.html
59+++ components/dom_distiller/core/html/preview.html 59+++ b/components/dom_distiller/core/html/preview.html
60@@ -11,7 +11,7 @@ found in the LICENSE file. 60@@ -11,7 +11,7 @@ found in the LICENSE file.
61 <meta name="theme-color" id="theme-color"> 61 <meta name="theme-color" id="theme-color">
62 <title>Title goes here and it could be kind of lengthy - Publisher name</title> 62 <title>Title goes here and it could be kind of lengthy - Publisher name</title>
@@ -66,8 +66,8 @@
66 <style> 66 <style>
67 .english :lang(th) {display: none} 67 .english :lang(th) {display: none}
68 .english :lang(zh) {display: none} 68 .english :lang(zh) {display: none}
69--- components/dom_distiller/core/javascript/dom_distiller_viewer.js.orig 69--- a/components/dom_distiller/core/javascript/dom_distiller_viewer.js
70+++ components/dom_distiller/core/javascript/dom_distiller_viewer.js 70+++ b/components/dom_distiller/core/javascript/dom_distiller_viewer.js
71@@ -109,7 +109,7 @@ function maybeSetWebFont() { 71@@ -109,7 +109,7 @@ function maybeSetWebFont() {
72 } 72 }
73 73
@@ -77,8 +77,8 @@
77 e.rel = 'stylesheet'; 77 e.rel = 'stylesheet';
78 e.type = 'text/css'; 78 e.type = 'text/css';
79 document.head.appendChild(e); 79 document.head.appendChild(e);
80--- third_party/crashpad/crashpad/doc/support/crashpad_doxygen.css.orig 80--- a/third_party/crashpad/crashpad/doc/support/crashpad_doxygen.css
81+++ third_party/crashpad/crashpad/doc/support/crashpad_doxygen.css 81+++ b/third_party/crashpad/crashpad/doc/support/crashpad_doxygen.css
82@@ -12,8 +12,7 @@ 82@@ -12,8 +12,7 @@
83 * See the License for the specific language governing permissions and 83 * See the License for the specific language governing permissions and
84 * limitations under the License. */ 84 * limitations under the License. */
@@ -89,8 +89,8 @@
89 89
90 body, 90 body,
91 table, 91 table,
92--- tools/md_browser/base.css.orig 92--- a/tools/md_browser/base.css
93+++ tools/md_browser/base.css 93+++ b/tools/md_browser/base.css
94@@ -16,8 +16,7 @@ 94@@ -16,8 +16,7 @@
95 95
96 /* Common styles and definitions. */ 96 /* Common styles and definitions. */
diff --git a/www/chromium-uc/patches/core/ungoogled-chromium/disable-gaia.patch b/www/chromium-uc/patches/core/ungoogled-chromium/disable-gaia.patch
index bc27e5d..5aa8290 100644
--- a/www/chromium-uc/patches/core/ungoogled-chromium/disable-gaia.patch
+++ b/www/chromium-uc/patches/core/ungoogled-chromium/disable-gaia.patch
@@ -1,9 +1,9 @@
1# Disables Gaia code 1# Disables Gaia code
2# Somehow it is still activated even without being signed-in: https://github.com/Eloston/ungoogled-chromium/issues/104 2# Somehow it is still activated even without being signed-in: https://github.com/Eloston/ungoogled-chromium/issues/104
3 3
4--- google_apis/gaia/gaia_auth_fetcher.cc.orig 4--- a/google_apis/gaia/gaia_auth_fetcher.cc
5+++ google_apis/gaia/gaia_auth_fetcher.cc 5+++ b/google_apis/gaia/gaia_auth_fetcher.cc
6@@ -293,65 +293,6 @@ void GaiaAuthFetcher::CreateAndStartGaia 6@@ -292,66 +292,6 @@ void GaiaAuthFetcher::CreateAndStartGaia
7 network::mojom::CredentialsMode credentials_mode, 7 network::mojom::CredentialsMode credentials_mode,
8 const net::NetworkTrafficAnnotationTag& traffic_annotation) { 8 const net::NetworkTrafficAnnotationTag& traffic_annotation) {
9 DCHECK(!fetch_pending_) << "Tried to fetch two things at once!"; 9 DCHECK(!fetch_pending_) << "Tried to fetch two things at once!";
@@ -13,7 +13,8 @@
13- original_url_ = gaia_gurl; 13- original_url_ = gaia_gurl;
14- 14-
15- if (credentials_mode != network::mojom::CredentialsMode::kOmit) { 15- if (credentials_mode != network::mojom::CredentialsMode::kOmit) {
16- DCHECK_EQ(GaiaUrls::GetInstance()->gaia_url(), gaia_gurl.GetOrigin()) 16- DCHECK_EQ(GaiaUrls::GetInstance()->gaia_url(),
17- gaia_gurl.DeprecatedGetOriginAsURL())
17- << gaia_gurl; 18- << gaia_gurl;
18- url::Origin origin = 19- url::Origin origin =
19- url::Origin::Create(GaiaUrls::GetInstance()->gaia_url()); 20- url::Origin::Create(GaiaUrls::GetInstance()->gaia_url());
diff --git a/www/chromium-uc/patches/core/ungoogled-chromium/disable-gcm.patch b/www/chromium-uc/patches/core/ungoogled-chromium/disable-gcm.patch
index bafa024..7838c20 100644
--- a/www/chromium-uc/patches/core/ungoogled-chromium/disable-gcm.patch
+++ b/www/chromium-uc/patches/core/ungoogled-chromium/disable-gcm.patch
@@ -1,7 +1,7 @@
1# Disable Google Cloud Messaging (GCM) client 1# Disable Google Cloud Messaging (GCM) client
2 2
3--- components/gcm_driver/gcm_client_impl.cc.orig 3--- a/components/gcm_driver/gcm_client_impl.cc
4+++ components/gcm_driver/gcm_client_impl.cc 4+++ b/components/gcm_driver/gcm_client_impl.cc
5@@ -465,6 +465,7 @@ void GCMClientImpl::StartGCM() { 5@@ -465,6 +465,7 @@ void GCMClientImpl::StartGCM() {
6 6
7 void GCMClientImpl::InitializeMCSClient() { 7 void GCMClientImpl::InitializeMCSClient() {
@@ -52,7 +52,7 @@
52- periodic_checkin_ptr_factory_.InvalidateWeakPtrs(); 52- periodic_checkin_ptr_factory_.InvalidateWeakPtrs();
53- 53-
54- base::TimeDelta time_to_next_checkin = GetTimeToNextCheckin(); 54- base::TimeDelta time_to_next_checkin = GetTimeToNextCheckin();
55- if (time_to_next_checkin < base::TimeDelta()) 55- if (time_to_next_checkin.is_negative())
56- time_to_next_checkin = base::TimeDelta(); 56- time_to_next_checkin = base::TimeDelta();
57- 57-
58- io_task_runner_->PostDelayedTask( 58- io_task_runner_->PostDelayedTask(
diff --git a/www/chromium-uc/patches/core/ungoogled-chromium/disable-google-host-detection.patch b/www/chromium-uc/patches/core/ungoogled-chromium/disable-google-host-detection.patch
index 846904d..adc4f31 100644
--- a/www/chromium-uc/patches/core/ungoogled-chromium/disable-google-host-detection.patch
+++ b/www/chromium-uc/patches/core/ungoogled-chromium/disable-google-host-detection.patch
@@ -1,7 +1,7 @@
1# Disables various detections of Google hosts and functionality specific to them 1# Disables various detections of Google hosts and functionality specific to them
2 2
3--- chrome/common/google_url_loader_throttle.cc.orig 3--- a/chrome/common/google_url_loader_throttle.cc
4+++ chrome/common/google_url_loader_throttle.cc 4+++ b/chrome/common/google_url_loader_throttle.cc
5@@ -19,10 +19,6 @@ 5@@ -19,10 +19,6 @@
6 #include "ui/base/device_form_factor.h" 6 #include "ui/base/device_form_factor.h"
7 #endif 7 #endif
@@ -12,7 +12,7 @@
12- 12-
13 namespace { 13 namespace {
14 14
15 #if defined(OS_ANDROID) 15 #if BUILDFLAG(IS_ANDROID)
16@@ -65,52 +61,6 @@ void GoogleURLLoaderThrottle::DetachFrom 16@@ -65,52 +61,6 @@ void GoogleURLLoaderThrottle::DetachFrom
17 void GoogleURLLoaderThrottle::WillStartRequest( 17 void GoogleURLLoaderThrottle::WillStartRequest(
18 network::ResourceRequest* request, 18 network::ResourceRequest* request,
@@ -43,7 +43,7 @@
43- dynamic_params_.allowed_domains_for_apps); 43- dynamic_params_.allowed_domains_for_apps);
44- } 44- }
45- 45-
46-#if defined(OS_ANDROID) 46-#if BUILDFLAG(IS_ANDROID)
47- if (!client_data_header_.empty() && 47- if (!client_data_header_.empty() &&
48- google_util::IsGoogleAssociatedDomainUrl(request->url)) { 48- google_util::IsGoogleAssociatedDomainUrl(request->url)) {
49- request->cors_exempt_headers.SetHeader(kCCTClientDataHeader, 49- request->cors_exempt_headers.SetHeader(kCCTClientDataHeader,
@@ -95,7 +95,7 @@
95- dynamic_params_.allowed_domains_for_apps); 95- dynamic_params_.allowed_domains_for_apps);
96- } 96- }
97- 97-
98-#if defined(OS_ANDROID) 98-#if BUILDFLAG(IS_ANDROID)
99- if (!client_data_header_.empty() && 99- if (!client_data_header_.empty() &&
100- !google_util::IsGoogleAssociatedDomainUrl(redirect_info->new_url)) { 100- !google_util::IsGoogleAssociatedDomainUrl(redirect_info->new_url)) {
101- to_be_removed_headers->push_back(kCCTClientDataHeader); 101- to_be_removed_headers->push_back(kCCTClientDataHeader);
@@ -128,9 +128,9 @@
128- } 128- }
129 } 129 }
130 #endif 130 #endif
131--- components/google/core/common/google_util.cc.orig 131--- a/components/google/core/common/google_util.cc
132+++ components/google/core/common/google_util.cc 132+++ b/components/google/core/common/google_util.cc
133@@ -33,112 +33,6 @@ namespace google_util { 133@@ -31,112 +31,6 @@ namespace google_util {
134 134
135 namespace { 135 namespace {
136 136
@@ -243,7 +243,7 @@
243 } // namespace 243 } // namespace
244 244
245 // Global functions ----------------------------------------------------------- 245 // Global functions -----------------------------------------------------------
246@@ -146,12 +40,6 @@ bool IsGoogleSearchSubdomainUrl(const GU 246@@ -144,12 +38,6 @@ bool IsGoogleSearchSubdomainUrl(const GU
247 const char kGoogleHomepageURL[] = "trk:113:https://www.google.com/"; 247 const char kGoogleHomepageURL[] = "trk:113:https://www.google.com/";
248 248
249 bool HasGoogleSearchQueryParam(base::StringPiece str) { 249 bool HasGoogleSearchQueryParam(base::StringPiece str) {
@@ -256,7 +256,7 @@
256 return false; 256 return false;
257 } 257 }
258 258
259@@ -162,161 +50,53 @@ std::string GetGoogleLocale(const std::s 259@@ -160,161 +48,53 @@ std::string GetGoogleLocale(const std::s
260 260
261 GURL AppendGoogleLocaleParam(const GURL& url, 261 GURL AppendGoogleLocaleParam(const GURL& url,
262 const std::string& application_locale) { 262 const std::string& application_locale) {
@@ -409,7 +409,7 @@
409- ".ytimg.com", 409- ".ytimg.com",
410- }; 410- };
411- const std::string host = url.host(); 411- const std::string host = url.host();
412- for (size_t i = 0; i < base::size(kSuffixesToSetHeadersFor); ++i) { 412- for (size_t i = 0; i < std::size(kSuffixesToSetHeadersFor); ++i) {
413- if (base::EndsWith(host, kSuffixesToSetHeadersFor[i], 413- if (base::EndsWith(host, kSuffixesToSetHeadersFor[i],
414- base::CompareCase::INSENSITIVE_ASCII)) { 414- base::CompareCase::INSENSITIVE_ASCII)) {
415- return true; 415- return true;
@@ -420,7 +420,7 @@
420- static const char* kHostsToSetHeadersFor[] = { 420- static const char* kHostsToSetHeadersFor[] = {
421- "googleweblight.com", 421- "googleweblight.com",
422- }; 422- };
423- for (size_t i = 0; i < base::size(kHostsToSetHeadersFor); ++i) { 423- for (size_t i = 0; i < std::size(kHostsToSetHeadersFor); ++i) {
424- if (base::LowerCaseEqualsASCII(host, kHostsToSetHeadersFor[i])) 424- if (base::LowerCaseEqualsASCII(host, kHostsToSetHeadersFor[i]))
425- return true; 425- return true;
426- } 426- }
@@ -428,9 +428,9 @@
428 return false; 428 return false;
429 } 429 }
430 430
431--- components/page_load_metrics/browser/page_load_metrics_util.cc.orig 431--- a/components/page_load_metrics/browser/page_load_metrics_util.cc
432+++ components/page_load_metrics/browser/page_load_metrics_util.cc 432+++ b/components/page_load_metrics/browser/page_load_metrics_util.cc
433@@ -196,9 +196,7 @@ bool DidObserveLoadingBehaviorInAnyFrame 433@@ -210,9 +210,7 @@ bool DidObserveLoadingBehaviorInAnyFrame
434 } 434 }
435 435
436 bool IsGoogleSearchHostname(const GURL& url) { 436 bool IsGoogleSearchHostname(const GURL& url) {
@@ -441,9 +441,9 @@
441 } 441 }
442 442
443 bool IsGoogleSearchResultUrl(const GURL& url) { 443 bool IsGoogleSearchResultUrl(const GURL& url) {
444--- components/page_load_metrics/common/page_load_metrics_util.cc.orig 444--- a/components/page_load_metrics/common/page_load_metrics_util.cc
445+++ components/page_load_metrics/common/page_load_metrics_util.cc 445+++ b/components/page_load_metrics/common/page_load_metrics_util.cc
446@@ -36,38 +36,7 @@ const char* kBufferTimerDelayParamName = 446@@ -24,38 +24,7 @@ const int kExtraBufferTimerDelayMillis =
447 } // namespace 447 } // namespace
448 448
449 absl::optional<std::string> GetGoogleHostnamePrefix(const GURL& url) { 449 absl::optional<std::string> GetGoogleHostnamePrefix(const GURL& url) {
@@ -483,9 +483,9 @@
483 } 483 }
484 484
485 bool IsGoogleHostname(const GURL& url) { 485 bool IsGoogleHostname(const GURL& url) {
486--- components/search_engines/template_url.cc.orig 486--- a/components/search_engines/template_url.cc
487+++ components/search_engines/template_url.cc 487+++ b/components/search_engines/template_url.cc
488@@ -527,11 +527,7 @@ std::u16string TemplateURLRef::SearchTer 488@@ -532,11 +532,7 @@ std::u16string TemplateURLRef::SearchTer
489 bool TemplateURLRef::HasGoogleBaseURLs( 489 bool TemplateURLRef::HasGoogleBaseURLs(
490 const SearchTermsData& search_terms_data) const { 490 const SearchTermsData& search_terms_data) const {
491 ParseIfNecessary(search_terms_data); 491 ParseIfNecessary(search_terms_data);
@@ -498,9 +498,9 @@
498 } 498 }
499 499
500 bool TemplateURLRef::ExtractSearchTermsFromURL( 500 bool TemplateURLRef::ExtractSearchTermsFromURL(
501--- components/variations/net/variations_http_headers.cc.orig 501--- a/components/variations/net/variations_http_headers.cc
502+++ components/variations/net/variations_http_headers.cc 502+++ b/components/variations/net/variations_http_headers.cc
503@@ -26,10 +26,6 @@ 503@@ -33,10 +33,6 @@
504 504
505 namespace variations { 505 namespace variations {
506 506
@@ -511,7 +511,7 @@
511 namespace { 511 namespace {
512 512
513 // The result of checking whether a request to a URL should have variations 513 // The result of checking whether a request to a URL should have variations
514@@ -238,29 +234,7 @@ class VariationsHeaderHelper { 514@@ -257,30 +253,7 @@ class VariationsHeaderHelper {
515 VariationsHeaderHelper& operator=(const VariationsHeaderHelper&) = delete; 515 VariationsHeaderHelper& operator=(const VariationsHeaderHelper&) = delete;
516 516
517 bool AppendHeaderIfNeeded(const GURL& url, InIncognito incognito) { 517 bool AppendHeaderIfNeeded(const GURL& url, InIncognito incognito) {
@@ -533,8 +533,9 @@
533- if (variations_header_.empty()) 533- if (variations_header_.empty())
534- return false; 534- return false;
535- 535-
536- // Set the variations header to cors_exempt_headers rather than headers 536- // Set the variations header to cors_exempt_headers rather than headers to
537- // to be exempted from CORS checks. 537- // be exempted from CORS checks, and to avoid exposing the header to service
538- // workers.
538- resource_request_->cors_exempt_headers.SetHeaderIfMissing( 539- resource_request_->cors_exempt_headers.SetHeaderIfMissing(
539- kClientDataHeader, variations_header_); 540- kClientDataHeader, variations_header_);
540- return true; 541- return true;
@@ -542,7 +543,7 @@
542 } 543 }
543 544
544 private: 545 private:
545@@ -328,8 +302,6 @@ void RemoveVariationsHeaderIfNeeded( 546@@ -348,8 +321,6 @@ void RemoveVariationsHeaderIfNeeded(
546 const net::RedirectInfo& redirect_info, 547 const net::RedirectInfo& redirect_info,
547 const network::mojom::URLResponseHead& response_head, 548 const network::mojom::URLResponseHead& response_head,
548 std::vector<std::string>* to_be_removed_headers) { 549 std::vector<std::string>* to_be_removed_headers) {
@@ -551,13 +552,7 @@
551 } 552 }
552 553
553 std::unique_ptr<network::SimpleURLLoader> 554 std::unique_ptr<network::SimpleURLLoader>
554@@ -359,14 +331,11 @@ CreateSimpleURLLoaderWithVariationsHeade 555@@ -379,9 +350,7 @@ CreateSimpleURLLoaderWithVariationsHeade
555 }
556
557 bool IsVariationsHeader(const std::string& header_name) {
558- return header_name == kClientDataHeader ||
559- header_name == kOmniboxOnDeviceSuggestionsHeader;
560+ return false;
561 } 556 }
562 557
563 bool HasVariationsHeader(const network::ResourceRequest& request) { 558 bool HasVariationsHeader(const network::ResourceRequest& request) {
@@ -568,7 +563,7 @@
568 } 563 }
569 564
570 bool ShouldAppendVariationsHeaderForTesting( 565 bool ShouldAppendVariationsHeaderForTesting(
571@@ -377,12 +346,6 @@ bool ShouldAppendVariationsHeaderForTest 566@@ -392,12 +361,6 @@ bool ShouldAppendVariationsHeaderForTest
572 567
573 void UpdateCorsExemptHeaderForVariations( 568 void UpdateCorsExemptHeaderForVariations(
574 network::mojom::NetworkContextParams* params) { 569 network::mojom::NetworkContextParams* params) {
@@ -581,9 +576,9 @@
581 } 576 }
582 577
583 } // namespace variations 578 } // namespace variations
584--- net/base/url_util.cc.orig 579--- a/net/base/url_util.cc
585+++ net/base/url_util.cc 580+++ b/net/base/url_util.cc
586@@ -442,27 +442,6 @@ bool HasGoogleHost(const GURL& url) { 581@@ -455,27 +455,6 @@ bool HasGoogleHost(const GURL& url) {
587 } 582 }
588 583
589 bool IsGoogleHost(base::StringPiece host) { 584 bool IsGoogleHost(base::StringPiece host) {
diff --git a/www/chromium-uc/patches/core/ungoogled-chromium/disable-mei-preload.patch b/www/chromium-uc/patches/core/ungoogled-chromium/disable-mei-preload.patch
index 731e85d..a1ac146 100644
--- a/www/chromium-uc/patches/core/ungoogled-chromium/disable-mei-preload.patch
+++ b/www/chromium-uc/patches/core/ungoogled-chromium/disable-mei-preload.patch
@@ -5,9 +5,9 @@
5# is enough local data to determine the user's preferred behavior." This feature 5# is enough local data to determine the user's preferred behavior." This feature
6# does not seem to outweigh the benefit of removing the binary, thus this patch. 6# does not seem to outweigh the benefit of removing the binary, thus this patch.
7 7
8--- chrome/BUILD.gn.orig 8--- a/chrome/BUILD.gn
9+++ chrome/BUILD.gn 9+++ b/chrome/BUILD.gn
10@@ -351,7 +351,6 @@ if (!is_android && !is_mac) { 10@@ -346,7 +346,6 @@ if (!is_android && !is_mac) {
11 } 11 }
12 12
13 data_deps += [ 13 data_deps += [
@@ -15,8 +15,8 @@
15 "//third_party/widevine/cdm", 15 "//third_party/widevine/cdm",
16 ] 16 ]
17 } 17 }
18@@ -1157,7 +1156,6 @@ if (is_win) { 18@@ -1173,7 +1172,6 @@ if (is_win) {
19 ":keystone_registration_framework", 19 ":optimization_guide_library",
20 ":swiftshader_library", 20 ":swiftshader_library",
21 ":widevine_cdm_library", 21 ":widevine_cdm_library",
22- "//chrome/browser/resources/media/mei_preload:component_bundle", 22- "//chrome/browser/resources/media/mei_preload:component_bundle",
diff --git a/www/chromium-uc/patches/core/ungoogled-chromium/disable-network-time-tracker.patch b/www/chromium-uc/patches/core/ungoogled-chromium/disable-network-time-tracker.patch
index fb27026..9abf8db 100644
--- a/www/chromium-uc/patches/core/ungoogled-chromium/disable-network-time-tracker.patch
+++ b/www/chromium-uc/patches/core/ungoogled-chromium/disable-network-time-tracker.patch
@@ -3,9 +3,9 @@
3# date seems incorrect, according to https://bugs.chromium.org/p/chromium/issues/detail?id=725232, 3# date seems incorrect, according to https://bugs.chromium.org/p/chromium/issues/detail?id=725232,
4# Fixes https://github.com/Eloston/ungoogled-chromium/issues/302 4# Fixes https://github.com/Eloston/ungoogled-chromium/issues/302
5 5
6--- components/network_time/network_time_tracker.cc.orig 6--- a/components/network_time/network_time_tracker.cc
7+++ components/network_time/network_time_tracker.cc 7+++ b/components/network_time/network_time_tracker.cc
8@@ -277,7 +277,7 @@ void NetworkTimeTracker::UpdateNetworkTi 8@@ -273,7 +273,7 @@ void NetworkTimeTracker::UpdateNetworkTi
9 } 9 }
10 10
11 bool NetworkTimeTracker::AreTimeFetchesEnabled() const { 11 bool NetworkTimeTracker::AreTimeFetchesEnabled() const {
diff --git a/www/chromium-uc/patches/core/ungoogled-chromium/disable-privacy-sandbox.patch b/www/chromium-uc/patches/core/ungoogled-chromium/disable-privacy-sandbox.patch
index a4e7e8b..ad36006 100644
--- a/www/chromium-uc/patches/core/ungoogled-chromium/disable-privacy-sandbox.patch
+++ b/www/chromium-uc/patches/core/ungoogled-chromium/disable-privacy-sandbox.patch
@@ -1,53 +1,87 @@
1--- chrome/browser/privacy_sandbox/privacy_sandbox_settings.cc.orig 1--- a/chrome/browser/resources/settings/privacy_page/privacy_page.html
2+++ chrome/browser/privacy_sandbox/privacy_sandbox_settings.cc 2+++ b/chrome/browser/resources/settings/privacy_page/privacy_page.html
3@@ -378,7 +378,7 @@ std::vector<GURL> PrivacySandboxSettings 3@@ -85,21 +85,6 @@
4 }
5
6 bool PrivacySandboxSettings::IsPrivacySandboxAllowed() {
7- return pref_service_->GetBoolean(prefs::kPrivacySandboxApisEnabled);
8+ return false;
9 }
10
11 bool PrivacySandboxSettings::IsPrivacySandboxEnabled() {
12@@ -390,8 +390,6 @@ bool PrivacySandboxSettings::IsPrivacySa
13 }
14
15 void PrivacySandboxSettings::SetPrivacySandboxEnabled(bool enabled) {
16- pref_service_->SetBoolean(prefs::kPrivacySandboxManuallyControlled, true);
17- pref_service_->SetBoolean(prefs::kPrivacySandboxApisEnabled, enabled);
18 }
19
20 void PrivacySandboxSettings::OnCookiesCleared() {
21--- chrome/browser/resources/settings/privacy_page/privacy_page.html.orig
22+++ chrome/browser/resources/settings/privacy_page/privacy_page.html
23@@ -64,19 +64,6 @@
24 sub-label="$i18n{permissionsPageDescription}" 4 sub-label="$i18n{permissionsPageDescription}"
25 on-click="onPermissionsPageClick_" 5 on-click="onPermissionsPageClick_"
26 role-description="$i18n{subpageArrowRoleDescription}"></cr-link-row> 6 role-description="$i18n{subpageArrowRoleDescription}"></cr-link-row>
27- <cr-link-row id="privacySandboxLinkRow" 7- <template is="dom-if" if="[[!isPrivacySandboxRestricted_]]">
28- start-icon="settings20:experiment" 8- <cr-link-row id="privacySandboxLinkRow"
29- class="hr" 9- start-icon="settings20:experiment"
30- label="$i18n{privacySandboxTitle}" 10- class="hr"
31- sub-label="[[computePrivacySandboxSublabel_( 11- label="$i18n{privacySandboxTitle}"
32- prefs.privacy_sandbox.apis_enabled.*)]]" 12- sub-label="[[computePrivacySandboxSublabel_(
33- on-click="onPrivacySandboxClick_" 13- prefs.privacy_sandbox.*)]]"
34- external 14- on-click="onPrivacySandboxClick_"
35- role-description="$i18n{subpageArrowRoleDescription}"> 15- external
36- </cr-link-row> 16- role-description="$i18n{subpageArrowRoleDescription}">
37- <a id="privacySandboxLink" href="privacySandbox" 17- </cr-link-row>
38- target="_blank" tabindex="-1" aria-disabled="true" 18- <a id="privacySandboxLink" href="privacySandbox"
39- role="none"></a> 19- target="_blank" tabindex="-1" aria-disabled="true"
20- role="none"></a>
21- </template>
40 </div> 22 </div>
41 23
42 <if expr="use_nss_certs"> 24 <if expr="use_nss_certs">
43--- components/privacy_sandbox/privacy_sandbox_prefs.cc.orig 25--- a/components/privacy_sandbox/privacy_sandbox_prefs.cc
44+++ components/privacy_sandbox/privacy_sandbox_prefs.cc 26+++ b/components/privacy_sandbox/privacy_sandbox_prefs.cc
45@@ -31,7 +31,7 @@ namespace privacy_sandbox { 27@@ -71,7 +71,7 @@ namespace privacy_sandbox {
46 28
47 void RegisterProfilePrefs(PrefRegistrySimple* registry) { 29 void RegisterProfilePrefs(PrefRegistrySimple* registry) {
48 registry->RegisterBooleanPref( 30 registry->RegisterBooleanPref(
49- prefs::kPrivacySandboxApisEnabled, true, 31- prefs::kPrivacySandboxApisEnabled, true,
50+ prefs::kPrivacySandboxApisEnabled, false, 32+ prefs::kPrivacySandboxApisEnabled, false,
51 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 33 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
52 registry->RegisterBooleanPref( 34 registry->RegisterBooleanPref(prefs::kPrivacySandboxApisEnabledV2, false);
53 prefs::kPrivacySandboxManuallyControlled, false, 35 registry->RegisterBooleanPref(prefs::kPrivacySandboxApisEnabledV2Init, false);
36--- a/components/privacy_sandbox/privacy_sandbox_settings.cc
37+++ b/components/privacy_sandbox/privacy_sandbox_settings.cc
38@@ -339,48 +339,10 @@ std::vector<GURL> PrivacySandboxSettings
39 }
40
41 bool PrivacySandboxSettings::IsPrivacySandboxEnabled() const {
42- // If the delegate is restricting access, or indicates confirmation has not
43- // occurred, the Privacy Sandbox is disabled.
44- if (delegate_->IsPrivacySandboxRestricted() ||
45- !delegate_->IsPrivacySandboxConfirmed()) {
46- return false;
47- }
48-
49- // For Measurement and Relevance APIs, we explicitly do not require the
50- // underlying pref to be enabled if there is a local flag enabling the APIs to
51- // allow for local testing.
52- bool should_override_setting_for_local_testing = base::FeatureList::IsEnabled(
53- privacy_sandbox::kOverridePrivacySandboxSettingsLocalTesting);
54-
55- // Which preference is consulted is dependent on whether release 3 of the
56- // settings is available.
57- if (base::FeatureList::IsEnabled(privacy_sandbox::kPrivacySandboxSettings3)) {
58- // For Privacy Sandbox Settings 3, APIs are disabled in incognito.
59- if (incognito_profile_)
60- return false;
61-
62- if (should_override_setting_for_local_testing) {
63- return true;
64- }
65-
66- // For Privacy Sandbox Settings 3, APIs may be restricted via the delegate.
67- // The V2 pref was introduced with the 3rd Privacy Sandbox release.
68- return pref_service_->GetBoolean(prefs::kPrivacySandboxApisEnabledV2);
69- }
70-
71- if (should_override_setting_for_local_testing)
72- return true;
73-
74- return pref_service_->GetBoolean(prefs::kPrivacySandboxApisEnabled);
75+ return false;
76 }
77
78 void PrivacySandboxSettings::SetPrivacySandboxEnabled(bool enabled) {
79- // Only apply the decision to the appropriate preference.
80- if (base::FeatureList::IsEnabled(privacy_sandbox::kPrivacySandboxSettings3)) {
81- pref_service_->SetBoolean(prefs::kPrivacySandboxApisEnabledV2, enabled);
82- } else {
83- pref_service_->SetBoolean(prefs::kPrivacySandboxApisEnabled, enabled);
84- }
85 }
86
87 bool PrivacySandboxSettings::IsTrustTokensAllowed() {
diff --git a/www/chromium-uc/patches/core/ungoogled-chromium/disable-profile-avatar-downloading.patch b/www/chromium-uc/patches/core/ungoogled-chromium/disable-profile-avatar-downloading.patch
index dee938a..279269e 100644
--- a/www/chromium-uc/patches/core/ungoogled-chromium/disable-profile-avatar-downloading.patch
+++ b/www/chromium-uc/patches/core/ungoogled-chromium/disable-profile-avatar-downloading.patch
@@ -1,7 +1,7 @@
1# Stop downloading of profile avatar (trk:271:...) 1# Stop downloading of profile avatar (trk:271:...)
2 2
3--- chrome/browser/profiles/profile_avatar_downloader.cc.orig 3--- a/chrome/browser/profiles/profile_avatar_downloader.cc
4+++ chrome/browser/profiles/profile_avatar_downloader.cc 4+++ b/chrome/browser/profiles/profile_avatar_downloader.cc
5@@ -27,8 +27,7 @@ ProfileAvatarDownloader::ProfileAvatarDo 5@@ -27,8 +27,7 @@ ProfileAvatarDownloader::ProfileAvatarDo
6 FetchCompleteCallback callback) 6 FetchCompleteCallback callback)
7 : icon_index_(icon_index), callback_(std::move(callback)) { 7 : icon_index_(icon_index), callback_(std::move(callback)) {
diff --git a/www/chromium-uc/patches/core/ungoogled-chromium/disable-signin.patch b/www/chromium-uc/patches/core/ungoogled-chromium/disable-signin.patch
index b2b6081..7e89e9d 100644
--- a/www/chromium-uc/patches/core/ungoogled-chromium/disable-signin.patch
+++ b/www/chromium-uc/patches/core/ungoogled-chromium/disable-signin.patch
@@ -1,8 +1,8 @@
1# Disables browser sign-in 1# Disables browser sign-in
2 2
3--- chrome/browser/ui/chrome_pages.cc.orig 3--- a/chrome/browser/ui/chrome_pages.cc
4+++ chrome/browser/ui/chrome_pages.cc 4+++ b/chrome/browser/ui/chrome_pages.cc
5@@ -480,32 +480,6 @@ GURL GetOSSettingsUrl(const std::string& 5@@ -520,32 +520,6 @@ GURL GetOSSettingsUrl(const std::string&
6 void ShowBrowserSignin(Browser* browser, 6 void ShowBrowserSignin(Browser* browser,
7 signin_metrics::AccessPoint access_point, 7 signin_metrics::AccessPoint access_point,
8 signin::ConsentLevel consent_level) { 8 signin::ConsentLevel consent_level) {
diff --git a/www/chromium-uc/patches/core/ungoogled-chromium/disable-untraceable-urls.patch b/www/chromium-uc/patches/core/ungoogled-chromium/disable-untraceable-urls.patch
index 612ec7d..59ea41b 100644
--- a/www/chromium-uc/patches/core/ungoogled-chromium/disable-untraceable-urls.patch
+++ b/www/chromium-uc/patches/core/ungoogled-chromium/disable-untraceable-urls.patch
@@ -1,7 +1,7 @@
1# Disable additional URLs that are not caught by the "trk" scheme 1# Disable additional URLs that are not caught by the "trk" scheme
2 2
3--- chrome/browser/plugins/plugins_resource_service.cc.orig 3--- a/chrome/browser/plugins/plugins_resource_service.cc
4+++ chrome/browser/plugins/plugins_resource_service.cc 4+++ b/chrome/browser/plugins/plugins_resource_service.cc
5@@ -53,9 +53,6 @@ const int kStartResourceFetchDelayMs = 6 5@@ -53,9 +53,6 @@ const int kStartResourceFetchDelayMs = 6
6 // Delay between calls to update the cache 1 day and 2 minutes in testing mode. 6 // Delay between calls to update the cache 1 day and 2 minutes in testing mode.
7 const int kCacheUpdateDelayMs = 24 * 60 * 60 * 1000; 7 const int kCacheUpdateDelayMs = 24 * 60 * 60 * 1000;
@@ -11,7 +11,7 @@
11- 11-
12 GURL GetPluginsServerURL() { 12 GURL GetPluginsServerURL() {
13 std::string filename; 13 std::string filename;
14 #if defined(OS_WIN) 14 #if BUILDFLAG(IS_WIN)
15@@ -70,7 +67,7 @@ GURL GetPluginsServerURL() { 15@@ -70,7 +67,7 @@ GURL GetPluginsServerURL() {
16 #error Unknown platform 16 #error Unknown platform
17 #endif 17 #endif
@@ -21,38 +21,9 @@
21 } 21 }
22 22
23 } // namespace 23 } // namespace
24--- components/safe_browsing/content/browser/client_side_model_loader.cc.orig 24--- a/rlz/lib/financial_ping.cc
25+++ components/safe_browsing/content/browser/client_side_model_loader.cc 25+++ b/rlz/lib/financial_ping.cc
26@@ -61,8 +61,6 @@ std::string ReadFileIntoString(base::Fil 26@@ -336,7 +336,7 @@ FinancialPing::PingResponse FinancialPin
27 // Model Loader strings
28 const size_t ModelLoader::kMaxModelSizeBytes = 150 * 1024;
29 const int ModelLoader::kClientModelFetchIntervalMs = 3600 * 1000;
30-const char ModelLoader::kClientModelUrlPrefix[] =
31- "https://ssl.gstatic.com/safebrowsing/csd/";
32 const char ModelLoader::kClientModelNamePattern[] =
33 "client_model_v5%s_variation_%d.pb";
34 #if !BUILDFLAG(FULL_SAFE_BROWSING)
35@@ -123,7 +121,7 @@ ModelLoader::ModelLoader(
36 scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory,
37 bool is_extended_reporting)
38 : name_(FillInModelName(is_extended_reporting, GetModelNumber())),
39- url_(kClientModelUrlPrefix + name_),
40+ url_("about:blank"),
41 update_renderers_callback_(update_renderers_callback),
42 url_loader_factory_(url_loader_factory),
43 last_client_model_status_(ClientModelStatus::MODEL_NEVER_FETCHED) {
44@@ -136,7 +134,7 @@ ModelLoader::ModelLoader(
45 scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory,
46 const std::string& model_name)
47 : name_(model_name),
48- url_(kClientModelUrlPrefix + name_),
49+ url_("about:blank"),
50 update_renderers_callback_(update_renderers_callback),
51 url_loader_factory_(url_loader_factory),
52 last_client_model_status_(ClientModelStatus::MODEL_NEVER_FETCHED) {
53--- rlz/lib/financial_ping.cc.orig
54+++ rlz/lib/financial_ping.cc
55@@ -338,7 +338,7 @@ FinancialPing::PingResponse FinancialPin
56 27
57 // Open network connection. 28 // Open network connection.
58 InternetHandle connection_handle = InternetConnectA(inet_handle, 29 InternetHandle connection_handle = InternetConnectA(inet_handle,
@@ -61,7 +32,7 @@
61 INTERNET_FLAG_NO_CACHE_WRITE, 0); 32 INTERNET_FLAG_NO_CACHE_WRITE, 0);
62 if (!connection_handle) 33 if (!connection_handle)
63 return PING_FAILURE; 34 return PING_FAILURE;
64@@ -382,7 +382,7 @@ FinancialPing::PingResponse FinancialPin 35@@ -380,7 +380,7 @@ FinancialPing::PingResponse FinancialPin
65 return PING_SUCCESSFUL; 36 return PING_SUCCESSFUL;
66 #else 37 #else
67 std::string url = 38 std::string url =
@@ -70,8 +41,8 @@
70 41
71 // Use a waitable event to cause this function to block, to match the 42 // Use a waitable event to cause this function to block, to match the
72 // wininet implementation. 43 // wininet implementation.
73--- rlz/lib/lib_values.cc.orig 44--- a/rlz/lib/lib_values.cc
74+++ rlz/lib/lib_values.cc 45+++ b/rlz/lib/lib_values.cc
75@@ -40,7 +40,6 @@ const char kSetDccResponseVariable[] = " 46@@ -40,7 +40,6 @@ const char kSetDccResponseVariable[] = "
76 // 47 //
77 48
@@ -80,8 +51,8 @@
80 const int kFinancialPort = 443; 51 const int kFinancialPort = 443;
81 52
82 // Ping times in 100-nanosecond intervals. 53 // Ping times in 100-nanosecond intervals.
83--- rlz/lib/lib_values.h.orig 54--- a/rlz/lib/lib_values.h
84+++ rlz/lib/lib_values.h 55+++ b/rlz/lib/lib_values.h
85@@ -72,7 +72,6 @@ extern const char kSetDccResponseVariabl 56@@ -72,7 +72,6 @@ extern const char kSetDccResponseVariabl
86 // 57 //
87 58
diff --git a/www/chromium-uc/patches/core/ungoogled-chromium/disable-webrtc-log-uploader.patch b/www/chromium-uc/patches/core/ungoogled-chromium/disable-webrtc-log-uploader.patch
index 9416c17..8efb360 100644
--- a/www/chromium-uc/patches/core/ungoogled-chromium/disable-webrtc-log-uploader.patch
+++ b/www/chromium-uc/patches/core/ungoogled-chromium/disable-webrtc-log-uploader.patch
@@ -1,8 +1,8 @@
1# Disables WebRTC log uploading to Google 1# Disables WebRTC log uploading to Google
2 2
3--- chrome/browser/media/webrtc/webrtc_log_uploader.cc.orig 3--- a/chrome/browser/media/webrtc/webrtc_log_uploader.cc
4+++ chrome/browser/media/webrtc/webrtc_log_uploader.cc 4+++ b/chrome/browser/media/webrtc/webrtc_log_uploader.cc
5@@ -127,28 +127,11 @@ void WebRtcLogUploader::LoggingStoppedDo 5@@ -126,28 +126,11 @@ void WebRtcLogUploader::LoggingStoppedDo
6 DCHECK(meta_data.get()); 6 DCHECK(meta_data.get());
7 DCHECK(!upload_done_data.paths.directory.empty()); 7 DCHECK(!upload_done_data.paths.directory.empty());
8 8
@@ -32,7 +32,7 @@
32 } 32 }
33 33
34 void WebRtcLogUploader::PrepareMultipartPostData( 34 void WebRtcLogUploader::PrepareMultipartPostData(
35@@ -159,28 +142,7 @@ void WebRtcLogUploader::PrepareMultipart 35@@ -158,28 +141,7 @@ void WebRtcLogUploader::PrepareMultipart
36 DCHECK(!compressed_log.empty()); 36 DCHECK(!compressed_log.empty());
37 DCHECK(meta_data.get()); 37 DCHECK(meta_data.get());
38 38
@@ -62,7 +62,7 @@
62 } 62 }
63 63
64 void WebRtcLogUploader::UploadStoredLog( 64 void WebRtcLogUploader::UploadStoredLog(
65@@ -246,49 +208,6 @@ void WebRtcLogUploader::LoggingStoppedDo 65@@ -245,49 +207,6 @@ void WebRtcLogUploader::LoggingStoppedDo
66 DCHECK(log_buffer.get()); 66 DCHECK(log_buffer.get());
67 DCHECK(!log_paths.directory.empty()); 67 DCHECK(!log_paths.directory.empty());
68 68
diff --git a/www/chromium-uc/patches/core/ungoogled-chromium/disable-webstore-urls.patch b/www/chromium-uc/patches/core/ungoogled-chromium/disable-webstore-urls.patch
index 8259c4d..060db05 100644
--- a/www/chromium-uc/patches/core/ungoogled-chromium/disable-webstore-urls.patch
+++ b/www/chromium-uc/patches/core/ungoogled-chromium/disable-webstore-urls.patch
@@ -1,8 +1,8 @@
1# Disables Chrome Webstore-related URLs and other internal functionality. Mainly for disabling auto updates via the Chrome Webstore. 1# Disables Chrome Webstore-related URLs and other internal functionality. Mainly for disabling auto updates via the Chrome Webstore.
2 2
3--- chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc.orig 3--- a/chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc
4+++ chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc 4+++ b/chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc
5@@ -655,10 +655,6 @@ std::vector<url::Origin> ChromeContentBr 5@@ -555,10 +555,6 @@ std::vector<url::Origin> ChromeContentBr
6 GetOriginsRequiringDedicatedProcess() { 6 GetOriginsRequiringDedicatedProcess() {
7 std::vector<url::Origin> list; 7 std::vector<url::Origin> list;
8 8
@@ -13,9 +13,9 @@
13 return list; 13 return list;
14 } 14 }
15 15
16--- chrome/browser/extensions/chrome_content_verifier_delegate.cc.orig 16--- a/chrome/browser/extensions/chrome_content_verifier_delegate.cc
17+++ chrome/browser/extensions/chrome_content_verifier_delegate.cc 17+++ b/chrome/browser/extensions/chrome_content_verifier_delegate.cc
18@@ -288,17 +288,7 @@ bool ChromeContentVerifierDelegate::IsFr 18@@ -289,17 +289,7 @@ bool ChromeContentVerifierDelegate::IsFr
19 // between which extensions are considered in-store. 19 // between which extensions are considered in-store.
20 // See https://crbug.com/766806 for details. 20 // See https://crbug.com/766806 for details.
21 if (!InstallVerifier::IsFromStore(extension, context_)) { 21 if (!InstallVerifier::IsFromStore(extension, context_)) {
@@ -34,8 +34,8 @@
34 } 34 }
35 return true; 35 return true;
36 } 36 }
37--- chrome/browser/extensions/extension_migrator.cc.orig 37--- a/chrome/browser/extensions/extension_migrator.cc
38+++ chrome/browser/extensions/extension_migrator.cc 38+++ b/chrome/browser/extensions/extension_migrator.cc
39@@ -18,7 +18,9 @@ namespace extensions { 39@@ -18,7 +18,9 @@ namespace extensions {
40 ExtensionMigrator::ExtensionMigrator(Profile* profile, 40 ExtensionMigrator::ExtensionMigrator(Profile* profile,
41 const std::string& old_id, 41 const std::string& old_id,
@@ -56,27 +56,27 @@
56 56
57 prefs->SetKey(new_id_, base::Value::FromUniquePtrValue(std::move(entry))); 57 prefs->SetKey(new_id_, base::Value::FromUniquePtrValue(std::move(entry)));
58 } 58 }
59--- chrome/browser/extensions/extension_migrator.h.orig 59--- a/chrome/browser/extensions/extension_migrator.h
60+++ chrome/browser/extensions/extension_migrator.h 60+++ b/chrome/browser/extensions/extension_migrator.h
61@@ -9,6 +9,7 @@ 61@@ -9,6 +9,7 @@
62 62
63 #include "base/macros.h" 63 #include "base/memory/raw_ptr.h"
64 #include "chrome/browser/extensions/external_loader.h" 64 #include "chrome/browser/extensions/external_loader.h"
65+#include "url/gurl.h" 65+#include "url/gurl.h"
66 66
67 class Profile; 67 class Profile;
68 68
69@@ -40,6 +41,7 @@ class ExtensionMigrator : public Externa 69@@ -40,6 +41,7 @@ class ExtensionMigrator : public Externa
70 Profile* profile_; 70 raw_ptr<Profile> profile_;
71 const std::string old_id_; 71 const std::string old_id_;
72 const std::string new_id_; 72 const std::string new_id_;
73+ GURL chrome_blank_; 73+ GURL chrome_blank_;
74 }; 74 };
75 75
76 } // namespace extensions 76 } // namespace extensions
77--- extensions/browser/updater/extension_downloader.cc.orig 77--- a/extensions/browser/updater/extension_downloader.cc
78+++ extensions/browser/updater/extension_downloader.cc 78+++ b/extensions/browser/updater/extension_downloader.cc
79@@ -93,27 +93,18 @@ const char kNotFromWebstoreInstallSource 79@@ -92,27 +92,18 @@ const char kNotFromWebstoreInstallSource
80 const char kDefaultInstallSource[] = ""; 80 const char kDefaultInstallSource[] = "";
81 const char kReinstallInstallSource[] = "reinstall"; 81 const char kReinstallInstallSource[] = "reinstall";
82 82
@@ -106,47 +106,50 @@
106 106
107 bool ShouldRetryRequest(const network::SimpleURLLoader* loader) { 107 bool ShouldRetryRequest(const network::SimpleURLLoader* loader) {
108 DCHECK(loader); 108 DCHECK(loader);
109@@ -309,12 +300,6 @@ void ExtensionDownloader::DoStartAllPend 109@@ -377,10 +368,6 @@ void ExtensionDownloader::DoStartAllPend
110 ReportStats(); 110 }
111 url_stats_ = URLStats(); 111 pending_tasks_.clear();
112 112
113- for (auto it = fetches_preparing_.begin(); it != fetches_preparing_.end(); 113- for (auto& fetch_list : fetches_preparing) {
114- ++it) { 114- for (auto& fetch : fetch_list.second)
115- std::vector<std::unique_ptr<ManifestFetchData>>& list = it->second; 115- StartUpdateCheck(std::move(fetch));
116- for (size_t i = 0; i < list.size(); ++i)
117- StartUpdateCheck(std::move(list[i]));
118- } 116- }
119 fetches_preparing_.clear();
120 } 117 }
121 118
122@@ -353,11 +338,6 @@ bool ExtensionDownloader::AddExtensionDa 119 void ExtensionDownloader::SetIdentityManager(
123 return false; 120@@ -401,9 +388,7 @@ void ExtensionDownloader::SetBackoffPoli
124 }
125
126- // Make sure we use SSL for store-hosted extensions.
127- if (extension_urls::IsWebstoreUpdateUrl(update_url) &&
128- !update_url.SchemeIsCryptographic())
129- update_url = extension_urls::GetWebstoreUpdateUrl();
130-
131 // Skip extensions with empty IDs.
132 if (id.empty()) {
133 DLOG(WARNING) << "Found extension with empty ID";
134@@ -366,12 +346,10 @@ bool ExtensionDownloader::AddExtensionDa
135 return false;
136 }
137 121
122 void ExtensionDownloader::UpdateURLStats(const GURL& update_url,
123 Manifest::Type extension_type) {
138- if (update_url.DomainIs(kGoogleDotCom)) { 124- if (update_url.DomainIs(kGoogleDotCom)) {
139- url_stats_.google_url_count++; 125- url_stats_.google_url_count++;
140- } else if (update_url.is_empty()) { 126- } else if (update_url.is_empty()) {
141+ if (update_url.is_empty()) { 127+ if (update_url.is_empty()) {
142 url_stats_.no_url_count++; 128 url_stats_.no_url_count++;
143 // Fill in default update URL.
144- update_url = extension_urls::GetWebstoreUpdateUrl();
145+ update_url = GURL("chrome://blank/");
146 } else { 129 } else {
147 url_stats_.other_url_count++; 130 url_stats_.other_url_count++;
131@@ -440,11 +425,6 @@ bool ExtensionDownloader::AddExtensionDa
132 return false;
133 }
134
135- // Make sure we use SSL for store-hosted extensions.
136- if (extension_urls::IsWebstoreUpdateUrl(task.update_url) &&
137- !task.update_url.SchemeIsCryptographic())
138- task.update_url = extension_urls::GetWebstoreUpdateUrl();
139-
140 // Skip extensions with empty IDs.
141 if (task.id.empty()) {
142 DLOG(WARNING) << "Found extension with empty ID";
143@@ -455,7 +435,7 @@ bool ExtensionDownloader::AddExtensionDa
144 UpdateURLStats(task.update_url, task.type);
145 if (task.update_url.is_empty()) {
146 // Fill in default update URL.
147- task.update_url = extension_urls::GetWebstoreUpdateUrl();
148+ task.update_url = GURL("chrome://blank/");
148 } 149 }
149@@ -845,20 +823,6 @@ void ExtensionDownloader::HandleManifest 150
151 DCHECK(!task.update_url.is_empty());
152@@ -865,20 +845,6 @@ void ExtensionDownloader::HandleManifest
150 update->info); 153 update->info);
151 } 154 }
152 155
@@ -167,7 +170,7 @@
167 NotifyExtensionsDownloadStageChanged( 170 NotifyExtensionsDownloadStageChanged(
168 no_updates, ExtensionDownloaderDelegate::Stage::FINISHED); 171 no_updates, ExtensionDownloaderDelegate::Stage::FINISHED);
169 NotifyExtensionsDownloadFailed( 172 NotifyExtensionsDownloadFailed(
170@@ -1417,11 +1381,7 @@ bool ExtensionDownloader::IterateFetchCr 173@@ -1437,11 +1403,7 @@ bool ExtensionDownloader::IterateFetchCr
171 // fetch. 174 // fetch.
172 switch (fetch->credentials) { 175 switch (fetch->credentials) {
173 case ExtensionFetch::CREDENTIALS_NONE: 176 case ExtensionFetch::CREDENTIALS_NONE:
diff --git a/www/chromium-uc/patches/core/ungoogled-chromium/doh-changes.patch b/www/chromium-uc/patches/core/ungoogled-chromium/doh-changes.patch
index 4ee53be..9784907 100644
--- a/www/chromium-uc/patches/core/ungoogled-chromium/doh-changes.patch
+++ b/www/chromium-uc/patches/core/ungoogled-chromium/doh-changes.patch
@@ -1,53 +1,59 @@
1--- chrome/common/chrome_features.cc.orig 1--- a/chrome/common/chrome_features.cc
2+++ chrome/common/chrome_features.cc 2+++ b/chrome/common/chrome_features.cc
3@@ -323,12 +323,7 @@ const base::Feature kDesktopPWAsWebBundl 3@@ -332,12 +332,7 @@ const base::Feature kKeepForceInstalledP
4 // Enable DNS over HTTPS (DoH). 4 // Enable DNS over HTTPS (DoH).
5 const base::Feature kDnsOverHttps { 5 const base::Feature kDnsOverHttps {
6 "DnsOverHttps", 6 "DnsOverHttps",
7-#if defined(OS_WIN) || defined(OS_CHROMEOS) || defined(OS_MAC) || \ 7-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || \
8- defined(OS_ANDROID) || defined(OS_LINUX) || defined(OS_BSD) 8- BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX)
9- base::FEATURE_ENABLED_BY_DEFAULT 9- base::FEATURE_ENABLED_BY_DEFAULT
10-#else 10-#else
11 base::FEATURE_DISABLED_BY_DEFAULT 11 base::FEATURE_DISABLED_BY_DEFAULT
12-#endif 12-#endif
13 }; 13 };
14 14
15 // Provides a mechanism to remove providers from the dropdown list in the 15 // Set whether fallback to insecure DNS is allowed by default. This setting may
16--- net/dns/public/doh_provider_entry.cc.orig 16--- a/net/dns/public/doh_provider_entry.cc
17+++ net/dns/public/doh_provider_entry.cc 17+++ b/net/dns/public/doh_provider_entry.cc
18@@ -117,24 +117,6 @@ const DohProviderEntry::List& DohProvide 18@@ -149,30 +149,6 @@ const DohProviderEntry::List& DohProvide
19 /*privacy_policy=*/"https://dns.sb/privacy/",
20 /*display_globally=*/false, /*display_countries=*/{"EE", "DE"}, 19 /*display_globally=*/false, /*display_countries=*/{"EE", "DE"},
21 LoggingLevel::kNormal), 20 LoggingLevel::kNormal),
22- new DohProviderEntry("Google", DohProviderIdForHistogram::kGoogle, 21 new DohProviderEntry(
23- {"8.8.8.8", "8.8.4.4", "2001:4860:4860::8888", 22- "Google",
24- "2001:4860:4860::8844"}, 23- base::Feature{"DohProviderGoogle", base::FEATURE_ENABLED_BY_DEFAULT},
25- {"dns.google", "dns.google.com", 24- DohProviderIdForHistogram::kGoogle,
26- "8888.google"} /* dns_over_tls_hostnames */, 25- {"8.8.8.8", "8.8.4.4", "2001:4860:4860::8888",
27- "https://dns.google/dns-query{?dns}", 26- "2001:4860:4860::8844"},
28- "Google (Public DNS)" /* ui_name */, 27- /*dns_over_tls_hostnames=*/
29- "https://developers.google.com/speed/public-dns/" 28- {"dns.google", "dns.google.com", "8888.google"},
30- "privacy" /* privacy_policy */, 29- "https://dns.google/dns-query{?dns}",
31- true /* display_globally */, 30- /*ui_name=*/"Google (Public DNS)",
32- {} /* display_countries */, LoggingLevel::kExtra), 31- "https://developers.google.com/speed/public-dns/"
32- /*privacy_policy=*/"privacy",
33- /*display_globally=*/true, /*display_countries=*/{},
34- LoggingLevel::kExtra),
35- new DohProviderEntry("GoogleDns64",
36- base::Feature{"DohProviderGoogleDns64",
37- base::FEATURE_ENABLED_BY_DEFAULT},
38- /*provider_id_for_histogram=*/absl::nullopt,
39- {"2001:4860:4860::64", "2001:4860:4860::6464"},
40- /*dns_over_tls_hostnames=*/{"dns64.dns.google"},
41- "https://dns64.dns.google/dns-query{?dns}",
42- /*ui_name=*/"", /*privacy_policy=*/"",
43- /*display_globally=*/false,
44- /*display_countries=*/{}, LoggingLevel::kNormal),
33- new DohProviderEntry( 45- new DohProviderEntry(
34- "GoogleDns64", absl::nullopt /* provider_id_for_histogram */, 46 "Iij",
35- {"2001:4860:4860::64", "2001:4860:4860::6464"}, 47 base::Feature{"DohProviderIij", base::FEATURE_ENABLED_BY_DEFAULT},
36- {"dns64.dns.google"} /* dns_over_tls_hostnames */, 48 DohProviderIdForHistogram::kIij, /*ip_strs=*/{},
37- "https://dns64.dns.google/dns-query{?dns}", "" /* ui_name */, 49--- a/services/network/public/cpp/features.cc
38- "" /* privacy_policy */, false /* display_globally */, 50+++ b/services/network/public/cpp/features.cc
39- {} /* display_countries */, LoggingLevel::kNormal), 51@@ -92,12 +92,7 @@ const base::Feature kSplitAuthCacheByNet
40 new DohProviderEntry("Iij", DohProviderIdForHistogram::kIij,
41 {} /* ip_strs */, {} /* dns_over_tls_hostnames */,
42 "https://public.dns.iij.jp/dns-query",
43--- services/network/public/cpp/features.cc.orig
44+++ services/network/public/cpp/features.cc
45@@ -114,12 +114,7 @@ const base::Feature kSplitAuthCacheByNet
46 // Enable usage of hardcoded DoH upgrade mapping for use in automatic mode. 52 // Enable usage of hardcoded DoH upgrade mapping for use in automatic mode.
47 const base::Feature kDnsOverHttpsUpgrade { 53 const base::Feature kDnsOverHttpsUpgrade {
48 "DnsOverHttpsUpgrade", 54 "DnsOverHttpsUpgrade",
49-#if BUILDFLAG(IS_CHROMEOS_ASH) || defined(OS_MAC) || defined(OS_ANDROID) || \ 55-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || \
50- defined(OS_WIN) 56- BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX)
51- base::FEATURE_ENABLED_BY_DEFAULT 57- base::FEATURE_ENABLED_BY_DEFAULT
52-#else 58-#else
53 base::FEATURE_DISABLED_BY_DEFAULT 59 base::FEATURE_DISABLED_BY_DEFAULT
diff --git a/www/chromium-uc/patches/core/ungoogled-chromium/fix-building-with-prunned-binaries.patch b/www/chromium-uc/patches/core/ungoogled-chromium/fix-building-with-prunned-binaries.patch
index 16b7351..da8bcc8 100644
--- a/www/chromium-uc/patches/core/ungoogled-chromium/fix-building-with-prunned-binaries.patch
+++ b/www/chromium-uc/patches/core/ungoogled-chromium/fix-building-with-prunned-binaries.patch
@@ -1,9 +1,9 @@
1# Contains tests and features that are unneeded and would otherwise 1# Contains tests and features that are unneeded and would otherwise
2# require binaries to be whitelisted in the pruning list 2# require binaries to be whitelisted in the pruning list
3 3
4--- chrome/test/chromedriver/BUILD.gn.orig 4--- a/chrome/test/chromedriver/BUILD.gn
5+++ chrome/test/chromedriver/BUILD.gn 5+++ b/chrome/test/chromedriver/BUILD.gn
6@@ -311,11 +311,7 @@ source_set("lib") { 6@@ -335,11 +335,7 @@ source_set("lib") {
7 } 7 }
8 } 8 }
9 9
@@ -15,7 +15,7 @@
15 15
16 executable("$chromedriver_output") { 16 executable("$chromedriver_output") {
17 testonly = true 17 testonly = true
18@@ -337,16 +333,6 @@ executable("$chromedriver_output") { 18@@ -361,16 +357,6 @@ executable("$chromedriver_output") {
19 } 19 }
20 } 20 }
21 21
@@ -32,11 +32,11 @@
32 python_library("chromedriver_py_tests") { 32 python_library("chromedriver_py_tests") {
33 testonly = true 33 testonly = true
34 deps = [ 34 deps = [
35--- third_party/devtools-frontend/src/BUILD.gn.orig 35--- a/third_party/devtools-frontend/src/BUILD.gn
36+++ third_party/devtools-frontend/src/BUILD.gn 36+++ b/third_party/devtools-frontend/src/BUILD.gn
37@@ -136,7 +136,6 @@ foreach(module_file, non_autostart_non_r 37@@ -13,7 +13,6 @@ import("./third_party/blink/public/publi
38
38 devtools_frontend_resources_deps = [ 39 devtools_frontend_resources_deps = [
39 ":build_release_devtools",
40 "front_end", 40 "front_end",
41- "test", 41- "test",
42 ] 42 ]
diff --git a/www/chromium-uc/patches/core/ungoogled-chromium/fix-building-without-enabling-reporting.patch b/www/chromium-uc/patches/core/ungoogled-chromium/fix-building-without-enabling-reporting.patch
deleted file mode 100644
index f86694a..0000000
--- a/www/chromium-uc/patches/core/ungoogled-chromium/fix-building-without-enabling-reporting.patch
+++ /dev/null
@@ -1,215 +0,0 @@
1--- content/browser/BUILD.gn.orig
2+++ content/browser/BUILD.gn
3@@ -1274,6 +1274,10 @@ source_set("browser") {
4 "net/browser_online_state_observer.cc",
5 "net/browser_online_state_observer.h",
6 "net/cookie_store_factory.cc",
7+ "net/cross_origin_embedder_policy_reporter.cc",
8+ "net/cross_origin_embedder_policy_reporter.h",
9+ "net/cross_origin_opener_policy_reporter.cc",
10+ "net/cross_origin_opener_policy_reporter.h",
11 "net/network_errors_listing_ui.cc",
12 "net/network_errors_listing_ui.h",
13 "net/network_quality_observer_impl.cc",
14@@ -3034,10 +3038,6 @@ source_set("browser") {
15
16 if (enable_reporting) {
17 sources += [
18- "net/cross_origin_embedder_policy_reporter.cc",
19- "net/cross_origin_embedder_policy_reporter.h",
20- "net/cross_origin_opener_policy_reporter.cc",
21- "net/cross_origin_opener_policy_reporter.h",
22 "net/reporting_service_proxy.cc",
23 "net/reporting_service_proxy.h",
24 ]
25--- content/browser/devtools/protocol/network_handler.h.orig
26+++ content/browser/devtools/protocol/network_handler.h
27@@ -309,8 +309,10 @@ class NetworkHandler : public DevToolsDo
28 Response response,
29 mojo::ScopedDataPipeConsumerHandle pipe,
30 const std::string& mime_type);
31+#if BUILDFLAG(ENABLE_REPORTING)
32 std::unique_ptr<protocol::Network::ReportingApiReport> BuildProtocolReport(
33 const net::ReportingReport& report);
34+#endif
35
36 // TODO(dgozman): Remove this.
37 const std::string host_id_;
38--- content/public/common/content_switch_dependent_feature_overrides.cc.orig
39+++ content/public/common/content_switch_dependent_feature_overrides.cc
40@@ -40,9 +40,11 @@ GetSwitchDependentFeatureOverrides(const
41 {switches::kEnableExperimentalWebPlatformFeatures,
42 std::cref(features::kDocumentPolicyNegotiation),
43 base::FeatureList::OVERRIDE_ENABLE_FEATURE},
44+#if BUILDFLAG(ENABLE_REPORTING)
45 {switches::kEnableExperimentalWebPlatformFeatures,
46 std::cref(net::features::kDocumentReporting),
47 base::FeatureList::OVERRIDE_ENABLE_FEATURE},
48+#endif
49 {switches::kEnableExperimentalWebPlatformFeatures,
50 std::cref(features::kExperimentalContentSecurityPolicyFeatures),
51 base::FeatureList::OVERRIDE_ENABLE_FEATURE},
52--- services/network/network_context.cc.orig
53+++ services/network/network_context.cc
54@@ -1140,6 +1140,11 @@ void NetworkContext::QueueSignedExchange
55 const net::NetworkIsolationKey& network_isolation_key) {
56 NOTREACHED();
57 }
58+
59+void NetworkContext::AddReportingApiObserver(
60+ mojo::PendingRemote<network::mojom::ReportingApiObserver> observer) {
61+ NOTREACHED();
62+}
63 #endif // BUILDFLAG(ENABLE_REPORTING)
64
65 void NetworkContext::ClearDomainReliability(
66--- services/network/network_context.h.orig
67+++ services/network/network_context.h
68@@ -570,10 +570,10 @@ class COMPONENT_EXPORT(NETWORK_SERVICE)
69 return require_network_isolation_key_;
70 }
71
72-#if BUILDFLAG(ENABLE_REPORTING)
73 void AddReportingApiObserver(
74 mojo::PendingRemote<network::mojom::ReportingApiObserver> observer)
75 override;
76+#if BUILDFLAG(ENABLE_REPORTING)
77 void OnReportAdded(const net::ReportingReport* service_report) override;
78 void OnReportUpdated(const net::ReportingReport* service_report) override;
79 void OnReportingObserverDisconnect(mojo::RemoteSetElementId mojo_id);
80--- third_party/blink/renderer/core/frame/local_frame.cc.orig
81+++ third_party/blink/renderer/core/frame/local_frame.cc
82@@ -39,6 +39,7 @@
83 #include "base/values.h"
84 #include "mojo/public/cpp/bindings/self_owned_receiver.h"
85 #include "mojo/public/cpp/system/message_pipe.h"
86+#include "net/net_buildflags.h"
87 #include "services/data_decoder/public/mojom/resource_snapshot_for_web_bundle.mojom-blink.h"
88 #include "services/network/public/cpp/features.h"
89 #include "services/network/public/mojom/content_security_policy.mojom-blink.h"
90@@ -2304,9 +2305,11 @@ const base::UnguessableToken& LocalFrame
91 return base::UnguessableToken::Null();
92 }
93
94+#if BUILDFLAG(ENABLE_REPORTING)
95 mojom::blink::ReportingServiceProxy* LocalFrame::GetReportingService() {
96 return mojo_handler_->ReportingService();
97 }
98+#endif
99
100 // static
101 void LocalFrame::NotifyUserActivation(
102--- third_party/blink/renderer/core/frame/local_frame.h.orig
103+++ third_party/blink/renderer/core/frame/local_frame.h
104@@ -37,6 +37,7 @@
105 #include "build/build_config.h"
106 #include "mojo/public/cpp/bindings/pending_associated_receiver.h"
107 #include "mojo/public/cpp/bindings/pending_receiver.h"
108+#include "net/net_buildflags.h"
109 #include "services/device/public/mojom/device_posture_provider.mojom-blink-forward.h"
110 #include "services/network/public/mojom/fetch_api.mojom-blink-forward.h"
111 #include "third_party/blink/public/common/frame/frame_ad_evidence.h"
112@@ -546,7 +547,9 @@ class CORE_EXPORT LocalFrame final : pub
113
114 SmoothScrollSequencer& GetSmoothScrollSequencer();
115
116+#if BUILDFLAG(ENABLE_REPORTING)
117 mojom::blink::ReportingServiceProxy* GetReportingService();
118+#endif
119
120 // Returns the frame host ptr. The interface returned is backed by an
121 // associated interface with the legacy Chrome IPC channel.
122--- third_party/blink/renderer/core/frame/reporting_context.cc.orig
123+++ third_party/blink/renderer/core/frame/reporting_context.cc
124@@ -4,6 +4,7 @@
125
126 #include "third_party/blink/renderer/core/frame/reporting_context.h"
127
128+#include "net/net_buildflags.h"
129 #include "third_party/blink/public/common/browser_interface_broker_proxy.h"
130 #include "third_party/blink/public/platform/platform.h"
131 #include "third_party/blink/public/platform/task_type.h"
132@@ -54,7 +55,9 @@ const char ReportingContext::kSupplement
133 ReportingContext::ReportingContext(ExecutionContext& context)
134 : Supplement<ExecutionContext>(context),
135 execution_context_(context),
136+#if BUILDFLAG(ENABLE_REPORTING)
137 reporting_service_(&context),
138+#endif
139 receiver_(this, &context) {}
140
141 // static
142@@ -118,7 +121,9 @@ void ReportingContext::Trace(Visitor* vi
143 visitor->Trace(observers_);
144 visitor->Trace(report_buffer_);
145 visitor->Trace(execution_context_);
146+#if BUILDFLAG(ENABLE_REPORTING)
147 visitor->Trace(reporting_service_);
148+#endif
149 visitor->Trace(receiver_);
150 Supplement<ExecutionContext>::Trace(visitor);
151 }
152@@ -140,6 +145,7 @@ void ReportingContext::CountReport(Repor
153 UseCounter::Count(execution_context_, feature);
154 }
155
156+#if BUILDFLAG(ENABLE_REPORTING)
157 const HeapMojoRemote<mojom::blink::ReportingServiceProxy>&
158 ReportingContext::GetReportingService() const {
159 if (!reporting_service_.is_bound()) {
160@@ -149,6 +155,7 @@ ReportingContext::GetReportingService()
161 }
162 return reporting_service_;
163 }
164+#endif
165
166 void ReportingContext::NotifyInternal(Report* report) {
167 // Buffer the report.
168@@ -171,6 +178,7 @@ void ReportingContext::NotifyInternal(Re
169
170 void ReportingContext::SendToReportingAPI(Report* report,
171 const String& endpoint) const {
172+#if BUILDFLAG(ENABLE_REPORTING)
173 const String& type = report->type();
174 if (!(type == ReportType::kCSPViolation || type == ReportType::kDeprecation ||
175 type == ReportType::kPermissionsPolicyViolation ||
176@@ -226,6 +234,7 @@ void ReportingContext::SendToReportingAP
177 url, endpoint, body->featureId(), body->disposition(), body->message(),
178 body->sourceFile(), line_number, column_number);
179 }
180+#endif
181 }
182
183 } // namespace blink
184--- third_party/blink/renderer/core/frame/reporting_context.h.orig
185+++ third_party/blink/renderer/core/frame/reporting_context.h
186@@ -5,6 +5,7 @@
187 #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_REPORTING_CONTEXT_H_
188 #define THIRD_PARTY_BLINK_RENDERER_CORE_FRAME_REPORTING_CONTEXT_H_
189
190+#include "net/net_buildflags.h"
191 #include "third_party/blink/public/mojom/frame/reporting_observer.mojom-blink.h"
192 #include "third_party/blink/public/mojom/reporting/reporting.mojom-blink.h"
193 #include "third_party/blink/renderer/core/core_export.h"
194@@ -54,8 +55,10 @@ class CORE_EXPORT ReportingContext : pub
195 // Counts the use of a report type via UseCounter.
196 void CountReport(Report*);
197
198+#if BUILDFLAG(ENABLE_REPORTING)
199 const HeapMojoRemote<mojom::blink::ReportingServiceProxy>&
200 GetReportingService() const;
201+#endif
202
203 void NotifyInternal(Report* report);
204 // Send |report| via the Reporting API to |endpoint|.
205@@ -67,8 +70,10 @@ class CORE_EXPORT ReportingContext : pub
206
207 // This is declared mutable so that the service endpoint can be cached by
208 // const methods.
209+#if BUILDFLAG(ENABLE_REPORTING)
210 mutable HeapMojoRemote<mojom::blink::ReportingServiceProxy>
211 reporting_service_;
212+#endif
213
214 HeapMojoReceiver<mojom::blink::ReportingObserver, ReportingContext> receiver_;
215 };
diff --git a/www/chromium-uc/patches/core/ungoogled-chromium/fix-building-without-one-click-signin.patch b/www/chromium-uc/patches/core/ungoogled-chromium/fix-building-without-one-click-signin.patch
index 17b383f..c3c4de2 100644
--- a/www/chromium-uc/patches/core/ungoogled-chromium/fix-building-without-one-click-signin.patch
+++ b/www/chromium-uc/patches/core/ungoogled-chromium/fix-building-without-one-click-signin.patch
@@ -1,7 +1,7 @@
1# Fix building without one click signin 1# Fix building without one click signin
2 2
3--- chrome/browser/ui/sync/one_click_signin_links_delegate_impl.cc.orig 3--- a/chrome/browser/ui/sync/one_click_signin_links_delegate_impl.cc
4+++ chrome/browser/ui/sync/one_click_signin_links_delegate_impl.cc 4+++ b/chrome/browser/ui/sync/one_click_signin_links_delegate_impl.cc
5@@ -16,9 +16,4 @@ OneClickSigninLinksDelegateImpl::OneClic 5@@ -16,9 +16,4 @@ OneClickSigninLinksDelegateImpl::OneClic
6 OneClickSigninLinksDelegateImpl::~OneClickSigninLinksDelegateImpl() {} 6 OneClickSigninLinksDelegateImpl::~OneClickSigninLinksDelegateImpl() {}
7 7
@@ -12,17 +12,17 @@
12- : WindowOpenDisposition::NEW_FOREGROUND_TAB; 12- : WindowOpenDisposition::NEW_FOREGROUND_TAB;
13- Navigate(&params); 13- Navigate(&params);
14 } 14 }
15--- chrome/browser/ui/webui/signin/inline_login_handler_impl.cc.orig 15--- a/chrome/browser/ui/webui/signin/inline_login_handler_impl.cc
16+++ chrome/browser/ui/webui/signin/inline_login_handler_impl.cc 16+++ b/chrome/browser/ui/webui/signin/inline_login_handler_impl.cc
17@@ -360,6 +360,7 @@ void InlineSigninHelper::OnClientOAuthSu 17@@ -343,6 +343,7 @@ void InlineSigninHelper::OnClientOAuthSu
18 void InlineSigninHelper::OnClientOAuthSuccessAndBrowserOpened(
18 const ClientOAuthResult& result, 19 const ClientOAuthResult& result,
19 Profile* /*profile*/, 20 Profile* /*profile*/) {
20 Profile::CreateStatus /*status*/) {
21+#if BUILDFLAG(ENABLE_ONE_CLICK_SIGNIN) 21+#if BUILDFLAG(ENABLE_ONE_CLICK_SIGNIN)
22 HandlerSigninReason reason = GetHandlerSigninReason(current_url_); 22 HandlerSigninReason reason = GetHandlerSigninReason(current_url_);
23 if (reason == HandlerSigninReason::kFetchLstOnly) { 23 if (reason == HandlerSigninReason::kFetchLstOnly) {
24 // Constants are only available on Windows for the Google Credential 24 // Constants are only available on Windows for the Google Credential
25@@ -436,6 +437,7 @@ void InlineSigninHelper::OnClientOAuthSu 25@@ -419,6 +420,7 @@ void InlineSigninHelper::OnClientOAuthSu
26 } 26 }
27 27
28 base::ThreadTaskRunnerHandle::Get()->DeleteSoon(FROM_HERE, this); 28 base::ThreadTaskRunnerHandle::Get()->DeleteSoon(FROM_HERE, this);
diff --git a/www/chromium-uc/patches/core/ungoogled-chromium/fix-building-without-safebrowsing.patch b/www/chromium-uc/patches/core/ungoogled-chromium/fix-building-without-safebrowsing.patch
index d71a532..b1200f9 100644
--- a/www/chromium-uc/patches/core/ungoogled-chromium/fix-building-without-safebrowsing.patch
+++ b/www/chromium-uc/patches/core/ungoogled-chromium/fix-building-without-safebrowsing.patch
@@ -1,8 +1,17 @@
1# Additional changes to Inox's fix-building-without-safebrowsing.patch 1# Additional changes to Inox's fix-building-without-safebrowsing.patch
2 2
3--- chrome/browser/BUILD.gn.orig 3--- a/chrome/browser/BUILD.gn
4+++ chrome/browser/BUILD.gn 4+++ b/chrome/browser/BUILD.gn
5@@ -1953,7 +1953,6 @@ static_library("browser") { 5@@ -615,8 +615,6 @@ static_library("browser") {
6 "internal_auth.h",
7 "interstitials/chrome_settings_page_helper.cc",
8 "interstitials/chrome_settings_page_helper.h",
9- "interstitials/enterprise_util.cc",
10- "interstitials/enterprise_util.h",
11 "invalidation/profile_invalidation_provider_factory.cc",
12 "invalidation/profile_invalidation_provider_factory.h",
13 "language/language_model_manager_factory.cc",
14@@ -1960,7 +1958,6 @@ static_library("browser") {
6 "//chrome/browser/net:probe_message_proto", 15 "//chrome/browser/net:probe_message_proto",
7 "//chrome/browser/new_tab_page/modules/drive:mojo_bindings", 16 "//chrome/browser/new_tab_page/modules/drive:mojo_bindings",
8 "//chrome/browser/new_tab_page/modules/photos:mojo_bindings", 17 "//chrome/browser/new_tab_page/modules/photos:mojo_bindings",
@@ -10,17 +19,18 @@
10 "//chrome/browser/new_tab_page/modules/task_module:mojo_bindings", 19 "//chrome/browser/new_tab_page/modules/task_module:mojo_bindings",
11 "//chrome/browser/notifications", 20 "//chrome/browser/notifications",
12 "//chrome/browser/notifications/scheduler:factory", 21 "//chrome/browser/notifications/scheduler:factory",
13@@ -3726,9 +3725,6 @@ static_library("browser") { 22@@ -3774,10 +3771,6 @@ static_library("browser") {
14 "download/offline_item_model_manager_factory.h", 23 "download/offline_item_model_manager_factory.h",
15 "enterprise/connectors/analysis/analysis_service_settings.cc", 24 "enterprise/connectors/analysis/analysis_service_settings.cc",
16 "enterprise/connectors/analysis/analysis_service_settings.h", 25 "enterprise/connectors/analysis/analysis_service_settings.h",
17- "enterprise/connectors/analysis/content_analysis_delegate.cc", 26- "enterprise/connectors/analysis/content_analysis_delegate.cc",
18- "enterprise/connectors/analysis/content_analysis_delegate.h", 27- "enterprise/connectors/analysis/content_analysis_delegate.h",
28- "enterprise/connectors/analysis/content_analysis_delegate_base.cc",
19- "enterprise/connectors/analysis/content_analysis_delegate_base.h", 29- "enterprise/connectors/analysis/content_analysis_delegate_base.h",
20 "enterprise/connectors/analysis/content_analysis_dialog.cc", 30 "enterprise/connectors/analysis/content_analysis_dialog.cc",
21 "enterprise/connectors/analysis/content_analysis_dialog.h", 31 "enterprise/connectors/analysis/content_analysis_dialog.h",
22 "enterprise/connectors/analysis/content_analysis_downloads_delegate.cc", 32 "enterprise/connectors/analysis/content_analysis_downloads_delegate.cc",
23@@ -3978,10 +3974,6 @@ static_library("browser") { 33@@ -4024,10 +4017,6 @@ static_library("browser") {
24 "new_tab_page/modules/photos/photos_service.h", 34 "new_tab_page/modules/photos/photos_service.h",
25 "new_tab_page/modules/photos/photos_service_factory.cc", 35 "new_tab_page/modules/photos/photos_service_factory.cc",
26 "new_tab_page/modules/photos/photos_service_factory.h", 36 "new_tab_page/modules/photos/photos_service_factory.h",
@@ -31,7 +41,7 @@
31 "new_tab_page/modules/task_module/task_module_handler.cc", 41 "new_tab_page/modules/task_module/task_module_handler.cc",
32 "new_tab_page/modules/task_module/task_module_handler.h", 42 "new_tab_page/modules/task_module/task_module_handler.h",
33 "new_tab_page/modules/task_module/task_module_service.cc", 43 "new_tab_page/modules/task_module/task_module_service.cc",
34@@ -7012,9 +7004,14 @@ static_library("browser") { 44@@ -7380,9 +7369,14 @@ static_library("browser") {
35 "//components/safe_browsing/content/browser:safe_browsing_blocking_page", 45 "//components/safe_browsing/content/browser:safe_browsing_blocking_page",
36 "//components/safe_browsing/content/browser/download:download_stats", 46 "//components/safe_browsing/content/browser/download:download_stats",
37 "//components/safe_browsing/content/common:file_type_policies", 47 "//components/safe_browsing/content/common:file_type_policies",
@@ -47,8 +57,8 @@
47 57
48 if (!is_fuchsia) { 58 if (!is_fuchsia) {
49 sources += [ 59 sources += [
50--- chrome/browser/accuracy_tips/accuracy_service_factory.cc.orig 60--- a/chrome/browser/accuracy_tips/accuracy_service_factory.cc
51+++ chrome/browser/accuracy_tips/accuracy_service_factory.cc 61+++ b/chrome/browser/accuracy_tips/accuracy_service_factory.cc
52@@ -48,10 +48,7 @@ KeyedService* AccuracyServiceFactory::Bu 62@@ -48,10 +48,7 @@ KeyedService* AccuracyServiceFactory::Bu
53 content::BrowserContext* browser_context) const { 63 content::BrowserContext* browser_context) const {
54 DCHECK(base::FeatureList::IsEnabled(safe_browsing::kAccuracyTipsFeature)); 64 DCHECK(base::FeatureList::IsEnabled(safe_browsing::kAccuracyTipsFeature));
@@ -61,9 +71,9 @@
61 auto* history_service = HistoryServiceFactory::GetForProfile( 71 auto* history_service = HistoryServiceFactory::GetForProfile(
62 profile, ServiceAccessType::IMPLICIT_ACCESS); 72 profile, ServiceAccessType::IMPLICIT_ACCESS);
63 auto delegate = std::make_unique<AccuracyServiceDelegate>(profile); 73 auto delegate = std::make_unique<AccuracyServiceDelegate>(profile);
64--- chrome/browser/chrome_content_browser_client.cc.orig 74--- a/chrome/browser/chrome_content_browser_client.cc
65+++ chrome/browser/chrome_content_browser_client.cc 75+++ b/chrome/browser/chrome_content_browser_client.cc
66@@ -4229,11 +4229,13 @@ ChromeContentBrowserClient::CreateThrott 76@@ -4298,11 +4298,13 @@ ChromeContentBrowserClient::CreateThrott
67 &throttles); 77 &throttles);
68 #endif 78 #endif
69 79
@@ -77,7 +87,7 @@
77 87
78 // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch 88 // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
79 // of lacros-chrome is complete. 89 // of lacros-chrome is complete.
80@@ -5632,26 +5634,7 @@ ChromeContentBrowserClient::GetSafeBrows 90@@ -5699,26 +5701,7 @@ ChromeContentBrowserClient::GetSafeBrows
81 const std::vector<std::string>& allowlist_domains) { 91 const std::vector<std::string>& allowlist_domains) {
82 DCHECK_CURRENTLY_ON(BrowserThread::IO); 92 DCHECK_CURRENTLY_ON(BrowserThread::IO);
83 93
@@ -105,7 +115,7 @@
105 } 115 }
106 116
107 safe_browsing::RealTimeUrlLookupServiceBase* 117 safe_browsing::RealTimeUrlLookupServiceBase*
108@@ -5672,11 +5655,6 @@ ChromeContentBrowserClient::GetUrlLookup 118@@ -5739,11 +5722,6 @@ ChromeContentBrowserClient::GetUrlLookup
109 GetForProfile(profile); 119 GetForProfile(profile);
110 } 120 }
111 #endif 121 #endif
@@ -117,9 +127,9 @@
117 return nullptr; 127 return nullptr;
118 } 128 }
119 129
120--- chrome/browser/chrome_content_browser_client_receiver_bindings.cc.orig 130--- a/chrome/browser/chrome_content_browser_client_receiver_bindings.cc
121+++ chrome/browser/chrome_content_browser_client_receiver_bindings.cc 131+++ b/chrome/browser/chrome_content_browser_client_receiver_bindings.cc
122@@ -139,45 +139,6 @@ void MaybeCreateSafeBrowsingForRenderer( 132@@ -143,34 +143,6 @@ void MaybeCreateSafeBrowsingForRenderer(
123 const std::vector<std::string>& allowlist_domains)> 133 const std::vector<std::string>& allowlist_domains)>
124 get_checker_delegate, 134 get_checker_delegate,
125 mojo::PendingReceiver<safe_browsing::mojom::SafeBrowsing> receiver) { 135 mojo::PendingReceiver<safe_browsing::mojom::SafeBrowsing> receiver) {
@@ -137,17 +147,6 @@
137- std::vector<std::string> allowlist_domains = 147- std::vector<std::string> allowlist_domains =
138- safe_browsing::GetURLAllowlistByPolicy(pref_service); 148- safe_browsing::GetURLAllowlistByPolicy(pref_service);
139- 149-
140- // Log the size of the domains to make sure copying them is
141- // not too expensive.
142- if (allowlist_domains.size() > 0) {
143- int total_size = 0;
144- for (const auto& domains : allowlist_domains) {
145- total_size += domains.size();
146- }
147- base::UmaHistogramCounts10000(
148- "SafeBrowsing.Policy.AllowlistDomainsTotalSize", total_size);
149- }
150-
151- bool safe_browsing_enabled = 150- bool safe_browsing_enabled =
152- safe_browsing::IsSafeBrowsingEnabled(*pref_service); 151- safe_browsing::IsSafeBrowsingEnabled(*pref_service);
153- content::GetIOThreadTaskRunner({})->PostTask( 152- content::GetIOThreadTaskRunner({})->PostTask(
@@ -165,9 +164,9 @@
165 } 164 }
166 165
167 // BadgeManager is not used for Android. 166 // BadgeManager is not used for Android.
168--- chrome/browser/component_updater/client_side_phishing_component_installer.cc.orig 167--- a/chrome/browser/component_updater/chrome_client_side_phishing_component_installer.cc
169+++ chrome/browser/component_updater/client_side_phishing_component_installer.cc 168+++ b/chrome/browser/component_updater/chrome_client_side_phishing_component_installer.cc
170@@ -36,20 +36,6 @@ const char kClientSidePhishingManifestNa 169@@ -29,20 +29,6 @@ namespace {
171 170
172 void LoadFromDisk(const base::FilePath& pb_path, 171 void LoadFromDisk(const base::FilePath& pb_path,
173 const base::FilePath& visual_tflite_model_path) { 172 const base::FilePath& visual_tflite_model_path) {
@@ -187,9 +186,9 @@
187- ->PopulateFromDynamicUpdate(binary_pb, std::move(visual_tflite_model)); 186- ->PopulateFromDynamicUpdate(binary_pb, std::move(visual_tflite_model));
188 } 187 }
189 188
190 base::FilePath GetInstalledProtoPath(const base::FilePath& base) { 189 void PopulateModelFromFiles(const base::FilePath& install_dir) {
191@@ -123,9 +109,6 @@ update_client::InstallerAttributes 190@@ -56,9 +42,6 @@ void PopulateModelFromFiles(const base::
192 ClientSidePhishingComponentInstallerPolicy::GetInstallerAttributes() const { 191 update_client::InstallerAttributes GetInstallerAttributes() {
193 update_client::InstallerAttributes attributes; 192 update_client::InstallerAttributes attributes;
194 193
195- // Pass the tag parameter to the installer as the "tag" attribute; it will 194- // Pass the tag parameter to the installer as the "tag" attribute; it will
@@ -198,9 +197,19 @@
198 return attributes; 197 return attributes;
199 } 198 }
200 199
201--- chrome/browser/download/chrome_download_manager_delegate.cc.orig 200--- a/chrome/browser/devtools/devtools_window.cc
202+++ chrome/browser/download/chrome_download_manager_delegate.cc 201+++ b/chrome/browser/devtools/devtools_window.cc
203@@ -135,7 +135,6 @@ using content::DownloadManager; 202@@ -70,6 +70,7 @@
203 #include "content/public/common/content_client.h"
204 #include "content/public/common/url_constants.h"
205 #include "net/base/escape.h"
206+#include "net/cert/x509_certificate.h"
207 #include "third_party/blink/public/common/input/web_gesture_event.h"
208 #include "third_party/blink/public/common/input/web_input_event.h"
209 #include "third_party/blink/public/common/renderer_preferences/renderer_preferences.h"
210--- a/chrome/browser/download/chrome_download_manager_delegate.cc
211+++ b/chrome/browser/download/chrome_download_manager_delegate.cc
212@@ -130,7 +130,6 @@ using content::DownloadManager;
204 using download::DownloadItem; 213 using download::DownloadItem;
205 using download::DownloadPathReservationTracker; 214 using download::DownloadPathReservationTracker;
206 using download::PathValidationResult; 215 using download::PathValidationResult;
@@ -208,7 +217,7 @@
208 using safe_browsing::DownloadProtectionService; 217 using safe_browsing::DownloadProtectionService;
209 using ConnectionType = net::NetworkChangeNotifier::ConnectionType; 218 using ConnectionType = net::NetworkChangeNotifier::ConnectionType;
210 219
211@@ -1517,8 +1516,6 @@ void ChromeDownloadManagerDelegate::OnDo 220@@ -1519,8 +1518,6 @@ void ChromeDownloadManagerDelegate::OnDo
212 if (item->GetOriginalMimeType() == "application/x-x509-user-cert") 221 if (item->GetOriginalMimeType() == "application/x-x509-user-cert")
213 DownloadItemModel(item).SetShouldPreferOpeningInBrowser(true); 222 DownloadItemModel(item).SetShouldPreferOpeningInBrowser(true);
214 #endif 223 #endif
@@ -217,7 +226,7 @@
217 } 226 }
218 if (ShouldBlockFile(target_info->danger_type, item)) { 227 if (ShouldBlockFile(target_info->danger_type, item)) {
219 MaybeReportDangerousDownloadBlocked( 228 MaybeReportDangerousDownloadBlocked(
220@@ -1670,7 +1667,6 @@ void ChromeDownloadManagerDelegate::Mayb 229@@ -1655,7 +1652,6 @@ void ChromeDownloadManagerDelegate::Mayb
221 service->MaybeSendDangerousDownloadOpenedReport(download, 230 service->MaybeSendDangerousDownloadOpenedReport(download,
222 show_download_in_folder); 231 show_download_in_folder);
223 } 232 }
@@ -225,7 +234,7 @@
225 if (!download->GetAutoOpened()) { 234 if (!download->GetAutoOpened()) {
226 download::DownloadContent download_content = 235 download::DownloadContent download_content =
227 download::DownloadContentFromMimeType(download->GetMimeType(), false); 236 download::DownloadContentFromMimeType(download->GetMimeType(), false);
228@@ -1678,6 +1674,7 @@ void ChromeDownloadManagerDelegate::Mayb 237@@ -1663,6 +1659,7 @@ void ChromeDownloadManagerDelegate::Mayb
229 download->GetDangerType(), download_content, base::Time::Now(), 238 download->GetDangerType(), download_content, base::Time::Now(),
230 download->GetEndTime(), show_download_in_folder); 239 download->GetEndTime(), show_download_in_folder);
231 } 240 }
@@ -233,48 +242,27 @@
233 } 242 }
234 243
235 void ChromeDownloadManagerDelegate::CheckDownloadAllowed( 244 void ChromeDownloadManagerDelegate::CheckDownloadAllowed(
236@@ -1754,30 +1751,6 @@ void ChromeDownloadManagerDelegate::Chec 245@@ -1732,8 +1729,7 @@ void ChromeDownloadManagerDelegate::Chec
237 std::move(callback).Run(true); 246 DCHECK(download_item);
238 return; 247 DCHECK(download_item->IsSavePackageDownload());
239 } 248
240- 249-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \
241- absl::optional<enterprise_connectors::AnalysisSettings> settings = 250- BUILDFLAG(IS_MAC)
242- safe_browsing::DeepScanningRequest::ShouldUploadBinary(download_item); 251+#if 0
243- 252 absl::optional<enterprise_connectors::AnalysisSettings> settings =
244- if (settings.has_value()) { 253 safe_browsing::DeepScanningRequest::ShouldUploadBinary(download_item);
245- DownloadProtectionService* service = GetDownloadProtectionService(); 254
246- // Save package never need malware scans, so exempt them from scanning if 255--- a/chrome/browser/download/download_stats.cc
247- // there are no other tags. 256+++ b/chrome/browser/download/download_stats.cc
248- settings->tags.erase("malware"); 257@@ -9,6 +9,7 @@
249- if (!settings->tags.empty() && service) {
250- download_item->SetUserData(
251- enterprise_connectors::SavePackageScanningData::kKey,
252- std::make_unique<enterprise_connectors::SavePackageScanningData>(
253- std::move(callback)));
254-
255- service->UploadSavePackageForDeepScanning(
256- download_item, std::move(save_package_files),
257- base::BindRepeating(
258- &ChromeDownloadManagerDelegate::CheckSavePackageScanningDone,
259- weak_ptr_factory_.GetWeakPtr(), download_item->GetId()),
260- std::move(settings.value()));
261- return;
262- }
263- }
264 #endif
265 std::move(callback).Run(true);
266 }
267--- chrome/browser/download/download_stats.cc.orig
268+++ chrome/browser/download/download_stats.cc
269@@ -8,6 +8,7 @@
270 #include "base/metrics/user_metrics.h"
271 #include "base/notreached.h" 258 #include "base/notreached.h"
259 #include "build/build_config.h"
272 #include "components/profile_metrics/browser_profile_type.h" 260 #include "components/profile_metrics/browser_profile_type.h"
273+#include "components/safe_browsing/buildflags.h" 261+#include "components/safe_browsing/buildflags.h"
274 #include "components/safe_browsing/content/browser/download/download_stats.h" 262 #include "components/safe_browsing/content/browser/download/download_stats.h"
275 263
276 void RecordDownloadCount(ChromeDownloadCountTypes type) { 264 void RecordDownloadCount(ChromeDownloadCountTypes type) {
277@@ -27,8 +28,10 @@ void RecordDangerousDownloadWarningShown 265@@ -28,8 +29,10 @@ void RecordDangerousDownloadWarningShown
278 bool has_user_gesture) { 266 bool has_user_gesture) {
279 base::UmaHistogramEnumeration("Download.ShowedDownloadWarning", danger_type, 267 base::UmaHistogramEnumeration("Download.ShowedDownloadWarning", danger_type,
280 download::DOWNLOAD_DANGER_TYPE_MAX); 268 download::DOWNLOAD_DANGER_TYPE_MAX);
@@ -285,23 +273,24 @@
285 } 273 }
286 274
287 void RecordOpenedDangerousConfirmDialog( 275 void RecordOpenedDangerousConfirmDialog(
288--- chrome/browser/download/download_target_determiner.cc.orig 276--- a/chrome/browser/download/download_target_determiner.cc
289+++ chrome/browser/download/download_target_determiner.cc 277+++ b/chrome/browser/download/download_target_determiner.cc
290@@ -872,11 +872,13 @@ void DownloadTargetDeterminer::CheckVisi 278@@ -877,12 +877,14 @@ void DownloadTargetDeterminer::CheckVisi
291 bool visited_referrer_before) { 279 bool visited_referrer_before) {
292 DCHECK_CURRENTLY_ON(BrowserThread::UI); 280 DCHECK_CURRENTLY_ON(BrowserThread::UI);
293 DCHECK_EQ(STATE_DETERMINE_INTERMEDIATE_PATH, next_state_); 281 DCHECK_EQ(STATE_DETERMINE_INTERMEDIATE_PATH, next_state_);
294+#if BUILDFLAG(FULL_SAFE_BROWSING) 282+#if BUILDFLAG(FULL_SAFE_BROWSING)
295 safe_browsing::RecordDownloadFileTypeAttributes( 283 safe_browsing::RecordDownloadFileTypeAttributes(
296 safe_browsing::FileTypePolicies::GetInstance()->GetFileDangerLevel( 284 safe_browsing::FileTypePolicies::GetInstance()->GetFileDangerLevel(
297 virtual_path_.BaseName()), 285 virtual_path_.BaseName(), download_->GetURL(),
286 GetProfile()->GetPrefs()),
298 download_->HasUserGesture(), visited_referrer_before, 287 download_->HasUserGesture(), visited_referrer_before,
299 GetLastDownloadBypassTimestamp()); 288 GetLastDownloadBypassTimestamp());
300+#endif // BUILDFLAG(FULL_SAFE_BROWSING) 289+#endif // BUILDFLAG(FULL_SAFE_BROWSING)
301 danger_level_ = GetDangerLevel( 290 danger_level_ = GetDangerLevel(
302 visited_referrer_before ? VISITED_REFERRER : NO_VISITS_TO_REFERRER); 291 visited_referrer_before ? VISITED_REFERRER : NO_VISITS_TO_REFERRER);
303 if (danger_level_ != DownloadFileType::NOT_DANGEROUS && 292 if (danger_level_ != DownloadFileType::NOT_DANGEROUS &&
304@@ -1111,6 +1113,7 @@ DownloadFileType::DangerLevel DownloadTa 293@@ -1122,6 +1124,7 @@ DownloadFileType::DangerLevel DownloadTa
305 294
306 absl::optional<base::Time> 295 absl::optional<base::Time>
307 DownloadTargetDeterminer::GetLastDownloadBypassTimestamp() const { 296 DownloadTargetDeterminer::GetLastDownloadBypassTimestamp() const {
@@ -309,7 +298,7 @@
309 safe_browsing::SafeBrowsingMetricsCollector* metrics_collector = 298 safe_browsing::SafeBrowsingMetricsCollector* metrics_collector =
310 safe_browsing::SafeBrowsingMetricsCollectorFactory::GetForProfile( 299 safe_browsing::SafeBrowsingMetricsCollectorFactory::GetForProfile(
311 GetProfile()); 300 GetProfile());
312@@ -1119,6 +1122,9 @@ DownloadTargetDeterminer::GetLastDownloa 301@@ -1130,6 +1133,9 @@ DownloadTargetDeterminer::GetLastDownloa
313 safe_browsing::SafeBrowsingMetricsCollector:: 302 safe_browsing::SafeBrowsingMetricsCollector::
314 EventType::DANGEROUS_DOWNLOAD_BYPASS) 303 EventType::DANGEROUS_DOWNLOAD_BYPASS)
315 : absl::nullopt; 304 : absl::nullopt;
@@ -319,19 +308,19 @@
319 } 308 }
320 309
321 void DownloadTargetDeterminer::OnDownloadDestroyed( 310 void DownloadTargetDeterminer::OnDownloadDestroyed(
322--- chrome/browser/enterprise/connectors/analysis/content_analysis_delegate.cc.orig 311--- a/chrome/browser/enterprise/connectors/analysis/content_analysis_delegate.cc
323+++ chrome/browser/enterprise/connectors/analysis/content_analysis_delegate.cc 312+++ b/chrome/browser/enterprise/connectors/analysis/content_analysis_delegate.cc
324@@ -32,7 +32,6 @@ 313@@ -33,7 +33,6 @@
325 #include "chrome/browser/safe_browsing/cloud_content_scanning/binary_upload_service_factory.h" 314 #include "chrome/browser/safe_browsing/cloud_content_scanning/binary_upload_service_factory.h"
326 #include "chrome/browser/safe_browsing/cloud_content_scanning/deep_scanning_utils.h" 315 #include "chrome/browser/safe_browsing/cloud_content_scanning/deep_scanning_utils.h"
327 #include "chrome/browser/safe_browsing/cloud_content_scanning/file_analysis_request.h" 316 #include "chrome/browser/safe_browsing/cloud_content_scanning/file_analysis_request.h"
328-#include "chrome/browser/safe_browsing/download_protection/check_client_download_request.h" 317-#include "chrome/browser/safe_browsing/download_protection/check_client_download_request.h"
329 #include "chrome/grit/generated_resources.h" 318 #include "chrome/grit/generated_resources.h"
330 #include "components/enterprise/common/proto/connectors.pb.h" 319 #include "components/enterprise/common/proto/connectors.pb.h"
331 #include "components/policy/core/browser/url_util.h" 320 #include "components/policy/core/common/chrome_schema.h"
332--- chrome/browser/enterprise/connectors/connectors_service.cc.orig 321--- a/chrome/browser/enterprise/connectors/connectors_service.cc
333+++ chrome/browser/enterprise/connectors/connectors_service.cc 322+++ b/chrome/browser/enterprise/connectors/connectors_service.cc
334@@ -475,19 +475,6 @@ absl::optional<std::string> ConnectorsSe 323@@ -461,19 +461,6 @@ absl::optional<std::string> ConnectorsSe
335 return absl::nullopt; 324 return absl::nullopt;
336 } 325 }
337 326
@@ -351,9 +340,9 @@
351 ConnectorsManager* ConnectorsService::ConnectorsManagerForTesting() { 340 ConnectorsManager* ConnectorsService::ConnectorsManagerForTesting() {
352 return connectors_manager_.get(); 341 return connectors_manager_.get();
353 } 342 }
354--- chrome/browser/enterprise/connectors/connectors_service.h.orig 343--- a/chrome/browser/enterprise/connectors/connectors_service.h
355+++ chrome/browser/enterprise/connectors/connectors_service.h 344+++ b/chrome/browser/enterprise/connectors/connectors_service.h
356@@ -78,12 +78,6 @@ class ConnectorsService : public KeyedSe 345@@ -80,12 +80,6 @@ class ConnectorsService : public KeyedSe
357 // is no token to use. 346 // is no token to use.
358 absl::optional<std::string> GetDMTokenForRealTimeUrlCheck() const; 347 absl::optional<std::string> GetDMTokenForRealTimeUrlCheck() const;
359 348
@@ -366,18 +355,18 @@
366 // Returns the CBCM domain or profile domain that enables connector policies. 355 // Returns the CBCM domain or profile domain that enables connector policies.
367 // If both set Connector policies, the CBCM domain is returned as it has 356 // If both set Connector policies, the CBCM domain is returned as it has
368 // precedence. 357 // precedence.
369--- chrome/browser/enterprise/connectors/device_trust/signals/decorators/common/common_signals_decorator.cc.orig 358--- a/chrome/browser/enterprise/connectors/device_trust/signals/decorators/common/common_signals_decorator.cc
370+++ chrome/browser/enterprise/connectors/device_trust/signals/decorators/common/common_signals_decorator.cc 359+++ b/chrome/browser/enterprise/connectors/device_trust/signals/decorators/common/common_signals_decorator.cc
371@@ -38,9 +38,6 @@ void CommonSignalsDecorator::Decorate(Si 360@@ -41,9 +41,6 @@ void CommonSignalsDecorator::Decorate(Si
372 // Get signals from policy values. 361 // Get signals from policy values.
373 signals.set_built_in_dns_client_enabled( 362 signals.set_built_in_dns_client_enabled(
374 enterprise_signals::utils::GetBuiltInDnsClientEnabled(local_state_)); 363 enterprise_signals::utils::GetBuiltInDnsClientEnabled(local_state_));
375- signals.set_safe_browsing_protection_level(static_cast<int32_t>( 364- signals.set_safe_browsing_protection_level(static_cast<int32_t>(
376- enterprise_signals::utils::GetSafeBrowsingProtectionLevel( 365- enterprise_signals::utils::GetSafeBrowsingProtectionLevel(
377- profile_prefs_))); 366- profile_prefs_)));
378 signals.set_remote_desktop_available( 367
379 enterprise_signals::utils::GetChromeRemoteDesktopAppBlocked( 368 absl::optional<bool> third_party_blocking_enabled =
380 policy_blocklist_service_)); 369 enterprise_signals::utils::GetThirdPartyBlockingEnabled(local_state_);
381@@ -58,15 +55,6 @@ void CommonSignalsDecorator::Decorate(Si 370@@ -58,15 +55,6 @@ void CommonSignalsDecorator::Decorate(Si
382 signals.set_chrome_cleanup_enabled(chrome_cleanup_enabled.value()); 371 signals.set_chrome_cleanup_enabled(chrome_cleanup_enabled.value());
383 } 372 }
@@ -391,12 +380,32 @@
391- static_cast<int32_t>(password_protection_warning_trigger.value())); 380- static_cast<int32_t>(password_protection_warning_trigger.value()));
392- } 381- }
393- 382-
394 std::move(done_closure).Run(); 383 if (cached_device_model_ && cached_device_manufacturer_) {
395 } 384 UpdateFromCache(signals);
385 LogSignalsCollectionLatency(kLatencyHistogramWithCacheVariant, start_time);
386--- a/chrome/browser/enterprise/connectors/reporting/reporting_service_settings.cc
387+++ b/chrome/browser/enterprise/connectors/reporting/reporting_service_settings.cc
388@@ -63,17 +63,6 @@ ReportingServiceSettings::ReportingServi
389 else
390 DVLOG(1) << "Enabled event name list contains a non string value!";
391 }
392- } else {
393- // When the list of enabled event names is not set, we assume all events are
394- // enabled. This is to support the feature of selecting the "All always on"
395- // option in the policy UI, which means to always enable all events, even
396- // when new events may be added in the future. And this is also to support
397- // existing customer policies that were created before we introduced the
398- // concept of enabling/disabling events.
399- for (auto* event_name :
400- extensions::SafeBrowsingPrivateEventRouter::kAllEvents) {
401- enabled_event_names_.insert(event_name);
402- }
403 }
396 404
397--- chrome/browser/enterprise/signals/context_info_fetcher.cc.orig 405 const base::Value* enabled_opt_in_events_value =
398+++ chrome/browser/enterprise/signals/context_info_fetcher.cc 406--- a/chrome/browser/enterprise/signals/context_info_fetcher.cc
399@@ -169,7 +169,6 @@ void ContextInfoFetcher::Fetch(ContextIn 407+++ b/chrome/browser/enterprise/signals/context_info_fetcher.cc
408@@ -204,7 +204,6 @@ void ContextInfoFetcher::Fetch(ContextIn
400 GetAnalysisConnectorProviders(enterprise_connectors::FILE_DOWNLOADED); 409 GetAnalysisConnectorProviders(enterprise_connectors::FILE_DOWNLOADED);
401 info.on_bulk_data_entry_providers = 410 info.on_bulk_data_entry_providers =
402 GetAnalysisConnectorProviders(enterprise_connectors::BULK_DATA_ENTRY); 411 GetAnalysisConnectorProviders(enterprise_connectors::BULK_DATA_ENTRY);
@@ -404,7 +413,7 @@
404 info.on_security_event_providers = GetOnSecurityEventProviders(); 413 info.on_security_event_providers = GetOnSecurityEventProviders();
405 info.browser_version = version_info::GetVersionNumber(); 414 info.browser_version = version_info::GetVersionNumber();
406 info.site_isolation_enabled = 415 info.site_isolation_enabled =
407@@ -227,11 +226,6 @@ std::vector<std::string> ContextInfoFetc 416@@ -262,11 +261,6 @@ std::vector<std::string> ContextInfoFetc
408 return connectors_service_->GetAnalysisServiceProviderNames(connector); 417 return connectors_service_->GetAnalysisServiceProviderNames(connector);
409 } 418 }
410 419
@@ -416,8 +425,8 @@
416 std::vector<std::string> ContextInfoFetcher::GetOnSecurityEventProviders() { 425 std::vector<std::string> ContextInfoFetcher::GetOnSecurityEventProviders() {
417 return connectors_service_->GetReportingServiceProviderNames( 426 return connectors_service_->GetReportingServiceProviderNames(
418 enterprise_connectors::ReportingConnector::SECURITY_EVENT); 427 enterprise_connectors::ReportingConnector::SECURITY_EVENT);
419--- chrome/browser/enterprise/signals/context_info_fetcher.h.orig 428--- a/chrome/browser/enterprise/signals/context_info_fetcher.h
420+++ chrome/browser/enterprise/signals/context_info_fetcher.h 429+++ b/chrome/browser/enterprise/signals/context_info_fetcher.h
421@@ -6,6 +6,7 @@ 430@@ -6,6 +6,7 @@
422 #define CHROME_BROWSER_ENTERPRISE_SIGNALS_CONTEXT_INFO_FETCHER_H_ 431 #define CHROME_BROWSER_ENTERPRISE_SIGNALS_CONTEXT_INFO_FETCHER_H_
423 432
@@ -426,7 +435,7 @@
426 #include <vector> 435 #include <vector>
427 436
428 #include "base/callback_forward.h" 437 #include "base/callback_forward.h"
429@@ -37,7 +38,6 @@ struct ContextInfo { 438@@ -38,7 +39,6 @@ struct ContextInfo {
430 std::vector<std::string> on_file_downloaded_providers; 439 std::vector<std::string> on_file_downloaded_providers;
431 std::vector<std::string> on_bulk_data_entry_providers; 440 std::vector<std::string> on_bulk_data_entry_providers;
432 std::vector<std::string> on_security_event_providers; 441 std::vector<std::string> on_security_event_providers;
@@ -434,7 +443,7 @@
434 std::string browser_version; 443 std::string browser_version;
435 safe_browsing::SafeBrowsingState safe_browsing_protection_level; 444 safe_browsing::SafeBrowsingState safe_browsing_protection_level;
436 bool site_isolation_enabled; 445 bool site_isolation_enabled;
437@@ -88,7 +88,6 @@ class ContextInfoFetcher { 446@@ -89,7 +89,6 @@ class ContextInfoFetcher {
438 std::vector<std::string> GetAnalysisConnectorProviders( 447 std::vector<std::string> GetAnalysisConnectorProviders(
439 enterprise_connectors::AnalysisConnector connector); 448 enterprise_connectors::AnalysisConnector connector);
440 449
@@ -442,8 +451,8 @@
442 451
443 std::vector<std::string> GetOnSecurityEventProviders(); 452 std::vector<std::string> GetOnSecurityEventProviders();
444 453
445--- chrome/browser/enterprise/signals/signals_utils.cc.orig 454--- a/chrome/browser/enterprise/signals/signals_utils.cc
446+++ chrome/browser/enterprise/signals/signals_utils.cc 455+++ b/chrome/browser/enterprise/signals/signals_utils.cc
447@@ -33,24 +33,6 @@ bool IsURLBlocked(const GURL& url, Polic 456@@ -33,24 +33,6 @@ bool IsURLBlocked(const GURL& url, Polic
448 457
449 } // namespace 458 } // namespace
@@ -468,7 +477,7 @@
468- 477-
469 absl::optional<bool> GetThirdPartyBlockingEnabled(PrefService* local_state) { 478 absl::optional<bool> GetThirdPartyBlockingEnabled(PrefService* local_state) {
470 DCHECK(local_state); 479 DCHECK(local_state);
471 #if defined(OS_WIN) && BUILDFLAG(GOOGLE_CHROME_BRANDING) 480 #if BUILDFLAG(IS_WIN) && BUILDFLAG(GOOGLE_CHROME_BRANDING)
472@@ -65,15 +47,6 @@ bool GetBuiltInDnsClientEnabled(PrefServ 481@@ -65,15 +47,6 @@ bool GetBuiltInDnsClientEnabled(PrefServ
473 return local_state->GetBoolean(prefs::kBuiltInDnsClientEnabled); 482 return local_state->GetBoolean(prefs::kBuiltInDnsClientEnabled);
474 } 483 }
@@ -484,9 +493,9 @@
484- 493-
485 absl::optional<bool> GetChromeCleanupEnabled(PrefService* local_state) { 494 absl::optional<bool> GetChromeCleanupEnabled(PrefService* local_state) {
486 DCHECK(local_state); 495 DCHECK(local_state);
487 #if defined(OS_WIN) 496 #if BUILDFLAG(IS_WIN)
488--- chrome/browser/enterprise/signals/signals_utils.h.orig 497--- a/chrome/browser/enterprise/signals/signals_utils.h
489+++ chrome/browser/enterprise/signals/signals_utils.h 498+++ b/chrome/browser/enterprise/signals/signals_utils.h
490@@ -21,12 +21,6 @@ bool GetBuiltInDnsClientEnabled(PrefServ 499@@ -21,12 +21,6 @@ bool GetBuiltInDnsClientEnabled(PrefServ
491 500
492 absl::optional<bool> GetChromeCleanupEnabled(PrefService* local_state); 501 absl::optional<bool> GetChromeCleanupEnabled(PrefService* local_state);
@@ -500,9 +509,20 @@
500 bool GetChromeRemoteDesktopAppBlocked(PolicyBlocklistService* service); 509 bool GetChromeRemoteDesktopAppBlocked(PolicyBlocklistService* service);
501 510
502 } // namespace utils 511 } // namespace utils
503--- chrome/browser/extensions/BUILD.gn.orig 512--- a/chrome/browser/extensions/BUILD.gn
504+++ chrome/browser/extensions/BUILD.gn 513+++ b/chrome/browser/extensions/BUILD.gn
505@@ -650,8 +650,6 @@ static_library("extensions") { 514@@ -300,10 +300,6 @@ static_library("extensions") {
515 "api/runtime/chrome_runtime_api_delegate.h",
516 "api/safe_browsing_private/safe_browsing_private_api.cc",
517 "api/safe_browsing_private/safe_browsing_private_api.h",
518- "api/safe_browsing_private/safe_browsing_private_event_router.cc",
519- "api/safe_browsing_private/safe_browsing_private_event_router.h",
520- "api/safe_browsing_private/safe_browsing_private_event_router_factory.cc",
521- "api/safe_browsing_private/safe_browsing_private_event_router_factory.h",
522 "api/safe_browsing_private/safe_browsing_util.cc",
523 "api/safe_browsing_private/safe_browsing_util.h",
524 "api/scripting/scripting_api.cc",
525@@ -638,8 +634,6 @@ static_library("extensions") {
506 "menu_manager_factory.h", 526 "menu_manager_factory.h",
507 "navigation_observer.cc", 527 "navigation_observer.cc",
508 "navigation_observer.h", 528 "navigation_observer.h",
@@ -511,8 +531,8 @@
511 "pack_extension_job.cc", 531 "pack_extension_job.cc",
512 "pack_extension_job.h", 532 "pack_extension_job.h",
513 "pending_extension_info.cc", 533 "pending_extension_info.cc",
514--- chrome/browser/extensions/api/enterprise_reporting_private/enterprise_reporting_private_api.cc.orig 534--- a/chrome/browser/extensions/api/enterprise_reporting_private/enterprise_reporting_private_api.cc
515+++ chrome/browser/extensions/api/enterprise_reporting_private/enterprise_reporting_private_api.cc 535+++ b/chrome/browser/extensions/api/enterprise_reporting_private/enterprise_reporting_private_api.cc
516@@ -72,17 +72,8 @@ api::enterprise_reporting_private::Conte 536@@ -72,17 +72,8 @@ api::enterprise_reporting_private::Conte
517 : nullptr; 537 : nullptr;
518 info.os_firewall = ToInfoSettingValue(signals.os_firewall); 538 info.os_firewall = ToInfoSettingValue(signals.os_firewall);
@@ -531,183 +551,75 @@
531 info.browser_version = std::move(signals.browser_version); 551 info.browser_version = std::move(signals.browser_version);
532 info.built_in_dns_client_enabled = signals.built_in_dns_client_enabled; 552 info.built_in_dns_client_enabled = signals.built_in_dns_client_enabled;
533 553
534--- chrome/browser/extensions/api/safe_browsing_private/safe_browsing_private_event_router.cc.orig 554--- a/chrome/browser/extensions/browser_context_keyed_service_factories.cc
535+++ chrome/browser/extensions/api/safe_browsing_private/safe_browsing_private_event_router.cc 555+++ b/chrome/browser/extensions/browser_context_keyed_service_factories.cc
536@@ -326,6 +326,7 @@ void SafeBrowsingPrivateEventRouter::OnD 556@@ -125,7 +125,6 @@ void EnsureBrowserContextKeyedServiceFac
537 event_router_->BroadcastEvent(std::move(extension_event)); 557 #endif
538 } 558 extensions::PreferenceAPI::GetFactoryInstance();
539 559 extensions::ProcessesAPI::GetFactoryInstance();
540+#if defined(FULL_SAFE_BROWSING) 560- extensions::SafeBrowsingPrivateEventRouterFactory::GetInstance();
541 absl::optional<enterprise_connectors::ReportingSettings> settings = 561 extensions::SessionsAPI::GetFactoryInstance();
542 GetReportingSettings(); 562 #if BUILDFLAG(IS_CHROMEOS)
543 if (!settings.has_value() || 563 extensions::SessionStateChangedEventDispatcher::GetFactoryInstance();
544@@ -356,6 +357,7 @@ void SafeBrowsingPrivateEventRouter::OnD 564--- a/chrome/browser/extensions/chrome_extensions_browser_client.cc
545 565+++ b/chrome/browser/extensions/chrome_extensions_browser_client.cc
546 ReportRealtimeEvent(kKeyDangerousDownloadEvent, std::move(settings.value()), 566@@ -612,51 +612,22 @@ void ChromeExtensionsBrowserClient::Noti
547 std::move(event)); 567 content::BrowserContext* context,
548+#endif // FULL_SAFE_BROWSING 568 const ExtensionId& extension_id,
549 } 569 const std::string& code) const {
550 570- auto* telemetry_service =
551 void SafeBrowsingPrivateEventRouter::OnSecurityInterstitialShown( 571- safe_browsing::ExtensionTelemetryServiceFactory::GetForProfile(
552@@ -383,6 +385,7 @@ void SafeBrowsingPrivateEventRouter::OnS 572- Profile::FromBrowserContext(context));
553 event_router_->BroadcastEvent(std::move(extension_event)); 573- if (!telemetry_service || !telemetry_service->enabled() ||
554 } 574- !base::FeatureList::IsEnabled(
555 575- safe_browsing::kExtensionTelemetryTabsExecuteScriptSignal)) {
556+#if defined(FULL_SAFE_BROWSING) 576- return;
557 absl::optional<enterprise_connectors::ReportingSettings> settings = 577- }
558 GetReportingSettings(); 578-
559 if (!settings.has_value() || 579- auto signal = std::make_unique<safe_browsing::TabsExecuteScriptSignal>(
560@@ -406,6 +409,7 @@ void SafeBrowsingPrivateEventRouter::OnS 580- extension_id, code);
561 581- telemetry_service->AddSignal(std::move(signal));
562 ReportRealtimeEvent(kKeyInterstitialEvent, std::move(settings.value()),
563 std::move(event));
564+#endif // FULL_SAFE_BROWSING
565 }
566
567 void SafeBrowsingPrivateEventRouter::OnSecurityInterstitialProceeded(
568@@ -433,6 +437,7 @@ void SafeBrowsingPrivateEventRouter::OnS
569 event_router_->BroadcastEvent(std::move(extension_event));
570 }
571
572+#if defined(FULL_SAFE_BROWSING)
573 absl::optional<enterprise_connectors::ReportingSettings> settings =
574 GetReportingSettings();
575 if (!settings.has_value() ||
576@@ -452,6 +457,7 @@ void SafeBrowsingPrivateEventRouter::OnS
577
578 ReportRealtimeEvent(kKeyInterstitialEvent, std::move(settings.value()),
579 std::move(event));
580+#endif // FULL_SAFE_BROWSING
581 }
582
583 void SafeBrowsingPrivateEventRouter::OnAnalysisConnectorResult(
584@@ -465,6 +471,7 @@ void SafeBrowsingPrivateEventRouter::OnA
585 const enterprise_connectors::ContentAnalysisResponse::Result& result,
586 const int64_t content_size,
587 safe_browsing::EventResult event_result) {
588+#if defined(FULL_SAFE_BROWSING)
589 if (result.tag() == "malware") {
590 DCHECK_EQ(1, result.triggered_rules().size());
591 OnDangerousDeepScanningResult(
592@@ -476,6 +483,7 @@ void SafeBrowsingPrivateEventRouter::OnA
593 OnSensitiveDataEvent(url, file_name, download_digest_sha256, mime_type,
594 trigger, scan_id, result, content_size, event_result);
595 }
596+#endif // FULL_SAFE_BROWSING
597 }
598
599 void SafeBrowsingPrivateEventRouter::OnDangerousDeepScanningResult(
600@@ -491,6 +499,7 @@ void SafeBrowsingPrivateEventRouter::OnD
601 const std::string& malware_category,
602 const std::string& evidence_locker_filepath,
603 const std::string& scan_id) {
604+#if defined(FULL_SAFE_BROWSING)
605 absl::optional<enterprise_connectors::ReportingSettings> settings =
606 GetReportingSettings();
607 if (!settings.has_value() ||
608@@ -528,6 +537,7 @@ void SafeBrowsingPrivateEventRouter::OnD
609
610 ReportRealtimeEvent(kKeyDangerousDownloadEvent, std::move(settings.value()),
611 std::move(event));
612+#endif // FULL_SAFE_BROWSING
613 }
614
615 void SafeBrowsingPrivateEventRouter::OnSensitiveDataEvent(
616@@ -540,6 +550,7 @@ void SafeBrowsingPrivateEventRouter::OnS
617 const enterprise_connectors::ContentAnalysisResponse::Result& result,
618 const int64_t content_size,
619 safe_browsing::EventResult event_result) {
620+#if defined(FULL_SAFE_BROWSING)
621 absl::optional<enterprise_connectors::ReportingSettings> settings =
622 GetReportingSettings();
623 if (!settings.has_value() ||
624@@ -572,6 +583,7 @@ void SafeBrowsingPrivateEventRouter::OnS
625
626 ReportRealtimeEvent(kKeySensitiveDataEvent, std::move(settings.value()),
627 std::move(event));
628+#endif // FULL_SAFE_BROWSING
629 }
630
631 void SafeBrowsingPrivateEventRouter::OnAnalysisConnectorWarningBypassed(
632@@ -584,6 +596,7 @@ void SafeBrowsingPrivateEventRouter::OnA
633 safe_browsing::DeepScanAccessPoint access_point,
634 const enterprise_connectors::ContentAnalysisResponse::Result& result,
635 const int64_t content_size) {
636+#if defined(FULL_SAFE_BROWSING)
637 absl::optional<enterprise_connectors::ReportingSettings> settings =
638 GetReportingSettings();
639 if (!settings.has_value() ||
640@@ -616,6 +629,7 @@ void SafeBrowsingPrivateEventRouter::OnA
641
642 ReportRealtimeEvent(kKeySensitiveDataEvent, std::move(settings.value()),
643 std::move(event));
644+#endif // FULL_SAFE_BROWSING
645 }
646
647 void SafeBrowsingPrivateEventRouter::OnUnscannedFileEvent(
648@@ -628,6 +642,7 @@ void SafeBrowsingPrivateEventRouter::OnU
649 const std::string& reason,
650 const int64_t content_size,
651 safe_browsing::EventResult event_result) {
652+#if defined(FULL_SAFE_BROWSING)
653 absl::optional<enterprise_connectors::ReportingSettings> settings =
654 GetReportingSettings();
655 if (!settings.has_value() ||
656@@ -654,6 +669,7 @@ void SafeBrowsingPrivateEventRouter::OnU
657
658 ReportRealtimeEvent(kKeyUnscannedFileEvent, std::move(settings.value()),
659 std::move(event));
660+#endif // FULL_SAFE_BROWSING
661 }
662
663 void SafeBrowsingPrivateEventRouter::OnDangerousDownloadEvent(
664@@ -679,6 +695,7 @@ void SafeBrowsingPrivateEventRouter::OnD
665 const std::string& scan_id,
666 const int64_t content_size,
667 safe_browsing::EventResult event_result) {
668+#if defined(FULL_SAFE_BROWSING)
669 absl::optional<enterprise_connectors::ReportingSettings> settings =
670 GetReportingSettings();
671 if (!settings.has_value() ||
672@@ -709,6 +726,7 @@ void SafeBrowsingPrivateEventRouter::OnD
673
674 ReportRealtimeEvent(kKeyDangerousDownloadEvent, std::move(settings.value()),
675 std::move(event));
676+#endif
677 } 582 }
678 583
679 void SafeBrowsingPrivateEventRouter::OnDangerousDownloadWarningBypassed( 584 bool ChromeExtensionsBrowserClient::IsExtensionTelemetryServiceEnabled(
680@@ -732,6 +750,7 @@ void SafeBrowsingPrivateEventRouter::OnD 585 content::BrowserContext* context) const {
681 const std::string& mime_type, 586- auto* telemetry_service =
682 const std::string& scan_id, 587- safe_browsing::ExtensionTelemetryServiceFactory::GetForProfile(
683 const int64_t content_size) { 588- Profile::FromBrowserContext(context));
684+#if defined(FULL_SAFE_BROWSING) 589- return telemetry_service && telemetry_service->enabled();
685 absl::optional<enterprise_connectors::ReportingSettings> settings = 590+ return false;
686 GetReportingSettings();
687 if (!settings.has_value() ||
688@@ -762,6 +781,7 @@ void SafeBrowsingPrivateEventRouter::OnD
689
690 ReportRealtimeEvent(kKeyDangerousDownloadEvent, std::move(settings.value()),
691 std::move(event));
692+#endif // FULL_SAFE_BROWSING
693 } 591 }
694 592
695 void SafeBrowsingPrivateEventRouter::OnLoginEvent( 593 bool ChromeExtensionsBrowserClient::
696@@ -1087,7 +1107,11 @@ void SafeBrowsingPrivateEventRouter::Rep 594 IsExtensionTelemetryRemoteHostContactedSignalEnabled() const {
595- return base::FeatureList::IsEnabled(
596- safe_browsing::kExtensionTelemetryReportContactedHosts);
597+ return false;
697 } 598 }
698 599
699 std::string SafeBrowsingPrivateEventRouter::GetProfileUserName() const { 600 void ChromeExtensionsBrowserClient::NotifyExtensionRemoteHostContacted(
700+#if defined(FULL_SAFE_BROWSING) 601 content::BrowserContext* context,
701 return safe_browsing::GetProfileEmail(identity_manager_); 602 const ExtensionId& extension_id,
702+#else 603 const GURL& url) const {
703+ return ""; 604- if (!url.SchemeIsHTTPOrHTTPS()) {
704+#endif 605- return;
606- }
607- auto* telemetry_service =
608- safe_browsing::ExtensionTelemetryServiceFactory::GetForProfile(
609- Profile::FromBrowserContext(context));
610- if (!telemetry_service || !telemetry_service->enabled()) {
611- return;
612- }
613- auto remote_host_signal =
614- std::make_unique<safe_browsing::RemoteHostContactedSignal>(extension_id,
615- url);
616- telemetry_service->AddSignal(std::move(remote_host_signal));
705 } 617 }
706 618
707 #if BUILDFLAG(IS_CHROMEOS_ASH) 619 // static
708--- chrome/browser/extensions/extension_service.cc.orig 620--- a/chrome/browser/extensions/extension_service.cc
709+++ chrome/browser/extensions/extension_service.cc 621+++ b/chrome/browser/extensions/extension_service.cc
710@@ -52,7 +52,6 @@ 622@@ -53,7 +53,6 @@
711 #include "chrome/browser/extensions/forced_extensions/install_stage_tracker.h" 623 #include "chrome/browser/extensions/forced_extensions/install_stage_tracker.h"
712 #include "chrome/browser/extensions/install_verifier.h" 624 #include "chrome/browser/extensions/install_verifier.h"
713 #include "chrome/browser/extensions/installed_loader.h" 625 #include "chrome/browser/extensions/installed_loader.h"
@@ -715,7 +627,15 @@
715 #include "chrome/browser/extensions/pending_extension_manager.h" 627 #include "chrome/browser/extensions/pending_extension_manager.h"
716 #include "chrome/browser/extensions/permissions_updater.h" 628 #include "chrome/browser/extensions/permissions_updater.h"
717 #include "chrome/browser/extensions/shared_module_service.h" 629 #include "chrome/browser/extensions/shared_module_service.h"
718@@ -370,7 +369,6 @@ ExtensionService::ExtensionService(Profi 630@@ -207,7 +206,6 @@ void ExtensionService::BlocklistExtensio
631 blocklist_prefs::SetSafeBrowsingExtensionBlocklistState(
632 extension_id, BitMapBlocklistState::BLOCKLISTED_MALWARE,
633 extension_prefs_);
634- OnBlocklistStateAdded(extension_id);
635 }
636
637 bool ExtensionService::OnExternalExtensionUpdateUrlFound(
638@@ -370,7 +368,6 @@ ExtensionService::ExtensionService(Profi
719 safe_browsing_verdict_handler_(extension_prefs, 639 safe_browsing_verdict_handler_(extension_prefs,
720 ExtensionRegistry::Get(profile), 640 ExtensionRegistry::Get(profile),
721 this), 641 this),
@@ -723,7 +643,7 @@
723 registry_(ExtensionRegistry::Get(profile)), 643 registry_(ExtensionRegistry::Get(profile)),
724 pending_extension_manager_(profile), 644 pending_extension_manager_(profile),
725 install_directory_(install_directory), 645 install_directory_(install_directory),
726@@ -852,47 +850,6 @@ bool ExtensionService::IsExtensionEnable 646@@ -870,100 +867,6 @@ bool ExtensionService::IsExtensionEnable
727 return extension_registrar_.IsExtensionEnabled(extension_id); 647 return extension_registrar_.IsExtensionEnabled(extension_id);
728 } 648 }
729 649
@@ -731,56 +651,14 @@
731- const std::string& extension_id, 651- const std::string& extension_id,
732- const base::Value& attributes) { 652- const base::Value& attributes) {
733- DCHECK_CURRENTLY_ON(BrowserThread::UI); 653- DCHECK_CURRENTLY_ON(BrowserThread::UI);
734- HandleMalwareOmahaAttribute(extension_id, attributes);
735- omaha_attributes_handler_.PerformActionBasedOnOmahaAttributes(extension_id, 654- omaha_attributes_handler_.PerformActionBasedOnOmahaAttributes(extension_id,
736- attributes); 655- attributes);
737- allowlist_.PerformActionBasedOnOmahaAttributes(extension_id, attributes); 656- allowlist_.PerformActionBasedOnOmahaAttributes(extension_id, attributes);
738-}
739-
740-void ExtensionService::HandleMalwareOmahaAttribute(
741- const std::string& extension_id,
742- const base::Value& attributes) {
743- bool has_malware_value =
744- OmahaAttributesHandler::HasOmahaBlocklistStateInAttributes(
745- attributes, BitMapBlocklistState::BLOCKLISTED_MALWARE);
746- if (!has_malware_value) {
747- OmahaAttributesHandler::ReportNoUpdateCheckKeys();
748- // Omaha attributes may have previously have the "_malware" key.
749- MaybeEnableRemotelyDisabledExtension(extension_id);
750- return;
751- }
752-
753- if (extension_prefs_->HasDisableReason(
754- extension_id, disable_reason::DISABLE_REMOTELY_FOR_MALWARE)) {
755- // The extension is already disabled. No work needs to be done.
756- return;
757- }
758-
759- OmahaAttributesHandler::ReportExtensionDisabledRemotely(
760- extension_registrar_.IsExtensionEnabled(extension_id),
761- ExtensionUpdateCheckDataKey::kMalware);
762-
763- // Add the extension to the blocklisted extensions set.
764- UpdateBlocklistedExtensions({extension_id},
765- registry_->blocklisted_extensions().GetIDs());
766- extension_prefs_->AddDisableReason(
767- extension_id, disable_reason::DISABLE_REMOTELY_FOR_MALWARE);
768- // Show an error for the newly blocklisted extension. 657- // Show an error for the newly blocklisted extension.
769- error_controller_->ShowErrorIfNeeded(); 658- error_controller_->ShowErrorIfNeeded();
770-} 659-}
771
772 void ExtensionService::MaybeEnableRemotelyDisabledExtension(
773 const std::string& extension_id) {
774@@ -909,56 +866,6 @@ void ExtensionService::MaybeEnableRemote
775 unchanged.erase(extension_id);
776 // Remove the extension from the blocklist.
777 UpdateBlocklistedExtensions({}, unchanged);
778- OmahaAttributesHandler::ReportReenableExtension(
779- ExtensionUpdateCheckDataKey::kMalware);
780-}
781- 660-
782-void ExtensionService::ClearGreylistedAcknowledgedStateAndMaybeReenable( 661-void ExtensionService::OnGreylistStateRemoved(const std::string& extension_id) {
783- const std::string& extension_id) {
784- bool is_on_sb_list = (blocklist_prefs::GetSafeBrowsingExtensionBlocklistState( 662- bool is_on_sb_list = (blocklist_prefs::GetSafeBrowsingExtensionBlocklistState(
785- extension_id, extension_prefs_) != 663- extension_id, extension_prefs_) !=
786- BitMapBlocklistState::NOT_BLOCKLISTED); 664- BitMapBlocklistState::NOT_BLOCKLISTED);
@@ -797,9 +675,8 @@
797- disable_reason::DISABLE_GREYLIST); 675- disable_reason::DISABLE_GREYLIST);
798-} 676-}
799- 677-
800-void ExtensionService::MaybeDisableGreylistedExtension( 678-void ExtensionService::OnGreylistStateAdded(const std::string& extension_id,
801- const std::string& extension_id, 679- BitMapBlocklistState new_state) {
802- BitMapBlocklistState new_state) {
803-#if DCHECK_IS_ON() 680-#if DCHECK_IS_ON()
804- bool has_new_state_on_sb_list = 681- bool has_new_state_on_sb_list =
805- (blocklist_prefs::GetSafeBrowsingExtensionBlocklistState( 682- (blocklist_prefs::GetSafeBrowsingExtensionBlocklistState(
@@ -825,12 +702,51 @@
825- blocklist_prefs::UpdateCurrentGreylistStatesAsAcknowledged(extension_id, 702- blocklist_prefs::UpdateCurrentGreylistStatesAsAcknowledged(extension_id,
826- extension_prefs_); 703- extension_prefs_);
827- DisableExtension(extension_id, disable_reason::DISABLE_GREYLIST); 704- DisableExtension(extension_id, disable_reason::DISABLE_GREYLIST);
828 } 705-}
829 706-
707-void ExtensionService::OnBlocklistStateRemoved(
708- const std::string& extension_id) {
709- if (blocklist_prefs::IsExtensionBlocklisted(extension_id, extension_prefs_)) {
710- return;
711- }
712-
713- // Clear acknowledged state.
714- blocklist_prefs::RemoveAcknowledgedBlocklistState(
715- extension_id, BitMapBlocklistState::BLOCKLISTED_MALWARE,
716- extension_prefs_);
717-
718- scoped_refptr<const Extension> extension =
719- registry_->blocklisted_extensions().GetByID(extension_id);
720- DCHECK(extension);
721- registry_->RemoveBlocklisted(extension_id);
722- AddExtension(extension.get());
723-}
724-
725-void ExtensionService::OnBlocklistStateAdded(const std::string& extension_id) {
726- DCHECK(
727- blocklist_prefs::IsExtensionBlocklisted(extension_id, extension_prefs_));
728- // The extension was already acknowledged by the user, it should already be in
729- // the unloaded state.
730- if (blocklist_prefs::HasAcknowledgedBlocklistState(
731- extension_id, BitMapBlocklistState::BLOCKLISTED_MALWARE,
732- extension_prefs_)) {
733- DCHECK(base::Contains(registry_->blocklisted_extensions().GetIDs(),
734- extension_id));
735- return;
736- }
737-
738- scoped_refptr<const Extension> extension =
739- registry_->GetInstalledExtension(extension_id);
740- registry_->AddBlocklisted(extension);
741- UnloadExtension(extension_id, UnloadedExtensionReason::BLOCKLIST);
742-}
743-
830 void ExtensionService::RemoveDisableReasonAndMaybeEnable( 744 void ExtensionService::RemoveDisableReasonAndMaybeEnable(
831--- chrome/browser/extensions/extension_service.h.orig 745 const std::string& extension_id,
832+++ chrome/browser/extensions/extension_service.h 746 disable_reason::DisableReason reason_to_remove) {
833@@ -25,7 +25,6 @@ 747--- a/chrome/browser/extensions/extension_service.h
748+++ b/chrome/browser/extensions/extension_service.h
749@@ -26,7 +26,6 @@
834 #include "chrome/browser/extensions/forced_extensions/force_installed_metrics.h" 750 #include "chrome/browser/extensions/forced_extensions/force_installed_metrics.h"
835 #include "chrome/browser/extensions/forced_extensions/force_installed_tracker.h" 751 #include "chrome/browser/extensions/forced_extensions/force_installed_tracker.h"
836 #include "chrome/browser/extensions/install_gate.h" 752 #include "chrome/browser/extensions/install_gate.h"
@@ -838,7 +754,7 @@
838 #include "chrome/browser/extensions/pending_extension_manager.h" 754 #include "chrome/browser/extensions/pending_extension_manager.h"
839 #include "chrome/browser/extensions/safe_browsing_verdict_handler.h" 755 #include "chrome/browser/extensions/safe_browsing_verdict_handler.h"
840 #include "chrome/browser/profiles/profile_manager.h" 756 #include "chrome/browser/profiles/profile_manager.h"
841@@ -269,28 +268,11 @@ class ExtensionService : public Extensio 757@@ -276,40 +275,11 @@ class ExtensionService : public Extensio
842 // nothing. 758 // nothing.
843 void EnableExtension(const std::string& extension_id); 759 void EnableExtension(const std::string& extension_id);
844 760
@@ -846,14 +762,26 @@
846- // whether to remove greylist disabled reason. Called when a greylisted 762- // whether to remove greylist disabled reason. Called when a greylisted
847- // state is removed from the Safe Browsing blocklist or Omaha blocklist. Also 763- // state is removed from the Safe Browsing blocklist or Omaha blocklist. Also
848- // clears all acknowledged states if the greylist disabled reason is removed. 764- // clears all acknowledged states if the greylist disabled reason is removed.
849- void ClearGreylistedAcknowledgedStateAndMaybeReenable( 765- void OnGreylistStateRemoved(const std::string& extension_id);
850- const std::string& extension_id);
851- 766-
852- // Takes acknowledged blocklist states into account and decides whether to 767- // Takes acknowledged blocklist states into account and decides whether to
853- // disable the greylisted extension. Called when a new greylisted state is 768- // disable the greylisted extension. Called when a new greylisted state is
854- // added to the Safe Browsing blocklist or Omaha blocklist. 769- // added to the Safe Browsing blocklist or Omaha blocklist.
855- void MaybeDisableGreylistedExtension(const std::string& extension_id, 770- void OnGreylistStateAdded(const std::string& extension_id,
856- BitMapBlocklistState new_state); 771- BitMapBlocklistState new_state);
772-
773- // Takes Safe Browsing and Omaha malware blocklist states into account and
774- // decides whether to remove the extension from the blocklist and reload it.
775- // Called when a blocklisted extension is removed from the Safe Browsing
776- // malware blocklist or Omaha malware blocklist. Also clears the acknowledged
777- // state if the extension is reloaded.
778- void OnBlocklistStateRemoved(const std::string& extension_id);
779-
780- // Takes acknowledged malware blocklist state into account and decides whether
781- // to add the extension to the blocklist and unload it. Called when the
782- // extension is added to the Safe Browsing malware blocklist or the Omaha
783- // malware blocklist.
784- void OnBlocklistStateAdded(const std::string& extension_id);
857- 785-
858 // Removes the disable reason and enable the extension if there are no disable 786 // Removes the disable reason and enable the extension if there are no disable
859 // reasons left and is not blocked for another reason. 787 // reasons left and is not blocked for another reason.
@@ -867,29 +795,17 @@
867 // Disables the extension. If the extension is already disabled, just adds 795 // Disables the extension. If the extension is already disabled, just adds
868 // the |disable_reasons| (a bitmask of disable_reason::DisableReason - there 796 // the |disable_reasons| (a bitmask of disable_reason::DisableReason - there
869 // can be multiple DisableReasons e.g. when an extension comes in disabled 797 // can be multiple DisableReasons e.g. when an extension comes in disabled
870@@ -562,11 +544,6 @@ class ExtensionService : public Extensio 798@@ -649,8 +619,6 @@ class ExtensionService : public Extensio
871 // Helper method to determine if an extension can be blocked.
872 bool CanBlockExtension(const Extension* extension) const;
873
874- // Handles the malware Omaha attribute for remotely disabled extensions.
875- // TODO(crbug.com/1193695): Move this function to OmahaAttributesHandler.
876- void HandleMalwareOmahaAttribute(const std::string& extension_id,
877- const base::Value& attributes);
878-
879 // Enables an extension that was only previously disabled remotely.
880 void MaybeEnableRemotelyDisabledExtension(const std::string& extension_id);
881
882@@ -639,8 +616,6 @@ class ExtensionService : public Extensio
883 799
884 SafeBrowsingVerdictHandler safe_browsing_verdict_handler_; 800 SafeBrowsingVerdictHandler safe_browsing_verdict_handler_;
885 801
886- OmahaAttributesHandler omaha_attributes_handler_; 802- OmahaAttributesHandler omaha_attributes_handler_;
887- 803-
888 // Sets of enabled/disabled/terminated/blocklisted extensions. Not owned. 804 // Sets of enabled/disabled/terminated/blocklisted extensions. Not owned.
889 ExtensionRegistry* registry_ = nullptr; 805 raw_ptr<ExtensionRegistry> registry_ = nullptr;
890 806
891--- chrome/browser/extensions/extension_system_impl.cc.orig 807--- a/chrome/browser/extensions/extension_system_impl.cc
892+++ chrome/browser/extensions/extension_system_impl.cc 808+++ b/chrome/browser/extensions/extension_system_impl.cc
893@@ -465,8 +465,6 @@ void ExtensionSystemImpl::InstallUpdate( 809@@ -465,8 +465,6 @@ void ExtensionSystemImpl::InstallUpdate(
894 void ExtensionSystemImpl::PerformActionBasedOnOmahaAttributes( 810 void ExtensionSystemImpl::PerformActionBasedOnOmahaAttributes(
895 const std::string& extension_id, 811 const std::string& extension_id,
@@ -899,28 +815,42 @@
899 } 815 }
900 816
901 bool ExtensionSystemImpl::FinishDelayedInstallationIfReady( 817 bool ExtensionSystemImpl::FinishDelayedInstallationIfReady(
902--- chrome/browser/extensions/safe_browsing_verdict_handler.cc.orig 818--- a/chrome/browser/extensions/safe_browsing_verdict_handler.cc
903+++ chrome/browser/extensions/safe_browsing_verdict_handler.cc 819+++ b/chrome/browser/extensions/safe_browsing_verdict_handler.cc
904@@ -101,8 +101,6 @@ void SafeBrowsingVerdictHandler::UpdateG 820@@ -119,7 +119,6 @@ void SafeBrowsingVerdictHandler::UpdateB
821 blocklist_.Remove(id);
822 blocklist_prefs::SetSafeBrowsingExtensionBlocklistState(
823 id, BitMapBlocklistState::NOT_BLOCKLISTED, extension_prefs_);
824- extension_service_->OnBlocklistStateRemoved(id);
825 UMA_HISTOGRAM_ENUMERATION("ExtensionBlacklist.UnblacklistInstalled",
826 extension->location());
827 }
828@@ -133,7 +132,6 @@ void SafeBrowsingVerdictHandler::UpdateB
829 blocklist_.Insert(extension);
830 blocklist_prefs::SetSafeBrowsingExtensionBlocklistState(
831 id, BitMapBlocklistState::BLOCKLISTED_MALWARE, extension_prefs_);
832- extension_service_->OnBlocklistStateAdded(id);
833 UMA_HISTOGRAM_ENUMERATION("ExtensionBlacklist.BlacklistInstalled",
834 extension->location());
835 }
836@@ -157,7 +155,6 @@ void SafeBrowsingVerdictHandler::UpdateG
905 blocklist_prefs::SetSafeBrowsingExtensionBlocklistState( 837 blocklist_prefs::SetSafeBrowsingExtensionBlocklistState(
906 extension->id(), BitMapBlocklistState::NOT_BLOCKLISTED, 838 extension->id(), BitMapBlocklistState::NOT_BLOCKLISTED,
907 extension_prefs_); 839 extension_prefs_);
908- extension_service_->ClearGreylistedAcknowledgedStateAndMaybeReenable( 840- extension_service_->OnGreylistStateRemoved(extension->id());
909- extension->id());
910 UMA_HISTOGRAM_ENUMERATION("Extensions.Greylist.Enabled", 841 UMA_HISTOGRAM_ENUMERATION("Extensions.Greylist.Enabled",
911 extension->location()); 842 extension->location());
912 } 843 }
913@@ -125,8 +123,6 @@ void SafeBrowsingVerdictHandler::UpdateG 844@@ -177,7 +174,6 @@ void SafeBrowsingVerdictHandler::UpdateG
914 blocklist_prefs::BlocklistStateToBitMapBlocklistState(greylist_state); 845 blocklist_prefs::BlocklistStateToBitMapBlocklistState(greylist_state);
915 blocklist_prefs::SetSafeBrowsingExtensionBlocklistState( 846 blocklist_prefs::SetSafeBrowsingExtensionBlocklistState(
916 extension->id(), bitmap_greylist_state, extension_prefs_); 847 extension->id(), bitmap_greylist_state, extension_prefs_);
917- extension_service_->MaybeDisableGreylistedExtension(id, 848- extension_service_->OnGreylistStateAdded(id, bitmap_greylist_state);
918- bitmap_greylist_state);
919 UMA_HISTOGRAM_ENUMERATION("Extensions.Greylist.Disabled", 849 UMA_HISTOGRAM_ENUMERATION("Extensions.Greylist.Disabled",
920 extension->location()); 850 extension->location());
921 } 851 }
922--- chrome/browser/file_system_access/chrome_file_system_access_permission_context.cc.orig 852--- a/chrome/browser/file_system_access/chrome_file_system_access_permission_context.cc
923+++ chrome/browser/file_system_access/chrome_file_system_access_permission_context.cc 853+++ b/chrome/browser/file_system_access/chrome_file_system_access_permission_context.cc
924@@ -35,8 +35,6 @@ 854@@ -35,8 +35,6 @@
925 #include "chrome/browser/file_system_access/file_system_access_permission_request_manager.h" 855 #include "chrome/browser/file_system_access/file_system_access_permission_request_manager.h"
926 #include "chrome/browser/installable/installable_utils.h" 856 #include "chrome/browser/installable/installable_utils.h"
@@ -930,7 +860,7 @@
930 #include "chrome/browser/ui/file_system_access_dialogs.h" 860 #include "chrome/browser/ui/file_system_access_dialogs.h"
931 #include "chrome/common/chrome_paths.h" 861 #include "chrome/common/chrome_paths.h"
932 #include "components/content_settings/core/browser/host_content_settings_map.h" 862 #include "components/content_settings/core/browser/host_content_settings_map.h"
933@@ -299,83 +297,6 @@ BindResultCallbackToCurrentSequence( 863@@ -305,83 +303,6 @@ BindResultCallbackToCurrentSequence(
934 base::SequencedTaskRunnerHandle::Get(), std::move(callback)); 864 base::SequencedTaskRunnerHandle::Get(), std::move(callback));
935 } 865 }
936 866
@@ -1014,7 +944,7 @@
1014 std::string GenerateLastPickedDirectoryKey(const std::string& id) { 944 std::string GenerateLastPickedDirectoryKey(const std::string& id) {
1015 return id.empty() ? kDefaultLastPickedDirectoryKey 945 return id.empty() ? kDefaultLastPickedDirectoryKey
1016 : base::StrCat({kCustomLastPickedDirectoryKey, "-", id}); 946 : base::StrCat({kCustomLastPickedDirectoryKey, "-", id});
1017@@ -1106,28 +1027,6 @@ void ChromeFileSystemAccessPermissionCon 947@@ -1137,28 +1058,6 @@ void ChromeFileSystemAccessPermissionCon
1018 std::move(callback))); 948 std::move(callback)));
1019 } 949 }
1020 950
@@ -1043,9 +973,9 @@
1043 void ChromeFileSystemAccessPermissionContext:: 973 void ChromeFileSystemAccessPermissionContext::
1044 DidConfirmSensitiveDirectoryAccess( 974 DidConfirmSensitiveDirectoryAccess(
1045 const url::Origin& origin, 975 const url::Origin& origin,
1046--- chrome/browser/file_system_access/chrome_file_system_access_permission_context.h.orig 976--- a/chrome/browser/file_system_access/chrome_file_system_access_permission_context.h
1047+++ chrome/browser/file_system_access/chrome_file_system_access_permission_context.h 977+++ b/chrome/browser/file_system_access/chrome_file_system_access_permission_context.h
1048@@ -85,10 +85,6 @@ class ChromeFileSystemAccessPermissionCo 978@@ -86,10 +86,6 @@ class ChromeFileSystemAccessPermissionCo
1049 HandleType handle_type, 979 HandleType handle_type,
1050 content::GlobalRenderFrameHostId frame_id, 980 content::GlobalRenderFrameHostId frame_id,
1051 base::OnceCallback<void(SensitiveDirectoryResult)> callback) override; 981 base::OnceCallback<void(SensitiveDirectoryResult)> callback) override;
@@ -1056,9 +986,9 @@
1056 bool CanObtainReadPermission(const url::Origin& origin) override; 986 bool CanObtainReadPermission(const url::Origin& origin) override;
1057 bool CanObtainWritePermission(const url::Origin& origin) override; 987 bool CanObtainWritePermission(const url::Origin& origin) override;
1058 988
1059--- chrome/browser/media/webrtc/display_media_access_handler.cc.orig 989--- a/chrome/browser/media/webrtc/display_media_access_handler.cc
1060+++ chrome/browser/media/webrtc/display_media_access_handler.cc 990+++ b/chrome/browser/media/webrtc/display_media_access_handler.cc
1061@@ -25,6 +25,7 @@ 991@@ -23,6 +23,7 @@
1062 #include "chrome/browser/safe_browsing/user_interaction_observer.h" 992 #include "chrome/browser/safe_browsing/user_interaction_observer.h"
1063 #include "chrome/common/pref_names.h" 993 #include "chrome/common/pref_names.h"
1064 #include "components/prefs/pref_service.h" 994 #include "components/prefs/pref_service.h"
@@ -1066,7 +996,7 @@
1066 #include "components/url_formatter/elide_url.h" 996 #include "components/url_formatter/elide_url.h"
1067 #include "content/public/browser/browser_thread.h" 997 #include "content/public/browser/browser_thread.h"
1068 #include "content/public/browser/desktop_capture.h" 998 #include "content/public/browser/desktop_capture.h"
1069@@ -111,6 +112,7 @@ void DisplayMediaAccessHandler::HandleRe 999@@ -106,6 +107,7 @@ void DisplayMediaAccessHandler::HandleRe
1070 return; 1000 return;
1071 } 1001 }
1072 1002
@@ -1074,25 +1004,41 @@
1074 // SafeBrowsing Delayed Warnings experiment can delay some SafeBrowsing 1004 // SafeBrowsing Delayed Warnings experiment can delay some SafeBrowsing
1075 // warnings until user interaction. If the current page has a delayed warning, 1005 // warnings until user interaction. If the current page has a delayed warning,
1076 // it'll have a user interaction observer attached. Show the warning 1006 // it'll have a user interaction observer attached. Show the warning
1077@@ -125,6 +127,7 @@ void DisplayMediaAccessHandler::HandleRe 1007@@ -121,6 +123,7 @@ void DisplayMediaAccessHandler::HandleRe
1078 observer->OnDesktopCaptureRequest(); 1008 observer->OnDesktopCaptureRequest();
1079 return; 1009 return;
1080 } 1010 }
1081+ #endif // BUILDFLAG(FULL_SAFE_BROWSING) 1011+ #endif // BUILDFLAG(FULL_SAFE_BROWSING)
1082 1012
1083 #if defined(OS_MAC) 1013 #if BUILDFLAG(IS_MAC)
1084 // Do not allow picker UI to be shown on a page that isn't in the foreground 1014 // Do not allow picker UI to be shown on a page that isn't in the foreground
1085--- chrome/browser/password_manager/chrome_password_manager_client.cc.orig 1015--- a/chrome/browser/notifications/notification_display_service_impl.cc
1086+++ chrome/browser/password_manager/chrome_password_manager_client.cc 1016+++ b/chrome/browser/notifications/notification_display_service_impl.cc
1017@@ -88,13 +88,6 @@ NotificationDisplayServiceImpl::Notifica
1018 profile_));
1019 #endif
1020
1021-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || \
1022- BUILDFLAG(IS_WIN)
1023- AddNotificationHandler(
1024- NotificationHandler::Type::TAILORED_SECURITY,
1025- std::make_unique<safe_browsing::TailoredSecurityNotificationHandler>());
1026-#endif
1027-
1028 #if BUILDFLAG(ENABLE_EXTENSIONS)
1029 AddNotificationHandler(
1030 NotificationHandler::Type::EXTENSION,
1031--- a/chrome/browser/password_manager/chrome_password_manager_client.cc
1032+++ b/chrome/browser/password_manager/chrome_password_manager_client.cc
1087@@ -33,7 +33,6 @@ 1033@@ -33,7 +33,6 @@
1088 #include "chrome/browser/password_manager/password_reuse_manager_factory.h" 1034 #include "chrome/browser/password_manager/password_scripts_fetcher_factory.h"
1089 #include "chrome/browser/password_manager/password_store_factory.h" 1035 #include "chrome/browser/password_manager/password_store_factory.h"
1090 #include "chrome/browser/profiles/profile.h" 1036 #include "chrome/browser/profiles/profile.h"
1091-#include "chrome/browser/safe_browsing/chrome_password_protection_service.h" 1037-#include "chrome/browser/safe_browsing/chrome_password_protection_service.h"
1092 #include "chrome/browser/safe_browsing/user_interaction_observer.h" 1038 #include "chrome/browser/safe_browsing/user_interaction_observer.h"
1093 #include "chrome/browser/signin/identity_manager_factory.h" 1039 #include "chrome/browser/signin/identity_manager_factory.h"
1094 #include "chrome/browser/sync/sync_service_factory.h" 1040 #include "chrome/browser/sync/sync_service_factory.h"
1095@@ -110,11 +109,11 @@ 1041@@ -114,11 +113,11 @@
1096 #if BUILDFLAG(FULL_SAFE_BROWSING) 1042 #if BUILDFLAG(FULL_SAFE_BROWSING)
1097 #include "chrome/browser/safe_browsing/advanced_protection_status_manager.h" 1043 #include "chrome/browser/safe_browsing/advanced_protection_status_manager.h"
1098 #include "chrome/browser/safe_browsing/advanced_protection_status_manager_factory.h" 1044 #include "chrome/browser/safe_browsing/advanced_protection_status_manager_factory.h"
@@ -1103,9 +1049,9 @@
1103 #include "ui/events/keycodes/keyboard_codes.h" 1049 #include "ui/events/keycodes/keyboard_codes.h"
1104-#endif 1050-#endif
1105 1051
1106 #if defined(OS_ANDROID) 1052 #if BUILDFLAG(IS_ANDROID)
1107 #include "chrome/browser/android/tab_android.h" 1053 #include "chrome/browser/android/tab_android.h"
1108@@ -826,6 +825,7 @@ autofill::LanguageCode ChromePasswordMan 1054@@ -850,6 +849,7 @@ autofill::LanguageCode ChromePasswordMan
1109 return autofill::LanguageCode(); 1055 return autofill::LanguageCode();
1110 } 1056 }
1111 1057
@@ -1113,45 +1059,59 @@
1113 safe_browsing::PasswordProtectionService* 1059 safe_browsing::PasswordProtectionService*
1114 ChromePasswordManagerClient::GetPasswordProtectionService() const { 1060 ChromePasswordManagerClient::GetPasswordProtectionService() const {
1115 return safe_browsing::ChromePasswordProtectionService:: 1061 return safe_browsing::ChromePasswordProtectionService::
1116@@ -836,13 +836,6 @@ ChromePasswordManagerClient::GetPassword 1062@@ -885,13 +885,9 @@ void ChromePasswordManagerClient::CheckP
1117 void ChromePasswordManagerClient::CheckSafeBrowsingReputation( 1063 web_contents(), web_contents()->GetLastCommittedURL(), username,
1118 const GURL& form_action, 1064 password_type, matching_reused_credentials, password_field_exists);
1119 const GURL& frame_url) { 1065 }
1066+#endif // BUILDFLAG(FULL_SAFE_BROWSING)
1067
1068 void ChromePasswordManagerClient::LogPasswordReuseDetectedEvent() {
1120- safe_browsing::PasswordProtectionService* pps = 1069- safe_browsing::PasswordProtectionService* pps =
1121- GetPasswordProtectionService(); 1070- GetPasswordProtectionService();
1122- if (pps) { 1071- if (pps) {
1123- pps->MaybeStartPasswordFieldOnFocusRequest( 1072- pps->MaybeLogPasswordReuseDetectedEvent(web_contents());
1124- web_contents(), web_contents()->GetLastCommittedURL(), form_action,
1125- frame_url, pps->GetAccountInfo().hosted_domain);
1126- } 1073- }
1127 } 1074 }
1128 #endif // defined(ON_FOCUS_PING_ENABLED)
1129 1075
1130@@ -852,22 +845,10 @@ void ChromePasswordManagerClient::CheckP 1076 #if !BUILDFLAG(IS_ANDROID)
1131 const std::vector<password_manager::MatchingReusedCredential>& 1077@@ -900,36 +896,10 @@ void ChromePasswordManagerClient::MaybeR
1132 matching_reused_credentials, 1078 bool is_federated,
1133 bool password_field_exists) { 1079 const url::Origin& federated_origin,
1134- safe_browsing::PasswordProtectionService* pps = 1080 const std::u16string& login_user_name) const {
1135- GetPasswordProtectionService(); 1081- if (!base::FeatureList::IsEnabled(policy::features::kLoginEventReporting))
1136- if (!pps) 1082- return;
1083-
1084- extensions::SafeBrowsingPrivateEventRouter* router =
1085- extensions::SafeBrowsingPrivateEventRouterFactory::GetForProfile(
1086- profile_);
1087- if (!router)
1137- return; 1088- return;
1138- 1089-
1139- pps->MaybeStartProtectedPasswordEntryRequest( 1090- // The router is responsible for checking if the reporting of this event type
1140- web_contents(), web_contents()->GetLastCommittedURL(), username, 1091- // is enabled by the admin.
1141- password_type, matching_reused_credentials, password_field_exists); 1092- router->OnLoginEvent(url, is_federated, federated_origin, login_user_name);
1142 } 1093 }
1143+#endif // BUILDFLAG(FULL_SAFE_BROWSING)
1144 1094
1145 void ChromePasswordManagerClient::LogPasswordReuseDetectedEvent() { 1095 void ChromePasswordManagerClient::MaybeReportEnterprisePasswordBreachEvent(
1146- safe_browsing::PasswordProtectionService* pps = 1096 const std::vector<std::pair<GURL, std::u16string>>& identities) const {
1147- GetPasswordProtectionService(); 1097- if (!base::FeatureList::IsEnabled(
1148- if (pps) { 1098- policy::features::kPasswordBreachEventReporting)) {
1149- pps->MaybeLogPasswordReuseDetectedEvent(web_contents()); 1099- return;
1150- } 1100- }
1101-
1102- extensions::SafeBrowsingPrivateEventRouter* router =
1103- extensions::SafeBrowsingPrivateEventRouterFactory::GetForProfile(
1104- profile_);
1105- if (!router)
1106- return;
1107-
1108- // The router is responsible for checking if the reporting of this event type
1109- // is enabled by the admin.
1110- router->OnPasswordBreach(kPasswordBreachEntryTrigger, identities);
1151 } 1111 }
1112 #endif
1152 1113
1153 #if !defined(OS_ANDROID) 1114@@ -1398,9 +1368,11 @@ void ChromePasswordManagerClient::OnPast
1154@@ -1365,9 +1346,11 @@ void ChromePasswordManagerClient::OnPast
1155 } 1115 }
1156 1116
1157 was_on_paste_called_ = true; 1117 was_on_paste_called_ = true;
@@ -1160,11 +1120,11 @@
1160+#endif // defined(SYNC_PASSWORD_REUSE_WARNING_ENABLED) 1120+#endif // defined(SYNC_PASSWORD_REUSE_WARNING_ENABLED)
1161 } 1121 }
1162-#endif 1122-#endif
1163+#endif // !defined(OS_ANDROID) 1123+#endif // !BUILDFLAG(IS_ANDROID)
1164 1124
1165 void ChromePasswordManagerClient::RenderFrameCreated( 1125 void ChromePasswordManagerClient::RenderFrameCreated(
1166 content::RenderFrameHost* render_frame_host) { 1126 content::RenderFrameHost* render_frame_host) {
1167@@ -1402,7 +1385,9 @@ void ChromePasswordManagerClient::OnInpu 1127@@ -1435,7 +1407,9 @@ void ChromePasswordManagerClient::OnInpu
1168 if (key_event.windows_key_code == (ui::VKEY_V & 0x1f)) { 1128 if (key_event.windows_key_code == (ui::VKEY_V & 0x1f)) {
1169 OnPaste(); 1129 OnPaste();
1170 } else { 1130 } else {
@@ -1172,9 +1132,9 @@
1172 password_reuse_detection_manager_.OnKeyPressedCommitted(key_event.text); 1132 password_reuse_detection_manager_.OnKeyPressedCommitted(key_event.text);
1173+#endif // defined(SYNC_PASSWORD_REUSE_DETECTION_ENABLED) 1133+#endif // defined(SYNC_PASSWORD_REUSE_DETECTION_ENABLED)
1174 } 1134 }
1175 #endif // defined(OS_ANDROID) 1135 #endif // BUILDFLAG(IS_ANDROID)
1176 } 1136 }
1177@@ -1441,6 +1426,7 @@ bool ChromePasswordManagerClient::IsPass 1137@@ -1474,6 +1448,7 @@ bool ChromePasswordManagerClient::IsPass
1178 is_enabled = false; 1138 is_enabled = false;
1179 } 1139 }
1180 1140
@@ -1182,7 +1142,7 @@
1182 // SafeBrowsing Delayed Warnings experiment can delay some SafeBrowsing 1142 // SafeBrowsing Delayed Warnings experiment can delay some SafeBrowsing
1183 // warnings until user interaction. If the current page has a delayed warning, 1143 // warnings until user interaction. If the current page has a delayed warning,
1184 // it'll have a user interaction observer attached. Disable password 1144 // it'll have a user interaction observer attached. Disable password
1185@@ -1451,6 +1437,7 @@ bool ChromePasswordManagerClient::IsPass 1145@@ -1484,6 +1459,7 @@ bool ChromePasswordManagerClient::IsPass
1186 observer->OnPasswordSaveOrAutofillDenied(); 1146 observer->OnPasswordSaveOrAutofillDenied();
1187 is_enabled = false; 1147 is_enabled = false;
1188 } 1148 }
@@ -1190,9 +1150,9 @@
1190 1150
1191 if (log_manager_->IsLoggingActive()) { 1151 if (log_manager_->IsLoggingActive()) {
1192 password_manager::BrowserSavePasswordProgressLogger logger( 1152 password_manager::BrowserSavePasswordProgressLogger logger(
1193--- chrome/browser/password_manager/chrome_password_manager_client.h.orig 1153--- a/chrome/browser/password_manager/chrome_password_manager_client.h
1194+++ chrome/browser/password_manager/chrome_password_manager_client.h 1154+++ b/chrome/browser/password_manager/chrome_password_manager_client.h
1195@@ -207,13 +207,14 @@ class ChromePasswordManagerClient 1155@@ -216,13 +216,14 @@ class ChromePasswordManagerClient
1196 void AnnotateNavigationEntry(bool has_password_field) override; 1156 void AnnotateNavigationEntry(bool has_password_field) override;
1197 autofill::LanguageCode GetPageLanguage() const override; 1157 autofill::LanguageCode GetPageLanguage() const override;
1198 1158
@@ -1208,7 +1168,7 @@
1208 1168
1209 void CheckProtectedPasswordEntry( 1169 void CheckProtectedPasswordEntry(
1210 password_manager::metrics_util::PasswordType reused_password_type, 1170 password_manager::metrics_util::PasswordType reused_password_type,
1211@@ -221,6 +222,7 @@ class ChromePasswordManagerClient 1171@@ -230,6 +231,7 @@ class ChromePasswordManagerClient
1212 const std::vector<password_manager::MatchingReusedCredential>& 1172 const std::vector<password_manager::MatchingReusedCredential>&
1213 matching_reused_credentials, 1173 matching_reused_credentials,
1214 bool password_field_exists) override; 1174 bool password_field_exists) override;
@@ -1216,8 +1176,8 @@
1216 1176
1217 void LogPasswordReuseDetectedEvent() override; 1177 void LogPasswordReuseDetectedEvent() override;
1218 1178
1219--- chrome/browser/permissions/abusive_origin_permission_revocation_request.cc.orig 1179--- a/chrome/browser/permissions/abusive_origin_permission_revocation_request.cc
1220+++ chrome/browser/permissions/abusive_origin_permission_revocation_request.cc 1180+++ b/chrome/browser/permissions/abusive_origin_permission_revocation_request.cc
1221@@ -136,6 +136,7 @@ void AbusiveOriginPermissionRevocationRe 1181@@ -136,6 +136,7 @@ void AbusiveOriginPermissionRevocationRe
1222 DCHECK(profile_); 1182 DCHECK(profile_);
1223 DCHECK(callback_); 1183 DCHECK(callback_);
@@ -1234,9 +1194,9 @@
1234 } 1194 }
1235 1195
1236 void AbusiveOriginPermissionRevocationRequest::OnSafeBrowsingVerdictReceived( 1196 void AbusiveOriginPermissionRevocationRequest::OnSafeBrowsingVerdictReceived(
1237--- chrome/browser/permissions/contextual_notification_permission_ui_selector.cc.orig 1197--- a/chrome/browser/permissions/contextual_notification_permission_ui_selector.cc
1238+++ chrome/browser/permissions/contextual_notification_permission_ui_selector.cc 1198+++ b/chrome/browser/permissions/contextual_notification_permission_ui_selector.cc
1239@@ -17,7 +17,6 @@ 1199@@ -16,7 +16,6 @@
1240 #include "chrome/browser/browser_process.h" 1200 #include "chrome/browser/browser_process.h"
1241 #include "chrome/browser/permissions/quiet_notification_permission_ui_config.h" 1201 #include "chrome/browser/permissions/quiet_notification_permission_ui_config.h"
1242 #include "chrome/browser/permissions/quiet_notification_permission_ui_state.h" 1202 #include "chrome/browser/permissions/quiet_notification_permission_ui_state.h"
@@ -1244,7 +1204,7 @@
1244 #include "chrome/common/chrome_features.h" 1204 #include "chrome/common/chrome_features.h"
1245 #include "components/permissions/permission_request.h" 1205 #include "components/permissions/permission_request.h"
1246 #include "components/permissions/request_type.h" 1206 #include "components/permissions/request_type.h"
1247@@ -151,9 +150,6 @@ void ContextualNotificationPermissionUiS 1207@@ -150,9 +149,6 @@ void ContextualNotificationPermissionUiS
1248 } 1208 }
1249 1209
1250 void ContextualNotificationPermissionUiSelector::Cancel() { 1210 void ContextualNotificationPermissionUiSelector::Cancel() {
@@ -1254,7 +1214,7 @@
1254 } 1214 }
1255 1215
1256 bool ContextualNotificationPermissionUiSelector::IsPermissionRequestSupported( 1216 bool ContextualNotificationPermissionUiSelector::IsPermissionRequestSupported(
1257@@ -179,24 +175,14 @@ void ContextualNotificationPermissionUiS 1217@@ -178,24 +174,14 @@ void ContextualNotificationPermissionUiS
1258 absl::optional<Decision> decision = 1218 absl::optional<Decision> decision =
1259 GetDecisionBasedOnSiteReputation(reputation); 1219 GetDecisionBasedOnSiteReputation(reputation);
1260 1220
@@ -1284,23 +1244,92 @@
1284 } 1244 }
1285 1245
1286 void ContextualNotificationPermissionUiSelector::OnSafeBrowsingVerdictReceived( 1246 void ContextualNotificationPermissionUiSelector::OnSafeBrowsingVerdictReceived(
1287--- chrome/browser/permissions/prediction_based_permission_ui_selector.cc.orig 1247--- a/chrome/browser/permissions/prediction_based_permission_ui_selector.cc
1288+++ chrome/browser/permissions/prediction_based_permission_ui_selector.cc 1248+++ b/chrome/browser/permissions/prediction_based_permission_ui_selector.cc
1289@@ -212,10 +212,8 @@ bool PredictionBasedPermissionUiSelector 1249@@ -322,47 +322,5 @@ bool PredictionBasedPermissionUiSelector
1250
1251 PredictionSource PredictionBasedPermissionUiSelector::GetPredictionTypeToUse(
1290 permissions::RequestType request_type) { 1252 permissions::RequestType request_type) {
1291 // We need to also check `kQuietNotificationPrompts` here since there is no 1253- if (!safe_browsing::IsSafeBrowsingEnabled(*(profile_->GetPrefs()))) {
1292 // generic safeguard anywhere else in the stack. 1254 return PredictionSource::USE_NONE;
1293- if (!base::FeatureList::IsEnabled(features::kQuietNotificationPrompts) || 1255- }
1294- !safe_browsing::IsSafeBrowsingEnabled(*(profile_->GetPrefs()))) { 1256-
1295+ if (!base::FeatureList::IsEnabled(features::kQuietNotificationPrompts)) 1257- bool is_server_side_prediction_enabled = false;
1296 return false; 1258- bool is_ondevice_prediction_enabled = false;
1259-
1260- bool is_tflite_available = false;
1261-#if BUILDFLAG(BUILD_WITH_TFLITE_LIB)
1262- is_tflite_available = true;
1263-#endif // BUILDFLAG(BUILD_WITH_TFLITE_LIB)
1264-
1265- // Notification supports both flavours of the quiet prompt
1266- if (request_type == permissions::RequestType::kNotifications &&
1267- (base::FeatureList::IsEnabled(features::kQuietNotificationPrompts) ||
1268- base::FeatureList::IsEnabled(
1269- permissions::features::kPermissionQuietChip))) {
1270- is_server_side_prediction_enabled =
1271- base::FeatureList::IsEnabled(features::kPermissionPredictions);
1272-
1273- is_ondevice_prediction_enabled =
1274- is_tflite_available &&
1275- base::FeatureList::IsEnabled(
1276- permissions::features::kPermissionOnDeviceNotificationPredictions);
1277- }
1278-
1279- // Geolocation supports only the quiet chip ui
1280- if (request_type == permissions::RequestType::kGeolocation &&
1281- base::FeatureList::IsEnabled(
1282- permissions::features::kPermissionQuietChip)) {
1283- is_server_side_prediction_enabled = base::FeatureList::IsEnabled(
1284- features::kPermissionGeolocationPredictions);
1285- }
1286-
1287- if (is_server_side_prediction_enabled && is_ondevice_prediction_enabled) {
1288- return PredictionSource::USE_ANY;
1289- } else if (is_server_side_prediction_enabled) {
1290- return PredictionSource::USE_SERVER_SIDE;
1291- } else if (is_ondevice_prediction_enabled) {
1292- return PredictionSource::USE_ONDEVICE;
1293- } else {
1294- return PredictionSource::USE_NONE;
1297- } 1295- }
1298 double hold_back_chance = 0.0; 1296 }
1299 bool is_permissions_predictions_enabled = false; 1297--- a/chrome/browser/policy/configuration_policy_handler_list_factory.cc
1300 switch (request_type) { 1298+++ b/chrome/browser/policy/configuration_policy_handler_list_factory.cc
1301--- chrome/browser/prefs/browser_prefs.cc.orig 1299@@ -92,6 +92,7 @@
1302+++ chrome/browser/prefs/browser_prefs.cc 1300 #include "components/policy/core/common/schema.h"
1303@@ -243,7 +243,6 @@ 1301 #include "components/policy/policy_constants.h"
1302 #include "components/proxy_config/proxy_policy_handler.h"
1303+#include "components/safe_browsing/buildflags.h"
1304 #include "components/safe_browsing/content/common/file_type_policies_prefs.h"
1305 #include "components/safe_browsing/core/common/safe_browsing_policy_handler.h"
1306 #include "components/safe_browsing/core/common/safe_browsing_prefs.h"
1307@@ -1732,8 +1733,6 @@ std::unique_ptr<ConfigurationPolicyHandl
1308 handlers->AddHandler(
1309 std::make_unique<bookmarks::ManagedBookmarksPolicyHandler>(
1310 chrome_schema));
1311- handlers->AddHandler(
1312- std::make_unique<safe_browsing::SafeBrowsingPolicyHandler>());
1313 handlers->AddHandler(std::make_unique<syncer::SyncPolicyHandler>());
1314 handlers->AddHandler(
1315 std::make_unique<URLBlocklistPolicyHandler>(key::kURLBlocklist));
1316@@ -1790,13 +1789,6 @@ std::unique_ptr<ConfigurationPolicyHandl
1317 prefs::kSafeBrowsingEnterpriseRealTimeUrlCheckMode,
1318 prefs::kSafeBrowsingEnterpriseRealTimeUrlCheckScope, chrome_schema));
1319
1320- handlers->AddHandler(std::make_unique<SimpleSchemaValidatingPolicyHandler>(
1321- key::kExemptDomainFileTypePairsFromFileTypeDownloadWarnings,
1322- safe_browsing::file_type::prefs::
1323- kExemptDomainFileTypePairsFromFileTypeDownloadWarnings,
1324- chrome_schema, SCHEMA_ALLOW_UNKNOWN,
1325- SimpleSchemaValidatingPolicyHandler::RECOMMENDED_PROHIBITED,
1326- SimpleSchemaValidatingPolicyHandler::MANDATORY_ALLOWED));
1327 handlers->AddHandler(
1328 std::make_unique<ManagedAccountRestrictionsPolicyHandler>(chrome_schema));
1329
1330--- a/chrome/browser/prefs/browser_prefs.cc
1331+++ b/chrome/browser/prefs/browser_prefs.cc
1332@@ -248,7 +248,6 @@
1304 #include "chrome/browser/nearby_sharing/common/nearby_share_prefs.h" 1333 #include "chrome/browser/nearby_sharing/common/nearby_share_prefs.h"
1305 #include "chrome/browser/new_tab_page/modules/drive/drive_service.h" 1334 #include "chrome/browser/new_tab_page/modules/drive/drive_service.h"
1306 #include "chrome/browser/new_tab_page/modules/photos/photos_service.h" 1335 #include "chrome/browser/new_tab_page/modules/photos/photos_service.h"
@@ -1308,7 +1337,7 @@
1308 #include "chrome/browser/new_tab_page/modules/task_module/task_module_service.h" 1337 #include "chrome/browser/new_tab_page/modules/task_module/task_module_service.h"
1309 #include "chrome/browser/new_tab_page/promos/promo_service.h" 1338 #include "chrome/browser/new_tab_page/promos/promo_service.h"
1310 #include "chrome/browser/search/background/ntp_custom_background_service.h" 1339 #include "chrome/browser/search/background/ntp_custom_background_service.h"
1311@@ -1277,7 +1276,6 @@ void RegisterProfilePrefs(user_prefs::Pr 1340@@ -1386,7 +1385,6 @@ void RegisterProfilePrefs(user_prefs::Pr
1312 NewTabPageHandler::RegisterProfilePrefs(registry); 1341 NewTabPageHandler::RegisterProfilePrefs(registry);
1313 NewTabPageUI::RegisterProfilePrefs(registry); 1342 NewTabPageUI::RegisterProfilePrefs(registry);
1314 NewTabUI::RegisterProfilePrefs(registry); 1343 NewTabUI::RegisterProfilePrefs(registry);
@@ -1316,8 +1345,18 @@
1316 ntp_tiles::CustomLinksManagerImpl::RegisterProfilePrefs(registry); 1345 ntp_tiles::CustomLinksManagerImpl::RegisterProfilePrefs(registry);
1317 PhotosService::RegisterProfilePrefs(registry); 1346 PhotosService::RegisterProfilePrefs(registry);
1318 PinnedTabCodec::RegisterProfilePrefs(registry); 1347 PinnedTabCodec::RegisterProfilePrefs(registry);
1319--- chrome/browser/reputation/reputation_service.cc.orig 1348--- a/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc
1320+++ chrome/browser/reputation/reputation_service.cc 1349+++ b/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc
1350@@ -536,7 +536,6 @@ void ChromeBrowserMainExtraPartsProfiles
1351 SystemExtensionsProviderFactory::GetInstance();
1352 #endif
1353 TabRestoreServiceFactory::GetInstance();
1354- safe_browsing::TailoredSecurityServiceFactory::GetInstance();
1355 TemplateURLFetcherFactory::GetInstance();
1356 TemplateURLServiceFactory::GetInstance();
1357 #if !BUILDFLAG(IS_ANDROID)
1358--- a/chrome/browser/reputation/reputation_service.cc
1359+++ b/chrome/browser/reputation/reputation_service.cc
1321@@ -120,9 +120,7 @@ void ReputationService::GetReputationSta 1360@@ -120,9 +120,7 @@ void ReputationService::GetReputationSta
1322 ReputationCheckCallback callback) { 1361 ReputationCheckCallback callback) {
1323 DCHECK(url.SchemeIsHTTPOrHTTPS()); 1362 DCHECK(url.SchemeIsHTTPOrHTTPS());
@@ -1329,8 +1368,18 @@
1329 1368
1330 LookalikeUrlService* service = LookalikeUrlService::Get(profile_); 1369 LookalikeUrlService* service = LookalikeUrlService::Get(profile_);
1331 if (service->EngagedSitesNeedUpdating()) { 1370 if (service->EngagedSitesNeedUpdating()) {
1332--- chrome/browser/safe_browsing/metrics/safe_browsing_metrics_provider.cc.orig 1371--- a/chrome/browser/resources/settings/privacy_page/privacy_guide/privacy_guide_page.ts
1333+++ chrome/browser/safe_browsing/metrics/safe_browsing_metrics_provider.cc 1372+++ b/chrome/browser/resources/settings/privacy_page/privacy_guide/privacy_guide_page.ts
1373@@ -17,7 +17,6 @@ import './privacy_guide_completion_fragm
1374 import './privacy_guide_cookies_fragment.js';
1375 import './privacy_guide_history_sync_fragment.js';
1376 import './privacy_guide_msbb_fragment.js';
1377-import './privacy_guide_safe_browsing_fragment.js';
1378 import './privacy_guide_welcome_fragment.js';
1379 import './step_indicator.js';
1380
1381--- a/chrome/browser/safe_browsing/metrics/safe_browsing_metrics_provider.cc
1382+++ b/chrome/browser/safe_browsing/metrics/safe_browsing_metrics_provider.cc
1334@@ -17,15 +17,6 @@ SafeBrowsingMetricsProvider::~SafeBrowsi 1383@@ -17,15 +17,6 @@ SafeBrowsingMetricsProvider::~SafeBrowsi
1335 1384
1336 void SafeBrowsingMetricsProvider::ProvideCurrentSessionData( 1385 void SafeBrowsingMetricsProvider::ProvideCurrentSessionData(
@@ -1347,8 +1396,8 @@
1347 } 1396 }
1348 1397
1349 } // namespace safe_browsing 1398 } // namespace safe_browsing
1350--- chrome/browser/safe_browsing/url_lookup_service_factory.cc.orig 1399--- a/chrome/browser/safe_browsing/url_lookup_service_factory.cc
1351+++ chrome/browser/safe_browsing/url_lookup_service_factory.cc 1400+++ b/chrome/browser/safe_browsing/url_lookup_service_factory.cc
1352@@ -59,28 +59,7 @@ RealTimeUrlLookupServiceFactory::RealTim 1401@@ -59,28 +59,7 @@ RealTimeUrlLookupServiceFactory::RealTim
1353 1402
1354 KeyedService* RealTimeUrlLookupServiceFactory::BuildServiceInstanceFor( 1403 KeyedService* RealTimeUrlLookupServiceFactory::BuildServiceInstanceFor(
@@ -1379,9 +1428,9 @@
1379 } 1428 }
1380 1429
1381 } // namespace safe_browsing 1430 } // namespace safe_browsing
1382--- chrome/browser/ssl/chrome_security_blocking_page_factory.cc.orig 1431--- a/chrome/browser/ssl/chrome_security_blocking_page_factory.cc
1383+++ chrome/browser/ssl/chrome_security_blocking_page_factory.cc 1432+++ b/chrome/browser/ssl/chrome_security_blocking_page_factory.cc
1384@@ -142,15 +142,6 @@ CreateSettingsPageHelper() { 1433@@ -143,15 +143,6 @@ CreateSettingsPageHelper() {
1385 CreateChromeSettingsPageHelper(); 1434 CreateChromeSettingsPageHelper();
1386 } 1435 }
1387 1436
@@ -1397,9 +1446,9 @@
1397 } // namespace 1446 } // namespace
1398 1447
1399 std::unique_ptr<SSLBlockingPage> 1448 std::unique_ptr<SSLBlockingPage>
1400@@ -192,10 +183,6 @@ ChromeSecurityBlockingPageFactory::Creat 1449@@ -175,10 +166,6 @@ ChromeSecurityBlockingPageFactory::Creat
1401 } 1450 Profile::FromBrowserContext(web_contents->GetBrowserContext()));
1402 } 1451 state->DidDisplayErrorPage(cert_error);
1403 1452
1404- LogSafeBrowsingSecuritySensitiveAction( 1453- LogSafeBrowsingSecuritySensitiveAction(
1405- safe_browsing::SafeBrowsingMetricsCollectorFactory::GetForProfile( 1454- safe_browsing::SafeBrowsingMetricsCollectorFactory::GetForProfile(
@@ -1408,18 +1457,7 @@
1408 auto controller_client = std::make_unique<SSLErrorControllerClient>( 1457 auto controller_client = std::make_unique<SSLErrorControllerClient>(
1409 web_contents, ssl_info, cert_error, request_url, 1458 web_contents, ssl_info, cert_error, request_url,
1410 std::move(metrics_helper), CreateSettingsPageHelper()); 1459 std::move(metrics_helper), CreateSettingsPageHelper());
1411@@ -264,10 +251,6 @@ ChromeSecurityBlockingPageFactory::Creat 1460@@ -248,10 +235,6 @@ ChromeSecurityBlockingPageFactory::Creat
1412 const GURL& request_url,
1413 std::unique_ptr<SSLCertReporter> ssl_cert_reporter,
1414 const net::SSLInfo& ssl_info) {
1415- LogSafeBrowsingSecuritySensitiveAction(
1416- safe_browsing::SafeBrowsingMetricsCollectorFactory::GetForProfile(
1417- Profile::FromBrowserContext(web_contents->GetBrowserContext())));
1418-
1419 auto page = std::make_unique<LegacyTLSBlockingPage>(
1420 web_contents, cert_error, request_url, std::move(ssl_cert_reporter),
1421 /*can_show_enhanced_protection_message=*/true, ssl_info,
1422@@ -289,10 +272,6 @@ ChromeSecurityBlockingPageFactory::Creat
1423 std::unique_ptr<SSLCertReporter> ssl_cert_reporter, 1461 std::unique_ptr<SSLCertReporter> ssl_cert_reporter,
1424 const net::SSLInfo& ssl_info, 1462 const net::SSLInfo& ssl_info,
1425 const std::string& mitm_software_name) { 1463 const std::string& mitm_software_name) {
@@ -1430,7 +1468,7 @@
1430 auto page = std::make_unique<MITMSoftwareBlockingPage>( 1468 auto page = std::make_unique<MITMSoftwareBlockingPage>(
1431 web_contents, cert_error, request_url, std::move(ssl_cert_reporter), 1469 web_contents, cert_error, request_url, std::move(ssl_cert_reporter),
1432 /*can_show_enhanced_protection_message=*/true, ssl_info, 1470 /*can_show_enhanced_protection_message=*/true, ssl_info,
1433@@ -314,10 +293,6 @@ ChromeSecurityBlockingPageFactory::Creat 1471@@ -273,10 +256,6 @@ ChromeSecurityBlockingPageFactory::Creat
1434 const GURL& request_url, 1472 const GURL& request_url,
1435 std::unique_ptr<SSLCertReporter> ssl_cert_reporter, 1473 std::unique_ptr<SSLCertReporter> ssl_cert_reporter,
1436 const net::SSLInfo& ssl_info) { 1474 const net::SSLInfo& ssl_info) {
@@ -1441,8 +1479,8 @@
1441 auto page = std::make_unique<BlockedInterceptionBlockingPage>( 1479 auto page = std::make_unique<BlockedInterceptionBlockingPage>(
1442 web_contents, cert_error, request_url, std::move(ssl_cert_reporter), 1480 web_contents, cert_error, request_url, std::move(ssl_cert_reporter),
1443 /*can_show_enhanced_protection_message=*/true, ssl_info, 1481 /*can_show_enhanced_protection_message=*/true, ssl_info,
1444--- chrome/browser/ssl/sct_reporting_service_factory.cc.orig 1482--- a/chrome/browser/ssl/sct_reporting_service_factory.cc
1445+++ chrome/browser/ssl/sct_reporting_service_factory.cc 1483+++ b/chrome/browser/ssl/sct_reporting_service_factory.cc
1446@@ -32,15 +32,7 @@ SCTReportingServiceFactory::~SCTReportin 1484@@ -32,15 +32,7 @@ SCTReportingServiceFactory::~SCTReportin
1447 1485
1448 KeyedService* SCTReportingServiceFactory::BuildServiceInstanceFor( 1486 KeyedService* SCTReportingServiceFactory::BuildServiceInstanceFor(
@@ -1460,8 +1498,19 @@
1460 } 1498 }
1461 1499
1462 content::BrowserContext* SCTReportingServiceFactory::GetBrowserContextToUse( 1500 content::BrowserContext* SCTReportingServiceFactory::GetBrowserContextToUse(
1463--- chrome/browser/subresource_filter/chrome_content_subresource_filter_web_contents_helper_factory.cc.orig 1501--- a/chrome/browser/ssl/ssl_error_controller_client.cc
1464+++ chrome/browser/subresource_filter/chrome_content_subresource_filter_web_contents_helper_factory.cc 1502+++ b/chrome/browser/ssl/ssl_error_controller_client.cc
1503@@ -91,8 +91,6 @@ void SSLErrorControllerClient::GoBack()
1504 }
1505
1506 void SSLErrorControllerClient::Proceed() {
1507- MaybeTriggerSecurityInterstitialProceededEvent(web_contents_, request_url_,
1508- "SSL_ERROR", cert_error_);
1509 #if BUILDFLAG(ENABLE_EXTENSIONS)
1510 // Hosted Apps should not be allowed to run if there is a problem with their
1511 // certificate. So, when users click proceed on an interstitial, move the tab
1512--- a/chrome/browser/subresource_filter/chrome_content_subresource_filter_web_contents_helper_factory.cc
1513+++ b/chrome/browser/subresource_filter/chrome_content_subresource_filter_web_contents_helper_factory.cc
1465@@ -6,7 +6,6 @@ 1514@@ -6,7 +6,6 @@
1466 1515
1467 #include "chrome/browser/browser_process.h" 1516 #include "chrome/browser/browser_process.h"
@@ -1482,9 +1531,9 @@
1482 } 1531 }
1483 1532
1484 } // namespace 1533 } // namespace
1485--- chrome/browser/ui/BUILD.gn.orig 1534--- a/chrome/browser/ui/BUILD.gn
1486+++ chrome/browser/ui/BUILD.gn 1535+++ b/chrome/browser/ui/BUILD.gn
1487@@ -533,7 +533,6 @@ static_library("ui") { 1536@@ -546,7 +546,6 @@ static_library("ui") {
1488 "//components/renderer_context_menu", 1537 "//components/renderer_context_menu",
1489 "//components/resources", 1538 "//components/resources",
1490 "//components/safe_browsing/content/browser", 1539 "//components/safe_browsing/content/browser",
@@ -1492,8 +1541,17 @@
1492 "//components/safe_browsing/content/browser/password_protection", 1541 "//components/safe_browsing/content/browser/password_protection",
1493 "//components/safe_browsing/content/browser/web_ui", 1542 "//components/safe_browsing/content/browser/web_ui",
1494 "//components/safe_browsing/core/browser/db:database_manager", 1543 "//components/safe_browsing/core/browser/db:database_manager",
1495--- chrome/browser/ui/javascript_dialogs/javascript_tab_modal_dialog_manager_delegate_desktop.cc.orig 1544@@ -4667,8 +4666,6 @@ static_library("ui") {
1496+++ chrome/browser/ui/javascript_dialogs/javascript_tab_modal_dialog_manager_delegate_desktop.cc 1545 "views/safe_browsing/password_reuse_modal_warning_dialog.h",
1546 "views/safe_browsing/prompt_for_scanning_modal_dialog.cc",
1547 "views/safe_browsing/prompt_for_scanning_modal_dialog.h",
1548- "views/safe_browsing/tailored_security_unconsented_modal.cc",
1549- "views/safe_browsing/tailored_security_unconsented_modal.h",
1550 "views/send_tab_to_self/send_tab_to_self_bubble_device_button.cc",
1551 "views/send_tab_to_self/send_tab_to_self_bubble_device_button.h",
1552 "views/send_tab_to_self/send_tab_to_self_bubble_view_impl.cc",
1553--- a/chrome/browser/ui/javascript_dialogs/javascript_tab_modal_dialog_manager_delegate_desktop.cc
1554+++ b/chrome/browser/ui/javascript_dialogs/javascript_tab_modal_dialog_manager_delegate_desktop.cc
1497@@ -16,6 +16,7 @@ 1555@@ -16,6 +16,7 @@
1498 #include "components/javascript_dialogs/tab_modal_dialog_manager.h" 1556 #include "components/javascript_dialogs/tab_modal_dialog_manager.h"
1499 #include "components/javascript_dialogs/tab_modal_dialog_view.h" 1557 #include "components/javascript_dialogs/tab_modal_dialog_view.h"
@@ -1518,12 +1576,12 @@
1518 } 1576 }
1519 1577
1520 void JavaScriptTabModalDialogManagerDelegateDesktop::DidCloseDialog() { 1578 void JavaScriptTabModalDialogManagerDelegateDesktop::DidCloseDialog() {
1521--- chrome/browser/ui/tab_contents/chrome_web_contents_view_handle_drop.cc.orig 1579--- a/chrome/browser/ui/tab_contents/chrome_web_contents_view_handle_drop.cc
1522+++ chrome/browser/ui/tab_contents/chrome_web_contents_view_handle_drop.cc 1580+++ b/chrome/browser/ui/tab_contents/chrome_web_contents_view_handle_drop.cc
1523@@ -11,7 +11,10 @@ 1581@@ -10,7 +10,10 @@
1524 #include "base/task/post_task.h" 1582 #include "base/strings/utf_string_conversions.h"
1583 #include "base/task/task_runner_util.h"
1525 #include "base/task/thread_pool.h" 1584 #include "base/task/thread_pool.h"
1526 #include "base/task_runner_util.h"
1527+#include "components/safe_browsing/buildflags.h" 1585+#include "components/safe_browsing/buildflags.h"
1528+#if BUILDFLAG(FULL_SAFE_BROWSING) 1586+#if BUILDFLAG(FULL_SAFE_BROWSING)
1529 #include "chrome/browser/enterprise/connectors/analysis/content_analysis_delegate.h" 1587 #include "chrome/browser/enterprise/connectors/analysis/content_analysis_delegate.h"
@@ -1531,7 +1589,7 @@
1531 #include "chrome/browser/profiles/profile.h" 1589 #include "chrome/browser/profiles/profile.h"
1532 #include "chrome/browser/safe_browsing/cloud_content_scanning/deep_scanning_utils.h" 1590 #include "chrome/browser/safe_browsing/cloud_content_scanning/deep_scanning_utils.h"
1533 #include "content/public/browser/web_contents.h" 1591 #include "content/public/browser/web_contents.h"
1534@@ -22,6 +25,7 @@ 1592@@ -21,6 +24,7 @@
1535 1593
1536 namespace { 1594 namespace {
1537 1595
@@ -1539,7 +1597,7 @@
1539 void CompletionCallback( 1597 void CompletionCallback(
1540 content::WebContentsViewDelegate::DropCompletionCallback callback, 1598 content::WebContentsViewDelegate::DropCompletionCallback callback,
1541 const enterprise_connectors::ContentAnalysisDelegate::Data& data, 1599 const enterprise_connectors::ContentAnalysisDelegate::Data& data,
1542@@ -63,6 +67,7 @@ enterprise_connectors::ContentAnalysisDe 1600@@ -62,6 +66,7 @@ enterprise_connectors::ContentAnalysisDe
1543 } 1601 }
1544 return data; 1602 return data;
1545 } 1603 }
@@ -1547,7 +1605,7 @@
1547 1605
1548 // Helper class to handle WebContents being destroyed while files are opened in 1606 // Helper class to handle WebContents being destroyed while files are opened in
1549 // the threadpool. This class deletes itself either when it's no longer needed 1607 // the threadpool. This class deletes itself either when it's no longer needed
1550@@ -76,6 +81,7 @@ class HandleDropScanData : public conten 1608@@ -75,6 +80,7 @@ class HandleDropScanData : public conten
1551 : content::WebContentsObserver(web_contents), 1609 : content::WebContentsObserver(web_contents),
1552 callback_(std::move(callback)) {} 1610 callback_(std::move(callback)) {}
1553 1611
@@ -1555,7 +1613,7 @@
1555 void ScanData( 1613 void ScanData(
1556 enterprise_connectors::ContentAnalysisDelegate::Data analysis_data) { 1614 enterprise_connectors::ContentAnalysisDelegate::Data analysis_data) {
1557 DCHECK(web_contents()); 1615 DCHECK(web_contents());
1558@@ -87,6 +93,7 @@ class HandleDropScanData : public conten 1616@@ -86,6 +92,7 @@ class HandleDropScanData : public conten
1559 1617
1560 delete this; 1618 delete this;
1561 } 1619 }
@@ -1563,7 +1621,7 @@
1563 1621
1564 void WebContentsDestroyed() override { delete this; } 1622 void WebContentsDestroyed() override { delete this; }
1565 1623
1566@@ -106,13 +113,16 @@ void HandleOnPerformDrop( 1624@@ -105,13 +112,16 @@ void HandleOnPerformDrop(
1567 content::WebContents* web_contents, 1625 content::WebContents* web_contents,
1568 const content::DropData& drop_data, 1626 const content::DropData& drop_data,
1569 content::WebContentsViewDelegate::DropCompletionCallback callback) { 1627 content::WebContentsViewDelegate::DropCompletionCallback callback) {
@@ -1580,7 +1638,7 @@
1580 if (!enterprise_connectors::ContentAnalysisDelegate::IsEnabled( 1638 if (!enterprise_connectors::ContentAnalysisDelegate::IsEnabled(
1581 profile, web_contents->GetLastCommittedURL(), &data, connector)) { 1639 profile, web_contents->GetLastCommittedURL(), &data, connector)) {
1582 std::move(callback).Run( 1640 std::move(callback).Run(
1583@@ -154,4 +164,8 @@ void HandleOnPerformDrop( 1641@@ -151,4 +161,8 @@ void HandleOnPerformDrop(
1584 std::move(callback).Run( 1642 std::move(callback).Run(
1585 content::WebContentsViewDelegate::DropCompletionResult::kContinue); 1643 content::WebContentsViewDelegate::DropCompletionResult::kContinue);
1586 } 1644 }
@@ -1589,8 +1647,8 @@
1589+ content::WebContentsViewDelegate::DropCompletionResult::kContinue); 1647+ content::WebContentsViewDelegate::DropCompletionResult::kContinue);
1590+#endif // BUILDFLAG(FULL_SAFE_BROWSING) 1648+#endif // BUILDFLAG(FULL_SAFE_BROWSING)
1591 } 1649 }
1592--- chrome/browser/ui/views/download/download_item_view.cc.orig 1650--- a/chrome/browser/ui/views/download/download_item_view.cc
1593+++ chrome/browser/ui/views/download/download_item_view.cc 1651+++ b/chrome/browser/ui/views/download/download_item_view.cc
1594@@ -837,9 +837,7 @@ void DownloadItemView::UpdateLabels() { 1652@@ -837,9 +837,7 @@ void DownloadItemView::UpdateLabels() {
1595 deep_scanning_label_->SetVisible(mode_ == 1653 deep_scanning_label_->SetVisible(mode_ ==
1596 download::DownloadItemMode::kDeepScanning); 1654 download::DownloadItemMode::kDeepScanning);
@@ -1618,7 +1676,7 @@
1618 open_button_->SetEnabled((mode_ == download::DownloadItemMode::kNormal) || 1676 open_button_->SetEnabled((mode_ == download::DownloadItemMode::kNormal) ||
1619 prompt_to_scan || allow_open_during_deep_scan); 1677 prompt_to_scan || allow_open_during_deep_scan);
1620 1678
1621@@ -1427,7 +1429,9 @@ void DownloadItemView::ShowContextMenuIm 1679@@ -1421,7 +1423,9 @@ void DownloadItemView::ShowContextMenuIm
1622 } 1680 }
1623 1681
1624 void DownloadItemView::OpenDownloadDuringAsyncScanning() { 1682 void DownloadItemView::OpenDownloadDuringAsyncScanning() {
@@ -1628,9 +1686,9 @@
1628 model_->SetOpenWhenComplete(true); 1686 model_->SetOpenWhenComplete(true);
1629 } 1687 }
1630 1688
1631--- chrome/browser/ui/webui/downloads/downloads_dom_handler.cc.orig 1689--- a/chrome/browser/ui/webui/downloads/downloads_dom_handler.cc
1632+++ chrome/browser/ui/webui/downloads/downloads_dom_handler.cc 1690+++ b/chrome/browser/ui/webui/downloads/downloads_dom_handler.cc
1633@@ -366,7 +366,6 @@ void DownloadsDOMHandler::OpenDuringScan 1691@@ -367,7 +367,6 @@ void DownloadsDOMHandler::OpenDuringScan
1634 if (download) { 1692 if (download) {
1635 DownloadItemModel model(download); 1693 DownloadItemModel model(download);
1636 model.SetOpenWhenComplete(true); 1694 model.SetOpenWhenComplete(true);
@@ -1638,9 +1696,9 @@
1638 } 1696 }
1639 } 1697 }
1640 1698
1641--- chrome/browser/ui/webui/management/management_ui_handler.cc.orig 1699--- a/chrome/browser/ui/webui/management/management_ui_handler.cc
1642+++ chrome/browser/ui/webui/management/management_ui_handler.cc 1700+++ b/chrome/browser/ui/webui/management/management_ui_handler.cc
1643@@ -805,12 +805,6 @@ base::Value ManagementUIHandler::GetThre 1701@@ -843,12 +843,6 @@ base::Value ManagementUIHandler::GetThre
1644 &info); 1702 &info);
1645 } 1703 }
1646 1704
@@ -1653,9 +1711,9 @@
1653 const std::string enterprise_manager = 1711 const std::string enterprise_manager =
1654 connectors_service->GetManagementDomain(); 1712 connectors_service->GetManagementDomain();
1655 1713
1656--- chrome/browser/webshare/share_service_impl.cc.orig 1714--- a/chrome/browser/webshare/share_service_impl.cc
1657+++ chrome/browser/webshare/share_service_impl.cc 1715+++ b/chrome/browser/webshare/share_service_impl.cc
1658@@ -14,7 +14,9 @@ 1716@@ -17,7 +17,9 @@
1659 #include "chrome/browser/browser_process.h" 1717 #include "chrome/browser/browser_process.h"
1660 #include "chrome/browser/safe_browsing/safe_browsing_service.h" 1718 #include "chrome/browser/safe_browsing/safe_browsing_service.h"
1661 #include "chrome/common/chrome_features.h" 1719 #include "chrome/common/chrome_features.h"
@@ -1665,10 +1723,10 @@
1665 #include "components/safe_browsing/core/browser/db/database_manager.h" 1723 #include "components/safe_browsing/core/browser/db/database_manager.h"
1666 #include "content/public/browser/web_contents.h" 1724 #include "content/public/browser/web_contents.h"
1667 #include "mojo/public/cpp/bindings/self_owned_receiver.h" 1725 #include "mojo/public/cpp/bindings/self_owned_receiver.h"
1668@@ -182,11 +184,13 @@ void ShareServiceImpl::Share(const std:: 1726@@ -198,11 +200,13 @@ void ShareServiceImpl::Share(const std::
1727
1669 // Check if at least one file is marked by the download protection service 1728 // Check if at least one file is marked by the download protection service
1670 // to send a ping to check this file type. 1729 // to send a ping to check this file type.
1671 const base::FilePath path = base::FilePath::FromUTF8Unsafe(file->name);
1672+#if BUILDFLAG(SAFE_BROWSING_AVAILABLE) 1730+#if BUILDFLAG(SAFE_BROWSING_AVAILABLE)
1673 if (!should_check_url && 1731 if (!should_check_url &&
1674 safe_browsing::FileTypePolicies::GetInstance()->IsCheckedBinaryFile( 1732 safe_browsing::FileTypePolicies::GetInstance()->IsCheckedBinaryFile(
@@ -1679,7 +1737,7 @@
1679 1737
1680 // In the case where the original blob handle was to a native file (of 1738 // In the case where the original blob handle was to a native file (of
1681 // unknown size), the serialized data does not contain an accurate file 1739 // unknown size), the serialized data does not contain an accurate file
1682@@ -196,6 +200,7 @@ void ShareServiceImpl::Share(const std:: 1740@@ -212,6 +216,7 @@ void ShareServiceImpl::Share(const std::
1683 } 1741 }
1684 1742
1685 DCHECK(!safe_browsing_request_); 1743 DCHECK(!safe_browsing_request_);
@@ -1687,7 +1745,7 @@
1687 if (should_check_url && g_browser_process->safe_browsing_service()) { 1745 if (should_check_url && g_browser_process->safe_browsing_service()) {
1688 safe_browsing_request_.emplace( 1746 safe_browsing_request_.emplace(
1689 g_browser_process->safe_browsing_service()->database_manager(), 1747 g_browser_process->safe_browsing_service()->database_manager(),
1690@@ -205,6 +210,7 @@ void ShareServiceImpl::Share(const std:: 1748@@ -221,6 +226,7 @@ void ShareServiceImpl::Share(const std::
1691 std::move(files), std::move(callback))); 1749 std::move(files), std::move(callback)));
1692 return; 1750 return;
1693 } 1751 }
@@ -1695,9 +1753,9 @@
1695 1753
1696 OnSafeBrowsingResultReceived(title, text, share_url, std::move(files), 1754 OnSafeBrowsingResultReceived(title, text, share_url, std::move(files),
1697 std::move(callback), 1755 std::move(callback),
1698--- chrome/test/BUILD.gn.orig 1756--- a/chrome/test/BUILD.gn
1699+++ chrome/test/BUILD.gn 1757+++ b/chrome/test/BUILD.gn
1700@@ -1196,7 +1196,6 @@ if (!is_android && !is_fuchsia) { 1758@@ -1314,7 +1314,6 @@ if (!is_android) {
1701 "//components/resources", 1759 "//components/resources",
1702 "//components/safe_browsing:buildflags", 1760 "//components/safe_browsing:buildflags",
1703 "//components/safe_browsing/content/browser", 1761 "//components/safe_browsing/content/browser",
@@ -1705,7 +1763,7 @@
1705 "//components/safe_browsing/content/browser:safe_browsing_service", 1763 "//components/safe_browsing/content/browser:safe_browsing_service",
1706 "//components/safe_browsing/content/browser/password_protection", 1764 "//components/safe_browsing/content/browser/password_protection",
1707 "//components/safe_browsing/content/browser/password_protection:test_support", 1765 "//components/safe_browsing/content/browser/password_protection:test_support",
1708@@ -5349,7 +5348,6 @@ test("unit_tests") { 1766@@ -5819,7 +5818,6 @@ test("unit_tests") {
1709 "//components/resources", 1767 "//components/resources",
1710 "//components/safe_browsing:buildflags", 1768 "//components/safe_browsing:buildflags",
1711 "//components/safe_browsing/content/browser", 1769 "//components/safe_browsing/content/browser",
@@ -1713,20 +1771,20 @@
1713 "//components/safe_browsing/content/browser/password_protection", 1771 "//components/safe_browsing/content/browser/password_protection",
1714 "//components/safe_browsing/content/browser/password_protection:mock_password_protection", 1772 "//components/safe_browsing/content/browser/password_protection:mock_password_protection",
1715 "//components/safe_browsing/content/browser/web_ui", 1773 "//components/safe_browsing/content/browser/web_ui",
1716--- components/password_manager/content/browser/content_password_manager_driver.cc.orig 1774--- a/components/password_manager/content/browser/content_password_manager_driver.cc
1717+++ components/password_manager/content/browser/content_password_manager_driver.cc 1775+++ b/components/password_manager/content/browser/content_password_manager_driver.cc
1718@@ -407,7 +407,7 @@ void ContentPasswordManagerDriver::Check 1776@@ -415,7 +415,7 @@ void ContentPasswordManagerDriver::Check
1719 if (client_->GetMetricsRecorder()) { 1777 if (!password_manager::bad_message::CheckFrameNotPrerendering(
1720 client_->GetMetricsRecorder()->RecordUserFocusedPasswordField(); 1778 render_frame_host_))
1721 } 1779 return;
1722-#if defined(ON_FOCUS_PING_ENABLED) 1780-#if defined(ON_FOCUS_PING_ENABLED)
1723+#if defined(ON_FOCUS_PING_ENABLED) && BUILDFLAG(FULL_SAFE_BROWSING) 1781+#if defined(ON_FOCUS_PING_ENABLED) && BUILDFLAG(FULL_SAFE_BROWSING)
1724 client_->CheckSafeBrowsingReputation(form_action, frame_url); 1782 client_->CheckSafeBrowsingReputation(form_action, frame_url);
1725 #endif 1783 #endif
1726 } 1784 }
1727--- components/password_manager/core/browser/password_manager_client.h.orig 1785--- a/components/password_manager/core/browser/password_manager_client.h
1728+++ components/password_manager/core/browser/password_manager_client.h 1786+++ b/components/password_manager/core/browser/password_manager_client.h
1729@@ -339,11 +339,14 @@ class PasswordManagerClient { 1787@@ -374,11 +374,14 @@ class PasswordManagerClient {
1730 // Returns the current best guess as to the page's display language. 1788 // Returns the current best guess as to the page's display language.
1731 virtual autofill::LanguageCode GetPageLanguage() const; 1789 virtual autofill::LanguageCode GetPageLanguage() const;
1732 1790
@@ -1742,7 +1800,7 @@
1742 // Checks the safe browsing reputation of the webpage when the 1800 // Checks the safe browsing reputation of the webpage when the
1743 // user focuses on a username/password field. This is used for reporting 1801 // user focuses on a username/password field. This is used for reporting
1744 // only, and won't trigger a warning. 1802 // only, and won't trigger a warning.
1745@@ -351,6 +354,7 @@ class PasswordManagerClient { 1803@@ -386,6 +389,7 @@ class PasswordManagerClient {
1746 const GURL& frame_url) = 0; 1804 const GURL& frame_url) = 0;
1747 #endif 1805 #endif
1748 1806
@@ -1750,7 +1808,7 @@
1750 // Checks the safe browsing reputation of the webpage where password reuse 1808 // Checks the safe browsing reputation of the webpage where password reuse
1751 // happens. This is called by the PasswordReuseDetectionManager when a 1809 // happens. This is called by the PasswordReuseDetectionManager when a
1752 // protected password is typed on the wrong domain. This may trigger a 1810 // protected password is typed on the wrong domain. This may trigger a
1753@@ -363,6 +367,7 @@ class PasswordManagerClient { 1811@@ -398,6 +402,7 @@ class PasswordManagerClient {
1754 const std::string& username, 1812 const std::string& username,
1755 const std::vector<MatchingReusedCredential>& matching_reused_credentials, 1813 const std::vector<MatchingReusedCredential>& matching_reused_credentials,
1756 bool password_field_exists) = 0; 1814 bool password_field_exists) = 0;
@@ -1758,8 +1816,8 @@
1758 1816
1759 // Records a Chrome Sync event that GAIA password reuse was detected. 1817 // Records a Chrome Sync event that GAIA password reuse was detected.
1760 virtual void LogPasswordReuseDetectedEvent() = 0; 1818 virtual void LogPasswordReuseDetectedEvent() = 0;
1761--- components/password_manager/core/browser/password_reuse_detection_manager.cc.orig 1819--- a/components/password_manager/core/browser/password_reuse_detection_manager.cc
1762+++ components/password_manager/core/browser/password_reuse_detection_manager.cc 1820+++ b/components/password_manager/core/browser/password_reuse_detection_manager.cc
1763@@ -161,9 +161,11 @@ void PasswordReuseDetectionManager::OnRe 1821@@ -161,9 +161,11 @@ void PasswordReuseDetectionManager::OnRe
1764 ? reused_protected_password_hash->username 1822 ? reused_protected_password_hash->username
1765 : ""; 1823 : "";
@@ -1772,19 +1830,8 @@
1772 } 1830 }
1773 1831
1774 void PasswordReuseDetectionManager::SetClockForTesting(base::Clock* clock) { 1832 void PasswordReuseDetectionManager::SetClockForTesting(base::Clock* clock) {
1775--- components/safe_browsing/content/browser/BUILD.gn.orig 1833--- a/components/safe_browsing/content/common/proto/BUILD.gn
1776+++ components/safe_browsing/content/browser/BUILD.gn 1834+++ b/components/safe_browsing/content/common/proto/BUILD.gn
1777@@ -82,8 +82,6 @@ source_set("browser") {
1778 "threat_details_cache.h",
1779 "threat_details_history.cc",
1780 "threat_details_history.h",
1781- "user_population.cc",
1782- "user_population.h",
1783 "web_api_handshake_checker.cc",
1784 "web_api_handshake_checker.h",
1785 ]
1786--- components/safe_browsing/content/common/proto/BUILD.gn.orig
1787+++ components/safe_browsing/content/common/proto/BUILD.gn
1788@@ -5,8 +5,12 @@ 1835@@ -5,8 +5,12 @@
1789 import("//components/safe_browsing/buildflags.gni") 1836 import("//components/safe_browsing/buildflags.gni")
1790 import("//third_party/protobuf/proto_library.gni") 1837 import("//third_party/protobuf/proto_library.gni")
@@ -1800,8 +1847,8 @@
1800 } 1847 }
1801-} 1848-}
1802+# } 1849+# }
1803--- components/safe_browsing/content/common/safe_browsing.mojom.orig 1850--- a/components/safe_browsing/content/common/safe_browsing.mojom
1804+++ components/safe_browsing/content/common/safe_browsing.mojom 1851+++ b/components/safe_browsing/content/common/safe_browsing.mojom
1805@@ -120,7 +120,6 @@ enum PhishingDetectorResult { 1852@@ -120,7 +120,6 @@ enum PhishingDetectorResult {
1806 INVALID_SCORE = 4, 1853 INVALID_SCORE = 4,
1807 }; 1854 };
@@ -1810,9 +1857,39 @@
1810 // Interface for setting the CSD model and to start phishing classification. 1857 // Interface for setting the CSD model and to start phishing classification.
1811 interface PhishingDetector { 1858 interface PhishingDetector {
1812 // A classification model for client-side phishing detection. 1859 // A classification model for client-side phishing detection.
1813--- content/browser/file_system_access/safe_move_helper.cc.orig 1860--- a/components/safe_browsing/core/browser/BUILD.gn
1814+++ content/browser/file_system_access/safe_move_helper.cc 1861+++ b/components/safe_browsing/core/browser/BUILD.gn
1815@@ -150,14 +150,8 @@ void SafeMoveHelper::Start(SafeMoveHelpe 1862@@ -11,8 +11,6 @@ source_set("browser") {
1863 "safe_browsing_url_checker_impl.cc",
1864 "safe_browsing_url_checker_impl.h",
1865 "url_checker_delegate.h",
1866- "user_population.cc",
1867- "user_population.h",
1868 ]
1869
1870 public_deps = [ "//google_apis:google_apis" ]
1871--- a/components/safe_browsing/core/browser/verdict_cache_manager.cc
1872+++ b/components/safe_browsing/core/browser/verdict_cache_manager.cc
1873@@ -402,16 +402,6 @@ VerdictCacheManager::VerdictCacheManager
1874 // pref_service can be null in tests.
1875 if (pref_service) {
1876 pref_change_registrar_.Init(pref_service);
1877- pref_change_registrar_.Add(
1878- prefs::kSafeBrowsingEnhanced,
1879- base::BindRepeating(&VerdictCacheManager::CleanUpAllPageLoadTokens,
1880- weak_factory_.GetWeakPtr(),
1881- ClearReason::kSafeBrowsingStateChanged));
1882- pref_change_registrar_.Add(
1883- prefs::kSafeBrowsingEnabled,
1884- base::BindRepeating(&VerdictCacheManager::CleanUpAllPageLoadTokens,
1885- weak_factory_.GetWeakPtr(),
1886- ClearReason::kSafeBrowsingStateChanged));
1887 }
1888 // sync_observer_ can be null in some embedders that don't support sync.
1889 if (sync_observer_) {
1890--- a/content/browser/file_system_access/safe_move_helper.cc
1891+++ b/content/browser/file_system_access/safe_move_helper.cc
1892@@ -154,14 +154,8 @@ void SafeMoveHelper::Start(SafeMoveHelpe
1816 return; 1893 return;
1817 } 1894 }
1818 1895
@@ -1827,7 +1904,7 @@
1827 } 1904 }
1828 1905
1829 void SafeMoveHelper::ComputeHashForSourceFile(HashCallback callback) { 1906 void SafeMoveHelper::ComputeHashForSourceFile(HashCallback callback) {
1830@@ -177,38 +171,6 @@ void SafeMoveHelper::ComputeHashForSourc 1907@@ -181,44 +175,6 @@ void SafeMoveHelper::ComputeHashForSourc
1831 std::move(wrapped_callback), source_url())); 1908 std::move(wrapped_callback), source_url()));
1832 } 1909 }
1833 1910
@@ -1850,12 +1927,18 @@
1850- return; 1927- return;
1851- } 1928- }
1852- 1929-
1930- content::GlobalRenderFrameHostId outermost_main_frame_id;
1931- auto* rfh = content::RenderFrameHost::FromID(context_.frame_id);
1932- if (rfh)
1933- outermost_main_frame_id = rfh->GetOutermostMainFrame()->GetGlobalId();
1934-
1853- auto item = std::make_unique<FileSystemAccessWriteItem>(); 1935- auto item = std::make_unique<FileSystemAccessWriteItem>();
1854- item->target_file_path = dest_url().path(); 1936- item->target_file_path = dest_url().path();
1855- item->full_path = source_url().path(); 1937- item->full_path = source_url().path();
1856- item->sha256_hash = hash; 1938- item->sha256_hash = hash;
1857- item->size = size; 1939- item->size = size;
1858- item->frame_url = context_.url; 1940- item->frame_url = context_.url;
1941- item->outermost_main_frame_id = outermost_main_frame_id;
1859- item->has_user_gesture = has_transient_user_activation_; 1942- item->has_user_gesture = has_transient_user_activation_;
1860- manager_->permission_context()->PerformAfterWriteChecks( 1943- manager_->permission_context()->PerformAfterWriteChecks(
1861- std::move(item), context_.frame_id, 1944- std::move(item), context_.frame_id,
@@ -1866,8 +1949,8 @@
1866 void SafeMoveHelper::DidAfterWriteCheck( 1949 void SafeMoveHelper::DidAfterWriteCheck(
1867 FileSystemAccessPermissionContext::AfterWriteCheckResult result) { 1950 FileSystemAccessPermissionContext::AfterWriteCheckResult result) {
1868 DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); 1951 DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
1869--- content/browser/file_system_access/safe_move_helper.h.orig 1952--- a/content/browser/file_system_access/safe_move_helper.h
1870+++ content/browser/file_system_access/safe_move_helper.h 1953+++ b/content/browser/file_system_access/safe_move_helper.h
1871@@ -52,9 +52,6 @@ class CONTENT_EXPORT SafeMoveHelper { 1954@@ -52,9 +52,6 @@ class CONTENT_EXPORT SafeMoveHelper {
1872 private: 1955 private:
1873 SEQUENCE_CHECKER(sequence_checker_); 1956 SEQUENCE_CHECKER(sequence_checker_);
@@ -1878,8 +1961,8 @@
1878 void DidAfterWriteCheck( 1961 void DidAfterWriteCheck(
1879 FileSystemAccessPermissionContext::AfterWriteCheckResult result); 1962 FileSystemAccessPermissionContext::AfterWriteCheckResult result);
1880 void DidFileSkipQuarantine(base::File::Error result); 1963 void DidFileSkipQuarantine(base::File::Error result);
1881--- content/public/browser/file_system_access_permission_context.h.orig 1964--- a/content/public/browser/file_system_access_permission_context.h
1882+++ content/public/browser/file_system_access_permission_context.h 1965+++ b/content/public/browser/file_system_access_permission_context.h
1883@@ -107,12 +107,6 @@ class FileSystemAccessPermissionContext 1966@@ -107,12 +107,6 @@ class FileSystemAccessPermissionContext
1884 base::OnceCallback<void(SensitiveDirectoryResult)> callback) = 0; 1967 base::OnceCallback<void(SensitiveDirectoryResult)> callback) = 0;
1885 1968
@@ -1893,9 +1976,9 @@
1893 1976
1894 // Returns whether the give |origin| already allows read permission, or it is 1977 // Returns whether the give |origin| already allows read permission, or it is
1895 // possible to request one. This is used to block file dialogs from being 1978 // possible to request one. This is used to block file dialogs from being
1896--- extensions/browser/updater/update_service.cc.orig 1979--- a/extensions/browser/updater/update_service.cc
1897+++ extensions/browser/updater/update_service.cc 1980+++ b/extensions/browser/updater/update_service.cc
1898@@ -111,13 +111,6 @@ void UpdateService::OnEvent(Events event 1981@@ -122,13 +122,6 @@ void UpdateService::OnEvent(Events event
1899 break; 1982 break;
1900 } 1983 }
1901 1984
@@ -1909,9 +1992,20 @@
1909 } 1992 }
1910 1993
1911 UpdateService::UpdateService( 1994 UpdateService::UpdateService(
1912--- weblayer/BUILD.gn.orig 1995--- a/printing/buildflags/buildflags.gni
1913+++ weblayer/BUILD.gn 1996+++ b/printing/buildflags/buildflags.gni
1914@@ -463,7 +463,6 @@ source_set("weblayer_lib_base") { 1997@@ -37,7 +37,7 @@ declare_args() {
1998 # Enable snapshotting a page when printing for its content to be analyzed for
1999 # sensitive content by enterprise users.
2000 enable_print_content_analysis =
2001- is_chromeos_ash || is_chromeos_lacros || is_win || is_linux || is_mac
2002+ false
2003 }
2004
2005 declare_args() {
2006--- a/weblayer/BUILD.gn
2007+++ b/weblayer/BUILD.gn
2008@@ -462,7 +462,6 @@ source_set("weblayer_lib_base") {
1915 "//components/prefs", 2009 "//components/prefs",
1916 "//components/profile_metrics", 2010 "//components/profile_metrics",
1917 "//components/safe_browsing/content/browser", 2011 "//components/safe_browsing/content/browser",
diff --git a/www/chromium-uc/patches/core/ungoogled-chromium/fix-learn-doubleclick-hsts.patch b/www/chromium-uc/patches/core/ungoogled-chromium/fix-learn-doubleclick-hsts.patch
index 74d5b79..623320f 100644
--- a/www/chromium-uc/patches/core/ungoogled-chromium/fix-learn-doubleclick-hsts.patch
+++ b/www/chromium-uc/patches/core/ungoogled-chromium/fix-learn-doubleclick-hsts.patch
@@ -1,7 +1,7 @@
1# Split up the learn.doubleclick.net string literal to prevent domain substitution breaking compilation due to the use of the excluded HSTS list json file in this code. 1# Split up the learn.doubleclick.net string literal to prevent domain substitution breaking compilation due to the use of the excluded HSTS list json file in this code.
2 2
3--- net/tools/transport_security_state_generator/transport_security_state_generator.cc.orig 3--- a/net/tools/transport_security_state_generator/transport_security_state_generator.cc
4+++ net/tools/transport_security_state_generator/transport_security_state_generator.cc 4+++ b/net/tools/transport_security_state_generator/transport_security_state_generator.cc
5@@ -125,7 +125,7 @@ bool CheckDuplicateEntries(const Transpo 5@@ -125,7 +125,7 @@ bool CheckDuplicateEntries(const Transpo
6 bool CheckNoopEntries(const TransportSecurityStateEntries& entries) { 6 bool CheckNoopEntries(const TransportSecurityStateEntries& entries) {
7 for (const auto& entry : entries) { 7 for (const auto& entry : entries) {
diff --git a/www/chromium-uc/patches/core/ungoogled-chromium/remove-unused-preferences-fields.patch b/www/chromium-uc/patches/core/ungoogled-chromium/remove-unused-preferences-fields.patch
index 0527dde..d6d7e41 100644
--- a/www/chromium-uc/patches/core/ungoogled-chromium/remove-unused-preferences-fields.patch
+++ b/www/chromium-uc/patches/core/ungoogled-chromium/remove-unused-preferences-fields.patch
@@ -2,17 +2,17 @@
2# TODO: This patch should probably be split up and merged into 2# TODO: This patch should probably be split up and merged into
3# disable-signin.patch and fix-building-without-safebrowsing.patch 3# disable-signin.patch and fix-building-without-safebrowsing.patch
4 4
5--- android_webview/browser/aw_browser_context.cc.orig 5--- a/android_webview/browser/aw_browser_context.cc
6+++ android_webview/browser/aw_browser_context.cc 6+++ b/android_webview/browser/aw_browser_context.cc
7@@ -49,7 +49,6 @@ 7@@ -48,7 +48,6 @@
8 #include "components/prefs/pref_service_factory.h" 8 #include "components/prefs/pref_service_factory.h"
9 #include "components/prefs/segregated_pref_store.h" 9 #include "components/prefs/segregated_pref_store.h"
10 #include "components/profile_metrics/browser_profile_type.h" 10 #include "components/profile_metrics/browser_profile_type.h"
11-#include "components/safe_browsing/core/common/safe_browsing_prefs.h" 11-#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
12 #include "components/url_formatter/url_fixer.h" 12 #include "components/url_formatter/url_fixer.h"
13 #include "components/user_prefs/user_prefs.h" 13 #include "components/user_prefs/user_prefs.h"
14 #include "components/visitedlink/browser/visitedlink_writer.h" 14 #include "components/variations/variations_client.h"
15@@ -470,8 +469,6 @@ void AwBrowserContext::RebuildTable( 15@@ -519,8 +518,6 @@ void AwBrowserContext::RebuildTable(
16 } 16 }
17 17
18 void AwBrowserContext::SetExtendedReportingAllowed(bool allowed) { 18 void AwBrowserContext::SetExtendedReportingAllowed(bool allowed) {
@@ -21,9 +21,9 @@
21 } 21 }
22 22
23 // TODO(amalova): Make sure NetworkContextParams is configured correctly when 23 // TODO(amalova): Make sure NetworkContextParams is configured correctly when
24--- chrome/app/settings_strings.grdp.orig 24--- a/chrome/app/settings_strings.grdp
25+++ chrome/app/settings_strings.grdp 25+++ b/chrome/app/settings_strings.grdp
26@@ -1591,78 +1591,9 @@ 26@@ -1842,69 +1842,9 @@
27 <message name="IDS_SETTINGS_NETWORK_PREDICTION_ENABLED_DESC_COOKIES_PAGE" desc="On the cookies page, the secondary text next to the checkbox that enables prediction of network actions."> 27 <message name="IDS_SETTINGS_NETWORK_PREDICTION_ENABLED_DESC_COOKIES_PAGE" desc="On the cookies page, the secondary text next to the checkbox that enables prediction of network actions.">
28 Preloads pages that Chrome thinks you might visit. To do this, Chrome may use cookies, if you allow cookies, and may encrypt and send pages through Google to hide your identity from sites. 28 Preloads pages that Chrome thinks you might visit. To do this, Chrome may use cookies, if you allow cookies, and may encrypt and send pages through Google to hide your identity from sites.
29 </message> 29 </message>
@@ -33,9 +33,6 @@
33- <message name="IDS_SETTINGS_SAFEBROWSING_ENABLEPROTECTION_DESC" desc="Checkbox label: should Chrome protect user and user's device from dangerous sites"> 33- <message name="IDS_SETTINGS_SAFEBROWSING_ENABLEPROTECTION_DESC" desc="Checkbox label: should Chrome protect user and user's device from dangerous sites">
34- Sends URLs of some pages you visit to Google, when your security is at risk 34- Sends URLs of some pages you visit to Google, when your security is at risk
35- </message> 35- </message>
36- <message name="IDS_SETTINGS_SAFEBROWSING_ENABLE_REPORTING" desc="The section title of the extended safe browsing checkbox to help improve safe browsing">
37- Help improve Chrome security
38- </message>
39- <message name="IDS_SETTINGS_SAFEBROWSING_ENABLE_REPORTING_DESC" desc="Description for extended safe browsing"> 36- <message name="IDS_SETTINGS_SAFEBROWSING_ENABLE_REPORTING_DESC" desc="Description for extended safe browsing">
40- Sends URLs of some pages you visit, limited system information, and some page content to Google, to help discover new threats and protect everyone on the web. 37- Sends URLs of some pages you visit, limited system information, and some page content to Google, to help discover new threats and protect everyone on the web.
41- </message> 38- </message>
@@ -54,9 +51,6 @@
54- <message name="IDS_SETTINGS_SAFEBROWSING_ENHANCED_BULLET_ONE" desc="First bullet point under the safe browsing enhanced protection mode"> 51- <message name="IDS_SETTINGS_SAFEBROWSING_ENHANCED_BULLET_ONE" desc="First bullet point under the safe browsing enhanced protection mode">
55- Predicts and warns you about dangerous events before they happen 52- Predicts and warns you about dangerous events before they happen
56- </message> 53- </message>
57- <message name="IDS_SETTINGS_SAFEBROWSING_ENHANCED_BULLET_TWO" desc="Second bullet point under the safe browsing enhanced protection mode">
58- Keeps you safe on Chrome and may be used to improve your security in other Google apps when you are signed in
59- </message>
60- <message name="IDS_SETTINGS_SAFEBROWSING_ENHANCED_BULLET_THREE" desc="Third bullet point under the safe browsing enhanced protection mode"> 54- <message name="IDS_SETTINGS_SAFEBROWSING_ENHANCED_BULLET_THREE" desc="Third bullet point under the safe browsing enhanced protection mode">
61- Improves security for you and everyone on the web 55- Improves security for you and everyone on the web
62- </message> 56- </message>
@@ -70,7 +64,7 @@
70- Standard protection 64- Standard protection
71- </message> 65- </message>
72- <message name="IDS_SETTINGS_SAFEBROWSING_STANDARD_DESC" desc="Description for safe browsing standard protection mode"> 66- <message name="IDS_SETTINGS_SAFEBROWSING_STANDARD_DESC" desc="Description for safe browsing standard protection mode">
73- Standard protection against websites, downloads, and extensions that are known to be dangerous. 67- Standard protection against websites, downloads, and extensions that are known to be dangerous
74- </message> 68- </message>
75- <message name="IDS_SETTINGS_SAFEBROWSING_STANDARD_EXPAND_ACCESSIBILITY_LABEL" desc="Label for the button that toggles showing the detailed description of safe browsing standard protection. Only visible by screen reader software."> 69- <message name="IDS_SETTINGS_SAFEBROWSING_STANDARD_EXPAND_ACCESSIBILITY_LABEL" desc="Label for the button that toggles showing the detailed description of safe browsing standard protection. Only visible by screen reader software.">
76- Show standard protection details 70- Show standard protection details
@@ -78,9 +72,6 @@
78- <message name="IDS_SETTINGS_SAFEBROWSING_STANDARD_BULLET_ONE" desc="First bullet point under the safe browsing standard protection mode"> 72- <message name="IDS_SETTINGS_SAFEBROWSING_STANDARD_BULLET_ONE" desc="First bullet point under the safe browsing standard protection mode">
79- Detects and warns you about dangerous events when they happen 73- Detects and warns you about dangerous events when they happen
80- </message> 74- </message>
81- <message name="IDS_SETTINGS_SAFEBROWSING_STANDARD_BULLET_TWO" desc="First bullet point under the safe browsing standard protection mode">
82- Checks URLs with a list of unsafe sites stored in Chrome. If a site tries to steal your password, or when you download a harmful file, Chrome may also send URLs, including bits of page content, to Safe Browsing.
83- </message>
84- <message name="IDS_SETTINGS_SAFEBROWSING_STANDARD_HELP_IMPROVE" desc="The name of the toggle to enable reporting to help improve safe browsing"> 75- <message name="IDS_SETTINGS_SAFEBROWSING_STANDARD_HELP_IMPROVE" desc="The name of the toggle to enable reporting to help improve safe browsing">
85- Help improve security on the web for everyone 76- Help improve security on the web for everyone
86- </message> 77- </message>
@@ -102,9 +93,9 @@
102 <message name="IDS_SETTINGS_ENABLE_DO_NOT_TRACK" desc="The label of the checkbox to enable/disable sending the 'Do Not track' header"> 93 <message name="IDS_SETTINGS_ENABLE_DO_NOT_TRACK" desc="The label of the checkbox to enable/disable sending the 'Do Not track' header">
103 Send a "Do Not Track" request with your browsing traffic 94 Send a "Do Not Track" request with your browsing traffic
104 </message> 95 </message>
105--- chrome/browser/android/signin/signin_manager_android.cc.orig 96--- a/chrome/browser/android/signin/signin_manager_android.cc
106+++ chrome/browser/android/signin/signin_manager_android.cc 97+++ b/chrome/browser/android/signin/signin_manager_android.cc
107@@ -14,7 +14,6 @@ 98@@ -15,7 +15,6 @@
108 #include "chrome/android/chrome_jni_headers/SigninManagerImpl_jni.h" 99 #include "chrome/android/chrome_jni_headers/SigninManagerImpl_jni.h"
109 #include "chrome/common/pref_names.h" 100 #include "chrome/common/pref_names.h"
110 #include "components/prefs/pref_service.h" 101 #include "components/prefs/pref_service.h"
@@ -112,7 +103,7 @@
112 #include "google_apis/gaia/gaia_auth_util.h" 103 #include "google_apis/gaia/gaia_auth_util.h"
113 104
114 #include "base/android/callback_android.h" 105 #include "base/android/callback_android.h"
115@@ -30,7 +29,6 @@ 106@@ -31,7 +30,6 @@
116 #include "components/policy/core/browser/browser_policy_connector.h" 107 #include "components/policy/core/browser/browser_policy_connector.h"
117 #include "components/policy/core/common/cloud/user_cloud_policy_manager.h" 108 #include "components/policy/core/common/cloud/user_cloud_policy_manager.h"
118 #include "components/prefs/pref_service.h" 109 #include "components/prefs/pref_service.h"
@@ -120,7 +111,7 @@
120 #include "components/signin/public/identity_manager/accounts_cookie_mutator.h" 111 #include "components/signin/public/identity_manager/accounts_cookie_mutator.h"
121 #include "components/signin/public/identity_manager/identity_manager.h" 112 #include "components/signin/public/identity_manager/identity_manager.h"
122 #include "content/public/browser/browser_context.h" 113 #include "content/public/browser/browser_context.h"
123@@ -95,8 +93,6 @@ class ProfileDataRemover : public conten 114@@ -96,8 +94,6 @@ class ProfileDataRemover : public conten
124 // All the Profile data has been wiped. Clear the last signed in username 115 // All the Profile data has been wiped. Clear the last signed in username
125 // as well, so that the next signin doesn't trigger the account 116 // as well, so that the next signin doesn't trigger the account
126 // change dialog. 117 // change dialog.
@@ -129,7 +120,7 @@
129 } 120 }
130 121
131 origin_runner_->PostTask(FROM_HERE, std::move(callback_)); 122 origin_runner_->PostTask(FROM_HERE, std::move(callback_));
132@@ -132,11 +128,6 @@ SigninManagerAndroid::SigninManagerAndro 123@@ -133,11 +129,6 @@ SigninManagerAndroid::SigninManagerAndro
133 DCHECK(user_cloud_policy_manager_); 124 DCHECK(user_cloud_policy_manager_);
134 DCHECK(user_policy_signin_service_); 125 DCHECK(user_policy_signin_service_);
135 126
@@ -141,7 +132,7 @@
141 force_browser_signin_.Init(prefs::kForceBrowserSignin, 132 force_browser_signin_.Init(prefs::kForceBrowserSignin,
142 g_browser_process->local_state()); 133 g_browser_process->local_state());
143 134
144@@ -160,7 +151,7 @@ void SigninManagerAndroid::Shutdown() { 135@@ -161,7 +152,7 @@ void SigninManagerAndroid::Shutdown() {
145 } 136 }
146 137
147 bool SigninManagerAndroid::IsSigninAllowed() const { 138 bool SigninManagerAndroid::IsSigninAllowed() const {
@@ -150,11 +141,11 @@
150 } 141 }
151 142
152 jboolean SigninManagerAndroid::IsSigninAllowedByPolicy(JNIEnv* env) const { 143 jboolean SigninManagerAndroid::IsSigninAllowedByPolicy(JNIEnv* env) const {
153--- chrome/browser/android/signin/signin_manager_android.h.orig 144--- a/chrome/browser/android/signin/signin_manager_android.h
154+++ chrome/browser/android/signin/signin_manager_android.h 145+++ b/chrome/browser/android/signin/signin_manager_android.h
155@@ -117,9 +117,6 @@ class SigninManagerAndroid : public Keye 146@@ -117,9 +117,6 @@ class SigninManagerAndroid : public Keye
156 147
157 Profile* const profile_ = nullptr; 148 const raw_ptr<Profile> profile_ = nullptr;
158 149
159- // Handler for prefs::kSigninAllowed set in user's profile. 150- // Handler for prefs::kSigninAllowed set in user's profile.
160- BooleanPrefMember signin_allowed_; 151- BooleanPrefMember signin_allowed_;
@@ -162,8 +153,8 @@
162 // Handler for prefs::kForceBrowserSignin. This preference is set in Local 153 // Handler for prefs::kForceBrowserSignin. This preference is set in Local
163 // State, not in user prefs. 154 // State, not in user prefs.
164 BooleanPrefMember force_browser_signin_; 155 BooleanPrefMember force_browser_signin_;
165--- chrome/browser/ash/lock_screen_apps/lock_screen_profile_creator_impl.cc.orig 156--- a/chrome/browser/ash/lock_screen_apps/lock_screen_profile_creator_impl.cc
166+++ chrome/browser/ash/lock_screen_apps/lock_screen_profile_creator_impl.cc 157+++ b/chrome/browser/ash/lock_screen_apps/lock_screen_profile_creator_impl.cc
167@@ -18,7 +18,6 @@ 158@@ -18,7 +18,6 @@
168 #include "chrome/browser/profiles/profile_manager.h" 159 #include "chrome/browser/profiles/profile_manager.h"
169 #include "chrome/common/pref_names.h" 160 #include "chrome/common/pref_names.h"
@@ -181,19 +172,19 @@
181 return; 172 return;
182 } 173 }
183 174
184--- chrome/browser/ash/lock_screen_apps/lock_screen_profile_creator_impl_unittest.cc.orig 175--- a/chrome/browser/ash/lock_screen_apps/lock_screen_profile_creator_impl_unittest.cc
185+++ chrome/browser/ash/lock_screen_apps/lock_screen_profile_creator_impl_unittest.cc 176+++ b/chrome/browser/ash/lock_screen_apps/lock_screen_profile_creator_impl_unittest.cc
186@@ -37,7 +37,6 @@ 177@@ -37,7 +37,6 @@
187 #include "components/arc/session/arc_session.h" 178 #include "chromeos/dbus/dbus_thread_manager.h"
188 #include "components/crx_file/id_util.h" 179 #include "components/crx_file/id_util.h"
189 #include "components/prefs/pref_service.h" 180 #include "components/prefs/pref_service.h"
190-#include "components/safe_browsing/core/common/safe_browsing_prefs.h" 181-#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
191 #include "content/public/test/browser_task_environment.h" 182 #include "content/public/test/browser_task_environment.h"
192 #include "extensions/common/extension.h" 183 #include "extensions/common/extension.h"
193 #include "extensions/common/extension_builder.h" 184 #include "extensions/common/extension_builder.h"
194--- chrome/browser/ash/login/signin/device_id_browsertest.cc.orig 185--- a/chrome/browser/ash/login/signin/device_id_browsertest.cc
195+++ chrome/browser/ash/login/signin/device_id_browsertest.cc 186+++ b/chrome/browser/ash/login/signin/device_id_browsertest.cc
196@@ -24,7 +24,6 @@ 187@@ -25,7 +25,6 @@
197 #include "chrome/common/chrome_switches.h" 188 #include "chrome/common/chrome_switches.h"
198 #include "chrome/test/base/in_process_browser_test.h" 189 #include "chrome/test/base/in_process_browser_test.h"
199 #include "components/prefs/pref_service.h" 190 #include "components/prefs/pref_service.h"
@@ -201,7 +192,7 @@
201 #include "components/user_manager/known_user.h" 192 #include "components/user_manager/known_user.h"
202 #include "components/user_manager/user_manager.h" 193 #include "components/user_manager/user_manager.h"
203 #include "content/public/test/browser_test.h" 194 #include "content/public/test/browser_test.h"
204@@ -249,15 +248,6 @@ IN_PROC_BROWSER_TEST_F(DeviceIDTest, PRE 195@@ -256,15 +255,6 @@ IN_PROC_BROWSER_TEST_F(DeviceIDTest, PRE
205 SignInOnline(FakeGaiaMixin::kFakeUserEmail, FakeGaiaMixin::kFakeUserPassword, 196 SignInOnline(FakeGaiaMixin::kFakeUserEmail, FakeGaiaMixin::kFakeUserPassword,
206 kRefreshToken1, FakeGaiaMixin::kFakeUserGaiaId); 197 kRefreshToken1, FakeGaiaMixin::kFakeUserGaiaId);
207 198
@@ -216,8 +207,8 @@
216- 207-
217 // Can't use SetKnownUserDeviceId here, because it forbids changing a device 208 // Can't use SetKnownUserDeviceId here, because it forbids changing a device
218 // ID. 209 // ID.
219 user_manager::known_user::SetStringPref( 210 user_manager::KnownUser known_user(g_browser_process->local_state());
220@@ -282,13 +272,6 @@ IN_PROC_BROWSER_TEST_F(DeviceIDTest, PRE 211@@ -290,13 +280,6 @@ IN_PROC_BROWSER_TEST_F(DeviceIDTest, PRE
221 SignInOnline(FakeGaiaMixin::kFakeUserEmail, FakeGaiaMixin::kFakeUserPassword, 212 SignInOnline(FakeGaiaMixin::kFakeUserEmail, FakeGaiaMixin::kFakeUserPassword,
222 kRefreshToken1, FakeGaiaMixin::kFakeUserGaiaId); 213 kRefreshToken1, FakeGaiaMixin::kFakeUserGaiaId);
223 214
@@ -230,10 +221,10 @@
230- 221-
231 // Can't use SetKnownUserDeviceId here, because it forbids changing a device 222 // Can't use SetKnownUserDeviceId here, because it forbids changing a device
232 // ID. 223 // ID.
233 user_manager::known_user::SetStringPref( 224 user_manager::KnownUser known_user(g_browser_process->local_state());
234--- chrome/browser/chrome_content_browser_client.cc.orig 225--- a/chrome/browser/chrome_content_browser_client.cc
235+++ chrome/browser/chrome_content_browser_client.cc 226+++ b/chrome/browser/chrome_content_browser_client.cc
236@@ -225,7 +225,6 @@ 227@@ -236,7 +236,6 @@
237 #include "components/safe_browsing/core/browser/realtime/url_lookup_service.h" 228 #include "components/safe_browsing/core/browser/realtime/url_lookup_service.h"
238 #include "components/safe_browsing/core/browser/url_checker_delegate.h" 229 #include "components/safe_browsing/core/browser/url_checker_delegate.h"
239 #include "components/safe_browsing/core/common/features.h" 230 #include "components/safe_browsing/core/common/features.h"
@@ -241,9 +232,19 @@
241 #include "components/security_interstitials/content/insecure_form_navigation_throttle.h" 232 #include "components/security_interstitials/content/insecure_form_navigation_throttle.h"
242 #include "components/security_interstitials/content/origin_policy_ui.h" 233 #include "components/security_interstitials/content/origin_policy_ui.h"
243 #include "components/security_interstitials/content/ssl_cert_reporter.h" 234 #include "components/security_interstitials/content/ssl_cert_reporter.h"
244--- chrome/browser/download/download_browsertest.cc.orig 235--- a/chrome/browser/download/bubble/download_bubble_prefs.cc
245+++ chrome/browser/download/download_browsertest.cc 236+++ b/chrome/browser/download/bubble/download_bubble_prefs.cc
246@@ -103,7 +103,6 @@ 237@@ -11,7 +11,6 @@
238 #include "chrome/common/pref_names.h"
239 #include "components/prefs/pref_service.h"
240 #include "components/safe_browsing/core/common/features.h"
241-#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
242
243 namespace download {
244
245--- a/chrome/browser/download/download_browsertest.cc
246+++ b/chrome/browser/download/download_browsertest.cc
247@@ -101,7 +101,6 @@
247 #include "components/safe_browsing/content/browser/safe_browsing_service_interface.h" 248 #include "components/safe_browsing/content/browser/safe_browsing_service_interface.h"
248 #include "components/safe_browsing/content/common/proto/download_file_types.pb.h" 249 #include "components/safe_browsing/content/common/proto/download_file_types.pb.h"
249 #include "components/safe_browsing/core/common/proto/csd.pb.h" 250 #include "components/safe_browsing/core/common/proto/csd.pb.h"
@@ -251,9 +252,9 @@
251 #include "components/security_state/core/features.h" 252 #include "components/security_state/core/features.h"
252 #include "components/security_state/core/security_state.h" 253 #include "components/security_state/core/security_state.h"
253 #include "components/services/quarantine/test_support.h" 254 #include "components/services/quarantine/test_support.h"
254--- chrome/browser/download/download_item_model.cc.orig 255--- a/chrome/browser/download/download_item_model.cc
255+++ chrome/browser/download/download_item_model.cc 256+++ b/chrome/browser/download/download_item_model.cc
256@@ -783,6 +783,7 @@ void DownloadItemModel::ExecuteCommand(D 257@@ -830,6 +830,7 @@ void DownloadItemModel::ExecuteCommand(D
257 DownloadUIModel::ExecuteCommand(download_commands, command); 258 DownloadUIModel::ExecuteCommand(download_commands, command);
258 break; 259 break;
259 case DownloadCommands::DEEP_SCAN: 260 case DownloadCommands::DEEP_SCAN:
@@ -261,7 +262,7 @@
261 safe_browsing::SafeBrowsingService* sb_service = 262 safe_browsing::SafeBrowsingService* sb_service =
262 g_browser_process->safe_browsing_service(); 263 g_browser_process->safe_browsing_service();
263 if (!sb_service) 264 if (!sb_service)
264@@ -808,6 +809,7 @@ void DownloadItemModel::ExecuteCommand(D 265@@ -855,6 +856,7 @@ void DownloadItemModel::ExecuteCommand(D
265 safe_browsing::DeepScanningRequest::DeepScanTrigger:: 266 safe_browsing::DeepScanningRequest::DeepScanTrigger::
266 TRIGGER_APP_PROMPT, 267 TRIGGER_APP_PROMPT,
267 safe_browsing::DownloadCheckResult::UNKNOWN, std::move(settings)); 268 safe_browsing::DownloadCheckResult::UNKNOWN, std::move(settings));
@@ -269,8 +270,8 @@
269 break; 270 break;
270 } 271 }
271 } 272 }
272--- chrome/browser/enterprise/connectors/analysis/content_analysis_delegate.cc.orig 273--- a/chrome/browser/enterprise/connectors/analysis/content_analysis_delegate.cc
273+++ chrome/browser/enterprise/connectors/analysis/content_analysis_delegate.cc 274+++ b/chrome/browser/enterprise/connectors/analysis/content_analysis_delegate.cc
274@@ -38,7 +38,6 @@ 275@@ -38,7 +38,6 @@
275 #include "components/policy/core/common/chrome_schema.h" 276 #include "components/policy/core/common/chrome_schema.h"
276 #include "components/prefs/pref_service.h" 277 #include "components/prefs/pref_service.h"
@@ -279,35 +280,33 @@
279 #include "components/url_matcher/url_matcher.h" 280 #include "components/url_matcher/url_matcher.h"
280 #include "content/public/browser/web_contents.h" 281 #include "content/public/browser/web_contents.h"
281 #include "crypto/secure_hash.h" 282 #include "crypto/secure_hash.h"
282--- chrome/browser/enterprise/connectors/connectors_manager.cc.orig 283--- a/chrome/browser/enterprise/connectors/connectors_manager.cc
283+++ chrome/browser/enterprise/connectors/connectors_manager.cc 284+++ b/chrome/browser/enterprise/connectors/connectors_manager.cc
284@@ -6,6 +6,7 @@ 285@@ -6,12 +6,12 @@
285 286
286 #include <memory> 287 #include <memory>
287 288
288+#include "base/bind.h" 289+#include "base/bind.h"
289 #include "base/feature_list.h" 290 #include "base/feature_list.h"
290 #include "base/no_destructor.h"
291 #include "base/values.h" 291 #include "base/values.h"
292@@ -13,7 +14,6 @@ 292 #include "chrome/browser/browser_process.h"
293 #include "chrome/browser/enterprise/connectors/connectors_prefs.h" 293 #include "chrome/browser/enterprise/connectors/connectors_prefs.h"
294 #include "components/policy/core/browser/url_util.h"
295 #include "components/prefs/pref_service.h" 294 #include "components/prefs/pref_service.h"
296-#include "components/safe_browsing/core/common/safe_browsing_prefs.h" 295-#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
297 #include "components/url_matcher/url_matcher.h" 296 #include "components/url_matcher/url_matcher.h"
298 #include "url/gurl.h" 297 #include "url/gurl.h"
299 298
300--- chrome/browser/enterprise/connectors/connectors_service.cc.orig 299--- a/chrome/browser/enterprise/connectors/connectors_service.cc
301+++ chrome/browser/enterprise/connectors/connectors_service.cc 300+++ b/chrome/browser/enterprise/connectors/connectors_service.cc
302@@ -36,7 +36,6 @@ 301@@ -38,7 +38,6 @@
303 #include "components/policy/core/common/cloud/machine_level_user_cloud_policy_store.h" 302 #include "components/policy/core/common/cloud/machine_level_user_cloud_policy_store.h"
304 #include "components/policy/core/common/cloud/user_cloud_policy_manager.h" 303 #include "components/policy/core/common/cloud/user_cloud_policy_manager.h"
305 #include "components/policy/core/common/policy_types.h" 304 #include "components/policy/core/common/policy_types.h"
306-#include "components/safe_browsing/core/common/safe_browsing_prefs.h" 305-#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
307 #include "components/signin/public/identity_manager/consent_level.h" 306 #include "components/signin/public/base/consent_level.h"
308 #include "components/signin/public/identity_manager/identity_manager.h" 307 #include "components/signin/public/identity_manager/identity_manager.h"
309 #include "components/user_prefs/user_prefs.h" 308 #include "components/user_prefs/user_prefs.h"
310@@ -406,8 +405,7 @@ std::string ConnectorsService::GetManage 309@@ -391,8 +390,7 @@ std::string ConnectorsService::GetManage
311 310
312 absl::optional<policy::PolicyScope> scope = absl::nullopt; 311 absl::optional<policy::PolicyScope> scope = absl::nullopt;
313 for (const char* scope_pref : 312 for (const char* scope_pref :
@@ -316,8 +315,8 @@
316+ {ConnectorScopePref(AnalysisConnector::FILE_ATTACHED), 315+ {ConnectorScopePref(AnalysisConnector::FILE_ATTACHED),
317 ConnectorScopePref(AnalysisConnector::FILE_DOWNLOADED), 316 ConnectorScopePref(AnalysisConnector::FILE_DOWNLOADED),
318 ConnectorScopePref(AnalysisConnector::BULK_DATA_ENTRY), 317 ConnectorScopePref(AnalysisConnector::BULK_DATA_ENTRY),
319 ConnectorScopePref(ReportingConnector::SECURITY_EVENT)}) { 318 ConnectorScopePref(AnalysisConnector::PRINT),
320@@ -458,20 +456,6 @@ std::string ConnectorsService::GetManage 319@@ -444,20 +442,6 @@ std::string ConnectorsService::GetManage
321 320
322 absl::optional<std::string> ConnectorsService::GetDMTokenForRealTimeUrlCheck() 321 absl::optional<std::string> ConnectorsService::GetDMTokenForRealTimeUrlCheck()
323 const { 322 const {
@@ -338,9 +337,9 @@
338 return absl::nullopt; 337 return absl::nullopt;
339 } 338 }
340 339
341--- chrome/browser/enterprise/connectors/connectors_service.h.orig 340--- a/chrome/browser/enterprise/connectors/connectors_service.h
342+++ chrome/browser/enterprise/connectors/connectors_service.h 341+++ b/chrome/browser/enterprise/connectors/connectors_service.h
343@@ -13,7 +13,6 @@ 342@@ -15,7 +15,6 @@
344 #include "components/keyed_service/content/browser_context_keyed_service_factory.h" 343 #include "components/keyed_service/content/browser_context_keyed_service_factory.h"
345 #include "components/keyed_service/core/keyed_service.h" 344 #include "components/keyed_service/core/keyed_service.h"
346 #include "components/policy/core/common/policy_types.h" 345 #include "components/policy/core/common/policy_types.h"
@@ -348,9 +347,9 @@
348 #include "content/public/browser/browser_context.h" 347 #include "content/public/browser/browser_context.h"
349 348
350 namespace base { 349 namespace base {
351--- chrome/browser/enterprise/signals/context_info_fetcher.cc.orig 350--- a/chrome/browser/enterprise/signals/context_info_fetcher.cc
352+++ chrome/browser/enterprise/signals/context_info_fetcher.cc 351+++ b/chrome/browser/enterprise/signals/context_info_fetcher.cc
353@@ -183,11 +183,6 @@ void ContextInfoFetcher::Fetch(ContextIn 352@@ -218,11 +218,6 @@ void ContextInfoFetcher::Fetch(ContextIn
354 info.third_party_blocking_enabled = 353 info.third_party_blocking_enabled =
355 utils::GetThirdPartyBlockingEnabled(g_browser_process->local_state()); 354 utils::GetThirdPartyBlockingEnabled(g_browser_process->local_state());
356 355
@@ -360,19 +359,19 @@
360- info.password_protection_warning_trigger = 359- info.password_protection_warning_trigger =
361- utils::GetPasswordProtectionWarningTrigger(profile->GetPrefs()); 360- utils::GetPasswordProtectionWarningTrigger(profile->GetPrefs());
362 361
363 #if defined(OS_WIN) 362 #if BUILDFLAG(IS_WIN)
364 base::ThreadPool::CreateCOMSTATaskRunner({base::MayBlock()}) 363 base::ThreadPool::CreateCOMSTATaskRunner({base::MayBlock()})
365--- chrome/browser/enterprise/signals/context_info_fetcher.h.orig 364--- a/chrome/browser/enterprise/signals/context_info_fetcher.h
366+++ chrome/browser/enterprise/signals/context_info_fetcher.h 365+++ b/chrome/browser/enterprise/signals/context_info_fetcher.h
367@@ -12,7 +12,6 @@ 366@@ -13,7 +13,6 @@
368 #include "base/callback_forward.h" 367 #include "base/memory/raw_ptr.h"
369 #include "build/build_config.h" 368 #include "build/build_config.h"
370 #include "chrome/browser/enterprise/signals/signals_common.h" 369 #include "chrome/browser/enterprise/signals/signals_common.h"
371-#include "components/safe_browsing/core/common/safe_browsing_prefs.h" 370-#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
372 371
373 namespace content { 372 namespace content {
374 class BrowserContext; 373 class BrowserContext;
375@@ -39,11 +38,8 @@ struct ContextInfo { 374@@ -40,11 +39,8 @@ struct ContextInfo {
376 std::vector<std::string> on_bulk_data_entry_providers; 375 std::vector<std::string> on_bulk_data_entry_providers;
377 std::vector<std::string> on_security_event_providers; 376 std::vector<std::string> on_security_event_providers;
378 std::string browser_version; 377 std::string browser_version;
@@ -384,18 +383,18 @@
384 absl::optional<bool> chrome_cleanup_enabled; 383 absl::optional<bool> chrome_cleanup_enabled;
385 bool chrome_remote_desktop_app_blocked; 384 bool chrome_remote_desktop_app_blocked;
386 absl::optional<bool> third_party_blocking_enabled; 385 absl::optional<bool> third_party_blocking_enabled;
387--- chrome/browser/enterprise/signals/signals_utils.cc.orig 386--- a/chrome/browser/enterprise/signals/signals_utils.cc
388+++ chrome/browser/enterprise/signals/signals_utils.cc 387+++ b/chrome/browser/enterprise/signals/signals_utils.cc
389@@ -10,7 +10,6 @@ 388@@ -10,7 +10,6 @@
390 #include "components/policy/content/policy_blocklist_service.h" 389 #include "components/policy/content/policy_blocklist_service.h"
391 #include "components/policy/core/browser/url_blocklist_manager.h" 390 #include "components/policy/core/browser/url_blocklist_manager.h"
392 #include "components/prefs/pref_service.h" 391 #include "components/prefs/pref_service.h"
393-#include "components/safe_browsing/core/common/safe_browsing_prefs.h" 392-#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
394 393
395 #if defined(OS_WIN) 394 #if BUILDFLAG(IS_WIN)
396 #include "components/component_updater/pref_names.h" 395 #include "components/component_updater/pref_names.h"
397--- chrome/browser/enterprise/signals/signals_utils.h.orig 396--- a/chrome/browser/enterprise/signals/signals_utils.h
398+++ chrome/browser/enterprise/signals/signals_utils.h 397+++ b/chrome/browser/enterprise/signals/signals_utils.h
399@@ -5,8 +5,6 @@ 398@@ -5,8 +5,6 @@
400 #ifndef CHROME_BROWSER_ENTERPRISE_SIGNALS_SIGNALS_UTILS_H_ 399 #ifndef CHROME_BROWSER_ENTERPRISE_SIGNALS_SIGNALS_UTILS_H_
401 #define CHROME_BROWSER_ENTERPRISE_SIGNALS_SIGNALS_UTILS_H_ 400 #define CHROME_BROWSER_ENTERPRISE_SIGNALS_SIGNALS_UTILS_H_
@@ -405,8 +404,8 @@
405 #include "third_party/abseil-cpp/absl/types/optional.h" 404 #include "third_party/abseil-cpp/absl/types/optional.h"
406 405
407 class PolicyBlocklistService; 406 class PolicyBlocklistService;
408--- chrome/browser/extensions/api/enterprise_reporting_private/enterprise_reporting_private_api.cc.orig 407--- a/chrome/browser/extensions/api/enterprise_reporting_private/enterprise_reporting_private_api.cc
409+++ chrome/browser/extensions/api/enterprise_reporting_private/enterprise_reporting_private_api.cc 408+++ b/chrome/browser/extensions/api/enterprise_reporting_private/enterprise_reporting_private_api.cc
410@@ -77,45 +77,10 @@ api::enterprise_reporting_private::Conte 409@@ -77,45 +77,10 @@ api::enterprise_reporting_private::Conte
411 info.browser_version = std::move(signals.browser_version); 410 info.browser_version = std::move(signals.browser_version);
412 info.built_in_dns_client_enabled = signals.built_in_dns_client_enabled; 411 info.built_in_dns_client_enabled = signals.built_in_dns_client_enabled;
@@ -457,9 +456,9 @@
457 456
458 return info; 457 return info;
459 } 458 }
460--- chrome/browser/extensions/api/identity/identity_apitest.cc.orig 459--- a/chrome/browser/extensions/api/identity/identity_apitest.cc
461+++ chrome/browser/extensions/api/identity/identity_apitest.cc 460+++ b/chrome/browser/extensions/api/identity/identity_apitest.cc
462@@ -56,7 +56,6 @@ 461@@ -57,7 +57,6 @@
463 #include "components/prefs/pref_service.h" 462 #include "components/prefs/pref_service.h"
464 #include "components/signin/core/browser/account_reconcilor.h" 463 #include "components/signin/core/browser/account_reconcilor.h"
465 #include "components/signin/public/base/list_accounts_test_utils.h" 464 #include "components/signin/public/base/list_accounts_test_utils.h"
@@ -467,9 +466,9 @@
467 #include "components/signin/public/base/signin_switches.h" 466 #include "components/signin/public/base/signin_switches.h"
468 #include "components/signin/public/identity_manager/accounts_mutator.h" 467 #include "components/signin/public/identity_manager/accounts_mutator.h"
469 #include "components/signin/public/identity_manager/identity_manager.h" 468 #include "components/signin/public/identity_manager/identity_manager.h"
470--- chrome/browser/extensions/api/identity/identity_get_auth_token_function.cc.orig 469--- a/chrome/browser/extensions/api/identity/identity_get_auth_token_function.cc
471+++ chrome/browser/extensions/api/identity/identity_get_auth_token_function.cc 470+++ b/chrome/browser/extensions/api/identity/identity_get_auth_token_function.cc
472@@ -30,7 +30,6 @@ 471@@ -29,7 +29,6 @@
473 #include "chrome/common/channel_info.h" 472 #include "chrome/common/channel_info.h"
474 #include "chrome/common/extensions/api/identity.h" 473 #include "chrome/common/extensions/api/identity.h"
475 #include "components/prefs/pref_service.h" 474 #include "components/prefs/pref_service.h"
@@ -477,7 +476,7 @@
477 #include "components/signin/public/base/signin_switches.h" 476 #include "components/signin/public/base/signin_switches.h"
478 #include "components/signin/public/identity_manager/access_token_info.h" 477 #include "components/signin/public/identity_manager/access_token_info.h"
479 #include "components/signin/public/identity_manager/accounts_in_cookie_jar_info.h" 478 #include "components/signin/public/identity_manager/accounts_in_cookie_jar_info.h"
480@@ -64,7 +63,7 @@ const char* const kExtensionsIdentityAPI 479@@ -63,7 +62,7 @@ const char* const kExtensionsIdentityAPI
481 "extensions_identity_api"; 480 "extensions_identity_api";
482 481
483 bool IsBrowserSigninAllowed(Profile* profile) { 482 bool IsBrowserSigninAllowed(Profile* profile) {
@@ -486,8 +485,8 @@
486 } 485 }
487 486
488 std::string GetOAuth2MintTokenFlowVersion() { 487 std::string GetOAuth2MintTokenFlowVersion() {
489--- chrome/browser/extensions/api/preference/preference_api.cc.orig 488--- a/chrome/browser/extensions/api/preference/preference_api.cc
490+++ chrome/browser/extensions/api/preference/preference_api.cc 489+++ b/chrome/browser/extensions/api/preference/preference_api.cc
491@@ -35,7 +35,6 @@ 490@@ -35,7 +35,6 @@
492 #include "components/prefs/pref_service.h" 491 #include "components/prefs/pref_service.h"
493 #include "components/privacy_sandbox/privacy_sandbox_prefs.h" 492 #include "components/privacy_sandbox/privacy_sandbox_prefs.h"
@@ -495,8 +494,8 @@
495-#include "components/safe_browsing/core/common/safe_browsing_prefs.h" 494-#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
496 #include "components/spellcheck/browser/pref_names.h" 495 #include "components/spellcheck/browser/pref_names.h"
497 #include "components/translate/core/browser/translate_pref_names.h" 496 #include "components/translate/core/browser/translate_pref_names.h"
498 #include "extensions/browser/extension_pref_value_map.h" 497 #include "extensions/browser/api/content_settings/content_settings_service.h"
499@@ -109,11 +108,6 @@ const PrefMappingEntry kPrefMapping[] = 498@@ -110,11 +109,6 @@ const PrefMappingEntry kPrefMapping[] =
500 APIPermissionID::kPrivacy}, 499 APIPermissionID::kPrivacy},
501 {"doNotTrackEnabled", prefs::kEnableDoNotTrack, APIPermissionID::kPrivacy, 500 {"doNotTrackEnabled", prefs::kEnableDoNotTrack, APIPermissionID::kPrivacy,
502 APIPermissionID::kPrivacy}, 501 APIPermissionID::kPrivacy},
@@ -508,7 +507,7 @@
508 {"searchSuggestEnabled", prefs::kSearchSuggestEnabled, 507 {"searchSuggestEnabled", prefs::kSearchSuggestEnabled,
509 APIPermissionID::kPrivacy, APIPermissionID::kPrivacy}, 508 APIPermissionID::kPrivacy, APIPermissionID::kPrivacy},
510 {"spellingServiceEnabled", spellcheck::prefs::kSpellCheckUseSpellingService, 509 {"spellingServiceEnabled", spellcheck::prefs::kSpellCheckUseSpellingService,
511@@ -844,18 +838,6 @@ ExtensionFunction::ResponseAction SetPre 510@@ -845,18 +839,6 @@ ExtensionFunction::ResponseAction SetPre
512 base::Value(browser_pref_value->GetBool())); 511 base::Value(browser_pref_value->GetBool()));
513 } 512 }
514 513
@@ -527,7 +526,7 @@
527 preference_api->SetExtensionControlledPref( 526 preference_api->SetExtensionControlledPref(
528 extension_id(), browser_pref, scope, 527 extension_id(), browser_pref, scope,
529 base::Value::FromUniquePtrValue(std::move(browser_pref_value))); 528 base::Value::FromUniquePtrValue(std::move(browser_pref_value)));
530@@ -908,18 +890,6 @@ ExtensionFunction::ResponseAction ClearP 529@@ -909,18 +891,6 @@ ExtensionFunction::ResponseAction ClearP
531 PreferenceAPI::Get(browser_context()) 530 PreferenceAPI::Get(browser_context())
532 ->RemoveExtensionControlledPref(extension_id(), browser_pref, scope); 531 ->RemoveExtensionControlledPref(extension_id(), browser_pref, scope);
533 532
@@ -546,9 +545,9 @@
546 return RespondNow(NoArguments()); 545 return RespondNow(NoArguments());
547 } 546 }
548 547
549--- chrome/browser/extensions/api/preference/preference_apitest.cc.orig 548--- a/chrome/browser/extensions/api/preference/preference_apitest.cc
550+++ chrome/browser/extensions/api/preference/preference_apitest.cc 549+++ b/chrome/browser/extensions/api/preference/preference_apitest.cc
551@@ -28,7 +28,6 @@ 550@@ -31,7 +31,6 @@
552 #include "components/keep_alive_registry/scoped_keep_alive.h" 551 #include "components/keep_alive_registry/scoped_keep_alive.h"
553 #include "components/password_manager/core/common/password_manager_pref_names.h" 552 #include "components/password_manager/core/common/password_manager_pref_names.h"
554 #include "components/prefs/pref_service.h" 553 #include "components/prefs/pref_service.h"
@@ -556,43 +555,43 @@
556 #include "components/translate/core/browser/translate_pref_names.h" 555 #include "components/translate/core/browser/translate_pref_names.h"
557 #include "content/public/browser/notification_service.h" 556 #include "content/public/browser/notification_service.h"
558 #include "content/public/test/browser_test.h" 557 #include "content/public/test/browser_test.h"
559@@ -73,7 +72,6 @@ class ExtensionPreferenceApiTest : publi 558@@ -86,7 +85,6 @@ class ExtensionPreferenceApiTest
560 prefs->GetInteger(prefs::kNetworkPredictionOptions)); 559 prefs->GetInteger(prefetch::prefs::kNetworkPredictionOptions));
561 EXPECT_TRUE( 560 EXPECT_TRUE(
562 prefs->GetBoolean(password_manager::prefs::kCredentialsEnableService)); 561 prefs->GetBoolean(password_manager::prefs::kCredentialsEnableService));
563- EXPECT_TRUE(prefs->GetBoolean(prefs::kSafeBrowsingEnabled)); 562- EXPECT_TRUE(prefs->GetBoolean(prefs::kSafeBrowsingEnabled));
564 EXPECT_TRUE(prefs->GetBoolean(prefs::kSearchSuggestEnabled)); 563 EXPECT_TRUE(prefs->GetBoolean(prefs::kSearchSuggestEnabled));
565 } 564 }
566 565
567@@ -99,7 +97,6 @@ class ExtensionPreferenceApiTest : publi 566@@ -112,7 +110,6 @@ class ExtensionPreferenceApiTest
568 prefs->GetInteger(prefs::kNetworkPredictionOptions)); 567 prefs->GetInteger(prefetch::prefs::kNetworkPredictionOptions));
569 EXPECT_FALSE( 568 EXPECT_FALSE(
570 prefs->GetBoolean(password_manager::prefs::kCredentialsEnableService)); 569 prefs->GetBoolean(password_manager::prefs::kCredentialsEnableService));
571- EXPECT_FALSE(prefs->GetBoolean(prefs::kSafeBrowsingEnabled)); 570- EXPECT_FALSE(prefs->GetBoolean(prefs::kSafeBrowsingEnabled));
572 EXPECT_FALSE(prefs->GetBoolean(prefs::kSearchSuggestEnabled)); 571 EXPECT_FALSE(prefs->GetBoolean(prefs::kSearchSuggestEnabled));
573 } 572 }
574 573
575@@ -163,7 +160,6 @@ IN_PROC_BROWSER_TEST_F(ExtensionPreferen 574@@ -185,7 +182,6 @@ IN_PROC_BROWSER_TEST_P(ExtensionPreferen
576 prefs->SetInteger(prefs::kNetworkPredictionOptions, 575 prefetch::prefs::kNetworkPredictionOptions,
577 chrome_browser_net::NETWORK_PREDICTION_NEVER); 576 static_cast<int>(prefetch::NetworkPredictionOptions::kDisabled));
578 prefs->SetBoolean(password_manager::prefs::kCredentialsEnableService, false); 577 prefs->SetBoolean(password_manager::prefs::kCredentialsEnableService, false);
579- prefs->SetBoolean(prefs::kSafeBrowsingEnabled, false); 578- prefs->SetBoolean(prefs::kSafeBrowsingEnabled, false);
580 prefs->SetBoolean(prefs::kSearchSuggestEnabled, false); 579 prefs->SetBoolean(prefs::kSearchSuggestEnabled, false);
581 prefs->SetString(prefs::kWebRTCIPHandlingPolicy, 580 prefs->SetString(prefs::kWebRTCIPHandlingPolicy,
582 blink::kWebRTCIPHandlingDefaultPublicInterfaceOnly); 581 blink::kWebRTCIPHandlingDefaultPublicInterfaceOnly);
583--- chrome/browser/extensions/api/safe_browsing_private/safe_browsing_private_event_router.cc.orig 582--- a/chrome/browser/extensions/api/safe_browsing_private/safe_browsing_private_event_router.cc
584+++ chrome/browser/extensions/api/safe_browsing_private/safe_browsing_private_event_router.cc 583+++ b/chrome/browser/extensions/api/safe_browsing_private/safe_browsing_private_event_router.cc
585@@ -36,7 +36,6 @@ 584@@ -39,7 +39,6 @@
586 #include "components/policy/core/common/cloud/user_cloud_policy_manager.h" 585 #include "components/policy/core/common/cloud/user_cloud_policy_manager.h"
587 #include "components/prefs/pref_service.h" 586 #include "components/prefs/pref_service.h"
588 #include "components/safe_browsing/content/browser/web_ui/safe_browsing_ui.h" 587 #include "components/safe_browsing/content/browser/web_ui/safe_browsing_ui.h"
589-#include "components/safe_browsing/core/common/safe_browsing_prefs.h" 588-#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
590 #include "components/signin/public/identity_manager/identity_manager.h" 589 #include "components/signin/public/identity_manager/identity_manager.h"
591 #include "content/public/browser/browser_context.h" 590 #include "components/url_matcher/url_matcher.h"
592 #include "extensions/browser/event_router.h" 591 #include "components/url_matcher/url_util.h"
593--- chrome/browser/extensions/api/safe_browsing_private/safe_browsing_private_event_router_unittest.cc.orig 592--- a/chrome/browser/extensions/api/safe_browsing_private/safe_browsing_private_event_router_unittest.cc
594+++ chrome/browser/extensions/api/safe_browsing_private/safe_browsing_private_event_router_unittest.cc 593+++ b/chrome/browser/extensions/api/safe_browsing_private/safe_browsing_private_event_router_unittest.cc
595@@ -35,7 +35,6 @@ 594@@ -36,7 +36,6 @@
596 #include "components/policy/core/common/cloud/mock_cloud_policy_client.h" 595 #include "components/policy/core/common/cloud/mock_cloud_policy_client.h"
597 #include "components/policy/core/common/cloud/realtime_reporting_job_configuration.h" 596 #include "components/policy/core/common/cloud/realtime_reporting_job_configuration.h"
598 #include "components/safe_browsing/core/common/features.h" 597 #include "components/safe_browsing/core/common/features.h"
@@ -600,8 +599,8 @@
600 #include "components/signin/public/identity_manager/identity_test_environment.h" 599 #include "components/signin/public/identity_manager/identity_test_environment.h"
601 #include "content/public/test/browser_task_environment.h" 600 #include "content/public/test/browser_task_environment.h"
602 #include "extensions/browser/test_event_router.h" 601 #include "extensions/browser/test_event_router.h"
603--- chrome/browser/extensions/api/settings_private/prefs_util.cc.orig 602--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc
604+++ chrome/browser/extensions/api/settings_private/prefs_util.cc 603+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc
605@@ -43,7 +43,6 @@ 604@@ -43,7 +43,6 @@
606 #include "components/prefs/pref_service.h" 605 #include "components/prefs/pref_service.h"
607 #include "components/privacy_sandbox/privacy_sandbox_prefs.h" 606 #include "components/privacy_sandbox/privacy_sandbox_prefs.h"
@@ -610,7 +609,7 @@
610 #include "components/search_engines/default_search_manager.h" 609 #include "components/search_engines/default_search_manager.h"
611 #include "components/spellcheck/browser/pref_names.h" 610 #include "components/spellcheck/browser/pref_names.h"
612 #include "components/translate/core/browser/translate_pref_names.h" 611 #include "components/translate/core/browser/translate_pref_names.h"
613@@ -283,16 +282,6 @@ const PrefsUtil::TypedPrefMap& PrefsUtil 612@@ -295,16 +294,6 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
614 settings_api::PrefType::PREF_TYPE_BOOLEAN; 613 settings_api::PrefType::PREF_TYPE_BOOLEAN;
615 614
616 // Security page 615 // Security page
@@ -627,9 +626,9 @@
627 (*s_allowlist)[::prefs::kHttpsOnlyModeEnabled] = 626 (*s_allowlist)[::prefs::kHttpsOnlyModeEnabled] =
628 settings_api::PrefType::PREF_TYPE_BOOLEAN; 627 settings_api::PrefType::PREF_TYPE_BOOLEAN;
629 628
630--- chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc.orig 629--- a/chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc
631+++ chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc 630+++ b/chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc
632@@ -647,9 +647,6 @@ IN_PROC_BROWSER_TEST_F(ExtensionWebstore 631@@ -649,9 +649,6 @@ IN_PROC_BROWSER_TEST_F(ExtensionWebstore
633 IN_PROC_BROWSER_TEST_F(ExtensionWebstorePrivateGetReferrerChainApiTest, 632 IN_PROC_BROWSER_TEST_F(ExtensionWebstorePrivateGetReferrerChainApiTest,
634 GetReferrerChainForNonSafeBrowsingUser) { 633 GetReferrerChainForNonSafeBrowsingUser) {
635 PrefService* pref_service = browser()->profile()->GetPrefs(); 634 PrefService* pref_service = browser()->profile()->GetPrefs();
@@ -639,9 +638,9 @@
639 638
640 GURL page_url = GetTestServerURLWithReferrers("empty_referrer_chain.html"); 639 GURL page_url = GetTestServerURLWithReferrers("empty_referrer_chain.html");
641 ASSERT_TRUE(OpenTestURL(page_url)); 640 ASSERT_TRUE(OpenTestURL(page_url));
642--- chrome/browser/extensions/extension_allowlist.cc.orig 641--- a/chrome/browser/extensions/extension_allowlist.cc
643+++ chrome/browser/extensions/extension_allowlist.cc 642+++ b/chrome/browser/extensions/extension_allowlist.cc
644@@ -9,7 +9,6 @@ 643@@ -10,7 +10,6 @@
645 #include "chrome/browser/profiles/profile.h" 644 #include "chrome/browser/profiles/profile.h"
646 #include "chrome/browser/safe_browsing/safe_browsing_metrics_collector_factory.h" 645 #include "chrome/browser/safe_browsing/safe_browsing_metrics_collector_factory.h"
647 #include "components/safe_browsing/core/browser/safe_browsing_metrics_collector.h" 646 #include "components/safe_browsing/core/browser/safe_browsing_metrics_collector.h"
@@ -649,7 +648,7 @@
649 #include "extensions/browser/allowlist_state.h" 648 #include "extensions/browser/allowlist_state.h"
650 #include "extensions/browser/extension_registry.h" 649 #include "extensions/browser/extension_registry.h"
651 #include "extensions/browser/extension_system.h" 650 #include "extensions/browser/extension_system.h"
652@@ -68,10 +67,6 @@ ExtensionAllowlist::ExtensionAllowlist(P 651@@ -69,10 +68,6 @@ ExtensionAllowlist::ExtensionAllowlist(P
653 // Register to Enhanced Safe Browsing setting changes for allowlist 652 // Register to Enhanced Safe Browsing setting changes for allowlist
654 // enforcements. 653 // enforcements.
655 pref_change_registrar_.Init(profile_->GetPrefs()); 654 pref_change_registrar_.Init(profile_->GetPrefs());
@@ -660,7 +659,7 @@
660 } 659 }
661 660
662 ExtensionAllowlist::~ExtensionAllowlist() = default; 661 ExtensionAllowlist::~ExtensionAllowlist() = default;
663@@ -240,15 +235,8 @@ void ExtensionAllowlist::OnExtensionInst 662@@ -241,15 +236,8 @@ void ExtensionAllowlist::OnExtensionInst
664 } 663 }
665 664
666 void ExtensionAllowlist::SetAllowlistEnforcementFields() { 665 void ExtensionAllowlist::SetAllowlistEnforcementFields() {
@@ -676,7 +675,7 @@
676 } 675 }
677 676
678 // `ApplyEnforcement` can be called when an extension becomes not allowlisted or 677 // `ApplyEnforcement` can be called when an extension becomes not allowlisted or
679@@ -398,15 +386,6 @@ void ExtensionAllowlist::NotifyExtension 678@@ -399,15 +387,6 @@ void ExtensionAllowlist::NotifyExtension
680 } 679 }
681 680
682 void ExtensionAllowlist::ReportExtensionReEnabledEvent() { 681 void ExtensionAllowlist::ReportExtensionReEnabledEvent() {
@@ -692,9 +691,17 @@
692 } 691 }
693 692
694 } // namespace extensions 693 } // namespace extensions
695--- chrome/browser/extensions/installed_loader.cc.orig 694--- a/chrome/browser/extensions/installed_loader.cc
696+++ chrome/browser/extensions/installed_loader.cc 695+++ b/chrome/browser/extensions/installed_loader.cc
697@@ -797,12 +797,6 @@ void InstalledLoader::RecordExtensionsMe 696@@ -28,7 +28,6 @@
697 #include "chrome/common/extensions/chrome_manifest_url_handlers.h"
698 #include "chrome/common/extensions/manifest_handlers/settings_overrides_handler.h"
699 #include "chrome/common/webui_url_constants.h"
700-#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
701 #include "content/public/browser/browser_thread.h"
702 #include "content/public/browser/notification_service.h"
703 #include "content/public/common/url_constants.h"
704@@ -798,12 +797,6 @@ void InstalledLoader::RecordExtensionsMe
698 enabled_not_allowlisted_count); 705 enabled_not_allowlisted_count);
699 base::UmaHistogramCounts100("Extensions.NotAllowlistedDisabled", 706 base::UmaHistogramCounts100("Extensions.NotAllowlistedDisabled",
700 disabled_not_allowlisted_count); 707 disabled_not_allowlisted_count);
@@ -707,9 +714,9 @@
707 } 714 }
708 715
709 int InstalledLoader::GetCreationFlags(const ExtensionInfo* info) { 716 int InstalledLoader::GetCreationFlags(const ExtensionInfo* info) {
710--- chrome/browser/net/profile_network_context_service.cc.orig 717--- a/chrome/browser/net/profile_network_context_service.cc
711+++ chrome/browser/net/profile_network_context_service.cc 718+++ b/chrome/browser/net/profile_network_context_service.cc
712@@ -43,7 +43,6 @@ 719@@ -46,7 +46,6 @@
713 #include "components/pref_registry/pref_registry_syncable.h" 720 #include "components/pref_registry/pref_registry_syncable.h"
714 #include "components/prefs/pref_registry_simple.h" 721 #include "components/prefs/pref_registry_simple.h"
715 #include "components/prefs/pref_service.h" 722 #include "components/prefs/pref_service.h"
@@ -717,22 +724,24 @@
717 #include "content/public/browser/browser_context.h" 724 #include "content/public/browser/browser_context.h"
718 #include "content/public/browser/browser_thread.h" 725 #include "content/public/browser/browser_thread.h"
719 #include "content/public/browser/network_service_instance.h" 726 #include "content/public/browser/network_service_instance.h"
720@@ -741,13 +740,6 @@ void ProfileNetworkContextService::Confi 727@@ -806,15 +805,8 @@ void ProfileNetworkContextService::Confi
721 network_context_params->enable_certificate_reporting = true; 728 network_context_params->enable_certificate_reporting = true;
722 network_context_params->enable_expect_ct_reporting = true; 729 network_context_params->enable_expect_ct_reporting = true;
723 730
724- // Initialize the network context to do SCT auditing only if the current 731- SCTReportingService* sct_reporting_service =
725- // profile is opted in to Safe Browsing Extended Reporting. 732- SCTReportingServiceFactory::GetForBrowserContext(profile_);
726- if (!profile_->IsOffTheRecord() && 733- if (sct_reporting_service) {
727- safe_browsing::IsExtendedReportingEnabled(*profile_->GetPrefs())) { 734- network_context_params->sct_auditing_mode =
728- network_context_params->enable_sct_auditing = true; 735- sct_reporting_service->GetReportingMode();
736- } else {
737 network_context_params->sct_auditing_mode =
738 network::mojom::SCTAuditingMode::kDisabled;
729- } 739- }
730- 740
731 network_context_params->ct_policy = GetCTPolicy(); 741 network_context_params->ct_policy = GetCTPolicy();
732 742
733 #if BUILDFLAG(TRIAL_COMPARISON_CERT_VERIFIER_SUPPORTED) 743--- a/chrome/browser/net/trial_comparison_cert_verifier_browsertest.cc
734--- chrome/browser/net/trial_comparison_cert_verifier_browsertest.cc.orig 744+++ b/chrome/browser/net/trial_comparison_cert_verifier_browsertest.cc
735+++ chrome/browser/net/trial_comparison_cert_verifier_browsertest.cc
736@@ -11,7 +11,6 @@ 745@@ -11,7 +11,6 @@
737 #include "chrome/test/base/in_process_browser_test.h" 746 #include "chrome/test/base/in_process_browser_test.h"
738 #include "chrome/test/base/ui_test_utils.h" 747 #include "chrome/test/base/ui_test_utils.h"
@@ -741,9 +750,9 @@
741 #include "content/public/test/browser_test.h" 750 #include "content/public/test/browser_test.h"
742 #include "net/base/features.h" 751 #include "net/base/features.h"
743 #include "net/cert/trial_comparison_cert_verifier.h" 752 #include "net/cert/trial_comparison_cert_verifier.h"
744--- chrome/browser/net/trial_comparison_cert_verifier_controller.cc.orig 753--- a/chrome/browser/net/trial_comparison_cert_verifier_controller.cc
745+++ chrome/browser/net/trial_comparison_cert_verifier_controller.cc 754+++ b/chrome/browser/net/trial_comparison_cert_verifier_controller.cc
746@@ -19,7 +19,6 @@ 755@@ -18,7 +18,6 @@
747 #include "chrome/browser/safe_browsing/certificate_reporting_service.h" 756 #include "chrome/browser/safe_browsing/certificate_reporting_service.h"
748 #include "chrome/browser/safe_browsing/certificate_reporting_service_factory.h" 757 #include "chrome/browser/safe_browsing/certificate_reporting_service_factory.h"
749 #include "chrome/common/channel_info.h" 758 #include "chrome/common/channel_info.h"
@@ -751,7 +760,7 @@
751 #include "components/security_interstitials/content/certificate_error_report.h" 760 #include "components/security_interstitials/content/certificate_error_report.h"
752 #include "content/public/browser/browser_task_traits.h" 761 #include "content/public/browser/browser_task_traits.h"
753 #include "content/public/browser/browser_thread.h" 762 #include "content/public/browser/browser_thread.h"
754@@ -42,12 +41,6 @@ TrialComparisonCertVerifierController::T 763@@ -41,12 +40,6 @@ TrialComparisonCertVerifierController::T
755 // enabled. 764 // enabled.
756 return; 765 return;
757 } 766 }
@@ -764,7 +773,7 @@
764 } 773 }
765 774
766 TrialComparisonCertVerifierController:: 775 TrialComparisonCertVerifierController::
767@@ -101,9 +94,7 @@ bool TrialComparisonCertVerifierControll 776@@ -100,9 +93,7 @@ bool TrialComparisonCertVerifierControll
768 if (!MaybeAllowedForProfile(profile_)) 777 if (!MaybeAllowedForProfile(profile_))
769 return false; 778 return false;
770 779
@@ -775,8 +784,8 @@
775 } 784 }
776 785
777 void TrialComparisonCertVerifierController::SendTrialReport( 786 void TrialComparisonCertVerifierController::SendTrialReport(
778--- chrome/browser/net/trial_comparison_cert_verifier_controller.h.orig 787--- a/chrome/browser/net/trial_comparison_cert_verifier_controller.h
779+++ chrome/browser/net/trial_comparison_cert_verifier_controller.h 788+++ b/chrome/browser/net/trial_comparison_cert_verifier_controller.h
780@@ -14,7 +14,6 @@ 789@@ -14,7 +14,6 @@
781 #include "base/memory/ref_counted.h" 790 #include "base/memory/ref_counted.h"
782 #include "base/memory/weak_ptr.h" 791 #include "base/memory/weak_ptr.h"
@@ -788,13 +797,13 @@
788@@ -77,7 +76,6 @@ class TrialComparisonCertVerifierControl 797@@ -77,7 +76,6 @@ class TrialComparisonCertVerifierControl
789 void RefreshState(); 798 void RefreshState();
790 799
791 Profile* profile_; 800 raw_ptr<Profile> profile_;
792- PrefChangeRegistrar pref_change_registrar_; 801- PrefChangeRegistrar pref_change_registrar_;
793 802
794 mojo::ReceiverSet< 803 mojo::ReceiverSet<
795 cert_verifier::mojom::TrialComparisonCertVerifierReportClient> 804 cert_verifier::mojom::TrialComparisonCertVerifierReportClient>
796--- chrome/browser/net/trial_comparison_cert_verifier_controller_unittest.cc.orig 805--- a/chrome/browser/net/trial_comparison_cert_verifier_controller_unittest.cc
797+++ chrome/browser/net/trial_comparison_cert_verifier_controller_unittest.cc 806+++ b/chrome/browser/net/trial_comparison_cert_verifier_controller_unittest.cc
798@@ -20,7 +20,6 @@ 807@@ -20,7 +20,6 @@
799 #include "chrome/test/base/testing_browser_process.h" 808 #include "chrome/test/base/testing_browser_process.h"
800 #include "chrome/test/base/testing_profile.h" 809 #include "chrome/test/base/testing_profile.h"
@@ -803,17 +812,17 @@
803 #include "components/security_interstitials/content/cert_logger.pb.h" 812 #include "components/security_interstitials/content/cert_logger.pb.h"
804 #include "components/sync_preferences/testing_pref_service_syncable.h" 813 #include "components/sync_preferences/testing_pref_service_syncable.h"
805 #include "content/public/browser/browser_task_traits.h" 814 #include "content/public/browser/browser_task_traits.h"
806--- chrome/browser/password_manager/generated_password_leak_detection_pref.cc.orig 815--- a/chrome/browser/password_manager/generated_password_leak_detection_pref.cc
807+++ chrome/browser/password_manager/generated_password_leak_detection_pref.cc 816+++ b/chrome/browser/password_manager/generated_password_leak_detection_pref.cc
808@@ -13,7 +13,6 @@ 817@@ -14,7 +14,6 @@
809 #include "chrome/common/extensions/api/settings_private.h" 818 #include "components/password_manager/core/common/password_manager_features.h"
810 #include "components/password_manager/core/common/password_manager_pref_names.h" 819 #include "components/password_manager/core/common/password_manager_pref_names.h"
811 #include "components/prefs/pref_service.h" 820 #include "components/prefs/pref_service.h"
812-#include "components/safe_browsing/core/common/safe_browsing_prefs.h" 821-#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
813 #include "components/signin/public/identity_manager/identity_manager.h" 822 #include "components/signin/public/identity_manager/identity_manager.h"
814 823
815 namespace { 824 namespace {
816@@ -43,8 +42,7 @@ bool IsUserSignedInAndSyncing(Profile* p 825@@ -37,8 +36,7 @@ bool IsUserAllowedToUseLeakDetection(Pro
817 // Returns whether the effective value of the Safe Browsing preferences for 826 // Returns whether the effective value of the Safe Browsing preferences for
818 // |profile| is standard protection. 827 // |profile| is standard protection.
819 bool IsSafeBrowsingStandard(Profile* profile) { 828 bool IsSafeBrowsingStandard(Profile* profile) {
@@ -823,7 +832,7 @@
823 } 832 }
824 833
825 } // namespace 834 } // namespace
826@@ -63,16 +61,6 @@ GeneratedPasswordLeakDetectionPref::Gene 835@@ -57,16 +55,6 @@ GeneratedPasswordLeakDetectionPref::Gene
827 base::BindRepeating( 836 base::BindRepeating(
828 &GeneratedPasswordLeakDetectionPref::OnSourcePreferencesChanged, 837 &GeneratedPasswordLeakDetectionPref::OnSourcePreferencesChanged,
829 base::Unretained(this))); 838 base::Unretained(this)));
@@ -840,8 +849,8 @@
840 849
841 if (auto* identity_manager = IdentityManagerFactory::GetForProfile(profile)) 850 if (auto* identity_manager = IdentityManagerFactory::GetForProfile(profile))
842 identity_manager_observer_.Observe(identity_manager); 851 identity_manager_observer_.Observe(identity_manager);
843--- chrome/browser/permissions/abusive_origin_permission_revocation_request.cc.orig 852--- a/chrome/browser/permissions/abusive_origin_permission_revocation_request.cc
844+++ chrome/browser/permissions/abusive_origin_permission_revocation_request.cc 853+++ b/chrome/browser/permissions/abusive_origin_permission_revocation_request.cc
845@@ -17,7 +17,6 @@ 854@@ -17,7 +17,6 @@
846 #include "components/permissions/permissions_client.h" 855 #include "components/permissions/permissions_client.h"
847 #include "components/prefs/pref_service.h" 856 #include "components/prefs/pref_service.h"
@@ -850,18 +859,18 @@
850 859
851 namespace { 860 namespace {
852 constexpr char kExcludedKey[] = "exempted"; 861 constexpr char kExcludedKey[] = "exempted";
853--- chrome/browser/permissions/prediction_based_permission_ui_selector.cc.orig 862--- a/chrome/browser/permissions/prediction_based_permission_ui_selector.cc
854+++ chrome/browser/permissions/prediction_based_permission_ui_selector.cc 863+++ b/chrome/browser/permissions/prediction_based_permission_ui_selector.cc
855@@ -23,7 +23,6 @@ 864@@ -26,7 +26,6 @@
856 #include "components/permissions/prediction_service/prediction_service.h" 865 #include "components/permissions/prediction_service/prediction_service.h"
857 #include "components/permissions/prediction_service/prediction_service_messages.pb.h" 866 #include "components/permissions/prediction_service/prediction_service_messages.pb.h"
858 #include "components/prefs/pref_service.h" 867 #include "components/prefs/pref_service.h"
859-#include "components/safe_browsing/core/common/safe_browsing_prefs.h" 868-#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
860 869
861 namespace { 870 #if BUILDFLAG(BUILD_WITH_TFLITE_LIB)
862 871 #include "chrome/browser/permissions/prediction_model_handler_factory.h"
863--- chrome/browser/policy/browser_signin_policy_handler.cc.orig 872--- a/chrome/browser/policy/browser_signin_policy_handler.cc
864+++ chrome/browser/policy/browser_signin_policy_handler.cc 873+++ b/chrome/browser/policy/browser_signin_policy_handler.cc
865@@ -15,7 +15,6 @@ 874@@ -15,7 +15,6 @@
866 #include "components/policy/core/common/policy_map.h" 875 #include "components/policy/core/common/policy_map.h"
867 #include "components/policy/policy_constants.h" 876 #include "components/policy/policy_constants.h"
@@ -870,13 +879,13 @@
870 879
871 namespace policy { 880 namespace policy {
872 BrowserSigninPolicyHandler::BrowserSigninPolicyHandler(Schema chrome_schema) 881 BrowserSigninPolicyHandler::BrowserSigninPolicyHandler(Schema chrome_schema)
873@@ -48,28 +47,18 @@ void BrowserSigninPolicyHandler::ApplyPo 882@@ -49,28 +48,18 @@ void BrowserSigninPolicyHandler::ApplyPo
874 #endif 883 #endif
875 FALLTHROUGH; 884 [[fallthrough]];
876 case BrowserSigninMode::kEnabled: 885 case BrowserSigninMode::kEnabled:
877+#if !defined(OS_ANDROID) 886+#if !BUILDFLAG(IS_ANDROID)
878 prefs->SetValue( 887 prefs->SetValue(
879-#if defined(OS_ANDROID) 888-#if BUILDFLAG(IS_ANDROID)
880- // The new kSigninAllowedOnNextStartup pref is only used on Desktop. 889- // The new kSigninAllowedOnNextStartup pref is only used on Desktop.
881- // Keep the old kSigninAllowed pref for Android until the policy is 890- // Keep the old kSigninAllowed pref for Android until the policy is
882- // fully deprecated in M71 and can be removed. 891- // fully deprecated in M71 and can be removed.
@@ -888,9 +897,9 @@
888+#endif 897+#endif
889 break; 898 break;
890 case BrowserSigninMode::kDisabled: 899 case BrowserSigninMode::kDisabled:
891+#if !defined(OS_ANDROID) 900+#if !BUILDFLAG(IS_ANDROID)
892 prefs->SetValue( 901 prefs->SetValue(
893-#if defined(OS_ANDROID) 902-#if BUILDFLAG(IS_ANDROID)
894- // The new kSigninAllowedOnNextStartup pref is only used on Desktop. 903- // The new kSigninAllowedOnNextStartup pref is only used on Desktop.
895- // Keep the old kSigninAllowed pref for Android until the policy is 904- // Keep the old kSigninAllowed pref for Android until the policy is
896- // fully deprecated in M71 and can be removed. 905- // fully deprecated in M71 and can be removed.
@@ -903,12 +912,12 @@
903 break; 912 break;
904 } 913 }
905 } 914 }
906--- chrome/browser/policy/configuration_policy_handler_list_factory.cc.orig 915--- a/chrome/browser/policy/configuration_policy_handler_list_factory.cc
907+++ chrome/browser/policy/configuration_policy_handler_list_factory.cc 916+++ b/chrome/browser/policy/configuration_policy_handler_list_factory.cc
908@@ -83,12 +83,9 @@ 917@@ -94,12 +94,9 @@
909 #include "components/policy/core/common/schema.h"
910 #include "components/policy/policy_constants.h"
911 #include "components/proxy_config/proxy_policy_handler.h" 918 #include "components/proxy_config/proxy_policy_handler.h"
919 #include "components/safe_browsing/buildflags.h"
920 #include "components/safe_browsing/content/common/file_type_policies_prefs.h"
912-#include "components/safe_browsing/core/common/safe_browsing_policy_handler.h" 921-#include "components/safe_browsing/core/common/safe_browsing_policy_handler.h"
913-#include "components/safe_browsing/core/common/safe_browsing_prefs.h" 922-#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
914 #include "components/search_engines/default_search_policy_handler.h" 923 #include "components/search_engines/default_search_policy_handler.h"
@@ -918,39 +927,76 @@
918 #include "components/spellcheck/spellcheck_buildflags.h" 927 #include "components/spellcheck/spellcheck_buildflags.h"
919 #include "components/sync/base/pref_names.h" 928 #include "components/sync/base/pref_names.h"
920 #include "components/sync/driver/sync_policy_handler.h" 929 #include "components/sync/driver/sync_policy_handler.h"
921@@ -209,15 +206,6 @@ const PolicyToPreferenceMapEntry kSimple 930@@ -207,9 +204,6 @@ const PolicyToPreferenceMapEntry kSimple
922 { key::kQuicAllowed, 931 { key::kDefaultPopupsSetting,
923 prefs::kQuicAllowed, 932 prefs::kManagedDefaultPopupsSetting,
933 base::Value::Type::INTEGER },
934- { key::kDisableSafeBrowsingProceedAnyway,
935- prefs::kSafeBrowsingProceedAnywayDisabled,
936- base::Value::Type::BOOLEAN },
937 { key::kEditBookmarksEnabled,
938 bookmarks::prefs::kEditBookmarksEnabled,
924 base::Value::Type::BOOLEAN }, 939 base::Value::Type::BOOLEAN },
940@@ -230,9 +224,6 @@ const PolicyToPreferenceMapEntry kSimple
941 prefs::kPrintingEnabled,
942 base::Value::Type::BOOLEAN },
943 #endif // BUILDFLAG(ENABLE_PRINTING)
925- { key::kSafeBrowsingEnabled, 944- { key::kSafeBrowsingEnabled,
926- prefs::kSafeBrowsingEnabled, 945- prefs::kSafeBrowsingEnabled,
927- base::Value::Type::BOOLEAN }, 946- base::Value::Type::BOOLEAN },
928- { key::kSafeBrowsingForTrustedSourcesEnabled, 947 { key::kSavingBrowserHistoryDisabled,
929- prefs::kSafeBrowsingForTrustedSourcesEnabled, 948 prefs::kSavingBrowserHistoryDisabled,
930- base::Value::Type::BOOLEAN }, 949 base::Value::Type::BOOLEAN },
931- { key::kSafeBrowsingExtendedReportingEnabled, 950@@ -291,9 +282,6 @@ const PolicyToPreferenceMapEntry kSimple
932- prefs::kSafeBrowsingScoutReportingEnabled, 951 { key::kAdsSettingForIntrusiveAdsSites,
952 prefs::kManagedDefaultAdsSetting,
953 base::Value::Type::INTEGER },
954- { key::kAdvancedProtectionAllowed,
955- prefs::kAdvancedProtectionAllowed,
933- base::Value::Type::BOOLEAN }, 956- base::Value::Type::BOOLEAN },
934 { key::kUrlKeyedAnonymizedDataCollectionEnabled, 957 { key::kAllowCrossOriginAuthPrompt,
935 unified_consent::prefs::kUrlKeyedAnonymizedDataCollectionEnabled, 958 prefs::kAllowCrossOriginAuthPrompt,
936 base::Value::Type::BOOLEAN }, 959 base::Value::Type::BOOLEAN },
937@@ -353,15 +341,6 @@ const PolicyToPreferenceMapEntry kSimple 960@@ -482,15 +470,6 @@ const PolicyToPreferenceMapEntry kSimple
938 { key::kGloballyScopeHTTPAuthCacheEnabled, 961 { key::kPasswordDismissCompromisedAlertEnabled,
939 prefs::kGloballyScopeHTTPAuthCacheEnabled, 962 password_manager::prefs::kPasswordDismissCompromisedAlertEnabled,
940 base::Value::Type::BOOLEAN }, 963 base::Value::Type::BOOLEAN },
964- { key::kPasswordProtectionChangePasswordURL,
965- prefs::kPasswordProtectionChangePasswordURL,
966- base::Value::Type::STRING },
967- { key::kPasswordProtectionLoginURLs,
968- prefs::kPasswordProtectionLoginURLs,
969- base::Value::Type::LIST },
941- { key::kPasswordProtectionWarningTrigger, 970- { key::kPasswordProtectionWarningTrigger,
942- prefs::kPasswordProtectionWarningTrigger, 971- prefs::kPasswordProtectionWarningTrigger,
943- base::Value::Type::INTEGER }, 972- base::Value::Type::INTEGER },
944- { key::kPasswordProtectionLoginURLs, 973 { key::kPolicyRefreshRate,
945- prefs::kPasswordProtectionLoginURLs, 974 policy_prefs::kUserPolicyRefreshRate,
975 base::Value::Type::INTEGER },
976@@ -526,9 +505,6 @@ const PolicyToPreferenceMapEntry kSimple
977 { key::kRestoreOnStartupURLs,
978 prefs::kURLsToRestoreOnStartup,
979 base::Value::Type::LIST },
980- { key::kSafeBrowsingAllowlistDomains,
981- prefs::kSafeBrowsingAllowlistDomains,
946- base::Value::Type::LIST }, 982- base::Value::Type::LIST },
947- { key::kPasswordProtectionChangePasswordURL,
948- prefs::kPasswordProtectionChangePasswordURL,
949- base::Value::Type::STRING },
950 { key::kSafeSitesFilterBehavior, 983 { key::kSafeSitesFilterBehavior,
951 policy_prefs::kSafeSitesFilterBehavior, 984 policy_prefs::kSafeSitesFilterBehavior,
952 base::Value::Type::INTEGER }, 985 base::Value::Type::INTEGER },
953@@ -470,18 +449,12 @@ const PolicyToPreferenceMapEntry kSimple 986@@ -653,12 +629,6 @@ const PolicyToPreferenceMapEntry kSimple
987 { key::kAdditionalDnsQueryTypesEnabled,
988 prefs::kAdditionalDnsQueryTypesEnabled,
989 base::Value::Type::BOOLEAN },
990- { key::kSafeBrowsingForTrustedSourcesEnabled,
991- prefs::kSafeBrowsingForTrustedSourcesEnabled,
992- base::Value::Type::BOOLEAN },
993- { key::kSafeBrowsingExtendedReportingEnabled,
994- prefs::kSafeBrowsingScoutReportingEnabled,
995- base::Value::Type::BOOLEAN },
996 { key::kForceGoogleSafeSearch,
997 prefs::kForceGoogleSafeSearch,
998 base::Value::Type::BOOLEAN },
999@@ -816,9 +786,6 @@ const PolicyToPreferenceMapEntry kSimple
954 { key::kMaxConnectionsPerProxy, 1000 { key::kMaxConnectionsPerProxy,
955 prefs::kMaxConnectionsPerProxy, 1001 prefs::kMaxConnectionsPerProxy,
956 base::Value::Type::INTEGER }, 1002 base::Value::Type::INTEGER },
@@ -960,48 +1006,10 @@
960 { key::kDefaultWebBluetoothGuardSetting, 1006 { key::kDefaultWebBluetoothGuardSetting,
961 prefs::kManagedDefaultWebBluetoothGuardSetting, 1007 prefs::kManagedDefaultWebBluetoothGuardSetting,
962 base::Value::Type::INTEGER }, 1008 base::Value::Type::INTEGER },
963 { key::kDefaultMediaStreamSetting, 1009@@ -1782,12 +1749,6 @@ std::unique_ptr<ConfigurationPolicyHandl
964 prefs::kManagedDefaultMediaStreamSetting, 1010 SimpleSchemaValidatingPolicyHandler::RECOMMENDED_ALLOWED,
965 base::Value::Type::INTEGER }, 1011 SimpleSchemaValidatingPolicyHandler::MANDATORY_ALLOWED));
966- { key::kDisableSafeBrowsingProceedAnyway, 1012
967- prefs::kSafeBrowsingProceedAnywayDisabled,
968- base::Value::Type::BOOLEAN },
969 { key::kCECPQ2Enabled,
970 prefs::kCECPQ2Enabled,
971 base::Value::Type::BOOLEAN },
972@@ -684,9 +657,6 @@ const PolicyToPreferenceMapEntry kSimple
973 { key::kIntranetRedirectBehavior,
974 omnibox::kIntranetRedirectBehavior,
975 base::Value::Type::INTEGER },
976- { key::kAdvancedProtectionAllowed,
977- prefs::kAdvancedProtectionAllowed,
978- base::Value::Type::BOOLEAN },
979 { key::kAccessibilityImageLabelsEnabled,
980 prefs::kAccessibilityImageLabelsEnabled,
981 base::Value::Type::BOOLEAN },
982@@ -1642,8 +1612,6 @@ std::unique_ptr<ConfigurationPolicyHandl
983 handlers->AddHandler(std::make_unique<JavascriptPolicyHandler>());
984 handlers->AddHandler(std::make_unique<NetworkPredictionPolicyHandler>());
985 handlers->AddHandler(std::make_unique<RestoreOnStartupPolicyHandler>());
986- handlers->AddHandler(
987- std::make_unique<safe_browsing::SafeBrowsingPolicyHandler>());
988 handlers->AddHandler(std::make_unique<SimpleDeprecatingPolicyHandler>(
989 std::make_unique<SimplePolicyHandler>(key::kAuthServerWhitelist,
990 prefs::kAuthServerAllowlist,
991@@ -1667,9 +1635,6 @@ std::unique_ptr<ConfigurationPolicyHandl
992 key::kWindowOcclusionEnabled,
993 policy::policy_prefs::kNativeWindowOcclusionEnabled,
994 base::Value::Type::BOOLEAN)));
995- handlers->AddHandler(std::make_unique<SimplePolicyHandler>(
996- key::kSafeBrowsingAllowlistDomains, prefs::kSafeBrowsingAllowlistDomains,
997- base::Value::Type::LIST));
998 handlers->AddHandler(std::make_unique<syncer::SyncPolicyHandler>());
999 handlers->AddHandler(std::make_unique<BrowsingHistoryPolicyHandler>());
1000
1001@@ -1762,12 +1727,6 @@ std::unique_ptr<ConfigurationPolicyHandl
1002 key::kOnSecurityEventEnterpriseConnector,
1003 enterprise_connectors::kOnSecurityEventPref,
1004 enterprise_connectors::kOnSecurityEventScopePref, chrome_schema));
1005- handlers->AddHandler( 1013- handlers->AddHandler(
1006- std::make_unique< 1014- std::make_unique<
1007- enterprise_connectors::EnterpriseConnectorsPolicyHandler>( 1015- enterprise_connectors::EnterpriseConnectorsPolicyHandler>(
@@ -1009,55 +1017,56 @@
1009- prefs::kSafeBrowsingEnterpriseRealTimeUrlCheckMode, 1017- prefs::kSafeBrowsingEnterpriseRealTimeUrlCheckMode,
1010- prefs::kSafeBrowsingEnterpriseRealTimeUrlCheckScope, chrome_schema)); 1018- prefs::kSafeBrowsingEnterpriseRealTimeUrlCheckScope, chrome_schema));
1011 1019
1012 handlers->AddHandler(std::make_unique<BrowsingDataLifetimePolicyHandler>( 1020 handlers->AddHandler(
1013 key::kClearBrowsingDataOnExitList, 1021 std::make_unique<ManagedAccountRestrictionsPolicyHandler>(chrome_schema));
1014@@ -1806,17 +1765,6 @@ std::unique_ptr<ConfigurationPolicyHandl 1022@@ -1959,17 +1920,6 @@ std::unique_ptr<ConfigurationPolicyHandl
1015 signin_legacy_policies.push_back(std::make_unique<SimplePolicyHandler>( 1023 signin_legacy_policies.push_back(std::make_unique<SimplePolicyHandler>(
1016 key::kForceBrowserSignin, prefs::kForceBrowserSignin, 1024 key::kForceBrowserSignin, prefs::kForceBrowserSignin,
1017 base::Value::Type::BOOLEAN)); 1025 base::Value::Type::BOOLEAN));
1018- signin_legacy_policies.push_back(std::make_unique<SimplePolicyHandler>( 1026- signin_legacy_policies.push_back(std::make_unique<SimplePolicyHandler>(
1019- key::kSigninAllowed, 1027- key::kSigninAllowed,
1020-#if defined(OS_ANDROID) 1028-#if BUILDFLAG(IS_ANDROID)
1021- // The new kSigninAllowedOnNextStartup pref is only used on Desktop. 1029- // The new kSigninAllowedOnNextStartup pref is only used on Desktop.
1022- // Keep the old kSigninAllowed pref for Android until the policy is 1030- // Keep the old kSigninAllowed pref for Android until the policy is
1023- // fully deprecated in M71 and can be removed. 1031- // fully deprecated in M71 and can be removed.
1024- prefs::kSigninAllowed, 1032- prefs::kSigninAllowed,
1025-#else // defined(OS_ANDROID) 1033-#else // BUILDFLAG(IS_ANDROID)
1026- prefs::kSigninAllowedOnNextStartup, 1034- prefs::kSigninAllowedOnNextStartup,
1027-#endif // defined(OS_ANDROID) 1035-#endif // BUILDFLAG(IS_ANDROID)
1028- base::Value::Type::BOOLEAN)); 1036- base::Value::Type::BOOLEAN));
1029 handlers->AddHandler(std::make_unique<LegacyPoliciesDeprecatingPolicyHandler>( 1037 handlers->AddHandler(std::make_unique<LegacyPoliciesDeprecatingPolicyHandler>(
1030 std::move(signin_legacy_policies), 1038 std::move(signin_legacy_policies),
1031 std::make_unique<BrowserSigninPolicyHandler>(chrome_schema))); 1039 std::make_unique<BrowserSigninPolicyHandler>(chrome_schema)));
1032--- chrome/browser/prefs/browser_prefs.cc.orig 1040--- a/chrome/browser/prefs/browser_prefs.cc
1033+++ chrome/browser/prefs/browser_prefs.cc 1041+++ b/chrome/browser/prefs/browser_prefs.cc
1034@@ -139,7 +139,6 @@ 1042@@ -134,7 +134,6 @@
1035 #include "components/prefs/pref_service.h"
1036 #include "components/privacy_sandbox/privacy_sandbox_prefs.h" 1043 #include "components/privacy_sandbox/privacy_sandbox_prefs.h"
1037 #include "components/proxy_config/pref_proxy_config_tracker_impl.h" 1044 #include "components/proxy_config/pref_proxy_config_tracker_impl.h"
1045 #include "components/safe_browsing/content/common/file_type_policies_prefs.h"
1038-#include "components/safe_browsing/core/common/safe_browsing_prefs.h" 1046-#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
1039 #include "components/search_engines/template_url_prepopulate_data.h" 1047 #include "components/search_engines/template_url_prepopulate_data.h"
1040 #include "components/security_interstitials/content/insecure_form_blocking_page.h" 1048 #include "components/security_interstitials/content/insecure_form_blocking_page.h"
1041 #include "components/security_interstitials/content/stateful_ssl_host_state_delegate.h" 1049 #include "components/security_interstitials/content/stateful_ssl_host_state_delegate.h"
1042@@ -921,7 +920,6 @@ void RegisterLocalState(PrefRegistrySimp 1050@@ -1014,7 +1013,6 @@ void RegisterLocalState(PrefRegistrySimp
1043 ProfileNetworkContextService::RegisterLocalStatePrefs(registry); 1051 ProfileNetworkContextService::RegisterLocalStatePrefs(registry);
1044 profiles::RegisterPrefs(registry); 1052 profiles::RegisterPrefs(registry);
1045 RegisterScreenshotPrefs(registry); 1053 RegisterScreenshotPrefs(registry);
1046- safe_browsing::RegisterLocalStatePrefs(registry); 1054- safe_browsing::RegisterLocalStatePrefs(registry);
1047 secure_origin_allowlist::RegisterPrefs(registry); 1055 secure_origin_allowlist::RegisterPrefs(registry);
1048 #if !defined(OS_ANDROID) 1056 #if !BUILDFLAG(IS_ANDROID)
1049 SerialPolicyAllowedPorts::RegisterPrefs(registry); 1057 SerialPolicyAllowedPorts::RegisterPrefs(registry);
1050@@ -1171,7 +1169,6 @@ void RegisterProfilePrefs(user_prefs::Pr 1058@@ -1275,8 +1273,6 @@ void RegisterProfilePrefs(user_prefs::Pr
1051 PushMessagingAppIdentifier::RegisterProfilePrefs(registry); 1059 PushMessagingAppIdentifier::RegisterProfilePrefs(registry);
1052 QuietNotificationPermissionUiState::RegisterProfilePrefs(registry); 1060 QuietNotificationPermissionUiState::RegisterProfilePrefs(registry);
1053 RegisterBrowserUserPrefs(registry); 1061 RegisterBrowserUserPrefs(registry);
1062- safe_browsing::file_type::RegisterProfilePrefs(registry);
1054- safe_browsing::RegisterProfilePrefs(registry); 1063- safe_browsing::RegisterProfilePrefs(registry);
1055 SearchPrefetchService::RegisterProfilePrefs(registry); 1064 SearchPrefetchService::RegisterProfilePrefs(registry);
1056 blocked_content::SafeBrowsingTriggeredPopupBlocker::RegisterProfilePrefs( 1065 blocked_content::SafeBrowsingTriggeredPopupBlocker::RegisterProfilePrefs(
1057 registry); 1066 registry);
1058--- chrome/browser/prefs/chrome_command_line_pref_store.cc.orig 1067--- a/chrome/browser/prefs/chrome_command_line_pref_store.cc
1059+++ chrome/browser/prefs/chrome_command_line_pref_store.cc 1068+++ b/chrome/browser/prefs/chrome_command_line_pref_store.cc
1060@@ -31,7 +31,6 @@ 1069@@ -25,7 +25,6 @@
1061 #include "components/language/core/browser/pref_names.h" 1070 #include "components/language/core/browser/pref_names.h"
1062 #include "components/proxy_config/proxy_config_dictionary.h" 1071 #include "components/proxy_config/proxy_config_dictionary.h"
1063 #include "components/proxy_config/proxy_config_pref_names.h" 1072 #include "components/proxy_config/proxy_config_pref_names.h"
@@ -1065,18 +1074,18 @@
1065 #include "components/safe_browsing/core/common/safebrowsing_switches.h" 1074 #include "components/safe_browsing/core/common/safebrowsing_switches.h"
1066 #include "components/sync/base/pref_names.h" 1075 #include "components/sync/base/pref_names.h"
1067 #include "content/public/common/content_switches.h" 1076 #include "content/public/common/content_switches.h"
1068@@ -78,8 +77,6 @@ const CommandLinePrefStore::BooleanSwitc 1077@@ -75,8 +74,6 @@ const CommandLinePrefStore::BooleanSwitc
1069 {switches::kAllowCrossOriginAuthPrompt, 1078 {switches::kAllowCrossOriginAuthPrompt,
1070 prefs::kAllowCrossOriginAuthPrompt, true}, 1079 prefs::kAllowCrossOriginAuthPrompt, true},
1071 {switches::kDisablePrintPreview, prefs::kPrintPreviewDisabled, true}, 1080 {switches::kDisablePrintPreview, prefs::kPrintPreviewDisabled, true},
1072- {safe_browsing::switches::kSbEnableEnhancedProtection, 1081- {safe_browsing::switches::kSbEnableEnhancedProtection,
1073- prefs::kSafeBrowsingEnhanced, true}, 1082- prefs::kSafeBrowsingEnhanced, true},
1074 #if BUILDFLAG(IS_CHROMEOS_ASH) 1083 #if BUILDFLAG(IS_CHROMEOS_ASH)
1075 {chromeos::switches::kEnableTouchpadThreeFingerClick, 1084 {ash::switches::kEnableTouchpadThreeFingerClick,
1076 prefs::kEnableTouchpadThreeFingerClick, true}, 1085 prefs::kEnableTouchpadThreeFingerClick, true},
1077--- chrome/browser/prefs/chrome_pref_service_factory.cc.orig 1086--- a/chrome/browser/prefs/chrome_pref_service_factory.cc
1078+++ chrome/browser/prefs/chrome_pref_service_factory.cc 1087+++ b/chrome/browser/prefs/chrome_pref_service_factory.cc
1079@@ -48,10 +48,8 @@ 1088@@ -49,10 +49,8 @@
1080 #include "components/prefs/pref_service.h" 1089 #include "components/prefs/pref_service.h"
1081 #include "components/prefs/pref_store.h" 1090 #include "components/prefs/pref_store.h"
1082 #include "components/prefs/pref_value_store.h" 1091 #include "components/prefs/pref_value_store.h"
@@ -1087,7 +1096,7 @@
1087 #include "components/sync/base/model_type.h" 1096 #include "components/sync/base/model_type.h"
1088 #include "components/sync/base/pref_names.h" 1097 #include "components/sync/base/pref_names.h"
1089 #include "components/sync_preferences/pref_model_associator.h" 1098 #include "components/sync_preferences/pref_model_associator.h"
1090@@ -121,8 +119,6 @@ const prefs::TrackedPreferenceMetadata k 1099@@ -122,8 +120,6 @@ const prefs::TrackedPreferenceMetadata k
1091 {5, extensions::pref_names::kExtensions, EnforcementLevel::NO_ENFORCEMENT, 1100 {5, extensions::pref_names::kExtensions, EnforcementLevel::NO_ENFORCEMENT,
1092 PrefTrackingStrategy::SPLIT, ValueType::IMPERSONAL}, 1101 PrefTrackingStrategy::SPLIT, ValueType::IMPERSONAL},
1093 #endif 1102 #endif
@@ -1095,17 +1104,17 @@
1095- PrefTrackingStrategy::ATOMIC, ValueType::PERSONAL}, 1104- PrefTrackingStrategy::ATOMIC, ValueType::PERSONAL},
1096 {7, prefs::kSearchProviderOverrides, EnforcementLevel::ENFORCE_ON_LOAD, 1105 {7, prefs::kSearchProviderOverrides, EnforcementLevel::ENFORCE_ON_LOAD,
1097 PrefTrackingStrategy::ATOMIC, ValueType::IMPERSONAL}, 1106 PrefTrackingStrategy::ATOMIC, ValueType::IMPERSONAL},
1098 #if !defined(OS_ANDROID) 1107 #if !BUILDFLAG(IS_ANDROID)
1099@@ -146,8 +142,6 @@ const prefs::TrackedPreferenceMetadata k 1108@@ -147,8 +143,6 @@ const prefs::TrackedPreferenceMetadata k
1100 PrefTrackingStrategy::ATOMIC, ValueType::IMPERSONAL}, 1109 PrefTrackingStrategy::ATOMIC, ValueType::IMPERSONAL},
1101 // kSyncRemainingRollbackTries is deprecated and will be removed a few 1110 // kSyncRemainingRollbackTries is deprecated and will be removed a few
1102 // releases after M50. 1111 // releases after M50.
1103- {18, prefs::kSafeBrowsingIncidentsSent, EnforcementLevel::ENFORCE_ON_LOAD, 1112- {18, prefs::kSafeBrowsingIncidentsSent, EnforcementLevel::ENFORCE_ON_LOAD,
1104- PrefTrackingStrategy::ATOMIC, ValueType::IMPERSONAL}, 1113- PrefTrackingStrategy::ATOMIC, ValueType::IMPERSONAL},
1105 #if defined(OS_WIN) 1114 #if BUILDFLAG(IS_WIN)
1106 {19, prefs::kSwReporterPromptVersion, EnforcementLevel::ENFORCE_ON_LOAD, 1115 {19, prefs::kSwReporterPromptVersion, EnforcementLevel::ENFORCE_ON_LOAD,
1107 PrefTrackingStrategy::ATOMIC, ValueType::IMPERSONAL}, 1116 PrefTrackingStrategy::ATOMIC, ValueType::IMPERSONAL},
1108@@ -156,10 +150,6 @@ const prefs::TrackedPreferenceMetadata k 1117@@ -157,10 +151,6 @@ const prefs::TrackedPreferenceMetadata k
1109 {22, prefs::kSwReporterPromptSeed, EnforcementLevel::ENFORCE_ON_LOAD, 1118 {22, prefs::kSwReporterPromptSeed, EnforcementLevel::ENFORCE_ON_LOAD,
1110 PrefTrackingStrategy::ATOMIC, ValueType::IMPERSONAL}, 1119 PrefTrackingStrategy::ATOMIC, ValueType::IMPERSONAL},
1111 #endif 1120 #endif
@@ -1113,11 +1122,11 @@
1113- PrefTrackingStrategy::ATOMIC, ValueType::PERSONAL}, 1122- PrefTrackingStrategy::ATOMIC, ValueType::PERSONAL},
1114- {24, prefs::kGoogleServicesLastAccountId, EnforcementLevel::ENFORCE_ON_LOAD, 1123- {24, prefs::kGoogleServicesLastAccountId, EnforcementLevel::ENFORCE_ON_LOAD,
1115- PrefTrackingStrategy::ATOMIC, ValueType::PERSONAL}, 1124- PrefTrackingStrategy::ATOMIC, ValueType::PERSONAL},
1116 #if defined(OS_WIN) 1125 #if BUILDFLAG(IS_WIN)
1117 {25, prefs::kSettingsResetPromptPromptWave, 1126 {25, prefs::kSettingsResetPromptPromptWave,
1118 EnforcementLevel::ENFORCE_ON_LOAD, PrefTrackingStrategy::ATOMIC, 1127 EnforcementLevel::ENFORCE_ON_LOAD, PrefTrackingStrategy::ATOMIC,
1119--- chrome/browser/prefs/pref_functional_browsertest.cc.orig 1128--- a/chrome/browser/prefs/pref_functional_browsertest.cc
1120+++ chrome/browser/prefs/pref_functional_browsertest.cc 1129+++ b/chrome/browser/prefs/pref_functional_browsertest.cc
1121@@ -24,7 +24,6 @@ 1130@@ -24,7 +24,6 @@
1122 #include "components/content_settings/core/common/content_settings_types.h" 1131 #include "components/content_settings/core/common/content_settings_types.h"
1123 #include "components/content_settings/core/common/pref_names.h" 1132 #include "components/content_settings/core/common/pref_names.h"
@@ -1127,8 +1136,8 @@
1127 #include "content/public/browser/web_contents.h" 1136 #include "content/public/browser/web_contents.h"
1128 #include "content/public/test/browser_test.h" 1137 #include "content/public/test/browser_test.h"
1129@@ -220,9 +219,6 @@ IN_PROC_BROWSER_TEST_F(PrefsFunctionalTe 1138@@ -220,9 +219,6 @@ IN_PROC_BROWSER_TEST_F(PrefsFunctionalTe
1130 prefs->SetInteger(prefs::kNetworkPredictionOptions, 1139 prefetch::SetPreloadPagesState(prefs,
1131 chrome_browser_net::NETWORK_PREDICTION_NEVER); 1140 prefetch::PreloadPagesState::kNoPreloading);
1132 1141
1133- EXPECT_TRUE(prefs->GetBoolean(prefs::kSafeBrowsingEnabled)); 1142- EXPECT_TRUE(prefs->GetBoolean(prefs::kSafeBrowsingEnabled));
1134- prefs->SetBoolean(prefs::kSafeBrowsingEnabled, false); 1143- prefs->SetBoolean(prefs::kSafeBrowsingEnabled, false);
@@ -1138,25 +1147,25 @@
1138 1147
1139@@ -236,7 +232,6 @@ IN_PROC_BROWSER_TEST_F(PrefsFunctionalTe 1148@@ -236,7 +232,6 @@ IN_PROC_BROWSER_TEST_F(PrefsFunctionalTe
1140 1149
1141 EXPECT_EQ(chrome_browser_net::NETWORK_PREDICTION_NEVER, 1150 EXPECT_EQ(prefetch::PreloadPagesState::kNoPreloading,
1142 prefs->GetInteger(prefs::kNetworkPredictionOptions)); 1151 prefetch::GetPreloadPagesState(*prefs));
1143- EXPECT_FALSE(prefs->GetBoolean(prefs::kSafeBrowsingEnabled)); 1152- EXPECT_FALSE(prefs->GetBoolean(prefs::kSafeBrowsingEnabled));
1144 EXPECT_FALSE( 1153 EXPECT_FALSE(
1145 prefs->GetBoolean(embedder_support::kAlternateErrorPagesEnabled)); 1154 prefs->GetBoolean(embedder_support::kAlternateErrorPagesEnabled));
1146 EXPECT_FALSE(prefs->GetBoolean(prefs::kSearchSuggestEnabled)); 1155 EXPECT_FALSE(prefs->GetBoolean(prefs::kSearchSuggestEnabled));
1147--- chrome/browser/profiles/gaia_info_update_service.cc.orig 1156--- a/chrome/browser/profiles/gaia_info_update_service.cc
1148+++ chrome/browser/profiles/gaia_info_update_service.cc 1157+++ b/chrome/browser/profiles/gaia_info_update_service.cc
1149@@ -19,7 +19,6 @@ 1158@@ -20,7 +20,6 @@
1150 #include "chrome/common/pref_names.h"
1151 #include "components/prefs/pref_service.h" 1159 #include "components/prefs/pref_service.h"
1152 #include "components/signin/public/base/avatar_icon_util.h" 1160 #include "components/signin/public/base/avatar_icon_util.h"
1161 #include "components/signin/public/base/consent_level.h"
1153-#include "components/signin/public/base/signin_pref_names.h" 1162-#include "components/signin/public/base/signin_pref_names.h"
1154 #include "components/signin/public/identity_manager/account_info.h" 1163 #include "components/signin/public/identity_manager/account_info.h"
1155 #include "components/signin/public/identity_manager/accounts_in_cookie_jar_info.h" 1164 #include "components/signin/public/identity_manager/accounts_in_cookie_jar_info.h"
1156 #include "components/signin/public/identity_manager/consent_level.h" 1165 #include "content/public/browser/notification_details.h"
1157--- chrome/browser/profiles/gaia_info_update_service_unittest.cc.orig 1166--- a/chrome/browser/profiles/gaia_info_update_service_unittest.cc
1158+++ chrome/browser/profiles/gaia_info_update_service_unittest.cc 1167+++ b/chrome/browser/profiles/gaia_info_update_service_unittest.cc
1159@@ -27,7 +27,6 @@ 1168@@ -28,7 +28,6 @@
1160 #include "chrome/test/base/testing_profile_manager.h" 1169 #include "chrome/test/base/testing_profile_manager.h"
1161 #include "components/prefs/pref_service.h" 1170 #include "components/prefs/pref_service.h"
1162 #include "components/profile_metrics/state.h" 1171 #include "components/profile_metrics/state.h"
@@ -1164,9 +1173,9 @@
1164 #include "components/signin/public/identity_manager/account_info.h" 1173 #include "components/signin/public/identity_manager/account_info.h"
1165 #include "components/sync_preferences/pref_service_syncable.h" 1174 #include "components/sync_preferences/pref_service_syncable.h"
1166 #include "content/public/test/browser_task_environment.h" 1175 #include "content/public/test/browser_task_environment.h"
1167--- chrome/browser/profiles/profile_attributes_entry.cc.orig 1176--- a/chrome/browser/profiles/profile_attributes_entry.cc
1168+++ chrome/browser/profiles/profile_attributes_entry.cc 1177+++ b/chrome/browser/profiles/profile_attributes_entry.cc
1169@@ -29,7 +29,6 @@ 1178@@ -26,7 +26,6 @@
1170 #include "components/prefs/pref_service.h" 1179 #include "components/prefs/pref_service.h"
1171 #include "components/prefs/scoped_user_pref_update.h" 1180 #include "components/prefs/scoped_user_pref_update.h"
1172 #include "components/profile_metrics/state.h" 1181 #include "components/profile_metrics/state.h"
@@ -1174,7 +1183,7 @@
1174 #include "components/signin/public/identity_manager/account_info.h" 1183 #include "components/signin/public/identity_manager/account_info.h"
1175 #include "third_party/abseil-cpp/absl/types/optional.h" 1184 #include "third_party/abseil-cpp/absl/types/optional.h"
1176 #include "ui/base/resource/resource_bundle.h" 1185 #include "ui/base/resource/resource_bundle.h"
1177@@ -490,7 +489,7 @@ bool ProfileAttributesEntry::IsUsingDefa 1186@@ -486,7 +485,7 @@ bool ProfileAttributesEntry::IsUsingDefa
1178 } 1187 }
1179 1188
1180 bool ProfileAttributesEntry::IsSignedInWithCredentialProvider() const { 1189 bool ProfileAttributesEntry::IsSignedInWithCredentialProvider() const {
@@ -1183,7 +1192,7 @@
1183 } 1192 }
1184 1193
1185 size_t ProfileAttributesEntry::GetAvatarIconIndex() const { 1194 size_t ProfileAttributesEntry::GetAvatarIconIndex() const {
1186@@ -672,9 +671,6 @@ void ProfileAttributesEntry::SetLastDown 1195@@ -666,9 +665,6 @@ void ProfileAttributesEntry::SetLastDown
1187 } 1196 }
1188 1197
1189 void ProfileAttributesEntry::SetSignedInWithCredentialProvider(bool value) { 1198 void ProfileAttributesEntry::SetSignedInWithCredentialProvider(bool value) {
@@ -1193,9 +1202,9 @@
1193 } 1202 }
1194 1203
1195 void ProfileAttributesEntry::LockForceSigninProfile(bool is_lock) { 1204 void ProfileAttributesEntry::LockForceSigninProfile(bool is_lock) {
1196--- chrome/browser/profiles/profile_attributes_storage.cc.orig 1205--- a/chrome/browser/profiles/profile_attributes_storage.cc
1197+++ chrome/browser/profiles/profile_attributes_storage.cc 1206+++ b/chrome/browser/profiles/profile_attributes_storage.cc
1198@@ -36,7 +36,6 @@ 1207@@ -38,7 +38,6 @@
1199 #include "components/prefs/scoped_user_pref_update.h" 1208 #include "components/prefs/scoped_user_pref_update.h"
1200 #include "components/profile_metrics/state.h" 1209 #include "components/profile_metrics/state.h"
1201 #include "components/signin/public/base/persistent_repeating_timer.h" 1210 #include "components/signin/public/base/persistent_repeating_timer.h"
@@ -1203,7 +1212,7 @@
1203 #include "content/public/browser/browser_task_traits.h" 1212 #include "content/public/browser/browser_task_traits.h"
1204 #include "content/public/browser/browser_thread.h" 1213 #include "content/public/browser/browser_thread.h"
1205 #include "third_party/icu/source/i18n/unicode/coll.h" 1214 #include "third_party/icu/source/i18n/unicode/coll.h"
1206@@ -374,8 +373,6 @@ void ProfileAttributesStorage::AddProfil 1215@@ -376,8 +375,6 @@ void ProfileAttributesStorage::AddProfil
1207 if (params.account_id.HasAccountIdKey()) 1216 if (params.account_id.HasAccountIdKey())
1208 info.SetStringKey(ProfileAttributesEntry::kAccountIdKey, 1217 info.SetStringKey(ProfileAttributesEntry::kAccountIdKey,
1209 params.account_id.GetAccountIdKey()); 1218 params.account_id.GetAccountIdKey());
@@ -1212,9 +1221,9 @@
1212 attributes->SetKey(key, std::move(info)); 1221 attributes->SetKey(key, std::move(info));
1213 1222
1214 ProfileAttributesEntry* entry = InitEntryWithKey(key, params.is_omitted); 1223 ProfileAttributesEntry* entry = InitEntryWithKey(key, params.is_omitted);
1215--- chrome/browser/profiles/profile_impl.cc.orig 1224--- a/chrome/browser/profiles/profile_impl.cc
1216+++ chrome/browser/profiles/profile_impl.cc 1225+++ b/chrome/browser/profiles/profile_impl.cc
1217@@ -150,7 +150,6 @@ 1226@@ -149,7 +149,6 @@
1218 #include "components/prefs/scoped_user_pref_update.h" 1227 #include "components/prefs/scoped_user_pref_update.h"
1219 #include "components/profile_metrics/browser_profile_type.h" 1228 #include "components/profile_metrics/browser_profile_type.h"
1220 #include "components/security_interstitials/content/stateful_ssl_host_state_delegate.h" 1229 #include "components/security_interstitials/content/stateful_ssl_host_state_delegate.h"
@@ -1222,17 +1231,17 @@
1222 #include "components/signin/public/identity_manager/identity_manager.h" 1231 #include "components/signin/public/identity_manager/identity_manager.h"
1223 #include "components/site_isolation/site_isolation_policy.h" 1232 #include "components/site_isolation/site_isolation_policy.h"
1224 #include "components/spellcheck/spellcheck_buildflags.h" 1233 #include "components/spellcheck/spellcheck_buildflags.h"
1225--- chrome/browser/profiles/profile_manager.cc.orig 1234--- a/chrome/browser/profiles/profile_manager.cc
1226+++ chrome/browser/profiles/profile_manager.cc 1235+++ b/chrome/browser/profiles/profile_manager.cc
1227@@ -94,7 +94,6 @@ 1236@@ -93,7 +93,6 @@
1228 #include "components/search_engines/default_search_manager.h" 1237 #include "components/signin/public/base/consent_level.h"
1229 #include "components/signin/public/base/signin_buildflags.h" 1238 #include "components/signin/public/base/signin_buildflags.h"
1230 #include "components/signin/public/base/signin_metrics.h" 1239 #include "components/signin/public/base/signin_metrics.h"
1231-#include "components/signin/public/base/signin_pref_names.h" 1240-#include "components/signin/public/base/signin_pref_names.h"
1232 #include "components/signin/public/identity_manager/consent_level.h"
1233 #include "components/signin/public/identity_manager/identity_manager.h" 1241 #include "components/signin/public/identity_manager/identity_manager.h"
1234 #include "components/signin/public/identity_manager/primary_account_mutator.h" 1242 #include "components/signin/public/identity_manager/primary_account_mutator.h"
1235@@ -2105,8 +2104,7 @@ void ProfileManager::AddProfileToStorage 1243 #include "components/sync/base/stop_source.h"
1244@@ -2228,8 +2227,7 @@ void ProfileManager::AddProfileToStorage
1236 entry->SetAuthInfo(account_info.gaia, username, 1245 entry->SetAuthInfo(account_info.gaia, username,
1237 is_consented_primary_account); 1246 is_consented_primary_account);
1238 1247
@@ -1240,9 +1249,9 @@
1240- prefs::kSignedInWithCredentialProvider)); 1249- prefs::kSignedInWithCredentialProvider));
1241+ entry->SetSignedInWithCredentialProvider(false); 1250+ entry->SetSignedInWithCredentialProvider(false);
1242 1251
1243 #if !defined(OS_ANDROID) && !BUILDFLAG(IS_CHROMEOS_ASH) 1252 #if !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_CHROMEOS_ASH)
1244 // Sign out if force-sign-in policy is enabled and profile is not signed 1253 // Sign out if force-sign-in policy is enabled and profile is not signed
1245@@ -2161,14 +2159,13 @@ void ProfileManager::AddProfileToStorage 1254@@ -2284,14 +2282,13 @@ void ProfileManager::AddProfileToStorage
1246 1255
1247 init_params.is_ephemeral = IsEphemeral(profile); 1256 init_params.is_ephemeral = IsEphemeral(profile);
1248 init_params.is_signed_in_with_credential_provider = 1257 init_params.is_signed_in_with_credential_provider =
@@ -1258,9 +1267,9 @@
1258 prefs->SetBoolean(bookmarks::prefs::kEditBookmarksEnabled, false); 1267 prefs->SetBoolean(bookmarks::prefs::kEditBookmarksEnabled, false);
1259 prefs->SetBoolean(bookmarks::prefs::kShowBookmarkBar, false); 1268 prefs->SetBoolean(bookmarks::prefs::kShowBookmarkBar, false);
1260 prefs->ClearPref(DefaultSearchManager::kDefaultSearchProviderDataPrefName); 1269 prefs->ClearPref(DefaultSearchManager::kDefaultSearchProviderDataPrefName);
1261--- chrome/browser/profiles/profile_window.cc.orig 1270--- a/chrome/browser/profiles/profile_window.cc
1262+++ chrome/browser/profiles/profile_window.cc 1271+++ b/chrome/browser/profiles/profile_window.cc
1263@@ -40,7 +40,6 @@ 1272@@ -41,7 +41,6 @@
1264 #include "chrome/common/url_constants.h" 1273 #include "chrome/common/url_constants.h"
1265 #include "components/flags_ui/pref_service_flags_storage.h" 1274 #include "components/flags_ui/pref_service_flags_storage.h"
1266 #include "components/prefs/pref_service.h" 1275 #include "components/prefs/pref_service.h"
@@ -1268,8 +1277,8 @@
1268 #include "components/signin/public/identity_manager/account_info.h" 1277 #include "components/signin/public/identity_manager/account_info.h"
1269 #include "components/signin/public/identity_manager/identity_manager.h" 1278 #include "components/signin/public/identity_manager/identity_manager.h"
1270 #include "content/public/browser/browser_thread.h" 1279 #include "content/public/browser/browser_thread.h"
1271--- chrome/browser/profiles/profiles_state.cc.orig 1280--- a/chrome/browser/profiles/profiles_state.cc
1272+++ chrome/browser/profiles/profiles_state.cc 1281+++ b/chrome/browser/profiles/profiles_state.cc
1273@@ -42,7 +42,6 @@ 1282@@ -42,7 +42,6 @@
1274 #include <algorithm> 1283 #include <algorithm>
1275 #include "chrome/browser/profiles/gaia_info_update_service.h" 1284 #include "chrome/browser/profiles/gaia_info_update_service.h"
@@ -1278,24 +1287,24 @@
1278 #endif 1287 #endif
1279 1288
1280 #if BUILDFLAG(IS_CHROMEOS_LACROS) 1289 #if BUILDFLAG(IS_CHROMEOS_LACROS)
1281--- chrome/browser/resources/settings/privacy_page/disable_safebrowsing_dialog.html.orig 1290--- a/chrome/browser/resources/settings/privacy_page/disable_safebrowsing_dialog.html
1282+++ chrome/browser/resources/settings/privacy_page/disable_safebrowsing_dialog.html 1291+++ b/chrome/browser/resources/settings/privacy_page/disable_safebrowsing_dialog.html
1283@@ -1,12 +1,9 @@ 1292@@ -1,12 +1,9 @@
1284 <cr-dialog id="dialog" close-text="$i18n{close}"> 1293 <cr-dialog id="dialog" close-text="$i18n{close}">
1285- <div slot="title">$i18n{safeBrowsingDisableDialog}</div> 1294- <div slot="title">$i18n{safeBrowsingDisableDialog}</div>
1286- <div slot="body">$i18n{safeBrowsingDisableDialogDesc}</div> 1295- <div slot="body">$i18n{safeBrowsingDisableDialogDesc}</div>
1287 <div slot="button-container"> 1296 <div slot="button-container">
1288 <cr-button class="cancel-button" on-click="onDialogCancel_"> 1297 <cr-button id="cancel" class="cancel-button" on-click="onDialogCancel_">
1289 $i18n{cancel} 1298 $i18n{cancel}
1290 </cr-button> 1299 </cr-button>
1291 <cr-button class="action-button" on-click="onDialogConfirm_"> 1300 <cr-button id="confirm" class="action-button" on-click="onDialogConfirm_">
1292- $i18n{safeBrowsingDisableDialogConfirm} 1301- $i18n{safeBrowsingDisableDialogConfirm}
1293 </cr-button> 1302 </cr-button>
1294 </div> 1303 </div>
1295 </cr-dialog> 1304 </cr-dialog>
1296--- chrome/browser/resources/settings/privacy_page/privacy_page.html.orig 1305--- a/chrome/browser/resources/settings/privacy_page/privacy_page.html
1297+++ chrome/browser/resources/settings/privacy_page/privacy_page.html 1306+++ b/chrome/browser/resources/settings/privacy_page/privacy_page.html
1298@@ -535,7 +535,7 @@ 1307@@ -565,7 +565,7 @@
1299 </category-setting-exceptions> 1308 </category-setting-exceptions>
1300 </settings-subpage> 1309 </settings-subpage>
1301 </template> 1310 </template>
@@ -1304,9 +1313,9 @@
1304 no-search> 1313 no-search>
1305 <template is="dom-if" route-path="/content/ads" no-search> 1314 <template is="dom-if" route-path="/content/ads" no-search>
1306 <settings-subpage page-title="$i18n{siteSettingsAds}" 1315 <settings-subpage page-title="$i18n{siteSettingsAds}"
1307--- chrome/browser/resources/settings/privacy_page/privacy_page.ts.orig 1316--- a/chrome/browser/resources/settings/privacy_page/privacy_page.ts
1308+++ chrome/browser/resources/settings/privacy_page/privacy_page.ts 1317+++ b/chrome/browser/resources/settings/privacy_page/privacy_page.ts
1309@@ -90,7 +90,7 @@ export class SettingsPrivacyPageElement 1318@@ -102,7 +102,7 @@ export class SettingsPrivacyPageElement
1310 enableSafeBrowsingSubresourceFilter_: { 1319 enableSafeBrowsingSubresourceFilter_: {
1311 type: Boolean, 1320 type: Boolean,
1312 value() { 1321 value() {
@@ -1315,8 +1324,8 @@
1315 } 1324 }
1316 }, 1325 },
1317 1326
1318--- chrome/browser/resources/settings/privacy_page/security_page.html.orig 1327--- a/chrome/browser/resources/settings/privacy_page/security_page.html
1319+++ chrome/browser/resources/settings/privacy_page/security_page.html 1328+++ b/chrome/browser/resources/settings/privacy_page/security_page.html
1320@@ -53,105 +53,6 @@ 1329@@ -53,105 +53,6 @@
1321 <img id="banner" alt="" 1330 <img id="banner" alt=""
1322 src="chrome://settings/images/safe_browsing_banner.svg"> 1331 src="chrome://settings/images/safe_browsing_banner.svg">
@@ -1423,7 +1432,7 @@
1423 <div class="cr-row first"> 1432 <div class="cr-row first">
1424 <h2>$i18n{advancedPageTitle}</h2> 1433 <h2>$i18n{advancedPageTitle}</h2>
1425 </div> 1434 </div>
1426@@ -202,8 +103,3 @@ 1435@@ -213,8 +114,3 @@
1427 on-click="onAdvancedProtectionProgramLinkClick_" 1436 on-click="onAdvancedProtectionProgramLinkClick_"
1428 external> 1437 external>
1429 </cr-link-row> 1438 </cr-link-row>
@@ -1432,25 +1441,27 @@
1432- on-close="onDisableSafebrowsingDialogClose_"> 1441- on-close="onDisableSafebrowsingDialogClose_">
1433- </settings-disable-safebrowsing-dialog> 1442- </settings-disable-safebrowsing-dialog>
1434- </template> 1443- </template>
1435--- chrome/browser/resources/settings/privacy_page/security_page.ts.orig 1444--- a/chrome/browser/resources/settings/privacy_page/security_page.ts
1436+++ chrome/browser/resources/settings/privacy_page/security_page.ts 1445+++ b/chrome/browser/resources/settings/privacy_page/security_page.ts
1437@@ -182,15 +182,6 @@ export class SettingsSecurityPageElement 1446@@ -200,17 +200,6 @@ export class SettingsSecurityPageElement
1438 1447
1439 ready() { 1448 override ready() {
1440 super.ready(); 1449 super.ready();
1441- 1450-
1442- // Expand initial pref value manually because automatic 1451- CrSettingsPrefs.initialized.then(() => {
1443- // expanding is disabled. 1452- // Expand initial pref value manually because automatic
1444- const prefValue = this.getPref('generated.safe_browsing').value; 1453- // expanding is disabled.
1445- if (prefValue === SafeBrowsingSetting.ENHANCED) { 1454- const prefValue = this.getPref('generated.safe_browsing').value;
1446- this.$.safeBrowsingEnhanced.expanded = true; 1455- if (prefValue === SafeBrowsingSetting.ENHANCED) {
1447- } else if (prefValue === SafeBrowsingSetting.STANDARD) { 1456- this.$.safeBrowsingEnhanced.expanded = true;
1448- this.$.safeBrowsingStandard.expanded = true; 1457- } else if (prefValue === SafeBrowsingSetting.STANDARD) {
1449- } 1458- this.$.safeBrowsingStandard.expanded = true;
1459- }
1460- });
1450 } 1461 }
1451 1462
1452 /** 1463 /**
1453@@ -239,8 +230,7 @@ export class SettingsSecurityPageElement 1464@@ -259,8 +248,7 @@ export class SettingsSecurityPageElement
1454 } 1465 }
1455 1466
1456 private getDisabledExtendedSafeBrowsing_(): boolean { 1467 private getDisabledExtendedSafeBrowsing_(): boolean {
@@ -1460,9 +1471,9 @@
1460 } 1471 }
1461 1472
1462 private getPasswordsLeakToggleSubLabel_(): string { 1473 private getPasswordsLeakToggleSubLabel_(): string {
1463--- chrome/browser/resources/settings/site_settings_page/site_settings_page.ts.orig 1474--- a/chrome/browser/resources/settings/site_settings_page/site_settings_page.ts
1464+++ chrome/browser/resources/settings/site_settings_page/site_settings_page.ts 1475+++ b/chrome/browser/resources/settings/site_settings_page/site_settings_page.ts
1465@@ -47,7 +47,7 @@ function getCategoryItemMap(): Map<Conte 1476@@ -48,7 +48,7 @@ function getCategoryItemMap(): Map<Conte
1466 enabledLabel: 'siteSettingsAdsAllowed', 1477 enabledLabel: 'siteSettingsAdsAllowed',
1467 disabledLabel: 'siteSettingsAdsBlocked', 1478 disabledLabel: 'siteSettingsAdsBlocked',
1468 shouldShow: () => 1479 shouldShow: () =>
@@ -1471,8 +1482,8 @@
1471 }, 1482 },
1472 { 1483 {
1473 route: routes.SITE_SETTINGS_AR, 1484 route: routes.SITE_SETTINGS_AR,
1474--- chrome/browser/safe_browsing/ad_redirect_trigger_browsertest.cc.orig 1485--- a/chrome/browser/safe_browsing/ad_redirect_trigger_browsertest.cc
1475+++ chrome/browser/safe_browsing/ad_redirect_trigger_browsertest.cc 1486+++ b/chrome/browser/safe_browsing/ad_redirect_trigger_browsertest.cc
1476@@ -19,7 +19,6 @@ 1487@@ -19,7 +19,6 @@
1477 #include "components/prefs/testing_pref_service.h" 1488 #include "components/prefs/testing_pref_service.h"
1478 #include "components/safe_browsing/content/browser/triggers/ad_redirect_trigger.h" 1489 #include "components/safe_browsing/content/browser/triggers/ad_redirect_trigger.h"
@@ -1481,16 +1492,16 @@
1481 #include "content/public/browser/render_frame_host.h" 1492 #include "content/public/browser/render_frame_host.h"
1482 #include "content/public/browser/web_contents.h" 1493 #include "content/public/browser/web_contents.h"
1483 #include "content/public/test/browser_test.h" 1494 #include "content/public/test/browser_test.h"
1484--- chrome/browser/safe_browsing/advanced_protection_status_manager.cc.orig 1495--- a/chrome/browser/safe_browsing/advanced_protection_status_manager.cc
1485+++ chrome/browser/safe_browsing/advanced_protection_status_manager.cc 1496+++ b/chrome/browser/safe_browsing/advanced_protection_status_manager.cc
1486@@ -13,7 +13,6 @@ 1497@@ -13,7 +13,6 @@
1487 #include "chrome/browser/signin/identity_manager_factory.h" 1498 #include "chrome/browser/signin/identity_manager_factory.h"
1488 #include "components/prefs/pref_service.h" 1499 #include "components/prefs/pref_service.h"
1489 #include "components/safe_browsing/core/common/features.h" 1500 #include "components/safe_browsing/core/common/features.h"
1490-#include "components/safe_browsing/core/common/safe_browsing_prefs.h" 1501-#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
1502 #include "components/signin/public/base/consent_level.h"
1491 #include "components/signin/public/identity_manager/account_info.h" 1503 #include "components/signin/public/identity_manager/account_info.h"
1492 #include "components/signin/public/identity_manager/accounts_mutator.h" 1504 #include "components/signin/public/identity_manager/accounts_mutator.h"
1493 #include "components/signin/public/identity_manager/consent_level.h"
1494@@ -63,9 +62,7 @@ void AdvancedProtectionStatusManager::Ma 1505@@ -63,9 +62,7 @@ void AdvancedProtectionStatusManager::Ma
1495 1506
1496 is_under_advanced_protection_ = core_info.is_under_advanced_protection; 1507 is_under_advanced_protection_ = core_info.is_under_advanced_protection;
@@ -1524,8 +1535,8 @@
1524 } 1535 }
1525 1536
1526 bool AdvancedProtectionStatusManager::IsUnconsentedPrimaryAccount( 1537 bool AdvancedProtectionStatusManager::IsUnconsentedPrimaryAccount(
1527--- chrome/browser/safe_browsing/advanced_protection_status_manager_unittest.cc.orig 1538--- a/chrome/browser/safe_browsing/advanced_protection_status_manager_unittest.cc
1528+++ chrome/browser/safe_browsing/advanced_protection_status_manager_unittest.cc 1539+++ b/chrome/browser/safe_browsing/advanced_protection_status_manager_unittest.cc
1529@@ -10,7 +10,6 @@ 1540@@ -10,7 +10,6 @@
1530 #include "base/test/task_environment.h" 1541 #include "base/test/task_environment.h"
1531 #include "build/chromeos_buildflags.h" 1542 #include "build/chromeos_buildflags.h"
@@ -1534,18 +1545,18 @@
1534 #include "components/signin/public/identity_manager/account_info.h" 1545 #include "components/signin/public/identity_manager/account_info.h"
1535 #include "components/signin/public/identity_manager/accounts_mutator.h" 1546 #include "components/signin/public/identity_manager/accounts_mutator.h"
1536 #include "components/signin/public/identity_manager/identity_test_environment.h" 1547 #include "components/signin/public/identity_manager/identity_test_environment.h"
1537--- chrome/browser/safe_browsing/android/services_delegate_android.h.orig 1548--- a/chrome/browser/safe_browsing/android/services_delegate_android.h
1538+++ chrome/browser/safe_browsing/android/services_delegate_android.h 1549+++ b/chrome/browser/safe_browsing/android/services_delegate_android.h
1539@@ -7,7 +7,6 @@ 1550@@ -6,7 +6,6 @@
1551 #define CHROME_BROWSER_SAFE_BROWSING_ANDROID_SERVICES_DELEGATE_ANDROID_H_
1540 1552
1541 #include "base/macros.h"
1542 #include "chrome/browser/safe_browsing/services_delegate.h" 1553 #include "chrome/browser/safe_browsing/services_delegate.h"
1543-#include "components/safe_browsing/core/common/safe_browsing_prefs.h" 1554-#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
1544 1555
1545 namespace safe_browsing { 1556 namespace safe_browsing {
1546 1557
1547--- chrome/browser/safe_browsing/certificate_reporting_service.cc.orig 1558--- a/chrome/browser/safe_browsing/certificate_reporting_service.cc
1548+++ chrome/browser/safe_browsing/certificate_reporting_service.cc 1559+++ b/chrome/browser/safe_browsing/certificate_reporting_service.cc
1549@@ -14,7 +14,6 @@ 1560@@ -14,7 +14,6 @@
1550 #include "chrome/browser/profiles/profile.h" 1561 #include "chrome/browser/profiles/profile.h"
1551 #include "chrome/browser/safe_browsing/safe_browsing_service.h" 1562 #include "chrome/browser/safe_browsing/safe_browsing_service.h"
@@ -1554,9 +1565,9 @@
1554 #include "components/security_interstitials/content/certificate_error_report.h" 1565 #include "components/security_interstitials/content/certificate_error_report.h"
1555 #include "content/public/browser/browser_thread.h" 1566 #include "content/public/browser/browser_thread.h"
1556 #include "services/network/public/cpp/shared_url_loader_factory.h" 1567 #include "services/network/public/cpp/shared_url_loader_factory.h"
1557--- chrome/browser/safe_browsing/certificate_reporting_service_browsertest.cc.orig 1568--- a/chrome/browser/safe_browsing/certificate_reporting_service_browsertest.cc
1558+++ chrome/browser/safe_browsing/certificate_reporting_service_browsertest.cc 1569+++ b/chrome/browser/safe_browsing/certificate_reporting_service_browsertest.cc
1559@@ -27,7 +27,6 @@ 1570@@ -25,7 +25,6 @@
1560 #include "chrome/test/base/in_process_browser_test.h" 1571 #include "chrome/test/base/in_process_browser_test.h"
1561 #include "chrome/test/base/ui_test_utils.h" 1572 #include "chrome/test/base/ui_test_utils.h"
1562 #include "components/prefs/pref_service.h" 1573 #include "components/prefs/pref_service.h"
@@ -1564,8 +1575,8 @@
1564 #include "components/security_interstitials/content/cert_report_helper.h" 1575 #include "components/security_interstitials/content/cert_report_helper.h"
1565 #include "components/security_interstitials/content/certificate_error_report.h" 1576 #include "components/security_interstitials/content/certificate_error_report.h"
1566 #include "components/variations/variations_params_manager.h" 1577 #include "components/variations/variations_params_manager.h"
1567--- chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_controller_impl_win.cc.orig 1578--- a/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_controller_impl_win.cc
1568+++ chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_controller_impl_win.cc 1579+++ b/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_controller_impl_win.cc
1569@@ -43,7 +43,6 @@ 1580@@ -43,7 +43,6 @@
1570 #include "components/component_updater/component_updater_service.h" 1581 #include "components/component_updater/component_updater_service.h"
1571 #include "components/component_updater/pref_names.h" 1582 #include "components/component_updater/pref_names.h"
@@ -1574,9 +1585,9 @@
1574 #include "content/public/browser/browser_task_traits.h" 1585 #include "content/public/browser/browser_task_traits.h"
1575 #include "content/public/browser/browser_thread.h" 1586 #include "content/public/browser/browser_thread.h"
1576 #include "net/http/http_status_code.h" 1587 #include "net/http/http_status_code.h"
1577--- chrome/browser/safe_browsing/chrome_cleaner/reporter_runner_browsertest_win.cc.orig 1588--- a/chrome/browser/safe_browsing/chrome_cleaner/reporter_runner_browsertest_win.cc
1578+++ chrome/browser/safe_browsing/chrome_cleaner/reporter_runner_browsertest_win.cc 1589+++ b/chrome/browser/safe_browsing/chrome_cleaner/reporter_runner_browsertest_win.cc
1579@@ -44,7 +44,6 @@ 1590@@ -43,7 +43,6 @@
1580 #include "components/policy/core/common/mock_configuration_policy_provider.h" 1591 #include "components/policy/core/common/mock_configuration_policy_provider.h"
1581 #include "components/policy/policy_constants.h" 1592 #include "components/policy/policy_constants.h"
1582 #include "components/prefs/pref_service.h" 1593 #include "components/prefs/pref_service.h"
@@ -1584,8 +1595,8 @@
1584 #include "content/public/test/browser_test.h" 1595 #include "content/public/test/browser_test.h"
1585 #include "testing/gmock/include/gmock/gmock.h" 1596 #include "testing/gmock/include/gmock/gmock.h"
1586 #include "testing/gtest/include/gtest/gtest.h" 1597 #include "testing/gtest/include/gtest/gtest.h"
1587--- chrome/browser/safe_browsing/chrome_cleaner/srt_client_info_win.cc.orig 1598--- a/chrome/browser/safe_browsing/chrome_cleaner/srt_client_info_win.cc
1588+++ chrome/browser/safe_browsing/chrome_cleaner/srt_client_info_win.cc 1599+++ b/chrome/browser/safe_browsing/chrome_cleaner/srt_client_info_win.cc
1589@@ -12,7 +12,6 @@ 1600@@ -12,7 +12,6 @@
1590 #include "chrome/browser/profiles/profile.h" 1601 #include "chrome/browser/profiles/profile.h"
1591 #include "chrome/browser/profiles/profile_manager.h" 1602 #include "chrome/browser/profiles/profile_manager.h"
@@ -1594,9 +1605,9 @@
1594 #include "components/version_info/version_info.h" 1605 #include "components/version_info/version_info.h"
1595 1606
1596 namespace safe_browsing { 1607 namespace safe_browsing {
1597--- chrome/browser/safe_browsing/chrome_password_protection_service.cc.orig 1608--- a/chrome/browser/safe_browsing/chrome_password_protection_service.cc
1598+++ chrome/browser/safe_browsing/chrome_password_protection_service.cc 1609+++ b/chrome/browser/safe_browsing/chrome_password_protection_service.cc
1599@@ -63,7 +63,6 @@ 1610@@ -65,7 +65,6 @@
1600 #include "components/safe_browsing/core/browser/verdict_cache_manager.h" 1611 #include "components/safe_browsing/core/browser/verdict_cache_manager.h"
1601 #include "components/safe_browsing/core/common/features.h" 1612 #include "components/safe_browsing/core/common/features.h"
1602 #include "components/safe_browsing/core/common/proto/csd.pb.h" 1613 #include "components/safe_browsing/core/common/proto/csd.pb.h"
@@ -1604,7 +1615,7 @@
1604 #include "components/safe_browsing/core/common/safebrowsing_constants.h" 1615 #include "components/safe_browsing/core/common/safebrowsing_constants.h"
1605 #include "components/safe_browsing/core/common/utils.h" 1616 #include "components/safe_browsing/core/common/utils.h"
1606 #include "components/security_interstitials/content/unsafe_resource_util.h" 1617 #include "components/security_interstitials/content/unsafe_resource_util.h"
1607@@ -1220,14 +1219,6 @@ bool ChromePasswordProtectionService::Ha 1618@@ -1212,14 +1211,6 @@ bool ChromePasswordProtectionService::Ha
1608 } 1619 }
1609 1620
1610 void ChromePasswordProtectionService::OnWarningTriggerChanged() { 1621 void ChromePasswordProtectionService::OnWarningTriggerChanged() {
@@ -1619,7 +1630,7 @@
1619 // Clears captured enterprise password hashes or GSuite sync password hashes. 1630 // Clears captured enterprise password hashes or GSuite sync password hashes.
1620 password_manager::PasswordReuseManager* reuse_manager = 1631 password_manager::PasswordReuseManager* reuse_manager =
1621 GetPasswordReuseManager(); 1632 GetPasswordReuseManager();
1622@@ -1385,7 +1376,7 @@ PrefService* ChromePasswordProtectionSer 1633@@ -1378,7 +1369,7 @@ PrefService* ChromePasswordProtectionSer
1623 } 1634 }
1624 1635
1625 bool ChromePasswordProtectionService::IsSafeBrowsingEnabled() { 1636 bool ChromePasswordProtectionService::IsSafeBrowsingEnabled() {
@@ -1628,7 +1639,7 @@
1628 } 1639 }
1629 1640
1630 bool ChromePasswordProtectionService::IsExtendedReporting() { 1641 bool ChromePasswordProtectionService::IsExtendedReporting() {
1631@@ -1405,44 +1396,7 @@ bool ChromePasswordProtectionService::Is 1642@@ -1398,44 +1389,7 @@ bool ChromePasswordProtectionService::Is
1632 bool ChromePasswordProtectionService::IsPingingEnabled( 1643 bool ChromePasswordProtectionService::IsPingingEnabled(
1633 LoginReputationClientRequest::TriggerType trigger_type, 1644 LoginReputationClientRequest::TriggerType trigger_type,
1634 ReusedPasswordAccountType password_type) { 1645 ReusedPasswordAccountType password_type) {
@@ -1656,7 +1667,7 @@
1656-// Only saved password and GAIA password reuse warnings are shown to users on 1667-// Only saved password and GAIA password reuse warnings are shown to users on
1657-// Android, so other types of password reuse events should be gated by Safe 1668-// Android, so other types of password reuse events should be gated by Safe
1658-// Browsing extended reporting. 1669-// Browsing extended reporting.
1659-#if defined(OS_ANDROID) 1670-#if BUILDFLAG(IS_ANDROID)
1660- if (password_type.account_type() == 1671- if (password_type.account_type() ==
1661- ReusedPasswordAccountType::SAVED_PASSWORD || 1672- ReusedPasswordAccountType::SAVED_PASSWORD ||
1662- IsSyncingGMAILPasswordWithSignedInProtectionEnabled(password_type)) { 1673- IsSyncingGMAILPasswordWithSignedInProtectionEnabled(password_type)) {
@@ -1674,8 +1685,8 @@
1674 } 1685 }
1675 1686
1676 RequestOutcome ChromePasswordProtectionService::GetPingNotSentReason( 1687 RequestOutcome ChromePasswordProtectionService::GetPingNotSentReason(
1677@@ -1661,22 +1615,6 @@ MaybeCreateNavigationThrottle(content::N 1688@@ -1664,22 +1618,6 @@ MaybeCreateCommitDeferringCondition(
1678 : nullptr; 1689 : nullptr;
1679 } 1690 }
1680 1691
1681-PasswordProtectionTrigger 1692-PasswordProtectionTrigger
@@ -1697,9 +1708,9 @@
1697 bool ChromePasswordProtectionService::IsURLAllowlistedForPasswordEntry( 1708 bool ChromePasswordProtectionService::IsURLAllowlistedForPasswordEntry(
1698 const GURL& url) const { 1709 const GURL& url) const {
1699 if (!profile_) 1710 if (!profile_)
1700--- chrome/browser/safe_browsing/chrome_password_protection_service.h.orig 1711--- a/chrome/browser/safe_browsing/chrome_password_protection_service.h
1701+++ chrome/browser/safe_browsing/chrome_password_protection_service.h 1712+++ b/chrome/browser/safe_browsing/chrome_password_protection_service.h
1702@@ -211,13 +211,6 @@ class ChromePasswordProtectionService : 1713@@ -215,13 +215,6 @@ class ChromePasswordProtectionService :
1703 bool UserClickedThroughSBInterstitial( 1714 bool UserClickedThroughSBInterstitial(
1704 PasswordProtectionRequest* request) override; 1715 PasswordProtectionRequest* request) override;
1705 1716
@@ -1713,9 +1724,9 @@
1713 // If |url| matches Safe Browsing allowlist domains, password protection 1724 // If |url| matches Safe Browsing allowlist domains, password protection
1714 // change password URL, or password protection login URLs in the enterprise 1725 // change password URL, or password protection login URLs in the enterprise
1715 // policy. 1726 // policy.
1716--- chrome/browser/safe_browsing/chrome_password_protection_service_browsertest.cc.orig 1727--- a/chrome/browser/safe_browsing/chrome_password_protection_service_browsertest.cc
1717+++ chrome/browser/safe_browsing/chrome_password_protection_service_browsertest.cc 1728+++ b/chrome/browser/safe_browsing/chrome_password_protection_service_browsertest.cc
1718@@ -38,7 +38,6 @@ 1729@@ -39,7 +39,6 @@
1719 #include "components/safe_browsing/content/browser/password_protection/password_protection_test_util.h" 1730 #include "components/safe_browsing/content/browser/password_protection/password_protection_test_util.h"
1720 #include "components/safe_browsing/core/browser/password_protection/metrics_util.h" 1731 #include "components/safe_browsing/core/browser/password_protection/metrics_util.h"
1721 #include "components/safe_browsing/core/common/features.h" 1732 #include "components/safe_browsing/core/common/features.h"
@@ -1723,9 +1734,9 @@
1723 #include "components/security_state/core/security_state.h" 1734 #include "components/security_state/core/security_state.h"
1724 #include "components/signin/public/identity_manager/account_info.h" 1735 #include "components/signin/public/identity_manager/account_info.h"
1725 #include "components/signin/public/identity_manager/identity_test_environment.h" 1736 #include "components/signin/public/identity_manager/identity_test_environment.h"
1726--- chrome/browser/safe_browsing/chrome_password_protection_service_sync_browsertest.cc.orig 1737--- a/chrome/browser/safe_browsing/chrome_password_protection_service_sync_browsertest.cc
1727+++ chrome/browser/safe_browsing/chrome_password_protection_service_sync_browsertest.cc 1738+++ b/chrome/browser/safe_browsing/chrome_password_protection_service_sync_browsertest.cc
1728@@ -28,9 +28,7 @@ 1739@@ -29,9 +29,7 @@
1729 #include "components/prefs/pref_service.h" 1740 #include "components/prefs/pref_service.h"
1730 #include "components/prefs/scoped_user_pref_update.h" 1741 #include "components/prefs/scoped_user_pref_update.h"
1731 #include "components/safe_browsing/content/browser/password_protection/password_protection_request_content.h" 1742 #include "components/safe_browsing/content/browser/password_protection/password_protection_request_content.h"
@@ -1735,9 +1746,9 @@
1735 #include "components/signin/public/identity_manager/identity_manager.h" 1746 #include "components/signin/public/identity_manager/identity_manager.h"
1736 #include "components/signin/public/identity_manager/identity_test_utils.h" 1747 #include "components/signin/public/identity_manager/identity_test_utils.h"
1737 #include "components/sync/driver/sync_service.h" 1748 #include "components/sync/driver/sync_service.h"
1738--- chrome/browser/safe_browsing/cloud_content_scanning/binary_upload_service.cc.orig 1749--- a/chrome/browser/safe_browsing/cloud_content_scanning/binary_upload_service.cc
1739+++ chrome/browser/safe_browsing/cloud_content_scanning/binary_upload_service.cc 1750+++ b/chrome/browser/safe_browsing/cloud_content_scanning/binary_upload_service.cc
1740@@ -34,7 +34,6 @@ 1751@@ -36,7 +36,6 @@
1741 #include "components/prefs/pref_service.h" 1752 #include "components/prefs/pref_service.h"
1742 #include "components/safe_browsing/content/browser/web_ui/safe_browsing_ui.h" 1753 #include "components/safe_browsing/content/browser/web_ui/safe_browsing_ui.h"
1743 #include "components/safe_browsing/core/common/features.h" 1754 #include "components/safe_browsing/core/common/features.h"
@@ -1745,9 +1756,9 @@
1745 1756
1746 #include "content/public/browser/browser_task_traits.h" 1757 #include "content/public/browser/browser_task_traits.h"
1747 #include "content/public/browser/browser_thread.h" 1758 #include "content/public/browser/browser_thread.h"
1748--- chrome/browser/safe_browsing/download_protection/check_client_download_request.cc.orig 1759--- a/chrome/browser/safe_browsing/download_protection/check_client_download_request.cc
1749+++ chrome/browser/safe_browsing/download_protection/check_client_download_request.cc 1760+++ b/chrome/browser/safe_browsing/download_protection/check_client_download_request.cc
1750@@ -38,7 +38,6 @@ 1761@@ -37,7 +37,6 @@
1751 #include "components/safe_browsing/content/common/file_type_policies.h" 1762 #include "components/safe_browsing/content/common/file_type_policies.h"
1752 #include "components/safe_browsing/core/common/features.h" 1763 #include "components/safe_browsing/core/common/features.h"
1753 #include "components/safe_browsing/core/common/proto/csd.pb.h" 1764 #include "components/safe_browsing/core/common/proto/csd.pb.h"
@@ -1755,8 +1766,8 @@
1755 #include "components/safe_browsing/core/common/utils.h" 1766 #include "components/safe_browsing/core/common/utils.h"
1756 #include "components/url_matcher/url_matcher.h" 1767 #include "components/url_matcher/url_matcher.h"
1757 #include "content/public/browser/browser_context.h" 1768 #include "content/public/browser/browser_context.h"
1758--- chrome/browser/safe_browsing/download_protection/check_client_download_request_base.cc.orig 1769--- a/chrome/browser/safe_browsing/download_protection/check_client_download_request_base.cc
1759+++ chrome/browser/safe_browsing/download_protection/check_client_download_request_base.cc 1770+++ b/chrome/browser/safe_browsing/download_protection/check_client_download_request_base.cc
1760@@ -24,7 +24,6 @@ 1771@@ -24,7 +24,6 @@
1761 #include "components/safe_browsing/content/browser/web_ui/safe_browsing_ui.h" 1772 #include "components/safe_browsing/content/browser/web_ui/safe_browsing_ui.h"
1762 #include "components/safe_browsing/content/common/file_type_policies.h" 1773 #include "components/safe_browsing/content/common/file_type_policies.h"
@@ -1765,9 +1776,9 @@
1765 #include "components/safe_browsing/core/common/utils.h" 1776 #include "components/safe_browsing/core/common/utils.h"
1766 #include "content/public/browser/browser_context.h" 1777 #include "content/public/browser/browser_context.h"
1767 #include "content/public/browser/browser_task_traits.h" 1778 #include "content/public/browser/browser_task_traits.h"
1768--- chrome/browser/safe_browsing/download_protection/download_protection_service_unittest.cc.orig 1779--- a/chrome/browser/safe_browsing/download_protection/download_protection_service_unittest.cc
1769+++ chrome/browser/safe_browsing/download_protection/download_protection_service_unittest.cc 1780+++ b/chrome/browser/safe_browsing/download_protection/download_protection_service_unittest.cc
1770@@ -93,7 +93,6 @@ 1781@@ -95,7 +95,6 @@
1771 #include "components/safe_browsing/core/browser/db/v4_protocol_manager_util.h" 1782 #include "components/safe_browsing/core/browser/db/v4_protocol_manager_util.h"
1772 #include "components/safe_browsing/core/common/features.h" 1783 #include "components/safe_browsing/core/common/features.h"
1773 #include "components/safe_browsing/core/common/proto/csd.pb.h" 1784 #include "components/safe_browsing/core/common/proto/csd.pb.h"
@@ -1775,8 +1786,8 @@
1775 #include "components/safe_browsing/core/common/safebrowsing_switches.h" 1786 #include "components/safe_browsing/core/common/safebrowsing_switches.h"
1776 #include "components/signin/public/identity_manager/identity_test_environment.h" 1787 #include "components/signin/public/identity_manager/identity_test_environment.h"
1777 #include "content/public/browser/browser_task_traits.h" 1788 #include "content/public/browser/browser_task_traits.h"
1778--- chrome/browser/safe_browsing/generated_safe_browsing_pref.cc.orig 1789--- a/chrome/browser/safe_browsing/generated_safe_browsing_pref.cc
1779+++ chrome/browser/safe_browsing/generated_safe_browsing_pref.cc 1790+++ b/chrome/browser/safe_browsing/generated_safe_browsing_pref.cc
1780@@ -7,7 +7,6 @@ 1791@@ -7,7 +7,6 @@
1781 #include "chrome/browser/profiles/profile.h" 1792 #include "chrome/browser/profiles/profile.h"
1782 #include "chrome/common/extensions/api/settings_private.h" 1793 #include "chrome/common/extensions/api/settings_private.h"
@@ -1807,7 +1818,7 @@
1807 } 1818 }
1808 1819
1809 extensions::settings_private::SetPrefResult GeneratedSafeBrowsingPref::SetPref( 1820 extensions::settings_private::SetPrefResult GeneratedSafeBrowsingPref::SetPref(
1810@@ -48,31 +32,14 @@ extensions::settings_private::SetPrefRes 1821@@ -48,37 +32,14 @@ extensions::settings_private::SetPrefRes
1811 return extensions::settings_private::SetPrefResult::PREF_TYPE_MISMATCH; 1822 return extensions::settings_private::SetPrefResult::PREF_TYPE_MISMATCH;
1812 1823
1813 // If SBER is forcefully disabled, Enhanced cannot be selected by the user. 1824 // If SBER is forcefully disabled, Enhanced cannot be selected by the user.
@@ -1838,10 +1849,16 @@
1838- profile_->GetPrefs()->SetBoolean(prefs::kSafeBrowsingEnhanced, 1849- profile_->GetPrefs()->SetBoolean(prefs::kSafeBrowsingEnhanced,
1839- selection == SafeBrowsingSetting::ENHANCED); 1850- selection == SafeBrowsingSetting::ENHANCED);
1840- 1851-
1852- // Set ESB not set in sync with Account ESB through TailoredSecurity.
1853- if (selection == SafeBrowsingSetting::ENHANCED) {
1854- profile_->GetPrefs()->SetBoolean(
1855- prefs::kEnhancedProtectionEnabledViaTailoredSecurity, false);
1856- }
1857-
1841 return extensions::settings_private::SetPrefResult::SUCCESS; 1858 return extensions::settings_private::SetPrefResult::SUCCESS;
1842 } 1859 }
1843 1860
1844@@ -83,10 +50,8 @@ GeneratedSafeBrowsingPref::GetPrefObject 1861@@ -89,10 +50,8 @@ GeneratedSafeBrowsingPref::GetPrefObject
1845 pref_object->key = kGeneratedSafeBrowsingPref; 1862 pref_object->key = kGeneratedSafeBrowsingPref;
1846 pref_object->type = extensions::api::settings_private::PREF_TYPE_NUMBER; 1863 pref_object->type = extensions::api::settings_private::PREF_TYPE_NUMBER;
1847 1864
@@ -1854,7 +1871,7 @@
1854 1871
1855 if (safe_browsing_enhanced_enabled && safe_browsing_enabled) { 1872 if (safe_browsing_enhanced_enabled && safe_browsing_enabled) {
1856 pref_object->value = std::make_unique<base::Value>( 1873 pref_object->value = std::make_unique<base::Value>(
1857@@ -116,29 +81,18 @@ void GeneratedSafeBrowsingPref::ApplySaf 1874@@ -122,29 +81,18 @@ void GeneratedSafeBrowsingPref::ApplySaf
1858 // three different preferences. It is possible that these may be in 1875 // three different preferences. It is possible that these may be in
1859 // temporarily conflicting managed states. The enabled preference is always 1876 // temporarily conflicting managed states. The enabled preference is always
1860 // taken as the canonical source of management. 1877 // taken as the canonical source of management.
@@ -1890,7 +1907,7 @@
1890 1907
1891 if (!enabled_enforced && !enabled_recommended && !reporting_enforced) { 1908 if (!enabled_enforced && !enabled_recommended && !reporting_enforced) {
1892 // No relevant policies are applied. 1909 // No relevant policies are applied.
1893@@ -148,8 +102,6 @@ void GeneratedSafeBrowsingPref::ApplySaf 1910@@ -154,8 +102,6 @@ void GeneratedSafeBrowsingPref::ApplySaf
1894 if (enabled_enforced) { 1911 if (enabled_enforced) {
1895 // Preference is fully controlled. 1912 // Preference is fully controlled.
1896 pref_object->enforcement = settings_api::Enforcement::ENFORCEMENT_ENFORCED; 1913 pref_object->enforcement = settings_api::Enforcement::ENFORCEMENT_ENFORCED;
@@ -1899,7 +1916,7 @@
1899 return; 1916 return;
1900 } 1917 }
1901 1918
1902@@ -174,8 +126,6 @@ void GeneratedSafeBrowsingPref::ApplySaf 1919@@ -180,8 +126,6 @@ void GeneratedSafeBrowsingPref::ApplySaf
1903 // Reporting has been forcefully disabled by policy. Enhanced protection is 1920 // Reporting has been forcefully disabled by policy. Enhanced protection is
1904 // thus also implicitly disabled by the same policy. 1921 // thus also implicitly disabled by the same policy.
1905 pref_object->enforcement = settings_api::Enforcement::ENFORCEMENT_ENFORCED; 1922 pref_object->enforcement = settings_api::Enforcement::ENFORCEMENT_ENFORCED;
@@ -1908,9 +1925,9 @@
1908 1925
1909 pref_object->user_selectable_values = 1926 pref_object->user_selectable_values =
1910 std::make_unique<std::vector<std::unique_ptr<base::Value>>>(); 1927 std::make_unique<std::vector<std::unique_ptr<base::Value>>>();
1911--- chrome/browser/safe_browsing/incident_reporting/extension_data_collection_unittest.cc.orig 1928--- a/chrome/browser/safe_browsing/incident_reporting/extension_data_collection_unittest.cc
1912+++ chrome/browser/safe_browsing/incident_reporting/extension_data_collection_unittest.cc 1929+++ b/chrome/browser/safe_browsing/incident_reporting/extension_data_collection_unittest.cc
1913@@ -22,7 +22,6 @@ 1930@@ -23,7 +23,6 @@
1914 #include "chrome/test/base/testing_profile.h" 1931 #include "chrome/test/base/testing_profile.h"
1915 #include "chrome/test/base/testing_profile_manager.h" 1932 #include "chrome/test/base/testing_profile_manager.h"
1916 #include "components/safe_browsing/core/common/proto/csd.pb.h" 1933 #include "components/safe_browsing/core/common/proto/csd.pb.h"
@@ -1918,9 +1935,9 @@
1918 #include "components/sync_preferences/testing_pref_service_syncable.h" 1935 #include "components/sync_preferences/testing_pref_service_syncable.h"
1919 #include "content/public/test/browser_task_environment.h" 1936 #include "content/public/test/browser_task_environment.h"
1920 #include "content/public/test/test_utils.h" 1937 #include "content/public/test/test_utils.h"
1921--- chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc.orig 1938--- a/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc
1922+++ chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc 1939+++ b/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc
1923@@ -42,7 +42,6 @@ 1940@@ -40,7 +40,6 @@
1924 #include "components/prefs/pref_service.h" 1941 #include "components/prefs/pref_service.h"
1925 #include "components/safe_browsing/core/common/features.h" 1942 #include "components/safe_browsing/core/common/features.h"
1926 #include "components/safe_browsing/core/common/proto/csd.pb.h" 1943 #include "components/safe_browsing/core/common/proto/csd.pb.h"
@@ -1928,8 +1945,8 @@
1928 #include "content/public/browser/browser_thread.h" 1945 #include "content/public/browser/browser_thread.h"
1929 #include "content/public/browser/download_item_utils.h" 1946 #include "content/public/browser/download_item_utils.h"
1930 #include "services/network/public/cpp/shared_url_loader_factory.h" 1947 #include "services/network/public/cpp/shared_url_loader_factory.h"
1931--- chrome/browser/safe_browsing/incident_reporting/incident_reporting_service_unittest.cc.orig 1948--- a/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service_unittest.cc
1932+++ chrome/browser/safe_browsing/incident_reporting/incident_reporting_service_unittest.cc 1949+++ b/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service_unittest.cc
1933@@ -36,7 +36,6 @@ 1950@@ -36,7 +36,6 @@
1934 #include "chrome/test/base/testing_profile.h" 1951 #include "chrome/test/base/testing_profile.h"
1935 #include "chrome/test/base/testing_profile_manager.h" 1952 #include "chrome/test/base/testing_profile_manager.h"
@@ -1938,8 +1955,8 @@
1938 #include "components/sync_preferences/testing_pref_service_syncable.h" 1955 #include "components/sync_preferences/testing_pref_service_syncable.h"
1939 #include "content/public/test/browser_task_environment.h" 1956 #include "content/public/test/browser_task_environment.h"
1940 #include "extensions/browser/quota_service.h" 1957 #include "extensions/browser/quota_service.h"
1941--- chrome/browser/safe_browsing/incident_reporting/last_download_finder_unittest.cc.orig 1958--- a/chrome/browser/safe_browsing/incident_reporting/last_download_finder_unittest.cc
1942+++ chrome/browser/safe_browsing/incident_reporting/last_download_finder_unittest.cc 1959+++ b/chrome/browser/safe_browsing/incident_reporting/last_download_finder_unittest.cc
1943@@ -43,7 +43,6 @@ 1960@@ -43,7 +43,6 @@
1944 #include "components/history/core/browser/history_database_params.h" 1961 #include "components/history/core/browser/history_database_params.h"
1945 #include "components/history/core/browser/history_service.h" 1962 #include "components/history/core/browser/history_service.h"
@@ -1948,8 +1965,8 @@
1948 #include "components/sync_preferences/testing_pref_service_syncable.h" 1965 #include "components/sync_preferences/testing_pref_service_syncable.h"
1949 #include "content/public/test/browser_task_environment.h" 1966 #include "content/public/test/browser_task_environment.h"
1950 #include "content/public/test/test_utils.h" 1967 #include "content/public/test/test_utils.h"
1951--- chrome/browser/safe_browsing/incident_reporting/state_store.cc.orig 1968--- a/chrome/browser/safe_browsing/incident_reporting/state_store.cc
1952+++ chrome/browser/safe_browsing/incident_reporting/state_store.cc 1969+++ b/chrome/browser/safe_browsing/incident_reporting/state_store.cc
1953@@ -14,7 +14,6 @@ 1970@@ -14,7 +14,6 @@
1954 #include "chrome/browser/safe_browsing/incident_reporting/incident.h" 1971 #include "chrome/browser/safe_browsing/incident_reporting/incident.h"
1955 #include "chrome/browser/safe_browsing/incident_reporting/platform_state_store.h" 1972 #include "chrome/browser/safe_browsing/incident_reporting/platform_state_store.h"
@@ -1958,8 +1975,8 @@
1958 1975
1959 namespace safe_browsing { 1976 namespace safe_browsing {
1960 1977
1961--- chrome/browser/safe_browsing/incident_reporting/state_store_unittest.cc.orig 1978--- a/chrome/browser/safe_browsing/incident_reporting/state_store_unittest.cc
1962+++ chrome/browser/safe_browsing/incident_reporting/state_store_unittest.cc 1979+++ b/chrome/browser/safe_browsing/incident_reporting/state_store_unittest.cc
1963@@ -21,7 +21,6 @@ 1980@@ -21,7 +21,6 @@
1964 #include "chrome/test/base/testing_profile.h" 1981 #include "chrome/test/base/testing_profile.h"
1965 #include "chrome/test/base/testing_profile_manager.h" 1982 #include "chrome/test/base/testing_profile_manager.h"
@@ -1968,8 +1985,8 @@
1968 #include "components/sync_preferences/pref_service_syncable.h" 1985 #include "components/sync_preferences/pref_service_syncable.h"
1969 #include "components/sync_preferences/pref_service_syncable_factory.h" 1986 #include "components/sync_preferences/pref_service_syncable_factory.h"
1970 #include "content/public/test/browser_task_environment.h" 1987 #include "content/public/test/browser_task_environment.h"
1971--- chrome/browser/safe_browsing/metrics/safe_browsing_metrics_provider.cc.orig 1988--- a/chrome/browser/safe_browsing/metrics/safe_browsing_metrics_provider.cc
1972+++ chrome/browser/safe_browsing/metrics/safe_browsing_metrics_provider.cc 1989+++ b/chrome/browser/safe_browsing/metrics/safe_browsing_metrics_provider.cc
1973@@ -7,7 +7,6 @@ 1990@@ -7,7 +7,6 @@
1974 #include "base/metrics/histogram_functions.h" 1991 #include "base/metrics/histogram_functions.h"
1975 #include "chrome/browser/profiles/profile.h" 1992 #include "chrome/browser/profiles/profile.h"
@@ -1978,9 +1995,9 @@
1978 1995
1979 namespace safe_browsing { 1996 namespace safe_browsing {
1980 1997
1981--- chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc.orig 1998--- a/chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc
1982+++ chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc 1999+++ b/chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc
1983@@ -74,7 +74,6 @@ 2000@@ -79,7 +79,6 @@
1984 #include "components/safe_browsing/core/browser/safe_browsing_metrics_collector.h" 2001 #include "components/safe_browsing/core/browser/safe_browsing_metrics_collector.h"
1985 #include "components/safe_browsing/core/browser/verdict_cache_manager.h" 2002 #include "components/safe_browsing/core/browser/verdict_cache_manager.h"
1986 #include "components/safe_browsing/core/common/features.h" 2003 #include "components/safe_browsing/core/common/features.h"
@@ -1988,9 +2005,9 @@
1988 #include "components/safe_browsing/core/common/web_ui_constants.h" 2005 #include "components/safe_browsing/core/common/web_ui_constants.h"
1989 #include "components/security_interstitials/content/security_interstitial_controller_client.h" 2006 #include "components/security_interstitials/content/security_interstitial_controller_client.h"
1990 #include "components/security_interstitials/content/security_interstitial_tab_helper.h" 2007 #include "components/security_interstitials/content/security_interstitial_tab_helper.h"
1991--- chrome/browser/safe_browsing/safe_browsing_service.cc.orig 2008--- a/chrome/browser/safe_browsing/safe_browsing_service.cc
1992+++ chrome/browser/safe_browsing/safe_browsing_service.cc 2009+++ b/chrome/browser/safe_browsing/safe_browsing_service.cc
1993@@ -103,7 +103,6 @@ base::FilePath SafeBrowsingService::GetB 2010@@ -121,7 +121,6 @@ base::FilePath SafeBrowsingService::GetB
1994 2011
1995 SafeBrowsingService::SafeBrowsingService() 2012 SafeBrowsingService::SafeBrowsingService()
1996 : services_delegate_(ServicesDelegate::Create(this)), 2013 : services_delegate_(ServicesDelegate::Create(this)),
@@ -1998,7 +2015,7 @@
1998 shutdown_(false), 2015 shutdown_(false),
1999 enabled_(false), 2016 enabled_(false),
2000 enabled_by_prefs_(false) {} 2017 enabled_by_prefs_(false) {}
2001@@ -257,8 +256,6 @@ TriggerManager* SafeBrowsingService::tri 2018@@ -249,8 +248,6 @@ TriggerManager* SafeBrowsingService::tri
2002 2019
2003 PasswordProtectionService* SafeBrowsingService::GetPasswordProtectionService( 2020 PasswordProtectionService* SafeBrowsingService::GetPasswordProtectionService(
2004 Profile* profile) const { 2021 Profile* profile) const {
@@ -2007,7 +2024,7 @@
2007 return nullptr; 2024 return nullptr;
2008 } 2025 }
2009 2026
2010@@ -387,9 +384,6 @@ void SafeBrowsingService::OnProfileAdded 2027@@ -342,9 +339,6 @@ void SafeBrowsingService::OnProfileAdded
2011 std::unique_ptr<PrefChangeRegistrar> registrar = 2028 std::unique_ptr<PrefChangeRegistrar> registrar =
2012 std::make_unique<PrefChangeRegistrar>(); 2029 std::make_unique<PrefChangeRegistrar>();
2013 registrar->Init(pref_service); 2030 registrar->Init(pref_service);
@@ -2017,7 +2034,7 @@
2017 // ClientSideDetectionService will need to be refresh the models 2034 // ClientSideDetectionService will need to be refresh the models
2018 // renderers have if extended-reporting changes. 2035 // renderers have if extended-reporting changes.
2019 registrar->Add(prefs::kSafeBrowsingScoutReportingEnabled, 2036 registrar->Add(prefs::kSafeBrowsingScoutReportingEnabled,
2020@@ -418,14 +412,6 @@ void SafeBrowsingService::OnProfileAdded 2037@@ -373,14 +367,6 @@ void SafeBrowsingService::OnProfileAdded
2021 NoCachedPopulationReason::kChangeMbbPref)); 2038 NoCachedPopulationReason::kChangeMbbPref));
2022 user_population_prefs_[pref_service] = std::move(registrar); 2039 user_population_prefs_[pref_service] = std::move(registrar);
2023 2040
@@ -2032,7 +2049,7 @@
2032 // Extended Reporting metrics are handled together elsewhere. 2049 // Extended Reporting metrics are handled together elsewhere.
2033 RecordExtendedReportingMetrics(*pref_service); 2050 RecordExtendedReportingMetrics(*pref_service);
2034 2051
2035@@ -465,18 +451,6 @@ void SafeBrowsingService::RefreshState() 2052@@ -423,18 +409,6 @@ void SafeBrowsingService::RefreshState()
2036 2053
2037 // Check if any profile requires the service to be active. 2054 // Check if any profile requires the service to be active.
2038 enabled_by_prefs_ = false; 2055 enabled_by_prefs_ = false;
@@ -2051,9 +2068,9 @@
2051 2068
2052 if (enabled_by_prefs_) 2069 if (enabled_by_prefs_)
2053 Start(); 2070 Start();
2054--- chrome/browser/safe_browsing/safe_browsing_service.h.orig 2071--- a/chrome/browser/safe_browsing/safe_browsing_service.h
2055+++ chrome/browser/safe_browsing/safe_browsing_service.h 2072+++ b/chrome/browser/safe_browsing/safe_browsing_service.h
2056@@ -28,7 +28,6 @@ 2073@@ -27,7 +27,6 @@
2057 #include "components/safe_browsing/buildflags.h" 2074 #include "components/safe_browsing/buildflags.h"
2058 #include "components/safe_browsing/content/browser/safe_browsing_service_interface.h" 2075 #include "components/safe_browsing/content/browser/safe_browsing_service_interface.h"
2059 #include "components/safe_browsing/core/browser/db/util.h" 2076 #include "components/safe_browsing/core/browser/db/util.h"
@@ -2061,7 +2078,7 @@
2061 #include "content/public/browser/browser_context.h" 2078 #include "content/public/browser/browser_context.h"
2062 #include "content/public/browser/browser_thread.h" 2079 #include "content/public/browser/browser_thread.h"
2063 #include "services/network/public/mojom/network_context.mojom-forward.h" 2080 #include "services/network/public/mojom/network_context.mojom-forward.h"
2064@@ -97,15 +96,6 @@ class SafeBrowsingService : public SafeB 2081@@ -94,15 +93,6 @@ class SafeBrowsingService : public SafeB
2065 // Called on the main thread to let us know that the io_thread is going away. 2082 // Called on the main thread to let us know that the io_thread is going away.
2066 void ShutDown(); 2083 void ShutDown();
2067 2084
@@ -2077,9 +2094,9 @@
2077 // Get current enabled status. Must be called on IO thread. 2094 // Get current enabled status. Must be called on IO thread.
2078 bool enabled() const { 2095 bool enabled() const {
2079 DCHECK_CURRENTLY_ON(content::BrowserThread::IO); 2096 DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
2080@@ -287,10 +277,6 @@ class SafeBrowsingService : public SafeB 2097@@ -267,10 +257,6 @@ class SafeBrowsingService : public SafeB
2081 // Provides phishing and malware statistics. Accessed on UI thread. 2098
2082 std::unique_ptr<PingManager> ping_manager_; 2099 std::unique_ptr<ProxyConfigMonitor> proxy_config_monitor_;
2083 2100
2084- // Whether SafeBrowsing Extended Reporting is enabled by the current set of 2101- // Whether SafeBrowsing Extended Reporting is enabled by the current set of
2085- // profiles. Updated on the UI thread. 2102- // profiles. Updated on the UI thread.
@@ -2088,9 +2105,9 @@
2088 // Whether the service has been shutdown. 2105 // Whether the service has been shutdown.
2089 bool shutdown_; 2106 bool shutdown_;
2090 2107
2091--- chrome/browser/safe_browsing/telemetry/android/android_telemetry_service.cc.orig 2108--- a/chrome/browser/safe_browsing/telemetry/android/android_telemetry_service.cc
2092+++ chrome/browser/safe_browsing/telemetry/android/android_telemetry_service.cc 2109+++ b/chrome/browser/safe_browsing/telemetry/android/android_telemetry_service.cc
2093@@ -27,7 +27,6 @@ 2110@@ -28,7 +28,6 @@
2094 #include "components/safe_browsing/core/browser/db/database_manager.h" 2111 #include "components/safe_browsing/core/browser/db/database_manager.h"
2095 #include "components/safe_browsing/core/browser/ping_manager.h" 2112 #include "components/safe_browsing/core/browser/ping_manager.h"
2096 #include "components/safe_browsing/core/common/features.h" 2113 #include "components/safe_browsing/core/common/features.h"
@@ -2098,7 +2115,7 @@
2098 #include "content/public/browser/browser_task_traits.h" 2115 #include "content/public/browser/browser_task_traits.h"
2099 #include "content/public/browser/browser_thread.h" 2116 #include "content/public/browser/browser_thread.h"
2100 #include "content/public/browser/download_item_utils.h" 2117 #include "content/public/browser/download_item_utils.h"
2101@@ -142,11 +141,9 @@ bool AndroidTelemetryService::CanSendPin 2118@@ -141,11 +140,9 @@ bool AndroidTelemetryService::CanSendPin
2102 return false; 2119 return false;
2103 } 2120 }
2104 2121
@@ -2113,9 +2130,9 @@
2113 2130
2114 if (profile_->IsOffTheRecord()) { 2131 if (profile_->IsOffTheRecord()) {
2115 RecordApkDownloadTelemetryOutcome( 2132 RecordApkDownloadTelemetryOutcome(
2116--- chrome/browser/safe_browsing/telemetry/android/android_telemetry_service_unittest.cc.orig 2133--- a/chrome/browser/safe_browsing/telemetry/android/android_telemetry_service_unittest.cc
2117+++ chrome/browser/safe_browsing/telemetry/android/android_telemetry_service_unittest.cc 2134+++ b/chrome/browser/safe_browsing/telemetry/android/android_telemetry_service_unittest.cc
2118@@ -18,7 +18,6 @@ 2135@@ -19,7 +19,6 @@
2119 #include "components/download/public/common/mock_download_item.h" 2136 #include "components/download/public/common/mock_download_item.h"
2120 #include "components/prefs/pref_service.h" 2137 #include "components/prefs/pref_service.h"
2121 #include "components/safe_browsing/core/common/features.h" 2138 #include "components/safe_browsing/core/common/features.h"
@@ -2123,8 +2140,8 @@
2123 #include "content/public/browser/browser_task_traits.h" 2140 #include "content/public/browser/browser_task_traits.h"
2124 #include "content/public/browser/browser_thread.h" 2141 #include "content/public/browser/browser_thread.h"
2125 #include "content/public/browser/download_item_utils.h" 2142 #include "content/public/browser/download_item_utils.h"
2126--- chrome/browser/safe_browsing/url_checker_delegate_impl.cc.orig 2143--- a/chrome/browser/safe_browsing/url_checker_delegate_impl.cc
2127+++ chrome/browser/safe_browsing/url_checker_delegate_impl.cc 2144+++ b/chrome/browser/safe_browsing/url_checker_delegate_impl.cc
2128@@ -21,7 +21,6 @@ 2145@@ -21,7 +21,6 @@
2129 #include "components/safe_browsing/core/browser/db/database_manager.h" 2146 #include "components/safe_browsing/core/browser/db/database_manager.h"
2130 #include "components/safe_browsing/core/browser/db/v4_protocol_manager_util.h" 2147 #include "components/safe_browsing/core/browser/db/v4_protocol_manager_util.h"
@@ -2133,9 +2150,9 @@
2133 #include "components/security_interstitials/content/unsafe_resource_util.h" 2150 #include "components/security_interstitials/content/unsafe_resource_util.h"
2134 #include "content/public/browser/browser_task_traits.h" 2151 #include "content/public/browser/browser_task_traits.h"
2135 #include "content/public/browser/browser_thread.h" 2152 #include "content/public/browser/browser_thread.h"
2136--- chrome/browser/signin/account_consistency_mode_manager.cc.orig 2153--- a/chrome/browser/signin/account_consistency_mode_manager.cc
2137+++ chrome/browser/signin/account_consistency_mode_manager.cc 2154+++ b/chrome/browser/signin/account_consistency_mode_manager.cc
2138@@ -19,7 +19,6 @@ 2155@@ -20,7 +20,6 @@
2139 #include "components/pref_registry/pref_registry_syncable.h" 2156 #include "components/pref_registry/pref_registry_syncable.h"
2140 #include "components/prefs/pref_service.h" 2157 #include "components/prefs/pref_service.h"
2141 #include "components/signin/public/base/signin_buildflags.h" 2158 #include "components/signin/public/base/signin_buildflags.h"
@@ -2143,7 +2160,7 @@
2143 #include "google_apis/google_api_keys.h" 2160 #include "google_apis/google_api_keys.h"
2144 2161
2145 #if BUILDFLAG(IS_CHROMEOS_ASH) 2162 #if BUILDFLAG(IS_CHROMEOS_ASH)
2146@@ -98,7 +97,6 @@ AccountConsistencyModeManager::AccountCo 2163@@ -97,7 +96,6 @@ AccountConsistencyModeManager::AccountCo
2147 // pref. 2164 // pref.
2148 bool signin_allowed = IsDiceSignInAllowed() && 2165 bool signin_allowed = IsDiceSignInAllowed() &&
2149 prefs->GetBoolean(prefs::kSigninAllowedOnNextStartup); 2166 prefs->GetBoolean(prefs::kSigninAllowedOnNextStartup);
@@ -2151,8 +2168,8 @@
2151 2168
2152 UMA_HISTOGRAM_BOOLEAN("Signin.SigninAllowed", signin_allowed); 2169 UMA_HISTOGRAM_BOOLEAN("Signin.SigninAllowed", signin_allowed);
2153 #endif 2170 #endif
2154@@ -196,16 +194,7 @@ AccountConsistencyModeManager::ComputeAc 2171@@ -192,16 +190,7 @@ AccountConsistencyModeManager::ComputeAc
2155 // AccountManager is not available, when DICE has been disabled on Lacros. 2172 return AccountConsistencyMethod::kMirror;
2156 #endif 2173 #endif
2157 2174
2158-#if BUILDFLAG(ENABLE_DICE_SUPPORT) 2175-#if BUILDFLAG(ENABLE_DICE_SUPPORT)
@@ -2168,9 +2185,9 @@
2168- NOTREACHED(); 2185- NOTREACHED();
2169 return AccountConsistencyMethod::kDisabled; 2186 return AccountConsistencyMethod::kDisabled;
2170 } 2187 }
2171--- chrome/browser/signin/account_consistency_mode_manager_unittest.cc.orig 2188--- a/chrome/browser/signin/account_consistency_mode_manager_unittest.cc
2172+++ chrome/browser/signin/account_consistency_mode_manager_unittest.cc 2189+++ b/chrome/browser/signin/account_consistency_mode_manager_unittest.cc
2173@@ -20,7 +20,6 @@ 2190@@ -19,7 +19,6 @@
2174 #include "components/prefs/testing_pref_store.h" 2191 #include "components/prefs/testing_pref_store.h"
2175 #include "components/signin/public/base/account_consistency_method.h" 2192 #include "components/signin/public/base/account_consistency_method.h"
2176 #include "components/signin/public/base/signin_buildflags.h" 2193 #include "components/signin/public/base/signin_buildflags.h"
@@ -2178,33 +2195,33 @@
2178 #include "components/sync_preferences/testing_pref_service_syncable.h" 2195 #include "components/sync_preferences/testing_pref_service_syncable.h"
2179 #include "content/public/test/browser_task_environment.h" 2196 #include "content/public/test/browser_task_environment.h"
2180 #include "testing/gtest/include/gtest/gtest.h" 2197 #include "testing/gtest/include/gtest/gtest.h"
2181--- chrome/browser/signin/chrome_device_id_helper.cc.orig 2198--- a/chrome/browser/signin/chrome_device_id_helper.cc
2182+++ chrome/browser/signin/chrome_device_id_helper.cc 2199+++ b/chrome/browser/signin/chrome_device_id_helper.cc
2183@@ -16,7 +16,6 @@ 2200@@ -17,7 +17,6 @@
2184 #include "base/logging.h"
2185 #include "chrome/browser/ash/profiles/profile_helper.h" 2201 #include "chrome/browser/ash/profiles/profile_helper.h"
2202 #include "chrome/browser/browser_process.h"
2186 #include "components/prefs/pref_service.h" 2203 #include "components/prefs/pref_service.h"
2187-#include "components/signin/public/base/signin_pref_names.h" 2204-#include "components/signin/public/base/signin_pref_names.h"
2188 #include "components/signin/public/base/signin_switches.h" 2205 #include "components/signin/public/base/signin_switches.h"
2189 #include "components/user_manager/known_user.h" 2206 #include "components/user_manager/known_user.h"
2190 #include "components/user_manager/user_manager.h" 2207 #include "components/user_manager/user_manager.h"
2191@@ -67,21 +66,11 @@ void MigrateSigninScopedDeviceId(Profile 2208@@ -70,21 +69,11 @@ void MigrateSigninScopedDeviceId(Profile
2192 return; 2209 user_manager::KnownUser known_user(g_browser_process->local_state());
2193 const AccountId account_id = user->GetAccountId(); 2210 const AccountId account_id = user->GetAccountId();
2194 if (user_manager::known_user::GetDeviceId(account_id).empty()) { 2211 if (known_user.GetDeviceId(account_id).empty()) {
2195- const std::string legacy_device_id = profile->GetPrefs()->GetString( 2212- const std::string legacy_device_id = profile->GetPrefs()->GetString(
2196- prefs::kGoogleServicesSigninScopedDeviceId); 2213- prefs::kGoogleServicesSigninScopedDeviceId);
2197- if (!legacy_device_id.empty()) { 2214- if (!legacy_device_id.empty()) {
2198- // Need to move device ID from the old location to the new one, if it has 2215- // Need to move device ID from the old location to the new one, if it has
2199- // not been done yet. 2216- // not been done yet.
2200- user_manager::known_user::SetDeviceId(account_id, legacy_device_id); 2217- known_user.SetDeviceId(account_id, legacy_device_id);
2201- } else { 2218- } else {
2202- user_manager::known_user::SetDeviceId( 2219- known_user.SetDeviceId(
2203- account_id, GenerateSigninScopedDeviceId( 2220- account_id, GenerateSigninScopedDeviceId(
2204- user_manager::UserManager::Get() 2221- user_manager::UserManager::Get()
2205- ->IsUserNonCryptohomeDataEphemeral(account_id))); 2222- ->IsUserNonCryptohomeDataEphemeral(account_id)));
2206- } 2223- }
2207+ user_manager::known_user::SetDeviceId( 2224+ known_user.SetDeviceId(
2208+ account_id, GenerateSigninScopedDeviceId( 2225+ account_id, GenerateSigninScopedDeviceId(
2209+ user_manager::UserManager::Get() 2226+ user_manager::UserManager::Get()
2210+ ->IsUserNonCryptohomeDataEphemeral(account_id))); 2227+ ->IsUserNonCryptohomeDataEphemeral(account_id)));
@@ -2214,8 +2231,8 @@
2214 } 2231 }
2215 2232
2216 #endif 2233 #endif
2217--- chrome/browser/signin/chrome_signin_client.cc.orig 2234--- a/chrome/browser/signin/chrome_signin_client.cc
2218+++ chrome/browser/signin/chrome_signin_client.cc 2235+++ b/chrome/browser/signin/chrome_signin_client.cc
2219@@ -38,7 +38,6 @@ 2236@@ -38,7 +38,6 @@
2220 #include "components/prefs/pref_service.h" 2237 #include "components/prefs/pref_service.h"
2221 #include "components/signin/core/browser/cookie_settings_util.h" 2238 #include "components/signin/core/browser/cookie_settings_util.h"
@@ -2224,8 +2241,8 @@
2224 #include "components/signin/public/identity_manager/access_token_info.h" 2241 #include "components/signin/public/identity_manager/access_token_info.h"
2225 #include "components/signin/public/identity_manager/identity_manager.h" 2242 #include "components/signin/public/identity_manager/identity_manager.h"
2226 #include "components/signin/public/identity_manager/scope_set.h" 2243 #include "components/signin/public/identity_manager/scope_set.h"
2227--- chrome/browser/signin/chromeos_mirror_account_consistency_browsertest.cc.orig 2244--- a/chrome/browser/signin/chromeos_mirror_account_consistency_browsertest.cc
2228+++ chrome/browser/signin/chromeos_mirror_account_consistency_browsertest.cc 2245+++ b/chrome/browser/signin/chromeos_mirror_account_consistency_browsertest.cc
2229@@ -21,7 +21,6 @@ 2246@@ -21,7 +21,6 @@
2230 #include "components/network_session_configurator/common/network_switches.h" 2247 #include "components/network_session_configurator/common/network_switches.h"
2231 #include "components/prefs/pref_service.h" 2248 #include "components/prefs/pref_service.h"
@@ -2234,9 +2251,9 @@
2234 #include "components/signin/public/identity_manager/identity_test_utils.h" 2251 #include "components/signin/public/identity_manager/identity_test_utils.h"
2235 #include "components/user_manager/user.h" 2252 #include "components/user_manager/user.h"
2236 #include "components/user_manager/user_manager.h" 2253 #include "components/user_manager/user_manager.h"
2237--- chrome/browser/signin/dice_browsertest.cc.orig 2254--- a/chrome/browser/signin/dice_browsertest.cc
2238+++ chrome/browser/signin/dice_browsertest.cc 2255+++ b/chrome/browser/signin/dice_browsertest.cc
2239@@ -59,7 +59,6 @@ 2256@@ -60,7 +60,6 @@
2240 #include "components/signin/public/base/account_consistency_method.h" 2257 #include "components/signin/public/base/account_consistency_method.h"
2241 #include "components/signin/public/base/signin_client.h" 2258 #include "components/signin/public/base/signin_client.h"
2242 #include "components/signin/public/base/signin_metrics.h" 2259 #include "components/signin/public/base/signin_metrics.h"
@@ -2244,8 +2261,8 @@
2244 #include "components/signin/public/identity_manager/identity_manager.h" 2261 #include "components/signin/public/identity_manager/identity_manager.h"
2245 #include "components/signin/public/identity_manager/identity_test_utils.h" 2262 #include "components/signin/public/identity_manager/identity_test_utils.h"
2246 #include "components/signin/public/identity_manager/primary_account_mutator.h" 2263 #include "components/signin/public/identity_manager/primary_account_mutator.h"
2247--- chrome/browser/signin/header_modification_delegate_impl.cc.orig 2264--- a/chrome/browser/signin/header_modification_delegate_impl.cc
2248+++ chrome/browser/signin/header_modification_delegate_impl.cc 2265+++ b/chrome/browser/signin/header_modification_delegate_impl.cc
2249@@ -15,7 +15,6 @@ 2266@@ -15,7 +15,6 @@
2250 #include "chrome/browser/sync/sync_service_factory.h" 2267 #include "chrome/browser/sync/sync_service_factory.h"
2251 #include "chrome/common/pref_names.h" 2268 #include "chrome/common/pref_names.h"
@@ -2263,9 +2280,9 @@
2263 #endif 2280 #endif
2264 cookie_settings_.get()); 2281 cookie_settings_.get());
2265 } 2282 }
2266--- chrome/browser/signin/mirror_browsertest.cc.orig 2283--- a/chrome/browser/signin/mirror_browsertest.cc
2267+++ chrome/browser/signin/mirror_browsertest.cc 2284+++ b/chrome/browser/signin/mirror_browsertest.cc
2268@@ -31,7 +31,6 @@ 2285@@ -30,7 +30,6 @@
2269 #include "components/prefs/pref_service.h" 2286 #include "components/prefs/pref_service.h"
2270 #include "components/signin/core/browser/dice_header_helper.h" 2287 #include "components/signin/core/browser/dice_header_helper.h"
2271 #include "components/signin/core/browser/signin_header_helper.h" 2288 #include "components/signin/core/browser/signin_header_helper.h"
@@ -2273,29 +2290,97 @@
2273 #include "content/public/common/content_client.h" 2290 #include "content/public/common/content_client.h"
2274 #include "content/public/test/browser_test.h" 2291 #include "content/public/test/browser_test.h"
2275 #include "google_apis/gaia/gaia_urls.h" 2292 #include "google_apis/gaia/gaia_urls.h"
2276--- chrome/browser/signin/signin_manager.cc.orig 2293--- a/chrome/browser/signin/primary_account_policy_manager.cc
2277+++ chrome/browser/signin/signin_manager.cc 2294+++ b/chrome/browser/signin/primary_account_policy_manager.cc
2278@@ -5,7 +5,6 @@ 2295@@ -14,7 +14,6 @@
2279 #include "chrome/browser/signin/signin_manager.h" 2296 #include "chrome/grit/generated_resources.h"
2297 #include "components/prefs/pref_service.h"
2298 #include "components/signin/public/base/signin_metrics.h"
2299-#include "components/signin/public/base/signin_pref_names.h"
2300 #include "components/signin/public/identity_manager/account_info.h"
2301 #include "components/signin/public/identity_manager/identity_manager.h"
2302 #include "components/signin/public/identity_manager/identity_utils.h"
2303@@ -178,23 +177,11 @@ void PrimaryAccountPolicyManager::Initia
2304 EnsurePrimaryAccountAllowedForProfile(
2305 profile_, signin_metrics::SIGNIN_NOT_ALLOWED_ON_PROFILE_INIT);
2280 2306
2307- signin_allowed_.Init(
2308- prefs::kSigninAllowed, profile_->GetPrefs(),
2309- base::BindRepeating(
2310- &PrimaryAccountPolicyManager::OnSigninAllowedPrefChanged,
2311- weak_pointer_factory_.GetWeakPtr()));
2312-
2313 local_state_pref_registrar_.Init(g_browser_process->local_state());
2314- local_state_pref_registrar_.Add(
2315- prefs::kGoogleServicesUsernamePattern,
2316- base::BindRepeating(
2317- &PrimaryAccountPolicyManager::OnGoogleServicesUsernamePatternChanged,
2318- weak_pointer_factory_.GetWeakPtr()));
2319 }
2320
2321 void PrimaryAccountPolicyManager::Shutdown() {
2322 local_state_pref_registrar_.RemoveAll();
2323- signin_allowed_.Destroy();
2324 }
2325
2326 void PrimaryAccountPolicyManager::OnGoogleServicesUsernamePatternChanged() {
2327@@ -219,11 +206,6 @@ void PrimaryAccountPolicyManager::Ensure
2328
2329 CoreAccountInfo primary_account =
2330 identity_manager->GetPrimaryAccountInfo(signin::ConsentLevel::kSync);
2331- if (profile->GetPrefs()->GetBoolean(prefs::kSigninAllowed) &&
2332- signin::IsUsernameAllowedByPatternFromPrefs(
2333- g_browser_process->local_state(), primary_account.email)) {
2334- return;
2335- }
2336
2337 #if BUILDFLAG(IS_CHROMEOS_LACROS)
2338 // Disabling signin in chrome and 'RestrictSigninToPattern' policy
2339--- a/chrome/browser/signin/primary_account_policy_manager.h
2340+++ b/chrome/browser/signin/primary_account_policy_manager.h
2341@@ -61,9 +61,6 @@ class PrimaryAccountPolicyManager : publ
2342
2343 raw_ptr<Profile> profile_;
2344
2345- // Helper object to listen for changes to the signin allowed preference.
2346- BooleanPrefMember signin_allowed_;
2347-
2348 // Helper object to listen for changes to signin preferences stored in non-
2349 // profile-specific local prefs (like kGoogleServicesUsernamePattern).
2350 PrefChangeRegistrar local_state_pref_registrar_;
2351--- a/chrome/browser/signin/primary_account_policy_manager_unittest.cc
2352+++ b/chrome/browser/signin/primary_account_policy_manager_unittest.cc
2353@@ -14,7 +14,6 @@
2354 #include "chrome/test/base/testing_browser_process.h"
2355 #include "chrome/test/base/testing_profile.h"
2356 #include "chrome/test/base/testing_profile_manager.h"
2357-#include "components/signin/public/base/signin_pref_names.h"
2358 #include "components/signin/public/identity_manager/identity_test_environment.h"
2359 #include "content/public/test/browser_task_environment.h"
2360 #include "testing/gtest/include/gtest/gtest.h"
2361--- a/chrome/browser/signin/signin_manager.cc
2362+++ b/chrome/browser/signin/signin_manager.cc
2363@@ -6,7 +6,6 @@
2364
2365 #include "base/bind.h"
2281 #include "components/prefs/pref_service.h" 2366 #include "components/prefs/pref_service.h"
2282-#include "components/signin/public/base/signin_pref_names.h" 2367-#include "components/signin/public/base/signin_pref_names.h"
2283 #include "components/signin/public/identity_manager/accounts_in_cookie_jar_info.h" 2368 #include "components/signin/public/identity_manager/accounts_in_cookie_jar_info.h"
2284 #include "components/signin/public/identity_manager/identity_manager.h" 2369 #include "components/signin/public/identity_manager/identity_manager.h"
2285 #include "components/signin/public/identity_manager/primary_account_mutator.h" 2370 #include "components/signin/public/identity_manager/primary_account_mutator.h"
2286@@ -13,11 +12,6 @@ 2371@@ -21,11 +20,6 @@ SigninManager::SigninManager(PrefService
2287 SigninManager::SigninManager(PrefService* prefs, 2372 signin::IdentityManager* identity_manager,
2288 signin::IdentityManager* identity_manager) 2373 SigninClient* client)
2289 : prefs_(prefs), identity_manager_(identity_manager) { 2374 : prefs_(prefs), identity_manager_(identity_manager) {
2290- signin_allowed_.Init( 2375- signin_allowed_.Init(
2291- prefs::kSigninAllowed, prefs_, 2376- prefs::kSigninAllowed, prefs_,
2292- base::BindRepeating(&SigninManager::OnSigninAllowedPrefChanged, 2377- base::BindRepeating(&SigninManager::OnSigninAllowedPrefChanged,
2293- base::Unretained(this))); 2378- base::Unretained(this)));
2294- 2379-
2295 UpdateUnconsentedPrimaryAccount(); 2380 #if BUILDFLAG(IS_CHROMEOS_LACROS)
2296 identity_manager_->AddObserver(this); 2381 is_main_profile_ = client->GetInitialPrimaryAccount().has_value();
2297 } 2382 #endif
2298@@ -63,16 +57,6 @@ SigninManager::ComputeUnconsentedPrimary 2383@@ -128,16 +122,6 @@ CoreAccountInfo SigninManager::ComputeUn
2299 signin::ConsentLevel::kSync); 2384 signin::ConsentLevel::kSync);
2300 } 2385 }
2301 2386
@@ -2307,13 +2392,13 @@
2307- // It was considered simpler to keep the logic to update the unconsented 2392- // It was considered simpler to keep the logic to update the unconsented
2308- // primary account in a single place. 2393- // primary account in a single place.
2309- if (!signin_allowed_.GetValue()) 2394- if (!signin_allowed_.GetValue())
2310- return absl::nullopt; 2395- return CoreAccountInfo();
2311- 2396-
2312 signin::AccountsInCookieJarInfo cookie_info = 2397 signin::AccountsInCookieJarInfo cookie_info =
2313 identity_manager_->GetAccountsInCookieJar(); 2398 identity_manager_->GetAccountsInCookieJar();
2314 2399
2315--- chrome/browser/signin/signin_promo_util.cc.orig 2400--- a/chrome/browser/signin/signin_promo_util.cc
2316+++ chrome/browser/signin/signin_promo_util.cc 2401+++ b/chrome/browser/signin/signin_promo_util.cc
2317@@ -8,7 +8,6 @@ 2402@@ -8,7 +8,6 @@
2318 #include "chrome/browser/profiles/profile.h" 2403 #include "chrome/browser/profiles/profile.h"
2319 #include "chrome/browser/signin/identity_manager_factory.h" 2404 #include "chrome/browser/signin/identity_manager_factory.h"
@@ -2331,37 +2416,18 @@
2331 return false; 2416 return false;
2332 2417
2333 // Display the signin promo if the user is not signed in. 2418 // Display the signin promo if the user is not signed in.
2334--- chrome/browser/signin/signin_ui_util.cc.orig 2419--- a/chrome/browser/signin/signin_ui_util.cc
2335+++ chrome/browser/signin/signin_ui_util.cc 2420+++ b/chrome/browser/signin/signin_ui_util.cc
2336@@ -34,7 +34,6 @@ 2421@@ -39,7 +39,6 @@
2337 #include "components/feature_engagement/public/tracker.h"
2338 #include "components/prefs/pref_service.h" 2422 #include "components/prefs/pref_service.h"
2423 #include "components/signin/public/base/consent_level.h"
2339 #include "components/signin/public/base/signin_metrics.h" 2424 #include "components/signin/public/base/signin_metrics.h"
2340-#include "components/signin/public/base/signin_pref_names.h" 2425-#include "components/signin/public/base/signin_pref_names.h"
2341 #include "components/signin/public/identity_manager/account_info.h" 2426 #include "components/signin/public/identity_manager/account_info.h"
2342 #include "components/signin/public/identity_manager/accounts_in_cookie_jar_info.h" 2427 #include "components/signin/public/identity_manager/accounts_in_cookie_jar_info.h"
2343 #include "components/signin/public/identity_manager/consent_level.h"
2344--- chrome/browser/signin/signin_util.cc.orig
2345+++ chrome/browser/signin/signin_util.cc
2346@@ -30,7 +30,6 @@
2347 #include "components/google/core/common/google_util.h"
2348 #include "components/prefs/pref_service.h"
2349 #include "components/signin/public/base/signin_metrics.h"
2350-#include "components/signin/public/base/signin_pref_names.h"
2351 #include "components/signin/public/identity_manager/identity_manager.h" 2428 #include "components/signin/public/identity_manager/identity_manager.h"
2352 #include "components/signin/public/identity_manager/identity_utils.h" 2429--- a/chrome/browser/signin/signin_util_win.cc
2353 #include "components/signin/public/identity_manager/primary_account_mutator.h" 2430+++ b/chrome/browser/signin/signin_util_win.cc
2354@@ -232,7 +231,7 @@ void EnsurePrimaryAccountAllowedForProfi
2355
2356 CoreAccountInfo primary_account =
2357 identity_manager->GetPrimaryAccountInfo(signin::ConsentLevel::kSync);
2358- if (profile->GetPrefs()->GetBoolean(prefs::kSigninAllowed) &&
2359+ if (false &&
2360 signin::IsUsernameAllowedByPatternFromPrefs(
2361 g_browser_process->local_state(), primary_account.email)) {
2362 return;
2363--- chrome/browser/signin/signin_util_win.cc.orig
2364+++ chrome/browser/signin/signin_util_win.cc
2365@@ -34,7 +34,6 @@ 2431@@ -34,7 +34,6 @@
2366 #include "components/prefs/pref_service.h" 2432 #include "components/prefs/pref_service.h"
2367 #include "components/signin/core/browser/about_signin_internals.h" 2433 #include "components/signin/core/browser/about_signin_internals.h"
@@ -2370,8 +2436,8 @@
2370 #include "components/signin/public/identity_manager/accounts_mutator.h" 2436 #include "components/signin/public/identity_manager/accounts_mutator.h"
2371 #include "components/signin/public/identity_manager/identity_manager.h" 2437 #include "components/signin/public/identity_manager/identity_manager.h"
2372 2438
2373@@ -136,9 +135,6 @@ void ImportCredentialsFromProvider(Profi 2439@@ -134,9 +133,6 @@ void ImportCredentialsFromProvider(Profi
2374 account_id, nullptr)); 2440 account_id, nullptr, profile));
2375 } 2441 }
2376 } 2442 }
2377- 2443-
@@ -2380,7 +2446,7 @@
2380 } 2446 }
2381 2447
2382 // Extracts the |cred_provider_gaia_id| and |cred_provider_email| for the user 2448 // Extracts the |cred_provider_gaia_id| and |cred_provider_email| for the user
2383@@ -313,20 +309,7 @@ bool ReauthWithCredentialProviderIfPossi 2449@@ -311,20 +307,7 @@ bool ReauthWithCredentialProviderIfPossi
2384 // - The profile is marked as having been signed in with a system credential. 2450 // - The profile is marked as having been signed in with a system credential.
2385 // - The profile is already signed in. 2451 // - The profile is already signed in.
2386 // - The profile is in an auth error state. 2452 // - The profile is in an auth error state.
@@ -2401,8 +2467,8 @@
2401 } 2467 }
2402 2468
2403 } // namespace signin_util 2469 } // namespace signin_util
2404--- chrome/browser/signin/signin_util_win_browsertest.cc.orig 2470--- a/chrome/browser/signin/signin_util_win_browsertest.cc
2405+++ chrome/browser/signin/signin_util_win_browsertest.cc 2471+++ b/chrome/browser/signin/signin_util_win_browsertest.cc
2406@@ -31,7 +31,6 @@ 2472@@ -31,7 +31,6 @@
2407 #include "chrome/test/base/in_process_browser_test.h" 2473 #include "chrome/test/base/in_process_browser_test.h"
2408 #include "chrome/test/base/testing_browser_process.h" 2474 #include "chrome/test/base/testing_browser_process.h"
@@ -2411,9 +2477,9 @@
2411 #include "components/signin/public/identity_manager/identity_manager.h" 2477 #include "components/signin/public/identity_manager/identity_manager.h"
2412 #include "components/signin/public/identity_manager/identity_test_utils.h" 2478 #include "components/signin/public/identity_manager/identity_test_utils.h"
2413 #include "components/signin/public/identity_manager/primary_account_mutator.h" 2479 #include "components/signin/public/identity_manager/primary_account_mutator.h"
2414--- chrome/browser/ssl/certificate_reporting_test_utils.cc.orig 2480--- a/chrome/browser/ssl/certificate_reporting_test_utils.cc
2415+++ chrome/browser/ssl/certificate_reporting_test_utils.cc 2481+++ b/chrome/browser/ssl/certificate_reporting_test_utils.cc
2416@@ -15,7 +15,6 @@ 2482@@ -14,7 +14,6 @@
2417 #include "build/build_config.h" 2483 #include "build/build_config.h"
2418 #include "chrome/browser/profiles/profile.h" 2484 #include "chrome/browser/profiles/profile.h"
2419 #include "components/prefs/pref_service.h" 2485 #include "components/prefs/pref_service.h"
@@ -2421,29 +2487,38 @@
2421 #include "components/security_interstitials/content/cert_report_helper.h" 2487 #include "components/security_interstitials/content/cert_report_helper.h"
2422 #include "components/security_interstitials/content/certificate_error_report.h" 2488 #include "components/security_interstitials/content/certificate_error_report.h"
2423 #include "components/variations/variations_associated_data.h" 2489 #include "components/variations/variations_associated_data.h"
2424--- chrome/browser/ssl/sct_reporting_service.cc.orig 2490--- a/chrome/browser/ssl/sct_reporting_service.cc
2425+++ chrome/browser/ssl/sct_reporting_service.cc 2491+++ b/chrome/browser/ssl/sct_reporting_service.cc
2426@@ -9,7 +9,6 @@ 2492@@ -12,7 +12,6 @@
2427 #include "chrome/browser/net/system_network_context_manager.h"
2428 #include "chrome/browser/safe_browsing/safe_browsing_service.h"
2429 #include "chrome/common/chrome_features.h" 2493 #include "chrome/common/chrome_features.h"
2494 #include "chrome/common/pref_names.h"
2495 #include "components/prefs/pref_service.h"
2430-#include "components/safe_browsing/core/common/safe_browsing_prefs.h" 2496-#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
2431 #include "content/public/browser/network_service_instance.h" 2497 #include "content/public/browser/network_service_instance.h"
2432 #include "content/public/browser/storage_partition.h" 2498 #include "content/public/browser/storage_partition.h"
2433 #include "net/traffic_annotation/network_traffic_annotation.h" 2499 #include "google_apis/google_api_keys.h"
2434@@ -119,8 +118,5 @@ void SCTReportingService::SetReportingEn 2500@@ -199,18 +198,6 @@ void SetSCTAuditingEnabledForStoragePart
2435 } 2501 } // namespace
2436 2502
2437 void SCTReportingService::OnPreferenceChanged() { 2503 network::mojom::SCTAuditingMode SCTReportingService::GetReportingMode() {
2438- const bool enabled = safe_browsing_service_ && 2504- if (profile_->IsOffTheRecord() ||
2439- safe_browsing_service_->enabled_by_prefs() && 2505- !base::FeatureList::IsEnabled(features::kSCTAuditing)) {
2440- safe_browsing::IsExtendedReportingEnabled(pref_service_); 2506- return network::mojom::SCTAuditingMode::kDisabled;
2441- SetReportingEnabled(enabled); 2507- }
2442+ SetReportingEnabled(false); 2508- if (safe_browsing::IsSafeBrowsingEnabled(pref_service_)) {
2509- if (safe_browsing::IsExtendedReportingEnabled(pref_service_)) {
2510- return network::mojom::SCTAuditingMode::kEnhancedSafeBrowsingReporting;
2511- }
2512- if (base::FeatureList::IsEnabled(features::kSCTAuditingHashdance)) {
2513- return network::mojom::SCTAuditingMode::kHashdance;
2514- }
2515- }
2516 return network::mojom::SCTAuditingMode::kDisabled;
2443 } 2517 }
2444--- chrome/browser/ssl/ssl_browsertest.cc.orig 2518
2445+++ chrome/browser/ssl/ssl_browsertest.cc 2519--- a/chrome/browser/ssl/ssl_browsertest.cc
2446@@ -94,7 +94,6 @@ 2520+++ b/chrome/browser/ssl/ssl_browsertest.cc
2521@@ -93,7 +93,6 @@
2447 #include "components/policy/policy_constants.h" 2522 #include "components/policy/policy_constants.h"
2448 #include "components/prefs/testing_pref_service.h" 2523 #include "components/prefs/testing_pref_service.h"
2449 #include "components/safe_browsing/core/common/features.h" 2524 #include "components/safe_browsing/core/common/features.h"
@@ -2451,9 +2526,9 @@
2451 #include "components/security_interstitials/content/bad_clock_blocking_page.h" 2526 #include "components/security_interstitials/content/bad_clock_blocking_page.h"
2452 #include "components/security_interstitials/content/captive_portal_blocking_page.h" 2527 #include "components/security_interstitials/content/captive_portal_blocking_page.h"
2453 #include "components/security_interstitials/content/cert_report_helper.h" 2528 #include "components/security_interstitials/content/cert_report_helper.h"
2454--- chrome/browser/ssl/ssl_error_controller_client.cc.orig 2529--- a/chrome/browser/ssl/ssl_error_controller_client.cc
2455+++ chrome/browser/ssl/ssl_error_controller_client.cc 2530+++ b/chrome/browser/ssl/ssl_error_controller_client.cc
2456@@ -23,7 +23,6 @@ 2531@@ -22,7 +22,6 @@
2457 #include "chrome/browser/ssl/stateful_ssl_host_state_delegate_factory.h" 2532 #include "chrome/browser/ssl/stateful_ssl_host_state_delegate_factory.h"
2458 #include "chrome/common/pref_names.h" 2533 #include "chrome/common/pref_names.h"
2459 #include "chrome/common/url_constants.h" 2534 #include "chrome/common/url_constants.h"
@@ -2461,17 +2536,17 @@
2461 #include "components/security_interstitials/content/content_metrics_helper.h" 2536 #include "components/security_interstitials/content/content_metrics_helper.h"
2462 #include "components/security_interstitials/content/settings_page_helper.h" 2537 #include "components/security_interstitials/content/settings_page_helper.h"
2463 #include "components/security_interstitials/content/stateful_ssl_host_state_delegate.h" 2538 #include "components/security_interstitials/content/stateful_ssl_host_state_delegate.h"
2464--- chrome/browser/supervised_user/supervised_user_pref_store.cc.orig 2539--- a/chrome/browser/supervised_user/supervised_user_pref_store.cc
2465+++ chrome/browser/supervised_user/supervised_user_pref_store.cc 2540+++ b/chrome/browser/supervised_user/supervised_user_pref_store.cc
2466@@ -23,7 +23,6 @@ 2541@@ -25,7 +25,6 @@
2467 #include "chrome/common/pref_names.h" 2542 #include "chrome/common/pref_names.h"
2468 #include "components/feed/core/shared_prefs/pref_names.h" 2543 #include "components/feed/core/shared_prefs/pref_names.h"
2469 #include "components/prefs/pref_value_map.h" 2544 #include "components/prefs/pref_value_map.h"
2470-#include "components/signin/public/base/signin_pref_names.h" 2545-#include "components/signin/public/base/signin_pref_names.h"
2546 #include "components/signin/public/base/signin_switches.h"
2471 #include "extensions/buildflags/buildflags.h" 2547 #include "extensions/buildflags/buildflags.h"
2472 2548
2473 namespace { 2549@@ -58,10 +57,6 @@ SupervisedUserSettingsPrefMappingEntry k
2474@@ -55,10 +54,6 @@ SupervisedUserSettingsPrefMappingEntry k
2475 prefs::kSupervisedUserSafeSites, 2550 prefs::kSupervisedUserSafeSites,
2476 }, 2551 },
2477 { 2552 {
@@ -2482,7 +2557,7 @@
2482 supervised_users::kUserName, 2557 supervised_users::kUserName,
2483 prefs::kProfileName, 2558 prefs::kProfileName,
2484 }, 2559 },
2485@@ -124,7 +119,6 @@ void SupervisedUserPrefStore::OnNewSetti 2560@@ -127,7 +122,6 @@ void SupervisedUserPrefStore::OnNewSetti
2486 prefs_->SetInteger(prefs::kForceYouTubeRestrict, 2561 prefs_->SetInteger(prefs::kForceYouTubeRestrict,
2487 safe_search_util::YOUTUBE_RESTRICT_MODERATE); 2562 safe_search_util::YOUTUBE_RESTRICT_MODERATE);
2488 prefs_->SetBoolean(prefs::kHideWebStoreIcon, false); 2563 prefs_->SetBoolean(prefs::kHideWebStoreIcon, false);
@@ -2490,8 +2565,8 @@
2490 prefs_->SetBoolean(feed::prefs::kEnableSnippets, false); 2565 prefs_->SetBoolean(feed::prefs::kEnableSnippets, false);
2491 2566
2492 // Copy supervised user settings to prefs. 2567 // Copy supervised user settings to prefs.
2493--- chrome/browser/ui/autofill/payments/save_card_bubble_controller_impl.cc.orig 2568--- a/chrome/browser/ui/autofill/payments/save_card_bubble_controller_impl.cc
2494+++ chrome/browser/ui/autofill/payments/save_card_bubble_controller_impl.cc 2569+++ b/chrome/browser/ui/autofill/payments/save_card_bubble_controller_impl.cc
2495@@ -37,7 +37,6 @@ 2570@@ -37,7 +37,6 @@
2496 #include "components/autofill/core/common/autofill_features.h" 2571 #include "components/autofill/core/common/autofill_features.h"
2497 #include "components/autofill/core/common/autofill_payments_features.h" 2572 #include "components/autofill/core/common/autofill_payments_features.h"
@@ -2500,8 +2575,8 @@
2500 #include "components/signin/public/identity_manager/identity_manager.h" 2575 #include "components/signin/public/identity_manager/identity_manager.h"
2501 #include "components/strings/grit/components_strings.h" 2576 #include "components/strings/grit/components_strings.h"
2502 #include "components/sync/driver/sync_service.h" 2577 #include "components/sync/driver/sync_service.h"
2503--- chrome/browser/ui/browser_command_controller.cc.orig 2578--- a/chrome/browser/ui/browser_command_controller.cc
2504+++ chrome/browser/ui/browser_command_controller.cc 2579+++ b/chrome/browser/ui/browser_command_controller.cc
2505@@ -57,7 +57,6 @@ 2580@@ -57,7 +57,6 @@
2506 #include "components/prefs/pref_service.h" 2581 #include "components/prefs/pref_service.h"
2507 #include "components/sessions/core/tab_restore_service.h" 2582 #include "components/sessions/core/tab_restore_service.h"
@@ -2510,7 +2585,7 @@
2510 #include "content/public/browser/native_web_keyboard_event.h" 2585 #include "content/public/browser/native_web_keyboard_event.h"
2511 #include "content/public/browser/navigation_controller.h" 2586 #include "content/public/browser/navigation_controller.h"
2512 #include "content/public/browser/navigation_entry.h" 2587 #include "content/public/browser/navigation_entry.h"
2513@@ -184,10 +183,6 @@ BrowserCommandController::BrowserCommand 2588@@ -214,10 +213,6 @@ BrowserCommandController::BrowserCommand
2514 &BrowserCommandController::UpdateCommandsForFullscreenMode, 2589 &BrowserCommandController::UpdateCommandsForFullscreenMode,
2515 base::Unretained(this))); 2590 base::Unretained(this)));
2516 #endif 2591 #endif
@@ -2521,7 +2596,7 @@
2521 2596
2522 InitCommandState(); 2597 InitCommandState();
2523 2598
2524@@ -1526,7 +1521,7 @@ void BrowserCommandController::UpdateSho 2599@@ -1611,7 +1606,7 @@ void BrowserCommandController::UpdateSho
2525 return; 2600 return;
2526 2601
2527 command_updater_.UpdateCommandEnabled( 2602 command_updater_.UpdateCommandEnabled(
@@ -2529,10 +2604,10 @@
2529+ IDC_SHOW_SIGNIN, false); 2604+ IDC_SHOW_SIGNIN, false);
2530 } 2605 }
2531 2606
2532 // static 2607 void BrowserCommandController::UpdateReloadStopState(bool is_loading,
2533--- chrome/browser/ui/browser_command_controller.h.orig 2608--- a/chrome/browser/ui/browser_command_controller.h
2534+++ chrome/browser/ui/browser_command_controller.h 2609+++ b/chrome/browser/ui/browser_command_controller.h
2535@@ -211,7 +211,6 @@ class BrowserCommandController : public 2610@@ -212,7 +212,6 @@ class BrowserCommandController : public
2536 2611
2537 PrefChangeRegistrar profile_pref_registrar_; 2612 PrefChangeRegistrar profile_pref_registrar_;
2538 PrefChangeRegistrar local_pref_registrar_; 2613 PrefChangeRegistrar local_pref_registrar_;
@@ -2540,8 +2615,8 @@
2540 2615
2541 // In locked fullscreen mode disallow enabling/disabling commands. 2616 // In locked fullscreen mode disallow enabling/disabling commands.
2542 bool is_locked_fullscreen_ = false; 2617 bool is_locked_fullscreen_ = false;
2543--- chrome/browser/ui/browser_command_controller_unittest.cc.orig 2618--- a/chrome/browser/ui/browser_command_controller_unittest.cc
2544+++ chrome/browser/ui/browser_command_controller_unittest.cc 2619+++ b/chrome/browser/ui/browser_command_controller_unittest.cc
2545@@ -27,7 +27,6 @@ 2620@@ -27,7 +27,6 @@
2546 #include "chrome/test/base/test_browser_window.h" 2621 #include "chrome/test/base/test_browser_window.h"
2547 #include "chrome/test/base/testing_browser_process.h" 2622 #include "chrome/test/base/testing_browser_process.h"
@@ -2550,17 +2625,17 @@
2550 #include "content/public/browser/native_web_keyboard_event.h" 2625 #include "content/public/browser/native_web_keyboard_event.h"
2551 #include "ui/events/keycodes/dom/dom_code.h" 2626 #include "ui/events/keycodes/dom/dom_code.h"
2552 #include "ui/events/keycodes/keyboard_codes.h" 2627 #include "ui/events/keycodes/keyboard_codes.h"
2553--- chrome/browser/ui/chrome_pages.cc.orig 2628--- a/chrome/browser/ui/chrome_pages.cc
2554+++ chrome/browser/ui/chrome_pages.cc 2629+++ b/chrome/browser/ui/chrome_pages.cc
2555@@ -61,7 +61,6 @@ 2630@@ -64,7 +64,6 @@
2556 2631 #if !BUILDFLAG(IS_ANDROID)
2557 #if !defined(OS_ANDROID) 2632 #include "base/metrics/histogram_functions.h"
2558 #include "chrome/browser/signin/identity_manager_factory.h" 2633 #include "chrome/browser/signin/identity_manager_factory.h"
2559-#include "components/signin/public/base/signin_pref_names.h" 2634-#include "components/signin/public/base/signin_pref_names.h"
2560 #include "components/signin/public/identity_manager/identity_manager.h" 2635 #include "components/signin/public/identity_manager/identity_manager.h"
2561 #endif 2636 #endif
2562 2637
2563@@ -484,13 +483,7 @@ void ShowBrowserSignin(Browser* browser, 2638@@ -524,13 +523,7 @@ void ShowBrowserSignin(Browser* browser,
2564 2639
2565 void ShowBrowserSigninOrSettings(Browser* browser, 2640 void ShowBrowserSigninOrSettings(Browser* browser,
2566 signin_metrics::AccessPoint access_point) { 2641 signin_metrics::AccessPoint access_point) {
@@ -2575,18 +2650,18 @@
2575 } 2650 }
2576 #endif 2651 #endif
2577 2652
2578--- chrome/browser/ui/hats/trust_safety_sentiment_service.cc.orig 2653--- a/chrome/browser/ui/hats/trust_safety_sentiment_service.cc
2579+++ chrome/browser/ui/hats/trust_safety_sentiment_service.cc 2654+++ b/chrome/browser/ui/hats/trust_safety_sentiment_service.cc
2580@@ -19,8 +19,6 @@ 2655@@ -22,8 +22,6 @@
2581 #include "components/content_settings/core/common/pref_names.h"
2582 #include "components/password_manager/core/common/password_manager_pref_names.h" 2656 #include "components/password_manager/core/common/password_manager_pref_names.h"
2583 #include "components/prefs/pref_service.h" 2657 #include "components/prefs/pref_service.h"
2658 #include "components/privacy_sandbox/privacy_sandbox_prefs.h"
2584-#include "components/safe_browsing/core/common/safe_browsing_prefs.h" 2659-#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
2585-#include "components/signin/public/base/signin_pref_names.h" 2660-#include "components/signin/public/base/signin_pref_names.h"
2586 #include "components/unified_consent/pref_names.h" 2661 #include "components/unified_consent/pref_names.h"
2662 #include "components/version_info/channel.h"
2587 2663
2588 namespace { 2664@@ -128,9 +126,6 @@ bool HasNonDefaultPrivacySetting(Profile
2589@@ -81,9 +79,6 @@ bool HasNonDefaultPrivacySetting(Profile
2590 auto* prefs = profile->GetPrefs(); 2665 auto* prefs = profile->GetPrefs();
2591 2666
2592 std::vector<std::string> prefs_to_check = { 2667 std::vector<std::string> prefs_to_check = {
@@ -2596,7 +2671,7 @@
2596 prefs::kEnableDoNotTrack, 2671 prefs::kEnableDoNotTrack,
2597 password_manager::prefs::kPasswordLeakDetectionEnabled, 2672 password_manager::prefs::kPasswordLeakDetectionEnabled,
2598 prefs::kCookieControlsMode, 2673 prefs::kCookieControlsMode,
2599@@ -101,13 +96,9 @@ bool HasNonDefaultPrivacySetting(Profile 2674@@ -148,13 +143,9 @@ bool HasNonDefaultPrivacySetting(Profile
2600 // Users consenting to sync automatically enable UKM collection 2675 // Users consenting to sync automatically enable UKM collection
2601 auto* ukm_pref = prefs->FindPreference( 2676 auto* ukm_pref = prefs->FindPreference(
2602 unified_consent::prefs::kUrlKeyedAnonymizedDataCollectionEnabled); 2677 unified_consent::prefs::kUrlKeyedAnonymizedDataCollectionEnabled);
@@ -2611,9 +2686,9 @@
2611 2686
2612 // Check the default value for each user facing content setting. Note that 2687 // Check the default value for each user facing content setting. Note that
2613 // this will not include content setting exceptions set via permission 2688 // this will not include content setting exceptions set via permission
2614--- chrome/browser/ui/views/page_info/page_info_bubble_view_sync_browsertest.cc.orig 2689--- a/chrome/browser/ui/views/page_info/page_info_bubble_view_sync_browsertest.cc
2615+++ chrome/browser/ui/views/page_info/page_info_bubble_view_sync_browsertest.cc 2690+++ b/chrome/browser/ui/views/page_info/page_info_bubble_view_sync_browsertest.cc
2616@@ -20,7 +20,6 @@ 2691@@ -19,7 +19,6 @@
2617 #include "components/password_manager/core/browser/password_manager_metrics_util.h" 2692 #include "components/password_manager/core/browser/password_manager_metrics_util.h"
2618 #include "components/safe_browsing/content/browser/password_protection/password_protection_test_util.h" 2693 #include "components/safe_browsing/content/browser/password_protection/password_protection_test_util.h"
2619 #include "components/safe_browsing/core/browser/password_protection/metrics_util.h" 2694 #include "components/safe_browsing/core/browser/password_protection/metrics_util.h"
@@ -2621,36 +2696,36 @@
2621 #include "components/signin/public/identity_manager/account_info.h" 2696 #include "components/signin/public/identity_manager/account_info.h"
2622 #include "components/signin/public/identity_manager/identity_manager.h" 2697 #include "components/signin/public/identity_manager/identity_manager.h"
2623 #include "components/signin/public/identity_manager/identity_test_utils.h" 2698 #include "components/signin/public/identity_manager/identity_test_utils.h"
2624--- chrome/browser/ui/views/profiles/profile_menu_view.cc.orig 2699--- a/chrome/browser/ui/views/profiles/profile_menu_view.cc
2625+++ chrome/browser/ui/views/profiles/profile_menu_view.cc 2700+++ b/chrome/browser/ui/views/profiles/profile_menu_view.cc
2626@@ -53,7 +53,6 @@ 2701@@ -53,7 +53,6 @@
2627 #include "chrome/grit/generated_resources.h"
2628 #include "chrome/grit/theme_resources.h" 2702 #include "chrome/grit/theme_resources.h"
2629 #include "components/signin/core/browser/signin_error_controller.h" 2703 #include "components/signin/core/browser/signin_error_controller.h"
2704 #include "components/signin/public/base/consent_level.h"
2630-#include "components/signin/public/base/signin_pref_names.h" 2705-#include "components/signin/public/base/signin_pref_names.h"
2631 #include "components/signin/public/identity_manager/consent_level.h"
2632 #include "components/signin/public/identity_manager/primary_account_mutator.h" 2706 #include "components/signin/public/identity_manager/primary_account_mutator.h"
2633 #include "components/strings/grit/components_strings.h" 2707 #include "components/strings/grit/components_strings.h"
2634@@ -501,7 +500,6 @@ void ProfileMenuView::BuildAutofillButto 2708 #include "components/vector_icons/vector_icons.h"
2709@@ -508,7 +507,6 @@ void ProfileMenuView::BuildAutofillButto
2635 2710
2636 void ProfileMenuView::BuildSyncInfo() { 2711 void ProfileMenuView::BuildSyncInfo() {
2637 Profile* profile = browser()->profile(); 2712 Profile* profile = browser()->profile();
2638- if (!profile->GetPrefs()->GetBoolean(prefs::kSigninAllowed)) 2713- if (!profile->GetPrefs()->GetBoolean(prefs::kSigninAllowed))
2639 return; 2714 return;
2640 2715
2641 signin::IdentityManager* identity_manager = 2716 if (!SyncServiceFactory::IsSyncAllowed(profile)) {
2642--- chrome/browser/ui/views/profiles/profile_menu_view_browsertest.cc.orig 2717--- a/chrome/browser/ui/views/profiles/profile_menu_view_browsertest.cc
2643+++ chrome/browser/ui/views/profiles/profile_menu_view_browsertest.cc 2718+++ b/chrome/browser/ui/views/profiles/profile_menu_view_browsertest.cc
2644@@ -55,7 +55,6 @@ 2719@@ -60,7 +60,6 @@
2645 #include "components/feature_engagement/public/tracker.h" 2720 #include "components/google/core/common/google_util.h"
2646 #include "components/feature_engagement/test/test_tracker.h"
2647 #include "components/prefs/pref_service.h" 2721 #include "components/prefs/pref_service.h"
2722 #include "components/signin/public/base/consent_level.h"
2648-#include "components/signin/public/base/signin_pref_names.h" 2723-#include "components/signin/public/base/signin_pref_names.h"
2649 #include "components/signin/public/identity_manager/consent_level.h"
2650 #include "components/signin/public/identity_manager/identity_test_utils.h" 2724 #include "components/signin/public/identity_manager/identity_test_utils.h"
2651 #include "components/sync/driver/sync_service.h" 2725 #include "components/sync/driver/sync_service.h"
2652--- chrome/browser/ui/views/safe_browsing/password_reuse_modal_warning_dialog.cc.orig 2726 #include "components/sync/driver/sync_user_settings.h"
2653+++ chrome/browser/ui/views/safe_browsing/password_reuse_modal_warning_dialog.cc 2727--- a/chrome/browser/ui/views/safe_browsing/password_reuse_modal_warning_dialog.cc
2728+++ b/chrome/browser/ui/views/safe_browsing/password_reuse_modal_warning_dialog.cc
2654@@ -122,7 +122,6 @@ PasswordReuseModalWarningDialog::Passwor 2729@@ -122,7 +122,6 @@ PasswordReuseModalWarningDialog::Passwor
2655 OnWarningDone done_callback) 2730 OnWarningDone done_callback)
2656 : content::WebContentsObserver(web_contents), 2731 : content::WebContentsObserver(web_contents),
@@ -2692,19 +2767,19 @@
2692 LogModalWarningDialogLifetime(modal_construction_start_time_); 2767 LogModalWarningDialogLifetime(modal_construction_start_time_);
2693 } 2768 }
2694 2769
2695--- chrome/browser/ui/views/safe_browsing/password_reuse_modal_warning_dialog.h.orig 2770--- a/chrome/browser/ui/views/safe_browsing/password_reuse_modal_warning_dialog.h
2696+++ chrome/browser/ui/views/safe_browsing/password_reuse_modal_warning_dialog.h 2771+++ b/chrome/browser/ui/views/safe_browsing/password_reuse_modal_warning_dialog.h
2697@@ -60,7 +60,6 @@ class PasswordReuseModalWarningDialog 2772@@ -62,7 +62,6 @@ class PasswordReuseModalWarningDialog
2698 2773
2699 private: 2774 private:
2700 OnWarningDone done_callback_; 2775 OnWarningDone done_callback_;
2701- ChromePasswordProtectionService* service_; 2776- raw_ptr<ChromePasswordProtectionService> service_;
2702 const GURL url_; 2777 const GURL url_;
2703 const ReusedPasswordAccountType password_type_; 2778 const ReusedPasswordAccountType password_type_;
2704 2779
2705--- chrome/browser/ui/views/sync/inline_login_ui_browsertest.cc.orig 2780--- a/chrome/browser/ui/views/sync/inline_login_ui_browsertest.cc
2706+++ chrome/browser/ui/views/sync/inline_login_ui_browsertest.cc 2781+++ b/chrome/browser/ui/views/sync/inline_login_ui_browsertest.cc
2707@@ -44,7 +44,6 @@ 2782@@ -46,7 +46,6 @@
2708 #include "components/keyed_service/content/browser_context_dependency_manager.h" 2783 #include "components/keyed_service/content/browser_context_dependency_manager.h"
2709 #include "components/prefs/pref_service.h" 2784 #include "components/prefs/pref_service.h"
2710 #include "components/prefs/scoped_user_pref_update.h" 2785 #include "components/prefs/scoped_user_pref_update.h"
@@ -2712,9 +2787,9 @@
2712 #include "components/signin/public/identity_manager/identity_test_utils.h" 2787 #include "components/signin/public/identity_manager/identity_test_utils.h"
2713 #include "content/public/browser/render_frame_host.h" 2788 #include "content/public/browser/render_frame_host.h"
2714 #include "content/public/browser/render_process_host.h" 2789 #include "content/public/browser/render_process_host.h"
2715--- chrome/browser/ui/webui/browser_command/browser_command_handler.cc.orig 2790--- a/chrome/browser/ui/webui/browser_command/browser_command_handler.cc
2716+++ chrome/browser/ui/webui/browser_command/browser_command_handler.cc 2791+++ b/chrome/browser/ui/webui/browser_command/browser_command_handler.cc
2717@@ -16,7 +16,6 @@ 2792@@ -17,7 +17,6 @@
2718 #include "chrome/common/webui_url_constants.h" 2793 #include "chrome/common/webui_url_constants.h"
2719 #include "components/safe_browsing/content/browser/web_ui/safe_browsing_ui.h" 2794 #include "components/safe_browsing/content/browser/web_ui/safe_browsing_ui.h"
2720 #include "components/safe_browsing/core/common/safe_browsing_policy_handler.h" 2795 #include "components/safe_browsing/core/common/safe_browsing_policy_handler.h"
@@ -2723,8 +2798,8 @@
2723 #include "ui/base/window_open_disposition.h" 2798 #include "ui/base/window_open_disposition.h"
2724 2799
2725@@ -61,13 +60,6 @@ void BrowserCommandHandler::CanExecuteCo 2800@@ -61,13 +60,6 @@ void BrowserCommandHandler::CanExecuteCo
2726 can_execute = 2801 case Command::kOpenSafetyCheck:
2727 !chrome::enterprise_util::HasBrowserPoliciesApplied(profile_); 2802 can_execute = !chrome::enterprise_util::IsBrowserManaged(profile_);
2728 break; 2803 break;
2729- case Command::kOpenSafeBrowsingEnhancedProtectionSettings: { 2804- case Command::kOpenSafeBrowsingEnhancedProtectionSettings: {
2730- bool managed = safe_browsing::SafeBrowsingPolicyHandler:: 2805- bool managed = safe_browsing::SafeBrowsingPolicyHandler::
@@ -2736,8 +2811,8 @@
2736 case Command::kOpenFeedbackForm: 2811 case Command::kOpenFeedbackForm:
2737 can_execute = true; 2812 can_execute = true;
2738 break; 2813 break;
2739--- chrome/browser/ui/webui/downloads/downloads_dom_handler.cc.orig 2814--- a/chrome/browser/ui/webui/downloads/downloads_dom_handler.cc
2740+++ chrome/browser/ui/webui/downloads/downloads_dom_handler.cc 2815+++ b/chrome/browser/ui/webui/downloads/downloads_dom_handler.cc
2741@@ -37,7 +37,6 @@ 2816@@ -37,7 +37,6 @@
2742 #include "chrome/common/url_constants.h" 2817 #include "chrome/common/url_constants.h"
2743 #include "components/download/public/common/download_item.h" 2818 #include "components/download/public/common/download_item.h"
@@ -2746,9 +2821,28 @@
2746 #include "content/public/browser/browser_thread.h" 2821 #include "content/public/browser/browser_thread.h"
2747 #include "content/public/browser/download_manager.h" 2822 #include "content/public/browser/download_manager.h"
2748 #include "content/public/browser/render_process_host.h" 2823 #include "content/public/browser/render_process_host.h"
2749--- chrome/browser/ui/webui/management/management_ui_handler.cc.orig 2824--- a/chrome/browser/ui/webui/history/history_ui.cc
2750+++ chrome/browser/ui/webui/management/management_ui_handler.cc 2825+++ b/chrome/browser/ui/webui/history/history_ui.cc
2751@@ -29,7 +29,6 @@ 2826@@ -41,7 +41,6 @@
2827 #include "components/history_clusters/core/history_clusters_prefs.h"
2828 #include "components/history_clusters/core/history_clusters_service.h"
2829 #include "components/prefs/pref_service.h"
2830-#include "components/signin/public/base/signin_pref_names.h"
2831 #include "components/signin/public/identity_manager/identity_manager.h"
2832 #include "components/strings/grit/components_strings.h"
2833 #include "content/public/browser/web_ui.h"
2834@@ -124,8 +123,6 @@ content::WebUIDataSource* CreateHistoryU
2835 source->AddBoolean("allowDeletingHistory", allow_deleting_history);
2836
2837 source->AddBoolean("isGuestSession", profile->IsGuestSession());
2838- source->AddBoolean("isSignInAllowed",
2839- prefs->GetBoolean(prefs::kSigninAllowed));
2840
2841 source->AddBoolean(kIsUserSignedInKey, IsUserSignedIn(profile));
2842
2843--- a/chrome/browser/ui/webui/management/management_ui_handler.cc
2844+++ b/chrome/browser/ui/webui/management/management_ui_handler.cc
2845@@ -30,7 +30,6 @@
2752 #include "chrome/browser/profiles/profile.h" 2846 #include "chrome/browser/profiles/profile.h"
2753 #include "chrome/browser/ui/managed_ui.h" 2847 #include "chrome/browser/ui/managed_ui.h"
2754 #include "chrome/common/pref_names.h" 2848 #include "chrome/common/pref_names.h"
@@ -2756,8 +2850,8 @@
2756 #include "components/strings/grit/components_strings.h" 2850 #include "components/strings/grit/components_strings.h"
2757 #include "content/public/browser/storage_partition.h" 2851 #include "content/public/browser/storage_partition.h"
2758 #include "content/public/browser/web_contents.h" 2852 #include "content/public/browser/web_contents.h"
2759--- chrome/browser/ui/webui/profile_info_watcher.cc.orig 2853--- a/chrome/browser/ui/webui/profile_info_watcher.cc
2760+++ chrome/browser/ui/webui/profile_info_watcher.cc 2854+++ b/chrome/browser/ui/webui/profile_info_watcher.cc
2761@@ -12,7 +12,6 @@ 2855@@ -12,7 +12,6 @@
2762 #include "chrome/browser/signin/identity_manager_factory.h" 2856 #include "chrome/browser/signin/identity_manager_factory.h"
2763 #include "chrome/common/pref_names.h" 2857 #include "chrome/common/pref_names.h"
@@ -2778,8 +2872,8 @@
2778 } 2872 }
2779 2873
2780 ProfileInfoWatcher::~ProfileInfoWatcher() { 2874 ProfileInfoWatcher::~ProfileInfoWatcher() {
2781--- chrome/browser/ui/webui/profile_info_watcher.h.orig 2875--- a/chrome/browser/ui/webui/profile_info_watcher.h
2782+++ chrome/browser/ui/webui/profile_info_watcher.h 2876+++ b/chrome/browser/ui/webui/profile_info_watcher.h
2783@@ -49,7 +49,6 @@ class ProfileInfoWatcher : public Profil 2877@@ -49,7 +49,6 @@ class ProfileInfoWatcher : public Profil
2784 // Called when the authenticated username changes. 2878 // Called when the authenticated username changes.
2785 base::RepeatingClosure callback_; 2879 base::RepeatingClosure callback_;
@@ -2788,9 +2882,9 @@
2788 }; 2882 };
2789 2883
2790 #endif // CHROME_BROWSER_UI_WEBUI_PROFILE_INFO_WATCHER_H_ 2884 #endif // CHROME_BROWSER_UI_WEBUI_PROFILE_INFO_WATCHER_H_
2791--- chrome/browser/ui/webui/reset_password/reset_password_ui.cc.orig 2885--- a/chrome/browser/ui/webui/reset_password/reset_password_ui.cc
2792+++ chrome/browser/ui/webui/reset_password/reset_password_ui.cc 2886+++ b/chrome/browser/ui/webui/reset_password/reset_password_ui.cc
2793@@ -17,7 +17,6 @@ 2887@@ -20,7 +20,6 @@
2794 #include "components/safe_browsing/content/browser/password_protection/password_protection_service.h" 2888 #include "components/safe_browsing/content/browser/password_protection/password_protection_service.h"
2795 #include "components/safe_browsing/core/browser/password_protection/metrics_util.h" 2889 #include "components/safe_browsing/core/browser/password_protection/metrics_util.h"
2796 #include "components/safe_browsing/core/common/proto/csd.pb.h" 2890 #include "components/safe_browsing/core/common/proto/csd.pb.h"
@@ -2798,17 +2892,17 @@
2798 #include "components/strings/grit/components_strings.h" 2892 #include "components/strings/grit/components_strings.h"
2799 #include "components/url_formatter/url_formatter.h" 2893 #include "components/url_formatter/url_formatter.h"
2800 #include "components/user_prefs/user_prefs.h" 2894 #include "components/user_prefs/user_prefs.h"
2801--- chrome/browser/ui/webui/settings/people_handler.cc.orig 2895--- a/chrome/browser/ui/webui/settings/people_handler.cc
2802+++ chrome/browser/ui/webui/settings/people_handler.cc 2896+++ b/chrome/browser/ui/webui/settings/people_handler.cc
2803@@ -41,7 +41,6 @@ 2897@@ -42,7 +42,6 @@
2804 #include "components/prefs/pref_service.h"
2805 #include "components/signin/core/browser/signin_error_controller.h" 2898 #include "components/signin/core/browser/signin_error_controller.h"
2899 #include "components/signin/public/base/consent_level.h"
2806 #include "components/signin/public/base/signin_metrics.h" 2900 #include "components/signin/public/base/signin_metrics.h"
2807-#include "components/signin/public/base/signin_pref_names.h" 2901-#include "components/signin/public/base/signin_pref_names.h"
2808 #include "components/signin/public/identity_manager/accounts_mutator.h" 2902 #include "components/signin/public/identity_manager/accounts_mutator.h"
2809 #include "components/signin/public/identity_manager/consent_level.h"
2810 #include "components/signin/public/identity_manager/identity_manager.h" 2903 #include "components/signin/public/identity_manager/identity_manager.h"
2811@@ -290,10 +289,6 @@ void PeopleHandler::RegisterMessages() { 2904 #include "components/signin/public/identity_manager/primary_account_mutator.h"
2905@@ -301,10 +300,6 @@ void PeopleHandler::RegisterMessages() {
2812 void PeopleHandler::OnJavascriptAllowed() { 2906 void PeopleHandler::OnJavascriptAllowed() {
2813 PrefService* prefs = profile_->GetPrefs(); 2907 PrefService* prefs = profile_->GetPrefs();
2814 profile_pref_registrar_.Init(prefs); 2908 profile_pref_registrar_.Init(prefs);
@@ -2819,8 +2913,8 @@
2819 2913
2820 signin::IdentityManager* identity_manager( 2914 signin::IdentityManager* identity_manager(
2821 IdentityManagerFactory::GetInstance()->GetForProfile(profile_)); 2915 IdentityManagerFactory::GetInstance()->GetForProfile(profile_));
2822--- chrome/browser/ui/webui/settings/safety_check_handler.cc.orig 2916--- a/chrome/browser/ui/webui/settings/safety_check_handler.cc
2823+++ chrome/browser/ui/webui/settings/safety_check_handler.cc 2917+++ b/chrome/browser/ui/webui/settings/safety_check_handler.cc
2824@@ -28,7 +28,6 @@ 2918@@ -28,7 +28,6 @@
2825 #include "chrome/grit/chromium_strings.h" 2919 #include "chrome/grit/chromium_strings.h"
2826 #include "chrome/grit/generated_resources.h" 2920 #include "chrome/grit/generated_resources.h"
@@ -2829,22 +2923,20 @@
2829 #include "components/strings/grit/components_strings.h" 2923 #include "components/strings/grit/components_strings.h"
2830 #include "components/version_info/version_info.h" 2924 #include "components/version_info/version_info.h"
2831 #include "content/public/browser/browser_context.h" 2925 #include "content/public/browser/browser_context.h"
2832--- chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc.orig 2926--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
2833+++ chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc 2927+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
2834@@ -67,7 +67,6 @@ 2928@@ -66,7 +66,6 @@
2835 #include "components/password_manager/core/browser/manage_passwords_referrer.h"
2836 #include "components/password_manager/core/common/password_manager_features.h" 2929 #include "components/password_manager/core/common/password_manager_features.h"
2837 #include "components/prefs/pref_service.h" 2930 #include "components/prefs/pref_service.h"
2931 #include "components/privacy_sandbox/privacy_sandbox_features.h"
2838-#include "components/safe_browsing/core/common/safe_browsing_prefs.h" 2932-#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
2839 #include "components/signin/public/base/signin_buildflags.h" 2933 #include "components/signin/public/base/signin_buildflags.h"
2840 #include "components/strings/grit/components_chromium_strings.h" 2934 #include "components/strings/grit/components_chromium_strings.h"
2841 #include "components/strings/grit/components_strings.h" 2935 #include "components/strings/grit/components_strings.h"
2842@@ -1391,46 +1390,6 @@ void AddPrivacyStrings(content::WebUIDat 2936@@ -1473,44 +1472,6 @@ void AddPrivacyStrings(content::WebUIDat
2843 {"clearBrowsingData", IDS_SETTINGS_CLEAR_BROWSING_DATA}, 2937 {"clearBrowsingData", IDS_SETTINGS_CLEAR_BROWSING_DATA},
2844 {"clearBrowsingDataDescription", IDS_SETTINGS_CLEAR_DATA_DESCRIPTION}, 2938 {"clearBrowsingDataDescription", IDS_SETTINGS_CLEAR_DATA_DESCRIPTION},
2845 {"titleAndCount", IDS_SETTINGS_TITLE_AND_COUNT}, 2939 {"titleAndCount", IDS_SETTINGS_TITLE_AND_COUNT},
2846- {"safeBrowsingEnableExtendedReporting",
2847- IDS_SETTINGS_SAFEBROWSING_ENABLE_REPORTING},
2848- {"safeBrowsingEnableExtendedReportingDesc", 2940- {"safeBrowsingEnableExtendedReportingDesc",
2849- IDS_SETTINGS_SAFEBROWSING_ENABLE_REPORTING_DESC}, 2941- IDS_SETTINGS_SAFEBROWSING_ENABLE_REPORTING_DESC},
2850- {"safeBrowsingEnhanced", IDS_SETTINGS_SAFEBROWSING_ENHANCED}, 2942- {"safeBrowsingEnhanced", IDS_SETTINGS_SAFEBROWSING_ENHANCED},
@@ -2886,7 +2978,7 @@
2886 {"safeBrowsingSectionLabel", IDS_SETTINGS_SAFEBROWSING_SECTION_LABEL}, 2978 {"safeBrowsingSectionLabel", IDS_SETTINGS_SAFEBROWSING_SECTION_LABEL},
2887 {"syncAndGoogleServicesPrivacyDescription", 2979 {"syncAndGoogleServicesPrivacyDescription",
2888 IDS_SETTINGS_SYNC_AND_GOOGLE_SERVICES_PRIVACY_DESC_UNIFIED_CONSENT}, 2980 IDS_SETTINGS_SYNC_AND_GOOGLE_SERVICES_PRIVACY_DESC_UNIFIED_CONSENT},
2889@@ -2626,11 +2585,6 @@ void AddSiteSettingsStrings(content::Web 2981@@ -2811,11 +2772,6 @@ void AddSiteSettingsStrings(content::Web
2890 html_source->AddLocalizedStrings(kSensorsLocalizedStrings); 2982 html_source->AddLocalizedStrings(kSensorsLocalizedStrings);
2891 2983
2892 html_source->AddBoolean( 2984 html_source->AddBoolean(
@@ -2898,19 +2990,19 @@
2898 "enableBlockAutoplayContentSetting", 2990 "enableBlockAutoplayContentSetting",
2899 base::FeatureList::IsEnabled(media::kAutoplayDisableSettings)); 2991 base::FeatureList::IsEnabled(media::kAutoplayDisableSettings));
2900 2992
2901--- chrome/browser/ui/webui/settings/settings_ui.cc.orig 2993--- a/chrome/browser/ui/webui/settings/settings_ui.cc
2902+++ chrome/browser/ui/webui/settings/settings_ui.cc 2994+++ b/chrome/browser/ui/webui/settings/settings_ui.cc
2903@@ -72,7 +72,6 @@ 2995@@ -71,7 +71,6 @@
2904 #include "components/pref_registry/pref_registry_syncable.h" 2996 #include "components/pref_registry/pref_registry_syncable.h"
2905 #include "components/prefs/pref_service.h" 2997 #include "components/prefs/pref_service.h"
2906 #include "components/safe_browsing/core/common/features.h" 2998 #include "components/safe_browsing/core/common/features.h"
2907-#include "components/signin/public/base/signin_pref_names.h" 2999-#include "components/signin/public/base/signin_pref_names.h"
3000 #include "components/signin/public/base/signin_switches.h"
2908 #include "content/public/browser/url_data_source.h" 3001 #include "content/public/browser/url_data_source.h"
2909 #include "content/public/browser/web_contents.h" 3002 #include "content/public/browser/web_contents.h"
2910 #include "content/public/browser/web_ui.h" 3003@@ -258,9 +257,7 @@ SettingsUI::SettingsUI(content::WebUI* w
2911@@ -274,9 +273,7 @@ SettingsUI::SettingsUI(content::WebUI* w 3004 std::make_unique<IncompatibleApplicationsHandler>());
2912 ? "enable-branding-update" 3005 #endif // BUILDFLAG(IS_WIN) && BUILDFLAG(GOOGLE_CHROME_BRANDING)
2913 : "");
2914 3006
2915- html_source->AddBoolean("signinAllowed", !profile->IsGuestSession() && 3007- html_source->AddBoolean("signinAllowed", !profile->IsGuestSession() &&
2916- profile->GetPrefs()->GetBoolean( 3008- profile->GetPrefs()->GetBoolean(
@@ -2919,38 +3011,8 @@
2919 3011
2920 html_source->AddBoolean("showImportPasswords", 3012 html_source->AddBoolean("showImportPasswords",
2921 base::FeatureList::IsEnabled( 3013 base::FeatureList::IsEnabled(
2922--- chrome/browser/ui/webui/signin/dice_turn_sync_on_helper.cc.orig 3014--- a/chrome/browser/ui/webui/signin/inline_login_handler.cc
2923+++ chrome/browser/ui/webui/signin/dice_turn_sync_on_helper.cc 3015+++ b/chrome/browser/ui/webui/signin/inline_login_handler.cc
2924@@ -46,7 +46,6 @@
2925 #include "components/policy/core/common/management/management_service.h"
2926 #include "components/prefs/pref_service.h"
2927 #include "components/signin/public/base/signin_metrics.h"
2928-#include "components/signin/public/base/signin_pref_names.h"
2929 #include "components/signin/public/identity_manager/accounts_mutator.h"
2930 #include "components/signin/public/identity_manager/identity_manager.h"
2931 #include "components/signin/public/identity_manager/primary_account_mutator.h"
2932@@ -248,8 +247,7 @@ DiceTurnSyncOnHelper::DiceTurnSyncOnHelp
2933 // last authenticated account of the current profile, then Chrome will show a
2934 // confirmation dialog before starting sync.
2935 // TODO(skym): Warn for high risk upgrade scenario (https://crbug.com/572754).
2936- std::string last_email =
2937- profile_->GetPrefs()->GetString(prefs::kGoogleServicesLastUsername);
2938+ std::string last_email;
2939 delegate_->ShowMergeSyncDataConfirmation(
2940 last_email, account_info_.email,
2941 base::BindOnce(&DiceTurnSyncOnHelper::OnMergeAccountConfirmation,
2942--- chrome/browser/ui/webui/signin/dice_turn_sync_on_helper_unittest.cc.orig
2943+++ chrome/browser/ui/webui/signin/dice_turn_sync_on_helper_unittest.cc
2944@@ -38,7 +38,6 @@
2945 #include "components/prefs/pref_service.h"
2946 #include "components/signin/public/base/account_consistency_method.h"
2947 #include "components/signin/public/base/signin_metrics.h"
2948-#include "components/signin/public/base/signin_pref_names.h"
2949 #include "components/signin/public/identity_manager/identity_manager.h"
2950 #include "components/signin/public/identity_manager/identity_test_environment.h"
2951 #include "components/signin/public/identity_manager/primary_account_mutator.h"
2952--- chrome/browser/ui/webui/signin/inline_login_handler.cc.orig
2953+++ chrome/browser/ui/webui/signin/inline_login_handler.cc
2954@@ -27,7 +27,6 @@ 3016@@ -27,7 +27,6 @@
2955 #include "chrome/common/pref_names.h" 3017 #include "chrome/common/pref_names.h"
2956 #include "components/metrics/metrics_pref_names.h" 3018 #include "components/metrics/metrics_pref_names.h"
@@ -2959,7 +3021,7 @@
2959 #include "content/public/browser/storage_partition.h" 3021 #include "content/public/browser/storage_partition.h"
2960 #include "content/public/browser/web_contents.h" 3022 #include "content/public/browser/web_contents.h"
2961 #include "content/public/browser/web_ui.h" 3023 #include "content/public/browser/web_ui.h"
2962@@ -127,8 +126,6 @@ void InlineLoginHandler::ContinueHandleI 3024@@ -138,8 +137,6 @@ void InlineLoginHandler::ContinueHandleI
2963 std::string default_email; 3025 std::string default_email;
2964 if (reason == signin_metrics::Reason::kSigninPrimaryAccount || 3026 if (reason == signin_metrics::Reason::kSigninPrimaryAccount ||
2965 reason == signin_metrics::Reason::kForcedSigninPrimaryAccount) { 3027 reason == signin_metrics::Reason::kForcedSigninPrimaryAccount) {
@@ -2968,9 +3030,9 @@
2968 } else { 3030 } else {
2969 if (!net::GetValueForKeyInQuery(current_url, "email", &default_email)) 3031 if (!net::GetValueForKeyInQuery(current_url, "email", &default_email))
2970 default_email.clear(); 3032 default_email.clear();
2971--- chrome/browser/ui/webui/signin/inline_login_handler_impl.cc.orig 3033--- a/chrome/browser/ui/webui/signin/inline_login_handler_impl.cc
2972+++ chrome/browser/ui/webui/signin/inline_login_handler_impl.cc 3034+++ b/chrome/browser/ui/webui/signin/inline_login_handler_impl.cc
2973@@ -70,7 +70,6 @@ 3035@@ -67,7 +67,6 @@
2974 #include "components/prefs/pref_service.h" 3036 #include "components/prefs/pref_service.h"
2975 #include "components/signin/core/browser/about_signin_internals.h" 3037 #include "components/signin/core/browser/about_signin_internals.h"
2976 #include "components/signin/public/base/signin_metrics.h" 3038 #include "components/signin/public/base/signin_metrics.h"
@@ -2978,9 +3040,9 @@
2978 #include "components/signin/public/identity_manager/account_info.h" 3040 #include "components/signin/public/identity_manager/account_info.h"
2979 #include "components/signin/public/identity_manager/accounts_cookie_mutator.h" 3041 #include "components/signin/public/identity_manager/accounts_cookie_mutator.h"
2980 #include "components/signin/public/identity_manager/accounts_mutator.h" 3042 #include "components/signin/public/identity_manager/accounts_mutator.h"
2981--- chrome/browser/ui/webui/signin/signin_error_ui.cc.orig 3043--- a/chrome/browser/ui/webui/signin/signin_error_ui.cc
2982+++ chrome/browser/ui/webui/signin/signin_error_ui.cc 3044+++ b/chrome/browser/ui/webui/signin/signin_error_ui.cc
2983@@ -23,7 +23,6 @@ 3045@@ -27,7 +27,6 @@
2984 #include "chrome/grit/generated_resources.h" 3046 #include "chrome/grit/generated_resources.h"
2985 #include "chrome/grit/signin_resources.h" 3047 #include "chrome/grit/signin_resources.h"
2986 #include "components/prefs/pref_service.h" 3048 #include "components/prefs/pref_service.h"
@@ -2988,7 +3050,7 @@
2988 #include "components/strings/grit/components_strings.h" 3050 #include "components/strings/grit/components_strings.h"
2989 #include "content/public/browser/web_ui.h" 3051 #include "content/public/browser/web_ui.h"
2990 #include "content/public/browser/web_ui_data_source.h" 3052 #include "content/public/browser/web_ui_data_source.h"
2991@@ -115,9 +114,7 @@ void SigninErrorUI::Initialize(Browser* 3053@@ -119,9 +118,7 @@ void SigninErrorUI::Initialize(Browser*
2992 if (is_profile_blocked) { 3054 if (is_profile_blocked) {
2993 source->AddLocalizedString("profileBlockedMessage", 3055 source->AddLocalizedString("profileBlockedMessage",
2994 IDS_OLD_PROFILES_DISABLED_MESSAGE); 3056 IDS_OLD_PROFILES_DISABLED_MESSAGE);
@@ -2999,8 +3061,8 @@
2999 if (allowed_domain.empty()) { 3061 if (allowed_domain.empty()) {
3000 source->AddLocalizedString( 3062 source->AddLocalizedString(
3001 "profileBlockedAddPersonSuggestion", 3063 "profileBlockedAddPersonSuggestion",
3002--- chrome/browser/ui/webui/signin/signin_utils_desktop.cc.orig 3064--- a/chrome/browser/ui/webui/signin/signin_utils_desktop.cc
3003+++ chrome/browser/ui/webui/signin/signin_utils_desktop.cc 3065+++ b/chrome/browser/ui/webui/signin/signin_utils_desktop.cc
3004@@ -18,7 +18,6 @@ 3066@@ -18,7 +18,6 @@
3005 #include "chrome/grit/chromium_strings.h" 3067 #include "chrome/grit/chromium_strings.h"
3006 #include "chrome/grit/generated_resources.h" 3068 #include "chrome/grit/generated_resources.h"
@@ -3028,8 +3090,38 @@
3028 return SigninUIError::ProfileWasUsedByAnotherAccount(email, last_email); 3090 return SigninUIError::ProfileWasUsedByAnotherAccount(email, last_email);
3029 } 3091 }
3030 } 3092 }
3031--- chrome/browser/ui/webui/welcome/welcome_ui.cc.orig 3093--- a/chrome/browser/ui/webui/signin/turn_sync_on_helper.cc
3032+++ chrome/browser/ui/webui/welcome/welcome_ui.cc 3094+++ b/chrome/browser/ui/webui/signin/turn_sync_on_helper.cc
3095@@ -47,7 +47,6 @@
3096 #include "components/policy/core/common/management/management_service.h"
3097 #include "components/prefs/pref_service.h"
3098 #include "components/signin/public/base/signin_metrics.h"
3099-#include "components/signin/public/base/signin_pref_names.h"
3100 #include "components/signin/public/identity_manager/accounts_mutator.h"
3101 #include "components/signin/public/identity_manager/identity_manager.h"
3102 #include "components/signin/public/identity_manager/primary_account_mutator.h"
3103@@ -226,8 +225,7 @@ TurnSyncOnHelper::TurnSyncOnHelper(
3104 // last authenticated account of the current profile, then Chrome will show a
3105 // confirmation dialog before starting sync.
3106 // TODO(skym): Warn for high risk upgrade scenario (https://crbug.com/572754).
3107- std::string last_email =
3108- profile_->GetPrefs()->GetString(prefs::kGoogleServicesLastUsername);
3109+ std::string last_email;
3110 delegate_->ShowMergeSyncDataConfirmation(
3111 last_email, account_info_.email,
3112 base::BindOnce(&TurnSyncOnHelper::OnMergeAccountConfirmation,
3113--- a/chrome/browser/ui/webui/signin/turn_sync_on_helper_unittest.cc
3114+++ b/chrome/browser/ui/webui/signin/turn_sync_on_helper_unittest.cc
3115@@ -46,7 +46,6 @@
3116 #include "components/signin/public/base/account_consistency_method.h"
3117 #include "components/signin/public/base/consent_level.h"
3118 #include "components/signin/public/base/signin_metrics.h"
3119-#include "components/signin/public/base/signin_pref_names.h"
3120 #include "components/signin/public/base/signin_switches.h"
3121 #include "components/signin/public/identity_manager/identity_manager.h"
3122 #include "components/signin/public/identity_manager/identity_test_environment.h"
3123--- a/chrome/browser/ui/webui/welcome/welcome_ui.cc
3124+++ b/chrome/browser/ui/webui/welcome/welcome_ui.cc
3033@@ -24,7 +24,6 @@ 3125@@ -24,7 +24,6 @@
3034 #include "chrome/grit/welcome_resources.h" 3126 #include "chrome/grit/welcome_resources.h"
3035 #include "chrome/grit/welcome_resources_map.h" 3127 #include "chrome/grit/welcome_resources_map.h"
@@ -3047,8 +3139,8 @@
3047 html_source->SetRequestFilter( 3139 html_source->SetRequestFilter(
3048 base::BindRepeating(&ShouldHandleRequestCallback, 3140 base::BindRepeating(&ShouldHandleRequestCallback,
3049 weak_ptr_factory_.GetWeakPtr()), 3141 weak_ptr_factory_.GetWeakPtr()),
3050--- chrome/browser/unified_consent/unified_consent_service_factory.cc.orig 3142--- a/chrome/browser/unified_consent/unified_consent_service_factory.cc
3051+++ chrome/browser/unified_consent/unified_consent_service_factory.cc 3143+++ b/chrome/browser/unified_consent/unified_consent_service_factory.cc
3052@@ -13,7 +13,6 @@ 3144@@ -13,7 +13,6 @@
3053 #include "components/embedder_support/pref_names.h" 3145 #include "components/embedder_support/pref_names.h"
3054 #include "components/keyed_service/content/browser_context_dependency_manager.h" 3146 #include "components/keyed_service/content/browser_context_dependency_manager.h"
@@ -3063,10 +3155,10 @@
3063 prefs::kSearchSuggestEnabled, embedder_support::kAlternateErrorPagesEnabled, 3155 prefs::kSearchSuggestEnabled, embedder_support::kAlternateErrorPagesEnabled,
3064- prefs::kSafeBrowsingEnabled, prefs::kSafeBrowsingScoutReportingEnabled, 3156- prefs::kSafeBrowsingEnabled, prefs::kSafeBrowsingScoutReportingEnabled,
3065 spellcheck::prefs::kSpellCheckUseSpellingService, 3157 spellcheck::prefs::kSpellCheckUseSpellingService,
3066 #if defined(OS_ANDROID) 3158 #if BUILDFLAG(IS_ANDROID)
3067 prefs::kContextualSearchEnabled 3159 prefs::kContextualSearchEnabled
3068--- chrome/common/extensions/api/privacy.json.orig 3160--- a/chrome/common/extensions/api/privacy.json
3069+++ chrome/common/extensions/api/privacy.json 3161+++ b/chrome/common/extensions/api/privacy.json
3070@@ -63,16 +63,6 @@ 3162@@ -63,16 +63,6 @@
3071 "value": ["passwordSavingEnabled", {"type":"boolean"}], 3163 "value": ["passwordSavingEnabled", {"type":"boolean"}],
3072 "description": "If enabled, the password manager will ask if you want to save passwords. This preference's value is a boolean, defaulting to <code>true</code>." 3164 "description": "If enabled, the password manager will ask if you want to save passwords. This preference's value is a boolean, defaulting to <code>true</code>."
@@ -3084,9 +3176,9 @@
3084 "searchSuggestEnabled": { 3176 "searchSuggestEnabled": {
3085 "$ref": "types.ChromeSetting", 3177 "$ref": "types.ChromeSetting",
3086 "value": ["searchSuggestEnabled", {"type":"boolean"}], 3178 "value": ["searchSuggestEnabled", {"type":"boolean"}],
3087--- components/password_manager/core/browser/leak_detection_delegate.cc.orig 3179--- a/components/password_manager/core/browser/leak_detection_delegate.cc
3088+++ components/password_manager/core/browser/leak_detection_delegate.cc 3180+++ b/components/password_manager/core/browser/leak_detection_delegate.cc
3089@@ -22,7 +22,6 @@ 3181@@ -23,7 +23,6 @@
3090 #include "components/password_manager/core/common/password_manager_features.h" 3182 #include "components/password_manager/core/common/password_manager_features.h"
3091 #include "components/password_manager/core/common/password_manager_pref_names.h" 3183 #include "components/password_manager/core/common/password_manager_pref_names.h"
3092 #include "components/prefs/pref_service.h" 3184 #include "components/prefs/pref_service.h"
@@ -3094,7 +3186,7 @@
3094 #include "services/network/public/cpp/shared_url_loader_factory.h" 3186 #include "services/network/public/cpp/shared_url_loader_factory.h"
3095 3187
3096 namespace password_manager { 3188 namespace password_manager {
3097@@ -169,28 +168,7 @@ void LeakDetectionDelegate::OnError(Leak 3189@@ -176,28 +175,7 @@ void LeakDetectionDelegate::OnError(Leak
3098 3190
3099 bool CanStartLeakCheck(const PrefService& prefs, 3191 bool CanStartLeakCheck(const PrefService& prefs,
3100 const PasswordManagerClient* client) { 3192 const PasswordManagerClient* client) {
@@ -3124,18 +3216,18 @@
3124 } 3216 }
3125 3217
3126 } // namespace password_manager 3218 } // namespace password_manager
3127--- components/password_manager/core/browser/password_bubble_experiment.cc.orig 3219--- a/components/password_manager/core/browser/password_bubble_experiment.cc
3128+++ components/password_manager/core/browser/password_bubble_experiment.cc 3220+++ b/components/password_manager/core/browser/password_bubble_experiment.cc
3129@@ -18,7 +18,6 @@ 3221@@ -18,7 +18,6 @@
3130 #include "components/prefs/pref_registry_simple.h" 3222 #include "components/prefs/pref_registry_simple.h"
3131 #include "components/prefs/pref_service.h" 3223 #include "components/prefs/pref_service.h"
3132 #include "components/signin/public/base/signin_buildflags.h" 3224 #include "components/signin/public/base/signin_buildflags.h"
3133-#include "components/signin/public/base/signin_pref_names.h" 3225-#include "components/signin/public/base/signin_pref_names.h"
3226 #include "components/sync/base/user_selectable_type.h"
3134 #include "components/sync/driver/sync_service.h" 3227 #include "components/sync/driver/sync_service.h"
3135 #include "components/sync/driver/sync_user_settings.h" 3228 #include "components/sync/driver/sync_user_settings.h"
3136 3229--- a/components/password_manager/core/browser/password_reuse_detector.cc
3137--- components/password_manager/core/browser/password_reuse_detector.cc.orig 3230+++ b/components/password_manager/core/browser/password_reuse_detector.cc
3138+++ components/password_manager/core/browser/password_reuse_detector.cc
3139@@ -15,7 +15,6 @@ 3231@@ -15,7 +15,6 @@
3140 #include "components/password_manager/core/browser/password_reuse_detector_consumer.h" 3232 #include "components/password_manager/core/browser/password_reuse_detector_consumer.h"
3141 #include "components/password_manager/core/browser/password_store_consumer.h" 3233 #include "components/password_manager/core/browser/password_store_consumer.h"
@@ -3144,7 +3236,7 @@
3144 #include "google_apis/gaia/gaia_auth_util.h" 3236 #include "google_apis/gaia/gaia_auth_util.h"
3145 #include "google_apis/gaia/gaia_urls.h" 3237 #include "google_apis/gaia/gaia_urls.h"
3146 #include "url/origin.h" 3238 #include "url/origin.h"
3147@@ -205,9 +204,7 @@ PasswordReuseDetector::CheckNonGaiaEnter 3239@@ -216,9 +215,7 @@ PasswordReuseDetector::CheckNonGaiaEnter
3148 // Skips password reuse check if |domain| matches enterprise login URL or 3240 // Skips password reuse check if |domain| matches enterprise login URL or
3149 // enterprise change password URL. 3241 // enterprise change password URL.
3150 GURL page_url(domain); 3242 GURL page_url(domain);
@@ -3155,8 +3247,8 @@
3155 return absl::nullopt; 3247 return absl::nullopt;
3156 } 3248 }
3157 3249
3158--- components/password_manager/core/browser/password_reuse_manager_impl.cc.orig 3250--- a/components/password_manager/core/browser/password_reuse_manager_impl.cc
3159+++ components/password_manager/core/browser/password_reuse_manager_impl.cc 3251+++ b/components/password_manager/core/browser/password_reuse_manager_impl.cc
3160@@ -9,7 +9,6 @@ 3252@@ -9,7 +9,6 @@
3161 #include "components/password_manager/core/browser/password_store_signin_notifier.h" 3253 #include "components/password_manager/core/browser/password_store_signin_notifier.h"
3162 #include "components/password_manager/core/common/password_manager_features.h" 3254 #include "components/password_manager/core/common/password_manager_features.h"
@@ -3165,7 +3257,7 @@
3165 3257
3166 namespace password_manager { 3258 namespace password_manager {
3167 3259
3168@@ -318,20 +317,6 @@ void PasswordReuseManagerImpl::ScheduleP 3260@@ -320,20 +319,6 @@ void PasswordReuseManagerImpl::ScheduleP
3169 3261
3170 void PasswordReuseManagerImpl::ScheduleEnterprisePasswordURLUpdate() { 3262 void PasswordReuseManagerImpl::ScheduleEnterprisePasswordURLUpdate() {
3171 DCHECK(main_task_runner_->RunsTasksInCurrentSequence()); 3263 DCHECK(main_task_runner_->RunsTasksInCurrentSequence());
@@ -3186,9 +3278,9 @@
3186 } 3278 }
3187 3279
3188 void PasswordReuseManagerImpl::OnGetPasswordStoreResults( 3280 void PasswordReuseManagerImpl::OnGetPasswordStoreResults(
3189--- components/password_manager/core/browser/password_store.cc.orig 3281--- a/components/password_manager/core/browser/password_store.cc
3190+++ components/password_manager/core/browser/password_store.cc 3282+++ b/components/password_manager/core/browser/password_store.cc
3191@@ -39,7 +39,6 @@ 3283@@ -40,7 +40,6 @@
3192 #include "components/password_manager/core/common/password_manager_features.h" 3284 #include "components/password_manager/core/common/password_manager_features.h"
3193 #include "components/password_manager/core/common/password_manager_pref_names.h" 3285 #include "components/password_manager/core/common/password_manager_pref_names.h"
3194 #include "components/prefs/pref_service.h" 3286 #include "components/prefs/pref_service.h"
@@ -3196,8 +3288,8 @@
3196 #include "components/sync/model/proxy_model_type_controller_delegate.h" 3288 #include "components/sync/model/proxy_model_type_controller_delegate.h"
3197 3289
3198 namespace password_manager { 3290 namespace password_manager {
3199--- components/password_manager/core/browser/password_sync_util.cc.orig 3291--- a/components/password_manager/core/browser/password_sync_util.cc
3200+++ components/password_manager/core/browser/password_sync_util.cc 3292+++ b/components/password_manager/core/browser/password_sync_util.cc
3201@@ -8,7 +8,6 @@ 3293@@ -8,7 +8,6 @@
3202 #include "build/build_config.h" 3294 #include "build/build_config.h"
3203 #include "components/password_manager/core/browser/password_form.h" 3295 #include "components/password_manager/core/browser/password_form.h"
@@ -3218,9 +3310,9 @@
3218 return false; 3310 return false;
3219 } 3311 }
3220 3312
3221--- components/password_manager/core/browser/sync_credentials_filter_unittest.cc.orig 3313--- a/components/password_manager/core/browser/sync_credentials_filter_unittest.cc
3222+++ components/password_manager/core/browser/sync_credentials_filter_unittest.cc 3314+++ b/components/password_manager/core/browser/sync_credentials_filter_unittest.cc
3223@@ -29,7 +29,6 @@ 3315@@ -30,7 +30,6 @@
3224 #include "components/password_manager/core/common/password_manager_features.h" 3316 #include "components/password_manager/core/common/password_manager_features.h"
3225 #include "components/prefs/pref_registry_simple.h" 3317 #include "components/prefs/pref_registry_simple.h"
3226 #include "components/prefs/testing_pref_service.h" 3318 #include "components/prefs/testing_pref_service.h"
@@ -3228,8 +3320,18 @@
3228 #include "testing/gtest/include/gtest/gtest.h" 3320 #include "testing/gtest/include/gtest/gtest.h"
3229 3321
3230 namespace password_manager { 3322 namespace password_manager {
3231--- components/safe_browsing/content/browser/base_blocking_page.cc.orig 3323--- a/components/reputation/core/safety_tips_config.cc
3232+++ components/safe_browsing/content/browser/base_blocking_page.cc 3324+++ b/components/reputation/core/safety_tips_config.cc
3325@@ -5,6 +5,7 @@
3326 #include "components/reputation/core/safety_tips_config.h"
3327
3328 #include "base/no_destructor.h"
3329+#include "base/notreached.h"
3330 #include "base/ranges/algorithm.h"
3331 #include "components/safe_browsing/core/browser/db/v4_protocol_manager_util.h"
3332 #include "third_party/re2/src/re2/re2.h"
3333--- a/components/safe_browsing/content/browser/base_blocking_page.cc
3334+++ b/components/safe_browsing/content/browser/base_blocking_page.cc
3233@@ -13,7 +13,6 @@ 3335@@ -13,7 +13,6 @@
3234 #include "base/time/time.h" 3336 #include "base/time/time.h"
3235 #include "components/safe_browsing/content/browser/safe_browsing_controller_client.h" 3337 #include "components/safe_browsing/content/browser/safe_browsing_controller_client.h"
@@ -3238,9 +3340,9 @@
3238 #include "components/security_interstitials/content/security_interstitial_controller_client.h" 3340 #include "components/security_interstitials/content/security_interstitial_controller_client.h"
3239 #include "components/security_interstitials/content/settings_page_helper.h" 3341 #include "components/security_interstitials/content/settings_page_helper.h"
3240 #include "components/security_interstitials/content/unsafe_resource_util.h" 3342 #include "components/security_interstitials/content/unsafe_resource_util.h"
3241--- components/safe_browsing/content/browser/client_side_detection_service.cc.orig 3343--- a/components/safe_browsing/content/browser/client_side_detection_service.cc
3242+++ components/safe_browsing/content/browser/client_side_detection_service.cc 3344+++ b/components/safe_browsing/content/browser/client_side_detection_service.cc
3243@@ -28,7 +28,6 @@ 3345@@ -27,7 +27,6 @@
3244 #include "components/safe_browsing/core/common/features.h" 3346 #include "components/safe_browsing/core/common/features.h"
3245 #include "components/safe_browsing/core/common/proto/client_model.pb.h" 3347 #include "components/safe_browsing/core/common/proto/client_model.pb.h"
3246 #include "components/safe_browsing/core/common/proto/csd.pb.h" 3348 #include "components/safe_browsing/core/common/proto/csd.pb.h"
@@ -3248,8 +3350,8 @@
3248 #include "components/safe_browsing/core/common/safebrowsing_constants.h" 3350 #include "components/safe_browsing/core/common/safebrowsing_constants.h"
3249 #include "components/safe_browsing/core/common/utils.h" 3351 #include "components/safe_browsing/core/common/utils.h"
3250 #include "content/public/browser/browser_task_traits.h" 3352 #include "content/public/browser/browser_task_traits.h"
3251--- components/safe_browsing/content/browser/safe_browsing_navigation_observer_manager.cc.orig 3353--- a/components/safe_browsing/content/browser/safe_browsing_navigation_observer_manager.cc
3252+++ components/safe_browsing/content/browser/safe_browsing_navigation_observer_manager.cc 3354+++ b/components/safe_browsing/content/browser/safe_browsing_navigation_observer_manager.cc
3253@@ -20,7 +20,6 @@ 3355@@ -20,7 +20,6 @@
3254 #include "components/safe_browsing/content/browser/safe_browsing_navigation_observer_manager_util.h" 3356 #include "components/safe_browsing/content/browser/safe_browsing_navigation_observer_manager_util.h"
3255 #include "components/safe_browsing/content/browser/web_ui/safe_browsing_ui.h" 3357 #include "components/safe_browsing/content/browser/web_ui/safe_browsing_ui.h"
@@ -3257,8 +3359,8 @@
3257-#include "components/safe_browsing/core/common/safe_browsing_prefs.h" 3359-#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
3258 #include "components/safe_browsing/core/common/utils.h" 3360 #include "components/safe_browsing/core/common/utils.h"
3259 #include "components/sessions/content/session_tab_helper.h" 3361 #include "components/sessions/content/session_tab_helper.h"
3260 #include "content/public/browser/navigation_details.h" 3362 #include "content/public/browser/browser_context.h"
3261@@ -306,7 +305,7 @@ GURL SafeBrowsingNavigationObserverManag 3363@@ -339,7 +338,7 @@ GURL SafeBrowsingNavigationObserverManag
3262 bool SafeBrowsingNavigationObserverManager::IsEnabledAndReady( 3364 bool SafeBrowsingNavigationObserverManager::IsEnabledAndReady(
3263 PrefService* prefs, 3365 PrefService* prefs,
3264 bool has_safe_browsing_service) { 3366 bool has_safe_browsing_service) {
@@ -3267,8 +3369,8 @@
3267 } 3369 }
3268 3370
3269 // static 3371 // static
3270--- components/safe_browsing/content/browser/triggers/suspicious_site_trigger_unittest.cc.orig 3372--- a/components/safe_browsing/content/browser/triggers/suspicious_site_trigger_unittest.cc
3271+++ components/safe_browsing/content/browser/triggers/suspicious_site_trigger_unittest.cc 3373+++ b/components/safe_browsing/content/browser/triggers/suspicious_site_trigger_unittest.cc
3272@@ -11,7 +11,6 @@ 3374@@ -11,7 +11,6 @@
3273 #include "build/build_config.h" 3375 #include "build/build_config.h"
3274 #include "components/prefs/testing_pref_service.h" 3376 #include "components/prefs/testing_pref_service.h"
@@ -3277,9 +3379,9 @@
3277 #include "content/public/test/browser_task_environment.h" 3379 #include "content/public/test/browser_task_environment.h"
3278 #include "content/public/test/navigation_simulator.h" 3380 #include "content/public/test/navigation_simulator.h"
3279 #include "content/public/test/test_renderer_host.h" 3381 #include "content/public/test/test_renderer_host.h"
3280--- components/safe_browsing/content/browser/triggers/trigger_manager.cc.orig 3382--- a/components/safe_browsing/content/browser/triggers/trigger_manager.cc
3281+++ components/safe_browsing/content/browser/triggers/trigger_manager.cc 3383+++ b/components/safe_browsing/content/browser/triggers/trigger_manager.cc
3282@@ -12,7 +12,6 @@ 3384@@ -13,7 +13,6 @@
3283 #include "components/safe_browsing/content/browser/base_ui_manager.h" 3385 #include "components/safe_browsing/content/browser/base_ui_manager.h"
3284 #include "components/safe_browsing/content/browser/threat_details.h" 3386 #include "components/safe_browsing/content/browser/threat_details.h"
3285 #include "components/safe_browsing/core/common/features.h" 3387 #include "components/safe_browsing/core/common/features.h"
@@ -3287,7 +3389,7 @@
3287 #include "components/security_interstitials/core/unsafe_resource.h" 3389 #include "components/security_interstitials/core/unsafe_resource.h"
3288 #include "content/public/browser/browser_context.h" 3390 #include "content/public/browser/browser_context.h"
3289 #include "content/public/browser/browser_thread.h" 3391 #include "content/public/browser/browser_thread.h"
3290@@ -85,16 +84,16 @@ SBErrorOptions TriggerManager::GetSBErro 3392@@ -86,16 +85,16 @@ SBErrorOptions TriggerManager::GetSBErro
3291 const PrefService& pref_service, 3393 const PrefService& pref_service,
3292 content::WebContents* web_contents) { 3394 content::WebContents* web_contents) {
3293 return SBErrorOptions(/*is_main_frame_load_blocked=*/false, 3395 return SBErrorOptions(/*is_main_frame_load_blocked=*/false,
@@ -3310,14 +3412,14 @@
3310 /*help_center_article_link=*/std::string()); 3412 /*help_center_article_link=*/std::string());
3311 } 3413 }
3312 3414
3313--- components/safe_browsing/content/browser/triggers/trigger_throttler.cc.orig 3415--- a/components/safe_browsing/content/browser/triggers/trigger_throttler.cc
3314+++ components/safe_browsing/content/browser/triggers/trigger_throttler.cc 3416+++ b/components/safe_browsing/content/browser/triggers/trigger_throttler.cc
3315@@ -197,28 +197,6 @@ void TriggerThrottler::LoadTriggerEvents 3417@@ -197,28 +197,6 @@ void TriggerThrottler::LoadTriggerEvents
3316 trigger_events_.clear(); 3418 trigger_events_.clear();
3317 if (!local_state_prefs_) 3419 if (!local_state_prefs_)
3318 return; 3420 return;
3319- 3421-
3320- const base::DictionaryValue* event_dict = local_state_prefs_->GetDictionary( 3422- const base::Value* event_dict = local_state_prefs_->GetDictionary(
3321- prefs::kSafeBrowsingTriggerEventTimestamps); 3423- prefs::kSafeBrowsingTriggerEventTimestamps);
3322- for (auto trigger_pair : event_dict->DictItems()) { 3424- for (auto trigger_pair : event_dict->DictItems()) {
3323- // Check that the first item in the pair is convertible to a trigger type 3425- // Check that the first item in the pair is convertible to a trigger type
@@ -3332,7 +3434,7 @@
3332- continue; 3434- continue;
3333- 3435-
3334- const TriggerType trigger_type = static_cast<TriggerType>(trigger_type_int); 3436- const TriggerType trigger_type = static_cast<TriggerType>(trigger_type_int);
3335- for (const auto& timestamp : trigger_pair.second.GetList()) { 3437- for (const auto& timestamp : trigger_pair.second.GetListDeprecated()) {
3336- if (timestamp.is_double()) 3438- if (timestamp.is_double())
3337- trigger_events_[trigger_type].push_back( 3439- trigger_events_[trigger_type].push_back(
3338- base::Time::FromDoubleT(timestamp.GetDouble())); 3440- base::Time::FromDoubleT(timestamp.GetDouble()));
@@ -3351,8 +3453,8 @@
3351 } 3453 }
3352 3454
3353 size_t TriggerThrottler::GetDailyQuotaForTrigger( 3455 size_t TriggerThrottler::GetDailyQuotaForTrigger(
3354--- components/safe_browsing/content/browser/triggers/trigger_throttler_unittest.cc.orig 3456--- a/components/safe_browsing/content/browser/triggers/trigger_throttler_unittest.cc
3355+++ components/safe_browsing/content/browser/triggers/trigger_throttler_unittest.cc 3457+++ b/components/safe_browsing/content/browser/triggers/trigger_throttler_unittest.cc
3356@@ -9,7 +9,6 @@ 3458@@ -9,7 +9,6 @@
3357 #include "base/test/simple_test_clock.h" 3459 #include "base/test/simple_test_clock.h"
3358 #include "components/prefs/testing_pref_service.h" 3460 #include "components/prefs/testing_pref_service.h"
@@ -3361,9 +3463,9 @@
3361 #include "testing/gmock/include/gmock/gmock.h" 3463 #include "testing/gmock/include/gmock/gmock.h"
3362 #include "testing/gtest/include/gtest/gtest.h" 3464 #include "testing/gtest/include/gtest/gtest.h"
3363 3465
3364--- components/safe_browsing/content/browser/ui_manager.cc.orig 3466--- a/components/safe_browsing/content/browser/ui_manager.cc
3365+++ components/safe_browsing/content/browser/ui_manager.cc 3467+++ b/components/safe_browsing/content/browser/ui_manager.cc
3366@@ -18,7 +18,6 @@ 3468@@ -17,7 +17,6 @@
3367 #include "components/safe_browsing/core/browser/db/v4_protocol_manager_util.h" 3469 #include "components/safe_browsing/core/browser/db/v4_protocol_manager_util.h"
3368 #include "components/safe_browsing/core/browser/ping_manager.h" 3470 #include "components/safe_browsing/core/browser/ping_manager.h"
3369 #include "components/safe_browsing/core/common/features.h" 3471 #include "components/safe_browsing/core/common/features.h"
@@ -3371,9 +3473,9 @@
3371 #include "components/security_interstitials/content/security_interstitial_tab_helper.h" 3473 #include "components/security_interstitials/content/security_interstitial_tab_helper.h"
3372 #include "components/security_interstitials/content/unsafe_resource_util.h" 3474 #include "components/security_interstitials/content/unsafe_resource_util.h"
3373 #include "components/security_interstitials/core/unsafe_resource.h" 3475 #include "components/security_interstitials/core/unsafe_resource.h"
3374--- components/safe_browsing/content/browser/ui_manager_unittest.cc.orig 3476--- a/components/safe_browsing/content/browser/ui_manager_unittest.cc
3375+++ components/safe_browsing/content/browser/ui_manager_unittest.cc 3477+++ b/components/safe_browsing/content/browser/ui_manager_unittest.cc
3376@@ -14,7 +14,6 @@ 3478@@ -15,7 +15,6 @@
3377 #include "components/safe_browsing/content/browser/safe_browsing_controller_client.h" 3479 #include "components/safe_browsing/content/browser/safe_browsing_controller_client.h"
3378 #include "components/safe_browsing/content/browser/ui_manager.h" 3480 #include "components/safe_browsing/content/browser/ui_manager.h"
3379 #include "components/safe_browsing/core/browser/db/util.h" 3481 #include "components/safe_browsing/core/browser/db/util.h"
@@ -3381,38 +3483,38 @@
3381 #include "components/security_interstitials/content/security_interstitial_controller_client.h" 3483 #include "components/security_interstitials/content/security_interstitial_controller_client.h"
3382 #include "components/security_interstitials/content/settings_page_helper.h" 3484 #include "components/security_interstitials/content/settings_page_helper.h"
3383 #include "components/security_interstitials/content/unsafe_resource_util.h" 3485 #include "components/security_interstitials/content/unsafe_resource_util.h"
3384--- components/safe_browsing/content/browser/web_ui/safe_browsing_ui.cc.orig 3486--- a/components/safe_browsing/content/browser/web_ui/safe_browsing_ui.cc
3385+++ components/safe_browsing/content/browser/web_ui/safe_browsing_ui.cc 3487+++ b/components/safe_browsing/content/browser/web_ui/safe_browsing_ui.cc
3386@@ -32,7 +32,6 @@ 3488@@ -32,7 +32,6 @@
3387 #include "components/safe_browsing/core/browser/referrer_chain_provider.h" 3489 #include "components/safe_browsing/core/browser/referrer_chain_provider.h"
3388 #include "components/safe_browsing/core/common/features.h" 3490 #include "components/safe_browsing/core/common/features.h"
3389 #include "components/safe_browsing/core/common/proto/csd.pb.h" 3491 #include "components/safe_browsing/core/common/proto/csd.pb.h"
3390-#include "components/safe_browsing/core/common/safe_browsing_prefs.h" 3492-#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
3493 #include "content/public/browser/global_routing_id.h"
3391 #include "services/network/public/mojom/cookie_manager.mojom.h" 3494 #include "services/network/public/mojom/cookie_manager.mojom.h"
3392 #if BUILDFLAG(FULL_SAFE_BROWSING) 3495 #if BUILDFLAG(FULL_SAFE_BROWSING)
3393 #include "components/enterprise/common/proto/connectors.pb.h" 3496@@ -2050,18 +2049,13 @@ void SafeBrowsingUIHandler::GetPrefs(con
3394@@ -2035,18 +2034,13 @@ void SafeBrowsingUIHandler::GetPrefs(con
3395 AllowJavascript(); 3497 AllowJavascript();
3396 DCHECK(!args->GetList().empty()); 3498 DCHECK(!args.empty());
3397 std::string callback_id = args->GetList()[0].GetString(); 3499 std::string callback_id = args[0].GetString();
3398- ResolveJavascriptCallback(base::Value(callback_id), 3500- ResolveJavascriptCallback(base::Value(callback_id),
3399- safe_browsing::GetSafeBrowsingPreferencesList( 3501- safe_browsing::GetSafeBrowsingPreferencesList(
3400- user_prefs::UserPrefs::Get(browser_context_))); 3502- user_prefs::UserPrefs::Get(browser_context_)));
3401+ ResolveJavascriptCallback(base::Value(callback_id), base::ListValue()); 3503+ ResolveJavascriptCallback(base::Value(callback_id), base::ListValue());
3402 } 3504 }
3403 3505
3404 void SafeBrowsingUIHandler::GetPolicies(const base::ListValue* args) { 3506 void SafeBrowsingUIHandler::GetPolicies(const base::Value::List& args) {
3405 AllowJavascript(); 3507 AllowJavascript();
3406 DCHECK(!args->GetList().empty()); 3508 DCHECK(!args.empty());
3407 std::string callback_id = args->GetList()[0].GetString(); 3509 std::string callback_id = args[0].GetString();
3408- ResolveJavascriptCallback(base::Value(callback_id), 3510- ResolveJavascriptCallback(base::Value(callback_id),
3409- safe_browsing::GetSafeBrowsingPoliciesList( 3511- safe_browsing::GetSafeBrowsingPoliciesList(
3410- user_prefs::UserPrefs::Get(browser_context_))); 3512- user_prefs::UserPrefs::Get(browser_context_)));
3411 } 3513 }
3412 3514
3413 void SafeBrowsingUIHandler::GetCookie(const base::ListValue* args) { 3515 void SafeBrowsingUIHandler::GetCookie(const base::Value::List& args) {
3414--- components/safe_browsing/core/browser/db/hit_report.h.orig 3516--- a/components/safe_browsing/core/browser/db/hit_report.h
3415+++ components/safe_browsing/core/browser/db/hit_report.h 3517+++ b/components/safe_browsing/core/browser/db/hit_report.h
3416@@ -8,7 +8,6 @@ 3518@@ -8,7 +8,6 @@
3417 #define COMPONENTS_SAFE_BROWSING_CORE_BROWSER_DB_HIT_REPORT_H_ 3519 #define COMPONENTS_SAFE_BROWSING_CORE_BROWSER_DB_HIT_REPORT_H_
3418 3520
@@ -3429,8 +3531,8 @@
3429 bool is_enhanced_protection = false; 3531 bool is_enhanced_protection = false;
3430 bool is_metrics_reporting_active; 3532 bool is_metrics_reporting_active;
3431 3533
3432--- components/safe_browsing/core/browser/db/util.h.orig 3534--- a/components/safe_browsing/core/browser/db/util.h
3433+++ components/safe_browsing/core/browser/db/util.h 3535+++ b/components/safe_browsing/core/browser/db/util.h
3434@@ -18,7 +18,6 @@ 3536@@ -18,7 +18,6 @@
3435 #include "base/strings/string_piece.h" 3537 #include "base/strings/string_piece.h"
3436 #include "base/trace_event/traced_value.h" 3538 #include "base/trace_event/traced_value.h"
@@ -3439,9 +3541,9 @@
3439 3541
3440 namespace safe_browsing { 3542 namespace safe_browsing {
3441 3543
3442--- components/safe_browsing/core/browser/db/v4_local_database_manager.cc.orig 3544--- a/components/safe_browsing/core/browser/db/v4_local_database_manager.cc
3443+++ components/safe_browsing/core/browser/db/v4_local_database_manager.cc 3545+++ b/components/safe_browsing/core/browser/db/v4_local_database_manager.cc
3444@@ -337,10 +337,9 @@ const V4LocalDatabaseManager* 3546@@ -334,10 +334,9 @@ const V4LocalDatabaseManager*
3445 scoped_refptr<V4LocalDatabaseManager> V4LocalDatabaseManager::Create( 3547 scoped_refptr<V4LocalDatabaseManager> V4LocalDatabaseManager::Create(
3446 const base::FilePath& base_path, 3548 const base::FilePath& base_path,
3447 scoped_refptr<base::SequencedTaskRunner> ui_task_runner, 3549 scoped_refptr<base::SequencedTaskRunner> ui_task_runner,
@@ -3454,7 +3556,7 @@
3454 std::move(io_task_runner), nullptr)); 3556 std::move(io_task_runner), nullptr));
3455 } 3557 }
3456 3558
3457@@ -363,14 +362,12 @@ void V4LocalDatabaseManager::CollectData 3559@@ -360,14 +359,12 @@ void V4LocalDatabaseManager::CollectData
3458 3560
3459 V4LocalDatabaseManager::V4LocalDatabaseManager( 3561 V4LocalDatabaseManager::V4LocalDatabaseManager(
3460 const base::FilePath& base_path, 3562 const base::FilePath& base_path,
@@ -3469,7 +3571,7 @@
3469 list_infos_(GetListInfos()), 3571 list_infos_(GetListInfos()),
3470 task_runner_(task_runner_for_tests 3572 task_runner_(task_runner_for_tests
3471 ? task_runner_for_tests 3573 ? task_runner_for_tests
3472@@ -1137,8 +1134,7 @@ void V4LocalDatabaseManager::SetupUpdate 3574@@ -1123,8 +1120,7 @@ void V4LocalDatabaseManager::SetupUpdate
3473 weak_factory_.GetWeakPtr()); 3575 weak_factory_.GetWeakPtr());
3474 3576
3475 v4_update_protocol_manager_ = V4UpdateProtocolManager::Create( 3577 v4_update_protocol_manager_ = V4UpdateProtocolManager::Create(
@@ -3479,9 +3581,9 @@
3479 } 3581 }
3480 3582
3481 void V4LocalDatabaseManager::UpdateRequestCompleted( 3583 void V4LocalDatabaseManager::UpdateRequestCompleted(
3482--- components/safe_browsing/core/browser/db/v4_local_database_manager.h.orig 3584--- a/components/safe_browsing/core/browser/db/v4_local_database_manager.h
3483+++ components/safe_browsing/core/browser/db/v4_local_database_manager.h 3585+++ b/components/safe_browsing/core/browser/db/v4_local_database_manager.h
3484@@ -37,8 +37,7 @@ class V4LocalDatabaseManager : public Sa 3586@@ -39,8 +39,7 @@ class V4LocalDatabaseManager : public Sa
3485 static scoped_refptr<V4LocalDatabaseManager> Create( 3587 static scoped_refptr<V4LocalDatabaseManager> Create(
3486 const base::FilePath& base_path, 3588 const base::FilePath& base_path,
3487 scoped_refptr<base::SequencedTaskRunner> ui_task_runner, 3589 scoped_refptr<base::SequencedTaskRunner> ui_task_runner,
@@ -3491,7 +3593,7 @@
3491 3593
3492 V4LocalDatabaseManager(const V4LocalDatabaseManager&) = delete; 3594 V4LocalDatabaseManager(const V4LocalDatabaseManager&) = delete;
3493 V4LocalDatabaseManager& operator=(const V4LocalDatabaseManager&) = delete; 3595 V4LocalDatabaseManager& operator=(const V4LocalDatabaseManager&) = delete;
3494@@ -108,7 +107,6 @@ class V4LocalDatabaseManager : public Sa 3596@@ -109,7 +108,6 @@ class V4LocalDatabaseManager : public Sa
3495 // Must be initialized by calling StartOnIOThread() before using. 3597 // Must be initialized by calling StartOnIOThread() before using.
3496 V4LocalDatabaseManager( 3598 V4LocalDatabaseManager(
3497 const base::FilePath& base_path, 3599 const base::FilePath& base_path,
@@ -3499,7 +3601,7 @@
3499 scoped_refptr<base::SequencedTaskRunner> ui_task_runner, 3601 scoped_refptr<base::SequencedTaskRunner> ui_task_runner,
3500 scoped_refptr<base::SequencedTaskRunner> io_task_runner, 3602 scoped_refptr<base::SequencedTaskRunner> io_task_runner,
3501 scoped_refptr<base::SequencedTaskRunner> task_runner_for_tests); 3603 scoped_refptr<base::SequencedTaskRunner> task_runner_for_tests);
3502@@ -367,10 +365,6 @@ class V4LocalDatabaseManager : public Sa 3604@@ -369,10 +367,6 @@ class V4LocalDatabaseManager : public Sa
3503 // ready to process next update. 3605 // ready to process next update.
3504 DatabaseUpdatedCallback db_updated_callback_; 3606 DatabaseUpdatedCallback db_updated_callback_;
3505 3607
@@ -3510,9 +3612,9 @@
3510 // The client_state of each list currently being synced. This is updated each 3612 // The client_state of each list currently being synced. This is updated each
3511 // time a database update completes, and used to send list client_state 3613 // time a database update completes, and used to send list client_state
3512 // information in the full hash request. 3614 // information in the full hash request.
3513--- components/safe_browsing/core/browser/db/v4_protocol_manager_util.cc.orig 3615--- a/components/safe_browsing/core/browser/db/v4_protocol_manager_util.cc
3514+++ components/safe_browsing/core/browser/db/v4_protocol_manager_util.cc 3616+++ b/components/safe_browsing/core/browser/db/v4_protocol_manager_util.cc
3515@@ -88,7 +88,6 @@ void SetSbV4UrlPrefixForTesting(const ch 3617@@ -89,7 +89,6 @@ void SetSbV4UrlPrefixForTesting(const ch
3516 3618
3517 std::string GetReportUrl(const V4ProtocolConfig& config, 3619 std::string GetReportUrl(const V4ProtocolConfig& config,
3518 const std::string& method, 3620 const std::string& method,
@@ -3520,7 +3622,7 @@
3520 const bool is_enhanced_protection) { 3622 const bool is_enhanced_protection) {
3521 std::string url = base::StringPrintf( 3623 std::string url = base::StringPrintf(
3522 "%s/%s?client=%s&appver=%s&pver=4.0", kSbReportsURLPrefix, method.c_str(), 3624 "%s/%s?client=%s&appver=%s&pver=4.0", kSbReportsURLPrefix, method.c_str(),
3523@@ -98,8 +97,6 @@ std::string GetReportUrl(const V4Protoco 3625@@ -99,8 +98,6 @@ std::string GetReportUrl(const V4Protoco
3524 base::StringAppendF(&url, "&key=%s", 3626 base::StringAppendF(&url, "&key=%s",
3525 net::EscapeQueryParamValue(api_key, true).c_str()); 3627 net::EscapeQueryParamValue(api_key, true).c_str());
3526 } 3628 }
@@ -3529,8 +3631,8 @@
3529 if (is_enhanced_protection) 3631 if (is_enhanced_protection)
3530 url.append(base::StringPrintf("&enh=%d", is_enhanced_protection)); 3632 url.append(base::StringPrintf("&enh=%d", is_enhanced_protection));
3531 return url; 3633 return url;
3532--- components/safe_browsing/core/browser/db/v4_protocol_manager_util.h.orig 3634--- a/components/safe_browsing/core/browser/db/v4_protocol_manager_util.h
3533+++ components/safe_browsing/core/browser/db/v4_protocol_manager_util.h 3635+++ b/components/safe_browsing/core/browser/db/v4_protocol_manager_util.h
3534@@ -18,10 +18,11 @@ 3636@@ -18,10 +18,11 @@
3535 #include <vector> 3637 #include <vector>
3536 3638
@@ -3552,8 +3654,8 @@
3552 const bool is_enhanced_protection = false); 3654 const bool is_enhanced_protection = false);
3553 3655
3554 // Different types of threats that SafeBrowsing protects against. This is the 3656 // Different types of threats that SafeBrowsing protects against. This is the
3555--- components/safe_browsing/core/browser/db/v4_update_protocol_manager.cc.orig 3657--- a/components/safe_browsing/core/browser/db/v4_update_protocol_manager.cc
3556+++ components/safe_browsing/core/browser/db/v4_update_protocol_manager.cc 3658+++ b/components/safe_browsing/core/browser/db/v4_update_protocol_manager.cc
3557@@ -78,19 +78,8 @@ static const int kV4TimerStartIntervalSe 3659@@ -78,19 +78,8 @@ static const int kV4TimerStartIntervalSe
3558 // Maximum time, in seconds, to wait for a response to an update request. 3660 // Maximum time, in seconds, to wait for a response to an update request.
3559 static const int kV4TimerUpdateWaitSecMax = 15 * 60; // 15 minutes 3661 static const int kV4TimerUpdateWaitSecMax = 15 * 60; // 15 minutes
@@ -3640,9 +3742,9 @@
3640 V4ProtocolManagerUtil::SetClientInfoFromConfig(request.mutable_client(), 3742 V4ProtocolManagerUtil::SetClientInfoFromConfig(request.mutable_client(),
3641 config_); 3743 config_);
3642 3744
3643--- components/safe_browsing/core/browser/db/v4_update_protocol_manager.h.orig 3745--- a/components/safe_browsing/core/browser/db/v4_update_protocol_manager.h
3644+++ components/safe_browsing/core/browser/db/v4_update_protocol_manager.h 3746+++ b/components/safe_browsing/core/browser/db/v4_update_protocol_manager.h
3645@@ -24,7 +24,6 @@ 3747@@ -23,7 +23,6 @@
3646 #include "components/safe_browsing/core/browser/db/util.h" 3748 #include "components/safe_browsing/core/browser/db/util.h"
3647 #include "components/safe_browsing/core/browser/db/v4_protocol_manager_util.h" 3749 #include "components/safe_browsing/core/browser/db/v4_protocol_manager_util.h"
3648 #include "components/safe_browsing/core/common/proto/webui.pb.h" 3750 #include "components/safe_browsing/core/common/proto/webui.pb.h"
@@ -3650,7 +3752,7 @@
3650 #include "third_party/abseil-cpp/absl/types/optional.h" 3752 #include "third_party/abseil-cpp/absl/types/optional.h"
3651 3753
3652 class GURL; 3754 class GURL;
3653@@ -45,9 +44,6 @@ class V4UpdateProtocolManagerFactory; 3755@@ -44,9 +43,6 @@ class V4UpdateProtocolManagerFactory;
3654 using V4UpdateCallback = 3756 using V4UpdateCallback =
3655 base::RepeatingCallback<void(std::unique_ptr<ParsedServerResponse>)>; 3757 base::RepeatingCallback<void(std::unique_ptr<ParsedServerResponse>)>;
3656 3758
@@ -3660,7 +3762,7 @@
3660 class V4UpdateProtocolManager { 3762 class V4UpdateProtocolManager {
3661 public: 3763 public:
3662 V4UpdateProtocolManager(const V4UpdateProtocolManager&) = delete; 3764 V4UpdateProtocolManager(const V4UpdateProtocolManager&) = delete;
3663@@ -65,8 +61,7 @@ class V4UpdateProtocolManager { 3765@@ -64,8 +60,7 @@ class V4UpdateProtocolManager {
3664 static std::unique_ptr<V4UpdateProtocolManager> Create( 3766 static std::unique_ptr<V4UpdateProtocolManager> Create(
3665 scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory, 3767 scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory,
3666 const V4ProtocolConfig& config, 3768 const V4ProtocolConfig& config,
@@ -3670,7 +3772,7 @@
3670 3772
3671 void OnURLLoaderComplete(std::unique_ptr<std::string> response_body); 3773 void OnURLLoaderComplete(std::unique_ptr<std::string> response_body);
3672 3774
3673@@ -88,8 +83,7 @@ class V4UpdateProtocolManager { 3775@@ -87,8 +82,7 @@ class V4UpdateProtocolManager {
3674 V4UpdateProtocolManager( 3776 V4UpdateProtocolManager(
3675 scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory, 3777 scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory,
3676 const V4ProtocolConfig& config, 3778 const V4ProtocolConfig& config,
@@ -3680,7 +3782,7 @@
3680 3782
3681 private: 3783 private:
3682 FRIEND_TEST_ALL_PREFIXES(V4UpdateProtocolManagerTest, 3784 FRIEND_TEST_ALL_PREFIXES(V4UpdateProtocolManagerTest,
3683@@ -207,8 +201,6 @@ class V4UpdateProtocolManager { 3785@@ -206,8 +200,6 @@ class V4UpdateProtocolManager {
3684 // complete. 3786 // complete.
3685 base::OneShotTimer timeout_timer_; 3787 base::OneShotTimer timeout_timer_;
3686 3788
@@ -3689,7 +3791,7 @@
3689 SEQUENCE_CHECKER(sequence_checker_); 3791 SEQUENCE_CHECKER(sequence_checker_);
3690 }; 3792 };
3691 3793
3692@@ -226,8 +218,7 @@ class V4UpdateProtocolManagerFactory { 3794@@ -225,8 +217,7 @@ class V4UpdateProtocolManagerFactory {
3693 virtual std::unique_ptr<V4UpdateProtocolManager> CreateProtocolManager( 3795 virtual std::unique_ptr<V4UpdateProtocolManager> CreateProtocolManager(
3694 scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory, 3796 scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory,
3695 const V4ProtocolConfig& config, 3797 const V4ProtocolConfig& config,
@@ -3699,8 +3801,8 @@
3699 }; 3801 };
3700 3802
3701 } // namespace safe_browsing 3803 } // namespace safe_browsing
3702--- components/safe_browsing/core/browser/password_protection/password_protection_service_base.h.orig 3804--- a/components/safe_browsing/core/browser/password_protection/password_protection_service_base.h
3703+++ components/safe_browsing/core/browser/password_protection/password_protection_service_base.h 3805+++ b/components/safe_browsing/core/browser/password_protection/password_protection_service_base.h
3704@@ -28,7 +28,6 @@ 3806@@ -28,7 +28,6 @@
3705 #include "components/safe_browsing/core/browser/safe_browsing_metrics_collector.h" 3807 #include "components/safe_browsing/core/browser/safe_browsing_metrics_collector.h"
3706 #include "components/safe_browsing/core/browser/safe_browsing_token_fetcher.h" 3808 #include "components/safe_browsing/core/browser/safe_browsing_token_fetcher.h"
@@ -3709,7 +3811,7 @@
3709 #include "components/sessions/core/session_id.h" 3811 #include "components/sessions/core/session_id.h"
3710 #include "components/signin/public/identity_manager/account_info.h" 3812 #include "components/signin/public/identity_manager/account_info.h"
3711 #include "components/signin/public/identity_manager/identity_manager.h" 3813 #include "components/signin/public/identity_manager/identity_manager.h"
3712@@ -149,10 +148,6 @@ class PasswordProtectionServiceBase : pu 3814@@ -150,10 +149,6 @@ class PasswordProtectionServiceBase : pu
3713 // Returns if the warning UI is enabled. 3815 // Returns if the warning UI is enabled.
3714 bool IsWarningEnabled(ReusedPasswordAccountType password_type); 3816 bool IsWarningEnabled(ReusedPasswordAccountType password_type);
3715 3817
@@ -3720,9 +3822,9 @@
3720 // If |url| matches Safe Browsing allowlist domains, password protection 3822 // If |url| matches Safe Browsing allowlist domains, password protection
3721 // change password URL, or password protection login URLs in the enterprise 3823 // change password URL, or password protection login URLs in the enterprise
3722 // policy. 3824 // policy.
3723--- components/safe_browsing/core/browser/ping_manager.cc.orig 3825--- a/components/safe_browsing/core/browser/ping_manager.cc
3724+++ components/safe_browsing/core/browser/ping_manager.cc 3826+++ b/components/safe_browsing/core/browser/ping_manager.cc
3725@@ -141,7 +141,7 @@ GURL PingManager::SafeBrowsingHitUrl( 3827@@ -190,7 +190,7 @@ GURL PingManager::SafeBrowsingHitUrl(
3726 hit_report.threat_type == SB_THREAT_TYPE_URL_CLIENT_SIDE_PHISHING || 3828 hit_report.threat_type == SB_THREAT_TYPE_URL_CLIENT_SIDE_PHISHING ||
3727 hit_report.threat_type == SB_THREAT_TYPE_URL_CLIENT_SIDE_MALWARE); 3829 hit_report.threat_type == SB_THREAT_TYPE_URL_CLIENT_SIDE_MALWARE);
3728 std::string url = 3830 std::string url =
@@ -3731,8 +3833,8 @@
3731 hit_report.is_enhanced_protection); 3833 hit_report.is_enhanced_protection);
3732 std::string threat_list = "none"; 3834 std::string threat_list = "none";
3733 switch (hit_report.threat_type) { 3835 switch (hit_report.threat_type) {
3734--- components/safe_browsing/core/browser/realtime/policy_engine.cc.orig 3836--- a/components/safe_browsing/core/browser/realtime/policy_engine.cc
3735+++ components/safe_browsing/core/browser/realtime/policy_engine.cc 3837+++ b/components/safe_browsing/core/browser/realtime/policy_engine.cc
3736@@ -8,7 +8,6 @@ 3838@@ -8,7 +8,6 @@
3737 #include "base/metrics/histogram_macros.h" 3839 #include "base/metrics/histogram_macros.h"
3738 #include "build/build_config.h" 3840 #include "build/build_config.h"
@@ -3741,7 +3843,7 @@
3741 #include "components/safe_browsing/core/common/utils.h" 3843 #include "components/safe_browsing/core/common/utils.h"
3742 #include "components/unified_consent/pref_names.h" 3844 #include "components/unified_consent/pref_names.h"
3743 #include "components/user_prefs/user_prefs.h" 3845 #include "components/user_prefs/user_prefs.h"
3744@@ -35,7 +34,7 @@ bool RealTimePolicyEngine::IsUserMbbOpte 3846@@ -36,7 +35,7 @@ bool RealTimePolicyEngine::IsUserMbbOpte
3745 3847
3746 // static 3848 // static
3747 bool RealTimePolicyEngine::IsUserEpOptedIn(PrefService* pref_service) { 3849 bool RealTimePolicyEngine::IsUserEpOptedIn(PrefService* pref_service) {
@@ -3750,7 +3852,7 @@
3750 } 3852 }
3751 3853
3752 // static 3854 // static
3753@@ -81,9 +80,7 @@ bool RealTimePolicyEngine::CanPerformEnt 3855@@ -82,9 +81,7 @@ bool RealTimePolicyEngine::CanPerformEnt
3754 return false; 3856 return false;
3755 } 3857 }
3756 3858
@@ -3761,8 +3863,8 @@
3761 } 3863 }
3762 3864
3763 // static 3865 // static
3764--- components/safe_browsing/core/browser/realtime/url_lookup_service.cc.orig 3866--- a/components/safe_browsing/core/browser/realtime/url_lookup_service.cc
3765+++ components/safe_browsing/core/browser/realtime/url_lookup_service.cc 3867+++ b/components/safe_browsing/core/browser/realtime/url_lookup_service.cc
3766@@ -19,7 +19,6 @@ 3868@@ -19,7 +19,6 @@
3767 #include "components/safe_browsing/core/browser/referrer_chain_provider.h" 3869 #include "components/safe_browsing/core/browser/referrer_chain_provider.h"
3768 #include "components/safe_browsing/core/browser/safe_browsing_token_fetcher.h" 3870 #include "components/safe_browsing/core/browser/safe_browsing_token_fetcher.h"
@@ -3771,7 +3873,7 @@
3771 #include "components/unified_consent/pref_names.h" 3873 #include "components/unified_consent/pref_names.h"
3772 #include "net/base/ip_address.h" 3874 #include "net/base/ip_address.h"
3773 #include "net/base/load_flags.h" 3875 #include "net/base/load_flags.h"
3774@@ -61,10 +60,6 @@ RealTimeUrlLookupService::RealTimeUrlLoo 3876@@ -62,10 +61,6 @@ RealTimeUrlLookupService::RealTimeUrlLoo
3775 variations_(variations_service) { 3877 variations_(variations_service) {
3776 pref_change_registrar_.Init(pref_service_); 3878 pref_change_registrar_.Init(pref_service_);
3777 pref_change_registrar_.Add( 3879 pref_change_registrar_.Add(
@@ -3782,7 +3884,7 @@
3782 unified_consent::prefs::kUrlKeyedAnonymizedDataCollectionEnabled, 3884 unified_consent::prefs::kUrlKeyedAnonymizedDataCollectionEnabled,
3783 base::BindRepeating(&RealTimeUrlLookupService::OnPrefChanged, 3885 base::BindRepeating(&RealTimeUrlLookupService::OnPrefChanged,
3784 base::Unretained(this))); 3886 base::Unretained(this)));
3785@@ -144,7 +139,7 @@ bool RealTimeUrlLookupService::CanSendPa 3887@@ -139,7 +134,7 @@ bool RealTimeUrlLookupService::CanSendPa
3786 } 3888 }
3787 3889
3788 bool RealTimeUrlLookupService::CanCheckSubresourceURL() const { 3890 bool RealTimeUrlLookupService::CanCheckSubresourceURL() const {
@@ -3791,22 +3893,35 @@
3791 } 3893 }
3792 3894
3793 bool RealTimeUrlLookupService::CanCheckSafeBrowsingDb() const { 3895 bool RealTimeUrlLookupService::CanCheckSafeBrowsingDb() const {
3794--- components/safe_browsing/core/browser/realtime/url_lookup_service_base.cc.orig 3896@@ -149,11 +144,7 @@ bool RealTimeUrlLookupService::CanCheckS
3795+++ components/safe_browsing/core/browser/realtime/url_lookup_service_base.cc 3897 }
3796@@ -16,7 +16,6 @@ 3898
3797 #include "components/prefs/pref_service.h" 3899 bool RealTimeUrlLookupService::CanSendRTSampleRequest() const {
3900- return IsExtendedReportingEnabled(*pref_service_) &&
3901- base::FeatureList::IsEnabled(
3902- safe_browsing::kSendSampledPingsForProtegoAllowlistDomains) &&
3903- (bypass_protego_probability_for_tests_ ||
3904- base::RandDouble() <= kProbabilityForSendingSampledRequests);
3905+ return false;
3906 }
3907
3908 void RealTimeUrlLookupService::Shutdown() {
3909--- a/components/safe_browsing/core/browser/realtime/url_lookup_service_base.cc
3910+++ b/components/safe_browsing/core/browser/realtime/url_lookup_service_base.cc
3911@@ -17,7 +17,6 @@
3798 #include "components/safe_browsing/core/browser/referrer_chain_provider.h" 3912 #include "components/safe_browsing/core/browser/referrer_chain_provider.h"
3799 #include "components/safe_browsing/core/browser/verdict_cache_manager.h" 3913 #include "components/safe_browsing/core/browser/verdict_cache_manager.h"
3914 #include "components/safe_browsing/core/common/features.h"
3800-#include "components/safe_browsing/core/common/safe_browsing_prefs.h" 3915-#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
3801 #include "components/safe_browsing/core/common/safebrowsing_constants.h" 3916 #include "components/safe_browsing/core/common/safebrowsing_constants.h"
3802 #include "components/safe_browsing/core/common/utils.h" 3917 #include "components/safe_browsing/core/common/utils.h"
3803 #include "net/base/ip_address.h" 3918 #include "net/base/ip_address.h"
3804--- components/safe_browsing/core/browser/safe_browsing_metrics_collector.cc.orig 3919--- a/components/safe_browsing/core/browser/safe_browsing_metrics_collector.cc
3805+++ components/safe_browsing/core/browser/safe_browsing_metrics_collector.cc 3920+++ b/components/safe_browsing/core/browser/safe_browsing_metrics_collector.cc
3806@@ -11,13 +11,11 @@ 3921@@ -12,13 +12,11 @@
3807 #include "base/time/time.h"
3808 #include "components/prefs/pref_service.h" 3922 #include "components/prefs/pref_service.h"
3809 #include "components/prefs/scoped_user_pref_update.h" 3923 #include "components/prefs/scoped_user_pref_update.h"
3924 #include "components/safe_browsing/core/browser/db/hit_report.h"
3810-#include "components/safe_browsing/core/common/safe_browsing_prefs.h" 3925-#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
3811 3926
3812 namespace { 3927 namespace {
@@ -3817,7 +3932,7 @@
3817 3932
3818 const int kMetricsLoggingIntervalDay = 1; 3933 const int kMetricsLoggingIntervalDay = 1;
3819 3934
3820@@ -54,11 +52,6 @@ SafeBrowsingMetricsCollector::SafeBrowsi 3935@@ -59,11 +57,6 @@ SafeBrowsingMetricsCollector::SafeBrowsi
3821 PrefService* pref_service) 3936 PrefService* pref_service)
3822 : pref_service_(pref_service) { 3937 : pref_service_(pref_service) {
3823 pref_change_registrar_.Init(pref_service_); 3938 pref_change_registrar_.Init(pref_service_);
@@ -3829,7 +3944,7 @@
3829 } 3944 }
3830 3945
3831 void SafeBrowsingMetricsCollector::Shutdown() { 3946 void SafeBrowsingMetricsCollector::Shutdown() {
3832@@ -66,16 +59,6 @@ void SafeBrowsingMetricsCollector::Shutd 3947@@ -71,16 +64,6 @@ void SafeBrowsingMetricsCollector::Shutd
3833 } 3948 }
3834 3949
3835 void SafeBrowsingMetricsCollector::StartLogging() { 3950 void SafeBrowsingMetricsCollector::StartLogging() {
@@ -3846,7 +3961,7 @@
3846 } 3961 }
3847 3962
3848 void SafeBrowsingMetricsCollector::LogMetricsAndScheduleNextLogging() { 3963 void SafeBrowsingMetricsCollector::LogMetricsAndScheduleNextLogging() {
3849@@ -83,9 +66,6 @@ void SafeBrowsingMetricsCollector::LogMe 3964@@ -88,9 +71,6 @@ void SafeBrowsingMetricsCollector::LogMe
3850 LogDailyEventMetrics(); 3965 LogDailyEventMetrics();
3851 RemoveOldEventsFromPref(); 3966 RemoveOldEventsFromPref();
3852 3967
@@ -3856,7 +3971,7 @@
3856 ScheduleNextLoggingAfterInterval(base::Days(kMetricsLoggingIntervalDay)); 3971 ScheduleNextLoggingAfterInterval(base::Days(kMetricsLoggingIntervalDay));
3857 } 3972 }
3858 3973
3859@@ -98,181 +78,40 @@ void SafeBrowsingMetricsCollector::Sched 3974@@ -103,87 +83,16 @@ void SafeBrowsingMetricsCollector::Sched
3860 } 3975 }
3861 3976
3862 void SafeBrowsingMetricsCollector::LogDailyOptInMetrics() { 3977 void SafeBrowsingMetricsCollector::LogDailyOptInMetrics() {
@@ -3914,7 +4029,7 @@
3914 void SafeBrowsingMetricsCollector::RemoveOldEventsFromPref() { 4029 void SafeBrowsingMetricsCollector::RemoveOldEventsFromPref() {
3915- DictionaryPrefUpdate update(pref_service_, 4030- DictionaryPrefUpdate update(pref_service_,
3916- prefs::kSafeBrowsingEventTimestamps); 4031- prefs::kSafeBrowsingEventTimestamps);
3917- base::DictionaryValue* mutable_state_dict = update.Get(); 4032- base::Value* mutable_state_dict = update.Get();
3918- bool is_pref_valid = mutable_state_dict->is_dict(); 4033- bool is_pref_valid = mutable_state_dict->is_dict();
3919- base::UmaHistogramBoolean("SafeBrowsing.MetricsCollector.IsPrefValid", 4034- base::UmaHistogramBoolean("SafeBrowsing.MetricsCollector.IsPrefValid",
3920- is_pref_valid); 4035- is_pref_valid);
@@ -3943,47 +4058,30 @@
3943- AddSafeBrowsingEventAndUserStateToPref(GetUserState(), event_type); 4058- AddSafeBrowsingEventAndUserStateToPref(GetUserState(), event_type);
3944 } 4059 }
3945 4060
3946 absl::optional<base::Time> 4061 void SafeBrowsingMetricsCollector::AddBypassEventToPref(
3947 SafeBrowsingMetricsCollector::GetLatestEventTimestamp(EventType event_type) { 4062@@ -220,15 +129,7 @@ absl::optional<base::Time>
3948- // Events are not logged when Safe Browsing is disabled. 4063 SafeBrowsingMetricsCollector::GetLatestEventTimestamp(
4064 EventTypeFilter event_type_filter) {
4065 // Events are not logged when Safe Browsing is disabled.
3949- SafeBrowsingState sb_state = GetSafeBrowsingState(*pref_service_); 4066- SafeBrowsingState sb_state = GetSafeBrowsingState(*pref_service_);
3950- if (sb_state == SafeBrowsingState::NO_SAFE_BROWSING) { 4067- if (sb_state == SafeBrowsingState::NO_SAFE_BROWSING) {
3951 return absl::nullopt; 4068 return absl::nullopt;
3952- } 4069- }
3953- 4070-
3954- const absl::optional<Event> event = 4071- const absl::optional<Event> event =
3955- GetLatestEventFromEventType(GetUserState(), event_type); 4072- GetLatestEventFromEventTypeFilter(GetUserState(), event_type_filter);
3956- return event ? absl::optional<base::Time>(event.value().timestamp) 4073- return event ? absl::optional<base::Time>(event.value().timestamp)
3957- : absl::nullopt; 4074- : absl::nullopt;
3958 } 4075 }
3959 4076
3960 absl::optional<base::Time> 4077 absl::optional<base::Time>
3961 SafeBrowsingMetricsCollector::GetLatestSecuritySensitiveEventTimestamp() { 4078@@ -240,55 +141,14 @@ SafeBrowsingMetricsCollector::GetLatestS
3962- std::vector<absl::optional<base::Time>> security_sensitive_event_times{
3963- GetLatestEventTimestamp(SECURITY_SENSITIVE_SAFE_BROWSING_INTERSTITIAL),
3964- GetLatestEventTimestamp(SECURITY_SENSITIVE_SSL_INTERSTITIAL),
3965- GetLatestEventTimestamp(SECURITY_SENSITIVE_PASSWORD_PROTECTION),
3966- GetLatestEventTimestamp(SECURITY_SENSITIVE_DOWNLOAD)};
3967 absl::optional<base::Time> latest_event_time = absl::nullopt;
3968- for (absl::optional<base::Time> security_sensitive_event_time :
3969- security_sensitive_event_times) {
3970- if (!security_sensitive_event_time) {
3971- continue;
3972- }
3973- if (!latest_event_time ||
3974- (latest_event_time.value() < security_sensitive_event_time.value())) {
3975- latest_event_time = security_sensitive_event_time;
3976- }
3977- }
3978 return latest_event_time;
3979 }
3980
3981 void SafeBrowsingMetricsCollector::AddSafeBrowsingEventAndUserStateToPref( 4079 void SafeBrowsingMetricsCollector::AddSafeBrowsingEventAndUserStateToPref(
3982 UserState user_state, 4080 UserState user_state,
3983 EventType event_type) { 4081 EventType event_type) {
3984- DictionaryPrefUpdate update(pref_service_, 4082- DictionaryPrefUpdate update(pref_service_,
3985- prefs::kSafeBrowsingEventTimestamps); 4083- prefs::kSafeBrowsingEventTimestamps);
3986- base::DictionaryValue* mutable_state_dict = update.Get(); 4084- base::Value* mutable_state_dict = update.Get();
3987- 4085-
3988- base::Value* event_dict = 4086- base::Value* event_dict =
3989- mutable_state_dict->FindDictKey(UserStateToPrefKey(user_state)); 4087- mutable_state_dict->FindDictKey(UserStateToPrefKey(user_state));
@@ -4001,8 +4099,8 @@
4001- } 4099- }
4002- 4100-
4003- // Remove the oldest timestamp if the length of the timestamps hits the limit. 4101- // Remove the oldest timestamp if the length of the timestamps hits the limit.
4004- while (timestamps->GetList().size() >= kTimestampsMaxLength) { 4102- while (timestamps->GetListDeprecated().size() >= kTimestampsMaxLength) {
4005- timestamps->EraseListIter(timestamps->GetList().begin()); 4103- timestamps->EraseListIter(timestamps->GetListDeprecated().begin());
4006- } 4104- }
4007- 4105-
4008- timestamps->Append(TimeToPrefValue(base::Time::Now())); 4106- timestamps->Append(TimeToPrefValue(base::Time::Now()));
@@ -4017,12 +4115,7 @@
4017- if (!pref_service_->GetBoolean(prefs::kSafeBrowsingEnhanced)) { 4115- if (!pref_service_->GetBoolean(prefs::kSafeBrowsingEnhanced)) {
4018- AddSafeBrowsingEventAndUserStateToPref(UserState::kEnhancedProtection, 4116- AddSafeBrowsingEventAndUserStateToPref(UserState::kEnhancedProtection,
4019- EventType::USER_STATE_DISABLED); 4117- EventType::USER_STATE_DISABLED);
4020- int disabled_times_last_week = GetEventCountSince( 4118- LogEnhancedProtectionDisabledMetrics();
4021- UserState::kEnhancedProtection, EventType::USER_STATE_DISABLED,
4022- base::Time::Now() - base::Days(7));
4023- if (disabled_times_last_week <= kEsbDisabledMetricsQuota) {
4024- LogEnhancedProtectionDisabledMetrics();
4025- }
4026- } else { 4119- } else {
4027- AddSafeBrowsingEventAndUserStateToPref(UserState::kEnhancedProtection, 4120- AddSafeBrowsingEventAndUserStateToPref(UserState::kEnhancedProtection,
4028- EventType::USER_STATE_ENABLED); 4121- EventType::USER_STATE_ENABLED);
@@ -4031,7 +4124,7 @@
4031 4124
4032 const base::Value* SafeBrowsingMetricsCollector::GetSafeBrowsingEventDictionary( 4125 const base::Value* SafeBrowsingMetricsCollector::GetSafeBrowsingEventDictionary(
4033 UserState user_state) { 4126 UserState user_state) {
4034- const base::DictionaryValue* state_dict = 4127- const base::Value* state_dict =
4035- pref_service_->GetDictionary(prefs::kSafeBrowsingEventTimestamps); 4128- pref_service_->GetDictionary(prefs::kSafeBrowsingEventTimestamps);
4036- 4129-
4037- return state_dict->FindDictKey(UserStateToPrefKey(user_state)); 4130- return state_dict->FindDictKey(UserStateToPrefKey(user_state));
@@ -4039,7 +4132,7 @@
4039 } 4132 }
4040 4133
4041 absl::optional<SafeBrowsingMetricsCollector::Event> 4134 absl::optional<SafeBrowsingMetricsCollector::Event>
4042@@ -370,20 +209,7 @@ int SafeBrowsingMetricsCollector::GetEve 4135@@ -449,20 +309,7 @@ int SafeBrowsingMetricsCollector::GetEve
4043 } 4136 }
4044 4137
4045 UserState SafeBrowsingMetricsCollector::GetUserState() { 4138 UserState SafeBrowsingMetricsCollector::GetUserState() {
@@ -4061,8 +4154,8 @@
4061 } 4154 }
4062 4155
4063 bool SafeBrowsingMetricsCollector::IsBypassEventType(const EventType& type) { 4156 bool SafeBrowsingMetricsCollector::IsBypassEventType(const EventType& type) {
4064--- components/safe_browsing/core/common/BUILD.gn.orig 4157--- a/components/safe_browsing/core/common/BUILD.gn
4065+++ components/safe_browsing/core/common/BUILD.gn 4158+++ b/components/safe_browsing/core/common/BUILD.gn
4066@@ -6,20 +6,8 @@ import("//build/config/features.gni") 4159@@ -6,20 +6,8 @@ import("//build/config/features.gni")
4067 import("//components/safe_browsing/buildflags.gni") 4160 import("//components/safe_browsing/buildflags.gni")
4068 import("//mojo/public/tools/bindings/mojom.gni") 4161 import("//mojo/public/tools/bindings/mojom.gni")
@@ -4086,8 +4179,8 @@
4086 } 4179 }
4087 4180
4088 source_set("safe_browsing_policy_handler") { 4181 source_set("safe_browsing_policy_handler") {
4089--- components/safe_browsing/core/common/safe_browsing_policy_handler.cc.orig 4182--- a/components/safe_browsing/core/common/safe_browsing_policy_handler.cc
4090+++ components/safe_browsing/core/common/safe_browsing_policy_handler.cc 4183+++ b/components/safe_browsing/core/common/safe_browsing_policy_handler.cc
4091@@ -11,7 +11,6 @@ 4184@@ -11,7 +11,6 @@
4092 #include "components/policy/policy_constants.h" 4185 #include "components/policy/policy_constants.h"
4093 #include "components/prefs/pref_service.h" 4186 #include "components/prefs/pref_service.h"
@@ -4096,7 +4189,7 @@
4096 #include "components/strings/grit/components_strings.h" 4189 #include "components/strings/grit/components_strings.h"
4097 #include "third_party/abseil-cpp/absl/types/optional.h" 4190 #include "third_party/abseil-cpp/absl/types/optional.h"
4098 4191
4099@@ -172,34 +171,14 @@ void SafeBrowsingPolicyHandler::ApplyPol 4192@@ -180,34 +179,14 @@ void SafeBrowsingPolicyHandler::ApplyPol
4100 4193
4101 if (!value.has_value()) 4194 if (!value.has_value())
4102 return; 4195 return;
@@ -4133,7 +4226,7 @@
4133 4226
4134 if (safe_browsing_enhanced) 4227 if (safe_browsing_enhanced)
4135 return ProtectionLevel::kEnhancedProtection; 4228 return ProtectionLevel::kEnhancedProtection;
4136@@ -213,10 +192,8 @@ SafeBrowsingPolicyHandler::GetSafeBrowsi 4229@@ -221,10 +200,8 @@ SafeBrowsingPolicyHandler::GetSafeBrowsi
4137 // static 4230 // static
4138 bool SafeBrowsingPolicyHandler::IsSafeBrowsingProtectionLevelSetByPolicy( 4231 bool SafeBrowsingPolicyHandler::IsSafeBrowsingProtectionLevelSetByPolicy(
4139 const PrefService* pref_service) { 4232 const PrefService* pref_service) {
@@ -4146,8 +4239,8 @@
4146 DCHECK_EQ(is_safe_browsing_enabled_managed, 4239 DCHECK_EQ(is_safe_browsing_enabled_managed,
4147 is_safe_browsing_enhanced_managed); 4240 is_safe_browsing_enhanced_managed);
4148 return is_safe_browsing_enabled_managed && is_safe_browsing_enhanced_managed; 4241 return is_safe_browsing_enabled_managed && is_safe_browsing_enhanced_managed;
4149--- components/safe_browsing/core/common/safe_browsing_prefs_unittest.cc.orig 4242--- a/components/safe_browsing/core/common/safe_browsing_prefs_unittest.cc
4150+++ components/safe_browsing/core/common/safe_browsing_prefs_unittest.cc 4243+++ b/components/safe_browsing/core/common/safe_browsing_prefs_unittest.cc
4151@@ -12,7 +12,6 @@ 4244@@ -12,7 +12,6 @@
4152 #include "components/prefs/pref_registry_simple.h" 4245 #include "components/prefs/pref_registry_simple.h"
4153 #include "components/prefs/testing_pref_service.h" 4246 #include "components/prefs/testing_pref_service.h"
@@ -4156,8 +4249,8 @@
4156 #include "testing/gtest/include/gtest/gtest.h" 4249 #include "testing/gtest/include/gtest/gtest.h"
4157 #include "url/gurl.h" 4250 #include "url/gurl.h"
4158 4251
4159--- components/safety_check/safety_check.cc.orig 4252--- a/components/safety_check/safety_check.cc
4160+++ components/safety_check/safety_check.cc 4253+++ b/components/safety_check/safety_check.cc
4161@@ -4,26 +4,9 @@ 4254@@ -4,26 +4,9 @@
4162 4255
4163 #include "components/safety_check/safety_check.h" 4256 #include "components/safety_check/safety_check.h"
@@ -4185,8 +4278,8 @@
4185 return SafeBrowsingStatus::kDisabled; 4278 return SafeBrowsingStatus::kDisabled;
4186 } 4279 }
4187 4280
4188--- components/security_interstitials/content/bad_clock_blocking_page.cc.orig 4281--- a/components/security_interstitials/content/bad_clock_blocking_page.cc
4189+++ components/security_interstitials/content/bad_clock_blocking_page.cc 4282+++ b/components/security_interstitials/content/bad_clock_blocking_page.cc
4190@@ -7,7 +7,6 @@ 4283@@ -7,7 +7,6 @@
4191 #include <utility> 4284 #include <utility>
4192 4285
@@ -4195,8 +4288,8 @@
4195 #include "components/security_interstitials/content/cert_report_helper.h" 4288 #include "components/security_interstitials/content/cert_report_helper.h"
4196 #include "components/security_interstitials/content/security_interstitial_controller_client.h" 4289 #include "components/security_interstitials/content/security_interstitial_controller_client.h"
4197 #include "components/security_interstitials/content/security_interstitial_page.h" 4290 #include "components/security_interstitials/content/security_interstitial_page.h"
4198--- components/security_interstitials/content/captive_portal_blocking_page.cc.orig 4291--- a/components/security_interstitials/content/captive_portal_blocking_page.cc
4199+++ components/security_interstitials/content/captive_portal_blocking_page.cc 4292+++ b/components/security_interstitials/content/captive_portal_blocking_page.cc
4200@@ -15,7 +15,6 @@ 4293@@ -15,7 +15,6 @@
4201 #include "build/build_config.h" 4294 #include "build/build_config.h"
4202 #include "components/captive_portal/core/captive_portal_detector.h" 4295 #include "components/captive_portal/core/captive_portal_detector.h"
@@ -4205,8 +4298,8 @@
4205 #include "components/security_interstitials/content/cert_report_helper.h" 4298 #include "components/security_interstitials/content/cert_report_helper.h"
4206 #include "components/security_interstitials/content/security_interstitial_controller_client.h" 4299 #include "components/security_interstitials/content/security_interstitial_controller_client.h"
4207 #include "components/security_interstitials/content/ssl_cert_reporter.h" 4300 #include "components/security_interstitials/content/ssl_cert_reporter.h"
4208--- components/security_interstitials/content/cert_report_helper.cc.orig 4301--- a/components/security_interstitials/content/cert_report_helper.cc
4209+++ components/security_interstitials/content/cert_report_helper.cc 4302+++ b/components/security_interstitials/content/cert_report_helper.cc
4210@@ -14,7 +14,6 @@ 4303@@ -14,7 +14,6 @@
4211 #include "build/branding_buildflags.h" 4304 #include "build/branding_buildflags.h"
4212 #include "build/build_config.h" 4305 #include "build/build_config.h"
@@ -4303,8 +4396,8 @@
4303 } 4396 }
4304 4397
4305 bool CertReportHelper::ShouldReportCertificateError() { 4398 bool CertReportHelper::ShouldReportCertificateError() {
4306--- components/security_interstitials/content/mitm_software_blocking_page.cc.orig 4399--- a/components/security_interstitials/content/mitm_software_blocking_page.cc
4307+++ components/security_interstitials/content/mitm_software_blocking_page.cc 4400+++ b/components/security_interstitials/content/mitm_software_blocking_page.cc
4308@@ -6,7 +6,6 @@ 4401@@ -6,7 +6,6 @@
4309 4402
4310 #include <utility> 4403 #include <utility>
@@ -4313,8 +4406,8 @@
4313 #include "components/security_interstitials/content/cert_report_helper.h" 4406 #include "components/security_interstitials/content/cert_report_helper.h"
4314 #include "components/security_interstitials/content/security_interstitial_controller_client.h" 4407 #include "components/security_interstitials/content/security_interstitial_controller_client.h"
4315 #include "components/security_interstitials/content/security_interstitial_page.h" 4408 #include "components/security_interstitials/content/security_interstitial_page.h"
4316--- components/security_interstitials/content/security_interstitial_controller_client.cc.orig 4409--- a/components/security_interstitials/content/security_interstitial_controller_client.cc
4317+++ components/security_interstitials/content/security_interstitial_controller_client.cc 4410+++ b/components/security_interstitials/content/security_interstitial_controller_client.cc
4318@@ -7,7 +7,6 @@ 4411@@ -7,7 +7,6 @@
4319 #include <utility> 4412 #include <utility>
4320 4413
@@ -4322,8 +4415,8 @@
4322-#include "components/safe_browsing/core/common/safe_browsing_prefs.h" 4415-#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
4323 #include "components/security_interstitials/content/settings_page_helper.h" 4416 #include "components/security_interstitials/content/settings_page_helper.h"
4324 #include "components/security_interstitials/core/metrics_helper.h" 4417 #include "components/security_interstitials/core/metrics_helper.h"
4325 #include "content/public/browser/web_contents.h" 4418 #include "content/public/browser/navigation_entry.h"
4326@@ -98,11 +97,6 @@ SecurityInterstitialControllerClient::Ge 4419@@ -99,11 +98,6 @@ SecurityInterstitialControllerClient::Ge
4327 return prefs_; 4420 return prefs_;
4328 } 4421 }
4329 4422
@@ -4335,19 +4428,19 @@
4335 bool SecurityInterstitialControllerClient::CanLaunchDateAndTimeSettings() { 4428 bool SecurityInterstitialControllerClient::CanLaunchDateAndTimeSettings() {
4336 NOTREACHED(); 4429 NOTREACHED();
4337 return false; 4430 return false;
4338--- components/security_interstitials/content/security_interstitial_controller_client.h.orig 4431--- a/components/security_interstitials/content/security_interstitial_controller_client.h
4339+++ components/security_interstitials/content/security_interstitial_controller_client.h 4432+++ b/components/security_interstitials/content/security_interstitial_controller_client.h
4340@@ -54,8 +54,6 @@ class SecurityInterstitialControllerClie 4433@@ -54,8 +54,6 @@ class SecurityInterstitialControllerClie
4341 bool CanGoBackBeforeNavigation() override; 4434 bool CanGoBackBeforeNavigation() override;
4342 4435
4343 protected: 4436 protected:
4344- // security_interstitials::ControllerClient overrides. 4437- // security_interstitials::ControllerClient overrides.
4345- const std::string GetExtendedReportingPrefName() const override; 4438- const std::string GetExtendedReportingPrefName() const override;
4346 content::WebContents* web_contents_; 4439 raw_ptr<content::WebContents> web_contents_;
4347 4440
4348 private: 4441 private:
4349--- components/security_interstitials/content/security_interstitial_page.cc.orig 4442--- a/components/security_interstitials/content/security_interstitial_page.cc
4350+++ components/security_interstitials/content/security_interstitial_page.cc 4443+++ b/components/security_interstitials/content/security_interstitial_page.cc
4351@@ -11,7 +11,6 @@ 4444@@ -11,7 +11,6 @@
4352 #include "base/values.h" 4445 #include "base/values.h"
4353 #include "components/grit/components_resources.h" 4446 #include "components/grit/components_resources.h"
@@ -4388,8 +4481,8 @@
4388 } 4481 }
4389 4482
4390 std::u16string SecurityInterstitialPage::GetFormattedHostName() const { 4483 std::u16string SecurityInterstitialPage::GetFormattedHostName() const {
4391--- components/security_interstitials/content/ssl_blocking_page.cc.orig 4484--- a/components/security_interstitials/content/ssl_blocking_page.cc
4392+++ components/security_interstitials/content/ssl_blocking_page.cc 4485+++ b/components/security_interstitials/content/ssl_blocking_page.cc
4393@@ -12,7 +12,6 @@ 4486@@ -12,7 +12,6 @@
4394 #include "base/metrics/histogram_macros.h" 4487 #include "base/metrics/histogram_macros.h"
4395 #include "base/strings/string_number_conversions.h" 4488 #include "base/strings/string_number_conversions.h"
@@ -4398,8 +4491,8 @@
4398 #include "components/security_interstitials/content/cert_report_helper.h" 4491 #include "components/security_interstitials/content/cert_report_helper.h"
4399 #include "components/security_interstitials/content/security_interstitial_controller_client.h" 4492 #include "components/security_interstitials/content/security_interstitial_controller_client.h"
4400 #include "components/security_interstitials/content/security_interstitial_page.h" 4493 #include "components/security_interstitials/content/security_interstitial_page.h"
4401--- components/security_interstitials/core/controller_client.cc.orig 4494--- a/components/security_interstitials/core/controller_client.cc
4402+++ components/security_interstitials/core/controller_client.cc 4495+++ b/components/security_interstitials/core/controller_client.cc
4403@@ -36,7 +36,6 @@ MetricsHelper* ControllerClient::metrics 4496@@ -36,7 +36,6 @@ MetricsHelper* ControllerClient::metrics
4404 4497
4405 void ControllerClient::SetReportingPreference(bool report) { 4498 void ControllerClient::SetReportingPreference(bool report) {
@@ -4408,9 +4501,9 @@
4408 metrics_helper_->RecordUserInteraction( 4501 metrics_helper_->RecordUserInteraction(
4409 report ? MetricsHelper::SET_EXTENDED_REPORTING_ENABLED 4502 report ? MetricsHelper::SET_EXTENDED_REPORTING_ENABLED
4410 : MetricsHelper::SET_EXTENDED_REPORTING_DISABLED); 4503 : MetricsHelper::SET_EXTENDED_REPORTING_DISABLED);
4411--- components/security_interstitials/core/controller_client.h.orig 4504--- a/components/security_interstitials/core/controller_client.h
4412+++ components/security_interstitials/core/controller_client.h 4505+++ b/components/security_interstitials/core/controller_client.h
4413@@ -122,9 +122,6 @@ class ControllerClient { 4506@@ -121,9 +121,6 @@ class ControllerClient {
4414 4507
4415 void SetBaseHelpCenterUrlForTesting(const GURL& test_url); 4508 void SetBaseHelpCenterUrlForTesting(const GURL& test_url);
4416 4509
@@ -4420,8 +4513,8 @@
4420 private: 4513 private:
4421 std::unique_ptr<MetricsHelper> metrics_helper_; 4514 std::unique_ptr<MetricsHelper> metrics_helper_;
4422 // Link to the help center. 4515 // Link to the help center.
4423--- components/signin/core/browser/account_investigator.cc.orig 4516--- a/components/signin/core/browser/account_investigator.cc
4424+++ components/signin/core/browser/account_investigator.cc 4517+++ b/components/signin/core/browser/account_investigator.cc
4425@@ -13,7 +13,6 @@ 4518@@ -13,7 +13,6 @@
4426 #include "components/prefs/pref_registry_simple.h" 4519 #include "components/prefs/pref_registry_simple.h"
4427 #include "components/prefs/pref_service.h" 4520 #include "components/prefs/pref_service.h"
@@ -4496,9 +4589,9 @@
4496 base::TimeDelta stable_age; 4589 base::TimeDelta stable_age;
4497 if (!last_changed.is_null()) 4590 if (!last_changed.is_null())
4498 stable_age = std::max(now - last_changed, base::TimeDelta()); 4591 stable_age = std::max(now - last_changed, base::TimeDelta());
4499--- components/signin/core/browser/account_investigator_unittest.cc.orig 4592--- a/components/signin/core/browser/account_investigator_unittest.cc
4500+++ components/signin/core/browser/account_investigator_unittest.cc 4593+++ b/components/signin/core/browser/account_investigator_unittest.cc
4501@@ -12,7 +12,6 @@ 4594@@ -13,7 +13,6 @@
4502 #include "build/build_config.h" 4595 #include "build/build_config.h"
4503 #include "components/prefs/pref_registry_simple.h" 4596 #include "components/prefs/pref_registry_simple.h"
4504 #include "components/signin/public/base/signin_metrics.h" 4597 #include "components/signin/public/base/signin_metrics.h"
@@ -4506,8 +4599,8 @@
4506 #include "components/signin/public/identity_manager/accounts_in_cookie_jar_info.h" 4599 #include "components/signin/public/identity_manager/accounts_in_cookie_jar_info.h"
4507 #include "components/signin/public/identity_manager/identity_test_environment.h" 4600 #include "components/signin/public/identity_manager/identity_test_environment.h"
4508 #include "components/sync_preferences/testing_pref_service_syncable.h" 4601 #include "components/sync_preferences/testing_pref_service_syncable.h"
4509--- components/signin/core/browser/account_reconcilor_unittest.cc.orig 4602--- a/components/signin/core/browser/account_reconcilor_unittest.cc
4510+++ components/signin/core/browser/account_reconcilor_unittest.cc 4603+++ b/components/signin/core/browser/account_reconcilor_unittest.cc
4511@@ -29,7 +29,6 @@ 4604@@ -29,7 +29,6 @@
4512 #include "components/signin/public/base/list_accounts_test_utils.h" 4605 #include "components/signin/public/base/list_accounts_test_utils.h"
4513 #include "components/signin/public/base/signin_buildflags.h" 4606 #include "components/signin/public/base/signin_buildflags.h"
@@ -4516,8 +4609,8 @@
4516 #include "components/signin/public/base/test_signin_client.h" 4609 #include "components/signin/public/base/test_signin_client.h"
4517 #include "components/signin/public/identity_manager/accounts_in_cookie_jar_info.h" 4610 #include "components/signin/public/identity_manager/accounts_in_cookie_jar_info.h"
4518 #include "components/signin/public/identity_manager/identity_test_environment.h" 4611 #include "components/signin/public/identity_manager/identity_test_environment.h"
4519--- components/signin/core/browser/dice_account_reconcilor_delegate.cc.orig 4612--- a/components/signin/core/browser/dice_account_reconcilor_delegate.cc
4520+++ components/signin/core/browser/dice_account_reconcilor_delegate.cc 4613+++ b/components/signin/core/browser/dice_account_reconcilor_delegate.cc
4521@@ -12,7 +12,6 @@ 4614@@ -12,7 +12,6 @@
4522 #include "base/ranges/algorithm.h" 4615 #include "base/ranges/algorithm.h"
4523 #include "components/prefs/pref_service.h" 4616 #include "components/prefs/pref_service.h"
@@ -4526,8 +4619,8 @@
4526 4619
4527 namespace signin { 4620 namespace signin {
4528 4621
4529--- components/signin/core/browser/dice_account_reconcilor_delegate_unittest.cc.orig 4622--- a/components/signin/core/browser/dice_account_reconcilor_delegate_unittest.cc
4530+++ components/signin/core/browser/dice_account_reconcilor_delegate_unittest.cc 4623+++ b/components/signin/core/browser/dice_account_reconcilor_delegate_unittest.cc
4531@@ -8,7 +8,6 @@ 4624@@ -8,7 +8,6 @@
4532 4625
4533 #include "components/prefs/pref_registry_simple.h" 4626 #include "components/prefs/pref_registry_simple.h"
@@ -4536,8 +4629,8 @@
4536 #include "components/signin/public/base/test_signin_client.h" 4629 #include "components/signin/public/base/test_signin_client.h"
4537 #include "components/sync_preferences/testing_pref_service_syncable.h" 4630 #include "components/sync_preferences/testing_pref_service_syncable.h"
4538 #include "google_apis/gaia/gaia_auth_util.h" 4631 #include "google_apis/gaia/gaia_auth_util.h"
4539--- components/signin/core/browser/signin_investigator.cc.orig 4632--- a/components/signin/core/browser/signin_investigator.cc
4540+++ components/signin/core/browser/signin_investigator.cc 4633+++ b/components/signin/core/browser/signin_investigator.cc
4541@@ -7,7 +7,6 @@ 4634@@ -7,7 +7,6 @@
4542 #include "base/check.h" 4635 #include "base/check.h"
4543 #include "base/metrics/histogram_macros.h" 4636 #include "base/metrics/histogram_macros.h"
@@ -4574,8 +4667,8 @@
4574 scenario = InvestigatedScenario::kFirstSignIn; 4667 scenario = InvestigatedScenario::kFirstSignIn;
4575 } else if (AreAccountsEqualWithFallback()) { 4668 } else if (AreAccountsEqualWithFallback()) {
4576 scenario = InvestigatedScenario::kSameAccount; 4669 scenario = InvestigatedScenario::kSameAccount;
4577--- components/signin/core/browser/signin_investigator_unittest.cc.orig 4670--- a/components/signin/core/browser/signin_investigator_unittest.cc
4578+++ components/signin/core/browser/signin_investigator_unittest.cc 4671+++ b/components/signin/core/browser/signin_investigator_unittest.cc
4579@@ -9,7 +9,6 @@ 4672@@ -9,7 +9,6 @@
4580 #include "components/prefs/pref_registry_simple.h" 4673 #include "components/prefs/pref_registry_simple.h"
4581 #include "components/signin/core/browser/signin_investigator.h" 4674 #include "components/signin/core/browser/signin_investigator.h"
@@ -4584,9 +4677,9 @@
4584 #include "components/signin/public/identity_manager/identity_test_environment.h" 4677 #include "components/signin/public/identity_manager/identity_test_environment.h"
4585 #include "components/sync_preferences/testing_pref_service_syncable.h" 4678 #include "components/sync_preferences/testing_pref_service_syncable.h"
4586 #include "testing/gtest/include/gtest/gtest.h" 4679 #include "testing/gtest/include/gtest/gtest.h"
4587--- components/signin/internal/identity_manager/account_tracker_service.cc.orig 4680--- a/components/signin/internal/identity_manager/account_tracker_service.cc
4588+++ components/signin/internal/identity_manager/account_tracker_service.cc 4681+++ b/components/signin/internal/identity_manager/account_tracker_service.cc
4589@@ -29,7 +29,6 @@ 4682@@ -31,7 +31,6 @@
4590 #include "components/prefs/scoped_user_pref_update.h" 4683 #include "components/prefs/scoped_user_pref_update.h"
4591 #include "components/signin/internal/identity_manager/account_capabilities_constants.h" 4684 #include "components/signin/internal/identity_manager/account_capabilities_constants.h"
4592 #include "components/signin/internal/identity_manager/account_info_util.h" 4685 #include "components/signin/internal/identity_manager/account_info_util.h"
@@ -4594,7 +4687,7 @@
4594 #include "components/signin/public/base/signin_switches.h" 4687 #include "components/signin/public/base/signin_switches.h"
4595 #include "components/signin/public/identity_manager/account_capabilities.h" 4688 #include "components/signin/public/identity_manager/account_capabilities.h"
4596 #include "components/signin/public/identity_manager/tribool.h" 4689 #include "components/signin/public/identity_manager/tribool.h"
4597@@ -152,9 +151,6 @@ AccountTrackerService::~AccountTrackerSe 4690@@ -178,9 +177,6 @@ AccountTrackerService::~AccountTrackerSe
4598 4691
4599 // static 4692 // static
4600 void AccountTrackerService::RegisterPrefs(PrefRegistrySimple* registry) { 4693 void AccountTrackerService::RegisterPrefs(PrefRegistrySimple* registry) {
@@ -4604,7 +4697,7 @@
4604 } 4697 }
4605 4698
4606 void AccountTrackerService::Initialize(PrefService* pref_service, 4699 void AccountTrackerService::Initialize(PrefService* pref_service,
4607@@ -455,14 +451,12 @@ AccountTrackerService::ComputeNewMigrati 4700@@ -481,14 +477,12 @@ AccountTrackerService::ComputeNewMigrati
4608 4701
4609 void AccountTrackerService::SetMigrationState(AccountIdMigrationState state) { 4702 void AccountTrackerService::SetMigrationState(AccountIdMigrationState state) {
4610 DCHECK(state != MIGRATION_DONE || AreAllAccountsMigrated()); 4703 DCHECK(state != MIGRATION_DONE || AreAllAccountsMigrated());
@@ -4620,7 +4713,7 @@
4620 } 4713 }
4621 4714
4622 base::FilePath AccountTrackerService::GetImagePathFor( 4715 base::FilePath AccountTrackerService::GetImagePathFor(
4623@@ -519,24 +513,7 @@ void AccountTrackerService::OnAccountIma 4716@@ -545,27 +539,6 @@ void AccountTrackerService::OnAccountIma
4624 const CoreAccountId& account_id, 4717 const CoreAccountId& account_id,
4625 const std::string& image_url_with_size, 4718 const std::string& image_url_with_size,
4626 bool success) { 4719 bool success) {
@@ -4629,12 +4722,15 @@
4629- 4722-
4630- base::DictionaryValue* dict = nullptr; 4723- base::DictionaryValue* dict = nullptr;
4631- ListPrefUpdate update(pref_service_, prefs::kAccountInfo); 4724- ListPrefUpdate update(pref_service_, prefs::kAccountInfo);
4632- for (size_t i = 0; i < update->GetList().size(); ++i, dict = nullptr) { 4725- for (size_t i = 0; i < update->GetListDeprecated().size();
4633- if (update->GetDictionary(i, &dict)) { 4726- ++i, dict = nullptr) {
4634- std::string value; 4727- base::Value& dict_value = update->GetListDeprecated()[i];
4635- if (dict->GetString(kAccountKeyPath, &value) && 4728- if (dict_value.is_dict()) {
4636- value == account_id.ToString()) 4729- dict = static_cast<base::DictionaryValue*>(&dict_value);
4730- const std::string* account_key = dict->FindStringKey(kAccountKeyPath);
4731- if (account_key && *account_key == account_id.ToString()) {
4637- break; 4732- break;
4733- }
4638- } 4734- }
4639- } 4735- }
4640- 4736-
@@ -4642,67 +4738,177 @@
4642- return; 4738- return;
4643- } 4739- }
4644- dict->SetString(kLastDownloadedImageURLWithSizePath, image_url_with_size); 4740- dict->SetString(kLastDownloadedImageURLWithSizePath, image_url_with_size);
4645+ return;
4646 } 4741 }
4647 4742
4648 void AccountTrackerService::RemoveAccountImageFromDisk( 4743 void AccountTrackerService::RemoveAccountImageFromDisk(
4649@@ -548,11 +525,10 @@ void AccountTrackerService::RemoveAccoun 4744@@ -577,181 +550,16 @@ void AccountTrackerService::RemoveAccoun
4650 } 4745 }
4651 4746
4652 void AccountTrackerService::LoadFromPrefs() { 4747 void AccountTrackerService::LoadFromPrefs() {
4653- const base::ListValue* list = pref_service_->GetList(prefs::kAccountInfo); 4748- const base::Value* list = pref_service_->GetList(prefs::kAccountInfo);
4654 std::set<CoreAccountId> to_remove; 4749- std::set<CoreAccountId> to_remove;
4655- for (size_t i = 0; i < list->GetList().size(); ++i) { 4750- for (size_t i = 0; i < list->GetListDeprecated().size(); ++i) {
4656+ for (size_t i = 0; false; ++i) { 4751- const base::Value& dict_value = list->GetListDeprecated()[i];
4657 const base::DictionaryValue* dict = nullptr; 4752- if (dict_value.is_dict()) {
4658- if (list->GetDictionary(i, &dict)) { 4753- const base::DictionaryValue& dict =
4659+ if (false) { 4754- base::Value::AsDictionaryValue(dict_value);
4660 std::string value; 4755- if (const std::string* account_key =
4661 if (dict->GetString(kAccountKeyPath, &value)) { 4756- dict.FindStringKey(kAccountKeyPath)) {
4662 // Ignore incorrectly persisted non-canonical account ids. 4757- // Ignore incorrectly persisted non-canonical account ids.
4663@@ -588,14 +564,6 @@ void AccountTrackerService::LoadFromPref 4758- if (account_key->find('@') != std::string::npos &&
4664 account_info.is_child_account = is_child_status.value() 4759- *account_key != gaia::CanonicalizeEmail(*account_key)) {
4665 ? signin::Tribool::kTrue 4760- to_remove.insert(CoreAccountId::FromString(*account_key));
4666 : signin::Tribool::kFalse; 4761- continue;
4762- }
4763-
4764- CoreAccountId account_id = CoreAccountId::FromString(*account_key);
4765- StartTrackingAccount(account_id);
4766- AccountInfo& account_info = accounts_[account_id];
4767-
4768- GetString(dict, kAccountGaiaPath, account_info.gaia);
4769- GetString(dict, kAccountEmailPath, account_info.email);
4770- GetString(dict, kAccountHostedDomainPath, account_info.hosted_domain);
4771- GetString(dict, kAccountFullNamePath, account_info.full_name);
4772- GetString(dict, kAccountGivenNamePath, account_info.given_name);
4773- GetString(dict, kAccountLocalePath, account_info.locale);
4774- GetString(dict, kAccountPictureURLPath, account_info.picture_url);
4775- GetString(dict, kLastDownloadedImageURLWithSizePath,
4776- account_info.last_downloaded_image_url_with_size);
4777-
4778- if (absl::optional<bool> is_child_status =
4779- dict.FindBoolKey(kDeprecatedChildStatusPath)) {
4780- account_info.is_child_account = is_child_status.value()
4781- ? signin::Tribool::kTrue
4782- : signin::Tribool::kFalse;
4667- // Migrate to kAccountChildAttributePath. 4783- // Migrate to kAccountChildAttributePath.
4668- ListPrefUpdate update(pref_service_, prefs::kAccountInfo); 4784- ListPrefUpdate update(pref_service_, prefs::kAccountInfo);
4669- base::DictionaryValue* update_dict = nullptr; 4785- base::Value* update_dict = &update->GetListDeprecated()[i];
4670- update->GetDictionary(i, &update_dict); 4786- DCHECK(update_dict->is_dict());
4671- DCHECK(update_dict); 4787- update_dict->SetIntPath(
4672- SetAccountCapabilityPath(update_dict, kAccountChildAttributePath, 4788- kAccountChildAttributePath,
4673- account_info.is_child_account); 4789- static_cast<int>(account_info.is_child_account));
4674- update_dict->RemoveKey(kDeprecatedChildStatusPath); 4790- update_dict->RemoveKey(kDeprecatedChildStatusPath);
4675 } else { 4791- } else {
4676 account_info.is_child_account = 4792- account_info.is_child_account =
4677 FindAccountCapabilityPath(*dict, kAccountChildAttributePath); 4793- ParseTribool(dict.FindIntPath(kAccountChildAttributePath));
4678@@ -654,13 +622,11 @@ void AccountTrackerService::LoadFromPref 4794- }
4795-
4796- absl::optional<bool> is_under_advanced_protection =
4797- dict.FindBoolKey(kAdvancedProtectionAccountStatusPath);
4798- if (is_under_advanced_protection.has_value()) {
4799- account_info.is_under_advanced_protection =
4800- is_under_advanced_protection.value();
4801- }
4802-
4803- if (absl::optional<int> can_offer_extended_chrome_sync_promos =
4804- dict.FindIntPath(
4805- kDeprecatedCanOfferExtendedChromeSyncPromosPrefPath)) {
4806- // Migrate to Capability names based pref paths.
4807- ListPrefUpdate update(pref_service_, prefs::kAccountInfo);
4808- base::Value* update_dict = &update->GetListDeprecated()[i];
4809- DCHECK(update_dict->is_dict());
4810- SetAccountCapabilityState(
4811- update_dict, kCanOfferExtendedChromeSyncPromosCapabilityName,
4812- ParseTribool(can_offer_extended_chrome_sync_promos));
4813- update_dict->RemovePath(
4814- kDeprecatedCanOfferExtendedChromeSyncPromosPrefPath);
4815- }
4816-
4817- for (const std::string& name :
4818- AccountCapabilities::GetSupportedAccountCapabilityNames()) {
4819- switch (FindAccountCapabilityState(dict, name)) {
4820- case signin::Tribool::kUnknown:
4821- account_info.capabilities.capabilities_map_.erase(name);
4822- break;
4823- case signin::Tribool::kTrue:
4824- account_info.capabilities.capabilities_map_[name] = true;
4825- break;
4826- case signin::Tribool::kFalse:
4827- account_info.capabilities.capabilities_map_[name] = false;
4828- break;
4829- }
4830- }
4831-
4832- if (!account_info.gaia.empty())
4833- NotifyAccountUpdated(account_info);
4834- }
4835- }
4836- }
4837-
4838- // Remove any obsolete prefs.
4839- for (auto account_id : to_remove) {
4840- AccountInfo account_info;
4841- account_info.account_id = account_id;
4842- RemoveFromPrefs(account_info);
4843- RemoveAccountImageFromDisk(account_id);
4844- }
4845-
4846- if (GetMigrationState() != MIGRATION_DONE) {
4847- const AccountIdMigrationState new_state = ComputeNewMigrationState();
4848- SetMigrationState(new_state);
4849-
4850- if (new_state == MIGRATION_IN_PROGRESS) {
4851- MigrateToGaiaId();
4852- }
4853- }
4854-
4855- DCHECK(GetMigrationState() != MIGRATION_DONE || AreAllAccountsMigrated());
4856- UMA_HISTOGRAM_ENUMERATION("Signin.AccountTracker.GaiaIdMigrationState",
4857- GetMigrationState(), NUM_MIGRATION_STATES);
4858-
4859- UMA_HISTOGRAM_COUNTS_100("Signin.AccountTracker.CountOfLoadedAccounts",
4860- accounts_.size());
4679 } 4861 }
4680 4862
4681 void AccountTrackerService::SaveToPrefs(const AccountInfo& account_info) { 4863 void AccountTrackerService::SaveToPrefs(const AccountInfo& account_info) {
4682- if (!pref_service_) 4864- if (!pref_service_)
4683- return; 4865- return;
4684+ return; 4866-
4685 4867- base::DictionaryValue* dict = nullptr;
4686 base::DictionaryValue* dict = nullptr;
4687- ListPrefUpdate update(pref_service_, prefs::kAccountInfo); 4868- ListPrefUpdate update(pref_service_, prefs::kAccountInfo);
4688- for (size_t i = 0; i < update->GetList().size(); ++i, dict = nullptr) { 4869- for (size_t i = 0; i < update->GetListDeprecated().size();
4689- if (update->GetDictionary(i, &dict)) { 4870- ++i, dict = nullptr) {
4690+ if (false) { 4871- base::Value& dict_value = update->GetListDeprecated()[i];
4691+ while (false) { 4872- if (dict_value.is_dict()) {
4692 std::string value; 4873- dict = static_cast<base::DictionaryValue*>(&dict_value);
4693 if (dict->GetString(kAccountKeyPath, &value) && 4874- const std::string* account_key = dict->FindStringKey(kAccountKeyPath);
4694 value == account_info.account_id.ToString()) 4875- if (account_key && *account_key == account_info.account_id.ToString()) {
4695@@ -670,9 +636,6 @@ void AccountTrackerService::SaveToPrefs( 4876- break;
4696 4877- }
4697 if (!dict) { 4878- }
4698 dict = new base::DictionaryValue(); 4879- }
4699- update->Append(base::WrapUnique(dict)); 4880-
4700- // |dict| is invalidated at this point, so it needs to be reset. 4881- if (!dict) {
4701- update->GetDictionary(update->GetList().size() - 1, &dict); 4882- update->Append(base::Value(base::Value::Type::DICTIONARY));
4702 dict->SetString(kAccountKeyPath, account_info.account_id.ToString()); 4883- base::Value& dict_value = update->GetListDeprecated().back();
4703 } 4884- DCHECK(dict_value.is_dict());
4885- dict = static_cast<base::DictionaryValue*>(&dict_value);
4886- dict->SetString(kAccountKeyPath, account_info.account_id.ToString());
4887- }
4888-
4889- dict->SetString(kAccountEmailPath, account_info.email);
4890- dict->SetString(kAccountGaiaPath, account_info.gaia);
4891- dict->SetString(kAccountHostedDomainPath, account_info.hosted_domain);
4892- dict->SetString(kAccountFullNamePath, account_info.full_name);
4893- dict->SetString(kAccountGivenNamePath, account_info.given_name);
4894- dict->SetString(kAccountLocalePath, account_info.locale);
4895- dict->SetString(kAccountPictureURLPath, account_info.picture_url);
4896- dict->SetIntPath(kAccountChildAttributePath,
4897- static_cast<int>(account_info.is_child_account));
4898- dict->SetBoolean(kAdvancedProtectionAccountStatusPath,
4899- account_info.is_under_advanced_protection);
4900- // |kLastDownloadedImageURLWithSizePath| should only be set after the GAIA
4901- // picture is successufly saved to disk. Otherwise, there is no guarantee that
4902- // |kLastDownloadedImageURLWithSizePath| matches the picture on disk.
4903- for (const std::string& name :
4904- AccountCapabilities::GetSupportedAccountCapabilityNames()) {
4905- signin::Tribool capability_state =
4906- account_info.capabilities.GetCapabilityByName(name);
4907- SetAccountCapabilityState(dict, name, capability_state);
4908- }
4909 }
4704 4910
4705@@ -699,14 +662,7 @@ void AccountTrackerService::RemoveFromPr 4911 void AccountTrackerService::RemoveFromPrefs(const AccountInfo& account_info) {
4706 if (!pref_service_) 4912 if (!pref_service_)
4707 return; 4913 return;
4708 4914
@@ -4717,9 +4923,9 @@
4717 } 4923 }
4718 4924
4719 CoreAccountId AccountTrackerService::PickAccountIdForAccount( 4925 CoreAccountId AccountTrackerService::PickAccountIdForAccount(
4720--- components/signin/internal/identity_manager/account_tracker_service.h.orig 4926--- a/components/signin/internal/identity_manager/account_tracker_service.h
4721+++ components/signin/internal/identity_manager/account_tracker_service.h 4927+++ b/components/signin/internal/identity_manager/account_tracker_service.h
4722@@ -236,6 +236,8 @@ class AccountTrackerService { 4928@@ -235,6 +235,8 @@ class AccountTrackerService {
4723 AccountInfoCallback on_account_updated_callback_; 4929 AccountInfoCallback on_account_updated_callback_;
4724 AccountInfoCallback on_account_removed_callback_; 4930 AccountInfoCallback on_account_removed_callback_;
4725 4931
@@ -4728,18 +4934,18 @@
4728 // Task runner used for file operations on avatar images. 4934 // Task runner used for file operations on avatar images.
4729 scoped_refptr<base::SequencedTaskRunner> image_storage_task_runner_; 4935 scoped_refptr<base::SequencedTaskRunner> image_storage_task_runner_;
4730 4936
4731--- components/signin/internal/identity_manager/account_tracker_service_unittest.cc.orig 4937--- a/components/signin/internal/identity_manager/account_tracker_service_unittest.cc
4732+++ components/signin/internal/identity_manager/account_tracker_service_unittest.cc 4938+++ b/components/signin/internal/identity_manager/account_tracker_service_unittest.cc
4733@@ -26,7 +26,6 @@ 4939@@ -28,7 +28,6 @@
4734 #include "components/signin/internal/identity_manager/account_tracker_service.h" 4940 #include "components/signin/internal/identity_manager/fake_account_capabilities_fetcher_factory.h"
4735 #include "components/signin/internal/identity_manager/fake_profile_oauth2_token_service.h" 4941 #include "components/signin/internal/identity_manager/fake_profile_oauth2_token_service.h"
4736 #include "components/signin/public/base/avatar_icon_util.h" 4942 #include "components/signin/public/base/avatar_icon_util.h"
4737-#include "components/signin/public/base/signin_pref_names.h" 4943-#include "components/signin/public/base/signin_pref_names.h"
4738 #include "components/signin/public/base/signin_switches.h" 4944 #include "components/signin/public/base/signin_switches.h"
4739 #include "components/signin/public/base/test_signin_client.h" 4945 #include "components/signin/public/base/test_signin_client.h"
4740 #include "components/signin/public/identity_manager/account_capabilities.h" 4946 #include "components/signin/public/identity_manager/account_capabilities.h"
4741--- components/signin/internal/identity_manager/gaia_cookie_manager_service.cc.orig 4947--- a/components/signin/internal/identity_manager/gaia_cookie_manager_service.cc
4742+++ components/signin/internal/identity_manager/gaia_cookie_manager_service.cc 4948+++ b/components/signin/internal/identity_manager/gaia_cookie_manager_service.cc
4743@@ -29,7 +29,6 @@ 4949@@ -29,7 +29,6 @@
4744 #include "components/signin/internal/identity_manager/ubertoken_fetcher_impl.h" 4950 #include "components/signin/internal/identity_manager/ubertoken_fetcher_impl.h"
4745 #include "components/signin/public/base/signin_buildflags.h" 4951 #include "components/signin/public/base/signin_buildflags.h"
@@ -4748,7 +4954,7 @@
4748 #include "components/signin/public/identity_manager/set_accounts_in_cookie_result.h" 4954 #include "components/signin/public/identity_manager/set_accounts_in_cookie_result.h"
4749 #include "google_apis/gaia/gaia_constants.h" 4955 #include "google_apis/gaia/gaia_constants.h"
4750 #include "google_apis/gaia/gaia_urls.h" 4956 #include "google_apis/gaia/gaia_urls.h"
4751@@ -456,9 +455,7 @@ GaiaCookieManagerService::GaiaCookieMana 4957@@ -451,9 +450,7 @@ GaiaCookieManagerService::GaiaCookieMana
4752 listAccountsUnexpectedServerResponseRetried_(false), 4958 listAccountsUnexpectedServerResponseRetried_(false),
4753 external_cc_result_fetched_(false), 4959 external_cc_result_fetched_(false),
4754 list_accounts_stale_(true) { 4960 list_accounts_stale_(true) {
@@ -4759,7 +4965,7 @@
4759 4965
4760 if (!gaia_cookie_last_list_accounts_data.empty()) { 4966 if (!gaia_cookie_last_list_accounts_data.empty()) {
4761 if (!gaia::ParseListAccountsData(gaia_cookie_last_list_accounts_data, 4967 if (!gaia::ParseListAccountsData(gaia_cookie_last_list_accounts_data,
4762@@ -482,8 +479,6 @@ GaiaCookieManagerService::~GaiaCookieMan 4968@@ -477,8 +474,6 @@ GaiaCookieManagerService::~GaiaCookieMan
4763 4969
4764 // static 4970 // static
4765 void GaiaCookieManagerService::RegisterPrefs(PrefRegistrySimple* registry) { 4971 void GaiaCookieManagerService::RegisterPrefs(PrefRegistrySimple* registry) {
@@ -4768,7 +4974,7 @@
4768 } 4974 }
4769 4975
4770 void GaiaCookieManagerService::InitCookieListener() { 4976 void GaiaCookieManagerService::InitCookieListener() {
4771@@ -906,16 +901,12 @@ void GaiaCookieManagerService::OnListAcc 4977@@ -896,16 +891,12 @@ void GaiaCookieManagerService::OnListAcc
4772 &signed_out_accounts_)) { 4978 &signed_out_accounts_)) {
4773 listed_accounts_.clear(); 4979 listed_accounts_.clear();
4774 signed_out_accounts_.clear(); 4980 signed_out_accounts_.clear();
@@ -4785,9 +4991,9 @@
4785 RecordListAccountsFailure(GoogleServiceAuthError::NONE); 4991 RecordListAccountsFailure(GoogleServiceAuthError::NONE);
4786 4992
4787 InitializeListedAccountsIds(); 4993 InitializeListedAccountsIds();
4788--- components/signin/internal/identity_manager/gaia_cookie_manager_service_unittest.cc.orig 4994--- a/components/signin/internal/identity_manager/gaia_cookie_manager_service_unittest.cc
4789+++ components/signin/internal/identity_manager/gaia_cookie_manager_service_unittest.cc 4995+++ b/components/signin/internal/identity_manager/gaia_cookie_manager_service_unittest.cc
4790@@ -25,7 +25,6 @@ 4996@@ -24,7 +24,6 @@
4791 #include "components/prefs/testing_pref_service.h" 4997 #include "components/prefs/testing_pref_service.h"
4792 #include "components/signin/internal/identity_manager/account_tracker_service.h" 4998 #include "components/signin/internal/identity_manager/account_tracker_service.h"
4793 #include "components/signin/internal/identity_manager/fake_profile_oauth2_token_service.h" 4999 #include "components/signin/internal/identity_manager/fake_profile_oauth2_token_service.h"
@@ -4795,8 +5001,8 @@
4795 #include "components/signin/public/base/test_signin_client.h" 5001 #include "components/signin/public/base/test_signin_client.h"
4796 #include "google_apis/gaia/gaia_constants.h" 5002 #include "google_apis/gaia/gaia_constants.h"
4797 #include "google_apis/gaia/gaia_urls.h" 5003 #include "google_apis/gaia/gaia_urls.h"
4798--- components/signin/internal/identity_manager/mutable_profile_oauth2_token_service_delegate.cc.orig 5004--- a/components/signin/internal/identity_manager/mutable_profile_oauth2_token_service_delegate.cc
4799+++ components/signin/internal/identity_manager/mutable_profile_oauth2_token_service_delegate.cc 5005+++ b/components/signin/internal/identity_manager/mutable_profile_oauth2_token_service_delegate.cc
4800@@ -17,7 +17,6 @@ 5006@@ -17,7 +17,6 @@
4801 #include "components/prefs/pref_service.h" 5007 #include "components/prefs/pref_service.h"
4802 #include "components/signin/public/base/signin_client.h" 5008 #include "components/signin/public/base/signin_client.h"
@@ -4851,8 +5057,8 @@
4851- client_->GetPrefs()->SetBoolean(prefs::kTokenServiceDiceCompatible, true); 5057- client_->GetPrefs()->SetBoolean(prefs::kTokenServiceDiceCompatible, true);
4852 } 5058 }
4853 } 5059 }
4854--- components/signin/internal/identity_manager/mutable_profile_oauth2_token_service_delegate_unittest.cc.orig 5060--- a/components/signin/internal/identity_manager/mutable_profile_oauth2_token_service_delegate_unittest.cc
4855+++ components/signin/internal/identity_manager/mutable_profile_oauth2_token_service_delegate_unittest.cc 5061+++ b/components/signin/internal/identity_manager/mutable_profile_oauth2_token_service_delegate_unittest.cc
4856@@ -25,7 +25,6 @@ 5062@@ -25,7 +25,6 @@
4857 #include "components/signin/internal/identity_manager/profile_oauth2_token_service.h" 5063 #include "components/signin/internal/identity_manager/profile_oauth2_token_service.h"
4858 #include "components/signin/public/base/account_consistency_method.h" 5064 #include "components/signin/public/base/account_consistency_method.h"
@@ -4861,8 +5067,8 @@
4861 #include "components/signin/public/base/test_signin_client.h" 5067 #include "components/signin/public/base/test_signin_client.h"
4862 #include "components/signin/public/identity_manager/account_info.h" 5068 #include "components/signin/public/identity_manager/account_info.h"
4863 #include "components/signin/public/webdata/token_web_data.h" 5069 #include "components/signin/public/webdata/token_web_data.h"
4864--- components/signin/internal/identity_manager/primary_account_manager.cc.orig 5070--- a/components/signin/internal/identity_manager/primary_account_manager.cc
4865+++ components/signin/internal/identity_manager/primary_account_manager.cc 5071+++ b/components/signin/internal/identity_manager/primary_account_manager.cc
4866@@ -22,7 +22,6 @@ 5072@@ -22,7 +22,6 @@
4867 #include "components/signin/public/base/account_consistency_method.h" 5073 #include "components/signin/public/base/account_consistency_method.h"
4868 #include "components/signin/public/base/signin_client.h" 5074 #include "components/signin/public/base/signin_client.h"
@@ -4871,7 +5077,7 @@
4871 #include "components/signin/public/base/signin_switches.h" 5077 #include "components/signin/public/base/signin_switches.h"
4872 5078
4873 using signin::PrimaryAccountChangeEvent; 5079 using signin::PrimaryAccountChangeEvent;
4874@@ -47,22 +46,10 @@ PrimaryAccountManager::~PrimaryAccountMa 5080@@ -44,22 +43,10 @@ PrimaryAccountManager::~PrimaryAccountMa
4875 5081
4876 // static 5082 // static
4877 void PrimaryAccountManager::RegisterProfilePrefs(PrefRegistrySimple* registry) { 5083 void PrimaryAccountManager::RegisterProfilePrefs(PrefRegistrySimple* registry) {
@@ -4894,7 +5100,7 @@
4894 } 5100 }
4895 5101
4896 void PrimaryAccountManager::Initialize(PrefService* local_state) { 5102 void PrimaryAccountManager::Initialize(PrefService* local_state) {
4897@@ -70,25 +57,7 @@ void PrimaryAccountManager::Initialize(P 5103@@ -67,25 +54,7 @@ void PrimaryAccountManager::Initialize(P
4898 DCHECK(!IsInitialized()); 5104 DCHECK(!IsInitialized());
4899 initialized_ = true; 5105 initialized_ = true;
4900 5106
@@ -4921,7 +5127,7 @@
4921 5127
4922 if (!pref_account_id.empty()) { 5128 if (!pref_account_id.empty()) {
4923 if (account_tracker_service_->GetMigrationState() == 5129 if (account_tracker_service_->GetMigrationState() ==
4924@@ -98,14 +67,11 @@ void PrimaryAccountManager::Initialize(P 5130@@ -95,14 +64,11 @@ void PrimaryAccountManager::Initialize(P
4925 // |account_info.gaia| could be empty if |account_id| is already gaia id. 5131 // |account_info.gaia| could be empty if |account_id| is already gaia id.
4926 if (!account_info.gaia.empty()) { 5132 if (!account_info.gaia.empty()) {
4927 pref_account_id = account_info.gaia; 5133 pref_account_id = account_info.gaia;
@@ -4937,7 +5143,7 @@
4937 CoreAccountId account_id = CoreAccountId::FromString(pref_account_id); 5143 CoreAccountId account_id = CoreAccountId::FromString(pref_account_id);
4938 CoreAccountInfo account_info = 5144 CoreAccountInfo account_info =
4939 account_tracker_service_->GetAccountInfo(account_id); 5145 account_tracker_service_->GetAccountInfo(account_id);
4940@@ -166,8 +132,7 @@ void PrimaryAccountManager::SetSyncPrima 5146@@ -176,8 +142,7 @@ void PrimaryAccountManager::SetSyncPrima
4941 5147
4942 #if DCHECK_IS_ON() 5148 #if DCHECK_IS_ON()
4943 { 5149 {
@@ -4947,7 +5153,7 @@
4947 bool consented_to_sync = 5153 bool consented_to_sync =
4948 client_->GetPrefs()->GetBoolean(prefs::kGoogleServicesConsentedToSync); 5154 client_->GetPrefs()->GetBoolean(prefs::kGoogleServicesConsentedToSync);
4949 5155
4950@@ -183,10 +148,6 @@ void PrimaryAccountManager::SetSyncPrima 5156@@ -193,10 +158,6 @@ void PrimaryAccountManager::SetSyncPrima
4951 // Go ahead and update the last signed in account info here as well. Once a 5157 // Go ahead and update the last signed in account info here as well. Once a
4952 // user is signed in the corresponding preferences should match. Doing it here 5158 // user is signed in the corresponding preferences should match. Doing it here
4953 // as opposed to on signin allows us to catch the upgrade scenario. 5159 // as opposed to on signin allows us to catch the upgrade scenario.
@@ -4958,7 +5164,7 @@
4958 5164
4959 // Commit primary sync account info immediately so that it does not get lost 5165 // Commit primary sync account info immediately so that it does not get lost
4960 // if Chrome crashes before the next commit interval. 5166 // if Chrome crashes before the next commit interval.
4961@@ -200,20 +161,11 @@ void PrimaryAccountManager::SetPrimaryAc 5167@@ -210,20 +171,11 @@ void PrimaryAccountManager::SetPrimaryAc
4962 5168
4963 PrefService* prefs = client_->GetPrefs(); 5169 PrefService* prefs = client_->GetPrefs();
4964 const std::string& account_id = primary_account_info_.account_id.ToString(); 5170 const std::string& account_id = primary_account_info_.account_id.ToString();
@@ -4980,27 +5186,27 @@
4980 if (primary_account_info().account_id.empty()) { 5186 if (primary_account_info().account_id.empty()) {
4981 DCHECK(!consented_pref); 5187 DCHECK(!consented_pref);
4982 return false; 5188 return false;
4983--- components/signin/internal/identity_manager/primary_account_manager_unittest.cc.orig 5189--- a/components/signin/internal/identity_manager/primary_account_manager_unittest.cc
4984+++ components/signin/internal/identity_manager/primary_account_manager_unittest.cc 5190+++ b/components/signin/internal/identity_manager/primary_account_manager_unittest.cc
4985@@ -24,7 +24,6 @@ 5191@@ -25,7 +25,6 @@
5192 #include "components/signin/internal/identity_manager/fake_account_capabilities_fetcher_factory.h"
4986 #include "components/signin/internal/identity_manager/fake_profile_oauth2_token_service_delegate.h" 5193 #include "components/signin/internal/identity_manager/fake_profile_oauth2_token_service_delegate.h"
4987 #include "components/signin/internal/identity_manager/primary_account_policy_manager.h"
4988 #include "components/signin/internal/identity_manager/profile_oauth2_token_service.h" 5194 #include "components/signin/internal/identity_manager/profile_oauth2_token_service.h"
4989-#include "components/signin/public/base/signin_pref_names.h" 5195-#include "components/signin/public/base/signin_pref_names.h"
4990 #include "components/signin/public/base/signin_switches.h" 5196 #include "components/signin/public/base/signin_switches.h"
4991 #include "components/signin/public/base/test_signin_client.h" 5197 #include "components/signin/public/base/test_signin_client.h"
4992 #include "components/sync_preferences/testing_pref_service_syncable.h" 5198 #include "components/sync_preferences/testing_pref_service_syncable.h"
4993--- components/signin/internal/identity_manager/primary_account_mutator_impl.cc.orig 5199--- a/components/signin/internal/identity_manager/primary_account_mutator_impl.cc
4994+++ components/signin/internal/identity_manager/primary_account_mutator_impl.cc 5200+++ b/components/signin/internal/identity_manager/primary_account_mutator_impl.cc
4995@@ -14,7 +14,6 @@ 5201@@ -15,7 +15,6 @@
4996 #include "components/signin/internal/identity_manager/profile_oauth2_token_service.h" 5202 #include "components/signin/internal/identity_manager/profile_oauth2_token_service.h"
4997 #include "components/signin/public/base/signin_buildflags.h" 5203 #include "components/signin/public/base/signin_buildflags.h"
4998 #include "components/signin/public/base/signin_metrics.h" 5204 #include "components/signin/public/base/signin_metrics.h"
4999-#include "components/signin/public/base/signin_pref_names.h" 5205-#include "components/signin/public/base/signin_pref_names.h"
5206 #include "components/signin/public/base/signin_switches.h"
5000 #include "google_apis/gaia/core_account_id.h" 5207 #include "google_apis/gaia/core_account_id.h"
5001 5208
5002 namespace signin { 5209@@ -60,7 +59,7 @@ PrimaryAccountMutatorImpl::SetPrimaryAcc
5003@@ -58,7 +57,7 @@ PrimaryAccountMutatorImpl::SetPrimaryAcc
5004 DCHECK(!account_info.gaia.empty()); 5210 DCHECK(!account_info.gaia.empty());
5005 5211
5006 #if !BUILDFLAG(IS_CHROMEOS_ASH) 5212 #if !BUILDFLAG(IS_CHROMEOS_ASH)
@@ -5009,59 +5215,8 @@
5009 #if BUILDFLAG(IS_CHROMEOS_LACROS) 5215 #if BUILDFLAG(IS_CHROMEOS_LACROS)
5010 // Check that `prefs::kSigninAllowed` has not been set to false in a context 5216 // Check that `prefs::kSigninAllowed` has not been set to false in a context
5011 // where Lacros wants to set a Primary Account. Lacros doesn't offer account 5217 // where Lacros wants to set a Primary Account. Lacros doesn't offer account
5012--- components/signin/internal/identity_manager/primary_account_policy_manager_impl.cc.orig 5218--- a/components/signin/internal/identity_manager/profile_oauth2_token_service.cc
5013+++ components/signin/internal/identity_manager/primary_account_policy_manager_impl.cc 5219+++ b/components/signin/internal/identity_manager/profile_oauth2_token_service.cc
5014@@ -10,7 +10,6 @@
5015 #include "components/signin/internal/identity_manager/primary_account_manager.h"
5016 #include "components/signin/public/base/signin_client.h"
5017 #include "components/signin/public/base/signin_metrics.h"
5018-#include "components/signin/public/base/signin_pref_names.h"
5019 #include "components/signin/public/identity_manager/account_info.h"
5020 #include "components/signin/public/identity_manager/identity_utils.h"
5021
5022@@ -28,18 +27,7 @@ void PrimaryAccountPolicyManagerImpl::In
5023 // local_state can be null during unit tests.
5024 if (local_state) {
5025 local_state_pref_registrar_.Init(local_state);
5026- local_state_pref_registrar_.Add(
5027- prefs::kGoogleServicesUsernamePattern,
5028- base::BindRepeating(&PrimaryAccountPolicyManagerImpl::
5029- OnGoogleServicesUsernamePatternChanged,
5030- weak_pointer_factory_.GetWeakPtr(),
5031- primary_account_manager));
5032 }
5033- signin_allowed_.Init(
5034- prefs::kSigninAllowed, client_->GetPrefs(),
5035- base::BindRepeating(
5036- &PrimaryAccountPolicyManagerImpl::OnSigninAllowedPrefChanged,
5037- base::Unretained(this), primary_account_manager));
5038
5039 CoreAccountInfo account_info = primary_account_manager->GetPrimaryAccountInfo(
5040 signin::ConsentLevel::kSync);
5041--- components/signin/internal/identity_manager/primary_account_policy_manager_impl.h.orig
5042+++ components/signin/internal/identity_manager/primary_account_policy_manager_impl.h
5043@@ -56,9 +56,6 @@ class PrimaryAccountPolicyManagerImpl :
5044 // profile-specific local prefs (like kGoogleServicesUsernamePattern).
5045 PrefChangeRegistrar local_state_pref_registrar_;
5046
5047- // Helper object to listen for changes to the signin allowed preference.
5048- BooleanPrefMember signin_allowed_;
5049-
5050 base::WeakPtrFactory<PrimaryAccountPolicyManagerImpl> weak_pointer_factory_{
5051 this};
5052 };
5053--- components/signin/internal/identity_manager/primary_account_policy_manager_impl_unittest.cc.orig
5054+++ components/signin/internal/identity_manager/primary_account_policy_manager_impl_unittest.cc
5055@@ -15,7 +15,6 @@
5056 #include "components/signin/internal/identity_manager/primary_account_policy_manager_impl.h"
5057 #include "components/signin/internal/identity_manager/profile_oauth2_token_service.h"
5058 #include "components/signin/public/base/account_consistency_method.h"
5059-#include "components/signin/public/base/signin_pref_names.h"
5060 #include "components/signin/public/base/test_signin_client.h"
5061 #include "components/sync_preferences/testing_pref_service_syncable.h"
5062 #include "testing/gtest/include/gtest/gtest.h"
5063--- components/signin/internal/identity_manager/profile_oauth2_token_service.cc.orig
5064+++ components/signin/internal/identity_manager/profile_oauth2_token_service.cc
5065@@ -12,7 +12,6 @@ 5220@@ -12,7 +12,6 @@
5066 #include "components/prefs/pref_registry_simple.h" 5221 #include "components/prefs/pref_registry_simple.h"
5067 #include "components/signin/internal/identity_manager/profile_oauth2_token_service_delegate.h" 5222 #include "components/signin/internal/identity_manager/profile_oauth2_token_service_delegate.h"
@@ -5079,9 +5234,9 @@
5079 } 5234 }
5080 5235
5081 ProfileOAuth2TokenServiceDelegate* ProfileOAuth2TokenService::GetDelegate() { 5236 ProfileOAuth2TokenServiceDelegate* ProfileOAuth2TokenService::GetDelegate() {
5082--- components/signin/internal/identity_manager/profile_oauth2_token_service_delegate_chromeos_unittest.cc.orig 5237--- a/components/signin/internal/identity_manager/profile_oauth2_token_service_delegate_chromeos_unittest.cc
5083+++ components/signin/internal/identity_manager/profile_oauth2_token_service_delegate_chromeos_unittest.cc 5238+++ b/components/signin/internal/identity_manager/profile_oauth2_token_service_delegate_chromeos_unittest.cc
5084@@ -25,7 +25,6 @@ 5239@@ -24,7 +24,6 @@
5085 #include "components/account_manager_core/mock_account_manager_facade.h" 5240 #include "components/account_manager_core/mock_account_manager_facade.h"
5086 #include "components/signin/internal/identity_manager/account_tracker_service.h" 5241 #include "components/signin/internal/identity_manager/account_tracker_service.h"
5087 #include "components/signin/internal/identity_manager/profile_oauth2_token_service_observer.h" 5242 #include "components/signin/internal/identity_manager/profile_oauth2_token_service_observer.h"
@@ -5089,8 +5244,8 @@
5089 #include "components/signin/public/base/test_signin_client.h" 5244 #include "components/signin/public/base/test_signin_client.h"
5090 #include "components/signin/public/identity_manager/account_info.h" 5245 #include "components/signin/public/identity_manager/account_info.h"
5091 #include "components/sync_preferences/testing_pref_service_syncable.h" 5246 #include "components/sync_preferences/testing_pref_service_syncable.h"
5092--- components/signin/public/base/BUILD.gn.orig 5247--- a/components/signin/public/base/BUILD.gn
5093+++ components/signin/public/base/BUILD.gn 5248+++ b/components/signin/public/base/BUILD.gn
5094@@ -34,8 +34,6 @@ static_library("base") { 5249@@ -34,8 +34,6 @@ static_library("base") {
5095 "signin_client.h", 5250 "signin_client.h",
5096 "signin_metrics.cc", 5251 "signin_metrics.cc",
@@ -5100,8 +5255,8 @@
5100 "signin_switches.cc", 5255 "signin_switches.cc",
5101 "signin_switches.h", 5256 "signin_switches.h",
5102 ] 5257 ]
5103--- components/signin/public/base/device_id_helper.cc.orig 5258--- a/components/signin/public/base/device_id_helper.cc
5104+++ components/signin/public/base/device_id_helper.cc 5259+++ b/components/signin/public/base/device_id_helper.cc
5105@@ -9,7 +9,6 @@ 5260@@ -9,7 +9,6 @@
5106 #include "base/guid.h" 5261 #include "base/guid.h"
5107 #include "build/chromeos_buildflags.h" 5262 #include "build/chromeos_buildflags.h"
@@ -5146,8 +5301,8 @@
5146 } 5301 }
5147 5302
5148 #endif 5303 #endif
5149--- components/signin/public/base/device_id_helper_unittest.cc.orig 5304--- a/components/signin/public/base/device_id_helper_unittest.cc
5150+++ components/signin/public/base/device_id_helper_unittest.cc 5305+++ b/components/signin/public/base/device_id_helper_unittest.cc
5151@@ -8,7 +8,6 @@ 5306@@ -8,7 +8,6 @@
5152 5307
5153 #include "build/build_config.h" 5308 #include "build/build_config.h"
@@ -5197,8 +5352,8 @@
5197 } 5352 }
5198 5353
5199 #endif 5354 #endif
5200--- components/signin/public/identity_manager/identity_utils.cc.orig 5355--- a/components/signin/public/identity_manager/identity_utils.cc
5201+++ components/signin/public/identity_manager/identity_utils.cc 5356+++ b/components/signin/public/identity_manager/identity_utils.cc
5202@@ -11,7 +11,6 @@ 5357@@ -11,7 +11,6 @@
5203 #include "base/strings/string_util.h" 5358 #include "base/strings/string_util.h"
5204 #include "base/strings/utf_string_conversions.h" 5359 #include "base/strings/utf_string_conversions.h"
@@ -5217,8 +5372,8 @@
5217 } 5372 }
5218 5373
5219 } // namespace signin 5374 } // namespace signin
5220--- components/signin/public/identity_manager/identity_utils_unittest.cc.orig 5375--- a/components/signin/public/identity_manager/identity_utils_unittest.cc
5221+++ components/signin/public/identity_manager/identity_utils_unittest.cc 5376+++ b/components/signin/public/identity_manager/identity_utils_unittest.cc
5222@@ -7,7 +7,6 @@ 5377@@ -7,7 +7,6 @@
5223 #include "components/prefs/pref_registry_simple.h" 5378 #include "components/prefs/pref_registry_simple.h"
5224 #include "components/prefs/pref_service.h" 5379 #include "components/prefs/pref_service.h"
@@ -5227,19 +5382,19 @@
5227 #include "testing/gtest/include/gtest/gtest.h" 5382 #include "testing/gtest/include/gtest/gtest.h"
5228 5383
5229 namespace { 5384 namespace {
5230--- components/signin/public/identity_manager/primary_account_mutator_unittest.cc.orig 5385--- a/components/signin/public/identity_manager/primary_account_mutator_unittest.cc
5231+++ components/signin/public/identity_manager/primary_account_mutator_unittest.cc 5386+++ b/components/signin/public/identity_manager/primary_account_mutator_unittest.cc
5232@@ -15,7 +15,6 @@ 5387@@ -16,7 +16,6 @@
5233 #include "build/chromeos_buildflags.h" 5388 #include "components/signin/public/base/consent_level.h"
5234 #include "components/signin/public/base/signin_buildflags.h" 5389 #include "components/signin/public/base/signin_buildflags.h"
5235 #include "components/signin/public/base/signin_metrics.h" 5390 #include "components/signin/public/base/signin_metrics.h"
5236-#include "components/signin/public/base/signin_pref_names.h" 5391-#include "components/signin/public/base/signin_pref_names.h"
5237 #include "components/signin/public/identity_manager/consent_level.h" 5392 #include "components/signin/public/base/signin_switches.h"
5238 #include "components/signin/public/identity_manager/identity_test_environment.h" 5393 #include "components/signin/public/identity_manager/identity_test_environment.h"
5239 #include "components/signin/public/identity_manager/identity_test_utils.h" 5394 #include "components/signin/public/identity_manager/identity_test_utils.h"
5240--- tools/metrics/histograms/enums.xml.orig 5395--- a/tools/metrics/histograms/enums.xml
5241+++ tools/metrics/histograms/enums.xml 5396+++ b/tools/metrics/histograms/enums.xml
5242@@ -83754,7 +83754,6 @@ Full version information for the fingerp 5397@@ -90465,7 +90465,6 @@ Full version information for the fingerp
5243 <int value="3" label="kRestoreOnStartup"/> 5398 <int value="3" label="kRestoreOnStartup"/>
5244 <int value="4" label="kURLsToRestoreOnStartup"/> 5399 <int value="4" label="kURLsToRestoreOnStartup"/>
5245 <int value="5" label="extensions::pref_names::kExtensions"/> 5400 <int value="5" label="extensions::pref_names::kExtensions"/>
@@ -5247,7 +5402,7 @@
5247 <int value="7" label="kSearchProviderOverrides"/> 5402 <int value="7" label="kSearchProviderOverrides"/>
5248 <int value="8" label="kDefaultSearchProviderSearchURL (Obsolete 12/2016)"/> 5403 <int value="8" label="kDefaultSearchProviderSearchURL (Obsolete 12/2016)"/>
5249 <int value="9" label="kDefaultSearchProviderKeyword (Obsolete 12/2016)"/> 5404 <int value="9" label="kDefaultSearchProviderKeyword (Obsolete 12/2016)"/>
5250@@ -83769,10 +83768,7 @@ Full version information for the fingerp 5405@@ -90480,10 +90479,7 @@ Full version information for the fingerp
5251 <int value="18" label="kSafeBrowsingIncidentsSent"/> 5406 <int value="18" label="kSafeBrowsingIncidentsSent"/>
5252 <int value="19" label="kSwReporterPromptVersion"/> 5407 <int value="19" label="kSwReporterPromptVersion"/>
5253 <int value="20" label="kSwReporterPromptReason"/> 5408 <int value="20" label="kSwReporterPromptReason"/>
diff --git a/www/chromium-uc/patches/core/ungoogled-chromium/replace-google-search-engine-with-nosearch.patch b/www/chromium-uc/patches/core/ungoogled-chromium/replace-google-search-engine-with-nosearch.patch
index 0ef3743..499eab4 100644
--- a/www/chromium-uc/patches/core/ungoogled-chromium/replace-google-search-engine-with-nosearch.patch
+++ b/www/chromium-uc/patches/core/ungoogled-chromium/replace-google-search-engine-with-nosearch.patch
@@ -1,17 +1,18 @@
1--- components/search_engines/prepopulated_engines.json.orig 1--- a/components/search_engines/prepopulated_engines.json
2+++ components/search_engines/prepopulated_engines.json 2+++ b/components/search_engines/prepopulated_engines.json
3@@ -113,21 +113,11 @@ 3@@ -113,22 +113,11 @@
4 }, 4 },
5 5
6 "google": { 6 "google": {
7- "name": "Google", 7- "name": "Google",
8- "keyword": "google.com", 8- "keyword": "google.com",
9- "favicon_url": "https://www.google.com/images/branding/product/ico/googleg_lodp.ico", 9- "favicon_url": "https://www.google.com/images/branding/product/ico/googleg_lodp.ico",
10- "search_url": "{google:baseURL}search?q={searchTerms}&{google:RLZ}{google:originalQueryForSuggestion}{google:assistedQueryStats}{google:searchFieldtrialParameter}{google:iOSSearchLanguage}{google:prefetchSource}{google:searchClient}{google:sourceId}{google:contextualSearchVersion}ie={inputEncoding}", 10- "search_url": "{google:baseURL}search?q={searchTerms}&{google:RLZ}{google:originalQueryForSuggestion}{google:assistedQueryStats}{google:searchboxStats}{google:searchFieldtrialParameter}{google:iOSSearchLanguage}{google:prefetchSource}{google:searchClient}{google:sourceId}{google:contextualSearchVersion}ie={inputEncoding}",
11- "suggest_url": "{google:baseSuggestURL}search?{google:searchFieldtrialParameter}client={google:suggestClient}&gs_ri={google:suggestRid}&xssi=t&q={searchTerms}&{google:inputType}{google:omniboxFocusType}{google:cursorPosition}{google:currentPageUrl}{google:pageClassification}{google:searchVersion}{google:sessionToken}{google:prefetchQuery}sugkey={google:suggestAPIKeyParameter}", 11- "suggest_url": "{google:baseSuggestURL}search?{google:searchFieldtrialParameter}client={google:suggestClient}&gs_ri={google:suggestRid}&xssi=t&q={searchTerms}&{google:inputType}{google:omniboxFocusType}{google:cursorPosition}{google:currentPageUrl}{google:pageClassification}{google:clientCacheTimeToLive}{google:searchVersion}{google:sessionToken}{google:prefetchQuery}sugkey={google:suggestAPIKeyParameter}",
12- "image_url": "{google:baseSearchByImageURL}upload", 12- "image_url": "{google:baseSearchByImageURL}upload",
13- "contextual_search_url": "{google:baseURL}_/contextualsearch?{google:contextualSearchVersion}{google:contextualSearchContextData}", 13- "contextual_search_url": "{google:baseURL}_/contextualsearch?{google:contextualSearchVersion}{google:contextualSearchContextData}",
14- "image_url_post_params": "encoded_image={google:imageThumbnail},image_url={google:imageURL},sbisrc={google:imageSearchSource},original_width={google:imageOriginalWidth},original_height={google:imageOriginalHeight}", 14- "image_url_post_params": "encoded_image={google:imageThumbnail},image_url={google:imageURL},sbisrc={google:imageSearchSource},original_width={google:imageOriginalWidth},original_height={google:imageOriginalHeight}",
15- "side_search_param": "sidesearch",
15- "alternate_urls": [ 16- "alternate_urls": [
16- "{google:baseURL}#q={searchTerms}", 17- "{google:baseURL}#q={searchTerms}",
17- "{google:baseURL}search#q={searchTerms}", 18- "{google:baseURL}search#q={searchTerms}",
diff --git a/www/chromium-uc/patches/core/ungoogled-chromium/toggle-translation-via-switch.patch b/www/chromium-uc/patches/core/ungoogled-chromium/toggle-translation-via-switch.patch
index 50efc58..86640b5 100644
--- a/www/chromium-uc/patches/core/ungoogled-chromium/toggle-translation-via-switch.patch
+++ b/www/chromium-uc/patches/core/ungoogled-chromium/toggle-translation-via-switch.patch
@@ -1,7 +1,7 @@
1# Disables translation and removes the "Translate to" context menu when --translate-script-url flag is not set 1# Disables translation and removes the "Translate to" context menu when --translate-script-url flag is not set
2--- chrome/browser/renderer_context_menu/render_view_context_menu.cc.orig 2--- a/chrome/browser/renderer_context_menu/render_view_context_menu.cc
3+++ chrome/browser/renderer_context_menu/render_view_context_menu.cc 3+++ b/chrome/browser/renderer_context_menu/render_view_context_menu.cc
4@@ -133,6 +133,7 @@ 4@@ -135,6 +135,7 @@
5 #include "components/spellcheck/common/spellcheck_common.h" 5 #include "components/spellcheck/common/spellcheck_common.h"
6 #include "components/spellcheck/spellcheck_buildflags.h" 6 #include "components/spellcheck/spellcheck_buildflags.h"
7 #include "components/strings/grit/components_strings.h" 7 #include "components/strings/grit/components_strings.h"
@@ -9,7 +9,7 @@
9 #include "components/translate/core/browser/translate_download_manager.h" 9 #include "components/translate/core/browser/translate_download_manager.h"
10 #include "components/translate/core/browser/translate_manager.h" 10 #include "components/translate/core/browser/translate_manager.h"
11 #include "components/translate/core/browser/translate_prefs.h" 11 #include "components/translate/core/browser/translate_prefs.h"
12@@ -1751,6 +1752,8 @@ void RenderViewContextMenu::AppendPageIt 12@@ -1727,6 +1728,8 @@ void RenderViewContextMenu::AppendPageIt
13 menu_model_.AddSeparator(ui::NORMAL_SEPARATOR); 13 menu_model_.AddSeparator(ui::NORMAL_SEPARATOR);
14 } 14 }
15 15
@@ -18,7 +18,7 @@
18 ChromeTranslateClient* chrome_translate_client = 18 ChromeTranslateClient* chrome_translate_client =
19 ChromeTranslateClient::FromWebContents(embedder_web_contents_); 19 ChromeTranslateClient::FromWebContents(embedder_web_contents_);
20 const bool canTranslate = 20 const bool canTranslate =
21@@ -1772,6 +1775,7 @@ void RenderViewContextMenu::AppendPageIt 21@@ -1748,6 +1751,7 @@ void RenderViewContextMenu::AppendPageIt
22 IDC_CONTENT_CONTEXT_TRANSLATE, 22 IDC_CONTENT_CONTEXT_TRANSLATE,
23 l10n_util::GetStringFUTF16(IDS_CONTENT_CONTEXT_TRANSLATE, language)); 23 l10n_util::GetStringFUTF16(IDS_CONTENT_CONTEXT_TRANSLATE, language));
24 } 24 }
@@ -26,8 +26,8 @@
26 } 26 }
27 27
28 void RenderViewContextMenu::AppendExitFullscreenItem() { 28 void RenderViewContextMenu::AppendExitFullscreenItem() {
29--- components/translate/core/browser/translate_language_list.cc.orig 29--- a/components/translate/core/browser/translate_language_list.cc
30+++ components/translate/core/browser/translate_language_list.cc 30+++ b/components/translate/core/browser/translate_language_list.cc
31@@ -11,6 +11,7 @@ 31@@ -11,6 +11,7 @@
32 32
33 #include "base/bind.h" 33 #include "base/bind.h"
@@ -54,9 +54,9 @@
54 // If resource requests are not allowed, we'll get a callback when they are. 54 // If resource requests are not allowed, we'll get a callback when they are.
55 if (!resource_requests_allowed_) { 55 if (!resource_requests_allowed_) {
56 request_pending_ = true; 56 request_pending_ = true;
57--- components/translate/core/browser/translate_manager.cc.orig 57--- a/components/translate/core/browser/translate_manager.cc
58+++ components/translate/core/browser/translate_manager.cc 58+++ b/components/translate/core/browser/translate_manager.cc
59@@ -887,8 +887,9 @@ void TranslateManager::FilterIsTranslate 59@@ -880,8 +880,9 @@ void TranslateManager::FilterIsTranslate
60 ->LogAutofillAssistantDeferredTriggerDecision(); 60 ->LogAutofillAssistantDeferredTriggerDecision();
61 } 61 }
62 62
@@ -68,8 +68,8 @@
68 // Without an API key, translate won't work, so don't offer to translate in 68 // Without an API key, translate won't work, so don't offer to translate in
69 // the first place. Leave kOfferTranslateEnabled on, though, because that 69 // the first place. Leave kOfferTranslateEnabled on, though, because that
70 // settings syncs and we don't want to turn off translate everywhere else. 70 // settings syncs and we don't want to turn off translate everywhere else.
71--- components/translate/core/browser/translate_ranker_impl.cc.orig 71--- a/components/translate/core/browser/translate_ranker_impl.cc
72+++ components/translate/core/browser/translate_ranker_impl.cc 72+++ b/components/translate/core/browser/translate_ranker_impl.cc
73@@ -156,12 +156,9 @@ TranslateRankerImpl::TranslateRankerImpl 73@@ -156,12 +156,9 @@ TranslateRankerImpl::TranslateRankerImpl
74 ukm::UkmRecorder* ukm_recorder) 74 ukm::UkmRecorder* ukm_recorder)
75 : ukm_recorder_(ukm_recorder), 75 : ukm_recorder_(ukm_recorder),
@@ -95,8 +95,8 @@
95 translate_event->set_ranker_request_timestamp_sec( 95 translate_event->set_ranker_request_timestamp_sec(
96 (base::TimeTicks::Now() - base::TimeTicks()).InSeconds()); 96 (base::TimeTicks::Now() - base::TimeTicks()).InSeconds());
97 translate_event->set_ranker_version(GetModelVersion()); 97 translate_event->set_ranker_version(GetModelVersion());
98--- components/translate/core/browser/translate_script.cc.orig 98--- a/components/translate/core/browser/translate_script.cc
99+++ components/translate/core/browser/translate_script.cc 99+++ b/components/translate/core/browser/translate_script.cc
100@@ -137,8 +137,13 @@ void TranslateScript::OnScriptFetchCompl 100@@ -137,8 +137,13 @@ void TranslateScript::OnScriptFetchCompl
101 server_params.c_str()); 101 server_params.c_str());
102 102
diff --git a/www/chromium-uc/patches/extra/bromite/fingerprinting-flags-client-rects-and-measuretext.patch b/www/chromium-uc/patches/extra/bromite/fingerprinting-flags-client-rects-and-measuretext.patch
index 2d6821f..a3dd0cd 100644
--- a/www/chromium-uc/patches/extra/bromite/fingerprinting-flags-client-rects-and-measuretext.patch
+++ b/www/chromium-uc/patches/extra/bromite/fingerprinting-flags-client-rects-and-measuretext.patch
@@ -7,9 +7,9 @@
7# 7#
8# Unlike the latest Bromite patch, it was chosen to not regenerate the noise value each time the value is read to prevent potential efficiency issues with the load on the RNG. 8# Unlike the latest Bromite patch, it was chosen to not regenerate the noise value each time the value is read to prevent potential efficiency issues with the load on the RNG.
9 9
10--- chrome/browser/BUILD.gn.orig 10--- a/chrome/browser/BUILD.gn
11+++ chrome/browser/BUILD.gn 11+++ b/chrome/browser/BUILD.gn
12@@ -2370,6 +2370,7 @@ static_library("browser") { 12@@ -2390,6 +2390,7 @@ static_library("browser") {
13 "//third_party/libyuv", 13 "//third_party/libyuv",
14 "//third_party/metrics_proto", 14 "//third_party/metrics_proto",
15 "//third_party/re2", 15 "//third_party/re2",
@@ -17,9 +17,9 @@
17 "//third_party/webrtc_overrides:webrtc_component", 17 "//third_party/webrtc_overrides:webrtc_component",
18 "//third_party/widevine/cdm:buildflags", 18 "//third_party/widevine/cdm:buildflags",
19 "//third_party/widevine/cdm:headers", 19 "//third_party/widevine/cdm:headers",
20--- chrome/browser/about_flags.cc.orig 20--- a/chrome/browser/about_flags.cc
21+++ chrome/browser/about_flags.cc 21+++ b/chrome/browser/about_flags.cc
22@@ -151,6 +151,7 @@ 22@@ -146,6 +146,7 @@
23 #include "components/translate/core/browser/translate_ranker_impl.h" 23 #include "components/translate/core/browser/translate_ranker_impl.h"
24 #include "components/translate/core/common/translate_util.h" 24 #include "components/translate/core/common/translate_util.h"
25 #include "components/ui_devtools/switches.h" 25 #include "components/ui_devtools/switches.h"
@@ -27,8 +27,8 @@
27 #include "components/version_info/version_info.h" 27 #include "components/version_info/version_info.h"
28 #include "components/viz/common/features.h" 28 #include "components/viz/common/features.h"
29 #include "components/viz/common/switches.h" 29 #include "components/viz/common/switches.h"
30--- chrome/browser/bromite_flag_entries.h.orig 30--- a/chrome/browser/bromite_flag_entries.h
31+++ chrome/browser/bromite_flag_entries.h 31+++ b/chrome/browser/bromite_flag_entries.h
32@@ -4,4 +4,12 @@ 32@@ -4,4 +4,12 @@
33 33
34 #ifndef CHROME_BROWSER_BROMITE_FLAG_ENTRIES_H_ 34 #ifndef CHROME_BROWSER_BROMITE_FLAG_ENTRIES_H_
@@ -42,9 +42,9 @@
42+ "Scale the output values of Canvas::measureText() with a randomly selected factor in the range -0.0003% to 0.0003%, which are recomputed on every document initialization. ungoogled-chromium flag, Bromite feature.", 42+ "Scale the output values of Canvas::measureText() with a randomly selected factor in the range -0.0003% to 0.0003%, which are recomputed on every document initialization. ungoogled-chromium flag, Bromite feature.",
43+ kOsAll, SINGLE_VALUE_TYPE(switches::kFingerprintingCanvasMeasureTextNoise)}, 43+ kOsAll, SINGLE_VALUE_TYPE(switches::kFingerprintingCanvasMeasureTextNoise)},
44 #endif // CHROME_BROWSER_BROMITE_FLAG_ENTRIES_H_ 44 #endif // CHROME_BROWSER_BROMITE_FLAG_ENTRIES_H_
45--- content/browser/BUILD.gn.orig 45--- a/content/browser/BUILD.gn
46+++ content/browser/BUILD.gn 46+++ b/content/browser/BUILD.gn
47@@ -222,6 +222,7 @@ source_set("browser") { 47@@ -230,6 +230,7 @@ source_set("browser") {
48 "//third_party/libyuv", 48 "//third_party/libyuv",
49 "//third_party/re2", 49 "//third_party/re2",
50 "//third_party/sqlite", 50 "//third_party/sqlite",
@@ -52,9 +52,9 @@
52 "//third_party/webrtc_overrides:webrtc_component", 52 "//third_party/webrtc_overrides:webrtc_component",
53 "//third_party/wtl", 53 "//third_party/wtl",
54 "//third_party/zlib", 54 "//third_party/zlib",
55--- content/browser/renderer_host/render_process_host_impl.cc.orig 55--- a/content/browser/renderer_host/render_process_host_impl.cc
56+++ content/browser/renderer_host/render_process_host_impl.cc 56+++ b/content/browser/renderer_host/render_process_host_impl.cc
57@@ -68,6 +68,7 @@ 57@@ -76,6 +76,7 @@
58 #include "components/services/storage/public/mojom/cache_storage_control.mojom.h" 58 #include "components/services/storage/public/mojom/cache_storage_control.mojom.h"
59 #include "components/services/storage/public/mojom/indexed_db_control.mojom.h" 59 #include "components/services/storage/public/mojom/indexed_db_control.mojom.h"
60 #include "components/tracing/common/tracing_switches.h" 60 #include "components/tracing/common/tracing_switches.h"
@@ -62,7 +62,7 @@
62 #include "components/viz/common/switches.h" 62 #include "components/viz/common/switches.h"
63 #include "components/viz/host/gpu_client.h" 63 #include "components/viz/host/gpu_client.h"
64 #include "content/browser/bad_message.h" 64 #include "content/browser/bad_message.h"
65@@ -3465,6 +3466,8 @@ void RenderProcessHostImpl::PropagateBro 65@@ -3287,6 +3288,8 @@ void RenderProcessHostImpl::PropagateBro
66 switches::kEnableWebGLDraftExtensions, 66 switches::kEnableWebGLDraftExtensions,
67 switches::kEnableWebGLImageChromium, 67 switches::kEnableWebGLImageChromium,
68 switches::kFileUrlPathAlias, 68 switches::kFileUrlPathAlias,
@@ -71,8 +71,8 @@
71 switches::kForceDeviceScaleFactor, 71 switches::kForceDeviceScaleFactor,
72 switches::kForceDisplayColorProfile, 72 switches::kForceDisplayColorProfile,
73 switches::kForceGpuMemAvailableMb, 73 switches::kForceGpuMemAvailableMb,
74--- content/child/BUILD.gn.orig 74--- a/content/child/BUILD.gn
75+++ content/child/BUILD.gn 75+++ b/content/child/BUILD.gn
76@@ -103,6 +103,7 @@ target(link_target_type, "child") { 76@@ -103,6 +103,7 @@ target(link_target_type, "child") {
77 "//third_party/blink/public/common", 77 "//third_party/blink/public/common",
78 "//third_party/blink/public/strings", 78 "//third_party/blink/public/strings",
@@ -81,9 +81,9 @@
81 "//third_party/zlib/google:compression_utils", 81 "//third_party/zlib/google:compression_utils",
82 "//ui/base", 82 "//ui/base",
83 "//ui/events/blink", 83 "//ui/events/blink",
84--- content/child/runtime_features.cc.orig 84--- a/content/child/runtime_features.cc
85+++ content/child/runtime_features.cc 85+++ b/content/child/runtime_features.cc
86@@ -31,6 +31,7 @@ 86@@ -33,6 +33,7 @@
87 #include "third_party/blink/public/common/loader/referrer_utils.h" 87 #include "third_party/blink/public/common/loader/referrer_utils.h"
88 #include "third_party/blink/public/common/switches.h" 88 #include "third_party/blink/public/common/switches.h"
89 #include "third_party/blink/public/platform/web_runtime_features.h" 89 #include "third_party/blink/public/platform/web_runtime_features.h"
@@ -91,10 +91,10 @@
91 #include "ui/accessibility/accessibility_features.h" 91 #include "ui/accessibility/accessibility_features.h"
92 #include "ui/base/ui_base_features.h" 92 #include "ui/base/ui_base_features.h"
93 #include "ui/events/blink/blink_features.h" 93 #include "ui/events/blink/blink_features.h"
94@@ -466,6 +467,10 @@ void SetRuntimeFeaturesFromCommandLine(c 94@@ -481,6 +482,10 @@ void SetRuntimeFeaturesFromCommandLine(c
95 {wrf::EnableWebGPU, switches::kEnableUnsafeWebGPU, true},
96 {wrf::ForceOverlayFullscreenVideo, switches::kForceOverlayFullscreenVideo, 95 {wrf::ForceOverlayFullscreenVideo, switches::kForceOverlayFullscreenVideo,
97 true}, 96 true},
97 {wrf::EnableDirectSockets, switches::kRestrictedApiOrigins, false},
98+ {wrf::EnableFingerprintingClientRectsNoise, 98+ {wrf::EnableFingerprintingClientRectsNoise,
99+ switches::kFingerprintingClientRectsNoise, true}, 99+ switches::kFingerprintingClientRectsNoise, true},
100+ {wrf::EnableFingerprintingCanvasMeasureTextNoise, 100+ {wrf::EnableFingerprintingCanvasMeasureTextNoise,
@@ -102,9 +102,9 @@
102 }; 102 };
103 for (const auto& mapping : switchToFeatureMapping) { 103 for (const auto& mapping : switchToFeatureMapping) {
104 if (command_line.HasSwitch(mapping.switch_name)) 104 if (command_line.HasSwitch(mapping.switch_name))
105--- third_party/blink/public/platform/web_runtime_features.h.orig 105--- a/third_party/blink/public/platform/web_runtime_features.h
106+++ third_party/blink/public/platform/web_runtime_features.h 106+++ b/third_party/blink/public/platform/web_runtime_features.h
107@@ -218,6 +218,8 @@ class WebRuntimeFeatures { 107@@ -216,6 +216,8 @@ class WebRuntimeFeatures {
108 BLINK_PLATFORM_EXPORT static void EnableMediaControlsExpandGesture(bool); 108 BLINK_PLATFORM_EXPORT static void EnableMediaControlsExpandGesture(bool);
109 BLINK_PLATFORM_EXPORT static void EnableGetDisplayMedia(bool); 109 BLINK_PLATFORM_EXPORT static void EnableGetDisplayMedia(bool);
110 BLINK_PLATFORM_EXPORT static void EnableAllowSyncXHRInPageDismissal(bool); 110 BLINK_PLATFORM_EXPORT static void EnableAllowSyncXHRInPageDismissal(bool);
@@ -113,17 +113,17 @@
113 BLINK_PLATFORM_EXPORT static void EnableSignedExchangeSubresourcePrefetch( 113 BLINK_PLATFORM_EXPORT static void EnableSignedExchangeSubresourcePrefetch(
114 bool); 114 bool);
115 BLINK_PLATFORM_EXPORT static void EnableSubresourceWebBundles(bool); 115 BLINK_PLATFORM_EXPORT static void EnableSubresourceWebBundles(bool);
116--- third_party/blink/renderer/core/dom/document.cc.orig 116--- a/third_party/blink/renderer/core/dom/document.cc
117+++ third_party/blink/renderer/core/dom/document.cc 117+++ b/third_party/blink/renderer/core/dom/document.cc
118@@ -42,6 +42,7 @@ 118@@ -43,6 +43,7 @@
119 #include "base/containers/contains.h"
120 #include "base/debug/dump_without_crashing.h" 119 #include "base/debug/dump_without_crashing.h"
121 #include "base/metrics/histogram_functions.h" 120 #include "base/metrics/histogram_functions.h"
121 #include "base/notreached.h"
122+#include "base/rand_util.h" 122+#include "base/rand_util.h"
123 #include "base/time/time.h" 123 #include "base/time/time.h"
124 #include "cc/input/overscroll_behavior.h" 124 #include "cc/input/overscroll_behavior.h"
125 #include "cc/input/scroll_snap_data.h" 125 #include "cc/input/scroll_snap_data.h"
126@@ -855,6 +856,14 @@ Range* Document::CreateRangeAdjustedToTr 126@@ -885,6 +886,14 @@ Range* Document::CreateRangeAdjustedToTr
127 Position::BeforeNode(*shadow_host)); 127 Position::BeforeNode(*shadow_host));
128 } 128 }
129 129
@@ -138,7 +138,7 @@
138 SelectorQueryCache& Document::GetSelectorQueryCache() { 138 SelectorQueryCache& Document::GetSelectorQueryCache() {
139 if (!selector_query_cache_) 139 if (!selector_query_cache_)
140 selector_query_cache_ = std::make_unique<SelectorQueryCache>(); 140 selector_query_cache_ = std::make_unique<SelectorQueryCache>();
141@@ -2145,6 +2154,15 @@ void Document::UpdateStyleAndLayoutTreeF 141@@ -2167,6 +2176,15 @@ void Document::UpdateStyleAndLayoutTreeF
142 #if DCHECK_IS_ON() 142 #if DCHECK_IS_ON()
143 AssertLayoutTreeUpdated(*this, true /* allow_dirty_container_subtrees */); 143 AssertLayoutTreeUpdated(*this, true /* allow_dirty_container_subtrees */);
144 #endif 144 #endif
@@ -154,9 +154,9 @@
154 } 154 }
155 155
156 void Document::InvalidateStyleAndLayoutForFontUpdates() { 156 void Document::InvalidateStyleAndLayoutForFontUpdates() {
157--- third_party/blink/renderer/core/dom/document.h.orig 157--- a/third_party/blink/renderer/core/dom/document.h
158+++ third_party/blink/renderer/core/dom/document.h 158+++ b/third_party/blink/renderer/core/dom/document.h
159@@ -456,6 +456,10 @@ class CORE_EXPORT Document : public Cont 159@@ -496,6 +496,10 @@ class CORE_EXPORT Document : public Cont
160 has_xml_declaration_ = has_xml_declaration ? 1 : 0; 160 has_xml_declaration_ = has_xml_declaration ? 1 : 0;
161 } 161 }
162 162
@@ -167,7 +167,7 @@
167 AtomicString visibilityState() const; 167 AtomicString visibilityState() const;
168 bool IsPageVisible() const; 168 bool IsPageVisible() const;
169 bool hidden() const; 169 bool hidden() const;
170@@ -2078,6 +2082,9 @@ class CORE_EXPORT Document : public Cont 170@@ -2229,6 +2233,9 @@ class CORE_EXPORT Document : public Cont
171 171
172 base::ElapsedTimer start_time_; 172 base::ElapsedTimer start_time_;
173 173
@@ -177,38 +177,38 @@
177 Member<ScriptRunner> script_runner_; 177 Member<ScriptRunner> script_runner_;
178 178
179 HeapVector<Member<ScriptElementBase>> current_script_stack_; 179 HeapVector<Member<ScriptElementBase>> current_script_stack_;
180--- third_party/blink/renderer/core/dom/element.cc.orig 180--- a/third_party/blink/renderer/core/dom/element.cc
181+++ third_party/blink/renderer/core/dom/element.cc 181+++ b/third_party/blink/renderer/core/dom/element.cc
182@@ -2114,6 +2114,11 @@ DOMRectList* Element::getClientRects() { 182@@ -2073,6 +2073,11 @@ DOMRectList* Element::getClientRects() {
183 DCHECK(element_layout_object); 183 DCHECK(element_layout_object);
184 GetDocument().AdjustFloatQuadsForScrollAndAbsoluteZoom( 184 GetDocument().AdjustQuadsForScrollAndAbsoluteZoom(quads,
185 quads, *element_layout_object); 185 *element_layout_object);
186+ if (RuntimeEnabledFeatures::FingerprintingClientRectsNoiseEnabled()) { 186+ if (RuntimeEnabledFeatures::FingerprintingClientRectsNoiseEnabled()) {
187+ for (FloatQuad& quad : quads) { 187+ for (gfx::QuadF& quad : quads) {
188+ quad.Scale(GetDocument().GetNoiseFactorX(), GetDocument().GetNoiseFactorY()); 188+ quad.Scale(GetDocument().GetNoiseFactorX(), GetDocument().GetNoiseFactorY());
189+ } 189+ }
190+ } 190+ }
191 return MakeGarbageCollected<DOMRectList>(quads); 191 return MakeGarbageCollected<DOMRectList>(quads);
192 } 192 }
193 193
194@@ -2131,6 +2136,9 @@ FloatRect Element::GetBoundingClientRect 194@@ -2090,6 +2095,9 @@ gfx::RectF Element::GetBoundingClientRec
195 DCHECK(element_layout_object); 195 DCHECK(element_layout_object);
196 GetDocument().AdjustFloatRectForScrollAndAbsoluteZoom(result, 196 GetDocument().AdjustRectForScrollAndAbsoluteZoom(result,
197 *element_layout_object); 197 *element_layout_object);
198+ if (RuntimeEnabledFeatures::FingerprintingClientRectsNoiseEnabled()) { 198+ if (RuntimeEnabledFeatures::FingerprintingClientRectsNoiseEnabled()) {
199+ result.Scale(GetDocument().GetNoiseFactorX(), GetDocument().GetNoiseFactorY()); 199+ result.Scale(GetDocument().GetNoiseFactorX(), GetDocument().GetNoiseFactorY());
200+ } 200+ }
201 return result; 201 return result;
202 } 202 }
203 203
204--- third_party/blink/renderer/core/dom/range.cc.orig 204--- a/third_party/blink/renderer/core/dom/range.cc
205+++ third_party/blink/renderer/core/dom/range.cc 205+++ b/third_party/blink/renderer/core/dom/range.cc
206@@ -1598,11 +1598,21 @@ DOMRectList* Range::getClientRects() con 206@@ -1598,11 +1598,21 @@ DOMRectList* Range::getClientRects() con
207 Vector<FloatQuad> quads; 207 Vector<gfx::QuadF> quads;
208 GetBorderAndTextQuads(quads); 208 GetBorderAndTextQuads(quads);
209 209
210+ if (RuntimeEnabledFeatures::FingerprintingClientRectsNoiseEnabled()) { 210+ if (RuntimeEnabledFeatures::FingerprintingClientRectsNoiseEnabled()) {
211+ for (FloatQuad& quad : quads) { 211+ for (gfx::QuadF& quad : quads) {
212+ quad.Scale(owner_document_->GetNoiseFactorX(), owner_document_->GetNoiseFactorY()); 212+ quad.Scale(owner_document_->GetNoiseFactorX(), owner_document_->GetNoiseFactorY());
213+ } 213+ }
214+ } 214+ }
@@ -217,17 +217,17 @@
217 } 217 }
218 218
219 DOMRect* Range::getBoundingClientRect() const { 219 DOMRect* Range::getBoundingClientRect() const {
220- return DOMRect::FromFloatRect(BoundingRect()); 220- return DOMRect::FromRectF(BoundingRect());
221+ auto rect = BoundingRect(); 221+ auto rect = BoundingRect();
222+ if (RuntimeEnabledFeatures::FingerprintingClientRectsNoiseEnabled()) { 222+ if (RuntimeEnabledFeatures::FingerprintingClientRectsNoiseEnabled()) {
223+ rect.Scale(owner_document_->GetNoiseFactorX(), owner_document_->GetNoiseFactorY()); 223+ rect.Scale(owner_document_->GetNoiseFactorX(), owner_document_->GetNoiseFactorY());
224+ } 224+ }
225+ return DOMRect::FromFloatRect(rect); 225+ return DOMRect::FromRectF(rect);
226 } 226 }
227 227
228 // TODO(editing-dev): We should make 228 // TODO(editing-dev): We should make
229--- third_party/blink/renderer/core/html/canvas/text_metrics.cc.orig 229--- a/third_party/blink/renderer/core/html/canvas/text_metrics.cc
230+++ third_party/blink/renderer/core/html/canvas/text_metrics.cc 230+++ b/third_party/blink/renderer/core/html/canvas/text_metrics.cc
231@@ -55,6 +55,24 @@ TextMetrics::TextMetrics(const Font& fon 231@@ -55,6 +55,24 @@ TextMetrics::TextMetrics(const Font& fon
232 Update(font, direction, baseline, align, text); 232 Update(font, direction, baseline, align, text);
233 } 233 }
@@ -253,8 +253,8 @@
253 void TextMetrics::Update(const Font& font, 253 void TextMetrics::Update(const Font& font,
254 const TextDirection& direction, 254 const TextDirection& direction,
255 const TextBaseline& baseline, 255 const TextBaseline& baseline,
256--- third_party/blink/renderer/core/html/canvas/text_metrics.h.orig 256--- a/third_party/blink/renderer/core/html/canvas/text_metrics.h
257+++ third_party/blink/renderer/core/html/canvas/text_metrics.h 257+++ b/third_party/blink/renderer/core/html/canvas/text_metrics.h
258@@ -64,6 +64,8 @@ class CORE_EXPORT TextMetrics final : pu 258@@ -64,6 +64,8 @@ class CORE_EXPORT TextMetrics final : pu
259 259
260 void Trace(Visitor*) const override; 260 void Trace(Visitor*) const override;
@@ -264,9 +264,9 @@
264 private: 264 private:
265 void Update(const Font&, 265 void Update(const Font&,
266 const TextDirection&, 266 const TextDirection&,
267--- third_party/blink/renderer/modules/canvas/canvas2d/canvas_rendering_context_2d.cc.orig 267--- a/third_party/blink/renderer/modules/canvas/canvas2d/canvas_rendering_context_2d.cc
268+++ third_party/blink/renderer/modules/canvas/canvas2d/canvas_rendering_context_2d.cc 268+++ b/third_party/blink/renderer/modules/canvas/canvas2d/canvas_rendering_context_2d.cc
269@@ -912,9 +912,15 @@ TextMetrics* CanvasRenderingContext2D::m 269@@ -917,9 +917,15 @@ TextMetrics* CanvasRenderingContext2D::m
270 TextDirection direction = 270 TextDirection direction =
271 ToTextDirection(GetState().GetDirection(), canvas()); 271 ToTextDirection(GetState().GetDirection(), canvas());
272 272
@@ -283,20 +283,20 @@
283 } 283 }
284 284
285 void CanvasRenderingContext2D::fillFormattedText( 285 void CanvasRenderingContext2D::fillFormattedText(
286--- third_party/blink/renderer/platform/BUILD.gn.orig 286--- a/third_party/blink/renderer/platform/BUILD.gn
287+++ third_party/blink/renderer/platform/BUILD.gn 287+++ b/third_party/blink/renderer/platform/BUILD.gn
288@@ -1686,6 +1686,7 @@ component("platform") { 288@@ -1638,6 +1638,7 @@ component("platform") {
289 "//components/paint_preview/common", 289 "//components/paint_preview/common",
290 "//components/power_scheduler", 290 "//components/power_scheduler",
291 "//components/search_engines:search_engine_utils", 291 "//components/search_engines:search_engine_utils",
292+ "//components/ungoogled:ungoogled_switches", 292+ "//components/ungoogled:ungoogled_switches",
293 "//components/viz/client", 293 "//components/viz/client",
294 "//components/viz/common", 294 "//components/viz/common",
295 "//crypto", 295 "//components/webrtc:net_address_utils",
296--- third_party/blink/renderer/platform/exported/web_runtime_features.cc.orig 296--- a/third_party/blink/renderer/platform/exported/web_runtime_features.cc
297+++ third_party/blink/renderer/platform/exported/web_runtime_features.cc 297+++ b/third_party/blink/renderer/platform/exported/web_runtime_features.cc
298@@ -689,4 +689,12 @@ void WebRuntimeFeatures::EnableCLSScroll 298@@ -677,4 +677,12 @@ void WebRuntimeFeatures::EnableWebAuthen
299 RuntimeEnabledFeatures::SetCLSScrollAnchoringEnabled(enable); 299 enable);
300 } 300 }
301 301
302+void WebRuntimeFeatures::EnableFingerprintingClientRectsNoise(bool enable) { 302+void WebRuntimeFeatures::EnableFingerprintingClientRectsNoise(bool enable) {
@@ -308,10 +308,10 @@
308+} 308+}
309+ 309+
310 } // namespace blink 310 } // namespace blink
311--- third_party/blink/renderer/platform/runtime_enabled_features.json5.orig 311--- a/third_party/blink/renderer/platform/runtime_enabled_features.json5
312+++ third_party/blink/renderer/platform/runtime_enabled_features.json5 312+++ b/third_party/blink/renderer/platform/runtime_enabled_features.json5
313@@ -1076,6 +1076,12 @@ 313@@ -1137,6 +1137,12 @@
314 origin_trial_feature_name: "Fledge", 314 name: "Focusgroup",
315 }, 315 },
316 { 316 {
317+ name: "FingerprintingClientRectsNoise", 317+ name: "FingerprintingClientRectsNoise",
diff --git a/www/chromium-uc/patches/extra/bromite/flag-fingerprinting-canvas-image-data-noise.patch b/www/chromium-uc/patches/extra/bromite/flag-fingerprinting-canvas-image-data-noise.patch
index 6ebc7a1..23ce165 100644
--- a/www/chromium-uc/patches/extra/bromite/flag-fingerprinting-canvas-image-data-noise.patch
+++ b/www/chromium-uc/patches/extra/bromite/flag-fingerprinting-canvas-image-data-noise.patch
@@ -21,8 +21,8 @@ approach to change color components.
21 .../platform/graphics/static_bitmap_image.h | 2 + 21 .../platform/graphics/static_bitmap_image.h | 2 +
22 4 files changed, 163 insertions(+), 2 deletions(-) 22 4 files changed, 163 insertions(+), 2 deletions(-)
23 23
24--- chrome/browser/bromite_flag_entries.h.orig 24--- a/chrome/browser/bromite_flag_entries.h
25+++ chrome/browser/bromite_flag_entries.h 25+++ b/chrome/browser/bromite_flag_entries.h
26@@ -16,4 +16,8 @@ 26@@ -16,4 +16,8 @@
27 flag_descriptions::kMaxConnectionsPerHostName, 27 flag_descriptions::kMaxConnectionsPerHostName,
28 flag_descriptions::kMaxConnectionsPerHostDescription, 28 flag_descriptions::kMaxConnectionsPerHostDescription,
@@ -32,9 +32,9 @@ approach to change color components.
32+ "Slightly modifies at most 10 pixels in Canvas image data extracted via JS APIs. ungoogled-chromium flag, Bromite feature.", 32+ "Slightly modifies at most 10 pixels in Canvas image data extracted via JS APIs. ungoogled-chromium flag, Bromite feature.",
33+ kOsAll, SINGLE_VALUE_TYPE(switches::kFingerprintingCanvasImageDataNoise)}, 33+ kOsAll, SINGLE_VALUE_TYPE(switches::kFingerprintingCanvasImageDataNoise)},
34 #endif // CHROME_BROWSER_BROMITE_FLAG_ENTRIES_H_ 34 #endif // CHROME_BROWSER_BROMITE_FLAG_ENTRIES_H_
35--- content/browser/renderer_host/render_process_host_impl.cc.orig 35--- a/content/browser/renderer_host/render_process_host_impl.cc
36+++ content/browser/renderer_host/render_process_host_impl.cc 36+++ b/content/browser/renderer_host/render_process_host_impl.cc
37@@ -3468,6 +3468,7 @@ void RenderProcessHostImpl::PropagateBro 37@@ -3290,6 +3290,7 @@ void RenderProcessHostImpl::PropagateBro
38 switches::kFileUrlPathAlias, 38 switches::kFileUrlPathAlias,
39 switches::kFingerprintingClientRectsNoise, 39 switches::kFingerprintingClientRectsNoise,
40 switches::kFingerprintingCanvasMeasureTextNoise, 40 switches::kFingerprintingCanvasMeasureTextNoise,
@@ -42,9 +42,9 @@ approach to change color components.
42 switches::kForceDeviceScaleFactor, 42 switches::kForceDeviceScaleFactor,
43 switches::kForceDisplayColorProfile, 43 switches::kForceDisplayColorProfile,
44 switches::kForceGpuMemAvailableMb, 44 switches::kForceGpuMemAvailableMb,
45--- content/child/runtime_features.cc.orig 45--- a/content/child/runtime_features.cc
46+++ content/child/runtime_features.cc 46+++ b/content/child/runtime_features.cc
47@@ -471,6 +471,8 @@ void SetRuntimeFeaturesFromCommandLine(c 47@@ -486,6 +486,8 @@ void SetRuntimeFeaturesFromCommandLine(c
48 switches::kFingerprintingClientRectsNoise, true}, 48 switches::kFingerprintingClientRectsNoise, true},
49 {wrf::EnableFingerprintingCanvasMeasureTextNoise, 49 {wrf::EnableFingerprintingCanvasMeasureTextNoise,
50 switches::kFingerprintingCanvasMeasureTextNoise, true}, 50 switches::kFingerprintingCanvasMeasureTextNoise, true},
@@ -53,9 +53,9 @@ approach to change color components.
53 }; 53 };
54 for (const auto& mapping : switchToFeatureMapping) { 54 for (const auto& mapping : switchToFeatureMapping) {
55 if (command_line.HasSwitch(mapping.switch_name)) 55 if (command_line.HasSwitch(mapping.switch_name))
56--- third_party/blink/public/platform/web_runtime_features.h.orig 56--- a/third_party/blink/public/platform/web_runtime_features.h
57+++ third_party/blink/public/platform/web_runtime_features.h 57+++ b/third_party/blink/public/platform/web_runtime_features.h
58@@ -220,6 +220,7 @@ class WebRuntimeFeatures { 58@@ -218,6 +218,7 @@ class WebRuntimeFeatures {
59 BLINK_PLATFORM_EXPORT static void EnableAllowSyncXHRInPageDismissal(bool); 59 BLINK_PLATFORM_EXPORT static void EnableAllowSyncXHRInPageDismissal(bool);
60 BLINK_PLATFORM_EXPORT static void EnableFingerprintingClientRectsNoise(bool); 60 BLINK_PLATFORM_EXPORT static void EnableFingerprintingClientRectsNoise(bool);
61 BLINK_PLATFORM_EXPORT static void EnableFingerprintingCanvasMeasureTextNoise(bool); 61 BLINK_PLATFORM_EXPORT static void EnableFingerprintingCanvasMeasureTextNoise(bool);
@@ -63,17 +63,17 @@ approach to change color components.
63 BLINK_PLATFORM_EXPORT static void EnableSignedExchangeSubresourcePrefetch( 63 BLINK_PLATFORM_EXPORT static void EnableSignedExchangeSubresourcePrefetch(
64 bool); 64 bool);
65 BLINK_PLATFORM_EXPORT static void EnableSubresourceWebBundles(bool); 65 BLINK_PLATFORM_EXPORT static void EnableSubresourceWebBundles(bool);
66--- third_party/blink/renderer/modules/canvas/canvas2d/base_rendering_context_2d.cc.orig 66--- a/third_party/blink/renderer/modules/canvas/canvas2d/base_rendering_context_2d.cc
67+++ third_party/blink/renderer/modules/canvas/canvas2d/base_rendering_context_2d.cc 67+++ b/third_party/blink/renderer/modules/canvas/canvas2d/base_rendering_context_2d.cc
68@@ -30,6 +30,7 @@ 68@@ -29,6 +29,7 @@
69 #include "third_party/blink/renderer/platform/graphics/bitmap_image.h" 69 #include "third_party/blink/renderer/platform/graphics/bitmap_image.h"
70 #include "third_party/blink/renderer/platform/graphics/graphics_context.h" 70 #include "third_party/blink/renderer/platform/graphics/graphics_context.h"
71 #include "third_party/blink/renderer/platform/graphics/skia/skia_utils.h" 71 #include "third_party/blink/renderer/platform/graphics/skia/skia_utils.h"
72+#include "third_party/blink/renderer/platform/graphics/static_bitmap_image.h" 72+#include "third_party/blink/renderer/platform/graphics/static_bitmap_image.h"
73 #include "third_party/blink/renderer/platform/graphics/stroke_data.h" 73 #include "third_party/blink/renderer/platform/graphics/stroke_data.h"
74 #include "third_party/blink/renderer/platform/graphics/video_frame_image_util.h" 74 #include "third_party/blink/renderer/platform/graphics/video_frame_image_util.h"
75 #include "third_party/blink/renderer/platform/heap/heap.h" 75 #include "third_party/blink/renderer/platform/heap/garbage_collected.h"
76@@ -2311,6 +2312,9 @@ ImageData* BaseRenderingContext2D::getIm 76@@ -2046,6 +2047,9 @@ ImageData* BaseRenderingContext2D::getIm
77 snapshot->PaintImageForCurrentFrame().GetSkImageInfo().bounds(); 77 snapshot->PaintImageForCurrentFrame().GetSkImageInfo().bounds();
78 DCHECK(!bounds.intersect(SkIRect::MakeXYWH(sx, sy, sw, sh))); 78 DCHECK(!bounds.intersect(SkIRect::MakeXYWH(sx, sy, sw, sh)));
79 } 79 }
@@ -83,9 +83,9 @@ approach to change color components.
83 } 83 }
84 84
85 return image_data; 85 return image_data;
86--- third_party/blink/renderer/platform/BUILD.gn.orig 86--- a/third_party/blink/renderer/platform/BUILD.gn
87+++ third_party/blink/renderer/platform/BUILD.gn 87+++ b/third_party/blink/renderer/platform/BUILD.gn
88@@ -1645,7 +1645,9 @@ component("platform") { 88@@ -1596,7 +1596,9 @@ component("platform") {
89 "//third_party/blink/renderer:non_test_config", 89 "//third_party/blink/renderer:non_test_config",
90 ] 90 ]
91 91
@@ -96,9 +96,9 @@ approach to change color components.
96 96
97 allow_circular_includes_from = [ 97 allow_circular_includes_from = [
98 "//third_party/blink/renderer/platform/blob", 98 "//third_party/blink/renderer/platform/blob",
99--- third_party/blink/renderer/platform/exported/web_runtime_features.cc.orig 99--- a/third_party/blink/renderer/platform/exported/web_runtime_features.cc
100+++ third_party/blink/renderer/platform/exported/web_runtime_features.cc 100+++ b/third_party/blink/renderer/platform/exported/web_runtime_features.cc
101@@ -697,4 +697,8 @@ void WebRuntimeFeatures::EnableFingerpri 101@@ -685,4 +685,8 @@ void WebRuntimeFeatures::EnableFingerpri
102 RuntimeEnabledFeatures::SetFingerprintingCanvasMeasureTextNoiseEnabled(enable); 102 RuntimeEnabledFeatures::SetFingerprintingCanvasMeasureTextNoiseEnabled(enable);
103 } 103 }
104 104
@@ -107,8 +107,8 @@ approach to change color components.
107+} 107+}
108+ 108+
109 } // namespace blink 109 } // namespace blink
110--- third_party/blink/renderer/platform/graphics/image_data_buffer.cc.orig 110--- a/third_party/blink/renderer/platform/graphics/image_data_buffer.cc
111+++ third_party/blink/renderer/platform/graphics/image_data_buffer.cc 111+++ b/third_party/blink/renderer/platform/graphics/image_data_buffer.cc
112@@ -36,6 +36,8 @@ 112@@ -36,6 +36,8 @@
113 113
114 #include "base/compiler_specific.h" 114 #include "base/compiler_specific.h"
@@ -130,8 +130,8 @@ approach to change color components.
130 if (mime_type == kMimeTypeJpeg) { 130 if (mime_type == kMimeTypeJpeg) {
131 SkJpegEncoder::Options options; 131 SkJpegEncoder::Options options;
132 options.fQuality = ImageEncoder::ComputeJpegQuality(quality); 132 options.fQuality = ImageEncoder::ComputeJpegQuality(quality);
133--- third_party/blink/renderer/platform/graphics/static_bitmap_image.cc.orig 133--- a/third_party/blink/renderer/platform/graphics/static_bitmap_image.cc
134+++ third_party/blink/renderer/platform/graphics/static_bitmap_image.cc 134+++ b/third_party/blink/renderer/platform/graphics/static_bitmap_image.cc
135@@ -4,6 +4,8 @@ 135@@ -4,6 +4,8 @@
136 136
137 #include "third_party/blink/renderer/platform/graphics/static_bitmap_image.h" 137 #include "third_party/blink/renderer/platform/graphics/static_bitmap_image.h"
@@ -151,10 +151,10 @@ approach to change color components.
151 #include "third_party/skia/include/core/SkPaint.h" 151 #include "third_party/skia/include/core/SkPaint.h"
152 #include "third_party/skia/include/core/SkSurface.h" 152 #include "third_party/skia/include/core/SkSurface.h"
153+#include "third_party/skia/include/private/SkColorData.h" 153+#include "third_party/skia/include/private/SkColorData.h"
154 #include "ui/gfx/geometry/skia_conversions.h"
154 #include "v8/include/v8.h" 155 #include "v8/include/v8.h"
155 156
156 namespace blink { 157@@ -113,4 +117,154 @@ void StaticBitmapImage::DrawHelper(cc::P
157@@ -80,4 +84,154 @@ void StaticBitmapImage::DrawHelper(cc::P
158 WebCoreClampingModeToSkiaRectConstraint(draw_options.clamping_mode)); 158 WebCoreClampingModeToSkiaRectConstraint(draw_options.clamping_mode));
159 } 159 }
160 160
@@ -309,9 +309,9 @@ approach to change color components.
309+#undef shuffleComponent 309+#undef shuffleComponent
310+ 310+
311 } // namespace blink 311 } // namespace blink
312--- third_party/blink/renderer/platform/graphics/static_bitmap_image.h.orig 312--- a/third_party/blink/renderer/platform/graphics/static_bitmap_image.h
313+++ third_party/blink/renderer/platform/graphics/static_bitmap_image.h 313+++ b/third_party/blink/renderer/platform/graphics/static_bitmap_image.h
314@@ -36,6 +36,8 @@ class PLATFORM_EXPORT StaticBitmapImage 314@@ -37,6 +37,8 @@ class PLATFORM_EXPORT StaticBitmapImage
315 315
316 StaticBitmapImage(ImageOrientation orientation) : orientation_(orientation) {} 316 StaticBitmapImage(ImageOrientation orientation) : orientation_(orientation) {}
317 317
@@ -320,9 +320,9 @@ approach to change color components.
320 bool IsStaticBitmapImage() const override { return true; } 320 bool IsStaticBitmapImage() const override { return true; }
321 321
322 // Methods overridden by all sub-classes 322 // Methods overridden by all sub-classes
323--- third_party/blink/renderer/platform/runtime_enabled_features.json5.orig 323--- a/third_party/blink/renderer/platform/runtime_enabled_features.json5
324+++ third_party/blink/renderer/platform/runtime_enabled_features.json5 324+++ b/third_party/blink/renderer/platform/runtime_enabled_features.json5
325@@ -1082,6 +1082,9 @@ 325@@ -1143,6 +1143,9 @@
326 name: "FingerprintingCanvasMeasureTextNoise", 326 name: "FingerprintingCanvasMeasureTextNoise",
327 }, 327 },
328 { 328 {
diff --git a/www/chromium-uc/patches/extra/bromite/flag-max-connections-per-host.patch b/www/chromium-uc/patches/extra/bromite/flag-max-connections-per-host.patch
index 65b1887..dbc86ef 100644
--- a/www/chromium-uc/patches/extra/bromite/flag-max-connections-per-host.patch
+++ b/www/chromium-uc/patches/extra/bromite/flag-max-connections-per-host.patch
@@ -15,9 +15,9 @@ with limited CPU/memory resources and it is disabled by default.
15 net/socket/client_socket_pool_manager.cc | 16 ++++++++++++++++ 15 net/socket/client_socket_pool_manager.cc | 16 ++++++++++++++++
16 7 files changed, 42 insertions(+) 16 7 files changed, 42 insertions(+)
17 17
18--- chrome/browser/BUILD.gn.orig 18--- a/chrome/browser/BUILD.gn
19+++ chrome/browser/BUILD.gn 19+++ b/chrome/browser/BUILD.gn
20@@ -2126,6 +2126,7 @@ static_library("browser") { 20@@ -2138,6 +2138,7 @@ static_library("browser") {
21 "//components/net_log", 21 "//components/net_log",
22 "//components/network_hints/common:mojo_bindings", 22 "//components/network_hints/common:mojo_bindings",
23 "//components/network_session_configurator/browser", 23 "//components/network_session_configurator/browser",
@@ -25,8 +25,8 @@ with limited CPU/memory resources and it is disabled by default.
25 "//components/network_time", 25 "//components/network_time",
26 "//components/no_state_prefetch/browser", 26 "//components/no_state_prefetch/browser",
27 "//components/no_state_prefetch/common", 27 "//components/no_state_prefetch/common",
28--- chrome/browser/bromite_flag_choices.h.orig 28--- a/chrome/browser/bromite_flag_choices.h
29+++ chrome/browser/bromite_flag_choices.h 29+++ b/chrome/browser/bromite_flag_choices.h
30@@ -4,4 +4,8 @@ 30@@ -4,4 +4,8 @@
31 31
32 #ifndef CHROME_BROWSER_BROMITE_FLAG_CHOICES_H_ 32 #ifndef CHROME_BROWSER_BROMITE_FLAG_CHOICES_H_
@@ -36,8 +36,8 @@ with limited CPU/memory resources and it is disabled by default.
36+ {features::kMaxConnectionsPerHostChoice15, switches::kMaxConnectionsPerHost, "15"}, 36+ {features::kMaxConnectionsPerHostChoice15, switches::kMaxConnectionsPerHost, "15"},
37+}; 37+};
38 #endif // CHROME_BROWSER_BROMITE_FLAG_CHOICES_H_ 38 #endif // CHROME_BROWSER_BROMITE_FLAG_CHOICES_H_
39--- chrome/browser/bromite_flag_entries.h.orig 39--- a/chrome/browser/bromite_flag_entries.h
40+++ chrome/browser/bromite_flag_entries.h 40+++ b/chrome/browser/bromite_flag_entries.h
41@@ -12,4 +12,8 @@ 41@@ -12,4 +12,8 @@
42 "Enable Canvas::measureText() fingerprint deception", 42 "Enable Canvas::measureText() fingerprint deception",
43 "Scale the output values of Canvas::measureText() with a randomly selected factor in the range -0.0003% to 0.0003%, which are recomputed on every document initialization. ungoogled-chromium flag, Bromite feature.", 43 "Scale the output values of Canvas::measureText() with a randomly selected factor in the range -0.0003% to 0.0003%, which are recomputed on every document initialization. ungoogled-chromium flag, Bromite feature.",
@@ -47,23 +47,21 @@ with limited CPU/memory resources and it is disabled by default.
47+ flag_descriptions::kMaxConnectionsPerHostDescription, 47+ flag_descriptions::kMaxConnectionsPerHostDescription,
48+ kOsAll, MULTI_VALUE_TYPE(kMaxConnectionsPerHostChoices)}, 48+ kOsAll, MULTI_VALUE_TYPE(kMaxConnectionsPerHostChoices)},
49 #endif // CHROME_BROWSER_BROMITE_FLAG_ENTRIES_H_ 49 #endif // CHROME_BROWSER_BROMITE_FLAG_ENTRIES_H_
50--- chrome/browser/browser_process_impl.cc.orig 50--- a/chrome/browser/browser_process_impl.cc
51+++ chrome/browser/browser_process_impl.cc 51+++ b/chrome/browser/browser_process_impl.cc
52@@ -19,12 +19,14 @@ 52@@ -20,10 +20,12 @@
53 #include "base/debug/leak_annotations.h" 53 #include "base/debug/leak_annotations.h"
54 #include "base/files/file_path.h" 54 #include "base/files/file_path.h"
55 #include "base/location.h" 55 #include "base/location.h"
56+#include "base/logging.h" 56+#include "base/logging.h"
57 #include "base/macros.h"
58 #include "base/memory/ptr_util.h" 57 #include "base/memory/ptr_util.h"
59 #include "base/metrics/histogram_macros.h" 58 #include "base/metrics/histogram_macros.h"
60 #include "base/path_service.h" 59 #include "base/path_service.h"
61 #include "base/run_loop.h" 60 #include "base/run_loop.h"
62 #include "base/single_thread_task_runner.h"
63+#include "base/strings/string_number_conversions.h" 61+#include "base/strings/string_number_conversions.h"
64 #include "base/synchronization/waitable_event.h" 62 #include "base/synchronization/waitable_event.h"
63 #include "base/task/single_thread_task_runner.h"
65 #include "base/task/task_traits.h" 64 #include "base/task/task_traits.h"
66 #include "base/task/thread_pool.h"
67@@ -103,6 +105,7 @@ 65@@ -103,6 +105,7 @@
68 #include "components/metrics/metrics_service.h" 66 #include "components/metrics/metrics_service.h"
69 #include "components/metrics_services_manager/metrics_services_manager.h" 67 #include "components/metrics_services_manager/metrics_services_manager.h"
@@ -80,9 +78,9 @@ with limited CPU/memory resources and it is disabled by default.
80 #include "ppapi/buildflags/buildflags.h" 78 #include "ppapi/buildflags/buildflags.h"
81 #include "printing/buildflags/buildflags.h" 79 #include "printing/buildflags/buildflags.h"
82 #include "services/network/public/cpp/features.h" 80 #include "services/network/public/cpp/features.h"
83@@ -345,6 +349,18 @@ void BrowserProcessImpl::Init() { 81@@ -344,6 +348,18 @@ void BrowserProcessImpl::Init() {
82 pref_change_registrar_.Add(metrics::prefs::kMetricsReportingEnabled,
84 base::BindRepeating(&ApplyMetricsReportingPolicy)); 83 base::BindRepeating(&ApplyMetricsReportingPolicy));
85 #endif
86 84
87+ int max_connections_per_host = 0; 85+ int max_connections_per_host = 0;
88+ auto switch_value = base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( 86+ auto switch_value = base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
@@ -99,11 +97,11 @@ with limited CPU/memory resources and it is disabled by default.
99 DCHECK(!webrtc_event_log_manager_); 97 DCHECK(!webrtc_event_log_manager_);
100 webrtc_event_log_manager_ = WebRtcEventLogManager::CreateSingletonInstance(); 98 webrtc_event_log_manager_ = WebRtcEventLogManager::CreateSingletonInstance();
101 99
102--- chrome/browser/flag_descriptions.cc.orig 100--- a/chrome/browser/flag_descriptions.cc
103+++ chrome/browser/flag_descriptions.cc 101+++ b/chrome/browser/flag_descriptions.cc
104@@ -1621,6 +1621,10 @@ const char kMediaHistoryDescription[] = 102@@ -1595,6 +1595,10 @@ const char kUnthrottledNestedTimeoutDesc
105 "Enables Media History which records data around media playbacks on " 103 "websites abusing the API will still eventually have their setTimeouts "
106 "websites."; 104 "clamped.";
107 105
108+const char kMaxConnectionsPerHostName[] = "Maximum connections per host"; 106+const char kMaxConnectionsPerHostName[] = "Maximum connections per host";
109+const char kMaxConnectionsPerHostDescription[] = 107+const char kMaxConnectionsPerHostDescription[] =
@@ -112,11 +110,11 @@ with limited CPU/memory resources and it is disabled by default.
112 const char kMediaRouterCastAllowAllIPsName[] = 110 const char kMediaRouterCastAllowAllIPsName[] =
113 "Connect to Cast devices on all IP addresses"; 111 "Connect to Cast devices on all IP addresses";
114 const char kMediaRouterCastAllowAllIPsDescription[] = 112 const char kMediaRouterCastAllowAllIPsDescription[] =
115--- chrome/browser/flag_descriptions.h.orig 113--- a/chrome/browser/flag_descriptions.h
116+++ chrome/browser/flag_descriptions.h 114+++ b/chrome/browser/flag_descriptions.h
117@@ -930,6 +930,9 @@ extern const char kLogJsConsoleMessagesD 115@@ -900,6 +900,9 @@ extern const char kLogJsConsoleMessagesD
118 extern const char kMediaHistoryName[]; 116 extern const char kUnthrottledNestedTimeoutName[];
119 extern const char kMediaHistoryDescription[]; 117 extern const char kUnthrottledNestedTimeoutDescription[];
120 118
121+extern const char kMaxConnectionsPerHostName[]; 119+extern const char kMaxConnectionsPerHostName[];
122+extern const char kMaxConnectionsPerHostDescription[]; 120+extern const char kMaxConnectionsPerHostDescription[];
@@ -124,8 +122,8 @@ with limited CPU/memory resources and it is disabled by default.
124 extern const char kMediaRouterCastAllowAllIPsName[]; 122 extern const char kMediaRouterCastAllowAllIPsName[];
125 extern const char kMediaRouterCastAllowAllIPsDescription[]; 123 extern const char kMediaRouterCastAllowAllIPsDescription[];
126 124
127--- components/network_session_configurator/common/network_features.cc.orig 125--- a/components/network_session_configurator/common/network_features.cc
128+++ components/network_session_configurator/common/network_features.cc 126+++ b/components/network_session_configurator/common/network_features.cc
129@@ -8,4 +8,7 @@ 127@@ -8,4 +8,7 @@
130 128
131 namespace features { 129 namespace features {
@@ -134,8 +132,8 @@ with limited CPU/memory resources and it is disabled by default.
134+ kMaxConnectionsPerHostChoice15[] = "15"; 132+ kMaxConnectionsPerHostChoice15[] = "15";
135+ 133+
136 } // namespace features 134 } // namespace features
137--- components/network_session_configurator/common/network_features.h.orig 135--- a/components/network_session_configurator/common/network_features.h
138+++ components/network_session_configurator/common/network_features.h 136+++ b/components/network_session_configurator/common/network_features.h
139@@ -10,6 +10,10 @@ 137@@ -10,6 +10,10 @@
140 138
141 namespace features { 139 namespace features {
@@ -147,8 +145,8 @@ with limited CPU/memory resources and it is disabled by default.
147 } // namespace features 145 } // namespace features
148 146
149 #endif // COMPONENTS_NETWORK_SESSION_CONFIGURATOR_COMMON_NETWORK_FEATURES_H_ 147 #endif // COMPONENTS_NETWORK_SESSION_CONFIGURATOR_COMMON_NETWORK_FEATURES_H_
150--- components/network_session_configurator/common/network_switch_list.h.orig 148--- a/components/network_session_configurator/common/network_switch_list.h
151+++ components/network_session_configurator/common/network_switch_list.h 149+++ b/components/network_session_configurator/common/network_switch_list.h
152@@ -19,6 +19,10 @@ NETWORK_SWITCH(kEnableUserAlternateProto 150@@ -19,6 +19,10 @@ NETWORK_SWITCH(kEnableUserAlternateProto
153 // Enables the QUIC protocol. This is a temporary testing flag. 151 // Enables the QUIC protocol. This is a temporary testing flag.
154 NETWORK_SWITCH(kEnableQuic, "enable-quic") 152 NETWORK_SWITCH(kEnableQuic, "enable-quic")
diff --git a/www/chromium-uc/patches/extra/debian/disable/google-api-warning.patch b/www/chromium-uc/patches/extra/debian/disable/google-api-warning.patch
index 1c9d44b..5ed977e 100644
--- a/www/chromium-uc/patches/extra/debian/disable/google-api-warning.patch
+++ b/www/chromium-uc/patches/extra/debian/disable/google-api-warning.patch
@@ -1,9 +1,9 @@
1description: disable the google api key warning when those aren't found 1description: disable the google api key warning when those aren't found
2author: Michael Gilbert <mgilbert@debian.org> 2author: Michael Gilbert <mgilbert@debian.org>
3 3
4--- chrome/browser/ui/startup/startup_browser_creator_impl.cc.orig 4--- a/chrome/browser/ui/startup/infobar_utils.cc
5+++ chrome/browser/ui/startup/startup_browser_creator_impl.cc 5+++ b/chrome/browser/ui/startup/infobar_utils.cc
6@@ -672,9 +672,6 @@ void StartupBrowserCreatorImpl::AddInfoB 6@@ -113,9 +113,6 @@ void AddInfoBarsIfNecessary(Browser* bro
7 infobars::ContentInfoBarManager* infobar_manager = 7 infobars::ContentInfoBarManager* infobar_manager =
8 infobars::ContentInfoBarManager::FromWebContents(web_contents); 8 infobars::ContentInfoBarManager::FromWebContents(web_contents);
9 9
diff --git a/www/chromium-uc/patches/extra/debian/disable/welcome-page.patch b/www/chromium-uc/patches/extra/debian/disable/welcome-page.patch
index 873aeae..9d5cd5a 100644
--- a/www/chromium-uc/patches/extra/debian/disable/welcome-page.patch
+++ b/www/chromium-uc/patches/extra/debian/disable/welcome-page.patch
@@ -2,13 +2,13 @@ description: do not override the welcome page setting set in master_preferences
2author: Michael Gilbert <mgilbert@debian.org> 2author: Michael Gilbert <mgilbert@debian.org>
3bug-debian: http://bugs.debian.org/857767 3bug-debian: http://bugs.debian.org/857767
4 4
5--- chrome/browser/profiles/profile_manager.cc.orig 5--- a/chrome/browser/profiles/profile_manager.cc
6+++ chrome/browser/profiles/profile_manager.cc 6+++ b/chrome/browser/profiles/profile_manager.cc
7@@ -1310,7 +1310,7 @@ void ProfileManager::InitProfileUserPref 7@@ -1399,7 +1399,7 @@ void ProfileManager::InitProfileUserPref
8 profile->GetPrefs()->SetString(prefs::kSupervisedUserId, 8 profile->GetPrefs()->SetString(prefs::kSupervisedUserId,
9 supervised_user_id); 9 supervised_user_id);
10 } 10 }
11-#if !defined(OS_ANDROID) 11-#if !BUILDFLAG(IS_ANDROID)
12+#if 0 12+#if 0
13 // TODO(pmonette): Fix IsNewProfile() to handle the case where the profile is 13 // TODO(pmonette): Fix IsNewProfile() to handle the case where the profile is
14 // new even if the "Preferences" file already existed. (For example: The 14 // new even if the "Preferences" file already existed. (For example: The
diff --git a/www/chromium-uc/patches/extra/debian/fixes/connection-message.patch b/www/chromium-uc/patches/extra/debian/fixes/connection-message.patch
index d9aaa94..a4e9922 100644
--- a/www/chromium-uc/patches/extra/debian/fixes/connection-message.patch
+++ b/www/chromium-uc/patches/extra/debian/fixes/connection-message.patch
@@ -2,8 +2,8 @@ description: suggest proxy misconfiguration when network is unreachable
2author: Michael Gilbert <mgilbert@debian.org> 2author: Michael Gilbert <mgilbert@debian.org>
3bug-debian: http://bugs.debian.org/864539 3bug-debian: http://bugs.debian.org/864539
4 4
5--- components/error_page_strings.grdp.orig 5--- a/components/error_page_strings.grdp
6+++ components/error_page_strings.grdp 6+++ b/components/error_page_strings.grdp
7@@ -54,7 +54,7 @@ 7@@ -54,7 +54,7 @@
8 </message> 8 </message>
9 <message name="IDS_ERRORPAGES_SUGGESTION_CHECK_CONNECTION_BODY" desc="When a page fails to load, sometimes we suggest checking the network connections. This contains details below the suggestion."> 9 <message name="IDS_ERRORPAGES_SUGGESTION_CHECK_CONNECTION_BODY" desc="When a page fails to load, sometimes we suggest checking the network connections. This contains details below the suggestion.">
diff --git a/www/chromium-uc/patches/extra/debian/gn/parallel.patch b/www/chromium-uc/patches/extra/debian/gn/parallel.patch
index ac0a2b0..77e0110 100644
--- a/www/chromium-uc/patches/extra/debian/gn/parallel.patch
+++ b/www/chromium-uc/patches/extra/debian/gn/parallel.patch
@@ -1,8 +1,8 @@
1description: respect specified number of parallel jobs while bootstrapping gn 1description: respect specified number of parallel jobs while bootstrapping gn
2author: Michael Gilbert <mgilbert@debian.org> 2author: Michael Gilbert <mgilbert@debian.org>
3 3
4--- tools/gn/bootstrap/bootstrap.py.orig 4--- a/tools/gn/bootstrap/bootstrap.py
5+++ tools/gn/bootstrap/bootstrap.py 5+++ b/tools/gn/bootstrap/bootstrap.py
6@@ -47,6 +47,7 @@ def main(argv): 6@@ -47,6 +47,7 @@ def main(argv):
7 help='The directory in which to build gn, ' 7 help='The directory in which to build gn, '
8 'relative to the src directory. (eg. out/Release)') 8 'relative to the src directory. (eg. out/Release)')
diff --git a/www/chromium-uc/patches/extra/inox-patchset/0006-modify-default-prefs.patch b/www/chromium-uc/patches/extra/inox-patchset/0006-modify-default-prefs.patch
index d62ef29..9d90575 100644
--- a/www/chromium-uc/patches/extra/inox-patchset/0006-modify-default-prefs.patch
+++ b/www/chromium-uc/patches/extra/inox-patchset/0006-modify-default-prefs.patch
@@ -1,6 +1,6 @@
1 1
2--- chrome/browser/background/background_mode_manager.cc.orig 2--- a/chrome/browser/background/background_mode_manager.cc
3+++ chrome/browser/background/background_mode_manager.cc 3+++ b/chrome/browser/background/background_mode_manager.cc
4@@ -376,7 +376,7 @@ void BackgroundModeManager::RegisterPref 4@@ -376,7 +376,7 @@ void BackgroundModeManager::RegisterPref
5 registry->RegisterBooleanPref(prefs::kChromeCreatedLoginItem, false); 5 registry->RegisterBooleanPref(prefs::kChromeCreatedLoginItem, false);
6 registry->RegisterBooleanPref(prefs::kMigratedLoginItemPref, false); 6 registry->RegisterBooleanPref(prefs::kMigratedLoginItemPref, false);
@@ -10,9 +10,9 @@
10 } 10 }
11 11
12 void BackgroundModeManager::RegisterProfile(Profile* profile) { 12 void BackgroundModeManager::RegisterProfile(Profile* profile) {
13--- chrome/browser/chrome_content_browser_client.cc.orig 13--- a/chrome/browser/chrome_content_browser_client.cc
14+++ chrome/browser/chrome_content_browser_client.cc 14+++ b/chrome/browser/chrome_content_browser_client.cc
15@@ -1238,7 +1238,7 @@ void ChromeContentBrowserClient::Registe 15@@ -1292,7 +1292,7 @@ void ChromeContentBrowserClient::Registe
16 void ChromeContentBrowserClient::RegisterProfilePrefs( 16 void ChromeContentBrowserClient::RegisterProfilePrefs(
17 user_prefs::PrefRegistrySyncable* registry) { 17 user_prefs::PrefRegistrySyncable* registry) {
18 registry->RegisterBooleanPref(prefs::kDisable3DAPIs, false); 18 registry->RegisterBooleanPref(prefs::kDisable3DAPIs, false);
@@ -21,31 +21,9 @@
21 // Register user prefs for mapping SitePerProcess and IsolateOrigins in 21 // Register user prefs for mapping SitePerProcess and IsolateOrigins in
22 // user policy in addition to the same named ones in Local State (which are 22 // user policy in addition to the same named ones in Local State (which are
23 // used for mapping the command-line flags). 23 // used for mapping the command-line flags).
24--- chrome/browser/net/prediction_options.cc.orig 24--- a/chrome/browser/net/profile_network_context_service.cc
25+++ chrome/browser/net/prediction_options.cc 25+++ b/chrome/browser/net/profile_network_context_service.cc
26@@ -31,7 +31,7 @@ NetworkPredictionStatus CanPrefetchAndPr 26@@ -338,7 +338,7 @@ void ProfileNetworkContextService::Updat
27 }
28 return NetworkPredictionStatus::DISABLED_DUE_TO_NETWORK;
29 default:
30- DCHECK_EQ(NETWORK_PREDICTION_NEVER, network_prediction_options);
31+ //DCHECK_EQ(NETWORK_PREDICTION_NEVER, network_prediction_options);
32 return NetworkPredictionStatus::DISABLED_ALWAYS;
33 }
34 }
35--- chrome/browser/net/prediction_options.h.orig
36+++ chrome/browser/net/prediction_options.h
37@@ -22,7 +22,7 @@ enum NetworkPredictionOptions {
38 NETWORK_PREDICTION_ALWAYS,
39 NETWORK_PREDICTION_WIFI_ONLY,
40 NETWORK_PREDICTION_NEVER,
41- NETWORK_PREDICTION_DEFAULT = NETWORK_PREDICTION_WIFI_ONLY,
42+ NETWORK_PREDICTION_DEFAULT = NETWORK_PREDICTION_NEVER,
43 };
44
45 enum class NetworkPredictionStatus {
46--- chrome/browser/net/profile_network_context_service.cc.orig
47+++ chrome/browser/net/profile_network_context_service.cc
48@@ -319,7 +319,7 @@ void ProfileNetworkContextService::Updat
49 void ProfileNetworkContextService::RegisterProfilePrefs( 27 void ProfileNetworkContextService::RegisterProfilePrefs(
50 user_prefs::PrefRegistrySyncable* registry) { 28 user_prefs::PrefRegistrySyncable* registry) {
51 registry->RegisterBooleanPref( 29 registry->RegisterBooleanPref(
@@ -54,19 +32,30 @@
54 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 32 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
55 registry->RegisterBooleanPref(prefs::kQuicAllowed, true); 33 registry->RegisterBooleanPref(prefs::kQuicAllowed, true);
56 registry->RegisterBooleanPref(prefs::kGloballyScopeHTTPAuthCacheEnabled, 34 registry->RegisterBooleanPref(prefs::kGloballyScopeHTTPAuthCacheEnabled,
57--- chrome/browser/profiles/profile.cc.orig 35--- a/chrome/browser/prefetch/prefetch_prefs.h
58+++ chrome/browser/profiles/profile.cc 36+++ b/chrome/browser/prefetch/prefetch_prefs.h
59@@ -276,7 +276,7 @@ const char Profile::kProfileKey[] = "__P 37@@ -22,7 +22,7 @@ enum class NetworkPredictionOptions {
38 kWifiOnlyDeprecated = 1,
39 kDisabled = 2,
40 kExtended = 3,
41- kDefault = kWifiOnlyDeprecated,
42+ kDefault = kDisabled,
43 };
44
45 // Enum representing possible values of the Preload Pages opt-in state. Since
46--- a/chrome/browser/profiles/profile.cc
47+++ b/chrome/browser/profiles/profile.cc
48@@ -278,7 +278,7 @@ const char Profile::kProfileKey[] = "__P
60 void Profile::RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { 49 void Profile::RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
61 registry->RegisterBooleanPref( 50 registry->RegisterBooleanPref(
62 prefs::kSearchSuggestEnabled, 51 prefs::kSearchSuggestEnabled,
63- true, 52- true,
64+ false, 53+ false,
65 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 54 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
66 #if defined(OS_ANDROID) 55 #if BUILDFLAG(IS_ANDROID)
67 registry->RegisterStringPref( 56 registry->RegisterStringPref(
68--- chrome/browser/resources/settings/reset_page/reset_profile_dialog.html.orig 57--- a/chrome/browser/resources/settings/reset_page/reset_profile_dialog.html
69+++ chrome/browser/resources/settings/reset_page/reset_profile_dialog.html 58+++ b/chrome/browser/resources/settings/reset_page/reset_profile_dialog.html
70@@ -36,7 +36,7 @@ 59@@ -36,7 +36,7 @@
71 </cr-button> 60 </cr-button>
72 </div> 61 </div>
@@ -76,9 +65,9 @@
76 $i18nRaw{resetPageFeedback}</cr-checkbox> 65 $i18nRaw{resetPageFeedback}</cr-checkbox>
77 </div> 66 </div>
78 </cr-dialog> 67 </cr-dialog>
79--- chrome/browser/signin/account_consistency_mode_manager.cc.orig 68--- a/chrome/browser/signin/account_consistency_mode_manager.cc
80+++ chrome/browser/signin/account_consistency_mode_manager.cc 69+++ b/chrome/browser/signin/account_consistency_mode_manager.cc
81@@ -111,7 +111,7 @@ AccountConsistencyModeManager::~AccountC 70@@ -110,7 +110,7 @@ AccountConsistencyModeManager::~AccountC
82 // static 71 // static
83 void AccountConsistencyModeManager::RegisterProfilePrefs( 72 void AccountConsistencyModeManager::RegisterProfilePrefs(
84 user_prefs::PrefRegistrySyncable* registry) { 73 user_prefs::PrefRegistrySyncable* registry) {
@@ -87,8 +76,8 @@
87 } 76 }
88 77
89 // static 78 // static
90--- chrome/browser/ui/browser_ui_prefs.cc.orig 79--- a/chrome/browser/ui/browser_ui_prefs.cc
91+++ chrome/browser/ui/browser_ui_prefs.cc 80+++ b/chrome/browser/ui/browser_ui_prefs.cc
92@@ -77,11 +77,11 @@ void RegisterBrowserUserPrefs(user_prefs 81@@ -77,11 +77,11 @@ void RegisterBrowserUserPrefs(user_prefs
93 registry->RegisterBooleanPref(prefs::kWebAppCreateInAppsMenu, true); 82 registry->RegisterBooleanPref(prefs::kWebAppCreateInAppsMenu, true);
94 registry->RegisterBooleanPref(prefs::kWebAppCreateInQuickLaunchBar, true); 83 registry->RegisterBooleanPref(prefs::kWebAppCreateInQuickLaunchBar, true);
@@ -103,19 +92,8 @@
103 registry->RegisterDictionaryPref(prefs::kBrowserWindowPlacement); 92 registry->RegisterDictionaryPref(prefs::kBrowserWindowPlacement);
104 registry->RegisterDictionaryPref(prefs::kBrowserWindowPlacementPopup); 93 registry->RegisterDictionaryPref(prefs::kBrowserWindowPlacementPopup);
105 registry->RegisterDictionaryPref(prefs::kAppWindowPlacement); 94 registry->RegisterDictionaryPref(prefs::kAppWindowPlacement);
106--- chrome/service/cloud_print/connector_settings.cc.orig 95--- a/components/autofill/core/common/autofill_prefs.cc
107+++ chrome/service/cloud_print/connector_settings.cc 96+++ b/components/autofill/core/common/autofill_prefs.cc
108@@ -59,7 +59,7 @@ void ConnectorSettings::InitFrom(Service
109 DCHECK(server_url_.is_valid());
110
111 connect_new_printers_ = prefs->GetBoolean(
112- prefs::kCloudPrintConnectNewPrinters, true);
113+ prefs::kCloudPrintConnectNewPrinters, false);
114
115 xmpp_ping_enabled_ = prefs->GetBoolean(
116 prefs::kCloudPrintXmppPingEnabled, false);
117--- components/autofill/core/common/autofill_prefs.cc.orig
118+++ components/autofill/core/common/autofill_prefs.cc
119@@ -131,10 +131,10 @@ const char kAutocompleteLastVersionReten 97@@ -131,10 +131,10 @@ const char kAutocompleteLastVersionReten
120 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { 98 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
121 // Synced prefs. Used for cross-device choices, e.g., credit card Autofill. 99 // Synced prefs. Used for cross-device choices, e.g., credit card Autofill.
@@ -138,31 +116,20 @@
138 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 116 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
139 registry->RegisterStringPref( 117 registry->RegisterStringPref(
140 prefs::kAutofillProfileValidity, "", 118 prefs::kAutofillProfileValidity, "",
141--- components/bookmarks/browser/bookmark_utils.cc.orig 119--- a/components/bookmarks/browser/bookmark_utils.cc
142+++ components/bookmarks/browser/bookmark_utils.cc 120+++ b/components/bookmarks/browser/bookmark_utils.cc
143@@ -437,7 +437,7 @@ bool DoesBookmarkContainWords(const std: 121@@ -436,7 +436,7 @@ bool DoesBookmarkContainWords(const std:
122
144 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { 123 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
145 registry->RegisterBooleanPref( 124 registry->RegisterBooleanPref(
146 prefs::kShowBookmarkBar, 125- prefs::kShowBookmarkBar, false,
147- false, 126+ prefs::kShowBookmarkBar, true,
148+ true,
149 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 127 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
150 registry->RegisterBooleanPref(prefs::kEditBookmarksEnabled, true); 128 registry->RegisterBooleanPref(prefs::kEditBookmarksEnabled, true);
151 registry->RegisterBooleanPref( 129 registry->RegisterBooleanPref(
152--- components/bookmarks/browser/features.cc.orig 130--- a/components/content_settings/core/browser/cookie_settings.cc
153+++ components/bookmarks/browser/features.cc 131+++ b/components/content_settings/core/browser/cookie_settings.cc
154@@ -10,7 +10,7 @@ namespace features { 132@@ -64,7 +64,7 @@ void CookieSettings::RegisterProfilePref
155 // Changes the apps shortcut on the bookmarks bar to default to off.
156 // https://crbug.com/1236793
157 const base::Feature kAppsShortcutDefaultOff{"AppsShortcutDefaultOff",
158- base::FEATURE_DISABLED_BY_DEFAULT};
159+ base::FEATURE_ENABLED_BY_DEFAULT};
160
161 } // namespace features
162 } // namespace bookmarks
163--- components/content_settings/core/browser/cookie_settings.cc.orig
164+++ components/content_settings/core/browser/cookie_settings.cc
165@@ -63,7 +63,7 @@ void CookieSettings::RegisterProfilePref
166 user_prefs::PrefRegistrySyncable* registry) { 133 user_prefs::PrefRegistrySyncable* registry) {
167 registry->RegisterIntegerPref( 134 registry->RegisterIntegerPref(
168 prefs::kCookieControlsMode, 135 prefs::kCookieControlsMode,
@@ -171,9 +138,9 @@
171 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 138 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
172 } 139 }
173 140
174--- components/password_manager/core/browser/password_manager.cc.orig 141--- a/components/password_manager/core/browser/password_manager.cc
175+++ components/password_manager/core/browser/password_manager.cc 142+++ b/components/password_manager/core/browser/password_manager.cc
176@@ -204,10 +204,10 @@ bool HasMutedCredentials(base::span<cons 143@@ -210,10 +210,10 @@ bool HasMutedCredentials(const std::vect
177 void PasswordManager::RegisterProfilePrefs( 144 void PasswordManager::RegisterProfilePrefs(
178 user_prefs::PrefRegistrySyncable* registry) { 145 user_prefs::PrefRegistrySyncable* registry) {
179 registry->RegisterBooleanPref( 146 registry->RegisterBooleanPref(
@@ -186,8 +153,8 @@
186 user_prefs::PrefRegistrySyncable::SYNCABLE_PRIORITY_PREF); 153 user_prefs::PrefRegistrySyncable::SYNCABLE_PRIORITY_PREF);
187 registry->RegisterStringPref(prefs::kSyncPasswordHash, std::string(), 154 registry->RegisterStringPref(prefs::kSyncPasswordHash, std::string(),
188 PrefRegistry::NO_REGISTRATION_FLAGS); 155 PrefRegistry::NO_REGISTRATION_FLAGS);
189--- components/payments/core/payment_prefs.cc.orig 156--- a/components/payments/core/payment_prefs.cc
190+++ components/payments/core/payment_prefs.cc 157+++ b/components/payments/core/payment_prefs.cc
191@@ -16,7 +16,7 @@ const char kCanMakePaymentEnabled[] = "p 158@@ -16,7 +16,7 @@ const char kCanMakePaymentEnabled[] = "p
192 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { 159 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
193 registry->RegisterBooleanPref(kPaymentsFirstTransactionCompleted, false); 160 registry->RegisterBooleanPref(kPaymentsFirstTransactionCompleted, false);
diff --git a/www/chromium-uc/patches/extra/inox-patchset/0008-restore-classic-ntp.patch b/www/chromium-uc/patches/extra/inox-patchset/0008-restore-classic-ntp.patch
index 9d21b6f..da8efe2 100644
--- a/www/chromium-uc/patches/extra/inox-patchset/0008-restore-classic-ntp.patch
+++ b/www/chromium-uc/patches/extra/inox-patchset/0008-restore-classic-ntp.patch
@@ -1,6 +1,6 @@
1--- chrome/browser/search/search.cc.orig 1--- a/chrome/browser/search/search.cc
2+++ chrome/browser/search/search.cc 2+++ b/chrome/browser/search/search.cc
3@@ -182,26 +182,7 @@ struct NewTabURLDetails { 3@@ -184,26 +184,7 @@ struct NewTabURLDetails {
4 : chrome::kChromeUINewTabPageThirdPartyURL); 4 : chrome::kChromeUINewTabPageThirdPartyURL);
5 #endif 5 #endif
6 6
@@ -28,9 +28,9 @@
28 } 28 }
29 29
30 const GURL url; 30 const GURL url;
31--- components/ntp_snippets/features.cc.orig 31--- a/components/ntp_snippets/features.cc
32+++ components/ntp_snippets/features.cc 32+++ b/components/ntp_snippets/features.cc
33@@ -39,7 +39,7 @@ const base::Feature* const kAllFeatures[ 33@@ -38,7 +38,7 @@ const base::Feature* const kAllFeatures[
34 &kOptionalImagesEnabledFeature}; 34 &kOptionalImagesEnabledFeature};
35 35
36 const base::Feature kArticleSuggestionsFeature{ 36 const base::Feature kArticleSuggestionsFeature{
@@ -39,7 +39,7 @@
39 39
40 const base::Feature kRemoteSuggestionsEmulateM58FetchingSchedule{ 40 const base::Feature kRemoteSuggestionsEmulateM58FetchingSchedule{
41 "RemoteSuggestionsEmulateM58FetchingSchedule", 41 "RemoteSuggestionsEmulateM58FetchingSchedule",
42@@ -69,10 +69,10 @@ const char kNotificationsDailyLimit[] = 42@@ -68,10 +68,10 @@ const char kNotificationsDailyLimit[] =
43 const char kNotificationsIgnoredLimitParam[] = "ignored_limit"; 43 const char kNotificationsIgnoredLimitParam[] = "ignored_limit";
44 44
45 const base::Feature kKeepPrefetchedContentSuggestions{ 45 const base::Feature kKeepPrefetchedContentSuggestions{
diff --git a/www/chromium-uc/patches/extra/inox-patchset/0013-disable-missing-key-warning.patch b/www/chromium-uc/patches/extra/inox-patchset/0013-disable-missing-key-warning.patch
index 0b14cd8..c5a74c7 100644
--- a/www/chromium-uc/patches/extra/inox-patchset/0013-disable-missing-key-warning.patch
+++ b/www/chromium-uc/patches/extra/inox-patchset/0013-disable-missing-key-warning.patch
@@ -1,5 +1,5 @@
1--- chrome/browser/ui/startup/google_api_keys_infobar_delegate.cc.orig 1--- a/chrome/browser/ui/startup/google_api_keys_infobar_delegate.cc
2+++ chrome/browser/ui/startup/google_api_keys_infobar_delegate.cc 2+++ b/chrome/browser/ui/startup/google_api_keys_infobar_delegate.cc
3@@ -17,9 +17,6 @@ 3@@ -17,9 +17,6 @@
4 // static 4 // static
5 void GoogleApiKeysInfoBarDelegate::Create( 5 void GoogleApiKeysInfoBarDelegate::Create(
diff --git a/www/chromium-uc/patches/extra/inox-patchset/0016-chromium-sandbox-pie.patch b/www/chromium-uc/patches/extra/inox-patchset/0016-chromium-sandbox-pie.patch
index ff72a53..6ee4d73 100644
--- a/www/chromium-uc/patches/extra/inox-patchset/0016-chromium-sandbox-pie.patch
+++ b/www/chromium-uc/patches/extra/inox-patchset/0016-chromium-sandbox-pie.patch
@@ -1,6 +1,6 @@
1--- sandbox/linux/BUILD.gn.orig 1--- a/sandbox/linux/BUILD.gn
2+++ sandbox/linux/BUILD.gn 2+++ b/sandbox/linux/BUILD.gn
3@@ -327,6 +327,12 @@ if (is_linux || is_chromeos) { 3@@ -296,6 +296,12 @@ if (is_linux || is_chromeos) {
4 # These files have a suspicious comparison. 4 # These files have a suspicious comparison.
5 # TODO fix this and re-enable this warning. 5 # TODO fix this and re-enable this warning.
6 "-Wno-sign-compare", 6 "-Wno-sign-compare",
diff --git a/www/chromium-uc/patches/extra/inox-patchset/0018-disable-first-run-behaviour.patch b/www/chromium-uc/patches/extra/inox-patchset/0018-disable-first-run-behaviour.patch
index 4790f65..7bbf3a0 100644
--- a/www/chromium-uc/patches/extra/inox-patchset/0018-disable-first-run-behaviour.patch
+++ b/www/chromium-uc/patches/extra/inox-patchset/0018-disable-first-run-behaviour.patch
@@ -1,6 +1,6 @@
1--- chrome/browser/ui/startup/startup_tab_provider.cc.orig 1--- a/chrome/browser/ui/startup/startup_tab_provider.cc
2+++ chrome/browser/ui/startup/startup_tab_provider.cc 2+++ b/chrome/browser/ui/startup/startup_tab_provider.cc
3@@ -105,7 +105,7 @@ bool ValidateUrl(const GURL& url) { 3@@ -144,7 +144,7 @@ bool IsChromeControlledNtpUrl(const GURL
4 4
5 StartupTabs StartupTabProviderImpl::GetOnboardingTabs(Profile* profile) const { 5 StartupTabs StartupTabProviderImpl::GetOnboardingTabs(Profile* profile) const {
6 // Chrome OS has its own welcome flow provided by OOBE. 6 // Chrome OS has its own welcome flow provided by OOBE.
diff --git a/www/chromium-uc/patches/extra/inox-patchset/0019-disable-battery-status-service.patch b/www/chromium-uc/patches/extra/inox-patchset/0019-disable-battery-status-service.patch
index ded3df9..e69d4da 100644
--- a/www/chromium-uc/patches/extra/inox-patchset/0019-disable-battery-status-service.patch
+++ b/www/chromium-uc/patches/extra/inox-patchset/0019-disable-battery-status-service.patch
@@ -1,5 +1,5 @@
1--- services/device/battery/battery_status_service.cc.orig 1--- a/services/device/battery/battery_status_service.cc
2+++ services/device/battery/battery_status_service.cc 2+++ b/services/device/battery/battery_status_service.cc
3@@ -22,10 +22,7 @@ BatteryStatusService::BatteryStatusServi 3@@ -22,10 +22,7 @@ BatteryStatusService::BatteryStatusServi
4 update_callback_( 4 update_callback_(
5 base::BindRepeating(&BatteryStatusService::NotifyConsumers, 5 base::BindRepeating(&BatteryStatusService::NotifyConsumers,
@@ -82,9 +82,9 @@
82 is_shutdown_ = false; 82 is_shutdown_ = false;
83 main_thread_task_runner_ = base::ThreadTaskRunnerHandle::Get(); 83 main_thread_task_runner_ = base::ThreadTaskRunnerHandle::Get();
84 } 84 }
85--- services/device/battery/battery_status_service.h.orig 85--- a/services/device/battery/battery_status_service.h
86+++ services/device/battery/battery_status_service.h 86+++ b/services/device/battery/battery_status_service.h
87@@ -60,15 +60,10 @@ class BatteryStatusService { 87@@ -59,15 +59,10 @@ class BatteryStatusService {
88 // Updates current battery status and sends new status to interested 88 // Updates current battery status and sends new status to interested
89 // render processes. Can be called on any thread via a callback. 89 // render processes. Can be called on any thread via a callback.
90 void NotifyConsumers(const mojom::BatteryStatus& status); 90 void NotifyConsumers(const mojom::BatteryStatus& status);
diff --git a/www/chromium-uc/patches/extra/iridium-browser/Remove-EV-certificates.patch b/www/chromium-uc/patches/extra/iridium-browser/Remove-EV-certificates.patch
index 8f794fe..5f6dedb 100644
--- a/www/chromium-uc/patches/extra/iridium-browser/Remove-EV-certificates.patch
+++ b/www/chromium-uc/patches/extra/iridium-browser/Remove-EV-certificates.patch
@@ -7,16 +7,15 @@ The team chose to let EV certificates appear just like normal
7certificates. The web of trust is considered a failure in itself, so 7certificates. The web of trust is considered a failure in itself, so
8do not give users a false sense of extra security with EV certs. 8do not give users a false sense of extra security with EV certs.
9Instead, let them appear just like regular ones. 9Instead, let them appear just like regular ones.
10---
11 net/cert/ev_root_ca_metadata.cc | 14 +++++++++++++-
12 1 file changed, 13 insertions(+), 1 deletion(-)
13 10
14--- net/cert/ev_root_ca_metadata.cc.orig 11--- a/net/cert/ev_root_ca_metadata.cc
15+++ net/cert/ev_root_ca_metadata.cc 12+++ b/net/cert/ev_root_ca_metadata.cc
16@@ -41,6 +41,16 @@ struct EVMetadata { 13@@ -41,7 +41,17 @@ struct EVMetadata {
14 const base::StringPiece policy_oids[kMaxOIDsPerCA];
15 };
17 16
18 // These certificates may be found in net/data/ssl/ev_roots. 17-#include "net/data/ssl/ev_roots/chrome-ev-root-store-inc.cc"
19 static const EVMetadata kEvRootCaMetadata[] = { 18+static const EVMetadata kEvRootCaMetadata[] = {
20+ // need some dummy thing to make compiler happy, because 19+ // need some dummy thing to make compiler happy, because
21+ // arraysize() is implemented as a convoluted template rather than 20+ // arraysize() is implemented as a convoluted template rather than
22+ // the traditional sizeof(x)/sizeof(*x) 21+ // the traditional sizeof(x)/sizeof(*x)
@@ -25,18 +24,7 @@ Instead, let them appear just like regular ones.
25+ { 24+ {
26+ "0", 25+ "0",
27+ } 26+ }
28+ },
29+#if 0
30 // AC Camerfirma S.A. Chambers of Commerce Root - 2008
31 // https://www.camerfirma.com
32 {
33@@ -590,7 +600,9 @@ static const EVMetadata kEvRootCaMetadat
34 0xd2, 0x09, 0xb7, 0x37, 0xcb, 0xe2, 0xc1, 0x8c, 0xfb, 0x2c, 0x10,
35 0xc0, 0xff, 0x0b, 0xcf, 0x0d, 0x32, 0x86, 0xfc, 0x1a, 0xa2}},
36 {"2.16.840.1.114404.1.1.2.4.1", ""},
37- }};
38+ } 27+ }
39+#endif
40+}; 28+};
41 29
42 #endif // defined(PLATFORM_USES_CHROMIUM_EV_METADATA) 30 #endif // defined(PLATFORM_USES_CHROMIUM_EV_METADATA)
diff --git a/www/chromium-uc/patches/extra/iridium-browser/browser-disable-profile-auto-import-on-first-run.patch b/www/chromium-uc/patches/extra/iridium-browser/browser-disable-profile-auto-import-on-first-run.patch
index 0072e8f..1357064 100644
--- a/www/chromium-uc/patches/extra/iridium-browser/browser-disable-profile-auto-import-on-first-run.patch
+++ b/www/chromium-uc/patches/extra/iridium-browser/browser-disable-profile-auto-import-on-first-run.patch
@@ -3,18 +3,14 @@ From: Joachim Bauch <jojo@struktur.de>
3Date: Thu, 25 Jun 2015 15:51:59 +0200 3Date: Thu, 25 Jun 2015 15:51:59 +0200
4Subject: [PATCH 56/66] browser: disable profile auto-import on first run 4Subject: [PATCH 56/66] browser: disable profile auto-import on first run
5 5
6--- 6--- a/chrome/browser/chrome_browser_main.cc
7 chrome/browser/chrome_browser_main.cc | 2 -- 7+++ b/chrome/browser/chrome_browser_main.cc
8 1 file changed, 2 deletions(-) 8@@ -1620,8 +1620,6 @@ int ChromeBrowserMainParts::PreMainMessa
9
10--- chrome/browser/chrome_browser_main.cc.orig
11+++ chrome/browser/chrome_browser_main.cc
12@@ -1492,8 +1492,6 @@ int ChromeBrowserMainParts::PreMainMessa
13 // and preferences have been registered since some of the import code depends 9 // and preferences have been registered since some of the import code depends
14 // on preferences. 10 // on preferences.
15 if (first_run::IsChromeFirstRun()) { 11 if (first_run::IsChromeFirstRun()) {
16- first_run::AutoImport(profile_, master_prefs_->import_bookmarks_path); 12- first_run::AutoImport(profile, master_prefs_->import_bookmarks_path);
17- 13-
18 // Note: This can pop-up the first run consent dialog on Linux & Mac. 14 // Note: This can pop-up the first run consent dialog on Linux & Mac.
19 first_run::DoPostImportTasks(profile_, 15 first_run::DoPostImportTasks(profile,
20 master_prefs_->make_chrome_default_for_user); 16 master_prefs_->make_chrome_default_for_user);
diff --git a/www/chromium-uc/patches/extra/iridium-browser/mime_util-force-text-x-suse-ymp-to-be-downloaded.patch b/www/chromium-uc/patches/extra/iridium-browser/mime_util-force-text-x-suse-ymp-to-be-downloaded.patch
index a6eab74..e66b0d6 100644
--- a/www/chromium-uc/patches/extra/iridium-browser/mime_util-force-text-x-suse-ymp-to-be-downloaded.patch
+++ b/www/chromium-uc/patches/extra/iridium-browser/mime_util-force-text-x-suse-ymp-to-be-downloaded.patch
@@ -9,8 +9,8 @@ very interesting in themselves. Force them to be stored.
9 components/mime_util/mime_util.cc | 1 + 9 components/mime_util/mime_util.cc | 1 +
10 1 file changed, 1 insertion(+) 10 1 file changed, 1 insertion(+)
11 11
12--- third_party/blink/common/mime_util/mime_util.cc.orig 12--- a/third_party/blink/common/mime_util/mime_util.cc
13+++ third_party/blink/common/mime_util/mime_util.cc 13+++ b/third_party/blink/common/mime_util/mime_util.cc
14@@ -83,6 +83,7 @@ static const char* const kUnsupportedTex 14@@ -83,6 +83,7 @@ static const char* const kUnsupportedTex
15 "text/x-csv", 15 "text/x-csv",
16 "text/x-vcf", 16 "text/x-vcf",
diff --git a/www/chromium-uc/patches/extra/iridium-browser/net-cert-increase-default-key-length-for-newly-gener.patch b/www/chromium-uc/patches/extra/iridium-browser/net-cert-increase-default-key-length-for-newly-gener.patch
index 394a6da..fe39bb4 100644
--- a/www/chromium-uc/patches/extra/iridium-browser/net-cert-increase-default-key-length-for-newly-gener.patch
+++ b/www/chromium-uc/patches/extra/iridium-browser/net-cert-increase-default-key-length-for-newly-gener.patch
@@ -10,9 +10,9 @@ it as hidden as it was before?
10 net/cert/x509_util.cc | 2 +- 10 net/cert/x509_util.cc | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-) 11 1 file changed, 1 insertion(+), 1 deletion(-)
12 12
13--- net/cert/x509_util.cc.orig 13--- a/net/cert/x509_util.cc
14+++ net/cert/x509_util.cc 14+++ b/net/cert/x509_util.cc
15@@ -241,7 +241,7 @@ bool GetTLSServerEndPointChannelBinding( 15@@ -243,7 +243,7 @@ bool GetTLSServerEndPointChannelBinding(
16 } 16 }
17 17
18 // RSA keys created by CreateKeyAndSelfSignedCert will be of this length. 18 // RSA keys created by CreateKeyAndSelfSignedCert will be of this length.
diff --git a/www/chromium-uc/patches/extra/iridium-browser/prefs-always-prompt-for-download-directory-by-defaul.patch b/www/chromium-uc/patches/extra/iridium-browser/prefs-always-prompt-for-download-directory-by-defaul.patch
index beb8b0b..204d9c0 100644
--- a/www/chromium-uc/patches/extra/iridium-browser/prefs-always-prompt-for-download-directory-by-defaul.patch
+++ b/www/chromium-uc/patches/extra/iridium-browser/prefs-always-prompt-for-download-directory-by-defaul.patch
@@ -27,9 +27,9 @@ TLDR: Do not let files sneak onto the disk too easily.
27 chrome/browser/download/download_prefs.cc | 2 +- 27 chrome/browser/download/download_prefs.cc | 2 +-
28 1 file changed, 1 insertion(+), 1 deletion(-) 28 1 file changed, 1 insertion(+), 1 deletion(-)
29 29
30--- chrome/browser/download/download_prefs.cc.orig 30--- a/chrome/browser/download/download_prefs.cc
31+++ chrome/browser/download/download_prefs.cc 31+++ b/chrome/browser/download/download_prefs.cc
32@@ -271,7 +271,7 @@ void DownloadPrefs::RegisterProfilePrefs 32@@ -263,7 +263,7 @@ void DownloadPrefs::RegisterProfilePrefs
33 user_prefs::PrefRegistrySyncable* registry) { 33 user_prefs::PrefRegistrySyncable* registry) {
34 registry->RegisterBooleanPref( 34 registry->RegisterBooleanPref(
35 prefs::kPromptForDownload, 35 prefs::kPromptForDownload,
diff --git a/www/chromium-uc/patches/extra/iridium-browser/prefs-only-keep-cookies-until-exit.patch b/www/chromium-uc/patches/extra/iridium-browser/prefs-only-keep-cookies-until-exit.patch
index 01696b7..41e42b8 100644
--- a/www/chromium-uc/patches/extra/iridium-browser/prefs-only-keep-cookies-until-exit.patch
+++ b/www/chromium-uc/patches/extra/iridium-browser/prefs-only-keep-cookies-until-exit.patch
@@ -8,11 +8,11 @@ Out with all those tracking cookies!
8 components/content_settings/core/browser/content_settings_registry.cc | 2 +- 8 components/content_settings/core/browser/content_settings_registry.cc | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-) 9 1 file changed, 1 insertion(+), 1 deletion(-)
10 10
11--- components/content_settings/core/browser/content_settings_registry.cc.orig 11--- a/components/content_settings/core/browser/content_settings_registry.cc
12+++ components/content_settings/core/browser/content_settings_registry.cc 12+++ b/components/content_settings/core/browser/content_settings_registry.cc
13@@ -126,7 +126,7 @@ void ContentSettingsRegistry::Init() { 13@@ -131,7 +131,7 @@ void ContentSettingsRegistry::Init() {
14 // WARNING: The string names of the permissions passed in below are used to 14 // PrefProvider::DiscardOrMigrateObsoletePreferences() and
15 // generate preference names and should never be changed! 15 // DefaultProvider::DiscardOrMigrateObsoletePreferences() accordingly.
16 16
17- Register(ContentSettingsType::COOKIES, "cookies", CONTENT_SETTING_ALLOW, 17- Register(ContentSettingsType::COOKIES, "cookies", CONTENT_SETTING_ALLOW,
18+ Register(ContentSettingsType::COOKIES, "cookies", CONTENT_SETTING_SESSION_ONLY, 18+ Register(ContentSettingsType::COOKIES, "cookies", CONTENT_SETTING_SESSION_ONLY,
diff --git a/www/chromium-uc/patches/extra/iridium-browser/updater-disable-auto-update.patch b/www/chromium-uc/patches/extra/iridium-browser/updater-disable-auto-update.patch
index a6be904..3283795 100644
--- a/www/chromium-uc/patches/extra/iridium-browser/updater-disable-auto-update.patch
+++ b/www/chromium-uc/patches/extra/iridium-browser/updater-disable-auto-update.patch
@@ -14,9 +14,9 @@ the case anyway, since we are based off Chromium, not Chrome.
14 chrome/browser/app_controller_mac.mm | 2 +- 14 chrome/browser/app_controller_mac.mm | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-) 15 1 file changed, 1 insertion(+), 1 deletion(-)
16 16
17--- chrome/browser/app_controller_mac.mm.orig 17--- a/chrome/browser/app_controller_mac.mm
18+++ chrome/browser/app_controller_mac.mm 18+++ b/chrome/browser/app_controller_mac.mm
19@@ -866,7 +866,7 @@ static base::mac::ScopedObjCClassSwizzle 19@@ -867,7 +867,7 @@ static base::mac::ScopedObjCClassSwizzle
20 CFStringRef checkInterval = CFSTR("checkInterval"); 20 CFStringRef checkInterval = CFSTR("checkInterval");
21 CFPropertyListRef plist = CFPreferencesCopyAppValue(checkInterval, app); 21 CFPropertyListRef plist = CFPreferencesCopyAppValue(checkInterval, app);
22 if (!plist) { 22 if (!plist) {
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/add-components-ungoogled.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/add-components-ungoogled.patch
index 167eaec..a2c6fc9 100644
--- a/www/chromium-uc/patches/extra/ungoogled-chromium/add-components-ungoogled.patch
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/add-components-ungoogled.patch
@@ -1,7 +1,7 @@
1# Add ungoogled-chromium-specific code to components/ungoogled/ 1# Add ungoogled-chromium-specific code to components/ungoogled/
2 2
3--- /dev/null 3--- /dev/null
4+++ components/ungoogled/BUILD.gn 4+++ b/components/ungoogled/BUILD.gn
5@@ -0,0 +1,14 @@ 5@@ -0,0 +1,14 @@
6+# Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved. 6+# Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved.
7+# Use of this source code is governed by a BSD-style license that can be 7+# Use of this source code is governed by a BSD-style license that can be
@@ -18,8 +18,8 @@
18+ deps = [ "//base" ] 18+ deps = [ "//base" ]
19+} 19+}
20--- /dev/null 20--- /dev/null
21+++ components/ungoogled/ungoogled_switches.cc 21+++ b/components/ungoogled/ungoogled_switches.cc
22@@ -0,0 +1,21 @@ 22@@ -0,0 +1,18 @@
23+// Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved. 23+// Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved.
24+// Use of this source code is governed by a BSD-style license that can be 24+// Use of this source code is governed by a BSD-style license that can be
25+// found in the LICENSE file. 25+// found in the LICENSE file.
@@ -37,13 +37,10 @@
37+// Enable fingerprinting deception for Canvas image data 37+// Enable fingerprinting deception for Canvas image data
38+const char kFingerprintingCanvasImageDataNoise[] = "fingerprinting-canvas-image-data-noise"; 38+const char kFingerprintingCanvasImageDataNoise[] = "fingerprinting-canvas-image-data-noise";
39+ 39+
40+// Set PDF Plugin name, for websites that analyze JavaScript API navigator.plugins
41+const char kPDFPluginName[] = "pdf-plugin-name";
42+
43+} // namespace switches 40+} // namespace switches
44--- /dev/null 41--- /dev/null
45+++ components/ungoogled/ungoogled_switches.h 42+++ b/components/ungoogled/ungoogled_switches.h
46@@ -0,0 +1,21 @@ 43@@ -0,0 +1,20 @@
47+// Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved. 44+// Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved.
48+// Use of this source code is governed by a BSD-style license that can be 45+// Use of this source code is governed by a BSD-style license that can be
49+// found in the LICENSE file. 46+// found in the LICENSE file.
@@ -60,7 +57,6 @@
60+COMPONENT_EXPORT(UNGOOGLED) extern const char kFingerprintingClientRectsNoise[]; 57+COMPONENT_EXPORT(UNGOOGLED) extern const char kFingerprintingClientRectsNoise[];
61+COMPONENT_EXPORT(UNGOOGLED) extern const char kFingerprintingCanvasMeasureTextNoise[]; 58+COMPONENT_EXPORT(UNGOOGLED) extern const char kFingerprintingCanvasMeasureTextNoise[];
62+COMPONENT_EXPORT(UNGOOGLED) extern const char kFingerprintingCanvasImageDataNoise[]; 59+COMPONENT_EXPORT(UNGOOGLED) extern const char kFingerprintingCanvasImageDataNoise[];
63+COMPONENT_EXPORT(UNGOOGLED) extern const char kPDFPluginName[];
64+ 60+
65+} 61+}
66+ 62+
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/add-extra-channel-info.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/add-extra-channel-info.patch
index 6df493e..0df57e0 100644
--- a/www/chromium-uc/patches/extra/ungoogled-chromium/add-extra-channel-info.patch
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/add-extra-channel-info.patch
@@ -5,8 +5,8 @@ author: Wengling Chen <feiyu2817@gmail.com>
5 components/version_ui_strings.grdp | 4 ++-- 5 components/version_ui_strings.grdp | 4 ++--
6 1 file changed, 2 insertions(+), 2 deletions(-) 6 1 file changed, 2 insertions(+), 2 deletions(-)
7 7
8--- components/version_ui_strings.grdp.orig 8--- a/components/version_ui_strings.grdp
9+++ components/version_ui_strings.grdp 9+++ b/components/version_ui_strings.grdp
10@@ -4,10 +4,10 @@ 10@@ -4,10 +4,10 @@
11 About Version 11 About Version
12 </message> 12 </message>
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-bookmark-bar-ntp.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-bookmark-bar-ntp.patch
index 0d622e8..f7e201c 100644
--- a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-bookmark-bar-ntp.patch
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-bookmark-bar-ntp.patch
@@ -1,5 +1,5 @@
1--- chrome/browser/ui/bookmarks/bookmark_tab_helper.cc.orig 1--- a/chrome/browser/ui/bookmarks/bookmark_tab_helper.cc
2+++ chrome/browser/ui/bookmarks/bookmark_tab_helper.cc 2+++ b/chrome/browser/ui/bookmarks/bookmark_tab_helper.cc
3@@ -4,6 +4,7 @@ 3@@ -4,6 +4,7 @@
4 4
5 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h" 5 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h"
@@ -22,11 +22,11 @@
22 } 22 }
23 23
24 void BookmarkTabHelper::AddObserver(BookmarkTabHelperObserver* observer) { 24 void BookmarkTabHelper::AddObserver(BookmarkTabHelperObserver* observer) {
25--- chrome/browser/ungoogled_flag_choices.h.orig 25--- a/chrome/browser/ungoogled_flag_choices.h
26+++ chrome/browser/ungoogled_flag_choices.h 26+++ b/chrome/browser/ungoogled_flag_choices.h
27@@ -39,4 +39,10 @@ const FeatureEntry::Choice kPDFPluginNam 27@@ -34,4 +34,10 @@ const FeatureEntry::Choice kScrollEventC
28 {"Google Chrome", switches::kPDFPluginName, "chrome"}, 28 "scroll-tabs",
29 {"Microsoft Edge", switches::kPDFPluginName, "edge"}, 29 "never"}
30 }; 30 };
31+const FeatureEntry::Choice kBookmarkBarNewTab[] = { 31+const FeatureEntry::Choice kBookmarkBarNewTab[] = {
32+ {flags_ui::kGenericExperimentChoiceDefault, "", ""}, 32+ {flags_ui::kGenericExperimentChoiceDefault, "", ""},
@@ -35,12 +35,12 @@
35+ "never"}, 35+ "never"},
36+}; 36+};
37 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_CHOICES_H_ 37 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_CHOICES_H_
38--- chrome/browser/ungoogled_flag_entries.h.orig 38--- a/chrome/browser/ungoogled_flag_entries.h
39+++ chrome/browser/ungoogled_flag_entries.h 39+++ b/chrome/browser/ungoogled_flag_entries.h
40@@ -44,4 +44,8 @@ 40@@ -36,4 +36,8 @@
41 "Set internal PDF plugin name", 41 "Scroll switches tab",
42 "Sets the internal PDF viewer plugin name. Useful for sites that probe JS API navigator.plugins. ungoogled-chromium flag.", 42 "Switch to the left/right tab if the wheel-scroll happens over the tabstrip, or the empty space beside the tabstrip. ungoogled-chromium flag.",
43 kOsDesktop, MULTI_VALUE_TYPE(kPDFPluginNameChoices)}, 43 kOsDesktop, MULTI_VALUE_TYPE(kScrollEventChangesTab)},
44+ {"bookmark-bar-ntp", 44+ {"bookmark-bar-ntp",
45+ "Bookmark Bar on New-Tab-Page", 45+ "Bookmark Bar on New-Tab-Page",
46+ "Disable the Bookmark Bar on the New-Tab-Page. ungoogled-chromium flag.", 46+ "Disable the Bookmark Bar on the New-Tab-Page. ungoogled-chromium flag.",
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-close-confirmation.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-close-confirmation.patch
index 56dc7e2..d6aba47 100644
--- a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-close-confirmation.patch
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-close-confirmation.patch
@@ -1,6 +1,6 @@
1--- chrome/browser/ui/browser.cc.orig 1--- a/chrome/browser/ui/browser.cc
2+++ chrome/browser/ui/browser.cc 2+++ b/chrome/browser/ui/browser.cc
3@@ -140,6 +140,8 @@ 3@@ -138,6 +138,8 @@
4 #include "chrome/browser/ui/tabs/tab_strip_model.h" 4 #include "chrome/browser/ui/tabs/tab_strip_model.h"
5 #include "chrome/browser/ui/tabs/tab_utils.h" 5 #include "chrome/browser/ui/tabs/tab_utils.h"
6 #include "chrome/browser/ui/ui_features.h" 6 #include "chrome/browser/ui/ui_features.h"
@@ -9,7 +9,7 @@
9 #include "chrome/browser/ui/web_applications/app_browser_controller.h" 9 #include "chrome/browser/ui/web_applications/app_browser_controller.h"
10 #include "chrome/browser/ui/web_applications/web_app_launch_utils.h" 10 #include "chrome/browser/ui/web_applications/web_app_launch_utils.h"
11 #include "chrome/browser/ui/webui/signin/login_ui_service.h" 11 #include "chrome/browser/ui/webui/signin/login_ui_service.h"
12@@ -467,6 +469,7 @@ Browser::Browser(const CreateParams& par 12@@ -469,6 +471,7 @@ Browser::Browser(const CreateParams& par
13 omit_from_session_restore_(params.omit_from_session_restore), 13 omit_from_session_restore_(params.omit_from_session_restore),
14 should_trigger_session_restore_(params.should_trigger_session_restore), 14 should_trigger_session_restore_(params.should_trigger_session_restore),
15 cancel_download_confirmation_state_(NOT_PROMPTED), 15 cancel_download_confirmation_state_(NOT_PROMPTED),
@@ -17,7 +17,7 @@
17 override_bounds_(params.initial_bounds), 17 override_bounds_(params.initial_bounds),
18 initial_show_state_(params.initial_show_state), 18 initial_show_state_(params.initial_show_state),
19 initial_workspace_(params.initial_workspace), 19 initial_workspace_(params.initial_workspace),
20@@ -830,7 +833,7 @@ Browser::WarnBeforeClosingResult Browser 20@@ -836,7 +839,7 @@ Browser::WarnBeforeClosingResult Browser
21 // If the browser can close right away (there are no pending downloads we need 21 // If the browser can close right away (there are no pending downloads we need
22 // to prompt about) then there's no need to warn. In the future, we might need 22 // to prompt about) then there's no need to warn. In the future, we might need
23 // to check other conditions as well. 23 // to check other conditions as well.
@@ -26,7 +26,7 @@
26 return WarnBeforeClosingResult::kOkToClose; 26 return WarnBeforeClosingResult::kOkToClose;
27 27
28 DCHECK(!warn_before_closing_callback_) 28 DCHECK(!warn_before_closing_callback_)
29@@ -860,6 +863,7 @@ bool Browser::TryToCloseWindow( 29@@ -866,6 +869,7 @@ bool Browser::TryToCloseWindow(
30 30
31 void Browser::ResetTryToCloseWindow() { 31 void Browser::ResetTryToCloseWindow() {
32 cancel_download_confirmation_state_ = NOT_PROMPTED; 32 cancel_download_confirmation_state_ = NOT_PROMPTED;
@@ -34,7 +34,7 @@
34 unload_controller_.ResetTryToCloseWindow(); 34 unload_controller_.ResetTryToCloseWindow();
35 } 35 }
36 36
37@@ -2702,6 +2706,62 @@ bool Browser::CanCloseWithInProgressDown 37@@ -2725,6 +2729,62 @@ bool Browser::CanCloseWithInProgressDown
38 return false; 38 return false;
39 } 39 }
40 40
@@ -97,7 +97,7 @@
97 void Browser::InProgressDownloadResponse(bool cancel_downloads) { 97 void Browser::InProgressDownloadResponse(bool cancel_downloads) {
98 if (cancel_downloads) { 98 if (cancel_downloads) {
99 cancel_download_confirmation_state_ = RESPONSE_RECEIVED; 99 cancel_download_confirmation_state_ = RESPONSE_RECEIVED;
100@@ -2720,6 +2780,22 @@ void Browser::InProgressDownloadResponse 100@@ -2743,6 +2803,22 @@ void Browser::InProgressDownloadResponse
101 101
102 std::move(warn_before_closing_callback_) 102 std::move(warn_before_closing_callback_)
103 .Run(WarnBeforeClosingResult::kDoNotClose); 103 .Run(WarnBeforeClosingResult::kDoNotClose);
@@ -120,8 +120,8 @@
120 } 120 }
121 121
122 void Browser::FinishWarnBeforeClosing(WarnBeforeClosingResult result) { 122 void Browser::FinishWarnBeforeClosing(WarnBeforeClosingResult result) {
123--- chrome/browser/ui/browser.h.orig 123--- a/chrome/browser/ui/browser.h
124+++ chrome/browser/ui/browser.h 124+++ b/chrome/browser/ui/browser.h
125@@ -26,6 +26,7 @@ 125@@ -26,6 +26,7 @@
126 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper_observer.h" 126 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper_observer.h"
127 #include "chrome/browser/ui/browser_navigator_params.h" 127 #include "chrome/browser/ui/browser_navigator_params.h"
@@ -130,7 +130,7 @@
130 #include "chrome/browser/ui/signin_view_controller.h" 130 #include "chrome/browser/ui/signin_view_controller.h"
131 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" 131 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h"
132 #include "chrome/browser/ui/unload_controller.h" 132 #include "chrome/browser/ui/unload_controller.h"
133@@ -1008,12 +1009,17 @@ class Browser : public TabStripModelObse 133@@ -1010,12 +1011,17 @@ class Browser : public TabStripModelObse
134 // Returns true if the window can close, false otherwise. 134 // Returns true if the window can close, false otherwise.
135 bool CanCloseWithInProgressDownloads(); 135 bool CanCloseWithInProgressDownloads();
136 136
@@ -148,7 +148,7 @@
148 // Called when all warnings have completed when attempting to close the 148 // Called when all warnings have completed when attempting to close the
149 // browser directly (e.g. via hotkey, close button, terminate signal, etc.) 149 // browser directly (e.g. via hotkey, close button, terminate signal, etc.)
150 // Used as a WarnBeforeClosingCallback by ShouldCloseWindow(). 150 // Used as a WarnBeforeClosingCallback by ShouldCloseWindow().
151@@ -1176,6 +1182,8 @@ class Browser : public TabStripModelObse 151@@ -1178,6 +1184,8 @@ class Browser : public TabStripModelObse
152 // when the browser is closed with in-progress downloads. 152 // when the browser is closed with in-progress downloads.
153 CancelDownloadConfirmationState cancel_download_confirmation_state_; 153 CancelDownloadConfirmationState cancel_download_confirmation_state_;
154 154
@@ -157,9 +157,9 @@
157 ///////////////////////////////////////////////////////////////////////////// 157 /////////////////////////////////////////////////////////////////////////////
158 158
159 // Override values for the bounds of the window and its maximized or minimized 159 // Override values for the bounds of the window and its maximized or minimized
160--- chrome/browser/ungoogled_flag_choices.h.orig 160--- a/chrome/browser/ungoogled_flag_choices.h
161+++ chrome/browser/ungoogled_flag_choices.h 161+++ b/chrome/browser/ungoogled_flag_choices.h
162@@ -66,4 +66,13 @@ const FeatureEntry::Choice kCloseWindowW 162@@ -61,4 +61,13 @@ const FeatureEntry::Choice kCloseWindowW
163 "close-window-with-last-tab", 163 "close-window-with-last-tab",
164 "never"}, 164 "never"},
165 }; 165 };
@@ -173,9 +173,9 @@
173+ "multiple"}, 173+ "multiple"},
174+}; 174+};
175 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_CHOICES_H_ 175 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_CHOICES_H_
176--- chrome/browser/ungoogled_flag_entries.h.orig 176--- a/chrome/browser/ungoogled_flag_entries.h
177+++ chrome/browser/ungoogled_flag_entries.h 177+++ b/chrome/browser/ungoogled_flag_entries.h
178@@ -80,4 +80,8 @@ 178@@ -72,4 +72,8 @@
179 "Remove Grab Handle", 179 "Remove Grab Handle",
180 "Removes the reserved empty space in the tabstrip for moving the window. ungoogled-chromium flag", 180 "Removes the reserved empty space in the tabstrip for moving the window. ungoogled-chromium flag",
181 kOsDesktop, SINGLE_VALUE_TYPE("remove-grab-handle")}, 181 kOsDesktop, SINGLE_VALUE_TYPE("remove-grab-handle")},
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-custom-ntp.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-custom-ntp.patch
index 6bb52b8..3d97f39 100644
--- a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-custom-ntp.patch
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-custom-ntp.patch
@@ -1,7 +1,7 @@
1--- chrome/browser/chrome_content_browser_client.cc.orig 1--- a/chrome/browser/chrome_content_browser_client.cc
2+++ chrome/browser/chrome_content_browser_client.cc 2+++ b/chrome/browser/chrome_content_browser_client.cc
3@@ -743,6 +743,9 @@ bool HandleNewTabPageLocationOverride( 3@@ -780,6 +780,9 @@ bool HandleNewTabPageLocationOverride(
4 Profile* profile = Profile::FromBrowserContext(browser_context); 4
5 std::string ntp_location = 5 std::string ntp_location =
6 profile->GetPrefs()->GetString(prefs::kNewTabPageLocationOverride); 6 profile->GetPrefs()->GetString(prefs::kNewTabPageLocationOverride);
7+ if (base::CommandLine::ForCurrentProcess()->HasSwitch("custom-ntp")) 7+ if (base::CommandLine::ForCurrentProcess()->HasSwitch("custom-ntp"))
@@ -10,9 +10,9 @@
10 if (ntp_location.empty()) 10 if (ntp_location.empty())
11 return false; 11 return false;
12 url::Component scheme; 12 url::Component scheme;
13--- chrome/browser/ungoogled_flag_entries.h.orig 13--- a/chrome/browser/ungoogled_flag_entries.h
14+++ chrome/browser/ungoogled_flag_entries.h 14+++ b/chrome/browser/ungoogled_flag_entries.h
15@@ -84,4 +84,8 @@ 15@@ -76,4 +76,8 @@
16 "Close Confirmation", 16 "Close Confirmation",
17 "Show a warning prompt when closing the browser window. ungoogled-chromium flag", 17 "Show a warning prompt when closing the browser window. ungoogled-chromium flag",
18 kOsDesktop, MULTI_VALUE_TYPE(kCloseConfirmation)}, 18 kOsDesktop, MULTI_VALUE_TYPE(kCloseConfirmation)},
@@ -21,17 +21,17 @@
21+ "Allows setting a custom URL for the new tab page. Value can be internal (e.g. `about:blank`), external (e.g. `example.com`), or local (e.g. `file:///tmp/startpage.html`). This applies for incognito windows as well when not set to a `chrome://` internal page. ungoogled-chromium flag", 21+ "Allows setting a custom URL for the new tab page. Value can be internal (e.g. `about:blank`), external (e.g. `example.com`), or local (e.g. `file:///tmp/startpage.html`). This applies for incognito windows as well when not set to a `chrome://` internal page. ungoogled-chromium flag",
22+ kOsDesktop, ORIGIN_LIST_VALUE_TYPE("custom-ntp", "")}, 22+ kOsDesktop, ORIGIN_LIST_VALUE_TYPE("custom-ntp", "")},
23 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_ 23 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
24--- components/flags_ui/flags_state.cc.orig 24--- a/components/flags_ui/flags_state.cc
25+++ components/flags_ui/flags_state.cc 25+++ b/components/flags_ui/flags_state.cc
26@@ -231,6 +231,7 @@ std::string GetCombinedOriginListValue(c 26@@ -208,6 +208,7 @@ std::string GetCombinedOriginListValue(c
27 command_line_switch); 27 command_line.GetSwitchValueASCII(command_line_switch);
28 const std::string new_value = 28 const std::string new_value =
29 flags_storage.GetOriginListFlag(internal_entry_name); 29 flags_storage.GetOriginListFlag(internal_entry_name);
30+ if (command_line_switch == "custom-ntp") return existing_value.empty() ? new_value : existing_value; 30+ if (command_line_switch == "custom-ntp") return existing_value.empty() ? new_value : existing_value;
31 return CombineAndSanitizeOriginLists(existing_value, new_value); 31 return CombineAndSanitizeOriginLists(existing_value, new_value);
32 } 32 }
33 33
34@@ -417,6 +418,7 @@ void FlagsState::SetOriginListFlag(const 34@@ -396,6 +397,7 @@ void FlagsState::SetOriginListFlag(const
35 const std::string& value, 35 const std::string& value,
36 FlagsStorage* flags_storage) { 36 FlagsStorage* flags_storage) {
37 const std::string new_value = 37 const std::string new_value =
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-grab-handle.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-grab-handle.patch
index 8fc406a..5a27985 100644
--- a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-grab-handle.patch
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-grab-handle.patch
@@ -1,6 +1,6 @@
1--- chrome/browser/ui/views/frame/tab_strip_region_view.cc.orig 1--- a/chrome/browser/ui/views/frame/tab_strip_region_view.cc
2+++ chrome/browser/ui/views/frame/tab_strip_region_view.cc 2+++ b/chrome/browser/ui/views/frame/tab_strip_region_view.cc
3@@ -42,6 +42,7 @@ class FrameGrabHandle : public views::Vi 3@@ -46,6 +46,7 @@ class FrameGrabHandle : public views::Vi
4 // Reserve some space for the frame to be grabbed by, even if the tabstrip 4 // Reserve some space for the frame to be grabbed by, even if the tabstrip
5 // is full. 5 // is full.
6 // TODO(tbergquist): Define this relative to the NTB insets again. 6 // TODO(tbergquist): Define this relative to the NTB insets again.
@@ -8,9 +8,9 @@
8 return gfx::Size(42, 0); 8 return gfx::Size(42, 0);
9 } 9 }
10 }; 10 };
11--- chrome/browser/ungoogled_flag_entries.h.orig 11--- a/chrome/browser/ungoogled_flag_entries.h
12+++ chrome/browser/ungoogled_flag_entries.h 12+++ b/chrome/browser/ungoogled_flag_entries.h
13@@ -76,4 +76,8 @@ 13@@ -68,4 +68,8 @@
14 "Disable QR Generator", 14 "Disable QR Generator",
15 "Disables the QR generator for sharing page links. ungoogled-chromium flag", 15 "Disables the QR generator for sharing page links. ungoogled-chromium flag",
16 kOsDesktop, FEATURE_VALUE_TYPE(kDisableQRGenerator)}, 16 kOsDesktop, FEATURE_VALUE_TYPE(kDisableQRGenerator)},
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-omnibox-autocomplete-filtering.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-omnibox-autocomplete-filtering.patch
index 0e695ce..d5be61e 100644
--- a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-omnibox-autocomplete-filtering.patch
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-omnibox-autocomplete-filtering.patch
@@ -1,6 +1,6 @@
1--- chrome/browser/ungoogled_flag_choices.h.orig 1--- a/chrome/browser/ungoogled_flag_choices.h
2+++ chrome/browser/ungoogled_flag_choices.h 2+++ b/chrome/browser/ungoogled_flag_choices.h
3@@ -45,4 +45,19 @@ const FeatureEntry::Choice kBookmarkBarN 3@@ -40,4 +40,19 @@ const FeatureEntry::Choice kBookmarkBarN
4 "bookmark-bar-ntp", 4 "bookmark-bar-ntp",
5 "never"}, 5 "never"},
6 }; 6 };
@@ -20,9 +20,9 @@
20+ "search-bookmarks-chrome"}, 20+ "search-bookmarks-chrome"},
21+}; 21+};
22 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_CHOICES_H_ 22 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_CHOICES_H_
23--- chrome/browser/ungoogled_flag_entries.h.orig 23--- a/chrome/browser/ungoogled_flag_entries.h
24+++ chrome/browser/ungoogled_flag_entries.h 24+++ b/chrome/browser/ungoogled_flag_entries.h
25@@ -48,4 +48,8 @@ 25@@ -40,4 +40,8 @@
26 "Bookmark Bar on New-Tab-Page", 26 "Bookmark Bar on New-Tab-Page",
27 "Disable the Bookmark Bar on the New-Tab-Page. ungoogled-chromium flag.", 27 "Disable the Bookmark Bar on the New-Tab-Page. ungoogled-chromium flag.",
28 kOsDesktop, MULTI_VALUE_TYPE(kBookmarkBarNewTab)}, 28 kOsDesktop, MULTI_VALUE_TYPE(kBookmarkBarNewTab)},
@@ -31,8 +31,8 @@
31+ "Restrict omnibox autocomplete results to a combination of search suggestions (if enabled), bookmarks, and internal chrome pages. ungoogled-chromium flag.", 31+ "Restrict omnibox autocomplete results to a combination of search suggestions (if enabled), bookmarks, and internal chrome pages. ungoogled-chromium flag.",
32+ kOsAll, MULTI_VALUE_TYPE(kOmniboxAutocompleteFiltering)}, 32+ kOsAll, MULTI_VALUE_TYPE(kOmniboxAutocompleteFiltering)},
33 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_ 33 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
34--- components/omnibox/browser/autocomplete_controller.cc.orig 34--- a/components/omnibox/browser/autocomplete_controller.cc
35+++ components/omnibox/browser/autocomplete_controller.cc 35+++ b/components/omnibox/browser/autocomplete_controller.cc
36@@ -15,6 +15,8 @@ 36@@ -15,6 +15,8 @@
37 37
38 #include "base/bind.h" 38 #include "base/bind.h"
@@ -42,7 +42,7 @@
42 #include "base/feature_list.h" 42 #include "base/feature_list.h"
43 #include "base/format_macros.h" 43 #include "base/format_macros.h"
44 #include "base/metrics/histogram.h" 44 #include "base/metrics/histogram.h"
45@@ -276,6 +278,15 @@ AutocompleteController::AutocompleteCont 45@@ -292,6 +294,15 @@ AutocompleteController::AutocompleteCont
46 search_service_worker_signal_sent_(false), 46 search_service_worker_signal_sent_(false),
47 template_url_service_(provider_client_->GetTemplateURLService()) { 47 template_url_service_(provider_client_->GetTemplateURLService()) {
48 provider_types &= ~OmniboxFieldTrial::GetDisabledProviderTypes(); 48 provider_types &= ~OmniboxFieldTrial::GetDisabledProviderTypes();
@@ -58,9 +58,9 @@
58 if (provider_types & AutocompleteProvider::TYPE_BOOKMARK) 58 if (provider_types & AutocompleteProvider::TYPE_BOOKMARK)
59 providers_.push_back(new BookmarkProvider(provider_client_.get())); 59 providers_.push_back(new BookmarkProvider(provider_client_.get()));
60 if (provider_types & AutocompleteProvider::TYPE_BUILTIN) 60 if (provider_types & AutocompleteProvider::TYPE_BUILTIN)
61--- components/omnibox/browser/history_url_provider.cc.orig 61--- a/components/omnibox/browser/history_url_provider.cc
62+++ components/omnibox/browser/history_url_provider.cc 62+++ b/components/omnibox/browser/history_url_provider.cc
63@@ -551,6 +551,9 @@ void HistoryURLProvider::Start(const Aut 63@@ -472,6 +472,9 @@ void HistoryURLProvider::Start(const Aut
64 if (fixed_up_input.type() != metrics::OmniboxInputType::QUERY) 64 if (fixed_up_input.type() != metrics::OmniboxInputType::QUERY)
65 matches_.push_back(what_you_typed_match); 65 matches_.push_back(what_you_typed_match);
66 66
@@ -70,8 +70,8 @@
70 // We'll need the history service to run both passes, so try to obtain it. 70 // We'll need the history service to run both passes, so try to obtain it.
71 history::HistoryService* const history_service = 71 history::HistoryService* const history_service =
72 client()->GetHistoryService(); 72 client()->GetHistoryService();
73--- components/omnibox/browser/search_provider.cc.orig 73--- a/components/omnibox/browser/search_provider.cc
74+++ components/omnibox/browser/search_provider.cc 74+++ b/components/omnibox/browser/search_provider.cc
75@@ -12,6 +12,7 @@ 75@@ -12,6 +12,7 @@
76 #include "base/base64.h" 76 #include "base/base64.h"
77 #include "base/bind.h" 77 #include "base/bind.h"
@@ -90,8 +90,8 @@
90 // The history query results are synchronous, so if minimal_changes is true, 90 // The history query results are synchronous, so if minimal_changes is true,
91 // we still have the last results and don't need to do anything. 91 // we still have the last results and don't need to do anything.
92 if (minimal_changes) 92 if (minimal_changes)
93--- components/url_formatter/url_fixer.cc.orig 93--- a/components/url_formatter/url_fixer.cc
94+++ components/url_formatter/url_fixer.cc 94+++ b/components/url_formatter/url_fixer.cc
95@@ -9,6 +9,8 @@ 95@@ -9,6 +9,8 @@
96 #include <algorithm> 96 #include <algorithm>
97 97
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-pdf-plugin-name.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-pdf-plugin-name.patch
deleted file mode 100644
index 5b52596..0000000
--- a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-pdf-plugin-name.patch
+++ /dev/null
@@ -1,389 +0,0 @@
1--- chrome/browser/chrome_content_browser_client.cc.orig
2+++ chrome/browser/chrome_content_browser_client.cc
3@@ -6001,7 +6001,7 @@ bool ChromeContentBrowserClient::ShouldA
4 const url::Origin& embedder_origin,
5 const content::PepperPluginInfo& plugin_info) {
6 #if BUILDFLAG(ENABLE_PDF)
7- if (plugin_info.name == ChromeContentClient::kPDFInternalPluginName) {
8+ if (plugin_info.name == ChromeContentClient::GetPDFInternalPluginName()) {
9 return IsPdfInternalPluginAllowedOrigin(embedder_origin);
10 }
11 #endif // BUILDFLAG(ENABLE_PDF)
12--- chrome/browser/pdf/pdf_extension_util.cc.orig
13+++ chrome/browser/pdf/pdf_extension_util.cc
14@@ -170,7 +170,7 @@ std::string GetManifest() {
15 DCHECK(manifest_contents.find(kNameTag) != std::string::npos);
16 base::ReplaceFirstSubstringAfterOffset(
17 &manifest_contents, 0, kNameTag,
18- ChromeContentClient::kPDFExtensionPluginName);
19+ ChromeContentClient::GetPDFExtensionPluginName());
20
21 return manifest_contents;
22 }
23--- chrome/browser/plugins/pdf_iframe_navigation_throttle_unittest.cc.orig
24+++ chrome/browser/plugins/pdf_iframe_navigation_throttle_unittest.cc
25@@ -65,7 +65,7 @@ class PDFIFrameNavigationThrottleTest :
26 // Register a fake PDF Viewer plugin into our plugin service.
27 content::WebPluginInfo info;
28 info.name =
29- base::ASCIIToUTF16(ChromeContentClient::kPDFExtensionPluginName);
30+ base::ASCIIToUTF16(ChromeContentClient::GetPDFExtensionPluginName());
31 info.mime_types.push_back(content::WebPluginMimeType(
32 kPDFMimeType, "pdf", "Fake PDF description"));
33 plugin_service->RegisterInternalPlugin(info, true);
34--- chrome/browser/plugins/plugin_prefs.cc.orig
35+++ chrome/browser/plugins/plugin_prefs.cc
36@@ -40,7 +40,7 @@ bool IsPDFViewerPlugin(const std::u16str
37 // plugin, which is also used for Print Preview. Note that only the PDF viewer
38 // and Print Preview can create the internal PDF plugin in the first place.
39 return plugin_name ==
40- base::ASCIIToUTF16(ChromeContentClient::kPDFExtensionPluginName);
41+ base::ASCIIToUTF16(ChromeContentClient::GetPDFExtensionPluginName());
42 }
43
44 } // namespace
45--- chrome/browser/plugins/plugin_prefs_unittest.cc.orig
46+++ chrome/browser/plugins/plugin_prefs_unittest.cc
47@@ -24,11 +24,11 @@ class PluginPrefsTest : public ::testing
48 TEST_F(PluginPrefsTest, AlwaysOpenPdfExternally) {
49 EXPECT_EQ(PluginPrefs::NO_POLICY,
50 plugin_prefs_->PolicyStatusForPlugin(base::ASCIIToUTF16(
51- ChromeContentClient::kPDFExtensionPluginName)));
52+ ChromeContentClient::GetPDFExtensionPluginName())));
53
54 SetAlwaysOpenPdfExternally(true);
55
56 EXPECT_EQ(PluginPrefs::POLICY_DISABLED,
57 plugin_prefs_->PolicyStatusForPlugin(base::ASCIIToUTF16(
58- ChromeContentClient::kPDFExtensionPluginName)));
59+ ChromeContentClient::GetPDFExtensionPluginName())));
60 }
61--- chrome/browser/resources/plugin_metadata/plugins_chromeos.json.orig
62+++ chrome/browser/resources/plugin_metadata/plugins_chromeos.json
63@@ -44,6 +44,19 @@
64 "name": "Chrome PDF Viewer",
65 "group_name_matcher": "*Chrome PDF Viewer*"
66 },
67+ "microsoft-edge-pdf": {
68+ "mime_types": [
69+ ],
70+ "versions": [
71+ {
72+ "version": "0",
73+ "status": "fully_trusted",
74+ "comment": "Microsoft Edge PDF has no version information."
75+ }
76+ ],
77+ "name": "Microsoft Edge PDF Viewer",
78+ "group_name_matcher": "*Microsoft Edge PDF Viewer*"
79+ },
80 "chromium-pdf": {
81 "mime_types": [
82 ],
83@@ -70,6 +83,19 @@
84 "name": "Chrome PDF Plugin",
85 "group_name_matcher": "*Chrome PDF Plugin*"
86 },
87+ "microsoft-edge-pdf-plugin": {
88+ "mime_types": [
89+ ],
90+ "versions": [
91+ {
92+ "version": "0",
93+ "status": "fully_trusted",
94+ "comment": "Microsoft Edge PDF Plugin has no version information."
95+ }
96+ ],
97+ "name": "Microsoft Edge PDF Plugin",
98+ "group_name_matcher": "*Microsoft Edge PDF Plugin*"
99+ },
100 "chromium-pdf-plugin": {
101 "mime_types": [
102 ],
103--- chrome/browser/resources/plugin_metadata/plugins_linux.json.orig
104+++ chrome/browser/resources/plugin_metadata/plugins_linux.json
105@@ -36,6 +36,19 @@
106 "name": "Chrome PDF Viewer",
107 "group_name_matcher": "*Chrome PDF Viewer*"
108 },
109+ "microsoft-edge-pdf": {
110+ "mime_types": [
111+ ],
112+ "versions": [
113+ {
114+ "version": "0",
115+ "status": "fully_trusted",
116+ "comment": "Microsoft Edge PDF has no version information."
117+ }
118+ ],
119+ "name": "Microsoft Edge PDF Viewer",
120+ "group_name_matcher": "*Microsoft Edge PDF Viewer*"
121+ },
122 "chromium-pdf": {
123 "mime_types": [
124 ],
125@@ -62,6 +75,19 @@
126 "name": "Chrome PDF Plugin",
127 "group_name_matcher": "*Chrome PDF Plugin*"
128 },
129+ "microsoft-edge-pdf-plugin": {
130+ "mime_types": [
131+ ],
132+ "versions": [
133+ {
134+ "version": "0",
135+ "status": "fully_trusted",
136+ "comment": "Google Chrome PDF Plugin has no version information."
137+ }
138+ ],
139+ "name": "Microsoft Edge PDF Plugin",
140+ "group_name_matcher": "*Microsoft Edge PDF Plugin*"
141+ },
142 "chromium-pdf-plugin": {
143 "mime_types": [
144 ],
145--- chrome/browser/resources/plugin_metadata/plugins_mac.json.orig
146+++ chrome/browser/resources/plugin_metadata/plugins_mac.json
147@@ -33,6 +33,19 @@
148 "name": "Chrome PDF Viewer",
149 "group_name_matcher": "*Chrome PDF Viewer*"
150 },
151+ "microsoft-edge-pdf": {
152+ "mime_types": [
153+ ],
154+ "versions": [
155+ {
156+ "version": "0",
157+ "status": "fully_trusted",
158+ "comment": "Microsoft Edge PDF Viewer has no version information."
159+ }
160+ ],
161+ "name": "Microsoft Edge PDF Viewer",
162+ "group_name_matcher": "*Microsoft Edge PDF Viewer*"
163+ },
164 "chromium-pdf": {
165 "mime_types": [
166 ],
167@@ -59,6 +72,19 @@
168 "name": "Chrome PDF Plugin",
169 "group_name_matcher": "*Chrome PDF Plugin*"
170 },
171+ "microsoft-edge-pdf-plugin": {
172+ "mime_types": [
173+ ],
174+ "versions": [
175+ {
176+ "version": "0",
177+ "status": "fully_trusted",
178+ "comment": "Microsoft Edge PDF Plugin has no version information."
179+ }
180+ ],
181+ "name": "Microsoft Edge PDF Plugin",
182+ "group_name_matcher": "*Microsoft Edge PDF Plugin*"
183+ },
184 "chromium-pdf-plugin": {
185 "mime_types": [
186 ],
187--- chrome/browser/resources/plugin_metadata/plugins_win.json.orig
188+++ chrome/browser/resources/plugin_metadata/plugins_win.json
189@@ -33,6 +33,19 @@
190 "name": "Chrome PDF Viewer",
191 "group_name_matcher": "*Chrome PDF Viewer*"
192 },
193+ "microsoft-edge-pdf": {
194+ "mime_types": [
195+ ],
196+ "versions": [
197+ {
198+ "version": "0",
199+ "status": "fully_trusted",
200+ "comment": "Microsoft Edge PDF Viewer has no version information."
201+ }
202+ ],
203+ "name": "Microsoft Edge PDF Viewer",
204+ "group_name_matcher": "*Microsoft Edge PDF Viewer*"
205+ },
206 "chromium-pdf": {
207 "mime_types": [
208 ],
209@@ -59,6 +72,19 @@
210 "name": "Chrome PDF Plugin",
211 "group_name_matcher": "*Chrome PDF Plugin*"
212 },
213+ "microsoft-edge-pdf-plugin": {
214+ "mime_types": [
215+ ],
216+ "versions": [
217+ {
218+ "version": "0",
219+ "status": "fully_trusted",
220+ "comment": "Microsoft Edge PDF Plugin has no version information."
221+ }
222+ ],
223+ "name": "Microsoft Edge PDF Plugin",
224+ "group_name_matcher": "*Microsoft Edge PDF Plugin*"
225+ },
226 "chromium-pdf-plugin": {
227 "mime_types": [
228 ],
229--- chrome/browser/ungoogled_flag_choices.h.orig
230+++ chrome/browser/ungoogled_flag_choices.h
231@@ -34,4 +34,9 @@ const FeatureEntry::Choice kScrollEventC
232 "scroll-tabs",
233 "never"}
234 };
235+const FeatureEntry::Choice kPDFPluginNameChoices[] = {
236+ {"Chromium", "", ""},
237+ {"Google Chrome", switches::kPDFPluginName, "chrome"},
238+ {"Microsoft Edge", switches::kPDFPluginName, "edge"},
239+};
240 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_CHOICES_H_
241--- chrome/browser/ungoogled_flag_entries.h.orig
242+++ chrome/browser/ungoogled_flag_entries.h
243@@ -40,4 +40,8 @@
244 "Scroll switches tab",
245 "Switch to the left/right tab if the wheel-scroll happens over the tabstrip, or the empty space beside the tabstrip. ungoogled-chromium flag.",
246 kOsDesktop, MULTI_VALUE_TYPE(kScrollEventChangesTab)},
247+ {"pdf-plugin-name",
248+ "Set internal PDF plugin name",
249+ "Sets the internal PDF viewer plugin name. Useful for sites that probe JS API navigator.plugins. ungoogled-chromium flag.",
250+ kOsDesktop, MULTI_VALUE_TYPE(kPDFPluginNameChoices)},
251 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
252--- chrome/common/BUILD.gn.orig
253+++ chrome/common/BUILD.gn
254@@ -249,6 +249,7 @@ static_library("common") {
255 "//components/no_state_prefetch/common",
256 "//components/no_state_prefetch/common:mojo_bindings",
257 "//components/page_load_metrics/common:common",
258+ "//components/ungoogled:ungoogled_switches",
259 ]
260
261 if (enable_pdf) {
262--- chrome/common/chrome_content_client.cc.orig
263+++ chrome/common/chrome_content_client.cc
264@@ -122,7 +122,7 @@ void ComputeBuiltInPlugins(std::vector<c
265 content::PepperPluginInfo pdf_info;
266 pdf_info.is_internal = true;
267 pdf_info.is_out_of_process = true;
268- pdf_info.name = ChromeContentClient::kPDFInternalPluginName;
269+ pdf_info.name = ChromeContentClient::GetPDFInternalPluginName();
270 pdf_info.description = kPDFPluginDescription;
271 pdf_info.path = base::FilePath(ChromeContentClient::kPDFPluginPath);
272 content::WebPluginMimeType pdf_mime_type(
273--- chrome/common/chrome_content_client.h.orig
274+++ chrome/common/chrome_content_client.h
275@@ -42,8 +42,8 @@ class ChromeContentClient : public conte
276 static const base::FilePath::CharType kNaClPluginFileName[];
277 #endif
278
279- static const char kPDFExtensionPluginName[];
280- static const char kPDFInternalPluginName[];
281+ static const char *GetPDFExtensionPluginName();
282+ static const char *GetPDFInternalPluginName();
283 static const base::FilePath::CharType kPDFPluginPath[];
284
285 ChromeContentClient();
286--- chrome/common/chrome_content_client_constants.cc.orig
287+++ chrome/common/chrome_content_client_constants.cc
288@@ -2,8 +2,12 @@
289 // Use of this source code is governed by a BSD-style license that can be
290 // found in the LICENSE file.
291
292+#include <string>
293+
294+#include "base/command_line.h"
295 #include "build/branding_buildflags.h"
296 #include "chrome/common/chrome_content_client.h"
297+#include "components/ungoogled/ungoogled_switches.h"
298
299 #if BUILDFLAG(GOOGLE_CHROME_BRANDING)
300 const base::FilePath::CharType ChromeContentClient::kNotPresent[] =
301@@ -15,15 +19,52 @@ const base::FilePath::CharType ChromeCon
302 FILE_PATH_LITERAL("internal-nacl-plugin");
303 #endif
304
305-#if BUILDFLAG(GOOGLE_CHROME_BRANDING)
306-const char ChromeContentClient::kPDFExtensionPluginName[] = "Chrome PDF Viewer";
307-const char ChromeContentClient::kPDFInternalPluginName[] = "Chrome PDF Plugin";
308-#else
309-const char ChromeContentClient::kPDFExtensionPluginName[] =
310+namespace {
311+
312+const char kChromePDFExtensionPluginName[] =
313+ "Chrome PDF Viewer";
314+const char kChromePDFInternalPluginName[] =
315+ "Chrome PDF Plugin";
316+const char kEdgePDFExtensionPluginName[] =
317+ "Microsoft Edge PDF Viewer";
318+const char kEdgePDFInternalPluginName[] =
319+ "Microsoft Edge PDF Plugin";
320+const char kChromiumPDFExtensionPluginName[] =
321 "Chromium PDF Viewer";
322-const char ChromeContentClient::kPDFInternalPluginName[] =
323+const char kChromiumPDFInternalPluginName[] =
324 "Chromium PDF Plugin";
325-#endif
326+
327+} // namespace
328+
329+// static
330+const char *ChromeContentClient::GetPDFExtensionPluginName() {
331+ const base::CommandLine& command_line =
332+ *base::CommandLine::ForCurrentProcess();
333+ if (command_line.HasSwitch(switches::kPDFPluginName)) {
334+ std::string switch_value = command_line.GetSwitchValueASCII(switches::kPDFPluginName);
335+ if (switch_value == "edge") {
336+ return kEdgePDFExtensionPluginName;
337+ } else if (switch_value == "chrome") {
338+ return kChromePDFExtensionPluginName;
339+ }
340+ }
341+ return kChromiumPDFExtensionPluginName;
342+}
343+
344+// static
345+const char *ChromeContentClient::GetPDFInternalPluginName() {
346+ const base::CommandLine& command_line =
347+ *base::CommandLine::ForCurrentProcess();
348+ if (command_line.HasSwitch(switches::kPDFPluginName)) {
349+ std::string switch_value = command_line.GetSwitchValueASCII(switches::kPDFPluginName);
350+ if (switch_value == "edge") {
351+ return kEdgePDFInternalPluginName;
352+ } else if (switch_value == "chrome") {
353+ return kChromePDFInternalPluginName;
354+ }
355+ }
356+ return kChromiumPDFInternalPluginName;
357+}
358
359 const base::FilePath::CharType ChromeContentClient::kPDFPluginPath[] =
360 FILE_PATH_LITERAL("internal-pdf-viewer");
361--- chrome/renderer/chrome_content_renderer_client.cc.orig
362+++ chrome/renderer/chrome_content_renderer_client.cc
363@@ -1047,7 +1047,7 @@ WebPlugin* ChromeContentRendererClient::
364 }
365 }
366 } else if (info.name ==
367- ASCIIToUTF16(ChromeContentClient::kPDFExtensionPluginName)) {
368+ ASCIIToUTF16(ChromeContentClient::GetPDFExtensionPluginName())) {
369 // Report PDF load metrics. Since the PDF plugin is comprised of an
370 // extension that loads a second plugin, avoid double counting by
371 // ignoring the creation of the second plugin.
372@@ -1079,7 +1079,7 @@ WebPlugin* ChromeContentRendererClient::
373
374 #if BUILDFLAG(ENABLE_PDF)
375 if (info.name ==
376- ASCIIToUTF16(ChromeContentClient::kPDFInternalPluginName)) {
377+ ASCIIToUTF16(ChromeContentClient::GetPDFInternalPluginName())) {
378 return pdf::CreateInternalPlugin(
379 info, std::move(params), render_frame,
380 std::make_unique<ChromePdfInternalPluginDelegate>());
381@@ -1092,7 +1092,7 @@ WebPlugin* ChromeContentRendererClient::
382 PluginUMAReporter::GetInstance()->ReportPluginDisabled(orig_mime_type,
383 url);
384 if (info.name ==
385- ASCIIToUTF16(ChromeContentClient::kPDFExtensionPluginName)) {
386+ ASCIIToUTF16(ChromeContentClient::GetPDFExtensionPluginName())) {
387 ReportPDFLoadStatus(
388 PDFLoadStatus::kShowedDisabledPluginPlaceholderForEmbeddedPdf);
389
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-qr-generator.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-qr-generator.patch
index 5b97e10..58b3a9d 100644
--- a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-qr-generator.patch
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-qr-generator.patch
@@ -1,21 +1,21 @@
1--- chrome/browser/sharing/features.cc.orig 1--- a/chrome/browser/sharing/features.cc
2+++ chrome/browser/sharing/features.cc 2+++ b/chrome/browser/sharing/features.cc
3@@ -32,3 +32,5 @@ const base::Feature kSharingPreferVapid 3@@ -26,3 +26,5 @@ const base::Feature kSharingSendViaSync{
4 base::FEATURE_DISABLED_BY_DEFAULT 4
5 #endif // defined(OS_ANDROID) 5 const base::Feature kSharingPreferVapid {
6 }; 6 "SharingPreferVapid", base::FEATURE_DISABLED_BY_DEFAULT};
7+ 7+
8+const base::Feature kDisableQRGenerator{"DisableQRGenerator", base::FEATURE_DISABLED_BY_DEFAULT}; 8+const base::Feature kDisableQRGenerator{"DisableQRGenerator", base::FEATURE_DISABLED_BY_DEFAULT};
9--- chrome/browser/sharing/features.h.orig 9--- a/chrome/browser/sharing/features.h
10+++ chrome/browser/sharing/features.h 10+++ b/chrome/browser/sharing/features.h
11@@ -34,4 +34,5 @@ extern const base::Feature kSharingSendV 11@@ -34,4 +34,5 @@ extern const base::Feature kSharingSendV
12 // Feature flag for prefer sending sharing message using VAPID. 12 // Feature flag for prefer sending sharing message using VAPID.
13 extern const base::Feature kSharingPreferVapid; 13 extern const base::Feature kSharingPreferVapid;
14 14
15+extern const base::Feature kDisableQRGenerator; 15+extern const base::Feature kDisableQRGenerator;
16 #endif // CHROME_BROWSER_SHARING_FEATURES_H_ 16 #endif // CHROME_BROWSER_SHARING_FEATURES_H_
17--- chrome/browser/ui/qrcode_generator/qrcode_generator_bubble_controller.cc.orig 17--- a/chrome/browser/ui/qrcode_generator/qrcode_generator_bubble_controller.cc
18+++ chrome/browser/ui/qrcode_generator/qrcode_generator_bubble_controller.cc 18+++ b/chrome/browser/ui/qrcode_generator/qrcode_generator_bubble_controller.cc
19@@ -23,7 +23,7 @@ QRCodeGeneratorBubbleController::~QRCode 19@@ -23,7 +23,7 @@ QRCodeGeneratorBubbleController::~QRCode
20 20
21 // static 21 // static
@@ -25,10 +25,10 @@
25 return false; 25 return false;
26 26
27 return true; 27 return true;
28--- chrome/browser/ui/views/location_bar/location_bar_view.cc.orig 28--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
29+++ chrome/browser/ui/views/location_bar/location_bar_view.cc 29+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
30@@ -297,7 +297,8 @@ void LocationBarView::Init() { 30@@ -311,7 +311,8 @@ void LocationBarView::Init() {
31 // the left most icon. 31 #endif // BUILDFLAG(ENABLE_SIDE_SEARCH)
32 params.types_enabled.push_back(PageActionIconType::kSendTabToSelf); 32 params.types_enabled.push_back(PageActionIconType::kSendTabToSelf);
33 params.types_enabled.push_back(PageActionIconType::kClickToCall); 33 params.types_enabled.push_back(PageActionIconType::kClickToCall);
34- params.types_enabled.push_back(PageActionIconType::kQRCodeGenerator); 34- params.types_enabled.push_back(PageActionIconType::kQRCodeGenerator);
@@ -37,9 +37,9 @@
37 if (base::FeatureList::IsEnabled(kSharedClipboardUI)) 37 if (base::FeatureList::IsEnabled(kSharedClipboardUI))
38 params.types_enabled.push_back(PageActionIconType::kSharedClipboard); 38 params.types_enabled.push_back(PageActionIconType::kSharedClipboard);
39 if (base::FeatureList::IsEnabled(kWebOTPCrossDevice)) 39 if (base::FeatureList::IsEnabled(kWebOTPCrossDevice))
40--- chrome/browser/ungoogled_flag_entries.h.orig 40--- a/chrome/browser/ungoogled_flag_entries.h
41+++ chrome/browser/ungoogled_flag_entries.h 41+++ b/chrome/browser/ungoogled_flag_entries.h
42@@ -72,4 +72,8 @@ 42@@ -64,4 +64,8 @@
43 "Remove Tabsearch Button", 43 "Remove Tabsearch Button",
44 "Removes the tabsearch button from the tabstrip. ungoogled-chromium flag", 44 "Removes the tabsearch button from the tabstrip. ungoogled-chromium flag",
45 kOsDesktop, SINGLE_VALUE_TYPE("remove-tabsearch-button")}, 45 kOsDesktop, SINGLE_VALUE_TYPE("remove-tabsearch-button")},
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-referrer-header.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-referrer-header.patch
new file mode 100644
index 0000000..7a07530
--- /dev/null
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-referrer-header.patch
@@ -0,0 +1,66 @@
1--- a/chrome/browser/ungoogled_flag_choices.h
2+++ b/chrome/browser/ungoogled_flag_choices.h
3@@ -79,4 +79,16 @@ const FeatureEntry::Choice kTabHoverCard
4 "tab-hover-cards",
5 "tooltip"},
6 };
7+const FeatureEntry::Choice kReferrerDirective[] = {
8+ {flags_ui::kGenericExperimentChoiceDefault, "", ""},
9+ {"No cross-origin referrer",
10+ "referrer-directive",
11+ "nocrossorigin"},
12+ {"Minimal referrer",
13+ "referrer-directive",
14+ "minimal"},
15+ {"No referrers",
16+ "referrer-directive",
17+ "noreferrers"},
18+};
19 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_CHOICES_H_
20--- a/chrome/browser/ungoogled_flag_entries.h
21+++ b/chrome/browser/ungoogled_flag_entries.h
22@@ -88,4 +88,8 @@
23 "Hide tab close buttons",
24 "Hides the close buttons on tabs. ungoogled-chromium flag.",
25 kOsDesktop, SINGLE_VALUE_TYPE("hide-tab-close-buttons")},
26+ {"referrer-directive",
27+ "Referrer directive",
28+ "Allows setting a custom directive for referrer headers. The no cross-origin referrer option removes all cross-origin referrers, the minimal option removes all cross-origin referrers and strips same-origin referrers down to the origin, and the no referrers option removes all referrers. ungoogled-chromium flag.",
29+ kOsAll, MULTI_VALUE_TYPE(kReferrerDirective)},
30 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
31--- a/content/browser/utility_process_host.cc
32+++ b/content/browser/utility_process_host.cc
33@@ -225,6 +225,7 @@ bool UtilityProcessHost::StartProcess()
34
35 // Browser command-line switches to propagate to the utility process.
36 static const char* const kSwitchNames[] = {
37+ "referrer-directive",
38 network::switches::kAdditionalTrustTokenKeyCommitments,
39 network::switches::kForceEffectiveConnectionType,
40 network::switches::kHostResolverRules,
41--- a/services/network/network_service_network_delegate.cc
42+++ b/services/network/network_service_network_delegate.cc
43@@ -7,6 +7,7 @@
44 #include <string>
45
46 #include "base/bind.h"
47+#include "base/command_line.h"
48 #include "base/debug/dump_without_crashing.h"
49 #include "base/strings/utf_string_conversions.h"
50 #include "build/build_config.h"
51@@ -62,6 +63,15 @@ void NetworkServiceNetworkDelegate::Mayb
52 return;
53 }
54
55+ if (base::CommandLine::ForCurrentProcess()->HasSwitch("referrer-directive")) {
56+ std::string option = base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII("referrer-directive");
57+ if (!url::IsSameOriginWith(effective_url, GURL(request->referrer())) || option == "noreferrers")
58+ request->SetReferrer(std::string());
59+ if (option == "minimal")
60+ request->SetReferrer(url::Origin::Create(GURL(request->referrer())).GetURL().spec());
61+ return;
62+ }
63+
64 if (base::FeatureList::IsEnabled(
65 net::features::kCapReferrerToOriginOnCrossOrigin)) {
66 if (!url::IsSameOriginWith(effective_url, GURL(request->referrer()))) {
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-search-engine-collection.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-search-engine-collection.patch
index b80101e..e99820b 100644
--- a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-search-engine-collection.patch
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-search-engine-collection.patch
@@ -1,8 +1,8 @@
1# Add flag to disable automatic search engine collection 1# Add flag to disable automatic search engine collection
2 2
3--- chrome/browser/ungoogled_flag_entries.h.orig 3--- a/chrome/browser/ungoogled_flag_entries.h
4+++ chrome/browser/ungoogled_flag_entries.h 4+++ b/chrome/browser/ungoogled_flag_entries.h
5@@ -16,4 +16,8 @@ 5@@ -12,4 +12,8 @@
6 "Handling of extension MIME type requests", 6 "Handling of extension MIME type requests",
7 "Used when deciding how to handle a request for a CRX or User Script MIME type. ungoogled-chromium flag.", 7 "Used when deciding how to handle a request for a CRX or User Script MIME type. ungoogled-chromium flag.",
8 kOsAll, MULTI_VALUE_TYPE(kExtensionHandlingChoices)}, 8 kOsAll, MULTI_VALUE_TYPE(kExtensionHandlingChoices)},
@@ -11,9 +11,9 @@
11+ "Prevents search engines from being added automatically. ungoogled-chromium flag.", 11+ "Prevents search engines from being added automatically. ungoogled-chromium flag.",
12+ kOsAll, SINGLE_VALUE_TYPE("disable-search-engine-collection")}, 12+ kOsAll, SINGLE_VALUE_TYPE("disable-search-engine-collection")},
13 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_ 13 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
14--- chrome/renderer/chrome_render_frame_observer.cc.orig 14--- a/chrome/renderer/chrome_render_frame_observer.cc
15+++ chrome/renderer/chrome_render_frame_observer.cc 15+++ b/chrome/renderer/chrome_render_frame_observer.cc
16@@ -139,9 +139,10 @@ ChromeRenderFrameObserver::ChromeRenderF 16@@ -187,9 +187,10 @@ ChromeRenderFrameObserver::ChromeRenderF
17 if (!render_frame->IsMainFrame()) 17 if (!render_frame->IsMainFrame())
18 return; 18 return;
19 19
@@ -25,7 +25,7 @@
25 if (!command_line.HasSwitch(switches::kDisableClientSidePhishingDetection)) 25 if (!command_line.HasSwitch(switches::kDisableClientSidePhishingDetection))
26 SetClientSidePhishingDetection(); 26 SetClientSidePhishingDetection();
27 #endif 27 #endif
28@@ -201,14 +202,16 @@ void ChromeRenderFrameObserver::DidFinis 28@@ -248,14 +249,16 @@ void ChromeRenderFrameObserver::DidFinis
29 if (frame->Parent()) 29 if (frame->Parent())
30 return; 30 return;
31 31
@@ -50,9 +50,9 @@
50 } 50 }
51 } 51 }
52 52
53--- chrome/renderer/chrome_render_frame_observer.h.orig 53--- a/chrome/renderer/chrome_render_frame_observer.h
54+++ chrome/renderer/chrome_render_frame_observer.h 54+++ b/chrome/renderer/chrome_render_frame_observer.h
55@@ -139,6 +139,7 @@ class ChromeRenderFrameObserver : public 55@@ -140,6 +140,7 @@ class ChromeRenderFrameObserver : public
56 #if BUILDFLAG(SAFE_BROWSING_AVAILABLE) 56 #if BUILDFLAG(SAFE_BROWSING_AVAILABLE)
57 safe_browsing::PhishingClassifierDelegate* phishing_classifier_ = nullptr; 57 safe_browsing::PhishingClassifierDelegate* phishing_classifier_ = nullptr;
58 #endif 58 #endif
@@ -60,8 +60,8 @@
60 60
61 // Owned by ChromeContentRendererClient and outlive us. 61 // Owned by ChromeContentRendererClient and outlive us.
62 web_cache::WebCacheImpl* web_cache_impl_; 62 web_cache::WebCacheImpl* web_cache_impl_;
63--- components/search_engines/template_url_service.cc.orig 63--- a/components/search_engines/template_url_service.cc
64+++ components/search_engines/template_url_service.cc 64+++ b/components/search_engines/template_url_service.cc
65@@ -12,6 +12,7 @@ 65@@ -12,6 +12,7 @@
66 #include "base/bind.h" 66 #include "base/bind.h"
67 #include "base/callback.h" 67 #include "base/callback.h"
@@ -70,7 +70,7 @@
70 #include "base/containers/contains.h" 70 #include "base/containers/contains.h"
71 #include "base/debug/crash_logging.h" 71 #include "base/debug/crash_logging.h"
72 #include "base/format_macros.h" 72 #include "base/format_macros.h"
73@@ -197,6 +198,12 @@ bool IsCreatedByExtension(const Template 73@@ -200,6 +201,12 @@ bool IsCreatedByExtension(const Template
74 template_url->type() == TemplateURL::OMNIBOX_API_EXTENSION; 74 template_url->type() == TemplateURL::OMNIBOX_API_EXTENSION;
75 } 75 }
76 76
@@ -83,7 +83,7 @@
83 } // namespace 83 } // namespace
84 84
85 // TemplateURLService::LessWithPrefix ----------------------------------------- 85 // TemplateURLService::LessWithPrefix -----------------------------------------
86@@ -282,6 +289,7 @@ TemplateURLService::TemplateURLService( 86@@ -285,6 +292,7 @@ TemplateURLService::TemplateURLService(
87 std::unique_ptr<TemplateURLServiceClient> client, 87 std::unique_ptr<TemplateURLServiceClient> client,
88 const base::RepeatingClosure& dsp_change_callback) 88 const base::RepeatingClosure& dsp_change_callback)
89 : prefs_(prefs), 89 : prefs_(prefs),
@@ -91,7 +91,7 @@
91 search_terms_data_(std::move(search_terms_data)), 91 search_terms_data_(std::move(search_terms_data)),
92 web_data_service_(web_data_service), 92 web_data_service_(web_data_service),
93 client_(std::move(client)), 93 client_(std::move(client)),
94@@ -363,8 +371,8 @@ bool TemplateURLService::CanAddAutogener 94@@ -366,8 +374,8 @@ bool TemplateURLService::CanAddAutogener
95 // that may interfere with search queries). An easy heuristic for this is 95 // that may interfere with search queries). An easy heuristic for this is
96 // whether the user has a TemplateURL that has been manually modified (e.g., 96 // whether the user has a TemplateURL that has been manually modified (e.g.,
97 // renamed) connected to the same host. 97 // renamed) connected to the same host.
@@ -102,7 +102,7 @@
102 } 102 }
103 103
104 bool TemplateURLService::IsPrepopulatedOrCreatedByPolicy( 104 bool TemplateURLService::IsPrepopulatedOrCreatedByPolicy(
105@@ -1496,6 +1504,8 @@ SyncDataMap TemplateURLService::CreateGU 105@@ -1516,6 +1524,8 @@ SyncDataMap TemplateURLService::CreateGU
106 106
107 void TemplateURLService::Init(const Initializer* initializers, 107 void TemplateURLService::Init(const Initializer* initializers,
108 int num_initializers) { 108 int num_initializers) {
@@ -111,7 +111,7 @@
111 if (client_) 111 if (client_)
112 client_->SetOwner(this); 112 client_->SetOwner(this);
113 113
114@@ -1632,6 +1642,9 @@ void TemplateURLService::ChangeToLoadedS 114@@ -1654,6 +1664,9 @@ void TemplateURLService::ChangeToLoadedS
115 115
116 bool TemplateURLService::CanAddAutogeneratedKeywordForHost( 116 bool TemplateURLService::CanAddAutogeneratedKeywordForHost(
117 const std::string& host) const { 117 const std::string& host) const {
@@ -121,11 +121,11 @@
121 const TemplateURLSet* urls = provider_map_->GetURLsForHost(host); 121 const TemplateURLSet* urls = provider_map_->GetURLsForHost(host);
122 if (!urls) 122 if (!urls)
123 return true; 123 return true;
124--- components/search_engines/template_url_service.h.orig 124--- a/components/search_engines/template_url_service.h
125+++ components/search_engines/template_url_service.h 125+++ b/components/search_engines/template_url_service.h
126@@ -706,6 +706,8 @@ class TemplateURLService : public WebDat 126@@ -716,6 +716,8 @@ class TemplateURLService : public WebDat
127 // ---------- Browser state related members --------------------------------- 127 // ---------- Browser state related members ---------------------------------
128 PrefService* prefs_ = nullptr; 128 raw_ptr<PrefService> prefs_ = nullptr;
129 129
130+ bool should_autocollect_; // Whether search engines should be auto-collected 130+ bool should_autocollect_; // Whether search engines should be auto-collected
131+ 131+
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-tab-hover-cards.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-tab-hover-cards.patch
index 6010902..39555a1 100644
--- a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-tab-hover-cards.patch
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-tab-hover-cards.patch
@@ -1,5 +1,5 @@
1--- chrome/browser/ui/views/tabs/tab.cc.orig 1--- a/chrome/browser/ui/views/tabs/tab.cc
2+++ chrome/browser/ui/views/tabs/tab.cc 2+++ b/chrome/browser/ui/views/tabs/tab.cc
3@@ -12,6 +12,7 @@ 3@@ -12,6 +12,7 @@
4 #include <utility> 4 #include <utility>
5 5
@@ -7,8 +7,8 @@
7+#include "base/command_line.h" 7+#include "base/command_line.h"
8 #include "base/debug/alias.h" 8 #include "base/debug/alias.h"
9 #include "base/i18n/rtl.h" 9 #include "base/i18n/rtl.h"
10 #include "base/metrics/user_metrics.h" 10 #include "base/memory/raw_ptr.h"
11@@ -641,6 +642,8 @@ void Tab::OnGestureEvent(ui::GestureEven 11@@ -643,6 +644,8 @@ void Tab::OnGestureEvent(ui::GestureEven
12 } 12 }
13 13
14 std::u16string Tab::GetTooltipText(const gfx::Point& p) const { 14 std::u16string Tab::GetTooltipText(const gfx::Point& p) const {
@@ -17,9 +17,9 @@
17 // Tab hover cards replace tooltips for tabs. 17 // Tab hover cards replace tooltips for tabs.
18 return std::u16string(); 18 return std::u16string();
19 } 19 }
20--- chrome/browser/ui/views/tabs/tab_strip.cc.orig 20--- a/chrome/browser/ui/views/tabs/tab_strip.cc
21+++ chrome/browser/ui/views/tabs/tab_strip.cc 21+++ b/chrome/browser/ui/views/tabs/tab_strip.cc
22@@ -15,6 +15,7 @@ 22@@ -16,6 +16,7 @@
23 23
24 #include "base/bind.h" 24 #include "base/bind.h"
25 #include "base/callback.h" 25 #include "base/callback.h"
@@ -27,18 +27,18 @@
27 #include "base/compiler_specific.h" 27 #include "base/compiler_specific.h"
28 #include "base/containers/adapters.h" 28 #include "base/containers/adapters.h"
29 #include "base/containers/contains.h" 29 #include "base/containers/contains.h"
30@@ -2153,6 +2154,8 @@ void TabStrip::OnMouseEventInTab(views:: 30@@ -1461,6 +1462,8 @@ void TabStrip::OnMouseEventInTab(views::
31 } 31 }
32 32
33 void TabStrip::UpdateHoverCard(Tab* tab, HoverCardUpdateType update_type) { 33 void TabStrip::UpdateHoverCard(Tab* tab, HoverCardUpdateType update_type) {
34+ if (base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII("tab-hover-cards") == "tooltip" || 34+ if (base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII("tab-hover-cards") == "tooltip" ||
35+ base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII("tab-hover-cards") == "none") return; 35+ base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII("tab-hover-cards") == "none") return;
36 // Some operations (including e.g. starting a drag) can cause the tab focus 36 tab_container_->UpdateHoverCard(tab, update_type);
37 // to change at the same time as the tabstrip is starting to animate; the 37 }
38 // hover card should not be visible at this time. 38
39--- chrome/browser/ungoogled_flag_choices.h.orig 39--- a/chrome/browser/ungoogled_flag_choices.h
40+++ chrome/browser/ungoogled_flag_choices.h 40+++ b/chrome/browser/ungoogled_flag_choices.h
41@@ -75,4 +75,13 @@ const FeatureEntry::Choice kCloseConfirm 41@@ -70,4 +70,13 @@ const FeatureEntry::Choice kCloseConfirm
42 "close-confirmation", 42 "close-confirmation",
43 "multiple"}, 43 "multiple"},
44 }; 44 };
@@ -52,9 +52,9 @@
52+ "tooltip"}, 52+ "tooltip"},
53+}; 53+};
54 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_CHOICES_H_ 54 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_CHOICES_H_
55--- chrome/browser/ungoogled_flag_entries.h.orig 55--- a/chrome/browser/ungoogled_flag_entries.h
56+++ chrome/browser/ungoogled_flag_entries.h 56+++ b/chrome/browser/ungoogled_flag_entries.h
57@@ -88,4 +88,8 @@ 57@@ -80,4 +80,8 @@
58 "Custom New Tab Page", 58 "Custom New Tab Page",
59 "Allows setting a custom URL for the new tab page. Value can be internal (e.g. `about:blank`), external (e.g. `example.com`), or local (e.g. `file:///tmp/startpage.html`). This applies for incognito windows as well when not set to a `chrome://` internal page. ungoogled-chromium flag", 59 "Allows setting a custom URL for the new tab page. Value can be internal (e.g. `about:blank`), external (e.g. `example.com`), or local (e.g. `file:///tmp/startpage.html`). This applies for incognito windows as well when not set to a `chrome://` internal page. ungoogled-chromium flag",
60 kOsDesktop, ORIGIN_LIST_VALUE_TYPE("custom-ntp", "")}, 60 kOsDesktop, ORIGIN_LIST_VALUE_TYPE("custom-ntp", "")},
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-tabsearch-button.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-tabsearch-button.patch
index 317602c..8fafaf2 100644
--- a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-tabsearch-button.patch
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-tabsearch-button.patch
@@ -1,6 +1,6 @@
1--- chrome/browser/ui/browser_command_controller.cc.orig 1--- a/chrome/browser/ui/browser_command_controller.cc
2+++ chrome/browser/ui/browser_command_controller.cc 2+++ b/chrome/browser/ui/browser_command_controller.cc
3@@ -1139,7 +1139,8 @@ void BrowserCommandController::InitComma 3@@ -1208,7 +1208,8 @@ void BrowserCommandController::InitComma
4 command_updater_.UpdateCommandEnabled(IDC_WINDOW_CLOSE_OTHER_TABS, 4 command_updater_.UpdateCommandEnabled(IDC_WINDOW_CLOSE_OTHER_TABS,
5 normal_window); 5 normal_window);
6 6
@@ -10,8 +10,8 @@
10 command_updater_.UpdateCommandEnabled(IDC_TAB_SEARCH, 10 command_updater_.UpdateCommandEnabled(IDC_TAB_SEARCH,
11 enable_tab_search_commands); 11 enable_tab_search_commands);
12 command_updater_.UpdateCommandEnabled(IDC_TAB_SEARCH_CLOSE, 12 command_updater_.UpdateCommandEnabled(IDC_TAB_SEARCH_CLOSE,
13--- chrome/browser/ui/views/frame/tab_strip_region_view.cc.orig 13--- a/chrome/browser/ui/views/frame/tab_strip_region_view.cc
14+++ chrome/browser/ui/views/frame/tab_strip_region_view.cc 14+++ b/chrome/browser/ui/views/frame/tab_strip_region_view.cc
15@@ -5,6 +5,7 @@ 15@@ -5,6 +5,7 @@
16 #include "chrome/browser/ui/views/frame/tab_strip_region_view.h" 16 #include "chrome/browser/ui/views/frame/tab_strip_region_view.h"
17 17
@@ -20,19 +20,19 @@
20 #include "base/strings/utf_string_conversions.h" 20 #include "base/strings/utf_string_conversions.h"
21 #include "build/build_config.h" 21 #include "build/build_config.h"
22 #include "chrome/browser/themes/theme_properties.h" 22 #include "chrome/browser/themes/theme_properties.h"
23@@ -132,7 +133,8 @@ TabStripRegionView::TabStripRegionView(s 23@@ -139,7 +140,8 @@ TabStripRegionView::TabStripRegionView(s
24 return; 24 return;
25 #endif 25 }
26 const Browser* browser = tab_strip_->controller()->GetBrowser(); 26
27- if (browser && browser->is_type_normal()) { 27- if (browser->is_type_normal()) {
28+ if (browser && browser->is_type_normal() && 28+ if (browser->is_type_normal() &&
29+ !base::CommandLine::ForCurrentProcess()->HasSwitch("remove-tabsearch-button")) { 29+ !base::CommandLine::ForCurrentProcess()->HasSwitch("remove-tabsearch-button")) {
30 auto tab_search_button = std::make_unique<TabSearchButton>(tab_strip_); 30 auto tab_search_button = std::make_unique<TabSearchButton>(tab_strip_);
31 tab_search_button->SetTooltipText( 31 tab_search_button->SetTooltipText(
32 l10n_util::GetStringUTF16(IDS_TOOLTIP_TAB_SEARCH)); 32 l10n_util::GetStringUTF16(IDS_TOOLTIP_TAB_SEARCH));
33--- chrome/browser/ungoogled_flag_entries.h.orig 33--- a/chrome/browser/ungoogled_flag_entries.h
34+++ chrome/browser/ungoogled_flag_entries.h 34+++ b/chrome/browser/ungoogled_flag_entries.h
35@@ -68,4 +68,8 @@ 35@@ -60,4 +60,8 @@
36 "Clear data on exit", 36 "Clear data on exit",
37 "Clears all browsing data on exit. ungoogled-chromium flag", 37 "Clears all browsing data on exit. ungoogled-chromium flag",
38 kOsDesktop, FEATURE_VALUE_TYPE(browsing_data::features::kClearDataOnExit)}, 38 kOsDesktop, FEATURE_VALUE_TYPE(browsing_data::features::kClearDataOnExit)},
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-change-http-accept-header.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-change-http-accept-header.patch
new file mode 100644
index 0000000..ede83e7
--- /dev/null
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-change-http-accept-header.patch
@@ -0,0 +1,49 @@
1--- a/chrome/browser/ungoogled_flag_entries.h
2+++ b/chrome/browser/ungoogled_flag_entries.h
3@@ -96,4 +96,8 @@
4 "Disable GREASE for TLS",
5 "Turn off GREASE (Generate Random Extensions And Sustain Extensibility) for TLS connections. ungoogled-chromium flag.",
6 kOsAll, SINGLE_VALUE_TYPE("disable-grease-tls")},
7+ {"http-accept-header",
8+ "Custom HTTP Accept Header",
9+ "Set a custom value for the Accept header which is sent by the browser with every HTTP request. (e.g. `text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8`). ungoogled-chromium flag.",
10+ kOsAll, ORIGIN_LIST_VALUE_TYPE("http-accept-header", "")},
11 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
12--- a/components/flags_ui/flags_state.cc
13+++ b/components/flags_ui/flags_state.cc
14@@ -209,6 +209,7 @@ std::string GetCombinedOriginListValue(c
15 const std::string new_value =
16 flags_storage.GetOriginListFlag(internal_entry_name);
17 if (command_line_switch == "custom-ntp") return existing_value.empty() ? new_value : existing_value;
18+ if (command_line_switch == "http-accept-header") return existing_value.empty() ? new_value : existing_value;
19 return CombineAndSanitizeOriginLists(existing_value, new_value);
20 }
21
22@@ -398,6 +399,7 @@ void FlagsState::SetOriginListFlag(const
23 FlagsStorage* flags_storage) {
24 const std::string new_value =
25 internal_name == "custom-ntp" ? value :
26+ internal_name == "http-accept-header" ? value :
27 CombineAndSanitizeOriginLists(std::string(), value);
28 flags_storage->SetOriginListFlag(internal_name, new_value);
29
30--- a/content/public/browser/frame_accept_header.cc
31+++ b/content/public/browser/frame_accept_header.cc
32@@ -4,6 +4,7 @@
33
34 #include "content/public/browser/frame_accept_header.h"
35
36+#include "base/command_line.h"
37 #include "content/browser/web_package/signed_exchange_consts.h"
38 #include "content/browser/web_package/signed_exchange_utils.h"
39 #include "content/common/content_constants_internal.h"
40@@ -14,6 +15,9 @@ namespace content {
41
42 std::string FrameAcceptHeaderValue(bool allow_sxg_responses,
43 BrowserContext* browser_context) {
44+ if (base::CommandLine::ForCurrentProcess()->HasSwitch("http-accept-header"))
45+ return base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII("http-accept-header");
46+
47 std::string header_value = kFrameAcceptHeaderValue;
48
49 #if BUILDFLAG(ENABLE_JXL_DECODER)
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-clear-data-on-exit.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-clear-data-on-exit.patch
index 070c4cd..e059450 100644
--- a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-clear-data-on-exit.patch
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-clear-data-on-exit.patch
@@ -1,6 +1,6 @@
1--- chrome/browser/browsing_data/chrome_browsing_data_lifetime_manager.cc.orig 1--- a/chrome/browser/browsing_data/chrome_browsing_data_lifetime_manager.cc
2+++ chrome/browser/browsing_data/chrome_browsing_data_lifetime_manager.cc 2+++ b/chrome/browser/browsing_data/chrome_browsing_data_lifetime_manager.cc
3@@ -24,6 +24,7 @@ 3@@ -25,6 +25,7 @@
4 #include "chrome/browser/profiles/profile.h" 4 #include "chrome/browser/profiles/profile.h"
5 #include "chrome/browser/profiles/profile_manager.h" 5 #include "chrome/browser/profiles/profile_manager.h"
6 #include "chrome/browser/sync/sync_service_factory.h" 6 #include "chrome/browser/sync/sync_service_factory.h"
@@ -8,7 +8,7 @@
8 #include "components/browsing_data/core/pref_names.h" 8 #include "components/browsing_data/core/pref_names.h"
9 #include "components/keep_alive_registry/keep_alive_types.h" 9 #include "components/keep_alive_registry/keep_alive_types.h"
10 #include "components/keep_alive_registry/scoped_keep_alive.h" 10 #include "components/keep_alive_registry/scoped_keep_alive.h"
11@@ -151,6 +152,21 @@ class BrowsingDataRemoverObserver 11@@ -157,6 +158,21 @@ class BrowsingDataRemoverObserver
12 #endif 12 #endif
13 }; 13 };
14 14
@@ -29,20 +29,20 @@
29+ 29+
30 uint64_t GetOriginTypeMask(const base::Value& data_types) { 30 uint64_t GetOriginTypeMask(const base::Value& data_types) {
31 uint64_t result = 0; 31 uint64_t result = 0;
32 for (const auto& data_type : data_types.GetList()) { 32 for (const auto& data_type : data_types.GetListDeprecated()) {
33@@ -292,8 +308,9 @@ void ChromeBrowsingDataLifetimeManager:: 33@@ -307,8 +323,9 @@ void ChromeBrowsingDataLifetimeManager::
34 bool keep_browser_alive) { 34 bool keep_browser_alive) {
35 auto* data_types = profile_->GetPrefs()->GetList( 35 auto* data_types = profile_->GetPrefs()->GetList(
36 browsing_data::prefs::kClearBrowsingDataOnExitList); 36 browsing_data::prefs::kClearBrowsingDataOnExitList);
37- if (data_types && !data_types->GetList().empty() && 37- if (data_types && !data_types->GetListDeprecated().empty() &&
38- !SyncServiceFactory::IsSyncAllowed(profile_)) { 38- !SyncServiceFactory::IsSyncAllowed(profile_)) {
39+ bool cdoe = base::FeatureList::IsEnabled(browsing_data::features::kClearDataOnExit); 39+ bool cdoe = base::FeatureList::IsEnabled(browsing_data::features::kClearDataOnExit);
40+ if (cdoe || (data_types && !data_types->GetList().empty() && 40+ if (cdoe || (data_types && !data_types->GetListDeprecated().empty() &&
41+ !SyncServiceFactory::IsSyncAllowed(profile_))) { 41+ !SyncServiceFactory::IsSyncAllowed(profile_))) {
42 profile_->GetPrefs()->SetBoolean( 42 profile_->GetPrefs()->SetBoolean(
43 browsing_data::prefs::kClearBrowsingDataOnExitDeletionPending, true); 43 browsing_data::prefs::kClearBrowsingDataOnExitDeletionPending, true);
44 auto* remover = profile_->GetBrowsingDataRemover(); 44 auto* remover = profile_->GetBrowsingDataRemover();
45@@ -304,8 +321,8 @@ void ChromeBrowsingDataLifetimeManager:: 45@@ -319,8 +336,8 @@ void ChromeBrowsingDataLifetimeManager::
46 DCHECK(keep_browser_alive); 46 DCHECK(keep_browser_alive);
47 #endif 47 #endif
48 remover->RemoveAndReply(base::Time(), base::Time::Max(), 48 remover->RemoveAndReply(base::Time(), base::Time::Max(),
@@ -53,8 +53,8 @@
53 BrowsingDataRemoverObserver::Create( 53 BrowsingDataRemoverObserver::Create(
54 remover, /*filterable_deletion=*/true, profile_, 54 remover, /*filterable_deletion=*/true, profile_,
55 keep_browser_alive)); 55 keep_browser_alive));
56--- chrome/browser/browsing_data/chrome_browsing_data_lifetime_manager_factory.cc.orig 56--- a/chrome/browser/browsing_data/chrome_browsing_data_lifetime_manager_factory.cc
57+++ chrome/browser/browsing_data/chrome_browsing_data_lifetime_manager_factory.cc 57+++ b/chrome/browser/browsing_data/chrome_browsing_data_lifetime_manager_factory.cc
58@@ -48,6 +48,8 @@ ChromeBrowsingDataLifetimeManagerFactory 58@@ -48,6 +48,8 @@ ChromeBrowsingDataLifetimeManagerFactory
59 KeyedService* ChromeBrowsingDataLifetimeManagerFactory::BuildServiceInstanceFor( 59 KeyedService* ChromeBrowsingDataLifetimeManagerFactory::BuildServiceInstanceFor(
60 content::BrowserContext* context) const { 60 content::BrowserContext* context) const {
@@ -64,9 +64,9 @@
64 browsing_data::features::kEnableBrowsingDataLifetimeManager)) 64 browsing_data::features::kEnableBrowsingDataLifetimeManager))
65 return nullptr; 65 return nullptr;
66 Profile* profile = Profile::FromBrowserContext(context); 66 Profile* profile = Profile::FromBrowserContext(context);
67--- chrome/browser/ungoogled_flag_entries.h.orig 67--- a/chrome/browser/ungoogled_flag_entries.h
68+++ chrome/browser/ungoogled_flag_entries.h 68+++ b/chrome/browser/ungoogled_flag_entries.h
69@@ -64,4 +64,8 @@ 69@@ -56,4 +56,8 @@
70 "Keep old history", 70 "Keep old history",
71 "Keep history older than 3 months. ungoogled-chromium flag", 71 "Keep history older than 3 months. ungoogled-chromium flag",
72 kOsAll, SINGLE_VALUE_TYPE("keep-old-history")}, 72 kOsAll, SINGLE_VALUE_TYPE("keep-old-history")},
@@ -75,8 +75,8 @@
75+ "Clears all browsing data on exit. ungoogled-chromium flag", 75+ "Clears all browsing data on exit. ungoogled-chromium flag",
76+ kOsDesktop, FEATURE_VALUE_TYPE(browsing_data::features::kClearDataOnExit)}, 76+ kOsDesktop, FEATURE_VALUE_TYPE(browsing_data::features::kClearDataOnExit)},
77 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_ 77 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
78--- components/browsing_data/core/features.cc.orig 78--- a/components/browsing_data/core/features.cc
79+++ components/browsing_data/core/features.cc 79+++ b/components/browsing_data/core/features.cc
80@@ -19,5 +19,7 @@ const base::Feature kEnableBrowsingDataL 80@@ -19,5 +19,7 @@ const base::Feature kEnableBrowsingDataL
81 const base::Feature kEnableBrowsingDataLifetimeManager{ 81 const base::Feature kEnableBrowsingDataLifetimeManager{
82 "BrowsingDataLifetimeManager", base::FEATURE_ENABLED_BY_DEFAULT}; 82 "BrowsingDataLifetimeManager", base::FEATURE_ENABLED_BY_DEFAULT};
@@ -85,8 +85,8 @@
85+const base::Feature kClearDataOnExit{"ClearDataOnExit", base::FEATURE_DISABLED_BY_DEFAULT}; 85+const base::Feature kClearDataOnExit{"ClearDataOnExit", base::FEATURE_DISABLED_BY_DEFAULT};
86 } // namespace features 86 } // namespace features
87 } // namespace browsing_data 87 } // namespace browsing_data
88--- components/browsing_data/core/features.h.orig 88--- a/components/browsing_data/core/features.h
89+++ components/browsing_data/core/features.h 89+++ b/components/browsing_data/core/features.h
90@@ -17,6 +17,7 @@ extern const base::Feature kEnableRemovi 90@@ -17,6 +17,7 @@ extern const base::Feature kEnableRemovi
91 // defined by the BrowsingDataLifetime policy. 91 // defined by the BrowsingDataLifetime policy.
92 extern const base::Feature kEnableBrowsingDataLifetimeManager; 92 extern const base::Feature kEnableBrowsingDataLifetimeManager;
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-close-window-with-last-tab.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-close-window-with-last-tab.patch
index b0358e8..78b5ab9 100644
--- a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-close-window-with-last-tab.patch
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-close-window-with-last-tab.patch
@@ -1,5 +1,5 @@
1--- chrome/browser/ui/tabs/tab_strip_model.cc.orig 1--- a/chrome/browser/ui/tabs/tab_strip_model.cc
2+++ chrome/browser/ui/tabs/tab_strip_model.cc 2+++ b/chrome/browser/ui/tabs/tab_strip_model.cc
3@@ -11,6 +11,7 @@ 3@@ -11,6 +11,7 @@
4 #include <utility> 4 #include <utility>
5 5
@@ -7,8 +7,8 @@
7+#include "base/command_line.h" 7+#include "base/command_line.h"
8 #include "base/containers/flat_map.h" 8 #include "base/containers/flat_map.h"
9 #include "base/cxx17_backports.h" 9 #include "base/cxx17_backports.h"
10 #include "base/metrics/histogram_macros.h" 10 #include "base/memory/raw_ptr.h"
11@@ -1779,6 +1780,10 @@ bool TabStripModel::CloseTabs(base::span 11@@ -1910,6 +1911,10 @@ bool TabStripModel::CloseTabs(base::span
12 if (items.empty()) 12 if (items.empty())
13 return true; 13 return true;
14 14
@@ -19,9 +19,9 @@
19 const bool closing_all = static_cast<int>(items.size()) == count(); 19 const bool closing_all = static_cast<int>(items.size()) == count();
20 base::WeakPtr<TabStripModel> ref = weak_factory_.GetWeakPtr(); 20 base::WeakPtr<TabStripModel> ref = weak_factory_.GetWeakPtr();
21 if (closing_all) { 21 if (closing_all) {
22--- chrome/browser/ungoogled_flag_choices.h.orig 22--- a/chrome/browser/ungoogled_flag_choices.h
23+++ chrome/browser/ungoogled_flag_choices.h 23+++ b/chrome/browser/ungoogled_flag_choices.h
24@@ -60,4 +60,10 @@ const FeatureEntry::Choice kOmniboxAutoc 24@@ -55,4 +55,10 @@ const FeatureEntry::Choice kOmniboxAutoc
25 "omnibox-autocomplete-filtering", 25 "omnibox-autocomplete-filtering",
26 "search-bookmarks-chrome"}, 26 "search-bookmarks-chrome"},
27 }; 27 };
@@ -32,9 +32,9 @@
32+ "never"}, 32+ "never"},
33+}; 33+};
34 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_CHOICES_H_ 34 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_CHOICES_H_
35--- chrome/browser/ungoogled_flag_entries.h.orig 35--- a/chrome/browser/ungoogled_flag_entries.h
36+++ chrome/browser/ungoogled_flag_entries.h 36+++ b/chrome/browser/ungoogled_flag_entries.h
37@@ -52,4 +52,8 @@ 37@@ -44,4 +44,8 @@
38 "Omnibox Autocomplete Filtering", 38 "Omnibox Autocomplete Filtering",
39 "Restrict omnibox autocomplete results to a combination of search suggestions (if enabled), bookmarks, and internal chrome pages. ungoogled-chromium flag.", 39 "Restrict omnibox autocomplete results to a combination of search suggestions (if enabled), bookmarks, and internal chrome pages. ungoogled-chromium flag.",
40 kOsAll, MULTI_VALUE_TYPE(kOmniboxAutocompleteFiltering)}, 40 kOsAll, MULTI_VALUE_TYPE(kOmniboxAutocompleteFiltering)},
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-configure-extension-downloading.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-configure-extension-downloading.patch
index 381de61..231542b 100644
--- a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-configure-extension-downloading.patch
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-configure-extension-downloading.patch
@@ -1,8 +1,8 @@
1# Add extension-mime-request-handling chrome://flag to tweak the behavior of 1# Add extension-mime-request-handling chrome://flag to tweak the behavior of
2# extension MIME types 2# extension MIME types
3 3
4--- chrome/browser/download/download_crx_util.cc.orig 4--- a/chrome/browser/download/download_crx_util.cc
5+++ chrome/browser/download/download_crx_util.cc 5+++ b/chrome/browser/download/download_crx_util.cc
6@@ -8,6 +8,7 @@ 6@@ -8,6 +8,7 @@
7 7
8 #include <memory> 8 #include <memory>
@@ -35,8 +35,8 @@
35 } else { 35 } else {
36 return false; 36 return false;
37 } 37 }
38--- chrome/browser/download/download_crx_util.h.orig 38--- a/chrome/browser/download/download_crx_util.h
39+++ chrome/browser/download/download_crx_util.h 39+++ b/chrome/browser/download/download_crx_util.h
40@@ -43,6 +43,10 @@ scoped_refptr<extensions::CrxInstaller> 40@@ -43,6 +43,10 @@ scoped_refptr<extensions::CrxInstaller>
41 Profile* profile, 41 Profile* profile,
42 const download::DownloadItem& download_item); 42 const download::DownloadItem& download_item);
@@ -48,9 +48,9 @@
48 // Returns true if this is an extension download. This also considers user 48 // Returns true if this is an extension download. This also considers user
49 // scripts to be extension downloads, since we convert those automatically. 49 // scripts to be extension downloads, since we convert those automatically.
50 bool IsExtensionDownload(const download::DownloadItem& download_item); 50 bool IsExtensionDownload(const download::DownloadItem& download_item);
51--- chrome/browser/download/download_target_determiner.cc.orig 51--- a/chrome/browser/download/download_target_determiner.cc
52+++ chrome/browser/download/download_target_determiner.cc 52+++ b/chrome/browser/download/download_target_determiner.cc
53@@ -1059,10 +1059,12 @@ DownloadConfirmationReason DownloadTarge 53@@ -1070,10 +1070,12 @@ DownloadConfirmationReason DownloadTarge
54 return DownloadConfirmationReason::SAVE_AS; 54 return DownloadConfirmationReason::SAVE_AS;
55 55
56 #if BUILDFLAG(ENABLE_EXTENSIONS) 56 #if BUILDFLAG(ENABLE_EXTENSIONS)
@@ -67,8 +67,8 @@
67 #endif 67 #endif
68 68
69 // Don't prompt for file types that are marked for opening automatically. 69 // Don't prompt for file types that are marked for opening automatically.
70--- chrome/browser/extensions/extension_management.cc.orig 70--- a/chrome/browser/extensions/extension_management.cc
71+++ chrome/browser/extensions/extension_management.cc 71+++ b/chrome/browser/extensions/extension_management.cc
72@@ -10,6 +10,7 @@ 72@@ -10,6 +10,7 @@
73 73
74 #include "base/bind.h" 74 #include "base/bind.h"
@@ -77,7 +77,7 @@
77 #include "base/containers/contains.h" 77 #include "base/containers/contains.h"
78 #include "base/logging.h" 78 #include "base/logging.h"
79 #include "base/metrics/histogram_functions.h" 79 #include "base/metrics/histogram_functions.h"
80@@ -250,6 +251,13 @@ bool ExtensionManagement::IsInstallation 80@@ -251,6 +252,13 @@ bool ExtensionManagement::IsInstallation
81 bool ExtensionManagement::IsOffstoreInstallAllowed( 81 bool ExtensionManagement::IsOffstoreInstallAllowed(
82 const GURL& url, 82 const GURL& url,
83 const GURL& referrer_url) const { 83 const GURL& referrer_url) const {
@@ -91,8 +91,8 @@
91 // No allowed install sites specified, disallow by default. 91 // No allowed install sites specified, disallow by default.
92 if (!global_settings_->has_restricted_install_sources) 92 if (!global_settings_->has_restricted_install_sources)
93 return false; 93 return false;
94--- chrome/browser/ungoogled_flag_choices.h.orig 94--- a/chrome/browser/ungoogled_flag_choices.h
95+++ chrome/browser/ungoogled_flag_choices.h 95+++ b/chrome/browser/ungoogled_flag_choices.h
96@@ -4,4 +4,13 @@ 96@@ -4,4 +4,13 @@
97 97
98 #ifndef CHROME_BROWSER_UNGOOGLED_FLAG_CHOICES_H_ 98 #ifndef CHROME_BROWSER_UNGOOGLED_FLAG_CHOICES_H_
@@ -107,12 +107,12 @@
107+ "always-prompt-for-install"}, 107+ "always-prompt-for-install"},
108+}; 108+};
109 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_CHOICES_H_ 109 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_CHOICES_H_
110--- chrome/browser/ungoogled_flag_entries.h.orig 110--- a/chrome/browser/ungoogled_flag_entries.h
111+++ chrome/browser/ungoogled_flag_entries.h 111+++ b/chrome/browser/ungoogled_flag_entries.h
112@@ -12,4 +12,8 @@ 112@@ -8,4 +8,8 @@
113 "Enable stacking in the tab strip", 113 "SetIpv6ProbeFalse",
114 "Forces tabs to be stacked in the tab strip. Otherwise, they follow default behavior. ungoogled-chromium flag.", 114 "Forces the result of the browser's IPv6 probing (i.e. IPv6 connectivity test) to be unsuccessful. This causes IPv4 addresses to be prioritized over IPv6 addresses. Without this flag, the probing result is set to be successful, which causes IPv6 to be used over IPv4 when possible. ungoogled-chromium flag.",
115 kOsAll, SINGLE_VALUE_TYPE("enable-stacked-tab-strip")}, 115 kOsAll, FEATURE_VALUE_TYPE(net::features::kSetIpv6ProbeFalse)},
116+ {"extension-mime-request-handling", 116+ {"extension-mime-request-handling",
117+ "Handling of extension MIME type requests", 117+ "Handling of extension MIME type requests",
118+ "Used when deciding how to handle a request for a CRX or User Script MIME type. ungoogled-chromium flag.", 118+ "Used when deciding how to handle a request for a CRX or User Script MIME type. ungoogled-chromium flag.",
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-convert-popups-to-tabs.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-convert-popups-to-tabs.patch
index 9a31082..9271f55 100644
--- a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-convert-popups-to-tabs.patch
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-convert-popups-to-tabs.patch
@@ -1,8 +1,8 @@
1# Make popups go to tabs instead 1# Make popups go to tabs instead
2 2
3--- chrome/browser/ungoogled_flag_entries.h.orig 3--- a/chrome/browser/ungoogled_flag_entries.h
4+++ chrome/browser/ungoogled_flag_entries.h 4+++ b/chrome/browser/ungoogled_flag_entries.h
5@@ -56,4 +56,8 @@ 5@@ -48,4 +48,8 @@
6 "Close window with last tab", 6 "Close window with last tab",
7 "Determines whether a window should close once the last tab is closed. ungoogled-chromium flag.", 7 "Determines whether a window should close once the last tab is closed. ungoogled-chromium flag.",
8 kOsDesktop, MULTI_VALUE_TYPE(kCloseWindowWithLastTab)}, 8 kOsDesktop, MULTI_VALUE_TYPE(kCloseWindowWithLastTab)},
@@ -11,19 +11,20 @@
11+ "Makes popups open in new tabs. ungoogled-chromium flag", 11+ "Makes popups open in new tabs. ungoogled-chromium flag",
12+ kOsAll, SINGLE_VALUE_TYPE("popups-to-tabs")}, 12+ kOsAll, SINGLE_VALUE_TYPE("popups-to-tabs")},
13 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_ 13 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
14--- content/renderer/render_view_impl.cc.orig 14--- a/content/renderer/render_view_impl.cc
15+++ content/renderer/render_view_impl.cc 15+++ b/content/renderer/render_view_impl.cc
16@@ -73,6 +73,8 @@ WindowOpenDisposition RenderViewImpl::Na 16@@ -75,6 +75,9 @@ WindowOpenDisposition RenderViewImpl::Na
17 case blink::kWebNavigationPolicyNewWindow: 17 case blink::kWebNavigationPolicyNewWindow:
18 return WindowOpenDisposition::NEW_WINDOW; 18 return WindowOpenDisposition::NEW_WINDOW;
19 case blink::kWebNavigationPolicyNewPopup: 19 case blink::kWebNavigationPolicyNewPopup:
20+ if (base::CommandLine::ForCurrentProcess()->HasSwitch("popups-to-tabs")) 20+ if (base::CommandLine::ForCurrentProcess()->HasSwitch("popups-to-tabs"))
21+ return WindowOpenDisposition::NEW_FOREGROUND_TAB; 21+ return WindowOpenDisposition::NEW_FOREGROUND_TAB;
22+ return WindowOpenDisposition::NEW_POPUP;
23 case blink::kWebNavigationPolicyPictureInPicture:
22 return WindowOpenDisposition::NEW_POPUP; 24 return WindowOpenDisposition::NEW_POPUP;
23 default: 25 default:
24 NOTREACHED() << "Unexpected WebNavigationPolicy"; 26--- a/ui/base/mojom/window_open_disposition_mojom_traits.h
25--- ui/base/mojom/window_open_disposition_mojom_traits.h.orig 27+++ b/ui/base/mojom/window_open_disposition_mojom_traits.h
26+++ ui/base/mojom/window_open_disposition_mojom_traits.h
27@@ -5,6 +5,7 @@ 28@@ -5,6 +5,7 @@
28 #ifndef UI_BASE_MOJOM_WINDOW_OPEN_DISPOSITION_MOJOM_TRAITS_H_ 29 #ifndef UI_BASE_MOJOM_WINDOW_OPEN_DISPOSITION_MOJOM_TRAITS_H_
29 #define UI_BASE_MOJOM_WINDOW_OPEN_DISPOSITION_MOJOM_TRAITS_H_ 30 #define UI_BASE_MOJOM_WINDOW_OPEN_DISPOSITION_MOJOM_TRAITS_H_
@@ -32,16 +33,16 @@
32 #include "base/notreached.h" 33 #include "base/notreached.h"
33 #include "mojo/public/cpp/bindings/enum_traits.h" 34 #include "mojo/public/cpp/bindings/enum_traits.h"
34 #include "ui/base/mojom/window_open_disposition.mojom.h" 35 #include "ui/base/mojom/window_open_disposition.mojom.h"
35@@ -28,6 +29,8 @@ struct EnumTraits<ui::mojom::WindowOpenD 36@@ -30,6 +31,8 @@ struct EnumTraits<ui::mojom::WindowOpenD
36 case WindowOpenDisposition::NEW_BACKGROUND_TAB: 37 case WindowOpenDisposition::NEW_PICTURE_IN_PICTURE:
37 return ui::mojom::WindowOpenDisposition::NEW_BACKGROUND_TAB; 38 return ui::mojom::WindowOpenDisposition::NEW_PICTURE_IN_PICTURE;
38 case WindowOpenDisposition::NEW_POPUP: 39 case WindowOpenDisposition::NEW_POPUP:
39+ if (base::CommandLine::ForCurrentProcess()->HasSwitch("popups-to-tabs")) 40+ if (base::CommandLine::ForCurrentProcess()->HasSwitch("popups-to-tabs"))
40+ return ui::mojom::WindowOpenDisposition::NEW_FOREGROUND_TAB; 41+ return ui::mojom::WindowOpenDisposition::NEW_FOREGROUND_TAB;
41 return ui::mojom::WindowOpenDisposition::NEW_POPUP; 42 return ui::mojom::WindowOpenDisposition::NEW_POPUP;
42 case WindowOpenDisposition::NEW_WINDOW: 43 case WindowOpenDisposition::NEW_WINDOW:
43 return ui::mojom::WindowOpenDisposition::NEW_WINDOW; 44 return ui::mojom::WindowOpenDisposition::NEW_WINDOW;
44@@ -63,6 +66,8 @@ struct EnumTraits<ui::mojom::WindowOpenD 45@@ -68,6 +71,8 @@ struct EnumTraits<ui::mojom::WindowOpenD
45 return true; 46 return true;
46 case ui::mojom::WindowOpenDisposition::NEW_POPUP: 47 case ui::mojom::WindowOpenDisposition::NEW_POPUP:
47 *out = WindowOpenDisposition::NEW_POPUP; 48 *out = WindowOpenDisposition::NEW_POPUP;
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-disable-beforeunload.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-disable-beforeunload.patch
index c46ec2b..c2678af 100644
--- a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-disable-beforeunload.patch
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-disable-beforeunload.patch
@@ -1,8 +1,8 @@
1# Add --disable-beforeunload to always disable beforeunload JavaScript dialogs 1# Add --disable-beforeunload to always disable beforeunload JavaScript dialogs
2 2
3--- chrome/browser/ungoogled_flag_entries.h.orig 3--- a/chrome/browser/ungoogled_flag_entries.h
4+++ chrome/browser/ungoogled_flag_entries.h 4+++ b/chrome/browser/ungoogled_flag_entries.h
5@@ -20,4 +20,8 @@ 5@@ -16,4 +16,8 @@
6 "Disable search engine collection", 6 "Disable search engine collection",
7 "Prevents search engines from being added automatically. ungoogled-chromium flag.", 7 "Prevents search engines from being added automatically. ungoogled-chromium flag.",
8 kOsAll, SINGLE_VALUE_TYPE("disable-search-engine-collection")}, 8 kOsAll, SINGLE_VALUE_TYPE("disable-search-engine-collection")},
@@ -11,17 +11,17 @@
11+ "Disables JavaScript dialog boxes triggered by beforeunload. ungoogled-chromium flag.", 11+ "Disables JavaScript dialog boxes triggered by beforeunload. ungoogled-chromium flag.",
12+ kOsAll, SINGLE_VALUE_TYPE("disable-beforeunload")}, 12+ kOsAll, SINGLE_VALUE_TYPE("disable-beforeunload")},
13 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_ 13 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
14--- components/javascript_dialogs/app_modal_dialog_manager.cc.orig 14--- a/components/javascript_dialogs/app_modal_dialog_manager.cc
15+++ components/javascript_dialogs/app_modal_dialog_manager.cc 15+++ b/components/javascript_dialogs/app_modal_dialog_manager.cc
16@@ -8,6 +8,7 @@ 16@@ -8,6 +8,7 @@
17 #include <utility> 17 #include <utility>
18 18
19 #include "base/bind.h" 19 #include "base/bind.h"
20+#include "base/command_line.h" 20+#include "base/command_line.h"
21 #include "base/i18n/rtl.h" 21 #include "base/i18n/rtl.h"
22 #include "base/macros.h"
23 #include "base/metrics/histogram_macros.h" 22 #include "base/metrics/histogram_macros.h"
24@@ -196,7 +197,8 @@ void AppModalDialogManager::RunBeforeUnl 23 #include "base/strings/utf_string_conversions.h"
24@@ -195,7 +196,8 @@ void AppModalDialogManager::RunBeforeUnl
25 ChromeJavaScriptDialogExtraData* extra_data = 25 ChromeJavaScriptDialogExtraData* extra_data =
26 &javascript_dialog_extra_data_[web_contents]; 26 &javascript_dialog_extra_data_[web_contents];
27 27
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-disable-local-history-expiration.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-disable-local-history-expiration.patch
index 090432a..a07ec40 100644
--- a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-disable-local-history-expiration.patch
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-disable-local-history-expiration.patch
@@ -1,8 +1,8 @@
1# Keep local history longer than 90 days 1# Keep local history longer than 90 days
2 2
3--- chrome/browser/ungoogled_flag_entries.h.orig 3--- a/chrome/browser/ungoogled_flag_entries.h
4+++ chrome/browser/ungoogled_flag_entries.h 4+++ b/chrome/browser/ungoogled_flag_entries.h
5@@ -60,4 +60,8 @@ 5@@ -52,4 +52,8 @@
6 "Popups to tabs", 6 "Popups to tabs",
7 "Makes popups open in new tabs. ungoogled-chromium flag", 7 "Makes popups open in new tabs. ungoogled-chromium flag",
8 kOsAll, SINGLE_VALUE_TYPE("popups-to-tabs")}, 8 kOsAll, SINGLE_VALUE_TYPE("popups-to-tabs")},
@@ -11,8 +11,8 @@
11+ "Keep history older than 3 months. ungoogled-chromium flag", 11+ "Keep history older than 3 months. ungoogled-chromium flag",
12+ kOsAll, SINGLE_VALUE_TYPE("keep-old-history")}, 12+ kOsAll, SINGLE_VALUE_TYPE("keep-old-history")},
13 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_ 13 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
14--- components/history/core/browser/history_backend.cc.orig 14--- a/components/history/core/browser/history_backend.cc
15+++ components/history/core/browser/history_backend.cc 15+++ b/components/history/core/browser/history_backend.cc
16@@ -15,6 +15,7 @@ 16@@ -15,6 +15,7 @@
17 #include <vector> 17 #include <vector>
18 18
@@ -21,7 +21,7 @@
21 #include "base/callback_helpers.h" 21 #include "base/callback_helpers.h"
22 #include "base/compiler_specific.h" 22 #include "base/compiler_specific.h"
23 #include "base/containers/flat_set.h" 23 #include "base/containers/flat_set.h"
24@@ -911,7 +912,8 @@ void HistoryBackend::InitImpl( 24@@ -979,7 +980,8 @@ void HistoryBackend::InitImpl(
25 db_->GetStartDate(&first_recorded_time_); 25 db_->GetStartDate(&first_recorded_time_);
26 26
27 // Start expiring old stuff. 27 // Start expiring old stuff.
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-disable-tls-grease.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-disable-tls-grease.patch
new file mode 100644
index 0000000..0c208d0
--- /dev/null
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-disable-tls-grease.patch
@@ -0,0 +1,23 @@
1--- a/chrome/browser/ungoogled_flag_entries.h
2+++ b/chrome/browser/ungoogled_flag_entries.h
3@@ -92,4 +92,8 @@
4 "Referrer directive",
5 "Allows setting a custom directive for referrer headers. The no cross-origin referrer option removes all cross-origin referrers, the minimal option removes all cross-origin referrers and strips same-origin referrers down to the origin, and the no referrers option removes all referrers. ungoogled-chromium flag.",
6 kOsAll, MULTI_VALUE_TYPE(kReferrerDirective)},
7+ {"disable-grease-tls",
8+ "Disable GREASE for TLS",
9+ "Turn off GREASE (Generate Random Extensions And Sustain Extensibility) for TLS connections. ungoogled-chromium flag.",
10+ kOsAll, SINGLE_VALUE_TYPE("disable-grease-tls")},
11 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
12--- a/net/socket/ssl_client_socket_impl.cc
13+++ b/net/socket/ssl_client_socket_impl.cc
14@@ -311,7 +311,8 @@ class SSLClientSocketImpl::SSLContext {
15 SSL_CTX_sess_set_new_cb(ssl_ctx_.get(), NewSessionCallback);
16 SSL_CTX_set_timeout(ssl_ctx_.get(), 1 * 60 * 60 /* one hour */);
17
18- SSL_CTX_set_grease_enabled(ssl_ctx_.get(), 1);
19+ int grease_mode = !base::CommandLine::ForCurrentProcess()->HasSwitch("disable-grease-tls");
20+ SSL_CTX_set_grease_enabled(ssl_ctx_.get(), grease_mode);
21
22 // Deduplicate all certificates minted from the SSL_CTX in memory.
23 SSL_CTX_set0_buffer_pool(ssl_ctx_.get(), x509_util::GetBufferPool());
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-force-punycode-hostnames.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-force-punycode-hostnames.patch
index be26b2c..840f91a 100644
--- a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-force-punycode-hostnames.patch
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-force-punycode-hostnames.patch
@@ -1,8 +1,8 @@
1# Add flag to force punycode in hostnames instead of Unicode when displaying Internationalized Domain Names (IDNs) to mitigate homograph attacks 1# Add flag to force punycode in hostnames instead of Unicode when displaying Internationalized Domain Names (IDNs) to mitigate homograph attacks
2 2
3--- chrome/browser/ungoogled_flag_entries.h.orig 3--- a/chrome/browser/ungoogled_flag_entries.h
4+++ chrome/browser/ungoogled_flag_entries.h 4+++ b/chrome/browser/ungoogled_flag_entries.h
5@@ -24,4 +24,8 @@ 5@@ -20,4 +20,8 @@
6 "Disable beforeunload", 6 "Disable beforeunload",
7 "Disables JavaScript dialog boxes triggered by beforeunload. ungoogled-chromium flag.", 7 "Disables JavaScript dialog boxes triggered by beforeunload. ungoogled-chromium flag.",
8 kOsAll, SINGLE_VALUE_TYPE("disable-beforeunload")}, 8 kOsAll, SINGLE_VALUE_TYPE("disable-beforeunload")},
@@ -11,17 +11,17 @@
11+ "Force punycode in hostnames instead of Unicode when displaying Internationalized Domain Names (IDNs). ungoogled-chromium flag.", 11+ "Force punycode in hostnames instead of Unicode when displaying Internationalized Domain Names (IDNs). ungoogled-chromium flag.",
12+ kOsAll, SINGLE_VALUE_TYPE("force-punycode-hostnames")}, 12+ kOsAll, SINGLE_VALUE_TYPE("force-punycode-hostnames")},
13 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_ 13 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
14--- components/url_formatter/url_formatter.cc.orig 14--- a/components/url_formatter/url_formatter.cc
15+++ components/url_formatter/url_formatter.cc 15+++ b/components/url_formatter/url_formatter.cc
16@@ -8,6 +8,7 @@ 16@@ -9,6 +9,7 @@
17 #include <utility> 17 #include <utility>
18 #include <vector> 18 #include <vector>
19 19
20+#include "base/command_line.h" 20+#include "base/command_line.h"
21 #include "base/lazy_instance.h" 21 #include "base/lazy_instance.h"
22 #include "base/memory/raw_ptr.h"
22 #include "base/numerics/safe_conversions.h" 23 #include "base/numerics/safe_conversions.h"
23 #include "base/strings/strcat.h" 24@@ -270,6 +271,13 @@ IDNConversionResult IDNToUnicodeWithAdju
24@@ -264,6 +265,13 @@ IDNConversionResult IDNToUnicodeWithAdju
25 host16.reserve(host.length()); 25 host16.reserve(host.length());
26 host16.insert(host16.end(), host.begin(), host.end()); 26 host16.insert(host16.end(), host.begin(), host.end());
27 27
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-hide-crashed-bubble.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-hide-crashed-bubble.patch
index 87da094..a7a43aa 100644
--- a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-hide-crashed-bubble.patch
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-hide-crashed-bubble.patch
@@ -1,21 +1,21 @@
1# Add flag --hide-crashed-bubble to hide the bubble box: 1# Add flag --hide-crashed-bubble to hide the bubble box:
2# "Restore Pages? Chromium didn't shut down correctly." 2# "Restore Pages? Chromium didn't shut down correctly."
3 3
4--- chrome/browser/ui/startup/startup_browser_creator_impl.cc.orig 4--- a/chrome/browser/ui/startup/infobar_utils.cc
5+++ chrome/browser/ui/startup/startup_browser_creator_impl.cc 5+++ b/chrome/browser/ui/startup/infobar_utils.cc
6@@ -648,7 +648,8 @@ void StartupBrowserCreatorImpl::AddInfoB 6@@ -80,7 +80,8 @@ void AddInfoBarsIfNecessary(Browser* bro
7 if (command_line_.HasSwitch(switches::kKioskMode))
8 return; 7 return;
9 8
10- if (HasPendingUncleanExit(browser->profile())) 9 // Web apps should not display the session restore bubble (crbug.com/1264121)
11+ if (HasPendingUncleanExit(browser->profile()) && 10- if (!is_web_app && HasPendingUncleanExit(browser->profile()))
12+ !command_line_.HasSwitch("hide-crashed-bubble")) 11+ if (!is_web_app && HasPendingUncleanExit(browser->profile()) &&
12+ !startup_command_line.HasSwitch("hide-crashed-bubble"))
13 SessionCrashedBubble::ShowIfNotOffTheRecordProfile( 13 SessionCrashedBubble::ShowIfNotOffTheRecordProfile(
14 browser, /*skip_tab_checking=*/false); 14 browser, /*skip_tab_checking=*/false);
15 15
16--- chrome/browser/ungoogled_flag_entries.h.orig 16--- a/chrome/browser/ungoogled_flag_entries.h
17+++ chrome/browser/ungoogled_flag_entries.h 17+++ b/chrome/browser/ungoogled_flag_entries.h
18@@ -32,4 +32,8 @@ 18@@ -28,4 +28,8 @@
19 "Show avatar/people/profile button", 19 "Show avatar/people/profile button",
20 "Show avatar/people/profile button in the browser toolbar. ungoogled-chromium flag.", 20 "Show avatar/people/profile button in the browser toolbar. ungoogled-chromium flag.",
21 kOsDesktop, MULTI_VALUE_TYPE(kShowAvatarButtonChoices)}, 21 kOsDesktop, MULTI_VALUE_TYPE(kShowAvatarButtonChoices)},
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-hide-tab-close-buttons.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-hide-tab-close-buttons.patch
index 7937d6f..2fed6e9 100644
--- a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-hide-tab-close-buttons.patch
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-hide-tab-close-buttons.patch
@@ -1,17 +1,29 @@
1--- chrome/browser/ui/views/tabs/tab_strip.cc.orig 1--- a/chrome/browser/ui/views/tabs/tab.cc
2+++ chrome/browser/ui/views/tabs/tab_strip.cc 2+++ b/chrome/browser/ui/views/tabs/tab.cc
3@@ -1909,6 +1909,8 @@ bool TabStrip::SupportsMultipleSelection 3@@ -991,7 +991,11 @@ void Tab::UpdateIconVisibility() {
4 } 4 if (IsActive()) {
5 // Close button is shown on active tabs regardless of the size.
6 showing_close_button_ = true;
7+ if (base::CommandLine::ForCurrentProcess()->HasSwitch("hide-tab-close-buttons")) {
8+ showing_close_button_ = false;
9+ } else {
10 available_width -= close_button_width;
11+ }
5 12
6 bool TabStrip::ShouldHideCloseButtonForTab(Tab* tab) const { 13 showing_alert_indicator_ =
7+ if (base::CommandLine::ForCurrentProcess()->HasSwitch("hide-tab-close-buttons")) 14 has_alert_icon && alert_icon_width <= available_width;
8+ return true; 15@@ -1012,6 +1016,8 @@ void Tab::UpdateIconVisibility() {
9 if (tab->IsActive()) 16 available_width -= favicon_width;
10 return false; 17
11 return !!touch_layout_; 18 showing_close_button_ = large_enough_for_close_button;
12--- chrome/browser/ungoogled_flag_entries.h.orig 19+ if (base::CommandLine::ForCurrentProcess()->HasSwitch("hide-tab-close-buttons"))
13+++ chrome/browser/ungoogled_flag_entries.h 20+ showing_close_button_ = false;
14@@ -92,4 +92,8 @@ 21 if (showing_close_button_)
22 available_width -= close_button_width;
23
24--- a/chrome/browser/ungoogled_flag_entries.h
25+++ b/chrome/browser/ungoogled_flag_entries.h
26@@ -84,4 +84,8 @@
15 "Tab Hover Cards", 27 "Tab Hover Cards",
16 "Allows removing the tab hover cards or using a tooltip as a replacement. ungoogled-chromium flag.", 28 "Allows removing the tab hover cards or using a tooltip as a replacement. ungoogled-chromium flag.",
17 kOsDesktop, MULTI_VALUE_TYPE(kTabHoverCards)}, 29 kOsDesktop, MULTI_VALUE_TYPE(kTabHoverCards)},
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-scroll-tabs.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-scroll-tabs.patch
index d657480..1dbdbb8 100644
--- a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-scroll-tabs.patch
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-scroll-tabs.patch
@@ -1,14 +1,14 @@
1--- chrome/browser/ui/views/frame/browser_root_view.cc.orig 1--- a/chrome/browser/ui/views/frame/browser_root_view.cc
2+++ chrome/browser/ui/views/frame/browser_root_view.cc 2+++ b/chrome/browser/ui/views/frame/browser_root_view.cc
3@@ -11,6 +11,7 @@ 3@@ -11,6 +11,7 @@
4 4
5 #include "base/bind.h" 5 #include "base/bind.h"
6 #include "base/callback_helpers.h" 6 #include "base/callback_helpers.h"
7+#include "base/command_line.h" 7+#include "base/command_line.h"
8 #include "base/metrics/user_metrics.h" 8 #include "base/metrics/user_metrics.h"
9 #include "base/task/post_task.h"
10 #include "base/task/thread_pool.h" 9 #include "base/task/thread_pool.h"
11@@ -109,6 +110,18 @@ DragOperation GetDropEffect(const ui::Dr 10 #include "chrome/browser/autocomplete/autocomplete_classifier_factory.h"
11@@ -108,6 +109,18 @@ DragOperation GetDropEffect(const ui::Dr
12 return DragOperation::kMove; 12 return DragOperation::kMove;
13 } 13 }
14 14
@@ -27,7 +27,7 @@
27 } // namespace 27 } // namespace
28 28
29 BrowserRootView::DropInfo::DropInfo() = default; 29 BrowserRootView::DropInfo::DropInfo() = default;
30@@ -120,7 +133,9 @@ BrowserRootView::DropInfo::~DropInfo() { 30@@ -119,7 +132,9 @@ BrowserRootView::DropInfo::~DropInfo() {
31 31
32 BrowserRootView::BrowserRootView(BrowserView* browser_view, 32 BrowserRootView::BrowserRootView(BrowserView* browser_view,
33 views::Widget* widget) 33 views::Widget* widget)
@@ -38,7 +38,7 @@
38 38
39 BrowserRootView::~BrowserRootView() { 39 BrowserRootView::~BrowserRootView() {
40 // It's possible to destroy the browser while a drop is active. In this case, 40 // It's possible to destroy the browser while a drop is active. In this case,
41@@ -245,7 +260,7 @@ bool BrowserRootView::OnMouseWheel(const 41@@ -241,7 +256,7 @@ bool BrowserRootView::OnMouseWheel(const
42 42
43 // Scroll-event-changes-tab is incompatible with scrolling tabstrip, so 43 // Scroll-event-changes-tab is incompatible with scrolling tabstrip, so
44 // disable it if the latter feature is enabled. 44 // disable it if the latter feature is enabled.
@@ -47,8 +47,8 @@
47 !base::FeatureList::IsEnabled(features::kScrollableTabStrip)) { 47 !base::FeatureList::IsEnabled(features::kScrollableTabStrip)) {
48 // Switch to the left/right tab if the wheel-scroll happens over the 48 // Switch to the left/right tab if the wheel-scroll happens over the
49 // tabstrip, or the empty space beside the tabstrip. 49 // tabstrip, or the empty space beside the tabstrip.
50--- chrome/browser/ui/views/frame/browser_root_view.h.orig 50--- a/chrome/browser/ui/views/frame/browser_root_view.h
51+++ chrome/browser/ui/views/frame/browser_root_view.h 51+++ b/chrome/browser/ui/views/frame/browser_root_view.h
52@@ -143,6 +143,8 @@ class BrowserRootView : public views::in 52@@ -143,6 +143,8 @@ class BrowserRootView : public views::in
53 int scroll_remainder_x_ = 0; 53 int scroll_remainder_x_ = 0;
54 int scroll_remainder_y_ = 0; 54 int scroll_remainder_y_ = 0;
@@ -58,8 +58,8 @@
58 std::unique_ptr<DropInfo> drop_info_; 58 std::unique_ptr<DropInfo> drop_info_;
59 59
60 base::WeakPtrFactory<BrowserRootView> weak_ptr_factory_{this}; 60 base::WeakPtrFactory<BrowserRootView> weak_ptr_factory_{this};
61--- chrome/browser/ungoogled_flag_choices.h.orig 61--- a/chrome/browser/ungoogled_flag_choices.h
62+++ chrome/browser/ungoogled_flag_choices.h 62+++ b/chrome/browser/ungoogled_flag_choices.h
63@@ -25,4 +25,13 @@ const FeatureEntry::Choice kShowAvatarBu 63@@ -25,4 +25,13 @@ const FeatureEntry::Choice kShowAvatarBu
64 "show-avatar-button", 64 "show-avatar-button",
65 "never"} 65 "never"}
@@ -74,9 +74,9 @@
74+ "never"} 74+ "never"}
75+}; 75+};
76 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_CHOICES_H_ 76 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_CHOICES_H_
77--- chrome/browser/ungoogled_flag_entries.h.orig 77--- a/chrome/browser/ungoogled_flag_entries.h
78+++ chrome/browser/ungoogled_flag_entries.h 78+++ b/chrome/browser/ungoogled_flag_entries.h
79@@ -36,4 +36,8 @@ 79@@ -32,4 +32,8 @@
80 "Hide crashed bubble", 80 "Hide crashed bubble",
81 "Hides the bubble box with the message \"Restore Pages? Chromium didn't shut down correctly.\" that shows on startup after the browser did not exit cleanly. ungoogled-chromium flag.", 81 "Hides the bubble box with the message \"Restore Pages? Chromium didn't shut down correctly.\" that shows on startup after the browser did not exit cleanly. ungoogled-chromium flag.",
82 kOsAll, SINGLE_VALUE_TYPE("hide-crashed-bubble")}, 82 kOsAll, SINGLE_VALUE_TYPE("hide-crashed-bubble")},
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-show-avatar-button.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-show-avatar-button.patch
index 8fe39bd..406abe4 100644
--- a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-show-avatar-button.patch
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-show-avatar-button.patch
@@ -1,6 +1,6 @@
1--- chrome/browser/ui/views/toolbar/toolbar_view.cc.orig 1--- a/chrome/browser/ui/views/toolbar/toolbar_view.cc
2+++ chrome/browser/ui/views/toolbar/toolbar_view.cc 2+++ b/chrome/browser/ui/views/toolbar/toolbar_view.cc
3@@ -273,12 +273,28 @@ void ToolbarView::Init() { 3@@ -284,14 +284,30 @@ void ToolbarView::Init() {
4 4
5 std::unique_ptr<ToolbarAccountIconContainerView> 5 std::unique_ptr<ToolbarAccountIconContainerView>
6 toolbar_account_icon_container; 6 toolbar_account_icon_container;
@@ -19,6 +19,8 @@
19- show_avatar_toolbar_button = browser_->profile()->IsOffTheRecord() || 19- show_avatar_toolbar_button = browser_->profile()->IsOffTheRecord() ||
20- browser_->profile()->IsGuestSession(); 20- browser_->profile()->IsGuestSession();
21+ show_avatar_toolbar_button = in_incognito_or_guest_mode; 21+ show_avatar_toolbar_button = in_incognito_or_guest_mode;
22 #elif BUILDFLAG(IS_CHROMEOS_LACROS)
23 show_avatar_toolbar_button = !profiles::IsPublicSession();
22 #endif 24 #endif
23+ 25+
24+ if (flag_value == "always") 26+ if (flag_value == "always")
@@ -31,8 +33,8 @@
31 if (base::FeatureList::IsEnabled( 33 if (base::FeatureList::IsEnabled(
32 autofill::features::kAutofillEnableToolbarStatusChip)) { 34 autofill::features::kAutofillEnableToolbarStatusChip)) {
33 // The avatar button is contained inside the page-action container and 35 // The avatar button is contained inside the page-action container and
34--- chrome/browser/ungoogled_flag_choices.h.orig 36--- a/chrome/browser/ungoogled_flag_choices.h
35+++ chrome/browser/ungoogled_flag_choices.h 37+++ b/chrome/browser/ungoogled_flag_choices.h
36@@ -13,4 +13,16 @@ const FeatureEntry::Choice kExtensionHan 38@@ -13,4 +13,16 @@ const FeatureEntry::Choice kExtensionHan
37 "extension-mime-request-handling", 39 "extension-mime-request-handling",
38 "always-prompt-for-install"}, 40 "always-prompt-for-install"},
@@ -50,9 +52,9 @@
50+ "never"} 52+ "never"}
51+}; 53+};
52 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_CHOICES_H_ 54 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_CHOICES_H_
53--- chrome/browser/ungoogled_flag_entries.h.orig 55--- a/chrome/browser/ungoogled_flag_entries.h
54+++ chrome/browser/ungoogled_flag_entries.h 56+++ b/chrome/browser/ungoogled_flag_entries.h
55@@ -28,4 +28,8 @@ 57@@ -24,4 +24,8 @@
56 "Force punycode hostnames", 58 "Force punycode hostnames",
57 "Force punycode in hostnames instead of Unicode when displaying Internationalized Domain Names (IDNs). ungoogled-chromium flag.", 59 "Force punycode in hostnames instead of Unicode when displaying Internationalized Domain Names (IDNs). ungoogled-chromium flag.",
58 kOsAll, SINGLE_VALUE_TYPE("force-punycode-hostnames")}, 60 kOsAll, SINGLE_VALUE_TYPE("force-punycode-hostnames")},
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-stack-tabs.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-stack-tabs.patch
deleted file mode 100644
index 6e19e76..0000000
--- a/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-stack-tabs.patch
+++ /dev/null
@@ -1,33 +0,0 @@
1# Add --enable-stacked-tab-strip and --enable-tab-adjust-layout flags to tweak tab strip behavior
2
3--- chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc.orig
4+++ chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc
5@@ -83,14 +83,13 @@ using content::WebContents;
6 namespace {
7
8 bool DetermineTabStripLayoutStacked(PrefService* prefs, bool* adjust_layout) {
9- *adjust_layout = false;
10- // For ash, always allow entering stacked mode.
11 #if BUILDFLAG(IS_CHROMEOS_ASH)
12 *adjust_layout = true;
13 return prefs->GetBoolean(prefs::kTabStripStackedLayout);
14 #else
15- return base::CommandLine::ForCurrentProcess()->HasSwitch(
16- switches::kForceStackedTabStripLayout);
17+ *adjust_layout = base::CommandLine::ForCurrentProcess()->HasSwitch("enable-tab-adjust-layout");
18+ return prefs->GetBoolean(prefs::kTabStripStackedLayout) ||
19+ base::CommandLine::ForCurrentProcess()->HasSwitch("enable-stacked-tab-strip");
20 #endif
21 }
22
23--- chrome/browser/ungoogled_flag_entries.h.orig
24+++ chrome/browser/ungoogled_flag_entries.h
25@@ -8,4 +8,8 @@
26 "SetIpv6ProbeFalse",
27 "Forces the result of the browser's IPv6 probing (i.e. IPv6 connectivity test) to be unsuccessful. This causes IPv4 addresses to be prioritized over IPv6 addresses. Without this flag, the probing result is set to be successful, which causes IPv6 to be used over IPv4 when possible. ungoogled-chromium flag.",
28 kOsAll, FEATURE_VALUE_TYPE(net::features::kSetIpv6ProbeFalse)},
29+ {"enable-stacked-tab-strip",
30+ "Enable stacking in the tab strip",
31+ "Forces tabs to be stacked in the tab strip. Otherwise, they follow default behavior. ungoogled-chromium flag.",
32+ kOsAll, SINGLE_VALUE_TYPE("enable-stacked-tab-strip")},
33 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/add-ipv6-probing-option.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/add-ipv6-probing-option.patch
index 0bc5dd5..947d785 100644
--- a/www/chromium-uc/patches/extra/ungoogled-chromium/add-ipv6-probing-option.patch
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/add-ipv6-probing-option.patch
@@ -1,7 +1,7 @@
1# Disables IPv6 probing and adds an option to change the IPv6 probing result 1# Disables IPv6 probing and adds an option to change the IPv6 probing result
2 2
3--- chrome/browser/ungoogled_flag_entries.h.orig 3--- a/chrome/browser/ungoogled_flag_entries.h
4+++ chrome/browser/ungoogled_flag_entries.h 4+++ b/chrome/browser/ungoogled_flag_entries.h
5@@ -4,4 +4,8 @@ 5@@ -4,4 +4,8 @@
6 6
7 #ifndef CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_ 7 #ifndef CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
@@ -11,30 +11,30 @@
11+ "Forces the result of the browser's IPv6 probing (i.e. IPv6 connectivity test) to be unsuccessful. This causes IPv4 addresses to be prioritized over IPv6 addresses. Without this flag, the probing result is set to be successful, which causes IPv6 to be used over IPv4 when possible. ungoogled-chromium flag.", 11+ "Forces the result of the browser's IPv6 probing (i.e. IPv6 connectivity test) to be unsuccessful. This causes IPv4 addresses to be prioritized over IPv6 addresses. Without this flag, the probing result is set to be successful, which causes IPv6 to be used over IPv4 when possible. ungoogled-chromium flag.",
12+ kOsAll, FEATURE_VALUE_TYPE(net::features::kSetIpv6ProbeFalse)}, 12+ kOsAll, FEATURE_VALUE_TYPE(net::features::kSetIpv6ProbeFalse)},
13 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_ 13 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
14--- net/base/features.cc.orig 14--- a/net/base/features.cc
15+++ net/base/features.cc 15+++ b/net/base/features.cc
16@@ -263,5 +263,7 @@ const base::Feature kPartitionedCookies{ 16@@ -293,5 +293,7 @@ const base::Feature kClampCookieExpiryTo
17 const base::Feature kExtraCookieValidityChecks{ 17 "ClampCookieExpiryTo400Days",
18 "ExtraCookieValidityChecks", base::FEATURE_ENABLED_BY_DEFAULT}; 18 base::FEATURE_DISABLED_BY_DEFAULT);
19 19
20+const base::Feature kSetIpv6ProbeFalse{"SetIpv6ProbeFalse", base::FEATURE_DISABLED_BY_DEFAULT}; 20+const base::Feature kSetIpv6ProbeFalse{"SetIpv6ProbeFalse", base::FEATURE_DISABLED_BY_DEFAULT};
21+ 21+
22 } // namespace features 22 } // namespace features
23 } // namespace net 23 } // namespace net
24--- net/base/features.h.orig 24--- a/net/base/features.h
25+++ net/base/features.h 25+++ b/net/base/features.h
26@@ -396,6 +396,8 @@ NET_EXPORT extern const base::Feature kP 26@@ -430,6 +430,8 @@ NET_EXPORT extern const base::Feature kS
27 // feature flag, assuming no breakage occurs with it enabled. 27 // future.
28 NET_EXPORT extern const base::Feature kExtraCookieValidityChecks; 28 NET_EXPORT extern const base::Feature kClampCookieExpiryTo400Days;
29 29
30+NET_EXPORT extern const base::Feature kSetIpv6ProbeFalse; 30+NET_EXPORT extern const base::Feature kSetIpv6ProbeFalse;
31+ 31+
32 } // namespace features 32 } // namespace features
33 } // namespace net 33 } // namespace net
34 34
35--- net/dns/host_resolver_manager.cc.orig 35--- a/net/dns/host_resolver_manager.cc
36+++ net/dns/host_resolver_manager.cc 36+++ b/net/dns/host_resolver_manager.cc
37@@ -139,11 +139,6 @@ const unsigned kMinimumTTLSeconds = kCac 37@@ -153,11 +153,6 @@ const unsigned kMinimumTTLSeconds = kCac
38 // cached. 38 // cached.
39 const int kIPv6ProbePeriodMs = 1000; 39 const int kIPv6ProbePeriodMs = 1000;
40 40
@@ -46,7 +46,7 @@
46 enum DnsResolveStatus { 46 enum DnsResolveStatus {
47 RESOLVE_STATUS_DNS_SUCCESS = 0, 47 RESOLVE_STATUS_DNS_SUCCESS = 0,
48 RESOLVE_STATUS_PROC_SUCCESS, 48 RESOLVE_STATUS_PROC_SUCCESS,
49@@ -3696,7 +3691,7 @@ bool HostResolverManager::IsIPv6Reachabl 49@@ -4130,7 +4125,7 @@ bool HostResolverManager::IsIPv6Reachabl
50 (tick_clock_->NowTicks() - last_ipv6_probe_time_).InMilliseconds() > 50 (tick_clock_->NowTicks() - last_ipv6_probe_time_).InMilliseconds() >
51 kIPv6ProbePeriodMs) { 51 kIPv6ProbePeriodMs) {
52 SetLastIPv6ProbeResult( 52 SetLastIPv6ProbeResult(
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/add-suggestions-url-field.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/add-suggestions-url-field.patch
index 9ff8cfa..1e3b504 100644
--- a/www/chromium-uc/patches/extra/ungoogled-chromium/add-suggestions-url-field.patch
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/add-suggestions-url-field.patch
@@ -1,8 +1,8 @@
1# Add suggestions URL text field to the search engine editing dialog 1# Add suggestions URL text field to the search engine editing dialog
2# (chrome://settings/searchEngines). 2# (chrome://settings/searchEngines).
3 3
4--- chrome/browser/resources/settings/search_engines_page/search_engine_dialog.html.orig 4--- a/chrome/browser/resources/settings/search_engines_page/search_engine_edit_dialog.html
5+++ chrome/browser/resources/settings/search_engines_page/search_engine_dialog.html 5+++ b/chrome/browser/resources/settings/search_engines_page/search_engine_edit_dialog.html
6@@ -20,6 +20,13 @@ 6@@ -20,6 +20,13 @@
7 value="{{queryUrl_}}" on-focus="validate_" on-input="validate_" 7 value="{{queryUrl_}}" on-focus="validate_" on-input="validate_"
8 disabled$="[[model.urlLocked]]"> 8 disabled$="[[model.urlLocked]]">
@@ -17,9 +17,9 @@
17 </div> 17 </div>
18 <div slot="button-container"> 18 <div slot="button-container">
19 <cr-button class="cancel-button" on-click="cancel_" id="cancel"> 19 <cr-button class="cancel-button" on-click="cancel_" id="cancel">
20--- chrome/browser/resources/settings/search_engines_page/search_engine_dialog.ts.orig 20--- a/chrome/browser/resources/settings/search_engines_page/search_engine_edit_dialog.ts
21+++ chrome/browser/resources/settings/search_engines_page/search_engine_dialog.ts 21+++ b/chrome/browser/resources/settings/search_engines_page/search_engine_edit_dialog.ts
22@@ -26,6 +26,7 @@ interface SettingsSearchEngineDialogElem 22@@ -28,6 +28,7 @@ export interface SettingsSearchEngineEdi
23 dialog: CrDialogElement, 23 dialog: CrDialogElement,
24 keyword: CrInputElement, 24 keyword: CrInputElement,
25 queryUrl: CrInputElement, 25 queryUrl: CrInputElement,
@@ -27,23 +27,23 @@
27 searchEngine: CrInputElement, 27 searchEngine: CrInputElement,
28 }; 28 };
29 } 29 }
30@@ -54,6 +55,7 @@ class SettingsSearchEngineDialogElement 30@@ -56,6 +57,7 @@ export class SettingsSearchEngineEditDia
31 searchEngine_: String, 31 searchEngine_: String,
32 keyword_: String, 32 keyword_: String,
33 queryUrl_: String, 33 queryUrl_: String,
34+ suggestionsUrl_: String, 34+ suggestionsUrl_: String,
35 dialogTitle_: String, 35 dialogTitle_: String,
36 keywordFieldLabel_: String,
36 actionButtonText_: String, 37 actionButtonText_: String,
37 }; 38@@ -72,6 +74,7 @@ export class SettingsSearchEngineEditDia
38@@ -63,6 +65,7 @@ class SettingsSearchEngineDialogElement
39 private searchEngine_: string; 39 private searchEngine_: string;
40 private keyword_: string; 40 private keyword_: string;
41 private queryUrl_: string; 41 private queryUrl_: string;
42+ private suggestionsUrl_: string; 42+ private suggestionsUrl_: string;
43 private dialogTitle_: string; 43 private dialogTitle_: string;
44 private keywordFieldLabel_: string;
44 private actionButtonText_: string; 45 private actionButtonText_: string;
45 private browserProxy_: SearchEnginesBrowserProxy = 46@@ -103,6 +106,7 @@ export class SettingsSearchEngineEditDia
46@@ -92,6 +95,7 @@ class SettingsSearchEngineDialogElement
47 this.searchEngine_ = this.model.name; 47 this.searchEngine_ = this.model.name;
48 this.keyword_ = this.model.keyword; 48 this.keyword_ = this.model.keyword;
49 this.queryUrl_ = this.model.url; 49 this.queryUrl_ = this.model.url;
@@ -51,7 +51,7 @@
51 } else { 51 } else {
52 this.dialogTitle_ = 52 this.dialogTitle_ =
53 loadTimeData.getString('searchEnginesAddSearchEngine'); 53 loadTimeData.getString('searchEnginesAddSearchEngine');
54@@ -127,8 +131,12 @@ class SettingsSearchEngineDialogElement 54@@ -142,8 +146,12 @@ export class SettingsSearchEngineEditDia
55 } 55 }
56 } 56 }
57 57
@@ -66,7 +66,7 @@
66 } 66 }
67 67
68 private cancel_() { 68 private cancel_() {
69@@ -137,7 +145,8 @@ class SettingsSearchEngineDialogElement 69@@ -152,7 +160,8 @@ export class SettingsSearchEngineEditDia
70 70
71 private onActionButtonTap_() { 71 private onActionButtonTap_() {
72 this.browserProxy_.searchEngineEditCompleted( 72 this.browserProxy_.searchEngineEditCompleted(
@@ -76,7 +76,7 @@
76 this.$.dialog.close(); 76 this.$.dialog.close();
77 } 77 }
78 78
79@@ -165,9 +174,11 @@ class SettingsSearchEngineDialogElement 79@@ -180,9 +189,11 @@ export class SettingsSearchEngineEditDia
80 80
81 private updateActionButtonState_() { 81 private updateActionButtonState_() {
82 const allValid = [ 82 const allValid = [
@@ -90,17 +90,17 @@
90 }); 90 });
91 this.$.actionButton.disabled = !allValid; 91 this.$.actionButton.disabled = !allValid;
92 } 92 }
93--- chrome/browser/resources/settings/search_engines_page/search_engines_browser_proxy.ts.orig 93--- a/chrome/browser/resources/settings/search_engines_page/search_engines_browser_proxy.ts
94+++ chrome/browser/resources/settings/search_engines_page/search_engines_browser_proxy.ts 94+++ b/chrome/browser/resources/settings/search_engines_page/search_engines_browser_proxy.ts
95@@ -30,6 +30,7 @@ export type SearchEngine = { 95@@ -31,6 +31,7 @@ export type SearchEngine = {
96 modelIndex: number,
97 name: string, 96 name: string,
97 shouldConfirmDeletion: boolean,
98 url: string, 98 url: string,
99+ suggestionsUrl: string, 99+ suggestionsUrl: string,
100 urlLocked: boolean, 100 urlLocked: boolean,
101 }; 101 };
102 102
103@@ -53,7 +54,7 @@ export interface SearchEnginesBrowserPro 103@@ -73,7 +74,7 @@ export interface SearchEnginesBrowserPro
104 searchEngineEditCancelled(): void; 104 searchEngineEditCancelled(): void;
105 105
106 searchEngineEditCompleted( 106 searchEngineEditCompleted(
@@ -109,7 +109,7 @@
109 109
110 getSearchEnginesList(): Promise<SearchEnginesInfo>; 110 getSearchEnginesList(): Promise<SearchEnginesInfo>;
111 111
112@@ -84,11 +85,12 @@ export class SearchEnginesBrowserProxyIm 112@@ -114,11 +115,12 @@ export class SearchEnginesBrowserProxyIm
113 } 113 }
114 114
115 searchEngineEditCompleted( 115 searchEngineEditCompleted(
@@ -123,8 +123,8 @@
123 ]); 123 ]);
124 } 124 }
125 125
126--- chrome/browser/ui/search_engines/edit_search_engine_controller.cc.orig 126--- a/chrome/browser/ui/search_engines/edit_search_engine_controller.cc
127+++ chrome/browser/ui/search_engines/edit_search_engine_controller.cc 127+++ b/chrome/browser/ui/search_engines/edit_search_engine_controller.cc
128@@ -67,6 +67,15 @@ bool EditSearchEngineController::IsURLVa 128@@ -67,6 +67,15 @@ bool EditSearchEngineController::IsURLVa
129 .is_valid(); 129 .is_valid();
130 } 130 }
@@ -165,8 +165,8 @@
165 } 165 }
166 } 166 }
167 167
168--- chrome/browser/ui/search_engines/edit_search_engine_controller.h.orig 168--- a/chrome/browser/ui/search_engines/edit_search_engine_controller.h
169+++ chrome/browser/ui/search_engines/edit_search_engine_controller.h 169+++ b/chrome/browser/ui/search_engines/edit_search_engine_controller.h
170@@ -23,7 +23,8 @@ class EditSearchEngineControllerDelegate 170@@ -23,7 +23,8 @@ class EditSearchEngineControllerDelegate
171 virtual void OnEditedKeyword(TemplateURL* template_url, 171 virtual void OnEditedKeyword(TemplateURL* template_url,
172 const std::u16string& title, 172 const std::u16string& title,
@@ -196,8 +196,8 @@
196 196
197 // Deletes an unused TemplateURL, if its add was cancelled and it's not 197 // Deletes an unused TemplateURL, if its add was cancelled and it's not
198 // already owned by the TemplateURLService. 198 // already owned by the TemplateURLService.
199--- chrome/browser/ui/search_engines/keyword_editor_controller.cc.orig 199--- a/chrome/browser/ui/search_engines/keyword_editor_controller.cc
200+++ chrome/browser/ui/search_engines/keyword_editor_controller.cc 200+++ b/chrome/browser/ui/search_engines/keyword_editor_controller.cc
201@@ -21,23 +21,27 @@ KeywordEditorController::KeywordEditorCo 201@@ -21,23 +21,27 @@ KeywordEditorController::KeywordEditorCo
202 KeywordEditorController::~KeywordEditorController() { 202 KeywordEditorController::~KeywordEditorController() {
203 } 203 }
@@ -249,8 +249,8 @@
249 249
250 base::RecordAction(UserMetricsAction("KeywordEditor_ModifiedKeyword")); 250 base::RecordAction(UserMetricsAction("KeywordEditor_ModifiedKeyword"));
251 } 251 }
252--- chrome/browser/ui/search_engines/keyword_editor_controller.h.orig 252--- a/chrome/browser/ui/search_engines/keyword_editor_controller.h
253+++ chrome/browser/ui/search_engines/keyword_editor_controller.h 253+++ b/chrome/browser/ui/search_engines/keyword_editor_controller.h
254@@ -29,14 +29,16 @@ class KeywordEditorController { 254@@ -29,14 +29,16 @@ class KeywordEditorController {
255 // model. Returns the index of the added URL. 255 // model. Returns the index of the added URL.
256 int AddTemplateURL(const std::u16string& title, 256 int AddTemplateURL(const std::u16string& title,
@@ -270,9 +270,9 @@
270 270
271 // Return true if the given |url| can be edited. 271 // Return true if the given |url| can be edited.
272 bool CanEdit(const TemplateURL* url) const; 272 bool CanEdit(const TemplateURL* url) const;
273--- chrome/browser/ui/search_engines/template_url_table_model.cc.orig 273--- a/chrome/browser/ui/search_engines/template_url_table_model.cc
274+++ chrome/browser/ui/search_engines/template_url_table_model.cc 274+++ b/chrome/browser/ui/search_engines/template_url_table_model.cc
275@@ -109,21 +109,25 @@ void TemplateURLTableModel::Remove(int i 275@@ -108,21 +108,25 @@ void TemplateURLTableModel::Remove(int i
276 void TemplateURLTableModel::Add(int index, 276 void TemplateURLTableModel::Add(int index,
277 const std::u16string& short_name, 277 const std::u16string& short_name,
278 const std::u16string& keyword, 278 const std::u16string& keyword,
@@ -303,7 +303,7 @@
303 DCHECK(index >= 0 && index <= RowCount()); 303 DCHECK(index >= 0 && index <= RowCount());
304 DCHECK(!url.empty()); 304 DCHECK(!url.empty());
305 TemplateURL* template_url = GetTemplateURL(index); 305 TemplateURL* template_url = GetTemplateURL(index);
306@@ -132,7 +136,8 @@ void TemplateURLTableModel::ModifyTempla 306@@ -131,7 +135,8 @@ void TemplateURLTableModel::ModifyTempla
307 DCHECK(template_url_service_->GetDefaultSearchProvider() != template_url || 307 DCHECK(template_url_service_->GetDefaultSearchProvider() != template_url ||
308 template_url->SupportsReplacement( 308 template_url->SupportsReplacement(
309 template_url_service_->search_terms_data())); 309 template_url_service_->search_terms_data()));
@@ -313,9 +313,9 @@
313 } 313 }
314 314
315 TemplateURL* TemplateURLTableModel::GetTemplateURL(int index) { 315 TemplateURL* TemplateURLTableModel::GetTemplateURL(int index) {
316--- chrome/browser/ui/search_engines/template_url_table_model.h.orig 316--- a/chrome/browser/ui/search_engines/template_url_table_model.h
317+++ chrome/browser/ui/search_engines/template_url_table_model.h 317+++ b/chrome/browser/ui/search_engines/template_url_table_model.h
318@@ -54,13 +54,15 @@ class TemplateURLTableModel : public ui: 318@@ -53,13 +53,15 @@ class TemplateURLTableModel : public ui:
319 void Add(int index, 319 void Add(int index,
320 const std::u16string& short_name, 320 const std::u16string& short_name,
321 const std::u16string& keyword, 321 const std::u16string& keyword,
@@ -333,8 +333,8 @@
333 333
334 // Reloads the icon at the specified index. 334 // Reloads the icon at the specified index.
335 void ReloadIcon(int index); 335 void ReloadIcon(int index);
336--- chrome/browser/ui/webui/settings/search_engines_handler.cc.orig 336--- a/chrome/browser/ui/webui/settings/search_engines_handler.cc
337+++ chrome/browser/ui/webui/settings/search_engines_handler.cc 337+++ b/chrome/browser/ui/webui/settings/search_engines_handler.cc
338@@ -37,6 +37,7 @@ namespace { 338@@ -37,6 +37,7 @@ namespace {
339 const char kSearchEngineField[] = "searchEngine"; 339 const char kSearchEngineField[] = "searchEngine";
340 const char kKeywordField[] = "keyword"; 340 const char kKeywordField[] = "keyword";
@@ -343,17 +343,16 @@
343 343
344 // Dummy number used for indicating that a new search engine is added. 344 // Dummy number used for indicating that a new search engine is added.
345 const int kNewSearchEngineIndex = -1; 345 const int kNewSearchEngineIndex = -1;
346@@ -212,6 +213,9 @@ SearchEnginesHandler::CreateDictionaryFo 346@@ -216,6 +217,8 @@ base::Value::Dict SearchEnginesHandler::
347 Profile* profile = Profile::FromWebUI(web_ui()); 347 Profile* profile = Profile::FromWebUI(web_ui());
348 dict->SetString( 348 dict.Set("url",
349 "url", template_url->url_ref().DisplayURL(UIThreadSearchTermsData())); 349 template_url->url_ref().DisplayURL(UIThreadSearchTermsData()));
350+ dict->SetString("suggestionsUrl", 350+ dict.Set("suggestionsUrl", template_url->suggestions_url_ref().DisplayURL(
351+ template_url->suggestions_url_ref().DisplayURL( 351+ UIThreadSearchTermsData()));
352+ UIThreadSearchTermsData())); 352 dict.Set("urlLocked", template_url->prepopulate_id() > 0);
353 dict->SetBoolean("urlLocked", template_url->prepopulate_id() > 0);
354 GURL icon_url = template_url->favicon_url(); 353 GURL icon_url = template_url->favicon_url();
355 if (icon_url.is_valid()) 354 if (icon_url.is_valid())
356@@ -325,12 +329,14 @@ void SearchEnginesHandler::HandleSearchE 355@@ -317,12 +320,14 @@ void SearchEnginesHandler::HandleSearchE
357 void SearchEnginesHandler::OnEditedKeyword(TemplateURL* template_url, 356 void SearchEnginesHandler::OnEditedKeyword(TemplateURL* template_url,
358 const std::u16string& title, 357 const std::u16string& title,
359 const std::u16string& keyword, 358 const std::u16string& keyword,
@@ -371,7 +370,7 @@
371 370
372 edit_controller_.reset(); 371 edit_controller_.reset();
373 } 372 }
374@@ -361,6 +367,8 @@ bool SearchEnginesHandler::CheckFieldVal 373@@ -350,6 +355,8 @@ bool SearchEnginesHandler::CheckFieldVal
375 is_valid = edit_controller_->IsKeywordValid(base::UTF8ToUTF16(field_value)); 374 is_valid = edit_controller_->IsKeywordValid(base::UTF8ToUTF16(field_value));
376 else if (field_name.compare(kQueryUrlField) == 0) 375 else if (field_name.compare(kQueryUrlField) == 0)
377 is_valid = edit_controller_->IsURLValid(field_value); 376 is_valid = edit_controller_->IsURLValid(field_value);
@@ -380,15 +379,16 @@
380 else 379 else
381 NOTREACHED(); 380 NOTREACHED();
382 381
383@@ -382,17 +390,21 @@ void SearchEnginesHandler::HandleSearchE 382@@ -369,18 +376,21 @@ void SearchEnginesHandler::HandleSearchE
384 std::string search_engine; 383 if (!edit_controller_.get())
385 std::string keyword; 384 return;
386 std::string query_url; 385
387+ std::string suggestions_url; 386- CHECK_EQ(3U, args.size());
388 CHECK(args->GetString(0, &search_engine)); 387+ CHECK_EQ(4U, args.size());
389 CHECK(args->GetString(1, &keyword)); 388 const std::string& search_engine = args[0].GetString();
390 CHECK(args->GetString(2, &query_url)); 389 const std::string& keyword = args[1].GetString();
391+ CHECK(args->GetString(3, &suggestions_url)); 390 const std::string& query_url = args[2].GetString();
391+ const std::string& suggestions_url = args[3].GetString();
392 392
393 // Recheck validity. It's possible to get here with invalid input if e.g. the 393 // Recheck validity. It's possible to get here with invalid input if e.g. the
394 // user calls the right JS functions directly from the web inspector. 394 // user calls the right JS functions directly from the web inspector.
@@ -404,9 +404,9 @@
404 } 404 }
405 } 405 }
406 406
407--- chrome/browser/ui/webui/settings/search_engines_handler.h.orig 407--- a/chrome/browser/ui/webui/settings/search_engines_handler.h
408+++ chrome/browser/ui/webui/settings/search_engines_handler.h 408+++ b/chrome/browser/ui/webui/settings/search_engines_handler.h
409@@ -50,7 +50,8 @@ class SearchEnginesHandler : public Sett 409@@ -45,7 +45,8 @@ class SearchEnginesHandler : public Sett
410 void OnEditedKeyword(TemplateURL* template_url, 410 void OnEditedKeyword(TemplateURL* template_url,
411 const std::u16string& title, 411 const std::u16string& title,
412 const std::u16string& keyword, 412 const std::u16string& keyword,
@@ -416,9 +416,9 @@
416 416
417 // SettingsPageUIHandler implementation. 417 // SettingsPageUIHandler implementation.
418 void RegisterMessages() override; 418 void RegisterMessages() override;
419@@ -82,8 +83,8 @@ class SearchEnginesHandler : public Sett 419@@ -77,8 +78,8 @@ class SearchEnginesHandler : public Sett
420 // to WebUI. Called from WebUI. 420 // to WebUI. Called from WebUI.
421 void HandleValidateSearchEngineInput(const base::ListValue* args); 421 void HandleValidateSearchEngineInput(const base::Value::List& args);
422 422
423- // Checks whether the given user input field (searchEngine, keyword, queryUrl) 423- // Checks whether the given user input field (searchEngine, keyword, queryUrl)
424- // is populated with a valid value. 424- // is populated with a valid value.
@@ -427,9 +427,9 @@
427 bool CheckFieldValidity(const std::string& field_name, 427 bool CheckFieldValidity(const std::string& field_name,
428 const std::string& field_value); 428 const std::string& field_value);
429 429
430--- components/search_engines/template_url_service.cc.orig 430--- a/components/search_engines/template_url_service.cc
431+++ components/search_engines/template_url_service.cc 431+++ b/components/search_engines/template_url_service.cc
432@@ -641,7 +641,8 @@ void TemplateURLService::IncrementUsageC 432@@ -644,7 +644,8 @@ void TemplateURLService::IncrementUsageC
433 void TemplateURLService::ResetTemplateURL(TemplateURL* url, 433 void TemplateURLService::ResetTemplateURL(TemplateURL* url,
434 const std::u16string& title, 434 const std::u16string& title,
435 const std::u16string& keyword, 435 const std::u16string& keyword,
@@ -439,7 +439,7 @@
439 DCHECK(!IsCreatedByExtension(url)); 439 DCHECK(!IsCreatedByExtension(url));
440 DCHECK(!keyword.empty()); 440 DCHECK(!keyword.empty());
441 DCHECK(!search_url.empty()); 441 DCHECK(!search_url.empty());
442@@ -656,6 +657,7 @@ void TemplateURLService::ResetTemplateUR 442@@ -659,6 +660,7 @@ void TemplateURLService::ResetTemplateUR
443 data.safe_for_autoreplace = false; 443 data.safe_for_autoreplace = false;
444 data.last_modified = clock_->Now(); 444 data.last_modified = clock_->Now();
445 data.is_active = TemplateURLData::ActiveStatus::kTrue; 445 data.is_active = TemplateURLData::ActiveStatus::kTrue;
@@ -447,9 +447,9 @@
447 447
448 Update(url, TemplateURL(data)); 448 Update(url, TemplateURL(data));
449 } 449 }
450--- components/search_engines/template_url_service.h.orig 450--- a/components/search_engines/template_url_service.h
451+++ components/search_engines/template_url_service.h 451+++ b/components/search_engines/template_url_service.h
452@@ -253,7 +253,8 @@ class TemplateURLService : public WebDat 452@@ -254,7 +254,8 @@ class TemplateURLService : public WebDat
453 void ResetTemplateURL(TemplateURL* url, 453 void ResetTemplateURL(TemplateURL* url,
454 const std::u16string& title, 454 const std::u16string& title,
455 const std::u16string& keyword, 455 const std::u16string& keyword,
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/add-ungoogled-flag-headers.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/add-ungoogled-flag-headers.patch
index 4a78da1..9234cd8 100644
--- a/www/chromium-uc/patches/extra/ungoogled-chromium/add-ungoogled-flag-headers.patch
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/add-ungoogled-flag-headers.patch
@@ -1,6 +1,6 @@
1--- chrome/browser/about_flags.cc.orig 1--- a/chrome/browser/about_flags.cc
2+++ chrome/browser/about_flags.cc 2+++ b/chrome/browser/about_flags.cc
3@@ -2728,7 +2728,13 @@ const FeatureEntry::FeatureVariation kWi 3@@ -3109,7 +3109,13 @@ const FeatureEntry::FeatureVariation kDe
4 // calculate and verify checksum. 4 // calculate and verify checksum.
5 // 5 //
6 // When adding a new choice, add it to the end of the list. 6 // When adding a new choice, add it to the end of the list.
@@ -15,7 +15,7 @@
15 // //tools/flags/generate_unexpire_flags.py. 15 // //tools/flags/generate_unexpire_flags.py.
16 #include "build/chromeos_buildflags.h" 16 #include "build/chromeos_buildflags.h"
17--- /dev/null 17--- /dev/null
18+++ chrome/browser/bromite_flag_choices.h 18+++ b/chrome/browser/bromite_flag_choices.h
19@@ -0,0 +1,7 @@ 19@@ -0,0 +1,7 @@
20+// Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved. 20+// Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved.
21+// Use of this source code is governed by a BSD-style license that can be 21+// Use of this source code is governed by a BSD-style license that can be
@@ -25,7 +25,7 @@
25+#define CHROME_BROWSER_BROMITE_FLAG_CHOICES_H_ 25+#define CHROME_BROWSER_BROMITE_FLAG_CHOICES_H_
26+#endif // CHROME_BROWSER_BROMITE_FLAG_CHOICES_H_ 26+#endif // CHROME_BROWSER_BROMITE_FLAG_CHOICES_H_
27--- /dev/null 27--- /dev/null
28+++ chrome/browser/bromite_flag_entries.h 28+++ b/chrome/browser/bromite_flag_entries.h
29@@ -0,0 +1,7 @@ 29@@ -0,0 +1,7 @@
30+// Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved. 30+// Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved.
31+// Use of this source code is governed by a BSD-style license that can be 31+// Use of this source code is governed by a BSD-style license that can be
@@ -35,7 +35,7 @@
35+#define CHROME_BROWSER_BROMITE_FLAG_ENTRIES_H_ 35+#define CHROME_BROWSER_BROMITE_FLAG_ENTRIES_H_
36+#endif // CHROME_BROWSER_BROMITE_FLAG_ENTRIES_H_ 36+#endif // CHROME_BROWSER_BROMITE_FLAG_ENTRIES_H_
37--- /dev/null 37--- /dev/null
38+++ chrome/browser/ungoogled_flag_choices.h 38+++ b/chrome/browser/ungoogled_flag_choices.h
39@@ -0,0 +1,7 @@ 39@@ -0,0 +1,7 @@
40+// Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved. 40+// Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved.
41+// Use of this source code is governed by a BSD-style license that can be 41+// Use of this source code is governed by a BSD-style license that can be
@@ -45,7 +45,7 @@
45+#define CHROME_BROWSER_UNGOOGLED_FLAG_CHOICES_H_ 45+#define CHROME_BROWSER_UNGOOGLED_FLAG_CHOICES_H_
46+#endif // CHROME_BROWSER_UNGOOGLED_FLAG_CHOICES_H_ 46+#endif // CHROME_BROWSER_UNGOOGLED_FLAG_CHOICES_H_
47--- /dev/null 47--- /dev/null
48+++ chrome/browser/ungoogled_flag_entries.h 48+++ b/chrome/browser/ungoogled_flag_entries.h
49@@ -0,0 +1,7 @@ 49@@ -0,0 +1,7 @@
50+// Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved. 50+// Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved.
51+// Use of this source code is governed by a BSD-style license that can be 51+// Use of this source code is governed by a BSD-style license that can be
@@ -55,7 +55,7 @@
55+#define CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_ 55+#define CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
56+#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_ 56+#endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
57--- /dev/null 57--- /dev/null
58+++ chrome/browser/ungoogled_platform_flag_choices.h 58+++ b/chrome/browser/ungoogled_platform_flag_choices.h
59@@ -0,0 +1,7 @@ 59@@ -0,0 +1,7 @@
60+// Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved. 60+// Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved.
61+// Use of this source code is governed by a BSD-style license that can be 61+// Use of this source code is governed by a BSD-style license that can be
@@ -65,7 +65,7 @@
65+#define CHROME_BROWSER_UNGOOGLED_PLATFORM_FLAG_CHOICES_H_ 65+#define CHROME_BROWSER_UNGOOGLED_PLATFORM_FLAG_CHOICES_H_
66+#endif // CHROME_BROWSER_UNGOOGLED_PLATFORM_FLAG_CHOICES_H_ 66+#endif // CHROME_BROWSER_UNGOOGLED_PLATFORM_FLAG_CHOICES_H_
67--- /dev/null 67--- /dev/null
68+++ chrome/browser/ungoogled_platform_flag_entries.h 68+++ b/chrome/browser/ungoogled_platform_flag_entries.h
69@@ -0,0 +1,7 @@ 69@@ -0,0 +1,7 @@
70+// Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved. 70+// Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved.
71+// Use of this source code is governed by a BSD-style license that can be 71+// Use of this source code is governed by a BSD-style license that can be
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/disable-dial-repeating-discovery.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/disable-dial-repeating-discovery.patch
index fab5b74..db0c00d 100644
--- a/www/chromium-uc/patches/extra/ungoogled-chromium/disable-dial-repeating-discovery.patch
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/disable-dial-repeating-discovery.patch
@@ -1,25 +1,25 @@
1# Disables the dial registry's repeating discovery timer 1# Disables the dial registry's repeating discovery timer
2# This caused unnecessary SSDP network spam 2# This caused unnecessary SSDP network spam
3 3
4--- chrome/browser/media/router/discovery/dial/dial_registry.cc.orig 4--- a/chrome/browser/media/router/discovery/dial/dial_registry.cc
5+++ chrome/browser/media/router/discovery/dial/dial_registry.cc 5+++ b/chrome/browser/media/router/discovery/dial/dial_registry.cc
6@@ -190,10 +190,6 @@ void DialRegistry::StartPeriodicDiscover 6@@ -154,10 +154,6 @@ void DialRegistry::StartPeriodicDiscover
7 return;
7 8
8 dial_ = CreateDialService(); 9 dial_ = CreateDialService();
9 dial_->AddObserver(this);
10- DoDiscovery(); 10- DoDiscovery();
11- repeating_timer_ = std::make_unique<base::RepeatingTimer>(); 11- repeating_timer_ = std::make_unique<base::RepeatingTimer>();
12- repeating_timer_->Start(FROM_HERE, refresh_interval_delta_, this, 12- repeating_timer_->Start(FROM_HERE, refresh_interval_delta_, this,
13- &DialRegistry::DoDiscovery); 13- &DialRegistry::DoDiscovery);
14 } 14 // Always send the current device list with the next discovery request. This
15 15 // may not be necessary, but is done to match previous behavior.
16 void DialRegistry::DoDiscovery() { 16 ++registry_generation_;
17@@ -207,8 +203,6 @@ void DialRegistry::StopPeriodicDiscovery 17@@ -174,8 +170,6 @@ void DialRegistry::StopPeriodicDiscovery
18 if (!dial_) 18 if (!dial_)
19 return; 19 return;
20 20
21- repeating_timer_->Stop(); 21- repeating_timer_->Stop();
22- repeating_timer_.reset(); 22- repeating_timer_.reset();
23 dial_->RemoveObserver(this);
24 ClearDialService(); 23 ClearDialService();
25 } 24 }
25
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/disable-download-quarantine.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/disable-download-quarantine.patch
index 2191bbe..88caa9d 100644
--- a/www/chromium-uc/patches/extra/ungoogled-chromium/disable-download-quarantine.patch
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/disable-download-quarantine.patch
@@ -1,18 +1,18 @@
1# Disables file download quarantining 1# Disables file download quarantining
2 2
3--- components/download/internal/common/base_file.cc.orig 3--- a/components/download/internal/common/base_file.cc
4+++ components/download/internal/common/base_file.cc 4+++ b/components/download/internal/common/base_file.cc
5@@ -23,7 +23,6 @@ 5@@ -22,7 +22,6 @@
6 #include "components/download/public/common/download_interrupt_reasons_utils.h" 6 #include "components/download/public/common/download_interrupt_reasons_utils.h"
7 #include "components/download/public/common/download_item.h" 7 #include "components/download/public/common/download_item.h"
8 #include "components/download/public/common/download_stats.h" 8 #include "components/download/public/common/download_stats.h"
9-#include "components/services/quarantine/quarantine.h" 9-#include "components/services/quarantine/quarantine.h"
10 #include "crypto/secure_hash.h" 10 #include "crypto/secure_hash.h"
11 11
12 #if defined(OS_WIN) 12 #if BUILDFLAG(IS_ANDROID)
13@@ -535,105 +534,6 @@ DownloadInterruptReason BaseFile::Publis 13@@ -525,102 +524,6 @@ DownloadInterruptReason BaseFile::Publis
14 } 14 }
15 #endif // defined(OS_ANDROID) 15 #endif // BUILDFLAG(IS_ANDROID)
16 16
17-namespace { 17-namespace {
18- 18-
@@ -102,27 +102,24 @@
102- 102-
103-void BaseFile::OnQuarantineServiceError(const GURL& source_url, 103-void BaseFile::OnQuarantineServiceError(const GURL& source_url,
104- const GURL& referrer_url) { 104- const GURL& referrer_url) {
105-#if defined(OS_WIN) 105-#if BUILDFLAG(IS_WIN)
106- if (base::FeatureList::IsEnabled(quarantine::kOutOfProcessQuarantine)) { 106- OnFileQuarantined(/*connection_error=*/true,
107- OnFileQuarantined(/*connection_error=*/true, 107- quarantine::SetInternetZoneIdentifierDirectly(
108- quarantine::SetInternetZoneIdentifierDirectly( 108- full_path_, source_url, referrer_url));
109- full_path_, source_url, referrer_url)); 109-#else // !BUILDFLAG(IS_WIN)
110- return;
111- }
112-#endif // defined(OS_WIN)
113-
114- CHECK(false) << "In-process quarantine service should not have failed."; 110- CHECK(false) << "In-process quarantine service should not have failed.";
111-#endif // !BUILDFLAG(IS_WIN)
115-} 112-}
116 113
117 void BaseFile::AnnotateWithSourceInformation( 114 void BaseFile::AnnotateWithSourceInformation(
118 const std::string& client_guid, 115 const std::string& client_guid,
119@@ -641,32 +541,8 @@ void BaseFile::AnnotateWithSourceInforma 116@@ -628,32 +531,8 @@ void BaseFile::AnnotateWithSourceInforma
120 const GURL& referrer_url, 117 const GURL& referrer_url,
121 mojo::PendingRemote<quarantine::mojom::Quarantine> remote_quarantine, 118 mojo::PendingRemote<quarantine::mojom::Quarantine> remote_quarantine,
122 OnAnnotationDoneCallback on_annotation_done_callback) { 119 OnAnnotationDoneCallback on_annotation_done_callback) {
123- GURL authority_url = GetEffectiveAuthorityURL(source_url, referrer_url); 120- GURL authority_url = GetEffectiveAuthorityURL(source_url, referrer_url);
124- if (!remote_quarantine) { 121- if (!remote_quarantine) {
125-#if defined(OS_WIN) 122-#if BUILDFLAG(IS_WIN)
126- quarantine::mojom::QuarantineFileResult result = 123- quarantine::mojom::QuarantineFileResult result =
127- quarantine::SetInternetZoneIdentifierDirectly(full_path_, authority_url, 124- quarantine::SetInternetZoneIdentifierDirectly(full_path_, authority_url,
128- referrer_url); 125- referrer_url);
@@ -151,9 +148,9 @@
151 } 148 }
152 149
153 } // namespace download 150 } // namespace download
154--- content/browser/BUILD.gn.orig 151--- a/content/browser/BUILD.gn
155+++ content/browser/BUILD.gn 152+++ b/content/browser/BUILD.gn
156@@ -82,7 +82,6 @@ source_set("browser") { 153@@ -85,7 +85,6 @@ source_set("browser") {
157 "//components/permissions:permissions_common", 154 "//components/permissions:permissions_common",
158 "//components/power_scheduler", 155 "//components/power_scheduler",
159 "//components/services/filesystem:lib", 156 "//components/services/filesystem:lib",
@@ -161,17 +158,17 @@
161 "//components/services/storage", 158 "//components/services/storage",
162 "//components/services/storage:filesystem_proxy_factory", 159 "//components/services/storage:filesystem_proxy_factory",
163 "//components/services/storage/dom_storage:local_storage_proto", 160 "//components/services/storage/dom_storage:local_storage_proto",
164--- content/browser/file_system_access/safe_move_helper.cc.orig 161--- a/content/browser/file_system_access/safe_move_helper.cc
165+++ content/browser/file_system_access/safe_move_helper.cc 162+++ b/content/browser/file_system_access/safe_move_helper.cc
166@@ -12,7 +12,6 @@ 163@@ -13,7 +13,6 @@
167 #include "base/task/thread_pool.h"
168 #include "base/threading/sequenced_task_runner_handle.h" 164 #include "base/threading/sequenced_task_runner_handle.h"
169 #include "build/build_config.h" 165 #include "build/build_config.h"
166 #include "build/chromeos_buildflags.h"
170-#include "components/services/quarantine/quarantine.h" 167-#include "components/services/quarantine/quarantine.h"
171 #include "content/browser/file_system_access/file_system_access_error.h" 168 #include "content/browser/file_system_access/file_system_access_error.h"
172 #include "content/public/browser/content_browser_client.h" 169 #include "content/public/browser/content_browser_client.h"
173 #include "content/public/common/content_client.h" 170 #include "content/public/browser/global_routing_id.h"
174@@ -193,20 +192,8 @@ void SafeMoveHelper::DidAfterWriteCheck( 171@@ -197,20 +196,8 @@ void SafeMoveHelper::DidAfterWriteCheck(
175 // not exist anymore. In case of error, the source file URL will point to a 172 // not exist anymore. In case of error, the source file URL will point to a
176 // valid filesystem location. 173 // valid filesystem location.
177 base::OnceCallback<void(base::File::Error)> result_callback; 174 base::OnceCallback<void(base::File::Error)> result_callback;
@@ -190,9 +187,9 @@
190 weak_factory_.GetWeakPtr()); 187 weak_factory_.GetWeakPtr());
191- } 188- }
192 manager_->DoFileSystemOperation( 189 manager_->DoFileSystemOperation(
193 FROM_HERE, &storage::FileSystemOperationRunner::MoveFileLocal, 190 FROM_HERE, &storage::FileSystemOperationRunner::Move,
194 std::move(result_callback), source_url(), dest_url(), option_); 191 std::move(result_callback), source_url(), dest_url(), options_,
195@@ -220,7 +207,6 @@ void SafeMoveHelper::DidFileSkipQuaranti 192@@ -226,7 +213,6 @@ void SafeMoveHelper::DidFileSkipQuaranti
196 void SafeMoveHelper::DidFileDoQuarantine( 193 void SafeMoveHelper::DidFileDoQuarantine(
197 const storage::FileSystemURL& target_url, 194 const storage::FileSystemURL& target_url,
198 const GURL& referrer_url, 195 const GURL& referrer_url,
@@ -200,7 +197,7 @@
200 base::File::Error result) { 197 base::File::Error result) {
201 DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); 198 DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
202 199
203@@ -251,37 +237,9 @@ void SafeMoveHelper::DidFileDoQuarantine 200@@ -257,37 +243,9 @@ void SafeMoveHelper::DidFileDoQuarantine
204 referrer_url.is_valid() && referrer_url.SchemeIsHTTPOrHTTPS() 201 referrer_url.is_valid() && referrer_url.SchemeIsHTTPOrHTTPS()
205 ? referrer_url 202 ? referrer_url
206 : GURL(); 203 : GURL();
@@ -218,7 +215,7 @@
218- std::move(quarantine_remote)), 215- std::move(quarantine_remote)),
219- quarantine::mojom::QuarantineFileResult::ANNOTATION_FAILED)); 216- quarantine::mojom::QuarantineFileResult::ANNOTATION_FAILED));
220- } else { 217- } else {
221-#if defined(OS_WIN) 218-#if BUILDFLAG(IS_WIN)
222- base::ThreadPool::PostTaskAndReplyWithResult( 219- base::ThreadPool::PostTaskAndReplyWithResult(
223- FROM_HERE, {base::MayBlock()}, 220- FROM_HERE, {base::MayBlock()},
224- base::BindOnce(&quarantine::SetInternetZoneIdentifierDirectly, 221- base::BindOnce(&quarantine::SetInternetZoneIdentifierDirectly,
@@ -238,8 +235,8 @@
238 quarantine::mojom::QuarantineFileResult result) { 235 quarantine::mojom::QuarantineFileResult result) {
239 DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); 236 DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
240 237
241--- content/browser/file_system_access/safe_move_helper.h.orig 238--- a/content/browser/file_system_access/safe_move_helper.h
242+++ content/browser/file_system_access/safe_move_helper.h 239+++ b/content/browser/file_system_access/safe_move_helper.h
243@@ -58,10 +58,8 @@ class CONTENT_EXPORT SafeMoveHelper { 240@@ -58,10 +58,8 @@ class CONTENT_EXPORT SafeMoveHelper {
244 void DidFileDoQuarantine( 241 void DidFileDoQuarantine(
245 const storage::FileSystemURL& target_url, 242 const storage::FileSystemURL& target_url,
@@ -251,30 +248,30 @@
251 quarantine::mojom::QuarantineFileResult result); 248 quarantine::mojom::QuarantineFileResult result);
252 249
253 void ComputeHashForSourceFile(HashCallback callback); 250 void ComputeHashForSourceFile(HashCallback callback);
254--- content/browser/renderer_host/pepper/pepper_file_io_host.cc.orig 251--- a/content/browser/renderer_host/pepper/pepper_file_io_host.cc
255+++ content/browser/renderer_host/pepper/pepper_file_io_host.cc 252+++ b/content/browser/renderer_host/pepper/pepper_file_io_host.cc
256@@ -456,7 +456,7 @@ void PepperFileIOHost::OnLocalFileOpened 253@@ -455,7 +455,7 @@ void PepperFileIOHost::OnLocalFileOpened
257 ppapi::host::ReplyMessageContext reply_context, 254 ppapi::host::ReplyMessageContext reply_context,
258 const base::FilePath& path, 255 const base::FilePath& path,
259 base::File::Error error_code) { 256 base::File::Error error_code) {
260-#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD) 257-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
261+#if 0 258+#if 0
262 // Quarantining a file before its contents are available is only supported on 259 // Quarantining a file before its contents are available is only supported on
263 // Windows and Linux. 260 // Windows and Linux.
264 if (!FileOpenForWrite(open_flags_) || error_code != base::File::FILE_OK) { 261 if (!FileOpenForWrite(open_flags_) || error_code != base::File::FILE_OK) {
265@@ -490,7 +490,7 @@ void PepperFileIOHost::OnLocalFileOpened 262@@ -489,7 +489,7 @@ void PepperFileIOHost::OnLocalFileOpened
266 #endif 263 #endif
267 } 264 }
268 265
269-#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD) 266-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
270+#if 0 267+#if 0
271 void PepperFileIOHost::OnLocalFileQuarantined( 268 void PepperFileIOHost::OnLocalFileQuarantined(
272 ppapi::host::ReplyMessageContext reply_context, 269 ppapi::host::ReplyMessageContext reply_context,
273 const base::FilePath& path, 270 const base::FilePath& path,
274--- content/browser/renderer_host/pepper/pepper_file_io_host.h.orig 271--- a/content/browser/renderer_host/pepper/pepper_file_io_host.h
275+++ content/browser/renderer_host/pepper/pepper_file_io_host.h 272+++ b/content/browser/renderer_host/pepper/pepper_file_io_host.h
276@@ -13,7 +13,6 @@ 273@@ -13,7 +13,6 @@
277 #include "base/macros.h" 274 #include "base/memory/raw_ptr.h"
278 #include "base/memory/ref_counted.h" 275 #include "base/memory/ref_counted.h"
279 #include "base/memory/weak_ptr.h" 276 #include "base/memory/weak_ptr.h"
280-#include "components/services/quarantine/public/mojom/quarantine.mojom.h" 277-#include "components/services/quarantine/public/mojom/quarantine.mojom.h"
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/disable-formatting-in-omnibox.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/disable-formatting-in-omnibox.patch
index f9f6449..35e5fd5 100644
--- a/www/chromium-uc/patches/extra/ungoogled-chromium/disable-formatting-in-omnibox.patch
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/disable-formatting-in-omnibox.patch
@@ -1,8 +1,8 @@
1# Disables omission of URL elements in Omnibox 1# Disables omission of URL elements in Omnibox
2 2
3--- components/url_formatter/url_formatter.cc.orig 3--- a/components/url_formatter/url_formatter.cc
4+++ components/url_formatter/url_formatter.cc 4+++ b/components/url_formatter/url_formatter.cc
5@@ -463,14 +463,14 @@ ComponentResult IDNToUnicodeOneComponent 5@@ -492,14 +492,14 @@ bool HasTwoViewSourceSchemes(base::Strin
6 } // namespace 6 } // namespace
7 7
8 const FormatUrlType kFormatUrlOmitNothing = 0; 8 const FormatUrlType kFormatUrlOmitNothing = 0;
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/disable-intranet-redirect-detector.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/disable-intranet-redirect-detector.patch
index f264b5d..bc2945b 100644
--- a/www/chromium-uc/patches/extra/ungoogled-chromium/disable-intranet-redirect-detector.patch
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/disable-intranet-redirect-detector.patch
@@ -1,8 +1,8 @@
1# Disables the intranet redirect detector. It generates extra DNS requests and the functionality using this is disabled 1# Disables the intranet redirect detector. It generates extra DNS requests and the functionality using this is disabled
2# See this page for more information: https://mikewest.org/2012/02/chrome-connects-to-three-random-domains-at-startup 2# See this page for more information: https://mikewest.org/2012/02/chrome-connects-to-three-random-domains-at-startup
3 3
4--- chrome/browser/intranet_redirect_detector.cc.orig 4--- a/chrome/browser/intranet_redirect_detector.cc
5+++ chrome/browser/intranet_redirect_detector.cc 5+++ b/chrome/browser/intranet_redirect_detector.cc
6@@ -119,9 +119,7 @@ void IntranetRedirectDetector::FinishSle 6@@ -119,9 +119,7 @@ void IntranetRedirectDetector::FinishSle
7 simple_loaders_.clear(); 7 simple_loaders_.clear();
8 resulting_origins_.clear(); 8 resulting_origins_.clear();
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/disable-remote-optimization-guide.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/disable-remote-optimization-guide.patch
new file mode 100644
index 0000000..39a3cd6
--- /dev/null
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/disable-remote-optimization-guide.patch
@@ -0,0 +1,11 @@
1--- a/components/optimization_guide/core/optimization_guide_features.cc
2+++ b/components/optimization_guide/core/optimization_guide_features.cc
3@@ -88,7 +88,7 @@ const base::Feature kOptimizationHintsFi
4
5 // Enables fetching from a remote Optimization Guide Service.
6 const base::Feature kRemoteOptimizationGuideFetching{
7- "OptimizationHintsFetching", base::FEATURE_ENABLED_BY_DEFAULT};
8+ "OptimizationHintsFetching", base::FEATURE_DISABLED_BY_DEFAULT};
9
10 const base::Feature kRemoteOptimizationGuideFetchingAnonymousDataConsent {
11 "OptimizationHintsFetchingAnonymousDataConsent",
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/disable-webgl-renderer-info.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/disable-webgl-renderer-info.patch
index 2896a43..c555233 100644
--- a/www/chromium-uc/patches/extra/ungoogled-chromium/disable-webgl-renderer-info.patch
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/disable-webgl-renderer-info.patch
@@ -1,9 +1,9 @@
1# Return blank values for WebGLDebugRendererInfo to remove a potential data 1# Return blank values for WebGLDebugRendererInfo to remove a potential data
2# leak while preventing potential website breakage 2# leak while preventing potential website breakage
3 3
4--- third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.cc.orig 4--- a/third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.cc
5+++ third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.cc 5+++ b/third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.cc
6@@ -3595,8 +3595,7 @@ ScriptValue WebGLRenderingContextBase::g 6@@ -3693,8 +3693,7 @@ ScriptValue WebGLRenderingContextBase::g
7 pname, IdentifiabilityBenignStringToken( 7 pname, IdentifiabilityBenignStringToken(
8 String(ContextGL()->GetString(GL_RENDERER)))); 8 String(ContextGL()->GetString(GL_RENDERER))));
9 } 9 }
@@ -13,7 +13,7 @@
13 } 13 }
14 SynthesizeGLError( 14 SynthesizeGLError(
15 GL_INVALID_ENUM, "getParameter", 15 GL_INVALID_ENUM, "getParameter",
16@@ -3610,8 +3609,7 @@ ScriptValue WebGLRenderingContextBase::g 16@@ -3708,8 +3707,7 @@ ScriptValue WebGLRenderingContextBase::g
17 pname, IdentifiabilityBenignStringToken( 17 pname, IdentifiabilityBenignStringToken(
18 String(ContextGL()->GetString(GL_VENDOR)))); 18 String(ContextGL()->GetString(GL_VENDOR))));
19 } 19 }
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/enable-default-prefetch-privacy-changes.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/enable-default-prefetch-privacy-changes.patch
index 4ea4498..6a6418e 100644
--- a/www/chromium-uc/patches/extra/ungoogled-chromium/enable-default-prefetch-privacy-changes.patch
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/enable-default-prefetch-privacy-changes.patch
@@ -1,8 +1,8 @@
1# Enable chrome://flags/#prefetch-privacy-changes by default 1# Enable chrome://flags/#prefetch-privacy-changes by default
2 2
3--- third_party/blink/common/features.cc.orig 3--- a/third_party/blink/common/features.cc
4+++ third_party/blink/common/features.cc 4+++ b/third_party/blink/common/features.cc
5@@ -416,7 +416,7 @@ const base::Feature kComputePressure{"Co 5@@ -485,7 +485,7 @@ const base::Feature kComputePressure{"Co
6 // Prefetch request properties are updated to be privacy-preserving. See 6 // Prefetch request properties are updated to be privacy-preserving. See
7 // crbug.com/988956. 7 // crbug.com/988956.
8 const base::Feature kPrefetchPrivacyChanges{"PrefetchPrivacyChanges", 8 const base::Feature kPrefetchPrivacyChanges{"PrefetchPrivacyChanges",
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/enable-menu-on-reload-button.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/enable-menu-on-reload-button.patch
index 5f87fc2..915b3be 100644
--- a/www/chromium-uc/patches/extra/ungoogled-chromium/enable-menu-on-reload-button.patch
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/enable-menu-on-reload-button.patch
@@ -1,8 +1,8 @@
1# Add ability to always open dev context menu on reload button. 1# Add ability to always open dev context menu on reload button.
2 2
3--- chrome/browser/ui/views/toolbar/reload_button.cc.orig 3--- a/chrome/browser/ui/views/toolbar/reload_button.cc
4+++ chrome/browser/ui/views/toolbar/reload_button.cc 4+++ b/chrome/browser/ui/views/toolbar/reload_button.cc
5@@ -84,7 +84,7 @@ bool ReloadButton::GetMenuEnabled() cons 5@@ -83,7 +83,7 @@ bool ReloadButton::GetMenuEnabled() cons
6 } 6 }
7 7
8 void ReloadButton::SetMenuEnabled(bool enable) { 8 void ReloadButton::SetMenuEnabled(bool enable) {
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/enable-page-saving-on-more-pages.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/enable-page-saving-on-more-pages.patch
index a983beb..718f9e0 100644
--- a/www/chromium-uc/patches/extra/ungoogled-chromium/enable-page-saving-on-more-pages.patch
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/enable-page-saving-on-more-pages.patch
@@ -1,8 +1,8 @@
1# Add more URL schemes allowed for saving 1# Add more URL schemes allowed for saving
2 2
3--- chrome/browser/ui/browser_commands.cc.orig 3--- a/chrome/browser/ui/browser_commands.cc
4+++ chrome/browser/ui/browser_commands.cc 4+++ b/chrome/browser/ui/browser_commands.cc
5@@ -440,11 +440,6 @@ int GetContentRestrictions(const Browser 5@@ -448,11 +448,6 @@ int GetContentRestrictions(const Browser
6 CoreTabHelper* core_tab_helper = 6 CoreTabHelper* core_tab_helper =
7 CoreTabHelper::FromWebContents(current_tab); 7 CoreTabHelper::FromWebContents(current_tab);
8 content_restrictions = core_tab_helper->content_restrictions(); 8 content_restrictions = core_tab_helper->content_restrictions();
@@ -14,8 +14,8 @@
14 } 14 }
15 return content_restrictions; 15 return content_restrictions;
16 } 16 }
17@@ -1342,8 +1337,7 @@ bool CanSavePage(const Browser* browser) 17@@ -1355,8 +1350,7 @@ bool CanSavePage(const Browser* browser)
18 prefs::kAllowFileSelectionDialogs)) { 18 DownloadPrefs::DownloadRestriction::ALL_FILES) {
19 return false; 19 return false;
20 } 20 }
21- return !browser->is_type_devtools() && 21- return !browser->is_type_devtools() &&
@@ -24,8 +24,8 @@
24 } 24 }
25 25
26 void Print(Browser* browser) { 26 void Print(Browser* browser) {
27--- components/offline_pages/core/offline_page_model.cc.orig 27--- a/components/offline_pages/core/offline_page_model.cc
28+++ components/offline_pages/core/offline_page_model.cc 28+++ b/components/offline_pages/core/offline_page_model.cc
29@@ -22,7 +22,7 @@ OfflinePageModel::SavePageParams::~SaveP 29@@ -22,7 +22,7 @@ OfflinePageModel::SavePageParams::~SaveP
30 30
31 // static 31 // static
@@ -35,9 +35,9 @@
35 } 35 }
36 36
37 OfflinePageModel::OfflinePageModel() = default; 37 OfflinePageModel::OfflinePageModel() = default;
38--- content/common/url_schemes.cc.orig 38--- a/content/common/url_schemes.cc
39+++ content/common/url_schemes.cc 39+++ b/content/common/url_schemes.cc
40@@ -23,6 +23,9 @@ namespace { 40@@ -24,13 +24,22 @@ namespace {
41 bool g_registered_url_schemes = false; 41 bool g_registered_url_schemes = false;
42 42
43 const char* const kDefaultSavableSchemes[] = { 43 const char* const kDefaultSavableSchemes[] = {
@@ -47,8 +47,7 @@
47 url::kHttpScheme, 47 url::kHttpScheme,
48 url::kHttpsScheme, 48 url::kHttpsScheme,
49 url::kFileScheme, 49 url::kFileScheme,
50@@ -30,7 +33,13 @@ const char* const kDefaultSavableSchemes 50 url::kFileSystemScheme,
51 url::kFtpScheme,
52 kChromeDevToolsScheme, 51 kChromeDevToolsScheme,
53 kChromeUIScheme, 52 kChromeUIScheme,
54- url::kDataScheme 53- url::kDataScheme
@@ -62,9 +61,9 @@
62 }; 61 };
63 62
64 // These lists are lazily initialized below and are leaked on shutdown to 63 // These lists are lazily initialized below and are leaked on shutdown to
65--- content/public/common/url_utils.cc.orig 64--- a/content/public/common/url_utils.cc
66+++ content/public/common/url_utils.cc 65+++ b/content/public/common/url_utils.cc
67@@ -26,11 +26,7 @@ bool HasWebUIScheme(const GURL& url) { 66@@ -32,11 +32,7 @@ bool HasWebUIOrigin(const url::Origin& o
68 } 67 }
69 68
70 bool IsSavableURL(const GURL& url) { 69 bool IsSavableURL(const GURL& url) {
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/enable-paste-and-go-new-tab-button.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/enable-paste-and-go-new-tab-button.patch
index 6205679..0c31074 100644
--- a/www/chromium-uc/patches/extra/ungoogled-chromium/enable-paste-and-go-new-tab-button.patch
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/enable-paste-and-go-new-tab-button.patch
@@ -1,19 +1,19 @@
1--- chrome/browser/ui/views/tabs/new_tab_button.cc.orig 1--- a/chrome/browser/ui/views/tabs/new_tab_button.cc
2+++ chrome/browser/ui/views/tabs/new_tab_button.cc 2+++ b/chrome/browser/ui/views/tabs/new_tab_button.cc
3@@ -58,10 +58,8 @@ NewTabButton::NewTabButton(TabStrip* tab 3@@ -59,10 +59,8 @@ NewTabButton::NewTabButton(TabStrip* tab
4 SetAnimateOnStateChange(true); 4 SetAnimateOnStateChange(true);
5 // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch 5 // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
6 // of lacros-chrome is complete. 6 // of lacros-chrome is complete.
7-#if defined(OS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || defined(OS_BSD) 7-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)
8 SetTriggerableEventFlags(GetTriggerableEventFlags() | 8 SetTriggerableEventFlags(GetTriggerableEventFlags() |
9 ui::EF_MIDDLE_MOUSE_BUTTON); 9 ui::EF_MIDDLE_MOUSE_BUTTON);
10-#endif 10-#endif
11 11
12 ink_drop_container_ = 12 ink_drop_container_ =
13 AddChildView(std::make_unique<views::InkDropContainerView>()); 13 AddChildView(std::make_unique<views::InkDropContainerView>());
14--- chrome/browser/ui/views/tabs/tab_strip.cc.orig 14--- a/chrome/browser/ui/views/tabs/tab_strip.cc
15+++ chrome/browser/ui/views/tabs/tab_strip.cc 15+++ b/chrome/browser/ui/views/tabs/tab_strip.cc
16@@ -2680,8 +2680,6 @@ void TabStrip::NewTabButtonPressed(const 16@@ -1733,8 +1733,6 @@ void TabStrip::NewTabButtonPressed(const
17 17
18 const ui::MouseEvent& mouse = static_cast<const ui::MouseEvent&>(event); 18 const ui::MouseEvent& mouse = static_cast<const ui::MouseEvent&>(event);
19 if (mouse.IsOnlyMiddleMouseButton()) { 19 if (mouse.IsOnlyMiddleMouseButton()) {
@@ -22,7 +22,7 @@
22 ui::Clipboard* clipboard = ui::Clipboard::GetForCurrentThread(); 22 ui::Clipboard* clipboard = ui::Clipboard::GetForCurrentThread();
23 CHECK(clipboard); 23 CHECK(clipboard);
24 std::u16string clipboard_text; 24 std::u16string clipboard_text;
25@@ -2689,7 +2687,6 @@ void TabStrip::NewTabButtonPressed(const 25@@ -1742,7 +1740,6 @@ void TabStrip::NewTabButtonPressed(const
26 /* data_dst = */ nullptr, &clipboard_text); 26 /* data_dst = */ nullptr, &clipboard_text);
27 if (!clipboard_text.empty()) 27 if (!clipboard_text.empty())
28 controller_->CreateNewTabWithLocation(clipboard_text); 28 controller_->CreateNewTabWithLocation(clipboard_text);
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/fix-building-without-mdns-and-service-discovery.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/fix-building-without-mdns-and-service-discovery.patch
index 6fb35ec..2b0ee0b 100644
--- a/www/chromium-uc/patches/extra/ungoogled-chromium/fix-building-without-mdns-and-service-discovery.patch
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/fix-building-without-mdns-and-service-discovery.patch
@@ -1,7 +1,7 @@
1# Fix building with enable_service_discovery=false and enable_mds=false 1# Fix building with enable_service_discovery=false and enable_mds=false
2 2
3--- chrome/browser/media/router/discovery/mdns/dns_sd_device_lister.cc.orig 3--- a/chrome/browser/media/router/discovery/mdns/dns_sd_device_lister.cc
4+++ chrome/browser/media/router/discovery/mdns/dns_sd_device_lister.cc 4+++ b/chrome/browser/media/router/discovery/mdns/dns_sd_device_lister.cc
5@@ -40,37 +40,22 @@ DnsSdDeviceLister::DnsSdDeviceLister( 5@@ -40,37 +40,22 @@ DnsSdDeviceLister::DnsSdDeviceLister(
6 DnsSdDeviceLister::~DnsSdDeviceLister() {} 6 DnsSdDeviceLister::~DnsSdDeviceLister() {}
7 7
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/fix-distilled-icons.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/fix-distilled-icons.patch
index 80a9618..3cd56cb 100644
--- a/www/chromium-uc/patches/extra/ungoogled-chromium/fix-distilled-icons.patch
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/fix-distilled-icons.patch
@@ -1,5 +1,5 @@
1--- components/dom_distiller/core/css/distilledpage.css.orig 1--- a/components/dom_distiller/core/css/distilledpage.css
2+++ components/dom_distiller/core/css/distilledpage.css 2+++ b/components/dom_distiller/core/css/distilledpage.css
3@@ -28,6 +28,11 @@ 3@@ -28,6 +28,11 @@
4 box-sizing: border-box; 4 box-sizing: border-box;
5 } 5 }
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/keep-expired-flags.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/keep-expired-flags.patch
index 9f9df17..75d9176 100644
--- a/www/chromium-uc/patches/extra/ungoogled-chromium/keep-expired-flags.patch
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/keep-expired-flags.patch
@@ -1,5 +1,5 @@
1--- components/flags_ui/flags_state.cc.orig 1--- a/components/flags_ui/flags_state.cc
2+++ components/flags_ui/flags_state.cc 2+++ b/components/flags_ui/flags_state.cc
3@@ -22,6 +22,7 @@ 3@@ -22,6 +22,7 @@
4 #include "base/values.h" 4 #include "base/values.h"
5 #include "build/build_config.h" 5 #include "build/build_config.h"
@@ -8,7 +8,7 @@
8 #include "components/flags_ui/feature_entry.h" 8 #include "components/flags_ui/feature_entry.h"
9 #include "components/flags_ui/flags_storage.h" 9 #include "components/flags_ui/flags_storage.h"
10 #include "components/flags_ui/flags_ui_switches.h" 10 #include "components/flags_ui/flags_ui_switches.h"
11@@ -577,14 +578,18 @@ void FlagsState::GetFlagFeatureEntries( 11@@ -556,14 +557,18 @@ void FlagsState::GetFlagFeatureEntries(
12 int current_platform = GetCurrentPlatform(); 12 int current_platform = GetCurrentPlatform();
13 13
14 for (const FeatureEntry& entry : feature_entries_) { 14 for (const FeatureEntry& entry : feature_entries_) {
@@ -28,7 +28,7 @@
28 28
29 base::Value supported_platforms(base::Value::Type::LIST); 29 base::Value supported_platforms(base::Value::Type::LIST);
30 AddOsStrings(entry.supported_platforms, &supported_platforms); 30 AddOsStrings(entry.supported_platforms, &supported_platforms);
31@@ -901,6 +906,7 @@ bool FlagsState::IsSupportedFeature(cons 31@@ -882,6 +887,7 @@ bool FlagsState::IsSupportedFeature(cons
32 if (!entry.InternalNameMatches(name)) 32 if (!entry.InternalNameMatches(name))
33 continue; 33 continue;
34 if (delegate_ && delegate_->ShouldExcludeFlag(storage, entry)) 34 if (delegate_ && delegate_->ShouldExcludeFlag(storage, entry))
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/prepopulated-search-engines.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/prepopulated-search-engines.patch
index 58e1587..7bf1f87 100644
--- a/www/chromium-uc/patches/extra/ungoogled-chromium/prepopulated-search-engines.patch
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/prepopulated-search-engines.patch
@@ -6,9 +6,9 @@
6# Only snyc the prepoulated search engines when initializing the database. 6# Only snyc the prepoulated search engines when initializing the database.
7# Prevents search engines from being overridden in future updates. 7# Prevents search engines from being overridden in future updates.
8# 8#
9--- components/search_engines/template_url_prepopulate_data.cc.orig 9--- a/components/search_engines/template_url_prepopulate_data.cc
10+++ components/search_engines/template_url_prepopulate_data.cc 10+++ b/components/search_engines/template_url_prepopulate_data.cc
11@@ -1325,6 +1325,9 @@ std::vector<std::unique_ptr<TemplateURLD 11@@ -1330,6 +1330,9 @@ std::vector<std::unique_ptr<TemplateURLD
12 std::vector<std::unique_ptr<TemplateURLData>> t_urls; 12 std::vector<std::unique_ptr<TemplateURLData>> t_urls;
13 for (size_t i = 0; i < num_engines; ++i) 13 for (size_t i = 0; i < num_engines; ++i)
14 t_urls.push_back(TemplateURLDataFromPrepopulatedEngine(*engines[i])); 14 t_urls.push_back(TemplateURLDataFromPrepopulatedEngine(*engines[i]));
@@ -18,8 +18,8 @@
18 return t_urls; 18 return t_urls;
19 } 19 }
20 20
21--- components/search_engines/util.cc.orig 21--- a/components/search_engines/util.cc
22+++ components/search_engines/util.cc 22+++ b/components/search_engines/util.cc
23@@ -396,7 +396,7 @@ void GetSearchProvidersUsingLoadedEngine 23@@ -396,7 +396,7 @@ void GetSearchProvidersUsingLoadedEngine
24 24
25 const int prepopulate_resource_keyword_version = 25 const int prepopulate_resource_keyword_version =
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/remove-disable-setuid-sandbox-as-bad-flag.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/remove-disable-setuid-sandbox-as-bad-flag.patch
index 55ddd53..0a83d1b 100644
--- a/www/chromium-uc/patches/extra/ungoogled-chromium/remove-disable-setuid-sandbox-as-bad-flag.patch
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/remove-disable-setuid-sandbox-as-bad-flag.patch
@@ -1,12 +1,12 @@
1# Remove the "--disable-setuid-sandbox" command line flag as a bad flag 1# Remove the "--disable-setuid-sandbox" command line flag as a bad flag
2 2
3--- chrome/browser/ui/startup/bad_flags_prompt.cc.orig 3--- a/chrome/browser/ui/startup/bad_flags_prompt.cc
4+++ chrome/browser/ui/startup/bad_flags_prompt.cc 4+++ b/chrome/browser/ui/startup/bad_flags_prompt.cc
5@@ -61,7 +61,6 @@ static const char* kBadFlags[] = { 5@@ -61,7 +61,6 @@ static const char* kBadFlags[] = {
6 // These flags disable sandbox-related security. 6 // These flags disable sandbox-related security.
7 sandbox::policy::switches::kDisableGpuSandbox, 7 sandbox::policy::switches::kDisableGpuSandbox,
8 sandbox::policy::switches::kDisableSeccompFilterSandbox, 8 sandbox::policy::switches::kDisableSeccompFilterSandbox,
9- sandbox::policy::switches::kDisableSetuidSandbox, 9- sandbox::policy::switches::kDisableSetuidSandbox,
10 sandbox::policy::switches::kNoSandbox, 10 sandbox::policy::switches::kNoSandbox,
11 #if defined(OS_WIN) 11 #if BUILDFLAG(IS_WIN)
12 sandbox::policy::switches::kAllowThirdPartyModules, 12 sandbox::policy::switches::kAllowThirdPartyModules,
diff --git a/www/chromium-uc/patches/extra/ungoogled-chromium/remove-uneeded-ui.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/remove-uneeded-ui.patch
index cbb86fd..4e07208 100644
--- a/www/chromium-uc/patches/extra/ungoogled-chromium/remove-uneeded-ui.patch
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/remove-uneeded-ui.patch
@@ -18,8 +18,8 @@
18# unneeded elements from the profile menu 18# unneeded elements from the profile menu
19# the 'Learn more' link on crashed tabs 19# the 'Learn more' link on crashed tabs
20 20
21--- chrome/browser/resources/extensions/item_list.html.orig 21--- a/chrome/browser/resources/extensions/item_list.html
22+++ chrome/browser/resources/extensions/item_list.html 22+++ b/chrome/browser/resources/extensions/item_list.html
23@@ -80,13 +80,6 @@ 23@@ -80,13 +80,6 @@
24 <div id="container"> 24 <div id="container">
25 <managed-footnote hidden="[[filter]]"></managed-footnote> 25 <managed-footnote hidden="[[filter]]"></managed-footnote>
@@ -34,9 +34,9 @@
34 <div id="no-search-results" class="empty-list-message" 34 <div id="no-search-results" class="empty-list-message"
35 hidden$="[[!shouldShowEmptySearchMessage_( 35 hidden$="[[!shouldShowEmptySearchMessage_(
36 shownAppsCount_, shownExtensionsCount_, apps, extensions)]]"> 36 shownAppsCount_, shownExtensionsCount_, apps, extensions)]]">
37--- chrome/browser/resources/extensions/sidebar.html.orig 37--- a/chrome/browser/resources/extensions/sidebar.html
38+++ chrome/browser/resources/extensions/sidebar.html 38+++ b/chrome/browser/resources/extensions/sidebar.html
39@@ -69,12 +69,3 @@ 39@@ -76,12 +76,3 @@
40 <paper-ripple></paper-ripple> 40 <paper-ripple></paper-ripple>
41 </a> 41 </a>
42 </iron-selector> 42 </iron-selector>
@@ -49,9 +49,9 @@
49- <paper-ripple></paper-ripple> 49- <paper-ripple></paper-ripple>
50- </a> 50- </a>
51-</div> 51-</div>
52--- chrome/browser/resources/history/side_bar.html.orig 52--- a/chrome/browser/resources/history/side_bar.html
53+++ chrome/browser/resources/history/side_bar.html 53+++ b/chrome/browser/resources/history/side_bar.html
54@@ -128,13 +128,6 @@ 54@@ -120,13 +120,6 @@
55 $i18n{historyMenuItem} 55 $i18n{historyMenuItem}
56 <paper-ripple></paper-ripple> 56 <paper-ripple></paper-ripple>
57 </a> 57 </a>
@@ -62,11 +62,11 @@
62- $i18n{openTabsMenuItem} 62- $i18n{openTabsMenuItem}
63- <paper-ripple></paper-ripple> 63- <paper-ripple></paper-ripple>
64- </a> 64- </a>
65 <div class="separator"></div> 65 <!-- tabindex is needed below because <a> without href attribute is not
66 <a role="menuitem" id="clear-browsing-data" 66 focusable in sequential keyboard navigation by default. -->
67 class="cr-nav-menu-item" 67 <a role="menuitem" id="toggle-history-clusters"
68--- chrome/browser/resources/ntp4/incognito_tab.html.orig 68--- a/chrome/browser/resources/ntp4/incognito_tab.html
69+++ chrome/browser/resources/ntp4/incognito_tab.html 69+++ b/chrome/browser/resources/ntp4/incognito_tab.html
70@@ -24,8 +24,6 @@ document.querySelector('#incognitothemec 70@@ -24,8 +24,6 @@ document.querySelector('#incognitothemec
71 <h1>$i18n{incognitoTabHeading}</h1> 71 <h1>$i18n{incognitoTabHeading}</h1>
72 <p id="subtitle"> 72 <p id="subtitle">
@@ -76,8 +76,8 @@
76 </p> 76 </p>
77 <div id="bulletpoints-wrapper"> 77 <div id="bulletpoints-wrapper">
78 <div class="bulletpoints first">$i18nRaw{incognitoTabFeatures}</div> 78 <div class="bulletpoints first">$i18nRaw{incognitoTabFeatures}</div>
79--- chrome/browser/resources/settings/a11y_page/a11y_page.html.orig 79--- a/chrome/browser/resources/settings/a11y_page/a11y_page.html
80+++ chrome/browser/resources/settings/a11y_page/a11y_page.html 80+++ b/chrome/browser/resources/settings/a11y_page/a11y_page.html
81@@ -21,7 +21,7 @@ 81@@ -21,7 +21,7 @@
82 external$="[[captionSettingsOpensExternally_]]"> 82 external$="[[captionSettingsOpensExternally_]]">
83 </cr-link-row> 83 </cr-link-row>
@@ -88,18 +88,18 @@
88 label="$i18n{captionsTitle}" 88 label="$i18n{captionsTitle}"
89 on-click="onCaptionsClick_" 89 on-click="onCaptionsClick_"
90@@ -51,10 +51,6 @@ 90@@ -51,10 +51,6 @@
91 label="$i18n{accessibleImageLabelsTitle}"
91 sub-label="$i18n{accessibleImageLabelsSubtitle}"> 92 sub-label="$i18n{accessibleImageLabelsSubtitle}">
92 </settings-toggle-button> 93 </settings-toggle-button>
93 </if>
94- <cr-link-row class="hr" label="$i18n{moreFeaturesLink}" 94- <cr-link-row class="hr" label="$i18n{moreFeaturesLink}"
95- on-click="onMoreFeaturesLinkClick_" sub-label="$i18n{a11yWebStore}" 95- on-click="onMoreFeaturesLinkClick_" sub-label="$i18n{a11yWebStore}"
96- external> 96- external>
97- </cr-link-row> 97- </cr-link-row>
98 </div> 98 </div>
99 <if expr="not chromeos"> 99 <if expr="not chromeos_ash">
100 <template is="dom-if" if="[[!captionSettingsOpensExternally_]]"> 100 <template is="dom-if" if="[[!captionSettingsOpensExternally_]]">
101--- chrome/browser/resources/settings/about_page/about_page.html.orig 101--- a/chrome/browser/resources/settings/about_page/about_page.html
102+++ chrome/browser/resources/settings/about_page/about_page.html 102+++ b/chrome/browser/resources/settings/about_page/about_page.html
103@@ -131,8 +131,6 @@ 103@@ -131,8 +131,6 @@
104 </div> 104 </div>
105 </template> 105 </template>
@@ -109,8 +109,8 @@
109 <if expr="_google_chrome"> 109 <if expr="_google_chrome">
110 <cr-link-row class="hr" id="reportIssue" on-click="onReportIssueTap_" 110 <cr-link-row class="hr" id="reportIssue" on-click="onReportIssueTap_"
111 hidden="[[!prefs.feedback_allowed.value]]" 111 hidden="[[!prefs.feedback_allowed.value]]"
112--- chrome/browser/resources/settings/appearance_page/appearance_page.html.orig 112--- a/chrome/browser/resources/settings/appearance_page/appearance_page.html
113+++ chrome/browser/resources/settings/appearance_page/appearance_page.html 113+++ b/chrome/browser/resources/settings/appearance_page/appearance_page.html
114@@ -22,11 +22,11 @@ 114@@ -22,11 +22,11 @@
115 <settings-animated-pages id="pages" section="appearance" 115 <settings-animated-pages id="pages" section="appearance"
116 focus-config="[[focusConfig_]]"> 116 focus-config="[[focusConfig_]]">
@@ -124,20 +124,20 @@
124+ <div class="flex cr-padded-text"> 124+ <div class="flex cr-padded-text">
125+ <div>$i18n{themes}</div><div class="secondary">[[themeSublabel_]]</div> 125+ <div>$i18n{themes}</div><div class="secondary">[[themeSublabel_]]</div>
126+ </div> 126+ </div>
127 <if expr="not is_posix or chromeos or lacros"> 127 <if expr="not is_linux or chromeos_ash or chromeos_lacros">
128 <template is="dom-if" if="[[prefs.extensions.theme.id.value]]"> 128 <template is="dom-if" if="[[prefs.extensions.theme.id.value]]">
129 <div class="separator"></div> 129 <div class="separator"></div>
130--- chrome/browser/resources/settings/autofill_page/passwords_section.html.orig 130--- a/chrome/browser/resources/settings/autofill_page/passwords_section.html
131+++ chrome/browser/resources/settings/autofill_page/passwords_section.html 131+++ b/chrome/browser/resources/settings/autofill_page/passwords_section.html
132@@ -107,6 +107,7 @@ 132@@ -107,6 +107,7 @@
133 label="$i18n{trustedVaultOptInLabel}" 133 label="$i18n{passwordsAutosigninLabel}"
134 sub-label="$i18n{trustedVaultOptInSubLabel}"> 134 sub-label="$i18n{passwordsAutosigninDescription}">
135 </cr-link-row> 135 </settings-toggle-button>
136+<if expr="false"> 136+<if expr="false">
137 <div id="checkPasswordsBannerContainer" class="cr-row" 137 <div id="checkPasswordsBannerContainer" class="cr-row"
138 hidden$="[[!shouldShowBanner_]]"> 138 hidden$="[[!shouldShowBanner_]]">
139 <picture> 139 <picture>
140@@ -155,6 +156,7 @@ 140@@ -161,6 +162,7 @@
141 <!-- This div lays out the link correctly, relative to the text. --> 141 <!-- This div lays out the link correctly, relative to the text. -->
142 <div class="cr-padded-text">$i18nRaw{managePasswordsLabel}</div> 142 <div class="cr-padded-text">$i18nRaw{managePasswordsLabel}</div>
143 </div> 143 </div>
@@ -145,58 +145,60 @@
145 <div class="cr-row first"> 145 <div class="cr-row first">
146 <h2 id="savedPasswordsHeading" class="flex"> 146 <h2 id="savedPasswordsHeading" class="flex">
147 $i18n{savedPasswordsHeading} 147 $i18n{savedPasswordsHeading}
148--- chrome/browser/resources/settings/autofill_page/payments_section.html.orig 148--- a/chrome/browser/resources/settings/autofill_page/payments_section.html
149+++ chrome/browser/resources/settings/autofill_page/payments_section.html 149+++ b/chrome/browser/resources/settings/autofill_page/payments_section.html
150@@ -53,11 +53,6 @@ 150@@ -52,11 +52,6 @@
151 </div> 151 </div>
152 </template> 152 </template>
153 153
154- <div id="manageLink" class="cr-row first"> 154-<div id="manageLink" class="cr-row first">
155- <!-- This span lays out the link correctly, relative to the text. --> 155- <!-- This span lays out the link correctly, relative to the text. -->
156- <div class="cr-padded-text">$i18nRaw{manageCreditCardsLabel}</div> 156- <div class="cr-padded-text">$i18nRaw{manageCreditCardsLabel}</div>
157- </div> 157-</div>
158- 158-
159 <div class="cr-row continuation"> 159 <div class="cr-row continuation">
160 <h2 class="flex">$i18n{creditCards}</h2> 160 <h2 class="flex">$i18n{creditCards}</h2>
161 <cr-button id="addCreditCard" class="header-aligned-button" 161 <cr-button id="addCreditCard" class="header-aligned-button"
162--- chrome/browser/resources/settings/basic_page/basic_page.html.orig 162--- a/chrome/browser/resources/settings/basic_page/basic_page.html
163+++ chrome/browser/resources/settings/basic_page/basic_page.html 163+++ b/chrome/browser/resources/settings/basic_page/basic_page.html
164@@ -102,7 +102,7 @@ 164@@ -59,7 +59,7 @@
165 <settings-privacy-review-promo></settings-privacy-review-promo> 165 prefs="{{prefs}}">
166 </settings-section> 166 </settings-privacy-guide-promo>
167 </template> 167 </settings-section>
168- <template is="dom-if" if="[[showPage_(pageVisibility.safetyCheck)]]" 168- <template is="dom-if" if="[[showPage_(pageVisibility.safetyCheck)]]"
169+ <template is="dom-if" if="[[false]]" 169+ <template is="dom-if" if="[[false]]"
170 restamp> 170 restamp>
171 <settings-section page-title="$i18n{safetyCheckSectionTitle}" 171 <settings-section page-title="$i18n{safetyCheckSectionTitle}"
172 section="safetyCheck" nest-under-section="privacy" 172 section="safetyCheck" nest-under-section="privacy"
173--- chrome/browser/resources/settings/privacy_page/personalization_options.html.orig 173--- a/chrome/browser/resources/settings/privacy_page/personalization_options.html
174+++ chrome/browser/resources/settings/privacy_page/personalization_options.html 174+++ b/chrome/browser/resources/settings/privacy_page/personalization_options.html
175@@ -8,7 +8,7 @@ 175@@ -13,7 +13,7 @@
176 border-top: none; 176 padding-inline-start: 0;
177 } 177 }
178 </style> 178 </style>
179-<if expr="not chromeos"> 179-<if expr="not chromeos_ash and not chromeos_lacros">
180+<if expr="false"> 180+<if expr="false">
181 <!-- Signout is not supported yet on lacros, https://crbug.com/1217645 -->
181 <settings-toggle-button id="signinAllowedToggle" 182 <settings-toggle-button id="signinAllowedToggle"
182 class="hr" 183 class="hr"
183 hidden="[[!signinAvailable_]]" 184@@ -70,14 +70,6 @@
184@@ -51,12 +51,6 @@
185 </settings-toggle-button> 185 </settings-toggle-button>
186 </if><!-- not chromeos --> 186 </if><!-- not chromeos -->
187 </if><!-- _google_chrome --> 187 </if><!-- _google_chrome -->
188- <settings-toggle-button id="urlCollectionToggle" 188- <template is="dom-if" if="[[showUrlCollectionToggle_()]]" restamp>
189- class="hr" 189- <settings-toggle-button id="urlCollectionToggle"
190- pref="{{prefs.url_keyed_anonymized_data_collection.enabled}}" 190- class="hr"
191- label="$i18n{urlKeyedAnonymizedDataCollection}" 191- pref="{{prefs.url_keyed_anonymized_data_collection.enabled}}"
192- sub-label="$i18n{urlKeyedAnonymizedDataCollectionDesc}"> 192- label="$i18n{urlKeyedAnonymizedDataCollection}"
193- </settings-toggle-button> 193- sub-label="$i18n{urlKeyedAnonymizedDataCollectionDesc}">
194- </settings-toggle-button>
195- </template>
194 <if expr="_google_chrome"> 196 <if expr="_google_chrome">
195 <settings-toggle-button id="spellCheckControl" 197 <settings-toggle-button id="spellCheckControl"
196 class="hr" 198 class="hr"
197--- chrome/browser/resources/settings/privacy_page/security_page.html.orig 199--- a/chrome/browser/resources/settings/privacy_page/security_page.html
198+++ chrome/browser/resources/settings/privacy_page/security_page.html 200+++ b/chrome/browser/resources/settings/privacy_page/security_page.html
199@@ -96,10 +96,3 @@ 201@@ -107,10 +107,3 @@
200 sub-label="$i18n{manageCertificatesDescription}" 202 sub-label="$i18n{manageCertificatesDescription}"
201 on-click="onManageCertificatesClick_"></cr-link-row> 203 on-click="onManageCertificatesClick_"></cr-link-row>
202 </if> 204 </if>
@@ -207,8 +209,8 @@
207- on-click="onAdvancedProtectionProgramLinkClick_" 209- on-click="onAdvancedProtectionProgramLinkClick_"
208- external> 210- external>
209- </cr-link-row> 211- </cr-link-row>
210--- chrome/browser/resources/settings/search_page/search_page.html.orig 212--- a/chrome/browser/resources/settings/search_page/search_page.html
211+++ chrome/browser/resources/settings/search_page/search_page.html 213+++ b/chrome/browser/resources/settings/search_page/search_page.html
212@@ -12,10 +12,6 @@ 214@@ -12,10 +12,6 @@
213 <div class="cr-row first"> 215 <div class="cr-row first">
214 <div id="searchExplanation" class="flex cr-padded-text"> 216 <div id="searchExplanation" class="flex cr-padded-text">
@@ -220,20 +222,9 @@
220 </div> 222 </div>
221 <template is="dom-if" if="[[isDefaultSearchControlledByPolicy_( 223 <template is="dom-if" if="[[isDefaultSearchControlledByPolicy_(
222 prefs.default_search_provider_data.template_url_data)]]"> 224 prefs.default_search_provider_data.template_url_data)]]">
223--- chrome/browser/resources/settings/settings_menu/settings_menu.html.orig 225--- a/chrome/browser/resources/settings/settings_page/settings_subpage.html
224+++ chrome/browser/resources/settings/settings_menu/settings_menu.html 226+++ b/chrome/browser/resources/settings/settings_page/settings_subpage.html
225@@ -111,7 +111,7 @@ 227@@ -80,7 +80,7 @@
226 $i18n{autofillPageTitle}
227 <paper-ripple></paper-ripple>
228 </a>
229- <template is="dom-if" if="[[!enableLandingPageRedesign_]]">
230+ <template is="dom-if" if="[[false]]">
231 <a role="menuitem" href="/safetyCheck"
232 hidden="[[!pageVisibility.safetyCheck]]"
233 id="safetyCheck"
234--- chrome/browser/resources/settings/settings_page/settings_subpage.html.orig
235+++ chrome/browser/resources/settings/settings_page/settings_subpage.html
236@@ -72,7 +72,7 @@
237 </template> 228 </template>
238 <h1 class="cr-title-text">[[pageTitle]]</h1> 229 <h1 class="cr-title-text">[[pageTitle]]</h1>
239 <slot name="subpage-title-extra"></slot> 230 <slot name="subpage-title-extra"></slot>
@@ -242,9 +233,9 @@
242 <cr-icon-button iron-icon="cr:help-outline" dir="ltr" 233 <cr-icon-button iron-icon="cr:help-outline" dir="ltr"
243 aria-label="$i18n{learnMore}" on-click="onHelpClick_"> 234 aria-label="$i18n{learnMore}" on-click="onHelpClick_">
244 </cr-icon-button> 235 </cr-icon-button>
245--- chrome/browser/ui/views/profiles/profile_menu_view.cc.orig 236--- a/chrome/browser/ui/views/profiles/profile_menu_view.cc
246+++ chrome/browser/ui/views/profiles/profile_menu_view.cc 237+++ b/chrome/browser/ui/views/profiles/profile_menu_view.cc
247@@ -176,6 +176,7 @@ void ProfileMenuView::BuildMenu() { 238@@ -175,6 +175,7 @@ void ProfileMenuView::BuildMenu() {
248 } 239 }
249 240
250 gfx::ImageSkia ProfileMenuView::GetSyncIcon() const { 241 gfx::ImageSkia ProfileMenuView::GetSyncIcon() const {
@@ -252,7 +243,7 @@
252 Profile* profile = browser()->profile(); 243 Profile* profile = browser()->profile();
253 if (profile->IsOffTheRecord() || profile->IsGuestSession()) 244 if (profile->IsOffTheRecord() || profile->IsGuestSession())
254 return gfx::ImageSkia(); 245 return gfx::ImageSkia();
255@@ -450,8 +451,7 @@ void ProfileMenuView::BuildIdentity() { 246@@ -457,8 +458,7 @@ void ProfileMenuView::BuildIdentity() {
256 menu_subtitle_); 247 menu_subtitle_);
257 } else { 248 } else {
258 menu_title_ = std::u16string(); 249 menu_title_ = std::u16string();
@@ -262,21 +253,19 @@
262 SetProfileIdentityInfo( 253 SetProfileIdentityInfo(
263 profile_name, background_color, edit_button_params, 254 profile_name, background_color, edit_button_params,
264 ui::ImageModel::FromImage( 255 ui::ImageModel::FromImage(
265--- chrome/browser/ui/views/sad_tab_view.cc.orig 256--- a/chrome/browser/ui/views/sad_tab_view.cc
266+++ chrome/browser/ui/views/sad_tab_view.cc 257+++ b/chrome/browser/ui/views/sad_tab_view.cc
267@@ -556,15 +556,9 @@ SadTabView::SadTabView(content::WebConte 258@@ -548,13 +548,6 @@ SadTabView::SadTabView(content::WebConte
268 CreateErrorCodeLabel(GetErrorCodeFormatString(), GetCrashedErrorCode()), 259 auto* actions_container =
269 2, 1.0, views::GridLayout::LEADING, views::GridLayout::LEADING); 260 container->AddChildView(std::make_unique<views::FlexLayoutView>());
270 261 actions_container->SetCrossAxisAlignment(views::LayoutAlignment::kCenter);
271- auto help_link = std::make_unique<views::Link>( 262- auto* help_link =
272- l10n_util::GetStringUTF16(GetHelpLinkTitle())); 263- actions_container->AddChildView(std::make_unique<views::Link>(
264- l10n_util::GetStringUTF16(GetHelpLinkTitle())));
273- help_link->SetCallback(base::BindRepeating( 265- help_link->SetCallback(base::BindRepeating(
274- &SadTab::PerformAction, base::Unretained(this), Action::HELP_LINK)); 266- &SadTab::PerformAction, base::Unretained(this), Action::HELP_LINK));
275 layout->StartRowWithPadding(views::GridLayout::kFixedSize, column_set_id, 267- help_link->SetProperty(views::kTableVertAlignKey,
276 views::GridLayout::kFixedSize, 268- views::LayoutAlignment::kCenter);
277 unrelated_vertical_spacing_large); 269 action_button_ =
278- layout->AddView(std::move(help_link), 1.0, 1.0, views::GridLayout::LEADING, 270 actions_container->AddChildView(std::make_unique<views::MdTextButton>(
279- views::GridLayout::CENTER); 271 base::BindRepeating(&SadTabView::PerformAction,
280 auto action_button = std::make_unique<views::MdTextButton>(
281 base::BindRepeating(&SadTabView::PerformAction, base::Unretained(this),
282 Action::BUTTON),