summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www/chromium-uc/Makefile2
-rw-r--r--www/chromium-uc/distinfo4
-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.patch307
-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.patch26
-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.patch4
-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.patch357
-rw-r--r--www/chromium-uc/patches/core/iridium-browser/safe_browsing-disable-incident-reporting.patch24
-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.patch32
-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.patch67
-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.patch70
-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.patch47
-rw-r--r--www/chromium-uc/patches/core/ungoogled-chromium/disable-webrtc-log-uploader.patch4
-rw-r--r--www/chromium-uc/patches/core/ungoogled-chromium/disable-webstore-urls.patch65
-rw-r--r--www/chromium-uc/patches/core/ungoogled-chromium/doh-changes.patch26
-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.patch837
-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.patch1837
-rw-r--r--www/chromium-uc/patches/core/ungoogled-chromium/replace-google-search-engine-with-nosearch.patch6
-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.patch132
-rw-r--r--www/chromium-uc/patches/extra/bromite/flag-fingerprinting-canvas-image-data-noise.patch66
-rw-r--r--www/chromium-uc/patches/extra/bromite/flag-max-connections-per-host.patch64
-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.patch108
-rw-r--r--www/chromium-uc/patches/extra/inox-patchset/0008-restore-classic-ntp.patch10
-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.patch4
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/add-components-ungoogled.patch6
-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.patch14
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-close-confirmation.patch34
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-custom-ntp.patch22
-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.patch30
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-pdf-plugin-name.patch82
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-qr-generator.patch32
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-search-engine-collection.patch38
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-tab-hover-cards.patch24
-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-clear-data-on-exit.patch36
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-close-window-with-last-tab.patch18
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-configure-extension-downloading.patch34
-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-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.patch22
-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.patch116
-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.patch73
-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.patch8
-rw-r--r--www/chromium-uc/patches/extra/ungoogled-chromium/remove-uneeded-ui.patch177
104 files changed, 3131 insertions, 2934 deletions
diff --git a/www/chromium-uc/Makefile b/www/chromium-uc/Makefile
index 4580fda..f52c0c8 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= 100.0.4896.75 11V= 96.0.4664.110
12 12
13REVISION= 1 13REVISION= 1
14 14
diff --git a/www/chromium-uc/distinfo b/www/chromium-uc/distinfo
index 8c1134d..7dfdeb3 100644
--- a/www/chromium-uc/distinfo
+++ b/www/chromium-uc/distinfo
@@ -1,2 +1,2 @@
1SHA256 (chromium-100.0.4896.75.tar.xz) = JE7TUt+qGrax8Id8SIT9F6p9cTP6UvEpqfsBMl6gwMA= 1SHA256 (chromium-96.0.4664.110.tar.xz) = NqmdKcLpOpl1vlNkjyzT/6TuQ3MPIXouftiMGQGmceg=
2SIZE (chromium-100.0.4896.75.tar.xz) = 1358118152 2SIZE (chromium-96.0.4664.110.tar.xz) = 1209944416
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 ada54c2..ebb9aec 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--- a/chrome/browser/flags/android/java/src/org/chromium/chrome/browser/flags/ChromeFeatureList.java 11--- chrome/browser/flags/android/java/src/org/chromium/chrome/browser/flags/ChromeFeatureList.java.orig
12+++ b/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
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--- a/components/variations/service/variations_service.cc 68--- components/variations/service/variations_service.cc.orig
69+++ b/components/variations/service/variations_service.cc 69+++ components/variations/service/variations_service.cc
70@@ -234,17 +234,7 @@ bool GetInstanceManipulations(const net: 70@@ -238,17 +238,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 e2164c0..a87c2a8 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--- a/chrome/browser/safe_browsing/download_protection/file_analyzer.cc 5--- chrome/browser/safe_browsing/download_protection/file_analyzer.cc.orig
6+++ b/chrome/browser/safe_browsing/download_protection/file_analyzer.cc 6+++ chrome/browser/safe_browsing/download_protection/file_analyzer.cc
7@@ -97,7 +97,7 @@ void FileAnalyzer::Start(const base::Fil 7@@ -95,7 +95,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 BUILDFLAG(IS_MAC) 13 #if defined(OS_MAC)
14 } else if (inspection_type == DownloadFileType::DMG) { 14 } else if (inspection_type == DownloadFileType::DMG) {
15 StartExtractDmgFeatures(); 15 StartExtractDmgFeatures();
16--- a/chrome/common/safe_browsing/BUILD.gn 16--- chrome/common/safe_browsing/BUILD.gn.orig
17+++ b/chrome/common/safe_browsing/BUILD.gn 17+++ 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--- a/chrome/services/file_util/safe_archive_analyzer.cc 66--- chrome/services/file_util/safe_archive_analyzer.cc.orig
67+++ b/chrome/services/file_util/safe_archive_analyzer.cc 67+++ chrome/services/file_util/safe_archive_analyzer.cc
68@@ -6,7 +6,6 @@ 68@@ -7,7 +7,6 @@
69 69 #include "base/macros.h"
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 BUILDFLAG(IS_MAC) 75 #if defined(OS_MAC)
76@@ -46,8 +45,7 @@ void SafeArchiveAnalyzer::AnalyzeRarFile 76@@ -47,8 +46,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 855718c..18fc72a 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--- a/chrome/browser/BUILD.gn 1--- chrome/browser/BUILD.gn.orig
2+++ b/chrome/browser/BUILD.gn 2+++ chrome/browser/BUILD.gn
3@@ -2174,7 +2174,6 @@ static_library("browser") { 3@@ -2195,7 +2195,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@@ -3719,8 +3718,6 @@ static_library("browser") { 11@@ -3706,8 +3705,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--- a/chrome/browser/browser_process.h 20--- chrome/browser/browser_process.h.orig
21+++ b/chrome/browser/browser_process.h 21+++ chrome/browser/browser_process.h
22@@ -54,10 +54,6 @@ class NetworkQualityTracker; 22@@ -55,10 +55,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@@ -210,9 +206,6 @@ class BrowserProcess { 33@@ -218,9 +214,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,8 +40,8 @@
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--- a/chrome/browser/browser_process_impl.cc 43--- chrome/browser/browser_process_impl.cc.orig
44+++ b/chrome/browser/browser_process_impl.cc 44+++ chrome/browser/browser_process_impl.cc
45@@ -70,7 +70,6 @@ 45@@ -70,7 +70,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"
@@ -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@@ -393,8 +392,6 @@ void BrowserProcessImpl::StartTearDown() 53@@ -395,8 +394,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@@ -1028,14 +1025,6 @@ StatusTray* BrowserProcessImpl::status_t 62@@ -1030,14 +1027,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@@ -1280,26 +1269,6 @@ void BrowserProcessImpl::CreateBackgroun 77@@ -1300,26 +1289,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--- a/chrome/browser/browser_process_impl.h 104--- chrome/browser/browser_process_impl.h.orig
105+++ b/chrome/browser/browser_process_impl.h 105+++ chrome/browser/browser_process_impl.h
106@@ -189,7 +189,6 @@ class BrowserProcessImpl : public Browse 106@@ -190,7 +190,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 113 federated_learning::FlocSortingLshClustersService*
114@@ -336,9 +335,6 @@ class BrowserProcessImpl : public Browse 114@@ -344,9 +343,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--- a/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc 124--- chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc.orig
125+++ b/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc 125+++ chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc
126@@ -63,7 +63,6 @@ 126@@ -70,7 +70,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"
129 #include "chrome/browser/profiles/profile.h" 127 #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/search_engines/template_url_service_factory.h" 131 #include "chrome/browser/search_engines/template_url_service_factory.h"
132 #include "chrome/browser/share/share_history.h" 132 #include "chrome/browser/share/share_history.h"
133 #include "chrome/browser/share/share_ranking.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 if (!filter_builder->IsCrossSiteClearSiteData()) { 143 browsing_data::RemoveEmbedderCookieData(
144 browsing_data::RemoveEmbedderCookieData( 144 delete_begin, delete_end, filter_builder, host_content_settings_map_,
145--- a/chrome/browser/chrome_content_browser_client.cc 145--- chrome/browser/chrome_content_browser_client.cc.orig
146+++ b/chrome/browser/chrome_content_browser_client.cc 146+++ chrome/browser/chrome_content_browser_client.cc
147@@ -950,34 +950,6 @@ void SetApplicationLocaleOnIOThread(cons 147@@ -921,34 +921,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- raw_ptr<CertificateReportingService> service_; 176- 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@@ -1465,7 +1437,6 @@ void ChromeContentBrowserClient::PostAft 182@@ -1423,7 +1395,6 @@ void ChromeContentBrowserClient::PostAft
183 InitNetworkContextsParentDirectory(); 183 InitNetworkContextsParentDirectory();
184 184
185 DCHECK_CURRENTLY_ON(BrowserThread::UI); 185 DCHECK_CURRENTLY_ON(BrowserThread::UI);
@@ -187,7 +187,7 @@
187 } 187 }
188 188
189 bool ChromeContentBrowserClient::IsBrowserStartupComplete() { 189 bool ChromeContentBrowserClient::IsBrowserStartupComplete() {
190@@ -4279,7 +4250,7 @@ ChromeContentBrowserClient::CreateThrott 190@@ -4229,7 +4200,7 @@ ChromeContentBrowserClient::CreateThrott
191 content::WebContents* web_contents = handle->GetWebContents(); 191 content::WebContents* web_contents = handle->GetWebContents();
192 throttles.push_back(std::make_unique<SSLErrorNavigationThrottle>( 192 throttles.push_back(std::make_unique<SSLErrorNavigationThrottle>(
193 handle, 193 handle,
@@ -196,7 +196,7 @@
196 base::BindOnce(&HandleSSLErrorWrapper), base::BindOnce(&IsInHostedApp), 196 base::BindOnce(&HandleSSLErrorWrapper), base::BindOnce(&IsInHostedApp),
197 base::BindOnce( 197 base::BindOnce(
198 &ShouldIgnoreSslInterstitialBecauseNavigationDefaultedToHttps))); 198 &ShouldIgnoreSslInterstitialBecauseNavigationDefaultedToHttps)));
199@@ -4314,16 +4285,6 @@ ChromeContentBrowserClient::CreateThrott 199@@ -4258,15 +4229,6 @@ ChromeContentBrowserClient::CreateThrott
200 &throttles); 200 &throttles);
201 #endif 201 #endif
202 202
@@ -205,16 +205,15 @@
205- g_browser_process->safe_browsing_service() 205- g_browser_process->safe_browsing_service()
206- ? g_browser_process->safe_browsing_service()->ui_manager().get() 206- ? g_browser_process->safe_browsing_service()->ui_manager().get()
207- : nullptr; 207- : nullptr;
208- MaybeAddThrottle( 208- throttles.push_back(
209- safe_browsing::SafeBrowsingNavigationThrottle::MaybeCreateThrottleFor( 209- std::make_unique<safe_browsing::SafeBrowsingNavigationThrottle>(
210- handle, ui_manager), 210- handle, ui_manager));
211- &throttles);
212- 211-
213 if (base::FeatureList::IsEnabled(safe_browsing::kDelayedWarnings)) { 212 if (base::FeatureList::IsEnabled(safe_browsing::kDelayedWarnings)) {
214 throttles.push_back( 213 throttles.push_back(
215 std::make_unique<safe_browsing::DelayedWarningNavigationThrottle>( 214 std::make_unique<safe_browsing::DelayedWarningNavigationThrottle>(
216--- a/chrome/browser/component_updater/file_type_policies_component_installer.cc 215--- chrome/browser/component_updater/file_type_policies_component_installer.cc.orig
217+++ b/chrome/browser/component_updater/file_type_policies_component_installer.cc 216+++ chrome/browser/component_updater/file_type_policies_component_installer.cc
218@@ -40,20 +40,6 @@ const uint8_t kFileTypePoliciesPublicKey 217@@ -40,20 +40,6 @@ const uint8_t kFileTypePoliciesPublicKey
219 const char kFileTypePoliciesManifestName[] = "File Type Policies"; 218 const char kFileTypePoliciesManifestName[] = "File Type Policies";
220 219
@@ -236,9 +235,9 @@
236 } 235 }
237 236
238 } // namespace 237 } // namespace
239--- a/chrome/browser/download/chrome_download_manager_delegate.cc 238--- chrome/browser/download/chrome_download_manager_delegate.cc.orig
240+++ b/chrome/browser/download/chrome_download_manager_delegate.cc 239+++ chrome/browser/download/chrome_download_manager_delegate.cc
241@@ -431,13 +431,6 @@ ChromeDownloadManagerDelegate::~ChromeDo 240@@ -436,13 +436,6 @@ ChromeDownloadManagerDelegate::~ChromeDo
242 241
243 void ChromeDownloadManagerDelegate::SetDownloadManager(DownloadManager* dm) { 242 void ChromeDownloadManagerDelegate::SetDownloadManager(DownloadManager* dm) {
244 download_manager_ = dm; 243 download_manager_ = dm;
@@ -251,16 +250,15 @@
251- } 250- }
252 } 251 }
253 252
254 #if BUILDFLAG(IS_ANDROID) 253 #if defined(OS_ANDROID)
255@@ -791,17 +784,6 @@ void ChromeDownloadManagerDelegate::Choo 254@@ -791,16 +784,6 @@ void ChromeDownloadManagerDelegate::Choo
255
256 void ChromeDownloadManagerDelegate::SanitizeSavePackageResourceName( 256 void ChromeDownloadManagerDelegate::SanitizeSavePackageResourceName(
257 base::FilePath* filename, 257 base::FilePath* filename) {
258 const GURL& source_url) {
259- safe_browsing::FileTypePolicies* file_type_policies = 258- safe_browsing::FileTypePolicies* file_type_policies =
260- safe_browsing::FileTypePolicies::GetInstance(); 259- safe_browsing::FileTypePolicies::GetInstance();
261- 260-
262- const PrefService* prefs = profile_->GetPrefs(); 261- if (file_type_policies->GetFileDangerLevel(*filename) ==
263- if (file_type_policies->GetFileDangerLevel(*filename, source_url, prefs) ==
264- safe_browsing::DownloadFileType::NOT_DANGEROUS) 262- safe_browsing::DownloadFileType::NOT_DANGEROUS)
265- return; 263- return;
266- 264-
@@ -270,9 +268,9 @@
270 } 268 }
271 269
272 void ChromeDownloadManagerDelegate::SanitizeDownloadParameters( 270 void ChromeDownloadManagerDelegate::SanitizeDownloadParameters(
273--- a/chrome/browser/download/download_item_model.cc 271--- chrome/browser/download/download_item_model.cc.orig
274+++ b/chrome/browser/download/download_item_model.cc 272+++ chrome/browser/download/download_item_model.cc
275@@ -87,7 +87,7 @@ class DownloadItemModelData : public bas 273@@ -86,7 +86,7 @@ class DownloadItemModelData : public bas
276 274
277 // Danger level of the file determined based on the file type and whether 275 // Danger level of the file determined based on the file type and whether
278 // there was a user action associated with the download. 276 // there was a user action associated with the download.
@@ -281,7 +279,7 @@
281 279
282 // Whether the download is currently being revived. 280 // Whether the download is currently being revived.
283 bool is_being_revived_; 281 bool is_being_revived_;
284@@ -124,7 +124,7 @@ DownloadItemModelData::DownloadItemModel 282@@ -123,7 +123,7 @@ DownloadItemModelData::DownloadItemModel
285 : should_show_in_shelf_(true), 283 : should_show_in_shelf_(true),
286 was_ui_notified_(false), 284 was_ui_notified_(false),
287 should_prefer_opening_in_browser_(false), 285 should_prefer_opening_in_browser_(false),
@@ -290,7 +288,7 @@
290 is_being_revived_(false) {} 288 is_being_revived_(false) {}
291 289
292 } // namespace 290 } // namespace
293@@ -382,13 +382,13 @@ void DownloadItemModel::SetShouldPreferO 291@@ -381,13 +381,13 @@ void DownloadItemModel::SetShouldPreferO
294 data->should_prefer_opening_in_browser_ = preference; 292 data->should_prefer_opening_in_browser_ = preference;
295 } 293 }
296 294
@@ -307,7 +305,7 @@
307 DownloadItemModelData* data = DownloadItemModelData::GetOrCreate(download_); 305 DownloadItemModelData* data = DownloadItemModelData::GetOrCreate(download_);
308 data->danger_level_ = danger_level; 306 data->danger_level_ = danger_level;
309 } 307 }
310@@ -604,9 +604,6 @@ bool DownloadItemModel::IsCommandEnabled 308@@ -599,9 +599,6 @@ bool DownloadItemModel::IsCommandEnabled
311 // filename. Don't base an "Always open" decision based on it. Also 309 // filename. Don't base an "Always open" decision based on it. Also
312 // exclude extensions. 310 // exclude extensions.
313 return download_->CanOpenDownload() && 311 return download_->CanOpenDownload() &&
@@ -317,9 +315,9 @@
317 !download_crx_util::IsExtensionDownload(*download_); 315 !download_crx_util::IsExtensionDownload(*download_);
318 case DownloadCommands::PAUSE: 316 case DownloadCommands::PAUSE:
319 return !download_->IsSavePackageDownload() && 317 return !download_->IsSavePackageDownload() &&
320--- a/chrome/browser/download/download_prefs.cc 318--- chrome/browser/download/download_prefs.cc.orig
321+++ b/chrome/browser/download/download_prefs.cc 319+++ chrome/browser/download/download_prefs.cc
322@@ -251,14 +251,7 @@ DownloadPrefs::DownloadPrefs(Profile* pr 320@@ -260,14 +260,7 @@ DownloadPrefs::DownloadPrefs(Profile* pr
323 base::FilePath::StringType(1, base::FilePath::kExtensionSeparator) + 321 base::FilePath::StringType(1, base::FilePath::kExtensionSeparator) +
324 extension); 322 extension);
325 323
@@ -335,7 +333,7 @@
335 } 333 }
336 } 334 }
337 335
338@@ -466,10 +459,6 @@ bool DownloadPrefs::IsAutoOpenByPolicy(c 336@@ -475,10 +468,6 @@ bool DownloadPrefs::IsAutoOpenByPolicy(c
339 bool DownloadPrefs::EnableAutoOpenByUserBasedOnExtension( 337 bool DownloadPrefs::EnableAutoOpenByUserBasedOnExtension(
340 const base::FilePath& file_name) { 338 const base::FilePath& file_name) {
341 base::FilePath::StringType extension = file_name.Extension(); 339 base::FilePath::StringType extension = file_name.Extension();
@@ -346,9 +344,9 @@
346 344
347 DCHECK(extension[0] == base::FilePath::kExtensionSeparator); 345 DCHECK(extension[0] == base::FilePath::kExtensionSeparator);
348 extension.erase(0, 1); 346 extension.erase(0, 1);
349--- a/chrome/browser/download/download_target_determiner.cc 347--- chrome/browser/download/download_target_determiner.cc.orig
350+++ b/chrome/browser/download/download_target_determiner.cc 348+++ chrome/browser/download/download_target_determiner.cc
351@@ -298,13 +298,6 @@ base::FilePath DownloadTargetDeterminer: 349@@ -297,13 +297,6 @@ base::FilePath DownloadTargetDeterminer:
352 download_->GetURL(), download_->GetContentDisposition(), referrer_charset, 350 download_->GetURL(), download_->GetContentDisposition(), referrer_charset,
353 suggested_filename, sniffed_mime_type, default_filename); 351 suggested_filename, sniffed_mime_type, default_filename);
354 352
@@ -362,14 +360,13 @@
362 // If no mime type or explicitly specified a name, don't replace file 360 // If no mime type or explicitly specified a name, don't replace file
363 // extension. 361 // extension.
364 if (sniffed_mime_type.empty() || !suggested_filename.empty()) 362 if (sniffed_mime_type.empty() || !suggested_filename.empty())
365@@ -1111,30 +1104,7 @@ DownloadFileType::DangerLevel DownloadTa 363@@ -1113,29 +1106,7 @@ DownloadFileType::DangerLevel DownloadTa
366 download_->HasUserGesture()) 364 download_->HasUserGesture())
367 return DownloadFileType::NOT_DANGEROUS; 365 return DownloadFileType::NOT_DANGEROUS;
368 366
369- DownloadFileType::DangerLevel danger_level = 367- DownloadFileType::DangerLevel danger_level =
370- safe_browsing::FileTypePolicies::GetInstance()->GetFileDangerLevel( 368- safe_browsing::FileTypePolicies::GetInstance()->GetFileDangerLevel(
371- virtual_path_.BaseName(), download_->GetURL(), 369- virtual_path_.BaseName());
372- GetProfile()->GetPrefs());
373- 370-
374- // A danger level of ALLOW_ON_USER_GESTURE is used to label potentially 371- // A danger level of ALLOW_ON_USER_GESTURE is used to label potentially
375- // dangerous file types that have a high frequency of legitimate use. We would 372- // dangerous file types that have a high frequency of legitimate use. We would
@@ -394,8 +391,8 @@
394 } 391 }
395 392
396 absl::optional<base::Time> 393 absl::optional<base::Time>
397--- a/chrome/browser/extensions/api/downloads/downloads_api.cc 394--- chrome/browser/extensions/api/downloads/downloads_api.cc.orig
398+++ b/chrome/browser/extensions/api/downloads/downloads_api.cc 395+++ chrome/browser/extensions/api/downloads/downloads_api.cc
399@@ -36,7 +36,6 @@ 396@@ -36,7 +36,6 @@
400 #include "chrome/browser/browser_process.h" 397 #include "chrome/browser/browser_process.h"
401 #include "chrome/browser/download/download_core_service.h" 398 #include "chrome/browser/download/download_core_service.h"
@@ -458,10 +455,10 @@
458 } 455 }
459 456
460 DownloadsShowFunction::DownloadsShowFunction() {} 457 DownloadsShowFunction::DownloadsShowFunction() {}
461--- a/chrome/browser/extensions/api/downloads/downloads_api.h 458--- chrome/browser/extensions/api/downloads/downloads_api.h.orig
462+++ b/chrome/browser/extensions/api/downloads/downloads_api.h 459+++ chrome/browser/extensions/api/downloads/downloads_api.h
463@@ -13,7 +13,6 @@ 460@@ -13,7 +13,6 @@
464 #include "base/memory/raw_ptr.h" 461 #include "base/macros.h"
465 #include "base/scoped_observation.h" 462 #include "base/scoped_observation.h"
466 #include "base/time/time.h" 463 #include "base/time/time.h"
467-#include "chrome/browser/download/download_danger_prompt.h" 464-#include "chrome/browser/download/download_danger_prompt.h"
@@ -496,8 +493,8 @@
496 }; 493 };
497 494
498 class DownloadsShowFunction : public ExtensionFunction { 495 class DownloadsShowFunction : public ExtensionFunction {
499--- a/chrome/browser/extensions/api/safe_browsing_private/safe_browsing_private_api.cc 496--- chrome/browser/extensions/api/safe_browsing_private/safe_browsing_private_api.cc.orig
500+++ b/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
501@@ -54,38 +54,7 @@ SafeBrowsingPrivateGetReferrerChainFunct 498@@ -54,38 +54,7 @@ SafeBrowsingPrivateGetReferrerChainFunct
502 base::StringPrintf("Could not find tab with id %d.", params->tab_id))); 499 base::StringPrintf("Could not find tab with id %d.", params->tab_id)));
503 } 500 }
@@ -537,9 +534,9 @@
537 return RespondNow(ArgumentList( 534 return RespondNow(ArgumentList(
538 api::safe_browsing_private::GetReferrerChain::Results::Create( 535 api::safe_browsing_private::GetReferrerChain::Results::Create(
539 referrer_entries))); 536 referrer_entries)));
540--- a/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc 537--- chrome/browser/extensions/api/webstore_private/webstore_private_api.cc.orig
541+++ b/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc 538+++ chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
542@@ -716,18 +716,6 @@ void WebstorePrivateBeginInstallWithMani 539@@ -683,18 +683,6 @@ void WebstorePrivateBeginInstallWithMani
543 540
544 void WebstorePrivateBeginInstallWithManifest3Function:: 541 void WebstorePrivateBeginInstallWithManifest3Function::
545 ReportFrictionAcceptedEvent() { 542 ReportFrictionAcceptedEvent() {
@@ -558,7 +555,7 @@
558 } 555 }
559 556
560 void WebstorePrivateBeginInstallWithManifest3Function::OnInstallPromptDone( 557 void WebstorePrivateBeginInstallWithManifest3Function::OnInstallPromptDone(
561@@ -1192,52 +1180,9 @@ WebstorePrivateGetReferrerChainFunction: 558@@ -1159,52 +1147,9 @@ WebstorePrivateGetReferrerChainFunction:
562 559
563 ExtensionFunction::ResponseAction 560 ExtensionFunction::ResponseAction
564 WebstorePrivateGetReferrerChainFunction::Run() { 561 WebstorePrivateGetReferrerChainFunction::Run() {
@@ -612,9 +609,9 @@
612 } 609 }
613 610
614 WebstorePrivateGetExtensionStatusFunction:: 611 WebstorePrivateGetExtensionStatusFunction::
615--- a/chrome/browser/extensions/blocklist_state_fetcher.cc 612--- chrome/browser/extensions/blocklist_state_fetcher.cc.orig
616+++ b/chrome/browser/extensions/blocklist_state_fetcher.cc 613+++ chrome/browser/extensions/blocklist_state_fetcher.cc
617@@ -38,23 +38,8 @@ BlocklistStateFetcher::~BlocklistStateFe 614@@ -34,33 +34,8 @@ BlocklistStateFetcher::~BlocklistStateFe
618 void BlocklistStateFetcher::Request(const std::string& id, 615 void BlocklistStateFetcher::Request(const std::string& id,
619 RequestCallback callback) { 616 RequestCallback callback) {
620 DCHECK_CURRENTLY_ON(BrowserThread::UI); 617 DCHECK_CURRENTLY_ON(BrowserThread::UI);
@@ -634,13 +631,23 @@
634- if (request_already_sent) 631- if (request_already_sent)
635- return; 632- return;
636- 633-
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-
637- SendRequest(id); 644- SendRequest(id);
638+ base::ThreadTaskRunnerHandle::Get()->PostTask( 645+ base::ThreadTaskRunnerHandle::Get()->PostTask(
639+ FROM_HERE, base::BindOnce(std::move(callback), BLOCKLISTED_UNKNOWN)); 646+ FROM_HERE, base::BindOnce(std::move(callback), BLOCKLISTED_UNKNOWN));
640 } 647 }
641 648
642 void BlocklistStateFetcher::SendRequest(const std::string& id) { 649 void BlocklistStateFetcher::SendRequest(const std::string& id) {
643@@ -65,8 +50,7 @@ void BlocklistStateFetcher::SendRequest( 650@@ -71,8 +46,7 @@ void BlocklistStateFetcher::SendRequest(
644 std::string request_str; 651 std::string request_str;
645 request.SerializeToString(&request_str); 652 request.SerializeToString(&request_str);
646 653
@@ -650,7 +657,7 @@
650 net::NetworkTrafficAnnotationTag traffic_annotation = 657 net::NetworkTrafficAnnotationTag traffic_annotation =
651 net::DefineNetworkTrafficAnnotation("extension_blacklist", R"( 658 net::DefineNetworkTrafficAnnotation("extension_blacklist", R"(
652 semantics { 659 semantics {
653@@ -114,12 +98,6 @@ void BlocklistStateFetcher::SendRequest( 660@@ -122,12 +96,6 @@ void BlocklistStateFetcher::SendRequest(
654 base::Unretained(this), fetcher)); 661 base::Unretained(this), fetcher));
655 } 662 }
656 663
@@ -663,9 +670,9 @@
663 void BlocklistStateFetcher::OnURLLoaderComplete( 670 void BlocklistStateFetcher::OnURLLoaderComplete(
664 network::SimpleURLLoader* url_loader, 671 network::SimpleURLLoader* url_loader,
665 std::unique_ptr<std::string> response_body) { 672 std::unique_ptr<std::string> response_body) {
666--- a/chrome/browser/extensions/blocklist_state_fetcher.h 673--- chrome/browser/extensions/blocklist_state_fetcher.h.orig
667+++ b/chrome/browser/extensions/blocklist_state_fetcher.h 674+++ chrome/browser/extensions/blocklist_state_fetcher.h
668@@ -36,8 +36,6 @@ class BlocklistStateFetcher { 675@@ -37,8 +37,6 @@ class BlocklistStateFetcher {
669 676
670 virtual void Request(const std::string& id, RequestCallback callback); 677 virtual void Request(const std::string& id, RequestCallback callback);
671 678
@@ -674,7 +681,7 @@
674 protected: 681 protected:
675 void OnURLLoaderComplete(network::SimpleURLLoader* url_loader, 682 void OnURLLoaderComplete(network::SimpleURLLoader* url_loader,
676 std::unique_ptr<std::string> response_body); 683 std::unique_ptr<std::string> response_body);
677@@ -56,7 +54,6 @@ class BlocklistStateFetcher { 684@@ -57,7 +55,6 @@ class BlocklistStateFetcher {
678 685
679 void SendRequest(const std::string& id); 686 void SendRequest(const std::string& id);
680 687
@@ -682,20 +689,20 @@
682 scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory_; 689 scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory_;
683 690
684 // SimpleURLLoader -> (owned loader, extension id). 691 // SimpleURLLoader -> (owned loader, extension id).
685--- a/chrome/browser/metrics/chrome_metrics_service_client.cc 692--- chrome/browser/metrics/chrome_metrics_service_client.cc.orig
686+++ b/chrome/browser/metrics/chrome_metrics_service_client.cc 693+++ chrome/browser/metrics/chrome_metrics_service_client.cc
687@@ -856,9 +856,6 @@ void ChromeMetricsServiceClient::Registe 694@@ -828,9 +828,6 @@ void ChromeMetricsServiceClient::Registe
688 metrics_service_->RegisterMetricsProvider( 695 metrics_service_->RegisterMetricsProvider(
689 std::make_unique<HttpsEngagementMetricsProvider>()); 696 std::make_unique<HttpsEngagementMetricsProvider>());
690 697
691- metrics_service_->RegisterMetricsProvider( 698- metrics_service_->RegisterMetricsProvider(
692- std::make_unique<CertificateReportingMetricsProvider>()); 699- std::make_unique<CertificateReportingMetricsProvider>());
693- 700-
694 #if !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_CHROMEOS_ASH) 701 #if !defined(OS_ANDROID) && !BUILDFLAG(IS_CHROMEOS_ASH)
695 metrics_service_->RegisterMetricsProvider( 702 metrics_service_->RegisterMetricsProvider(
696 std::make_unique<UpgradeMetricsProvider>()); 703 std::make_unique<UpgradeMetricsProvider>());
697--- a/chrome/browser/net/trial_comparison_cert_verifier_controller.cc 704--- chrome/browser/net/trial_comparison_cert_verifier_controller.cc.orig
698+++ b/chrome/browser/net/trial_comparison_cert_verifier_controller.cc 705+++ chrome/browser/net/trial_comparison_cert_verifier_controller.cc
699@@ -138,9 +138,6 @@ void TrialComparisonCertVerifierControll 706@@ -138,9 +138,6 @@ void TrialComparisonCertVerifierControll
700 std::string serialized_report; 707 std::string serialized_report;
701 if (!report.Serialize(&serialized_report)) 708 if (!report.Serialize(&serialized_report))
@@ -706,19 +713,19 @@
706 } 713 }
707 714
708 // static 715 // static
709--- a/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc 716--- chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc.orig
710+++ b/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc 717+++ chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc
711@@ -317,7 +317,6 @@ void ChromeBrowserMainExtraPartsProfiles 718@@ -297,7 +297,6 @@ void ChromeBrowserMainExtraPartsProfiles
712 #if BUILDFLAG(IS_CHROMEOS_LACROS) 719 #if BUILDFLAG(IS_CHROMEOS_LACROS)
713 CertDbInitializerFactory::GetInstance(); 720 CertDbInitializerFactory::GetInstance();
714 #endif 721 #endif
715- CertificateReportingServiceFactory::GetInstance(); 722- CertificateReportingServiceFactory::GetInstance();
716 #if !BUILDFLAG(IS_ANDROID) 723 #if !defined(OS_ANDROID)
717 ChromeBrowsingDataLifetimeManagerFactory::GetInstance(); 724 ChromeBrowsingDataLifetimeManagerFactory::GetInstance();
718 #endif 725 #endif
719--- a/chrome/browser/profiles/profile_impl.cc 726--- chrome/browser/profiles/profile_impl.cc.orig
720+++ b/chrome/browser/profiles/profile_impl.cc 727+++ chrome/browser/profiles/profile_impl.cc
721@@ -94,7 +94,6 @@ 728@@ -93,7 +93,6 @@
722 #include "chrome/browser/profiles/profile_metrics.h" 729 #include "chrome/browser/profiles/profile_metrics.h"
723 #include "chrome/browser/push_messaging/push_messaging_service_factory.h" 730 #include "chrome/browser/push_messaging/push_messaging_service_factory.h"
724 #include "chrome/browser/push_messaging/push_messaging_service_impl.h" 731 #include "chrome/browser/push_messaging/push_messaging_service_impl.h"
@@ -726,7 +733,7 @@
726 #include "chrome/browser/sessions/exit_type_service.h" 733 #include "chrome/browser/sessions/exit_type_service.h"
727 #include "chrome/browser/sharing/sharing_service_factory.h" 734 #include "chrome/browser/sharing/sharing_service_factory.h"
728 #include "chrome/browser/signin/identity_manager_factory.h" 735 #include "chrome/browser/signin/identity_manager_factory.h"
729@@ -621,17 +620,6 @@ void ProfileImpl::LoadPrefsForNormalStar 736@@ -627,17 +626,6 @@ void ProfileImpl::LoadPrefsForNormalStar
730 737
731 mojo::PendingRemote<prefs::mojom::TrackedPreferenceValidationDelegate> 738 mojo::PendingRemote<prefs::mojom::TrackedPreferenceValidationDelegate>
732 pref_validation_delegate; 739 pref_validation_delegate;
@@ -744,9 +751,9 @@
744 751
745 prefs_ = 752 prefs_ =
746 CreatePrefService(pref_registry_, CreateExtensionPrefStore(this, false), 753 CreatePrefService(pref_registry_, CreateExtensionPrefStore(this, false),
747--- a/chrome/browser/profiles/profiles_state.cc 754--- chrome/browser/profiles/profiles_state.cc.orig
748+++ b/chrome/browser/profiles/profiles_state.cc 755+++ chrome/browser/profiles/profiles_state.cc
749@@ -255,9 +255,6 @@ void RemoveBrowsingDataForProfile(const 756@@ -259,9 +259,6 @@ void RemoveBrowsingDataForProfile(const
750 // The BrowsingDataRemover relies on many objects that aren't created in unit 757 // The BrowsingDataRemover relies on many objects that aren't created in unit
751 // tests. Previously this code would depend on content::ResourceDispatcherHost 758 // tests. Previously this code would depend on content::ResourceDispatcherHost
752 // but that's gone, so do a similar hack for now. 759 // but that's gone, so do a similar hack for now.
@@ -756,8 +763,8 @@
756 Profile* profile = 763 Profile* profile =
757 g_browser_process->profile_manager()->GetProfileByPath(profile_path); 764 g_browser_process->profile_manager()->GetProfileByPath(profile_path);
758 if (!profile) 765 if (!profile)
759--- a/chrome/browser/safe_browsing/BUILD.gn 766--- chrome/browser/safe_browsing/BUILD.gn.orig
760+++ b/chrome/browser/safe_browsing/BUILD.gn 767+++ chrome/browser/safe_browsing/BUILD.gn
761@@ -5,6 +5,7 @@ import("//components/safe_browsing/build 768@@ -5,6 +5,7 @@ import("//components/safe_browsing/build
762 import("//extensions/buildflags/buildflags.gni") 769 import("//extensions/buildflags/buildflags.gni")
763 770
@@ -766,7 +773,7 @@
766 sources = [ 773 sources = [
767 "chrome_controller_client.cc", 774 "chrome_controller_client.cc",
768 "chrome_controller_client.h", 775 "chrome_controller_client.h",
769@@ -89,6 +90,7 @@ static_library("safe_browsing") { 776@@ -88,6 +89,7 @@ static_library("safe_browsing") {
770 "//extensions/browser", 777 "//extensions/browser",
771 ] 778 ]
772 } 779 }
@@ -774,7 +781,7 @@
774 781
775 if (safe_browsing_mode != 0) { 782 if (safe_browsing_mode != 0) {
776 # "Safe Browsing Basic" files used for safe browsing in full mode 783 # "Safe Browsing Basic" files used for safe browsing in full mode
777@@ -446,6 +448,7 @@ static_library("advanced_protection") { 784@@ -411,6 +413,7 @@ static_library("advanced_protection") {
778 } 785 }
779 786
780 source_set("metrics_collector") { 787 source_set("metrics_collector") {
@@ -782,7 +789,7 @@
782 sources = [ 789 sources = [
783 "safe_browsing_metrics_collector_factory.cc", 790 "safe_browsing_metrics_collector_factory.cc",
784 "safe_browsing_metrics_collector_factory.h", 791 "safe_browsing_metrics_collector_factory.h",
785@@ -463,6 +466,7 @@ source_set("metrics_collector") { 792@@ -428,6 +431,7 @@ source_set("metrics_collector") {
786 "//components/safe_browsing/core/common:safe_browsing_prefs", 793 "//components/safe_browsing/core/common:safe_browsing_prefs",
787 "//content/public/browser", 794 "//content/public/browser",
788 ] 795 ]
@@ -790,9 +797,9 @@
790 } 797 }
791 798
792 source_set("test_support") { 799 source_set("test_support") {
793--- a/chrome/browser/ssl/security_state_tab_helper.cc 800--- chrome/browser/ssl/security_state_tab_helper.cc.orig
794+++ b/chrome/browser/ssl/security_state_tab_helper.cc 801+++ chrome/browser/ssl/security_state_tab_helper.cc
795@@ -180,89 +180,6 @@ bool SecurityStateTabHelper::UsedPolicyI 802@@ -217,89 +217,6 @@ bool SecurityStateTabHelper::UsedPolicyI
796 803
797 security_state::MaliciousContentStatus 804 security_state::MaliciousContentStatus
798 SecurityStateTabHelper::GetMaliciousContentStatus() const { 805 SecurityStateTabHelper::GetMaliciousContentStatus() const {
@@ -832,7 +839,7 @@
832- MALICIOUS_CONTENT_STATUS_SIGNED_IN_SYNC_PASSWORD_REUSE; 839- MALICIOUS_CONTENT_STATUS_SIGNED_IN_SYNC_PASSWORD_REUSE;
833- } 840- }
834-#endif 841-#endif
835- [[fallthrough]]; 842- FALLTHROUGH;
836- case safe_browsing::SB_THREAT_TYPE_SIGNED_IN_NON_SYNC_PASSWORD_REUSE: 843- case safe_browsing::SB_THREAT_TYPE_SIGNED_IN_NON_SYNC_PASSWORD_REUSE:
837-#if BUILDFLAG(FULL_SAFE_BROWSING) 844-#if BUILDFLAG(FULL_SAFE_BROWSING)
838- if (safe_browsing::ChromePasswordProtectionService:: 845- if (safe_browsing::ChromePasswordProtectionService::
@@ -842,7 +849,7 @@
842- MALICIOUS_CONTENT_STATUS_SIGNED_IN_NON_SYNC_PASSWORD_REUSE; 849- MALICIOUS_CONTENT_STATUS_SIGNED_IN_NON_SYNC_PASSWORD_REUSE;
843- } 850- }
844-#endif 851-#endif
845- [[fallthrough]]; 852- FALLTHROUGH;
846- case safe_browsing::SB_THREAT_TYPE_ENTERPRISE_PASSWORD_REUSE: 853- case safe_browsing::SB_THREAT_TYPE_ENTERPRISE_PASSWORD_REUSE:
847-#if BUILDFLAG(FULL_SAFE_BROWSING) 854-#if BUILDFLAG(FULL_SAFE_BROWSING)
848- if (safe_browsing::ChromePasswordProtectionService:: 855- if (safe_browsing::ChromePasswordProtectionService::
@@ -882,19 +889,19 @@
882 return security_state::MALICIOUS_CONTENT_STATUS_NONE; 889 return security_state::MALICIOUS_CONTENT_STATUS_NONE;
883 } 890 }
884 891
885--- a/chrome/browser/ui/BUILD.gn 892--- chrome/browser/ui/BUILD.gn.orig
886+++ b/chrome/browser/ui/BUILD.gn 893+++ chrome/browser/ui/BUILD.gn
887@@ -4152,7 +4152,6 @@ static_library("ui") { 894@@ -3946,7 +3946,6 @@ static_library("ui") {
888 "views/download/bubble/download_dialog_view.h", 895 "views/device_chooser_content_view.h",
889 "views/download/bubble/download_toolbar_button_view.cc", 896 "views/devtools_process_observer.cc",
890 "views/download/bubble/download_toolbar_button_view.h", 897 "views/devtools_process_observer.h",
891- "views/download/download_danger_prompt_views.cc", 898- "views/download/download_danger_prompt_views.cc",
892 "views/download/download_in_progress_dialog_view.cc", 899 "views/download/download_in_progress_dialog_view.cc",
893 "views/download/download_in_progress_dialog_view.h", 900 "views/download/download_in_progress_dialog_view.h",
894 "views/download/download_item_view.cc", 901 "views/download/download_item_view.cc",
895--- a/chrome/browser/ui/tab_helpers.cc 902--- chrome/browser/ui/tab_helpers.cc.orig
896+++ b/chrome/browser/ui/tab_helpers.cc 903+++ chrome/browser/ui/tab_helpers.cc
897@@ -363,22 +363,6 @@ void TabHelpers::AttachTabHelpers(WebCon 904@@ -330,16 +330,6 @@ void TabHelpers::AttachTabHelpers(WebCon
898 // See https://crbug.com/910288. 905 // See https://crbug.com/910288.
899 resource_coordinator::ResourceCoordinatorTabHelper::CreateForWebContents( 906 resource_coordinator::ResourceCoordinatorTabHelper::CreateForWebContents(
900 web_contents); 907 web_contents);
@@ -903,12 +910,6 @@
903- safe_browsing::SafeBrowsingNavigationObserverManagerFactory:: 910- safe_browsing::SafeBrowsingNavigationObserverManagerFactory::
904- GetForBrowserContext(profile), 911- GetForBrowserContext(profile),
905- profile->GetPrefs(), g_browser_process->safe_browsing_service()); 912- profile->GetPrefs(), g_browser_process->safe_browsing_service());
906- if (base::FeatureList::IsEnabled(
907- safe_browsing::kTailoredSecurityIntegration)) {
908- safe_browsing::TailoredSecurityUrlObserver::CreateForWebContents(
909- web_contents,
910- safe_browsing::TailoredSecurityServiceFactory::GetForProfile(profile));
911- }
912- safe_browsing::SafeBrowsingTabObserver::CreateForWebContents( 913- safe_browsing::SafeBrowsingTabObserver::CreateForWebContents(
913- web_contents, 914- web_contents,
914- std::make_unique<safe_browsing::ChromeSafeBrowsingTabObserverDelegate>()); 915- std::make_unique<safe_browsing::ChromeSafeBrowsingTabObserverDelegate>());
@@ -917,8 +918,8 @@
917 ReputationWebContentsObserver::CreateForWebContents(web_contents); 918 ReputationWebContentsObserver::CreateForWebContents(web_contents);
918 SearchEngineTabHelper::CreateForWebContents(web_contents); 919 SearchEngineTabHelper::CreateForWebContents(web_contents);
919 SecurityStateTabHelper::CreateForWebContents(web_contents); 920 SecurityStateTabHelper::CreateForWebContents(web_contents);
920--- a/chrome/browser/ui/webui/downloads/downloads_dom_handler.cc 921--- chrome/browser/ui/webui/downloads/downloads_dom_handler.cc.orig
921+++ b/chrome/browser/ui/webui/downloads/downloads_dom_handler.cc 922+++ chrome/browser/ui/webui/downloads/downloads_dom_handler.cc
922@@ -23,7 +23,6 @@ 923@@ -23,7 +23,6 @@
923 #include "base/threading/thread.h" 924 #include "base/threading/thread.h"
924 #include "base/values.h" 925 #include "base/values.h"
@@ -927,7 +928,7 @@
927 #include "chrome/browser/download/download_history.h" 928 #include "chrome/browser/download/download_history.h"
928 #include "chrome/browser/download/download_item_model.h" 929 #include "chrome/browser/download/download_item_model.h"
929 #include "chrome/browser/download/download_prefs.h" 930 #include "chrome/browser/download/download_prefs.h"
930@@ -172,9 +171,6 @@ void DownloadsDOMHandler::SaveDangerousR 931@@ -171,9 +170,6 @@ void DownloadsDOMHandler::SaveDangerousR
931 } 932 }
932 933
933 CountDownloadsDOMEvents(DOWNLOADS_DOM_EVENT_SAVE_DANGEROUS); 934 CountDownloadsDOMEvents(DOWNLOADS_DOM_EVENT_SAVE_DANGEROUS);
@@ -937,7 +938,7 @@
937 } 938 }
938 939
939 void DownloadsDOMHandler::AcceptIncognitoWarning(const std::string& id) { 940 void DownloadsDOMHandler::AcceptIncognitoWarning(const std::string& id) {
940@@ -326,12 +322,6 @@ void DownloadsDOMHandler::RemoveDownload 941@@ -325,12 +321,6 @@ void DownloadsDOMHandler::RemoveDownload
941 IdSet ids; 942 IdSet ids;
942 943
943 for (auto* download : to_remove) { 944 for (auto* download : to_remove) {
@@ -950,7 +951,7 @@
950 DownloadItemModel item_model(download); 951 DownloadItemModel item_model(download);
951 if (!item_model.ShouldShowInShelf() || 952 if (!item_model.ShouldShowInShelf() ||
952 download->GetState() == download::DownloadItem::IN_PROGRESS) { 953 download->GetState() == download::DownloadItem::IN_PROGRESS) {
953@@ -405,44 +395,6 @@ void DownloadsDOMHandler::FinalizeRemova 954@@ -404,44 +394,6 @@ void DownloadsDOMHandler::FinalizeRemova
954 } 955 }
955 } 956 }
956 957
@@ -995,17 +996,17 @@
995 bool DownloadsDOMHandler::IsDeletingHistoryAllowed() { 996 bool DownloadsDOMHandler::IsDeletingHistoryAllowed() {
996 content::DownloadManager* manager = GetMainNotifierManager(); 997 content::DownloadManager* manager = GetMainNotifierManager();
997 return manager && 998 return manager &&
998--- a/chrome/browser/ui/webui/downloads/downloads_dom_handler.h 999--- chrome/browser/ui/webui/downloads/downloads_dom_handler.h.orig
999+++ b/chrome/browser/ui/webui/downloads/downloads_dom_handler.h 1000+++ chrome/browser/ui/webui/downloads/downloads_dom_handler.h
1000@@ -12,7 +12,6 @@ 1001@@ -12,7 +12,6 @@
1001 1002
1002 #include "base/memory/raw_ptr.h" 1003 #include "base/macros.h"
1003 #include "base/memory/weak_ptr.h" 1004 #include "base/memory/weak_ptr.h"
1004-#include "chrome/browser/download/download_danger_prompt.h" 1005-#include "chrome/browser/download/download_danger_prompt.h"
1005 #include "chrome/browser/ui/webui/downloads/downloads.mojom-forward.h" 1006 #include "chrome/browser/ui/webui/downloads/downloads.mojom-forward.h"
1006 #include "chrome/browser/ui/webui/downloads/downloads_list_tracker.h" 1007 #include "chrome/browser/ui/webui/downloads/downloads_list_tracker.h"
1007 #include "content/public/browser/web_contents_observer.h" 1008 #include "content/public/browser/web_contents_observer.h"
1008@@ -95,18 +94,6 @@ class DownloadsDOMHandler : public conte 1009@@ -94,18 +93,6 @@ class DownloadsDOMHandler : public conte
1009 // null-checking |original_notifier_|. 1010 // null-checking |original_notifier_|.
1010 content::DownloadManager* GetOriginalNotifierManager() const; 1011 content::DownloadManager* GetOriginalNotifierManager() const;
1011 1012
@@ -1024,9 +1025,9 @@
1024 // Returns true if the records of any downloaded items are allowed (and able) 1025 // Returns true if the records of any downloaded items are allowed (and able)
1025 // to be deleted. 1026 // to be deleted.
1026 bool IsDeletingHistoryAllowed(); 1027 bool IsDeletingHistoryAllowed();
1027--- a/chrome/browser/ui/webui/interstitials/interstitial_ui.cc 1028--- chrome/browser/ui/webui/interstitials/interstitial_ui.cc.orig
1028+++ b/chrome/browser/ui/webui/interstitials/interstitial_ui.cc 1029+++ chrome/browser/ui/webui/interstitials/interstitial_ui.cc
1029@@ -273,120 +273,6 @@ CreateHttpsOnlyModePage(content::WebCont 1030@@ -281,116 +281,6 @@ CreateHttpsOnlyModePage(content::WebCont
1030 request_url)); 1031 request_url));
1031 } 1032 }
1032 1033
@@ -1036,8 +1037,7 @@
1036- safe_browsing::SB_THREAT_TYPE_URL_MALWARE; 1037- safe_browsing::SB_THREAT_TYPE_URL_MALWARE;
1037- GURL request_url("http://example.com"); 1038- GURL request_url("http://example.com");
1038- std::string url_param; 1039- std::string url_param;
1039- if (net::GetValueForKeyInQuery(web_contents->GetVisibleURL(), "url", 1040- if (net::GetValueForKeyInQuery(web_contents->GetURL(), "url", &url_param)) {
1040- &url_param)) {
1041- if (GURL(url_param).is_valid()) { 1041- if (GURL(url_param).is_valid()) {
1042- request_url = GURL(url_param); 1042- request_url = GURL(url_param);
1043- } 1043- }
@@ -1046,8 +1046,7 @@
1046- // TODO(mattm): add flag to change main_frame_url or add dedicated flag to 1046- // TODO(mattm): add flag to change main_frame_url or add dedicated flag to
1047- // test subresource interstitials. 1047- // test subresource interstitials.
1048- std::string type_param; 1048- std::string type_param;
1049- if (net::GetValueForKeyInQuery(web_contents->GetVisibleURL(), "type", 1049- if (net::GetValueForKeyInQuery(web_contents->GetURL(), "type", &type_param)) {
1050- &type_param)) {
1051- if (type_param == "malware") { 1050- if (type_param == "malware") {
1052- threat_type = safe_browsing::SB_THREAT_TYPE_URL_MALWARE; 1051- threat_type = safe_browsing::SB_THREAT_TYPE_URL_MALWARE;
1053- } else if (type_param == "phishing") { 1052- } else if (type_param == "phishing") {
@@ -1095,16 +1094,14 @@
1095- safe_browsing::SB_THREAT_TYPE_URL_MALWARE; 1094- safe_browsing::SB_THREAT_TYPE_URL_MALWARE;
1096- GURL request_url("http://example.com"); 1095- GURL request_url("http://example.com");
1097- std::string url_param; 1096- std::string url_param;
1098- if (net::GetValueForKeyInQuery(web_contents->GetVisibleURL(), "url", 1097- if (net::GetValueForKeyInQuery(web_contents->GetURL(), "url", &url_param)) {
1099- &url_param)) {
1100- if (GURL(url_param).is_valid()) 1098- if (GURL(url_param).is_valid())
1101- request_url = GURL(url_param); 1099- request_url = GURL(url_param);
1102- } 1100- }
1103- GURL main_frame_url(request_url); 1101- GURL main_frame_url(request_url);
1104- std::string type_param; 1102- std::string type_param;
1105- bool is_giant_webview = false; 1103- bool is_giant_webview = false;
1106- if (net::GetValueForKeyInQuery(web_contents->GetVisibleURL(), "type", 1104- if (net::GetValueForKeyInQuery(web_contents->GetURL(), "type", &type_param)) {
1107- &type_param)) {
1108- if (type_param == "malware") { 1105- if (type_param == "malware") {
1109- threat_type = safe_browsing::SB_THREAT_TYPE_URL_MALWARE; 1106- threat_type = safe_browsing::SB_THREAT_TYPE_URL_MALWARE;
1110- } else if (type_param == "phishing") { 1107- } else if (type_param == "phishing") {
@@ -1147,16 +1144,16 @@
1147 #if BUILDFLAG(ENABLE_CAPTIVE_PORTAL_DETECTION) 1144 #if BUILDFLAG(ENABLE_CAPTIVE_PORTAL_DETECTION)
1148 std::unique_ptr<CaptivePortalBlockingPage> CreateCaptivePortalBlockingPage( 1145 std::unique_ptr<CaptivePortalBlockingPage> CreateCaptivePortalBlockingPage(
1149 content::WebContents* web_contents) { 1146 content::WebContents* web_contents) {
1150@@ -501,8 +387,6 @@ void InterstitialHTMLSource::StartDataRe 1147@@ -507,8 +397,6 @@ void InterstitialHTMLSource::StartDataRe
1151 interstitial_delegate = CreateMITMSoftwareBlockingPage(web_contents);
1152 } else if (path_without_query == "/blocked-interception") {
1153 interstitial_delegate = CreateBlockedInterceptionBlockingPage(web_contents); 1148 interstitial_delegate = CreateBlockedInterceptionBlockingPage(web_contents);
1149 } else if (path_without_query == "/legacy-tls") {
1150 interstitial_delegate = CreateLegacyTLSBlockingPage(web_contents);
1154- } else if (path_without_query == "/safebrowsing") { 1151- } else if (path_without_query == "/safebrowsing") {
1155- interstitial_delegate = CreateSafeBrowsingBlockingPage(web_contents); 1152- interstitial_delegate = CreateSafeBrowsingBlockingPage(web_contents);
1156 } else if (path_without_query == "/clock") { 1153 } else if (path_without_query == "/clock") {
1157 interstitial_delegate = CreateBadClockBlockingPage(web_contents); 1154 interstitial_delegate = CreateBadClockBlockingPage(web_contents);
1158 } else if (path_without_query == "/lookalike") { 1155 } else if (path_without_query == "/lookalike") {
1159@@ -519,16 +403,12 @@ void InterstitialHTMLSource::StartDataRe 1156@@ -525,16 +413,12 @@ void InterstitialHTMLSource::StartDataRe
1160 interstitial_delegate = CreateHttpsOnlyModePage(web_contents); 1157 interstitial_delegate = CreateHttpsOnlyModePage(web_contents);
1161 } 1158 }
1162 1159
@@ -1176,9 +1173,9 @@
1176 html = interstitial_delegate.get()->GetHTMLContents(); 1173 html = interstitial_delegate.get()->GetHTMLContents();
1177 } else { 1174 } else {
1178 html = ui::ResourceBundle::GetSharedInstance().LoadDataResourceString( 1175 html = ui::ResourceBundle::GetSharedInstance().LoadDataResourceString(
1179--- a/chrome/renderer/chrome_content_renderer_client.cc 1176--- chrome/renderer/chrome_content_renderer_client.cc.orig
1180+++ b/chrome/renderer/chrome_content_renderer_client.cc 1177+++ chrome/renderer/chrome_content_renderer_client.cc
1181@@ -91,7 +91,6 @@ 1178@@ -97,7 +97,6 @@
1182 #include "components/page_load_metrics/renderer/metrics_render_frame_observer.h" 1179 #include "components/page_load_metrics/renderer/metrics_render_frame_observer.h"
1183 #include "components/paint_preview/buildflags/buildflags.h" 1180 #include "components/paint_preview/buildflags/buildflags.h"
1184 #include "components/safe_browsing/buildflags.h" 1181 #include "components/safe_browsing/buildflags.h"
@@ -1186,8 +1183,8 @@
1186 #include "components/spellcheck/spellcheck_buildflags.h" 1183 #include "components/spellcheck/spellcheck_buildflags.h"
1187 #include "components/subresource_filter/content/renderer/subresource_filter_agent.h" 1184 #include "components/subresource_filter/content/renderer/subresource_filter_agent.h"
1188 #include "components/subresource_filter/content/renderer/unverified_ruleset_dealer.h" 1185 #include "components/subresource_filter/content/renderer/unverified_ruleset_dealer.h"
1189--- a/components/security_interstitials/content/cert_report_helper.cc 1186--- components/security_interstitials/content/cert_report_helper.cc.orig
1190+++ b/components/security_interstitials/content/cert_report_helper.cc 1187+++ components/security_interstitials/content/cert_report_helper.cc
1191@@ -177,7 +177,6 @@ void CertReportHelper::FinishCertCollect 1188@@ -177,7 +177,6 @@ void CertReportHelper::FinishCertCollect
1192 return; 1189 return;
1193 } 1190 }
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 952d579..b3f1614 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--- a/components/autofill/core/browser/autofill_download_manager.cc 1--- components/autofill/core/browser/autofill_download_manager.cc.orig
2+++ b/components/autofill/core/browser/autofill_download_manager.cc 2+++ components/autofill/core/browser/autofill_download_manager.cc
3@@ -803,94 +803,6 @@ std::tuple<GURL, std::string> AutofillDo 3@@ -824,96 +824,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,7 +9,9 @@
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- auto [request_url, method] = GetRequestURLAndMethod(request_data); 12- std::string method;
13- GURL request_url;
14- std::tie(request_url, method) = GetRequestURLAndMethod(request_data);
13- 15-
14- // Track the URL length for GET queries because the URL length can be in the 16- // Track the URL length for GET queries because the URL length can be in the
15- // thousands when rich metadata is enabled. 17- // thousands when rich metadata is enabled.
@@ -27,7 +29,7 @@
27- // On iOS we have a single, shared URLLoaderFactory provided by BrowserState. 29- // On iOS we have a single, shared URLLoaderFactory provided by BrowserState.
28- // As it is shared, it is not trusted and we cannot assign trusted_params 30- // As it is shared, it is not trusted and we cannot assign trusted_params
29- // to the network request. 31- // to the network request.
30-#if !BUILDFLAG(IS_IOS) 32-#if !defined(OS_IOS)
31- // Do not call IsolationInfo() for REQUEST_UPLOADs because Password Manager 33- // Do not call IsolationInfo() for REQUEST_UPLOADs because Password Manager
32- // uploads when RenderFrameHostImpl::DidCommitNavigation() is called, in which 34- // uploads when RenderFrameHostImpl::DidCommitNavigation() is called, in which
33- // case IsolationInfo() may crash because there is no committing 35- // 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 cae1b63..894d468 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--- a/chrome/browser/extensions/component_extensions_allowlist/allowlist.cc 1--- chrome/browser/extensions/component_extensions_allowlist/allowlist.cc.orig
2+++ b/chrome/browser/extensions/component_extensions_allowlist/allowlist.cc 2+++ chrome/browser/extensions/component_extensions_allowlist/allowlist.cc
3@@ -28,7 +28,6 @@ namespace extensions { 3@@ -28,7 +28,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 BUILDFLAG(IS_CHROMEOS) 9 #if defined(OS_CHROMEOS)
10 extension_misc::kAssessmentAssistantExtensionId, 10 extension_misc::kAssessmentAssistantExtensionId,
11--- a/chrome/browser/extensions/component_loader.cc 11--- chrome/browser/extensions/component_loader.cc.orig
12+++ b/chrome/browser/extensions/component_loader.cc 12+++ chrome/browser/extensions/component_loader.cc
13@@ -356,11 +356,6 @@ void ComponentLoader::AddWebStoreApp() { 13@@ -354,11 +354,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@@ -503,18 +498,6 @@ void ComponentLoader::AddDefaultComponen 25@@ -495,18 +490,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--- a/chrome/browser/extensions/external_component_loader.cc 44--- chrome/browser/extensions/external_component_loader.cc.orig
45+++ b/chrome/browser/extensions/external_component_loader.cc 45+++ 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,10 +51,10 @@
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 BUILDFLAG(IS_CHROMEOS) 54 #if defined(OS_CHROMEOS)
55 { 55 {
56--- a/chrome/browser/extensions/webstore_installer.cc 56--- chrome/browser/extensions/webstore_installer.cc.orig
57+++ b/chrome/browser/extensions/webstore_installer.cc 57+++ chrome/browser/extensions/webstore_installer.cc
58@@ -555,20 +555,6 @@ void WebstoreInstaller::DownloadNextPend 58@@ -555,20 +555,6 @@ void WebstoreInstaller::DownloadNextPend
59 void WebstoreInstaller::DownloadCrx( 59 void WebstoreInstaller::DownloadCrx(
60 const std::string& extension_id, 60 const std::string& extension_id,
@@ -76,7 +76,7 @@
76 } 76 }
77 77
78 // http://crbug.com/165634 78 // http://crbug.com/165634
79@@ -711,21 +697,6 @@ void WebstoreInstaller::UpdateDownloadPr 79@@ -712,21 +698,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 a52d1f8..ad9e012 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--- a/components/web_resource/web_resource_service.cc 1--- components/web_resource/web_resource_service.cc.orig
2+++ b/components/web_resource/web_resource_service.cc 2+++ 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 25b43e1..9f78ade 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--- a/net/dns/host_resolver_manager.cc 1--- net/dns/host_resolver_manager.cc.orig
2+++ b/net/dns/host_resolver_manager.cc 2+++ net/dns/host_resolver_manager.cc
3@@ -151,10 +151,10 @@ const unsigned kMinimumTTLSeconds = kCac 3@@ -139,10 +139,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 6dced3c..cc7f344 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--- a/chrome/updater/configurator.cc 1--- chrome/updater/configurator.cc.orig
2+++ b/chrome/updater/configurator.cc 2+++ chrome/updater/configurator.cc
3@@ -91,7 +91,7 @@ int Configurator::UpdateDelay() const { 3@@ -82,7 +82,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
index e02f281..269fb0c 100644
--- a/www/chromium-uc/patches/core/inox-patchset/0017-disable-new-avatar-menu.patch
+++ b/www/chromium-uc/patches/core/inox-patchset/0017-disable-new-avatar-menu.patch
@@ -1,5 +1,5 @@
1--- a/components/signin/internal/identity_manager/primary_account_policy_manager_impl.cc 1--- components/signin/internal/identity_manager/primary_account_policy_manager_impl.cc.orig
2+++ b/components/signin/internal/identity_manager/primary_account_policy_manager_impl.cc 2+++ components/signin/internal/identity_manager/primary_account_policy_manager_impl.cc
3@@ -86,7 +86,7 @@ void PrimaryAccountPolicyManagerImpl::On 3@@ -86,7 +86,7 @@ void PrimaryAccountPolicyManagerImpl::On
4 } 4 }
5 5
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 a8826c7..4b96b3e 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--- a/BUILD.gn 3--- BUILD.gn.orig
4+++ b/BUILD.gn 4+++ BUILD.gn
5@@ -484,14 +484,6 @@ group("gn_all") { 5@@ -485,14 +485,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--- a/rlz/buildflags/buildflags.gni 20--- rlz/buildflags/buildflags.gni.orig
21+++ b/rlz/buildflags/buildflags.gni 21+++ 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 a4d4885..198b00e 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,19 +66,8 @@ 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--- a/ash/components/geolocation/simple_geolocation_provider.cc 69--- build/apple/tweak_info_plist.py.orig
70+++ b/ash/components/geolocation/simple_geolocation_provider.cc 70+++ build/apple/tweak_info_plist.py
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
82@@ -195,7 +195,7 @@ def _AddKeystoneKeys(plist, bundle_ident 71@@ -195,7 +195,7 @@ def _AddKeystoneKeys(plist, bundle_ident
83 also requires the |bundle_identifier| argument (com.example.product).""" 72 also requires the |bundle_identifier| argument (com.example.product)."""
84 plist['KSVersion'] = plist['CFBundleShortVersionString'] 73 plist['KSVersion'] = plist['CFBundleShortVersionString']
@@ -88,9 +77,9 @@ by default.
88 77
89 _RemoveKeys(plist, 'KSChannelID') 78 _RemoveKeys(plist, 'KSChannelID')
90 if base_tag != '': 79 if base_tag != '':
91--- a/chrome/browser/ash/customization/customization_document.cc 80--- chrome/browser/ash/customization/customization_document.cc.orig
92+++ b/chrome/browser/ash/customization/customization_document.cc 81+++ chrome/browser/ash/customization/customization_document.cc
93@@ -198,7 +198,7 @@ std::string ReadFileInBackground(const b 82@@ -175,7 +175,7 @@ std::string ReadFileInBackground(const b
94 83
95 // Template URL where to fetch OEM services customization manifest from. 84 // Template URL where to fetch OEM services customization manifest from.
96 const char ServicesCustomizationDocument::kManifestUrl[] = 85 const char ServicesCustomizationDocument::kManifestUrl[] =
@@ -99,9 +88,9 @@ by default.
99 88
100 // A custom extensions::ExternalLoader that the ServicesCustomizationDocument 89 // A custom extensions::ExternalLoader that the ServicesCustomizationDocument
101 // creates and uses to publish OEM default apps to the extensions system. 90 // creates and uses to publish OEM default apps to the extensions system.
102--- a/chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc 91--- chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc.orig
103+++ b/chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc 92+++ chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc
104@@ -92,7 +92,7 @@ namespace { 93@@ -87,7 +87,7 @@ namespace {
105 94
106 using api::file_manager_private::ProfileInfo; 95 using api::file_manager_private::ProfileInfo;
107 96
@@ -110,8 +99,8 @@ by default.
110 99
111 // Thresholds for mountCrostini() API. 100 // Thresholds for mountCrostini() API.
112 constexpr base::TimeDelta kMountCrostiniSlowOperationThreshold = 101 constexpr base::TimeDelta kMountCrostiniSlowOperationThreshold =
113--- a/chrome/browser/extensions/api/cryptotoken_private/cryptotoken_private_api.cc 102--- chrome/browser/extensions/api/cryptotoken_private/cryptotoken_private_api.cc.orig
114+++ b/chrome/browser/extensions/api/cryptotoken_private/cryptotoken_private_api.cc 103+++ chrome/browser/extensions/api/cryptotoken_private/cryptotoken_private_api.cc
115@@ -52,8 +52,8 @@ namespace { 104@@ -52,8 +52,8 @@ namespace {
116 105
117 const char kGoogleDotCom[] = "google.com"; 106 const char kGoogleDotCom[] = "google.com";
@@ -123,9 +112,9 @@ by default.
123 112
124 // ContainsAppIdByHash returns true iff the SHA-256 hash of one of the 113 // ContainsAppIdByHash returns true iff the SHA-256 hash of one of the
125 // elements of |list| equals |hash|. 114 // elements of |list| equals |hash|.
126--- a/chrome/browser/extensions/install_signer.cc 115--- chrome/browser/extensions/install_signer.cc.orig
127+++ b/chrome/browser/extensions/install_signer.cc 116+++ chrome/browser/extensions/install_signer.cc
128@@ -66,7 +66,7 @@ const int kSignatureFormatVersion = 2; 117@@ -67,7 +67,7 @@ const int kSignatureFormatVersion = 2;
129 const size_t kSaltBytes = 32; 118 const size_t kSaltBytes = 32;
130 119
131 const char kBackendUrl[] = 120 const char kBackendUrl[] =
@@ -134,8 +123,8 @@ by default.
134 123
135 const char kPublicKeyPEM[] = \ 124 const char kPublicKeyPEM[] = \
136 "-----BEGIN PUBLIC KEY-----" \ 125 "-----BEGIN PUBLIC KEY-----" \
137--- a/chrome/browser/media/webrtc/webrtc_event_log_uploader.cc 126--- chrome/browser/media/webrtc/webrtc_event_log_uploader.cc.orig
138+++ b/chrome/browser/media/webrtc/webrtc_event_log_uploader.cc 127+++ chrome/browser/media/webrtc/webrtc_event_log_uploader.cc
139@@ -125,7 +125,7 @@ void OnURLLoadUploadProgress(uint64_t cu 128@@ -125,7 +125,7 @@ void OnURLLoadUploadProgress(uint64_t cu
140 } // namespace 129 } // namespace
141 130
@@ -145,8 +134,8 @@ by default.
145 134
146 WebRtcEventLogUploaderImpl::Factory::Factory( 135 WebRtcEventLogUploaderImpl::Factory::Factory(
147 scoped_refptr<base::SequencedTaskRunner> task_runner) 136 scoped_refptr<base::SequencedTaskRunner> task_runner)
148--- a/chrome/browser/media/webrtc/webrtc_log_uploader.cc 137--- chrome/browser/media/webrtc/webrtc_log_uploader.cc.orig
149+++ b/chrome/browser/media/webrtc/webrtc_log_uploader.cc 138+++ chrome/browser/media/webrtc/webrtc_log_uploader.cc
150@@ -485,7 +485,7 @@ void WebRtcLogUploader::UploadCompressed 139@@ -485,7 +485,7 @@ void WebRtcLogUploader::UploadCompressed
151 "Not implemented, it would be good to do so." 140 "Not implemented, it would be good to do so."
152 })"); 141 })");
@@ -156,8 +145,8 @@ by default.
156 auto resource_request = std::make_unique<network::ResourceRequest>(); 145 auto resource_request = std::make_unique<network::ResourceRequest>();
157 resource_request->url = !upload_url_for_testing_.is_empty() 146 resource_request->url = !upload_url_for_testing_.is_empty()
158 ? upload_url_for_testing_ 147 ? upload_url_for_testing_
159--- a/chrome/browser/nacl_host/nacl_infobar_delegate.cc 148--- chrome/browser/nacl_host/nacl_infobar_delegate.cc.orig
160+++ b/chrome/browser/nacl_host/nacl_infobar_delegate.cc 149+++ chrome/browser/nacl_host/nacl_infobar_delegate.cc
161@@ -33,7 +33,7 @@ std::u16string NaClInfoBarDelegate::GetL 150@@ -33,7 +33,7 @@ std::u16string NaClInfoBarDelegate::GetL
162 } 151 }
163 152
@@ -167,8 +156,8 @@ by default.
167 } 156 }
168 157
169 std::u16string NaClInfoBarDelegate::GetMessageText() const { 158 std::u16string NaClInfoBarDelegate::GetMessageText() const {
170--- a/chrome/browser/profiles/profile_avatar_downloader.cc 159--- chrome/browser/profiles/profile_avatar_downloader.cc.orig
171+++ b/chrome/browser/profiles/profile_avatar_downloader.cc 160+++ chrome/browser/profiles/profile_avatar_downloader.cc
172@@ -20,7 +20,7 @@ 161@@ -20,7 +20,7 @@
173 162
174 namespace { 163 namespace {
@@ -178,8 +167,8 @@ by default.
178 } 167 }
179 168
180 ProfileAvatarDownloader::ProfileAvatarDownloader(size_t icon_index, 169 ProfileAvatarDownloader::ProfileAvatarDownloader(size_t icon_index,
181--- a/chrome/browser/resources/default_apps/external_extensions.json 170--- chrome/browser/resources/default_apps/external_extensions.json.orig
182+++ b/chrome/browser/resources/default_apps/external_extensions.json 171+++ chrome/browser/resources/default_apps/external_extensions.json
183@@ -23,17 +23,17 @@ 172@@ -23,17 +23,17 @@
184 }, 173 },
185 // Google Sheets 174 // Google Sheets
@@ -201,9 +190,9 @@ by default.
201 } 190 }
202 } 191 }
203 192
204--- a/chrome/browser/safe_browsing/download_protection/download_feedback.cc 193--- chrome/browser/safe_browsing/download_protection/download_feedback.cc.orig
205+++ b/chrome/browser/safe_browsing/download_protection/download_feedback.cc 194+++ chrome/browser/safe_browsing/download_protection/download_feedback.cc
206@@ -192,7 +192,7 @@ const int64_t DownloadFeedback::kMaxUplo 195@@ -202,7 +202,7 @@ const int64_t DownloadFeedback::kMaxUplo
207 196
208 // static 197 // static
209 const char DownloadFeedback::kSbFeedbackURL[] = 198 const char DownloadFeedback::kSbFeedbackURL[] =
@@ -212,8 +201,8 @@ by default.
212 201
213 // static 202 // static
214 DownloadFeedbackFactory* DownloadFeedback::factory_ = nullptr; 203 DownloadFeedbackFactory* DownloadFeedback::factory_ = nullptr;
215--- a/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc 204--- chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc.orig
216+++ b/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc 205+++ chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
217@@ -279,7 +279,7 @@ GURL SpellcheckHunspellDictionary::GetDi 206@@ -279,7 +279,7 @@ GURL SpellcheckHunspellDictionary::GetDi
218 DCHECK(!bdict_file.empty()); 207 DCHECK(!bdict_file.empty());
219 208
@@ -223,9 +212,9 @@ by default.
223 212
224 return GURL(std::string(kDownloadServerUrl) + 213 return GURL(std::string(kDownloadServerUrl) +
225 base::ToLowerASCII(bdict_file)); 214 base::ToLowerASCII(bdict_file));
226--- a/chrome/browser/supervised_user/supervised_user_service.cc 215--- chrome/browser/supervised_user/supervised_user_service.cc.orig
227+++ b/chrome/browser/supervised_user/supervised_user_service.cc 216+++ chrome/browser/supervised_user/supervised_user_service.cc
228@@ -86,7 +86,7 @@ namespace { 217@@ -87,7 +87,7 @@ namespace {
229 218
230 // The URL from which to download a host denylist if no local one exists yet. 219 // The URL from which to download a host denylist if no local one exists yet.
231 const char kDenylistURL[] = 220 const char kDenylistURL[] =
@@ -234,9 +223,9 @@ by default.
234 // The filename under which we'll store the denylist (in the user data dir). The 223 // The filename under which we'll store the denylist (in the user data dir). The
235 // old file will be used as a backup in case the new file has not been loaded 224 // old file will be used as a backup in case the new file has not been loaded
236 // yet. 225 // yet.
237--- a/chrome/browser/ui/dialogs/outdated_upgrade_bubble.cc 226--- chrome/browser/ui/views/outdated_upgrade_bubble_view.cc.orig
238+++ b/chrome/browser/ui/dialogs/outdated_upgrade_bubble.cc 227+++ chrome/browser/ui/views/outdated_upgrade_bubble_view.cc
239@@ -50,7 +50,7 @@ const char* kUpdateBrowserRedirectUrl = 228@@ -54,7 +54,7 @@ const char* kUpdateBrowserRedirectUrl =
240 #else 229 #else
241 // The URL to be used to re-install Chrome when auto-update failed for 230 // The URL to be used to re-install Chrome when auto-update failed for
242 // too long. 231 // too long.
@@ -245,9 +234,9 @@ by default.
245 #endif 234 #endif
246 235
247 bool g_upgrade_bubble_is_showing = false; 236 bool g_upgrade_bubble_is_showing = false;
248--- a/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc 237--- chrome/browser/ui/webui/ntp/ntp_resource_cache.cc.orig
249+++ b/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc 238+++ chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
250@@ -71,17 +71,17 @@ namespace { 239@@ -67,17 +67,17 @@ namespace {
251 // The URL for the the Learn More page shown on incognito new tab. 240 // The URL for the the Learn More page shown on incognito new tab.
252 const char kLearnMoreIncognitoUrl[] = 241 const char kLearnMoreIncognitoUrl[] =
253 #if BUILDFLAG(IS_CHROMEOS_ASH) 242 #if BUILDFLAG(IS_CHROMEOS_ASH)
@@ -269,8 +258,8 @@ by default.
269 #endif 258 #endif
270 259
271 std::string ReplaceTemplateExpressions( 260 std::string ReplaceTemplateExpressions(
272--- a/chrome/chrome_cleaner/components/recovery_component.cc 261--- chrome/chrome_cleaner/components/recovery_component.cc.orig
273+++ b/chrome/chrome_cleaner/components/recovery_component.cc 262+++ chrome/chrome_cleaner/components/recovery_component.cc
274@@ -37,7 +37,7 @@ namespace chrome_cleaner { 263@@ -37,7 +37,7 @@ namespace chrome_cleaner {
275 namespace { 264 namespace {
276 265
@@ -280,8 +269,8 @@ by default.
280 "&installsource=swreporter&x=id%3Dnpdjjkjlcidkjlamlmmdelcjbcpdjocm" 269 "&installsource=swreporter&x=id%3Dnpdjjkjlcidkjlamlmmdelcjbcpdjocm"
281 "%26v%3D0.0.0.0%26uc&acceptformat=crx3"; 270 "%26v%3D0.0.0.0%26uc&acceptformat=crx3";
282 271
283--- a/chrome/chrome_cleaner/crash/crashpad_crash_reporter.cc 272--- chrome/chrome_cleaner/crash/crashpad_crash_reporter.cc.orig
284+++ b/chrome/chrome_cleaner/crash/crashpad_crash_reporter.cc 273+++ chrome/chrome_cleaner/crash/crashpad_crash_reporter.cc
285@@ -28,7 +28,7 @@ 274@@ -28,7 +28,7 @@
286 namespace { 275 namespace {
287 276
@@ -291,8 +280,8 @@ by default.
291 280
292 // Whether the current process is connected to a crash handler process. 281 // Whether the current process is connected to a crash handler process.
293 bool g_is_connected_to_crash_handler = false; 282 bool g_is_connected_to_crash_handler = false;
294--- a/chrome/common/extensions/chrome_extensions_client.cc 283--- chrome/common/extensions/chrome_extensions_client.cc.orig
295+++ b/chrome/common/extensions/chrome_extensions_client.cc 284+++ chrome/common/extensions/chrome_extensions_client.cc
296@@ -45,9 +45,9 @@ namespace { 285@@ -45,9 +45,9 @@ namespace {
297 286
298 // TODO(battre): Delete the HTTP URL once the blocklist is downloaded via HTTPS. 287 // TODO(battre): Delete the HTTP URL once the blocklist is downloaded via HTTPS.
@@ -303,10 +292,10 @@ by default.
303- "https://www.gstatic.com/chrome/extensions/blocklist"; 292- "https://www.gstatic.com/chrome/extensions/blocklist";
304+ "trk:270:https://www.gstatic.com/chrome/extensions/blocklist"; 293+ "trk:270:https://www.gstatic.com/chrome/extensions/blocklist";
305 294
306 } // namespace 295 const char kThumbsWhiteListedExtension[] = "khopmbdjffemhegeeobelklnbglcdgfh";
307 296
308--- a/chrome/installer/setup/google_chrome_behaviors.cc 297--- chrome/installer/setup/google_chrome_behaviors.cc.orig
309+++ b/chrome/installer/setup/google_chrome_behaviors.cc 298+++ chrome/installer/setup/google_chrome_behaviors.cc
310@@ -37,7 +37,7 @@ namespace installer { 299@@ -37,7 +37,7 @@ namespace installer {
311 namespace { 300 namespace {
312 301
@@ -316,8 +305,19 @@ by default.
316 305
317 bool NavigateToUrlWithEdge(const std::wstring& url) { 306 bool NavigateToUrlWithEdge(const std::wstring& url) {
318 std::wstring protocol_url = L"microsoft-edge:" + url; 307 std::wstring protocol_url = L"microsoft-edge:" + url;
319--- a/chromecast/crash/linux/minidump_uploader.cc 308--- chromecast/browser/service/cast_service_simple.cc.orig
320+++ b/chromecast/crash/linux/minidump_uploader.cc 309+++ chromecast/browser/service/cast_service_simple.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,8 +327,19 @@ by default.
327 327
328 const char kVirtualChannel[] = "virtual-channel"; 328 const char kVirtualChannel[] = "virtual-channel";
329 329
330--- a/components/cloud_devices/common/cloud_devices_urls.cc 330--- chromeos/geolocation/simple_geolocation_provider.cc.orig
331+++ b/components/cloud_devices/common/cloud_devices_urls.cc 331+++ chromeos/geolocation/simple_geolocation_provider.cc
332@@ -20,7 +20,7 @@ namespace chromeos {
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
332@@ -13,14 +13,14 @@ 343@@ -13,14 +13,14 @@
333 namespace cloud_devices { 344 namespace cloud_devices {
334 345
@@ -346,8 +357,8 @@ by default.
346 357
347 } 358 }
348 359
349--- a/components/drive/service/drive_api_service.cc 360--- components/drive/service/drive_api_service.cc.orig
350+++ b/components/drive/service/drive_api_service.cc 361+++ components/drive/service/drive_api_service.cc
351@@ -75,9 +75,9 @@ namespace drive { 362@@ -75,9 +75,9 @@ namespace drive {
352 namespace { 363 namespace {
353 364
@@ -360,9 +371,9 @@ by default.
360 const char kDriveAppsScope[] = "https://www.googleapis.com/auth/drive.apps"; 371 const char kDriveAppsScope[] = "https://www.googleapis.com/auth/drive.apps";
361 372
362 // Mime type to create a directory. 373 // Mime type to create a directory.
363--- a/components/feedback/feedback_uploader.cc 374--- components/feedback/feedback_uploader.cc.orig
364+++ b/components/feedback/feedback_uploader.cc 375+++ components/feedback/feedback_uploader.cc
365@@ -39,7 +39,7 @@ constexpr base::FilePath::CharType kFeed 376@@ -27,7 +27,7 @@ constexpr base::FilePath::CharType kFeed
366 FILE_PATH_LITERAL("Feedback Reports"); 377 FILE_PATH_LITERAL("Feedback Reports");
367 378
368 constexpr char kFeedbackPostUrl[] = 379 constexpr char kFeedbackPostUrl[] =
@@ -371,9 +382,9 @@ by default.
371 382
372 constexpr char kProtoBufMimeType[] = "application/x-protobuf"; 383 constexpr char kProtoBufMimeType[] = "application/x-protobuf";
373 384
374--- a/components/google/core/common/google_util.cc 385--- components/google/core/common/google_util.cc.orig
375+++ b/components/google/core/common/google_util.cc 386+++ components/google/core/common/google_util.cc
376@@ -142,7 +142,7 @@ bool IsGoogleSearchSubdomainUrl(const GU 387@@ -143,7 +143,7 @@ bool IsGoogleSearchSubdomainUrl(const GU
377 388
378 // Global functions ----------------------------------------------------------- 389 // Global functions -----------------------------------------------------------
379 390
@@ -382,9 +393,9 @@ by default.
382 393
383 bool HasGoogleSearchQueryParam(base::StringPiece str) { 394 bool HasGoogleSearchQueryParam(base::StringPiece str) {
384 url::Component query(0, static_cast<int>(str.length())), key, value; 395 url::Component query(0, static_cast<int>(str.length())), key, value;
385--- a/components/history/core/browser/web_history_service.cc 396--- components/history/core/browser/web_history_service.cc.orig
386+++ b/components/history/core/browser/web_history_service.cc 397+++ components/history/core/browser/web_history_service.cc
387@@ -43,13 +43,13 @@ namespace history { 398@@ -42,13 +42,13 @@ namespace history {
388 namespace { 399 namespace {
389 400
390 const char kHistoryOAuthScope[] = 401 const char kHistoryOAuthScope[] =
@@ -401,8 +412,8 @@ by default.
401 412
402 const char kHistoryAudioHistoryUrl[] = 413 const char kHistoryAudioHistoryUrl[] =
403 "https://history.google.com/history/api/lookup?client=audio"; 414 "https://history.google.com/history/api/lookup?client=audio";
404--- a/components/metrics/url_constants.cc 415--- components/metrics/url_constants.cc.orig
405+++ b/components/metrics/url_constants.cc 416+++ components/metrics/url_constants.cc
406@@ -7,7 +7,7 @@ 417@@ -7,7 +7,7 @@
407 namespace metrics { 418 namespace metrics {
408 419
@@ -412,8 +423,8 @@ by default.
412 423
413 const char kNewMetricsServerUrlInsecure[] = 424 const char kNewMetricsServerUrlInsecure[] =
414 "http://clientservices.googleapis.com/uma/v2"; 425 "http://clientservices.googleapis.com/uma/v2";
415--- a/components/safe_browsing/content/browser/client_side_detection_service.cc 426--- components/safe_browsing/content/browser/client_side_detection_service.cc.orig
416+++ b/components/safe_browsing/content/browser/client_side_detection_service.cc 427+++ components/safe_browsing/content/browser/client_side_detection_service.cc
417@@ -62,7 +62,7 @@ const int ClientSideDetectionService::kN 428@@ -62,7 +62,7 @@ const int ClientSideDetectionService::kN
418 const int ClientSideDetectionService::kPositiveCacheIntervalMinutes = 30; 429 const int ClientSideDetectionService::kPositiveCacheIntervalMinutes = 30;
419 430
@@ -423,8 +434,8 @@ by default.
423 434
424 struct ClientSideDetectionService::ClientPhishingReportInfo { 435 struct ClientSideDetectionService::ClientPhishingReportInfo {
425 std::unique_ptr<network::SimpleURLLoader> loader; 436 std::unique_ptr<network::SimpleURLLoader> loader;
426--- a/components/safe_search_api/safe_search/safe_search_url_checker_client.cc 437--- components/safe_search_api/safe_search/safe_search_url_checker_client.cc.orig
427+++ b/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
428@@ -28,7 +28,7 @@ namespace safe_search_api { 439@@ -28,7 +28,7 @@ namespace safe_search_api {
429 namespace { 440 namespace {
430 441
@@ -434,8 +445,8 @@ by default.
434 const char kDataContentType[] = "application/x-www-form-urlencoded"; 445 const char kDataContentType[] = "application/x-www-form-urlencoded";
435 const char kDataFormat[] = "key=%s&urls=%s"; 446 const char kDataFormat[] = "key=%s&urls=%s";
436 447
437--- a/components/safe_search_api/stub_url_checker.cc 448--- components/safe_search_api/stub_url_checker.cc.orig
438+++ b/components/safe_search_api/stub_url_checker.cc 449+++ components/safe_search_api/stub_url_checker.cc
439@@ -21,7 +21,7 @@ namespace safe_search_api { 450@@ -21,7 +21,7 @@ namespace safe_search_api {
440 namespace { 451 namespace {
441 452
@@ -444,9 +455,9 @@ by default.
444+ "trk:238:https://safesearch.googleapis.com/v1:classify"; 455+ "trk:238:https://safesearch.googleapis.com/v1:classify";
445 456
446 std::string BuildResponse(bool is_porn) { 457 std::string BuildResponse(bool is_porn) {
447 base::Value dict(base::Value::Type::DICTIONARY); 458 base::DictionaryValue dict;
448--- a/components/translate/core/browser/translate_url_fetcher.cc 459--- components/translate/core/browser/translate_url_fetcher.cc.orig
449+++ b/components/translate/core/browser/translate_url_fetcher.cc 460+++ components/translate/core/browser/translate_url_fetcher.cc
450@@ -99,6 +99,7 @@ bool TranslateURLFetcher::Request(const 461@@ -99,6 +99,7 @@ bool TranslateURLFetcher::Request(const
451 if (!extra_request_header_.empty()) 462 if (!extra_request_header_.empty())
452 resource_request->headers.AddHeaderFromString(extra_request_header_); 463 resource_request->headers.AddHeaderFromString(extra_request_header_);
@@ -455,9 +466,9 @@ by default.
455 simple_loader_ = 466 simple_loader_ =
456 variations::CreateSimpleURLLoaderWithVariationsHeaderUnknownSignedIn( 467 variations::CreateSimpleURLLoaderWithVariationsHeaderUnknownSignedIn(
457 std::move(resource_request), 468 std::move(resource_request),
458--- a/components/translate/core/common/translate_util.cc 469--- components/translate/core/common/translate_util.cc.orig
459+++ b/components/translate/core/common/translate_util.cc 470+++ components/translate/core/common/translate_util.cc
460@@ -21,7 +21,7 @@ const char kDetectLanguageInSubFrames[] 471@@ -20,7 +20,7 @@ const char kDetectLanguageInSubFrames[]
461 472
462 } // namespace 473 } // namespace
463 474
@@ -466,8 +477,8 @@ by default.
466 477
467 const base::Feature kTranslateSubFrames{"TranslateSubFrames", 478 const base::Feature kTranslateSubFrames{"TranslateSubFrames",
468 base::FEATURE_DISABLED_BY_DEFAULT}; 479 base::FEATURE_DISABLED_BY_DEFAULT};
469--- a/components/variations/variations_url_constants.cc 480--- components/variations/variations_url_constants.cc.orig
470+++ b/components/variations/variations_url_constants.cc 481+++ components/variations/variations_url_constants.cc
471@@ -8,7 +8,7 @@ namespace variations { 482@@ -8,7 +8,7 @@ namespace variations {
472 483
473 // Default server of Variations seed info. 484 // Default server of Variations seed info.
@@ -477,8 +488,8 @@ by default.
477 488
478 const char kDefaultInsecureServerUrl[] = 489 const char kDefaultInsecureServerUrl[] =
479 "http://clientservices.googleapis.com/chrome-variations/seed"; 490 "http://clientservices.googleapis.com/chrome-variations/seed";
480--- a/content/browser/speech/speech_recognition_engine.cc 491--- content/browser/speech/speech_recognition_engine.cc.orig
481+++ b/content/browser/speech/speech_recognition_engine.cc 492+++ content/browser/speech/speech_recognition_engine.cc
482@@ -33,7 +33,7 @@ namespace content { 493@@ -33,7 +33,7 @@ namespace content {
483 namespace { 494 namespace {
484 495
@@ -488,9 +499,9 @@ by default.
488 const char kDownstreamUrl[] = "/down?"; 499 const char kDownstreamUrl[] = "/down?";
489 const char kUpstreamUrl[] = "/up?"; 500 const char kUpstreamUrl[] = "/up?";
490 501
491--- a/content/browser/webauth/authenticator_common.cc 502--- content/browser/webauth/authenticator_common.cc.orig
492+++ b/content/browser/webauth/authenticator_common.cc 503+++ content/browser/webauth/authenticator_common.cc
493@@ -91,9 +91,9 @@ enum class RequestExtension { 504@@ -88,9 +88,9 @@ enum class RequestExtension {
494 namespace { 505 namespace {
495 506
496 constexpr char kGstaticAppId[] = 507 constexpr char kGstaticAppId[] =
@@ -502,19 +513,19 @@ by default.
502 513
503 WebAuthenticationDelegate* GetWebAuthenticationDelegate() { 514 WebAuthenticationDelegate* GetWebAuthenticationDelegate() {
504 return GetContentClient()->browser()->GetWebAuthenticationDelegate(); 515 return GetContentClient()->browser()->GetWebAuthenticationDelegate();
505--- a/content/shell/browser/shell_browser_main_parts.cc 516--- content/shell/browser/shell_browser_main_parts.cc.orig
506+++ b/content/shell/browser/shell_browser_main_parts.cc 517+++ content/shell/browser/shell_browser_main_parts.cc
507@@ -84,7 +84,7 @@ GURL GetStartupURL() { 518@@ -96,7 +96,7 @@ GURL GetStartupURL() {
508 #else 519 #else
509 const base::CommandLine::StringVector& args = command_line->GetArgs(); 520 const base::CommandLine::StringVector& args = command_line->GetArgs();
510 if (args.empty()) 521 if (args.empty())
511- return GURL("https://www.google.com/"); 522- return GURL("https://www.google.com/");
512+ return GURL("trk:183:https://www.google.com/"); 523+ return GURL("trk:183:https://www.google.com/");
513 524
514 #if BUILDFLAG(IS_WIN) 525 #if defined(OS_WIN)
515 GURL url(base::WideToUTF16(args[0])); 526 GURL url(base::WideToUTF16(args[0]));
516--- a/extensions/common/extension_urls.cc 527--- extensions/common/extension_urls.cc.orig
517+++ b/extensions/common/extension_urls.cc 528+++ extensions/common/extension_urls.cc
518@@ -26,9 +26,9 @@ bool IsSourceFromAnExtension(const std:: 529@@ -26,9 +26,9 @@ bool IsSourceFromAnExtension(const std::
519 530
520 namespace extension_urls { 531 namespace extension_urls {
@@ -527,9 +538,9 @@ by default.
527 538
528 GURL GetWebstoreLaunchURL() { 539 GURL GetWebstoreLaunchURL() {
529 extensions::ExtensionsClient* client = extensions::ExtensionsClient::Get(); 540 extensions::ExtensionsClient* client = extensions::ExtensionsClient::Get();
530--- a/google_apis/gaia/gaia_constants.cc 541--- google_apis/gaia/gaia_constants.cc.orig
531+++ b/google_apis/gaia/gaia_constants.cc 542+++ google_apis/gaia/gaia_constants.cc
532@@ -25,149 +25,149 @@ const char kSyncService[] = "chromiumsyn 543@@ -25,133 +25,133 @@ const char kSyncService[] = "chromiumsyn
533 const char kRemotingService[] = "chromoting"; 544 const char kRemotingService[] = "chromoting";
534 545
535 // OAuth scopes. 546 // OAuth scopes.
@@ -582,145 +593,125 @@ by default.
582- "https://www.googleapis.com/auth/userinfo.profile"; 593- "https://www.googleapis.com/auth/userinfo.profile";
583+ "trk:079:https://www.googleapis.com/auth/userinfo.profile"; 594+ "trk:079:https://www.googleapis.com/auth/userinfo.profile";
584 595
585 // OAuth2 scope for access to the parent approval widget.
586 const char kParentApprovalOAuth2Scope[] =
587- "https://www.googleapis.com/auth/kids.parentapproval";
588+ "trk:080:https://www.googleapis.com/auth/kids.parentapproval";
589
590 // OAuth2 scope for access to the people API (read-only). 596 // OAuth2 scope for access to the people API (read-only).
591 const char kPeopleApiReadOnlyOAuth2Scope[] = 597 const char kPeopleApiReadOnlyOAuth2Scope[] =
592- "https://www.googleapis.com/auth/peopleapi.readonly"; 598- "https://www.googleapis.com/auth/peopleapi.readonly";
593+ "trk:081:https://www.googleapis.com/auth/peopleapi.readonly"; 599+ "trk:080:https://www.googleapis.com/auth/peopleapi.readonly";
594
595 // OAuth2 scope for access to the programmatic challenge API (read-only).
596 const char kProgrammaticChallengeOAuth2Scope[] =
597- "https://www.googleapis.com/auth/accounts.programmaticchallenge";
598+ "trk:082:https://www.googleapis.com/auth/accounts.programmaticchallenge";
599 600
600 // OAuth2 scope for access to the Reauth flow. 601 // OAuth2 scope for access to the Reauth flow.
601 const char kAccountsReauthOAuth2Scope[] = 602 const char kAccountsReauthOAuth2Scope[] =
602- "https://www.googleapis.com/auth/accounts.reauth"; 603- "https://www.googleapis.com/auth/accounts.reauth";
603+ "trk:083:https://www.googleapis.com/auth/accounts.reauth"; 604+ "trk:081:https://www.googleapis.com/auth/accounts.reauth";
604 605
605 // OAuth2 scope for access to audit recording (ARI). 606 // OAuth2 scope for access to audit recording (ARI).
606 const char kAuditRecordingOAuth2Scope[] = 607 const char kAuditRecordingOAuth2Scope[] =
607- "https://www.googleapis.com/auth/auditrecording-pa"; 608- "https://www.googleapis.com/auth/auditrecording-pa";
608+ "trk:084:https://www.googleapis.com/auth/auditrecording-pa"; 609+ "trk:082:https://www.googleapis.com/auth/auditrecording-pa";
609 610
610 // OAuth2 scope for access to clear cut logs. 611 // OAuth2 scope for access to clear cut logs.
611-const char kClearCutOAuth2Scope[] = "https://www.googleapis.com/auth/cclog"; 612-const char kClearCutOAuth2Scope[] = "https://www.googleapis.com/auth/cclog";
612+const char kClearCutOAuth2Scope[] = "trk:085:https://www.googleapis.com/auth/cclog"; 613+const char kClearCutOAuth2Scope[] = "trk:083:https://www.googleapis.com/auth/cclog";
613 614
614 // OAuth2 scope for FCM, the Firebase Cloud Messaging service. 615 // OAuth2 scope for FCM, the Firebase Cloud Messaging service.
615 const char kFCMOAuthScope[] = 616 const char kFCMOAuthScope[] =
616- "https://www.googleapis.com/auth/firebase.messaging"; 617- "https://www.googleapis.com/auth/firebase.messaging";
617+ "trk:086:https://www.googleapis.com/auth/firebase.messaging"; 618+ "trk:084:https://www.googleapis.com/auth/firebase.messaging";
618 619
619 // OAuth2 scope for access to Tachyon api. 620 // OAuth2 scope for access to Tachyon api.
620-const char kTachyonOAuthScope[] = "https://www.googleapis.com/auth/tachyon"; 621-const char kTachyonOAuthScope[] = "https://www.googleapis.com/auth/tachyon";
621+const char kTachyonOAuthScope[] = "trk:087:https://www.googleapis.com/auth/tachyon"; 622+const char kTachyonOAuthScope[] = "trk:085:https://www.googleapis.com/auth/tachyon";
622 623
623 // OAuth2 scope for access to the Photos API. 624 // OAuth2 scope for access to the Photos API.
624-const char kPhotosOAuth2Scope[] = "https://www.googleapis.com/auth/photos"; 625-const char kPhotosOAuth2Scope[] = "https://www.googleapis.com/auth/photos";
625+const char kPhotosOAuth2Scope[] = "trk:088:https://www.googleapis.com/auth/photos"; 626+const char kPhotosOAuth2Scope[] = "trk:086:https://www.googleapis.com/auth/photos";
626 627
627 // OAuth2 scope for access to Cast backdrop API. 628 // OAuth2 scope for access to Cast backdrop API.
628 const char kCastBackdropOAuth2Scope[] = 629 const char kCastBackdropOAuth2Scope[] =
629- "https://www.googleapis.com/auth/cast.backdrop"; 630- "https://www.googleapis.com/auth/cast.backdrop";
630+ "trk:089:https://www.googleapis.com/auth/cast.backdrop"; 631+ "trk:087:https://www.googleapis.com/auth/cast.backdrop";
631 632
632 // OAuth scope for access to Cloud Translation API. 633 // OAuth scope for access to Cloud Translation API.
633 const char kCloudTranslationOAuth2Scope[] = 634 const char kCloudTranslationOAuth2Scope[] =
634- "https://www.googleapis.com/auth/cloud-translation"; 635- "https://www.googleapis.com/auth/cloud-translation";
635+ "trk:090:https://www.googleapis.com/auth/cloud-translation"; 636+ "trk:088:https://www.googleapis.com/auth/cloud-translation";
636 637
637 // OAuth2 scope for access to passwords leak checking API. 638 // OAuth2 scope for access to passwords leak checking API.
638 const char kPasswordsLeakCheckOAuth2Scope[] = 639 const char kPasswordsLeakCheckOAuth2Scope[] =
639- "https://www.googleapis.com/auth/identity.passwords.leak.check"; 640- "https://www.googleapis.com/auth/identity.passwords.leak.check";
640+ "trk:091:https://www.googleapis.com/auth/identity.passwords.leak.check"; 641+ "trk:089:https://www.googleapis.com/auth/identity.passwords.leak.check";
641 642
642 // OAuth2 scope for access to Chrome safe browsing API. 643 // OAuth2 scope for access to Chrome safe browsing API.
643 const char kChromeSafeBrowsingOAuth2Scope[] = 644 const char kChromeSafeBrowsingOAuth2Scope[] =
644- "https://www.googleapis.com/auth/chrome-safe-browsing"; 645- "https://www.googleapis.com/auth/chrome-safe-browsing";
645+ "trk:092:https://www.googleapis.com/auth/chrome-safe-browsing"; 646+ "trk:090:https://www.googleapis.com/auth/chrome-safe-browsing";
646 647
647 // OAuth2 scope for access to kid permissions by URL. 648 // OAuth2 scope for access to kid permissions by URL.
648 const char kClassifyUrlKidPermissionOAuth2Scope[] = 649 const char kClassifyUrlKidPermissionOAuth2Scope[] =
649- "https://www.googleapis.com/auth/kid.permission"; 650- "https://www.googleapis.com/auth/kid.permission";
650+ "trk:093:https://www.googleapis.com/auth/kid.permission"; 651+ "trk:091:https://www.googleapis.com/auth/kid.permission";
651 const char kKidFamilyReadonlyOAuth2Scope[] = 652 const char kKidFamilyReadonlyOAuth2Scope[] =
652- "https://www.googleapis.com/auth/kid.family.readonly"; 653- "https://www.googleapis.com/auth/kid.family.readonly";
653+ "trk:094:https://www.googleapis.com/auth/kid.family.readonly"; 654+ "trk:092:https://www.googleapis.com/auth/kid.family.readonly";
654 655
655 // OAuth2 scope for access to payments. 656 // OAuth2 scope for access to payments.
656 const char kPaymentsOAuth2Scope[] = 657 const char kPaymentsOAuth2Scope[] =
657- "https://www.googleapis.com/auth/wallet.chrome"; 658- "https://www.googleapis.com/auth/wallet.chrome";
658+ "trk:095:https://www.googleapis.com/auth/wallet.chrome"; 659+ "trk:093:https://www.googleapis.com/auth/wallet.chrome";
659 660
660 const char kCryptAuthOAuth2Scope[] = 661 const char kCryptAuthOAuth2Scope[] =
661- "https://www.googleapis.com/auth/cryptauth"; 662- "https://www.googleapis.com/auth/cryptauth";
662+ "trk:096:https://www.googleapis.com/auth/cryptauth"; 663+ "trk:094:https://www.googleapis.com/auth/cryptauth";
663 664
664 // OAuth2 scope for access to Drive. 665 // OAuth2 scope for access to Drive.
665-const char kDriveOAuth2Scope[] = "https://www.googleapis.com/auth/drive"; 666-const char kDriveOAuth2Scope[] = "https://www.googleapis.com/auth/drive";
666+const char kDriveOAuth2Scope[] = "trk:097:https://www.googleapis.com/auth/drive"; 667+const char kDriveOAuth2Scope[] = "trk:095:https://www.googleapis.com/auth/drive";
667 668
668 // The scope required for an access token in order to query ItemSuggest. 669 // The scope required for an access token in order to query ItemSuggest.
669 const char kDriveReadOnlyOAuth2Scope[] = 670 const char kDriveReadOnlyOAuth2Scope[] =
670- "https://www.googleapis.com/auth/drive.readonly"; 671- "https://www.googleapis.com/auth/drive.readonly";
671+ "trk:098:https://www.googleapis.com/auth/drive.readonly"; 672+ "trk:096:https://www.googleapis.com/auth/drive.readonly";
672 673
673 // OAuth2 scope for access to Assistant SDK. 674 // OAuth2 scope for access to Assistant SDK.
674 const char kAssistantOAuth2Scope[] = 675 const char kAssistantOAuth2Scope[] =
675- "https://www.googleapis.com/auth/assistant-sdk-prototype"; 676- "https://www.googleapis.com/auth/assistant-sdk-prototype";
676+ "trk:099:https://www.googleapis.com/auth/assistant-sdk-prototype"; 677+ "trk:097:https://www.googleapis.com/auth/assistant-sdk-prototype";
677 678
678 // OAuth2 scope for access to nearby devices (fast pair) APIs. 679 // OAuth2 scope for access to nearby devices (fast pair) APIs.
679 const char kCloudPlatformProjectsOAuth2Scope[] = 680 const char kCloudPlatformProjectsOAuth2Scope[] =
680- "https://www.googleapis.com/auth/cloudplatformprojects"; 681- "https://www.googleapis.com/auth/cloudplatformprojects";
681+ "trk:100:https://www.googleapis.com/auth/cloudplatformprojects"; 682+ "trk:098:https://www.googleapis.com/auth/cloudplatformprojects";
682 683
683 // OAuth2 scope for access to nearby sharing. 684 // OAuth2 scope for access to nearby sharing.
684 const char kNearbyShareOAuth2Scope[] = 685 const char kNearbyShareOAuth2Scope[] =
685- "https://www.googleapis.com/auth/nearbysharing-pa"; 686- "https://www.googleapis.com/auth/nearbysharing-pa";
686+ "trk:101:https://www.googleapis.com/auth/nearbysharing-pa"; 687+ "trk:099:https://www.googleapis.com/auth/nearbysharing-pa";
687 688
688 // OAuth2 scopes for access to GCM account tracker. 689 // OAuth2 scopes for access to GCM account tracker.
689-const char kGCMGroupServerOAuth2Scope[] = "https://www.googleapis.com/auth/gcm"; 690-const char kGCMGroupServerOAuth2Scope[] = "https://www.googleapis.com/auth/gcm";
690+const char kGCMGroupServerOAuth2Scope[] = "trk:102:https://www.googleapis.com/auth/gcm"; 691+const char kGCMGroupServerOAuth2Scope[] = "trk:100:https://www.googleapis.com/auth/gcm";
691 const char kGCMCheckinServerOAuth2Scope[] = 692 const char kGCMCheckinServerOAuth2Scope[] =
692- "https://www.googleapis.com/auth/android_checkin"; 693- "https://www.googleapis.com/auth/android_checkin";
693+ "trk:103:https://www.googleapis.com/auth/android_checkin"; 694+ "trk:101:https://www.googleapis.com/auth/android_checkin";
694 695
695 // OAuth2 scope for access to readonly Chrome web store. 696 // OAuth2 scope for access to readonly Chrome web store.
696 const char kChromeWebstoreOAuth2Scope[] = 697 const char kChromeWebstoreOAuth2Scope[] =
697- "https://www.googleapis.com/auth/chromewebstore.readonly"; 698- "https://www.googleapis.com/auth/chromewebstore.readonly";
698+ "trk:104:https://www.googleapis.com/auth/chromewebstore.readonly"; 699+ "trk:102:https://www.googleapis.com/auth/chromewebstore.readonly";
699 700
700 // OAuth2 scope for access to Account Capabilities API. 701 // OAuth2 scope for access to Account Capabilities API.
701 const char kAccountCapabilitiesOAuth2Scope[] = 702 const char kAccountCapabilitiesOAuth2Scope[] =
702- "https://www.googleapis.com/auth/account.capabilities"; 703- "https://www.googleapis.com/auth/account.capabilities";
703+ "trk:105:https://www.googleapis.com/auth/account.capabilities"; 704+ "trk:103:https://www.googleapis.com/auth/account.capabilities";
704 705
705 // OAuth2 scope for support content API. 706 // OAuth2 scope for support content API.
706 const char kSupportContentOAuth2Scope[] = 707 const char kSupportContentOAuth2Scope[] =
707- "https://www.googleapis.com/auth/supportcontent"; 708- "https://www.googleapis.com/auth/supportcontent";
708+ "trk:106:https://www.googleapis.com/auth/supportcontent"; 709+ "trk:104:https://www.googleapis.com/auth/supportcontent";
709 710
710 // OAuth 2 scope for NTP Photos module API. 711 // OAuth 2 scope for NTP Photos module API.
711 const char kPhotosModuleOAuth2Scope[] = 712 const char kPhotosModuleOAuth2Scope[] =
712- "https://www.googleapis.com/auth/photos.firstparty.readonly"; 713--- google_apis/gaia/gaia_urls.cc.orig
713+ "trk:107:https://www.googleapis.com/auth/photos.firstparty.readonly"; 714+++ google_apis/gaia/gaia_urls.cc
714
715 // OAuth 2 scope for NTP Photos module image API.
716 const char kPhotosModuleImageOAuth2Scope[] =
717- "https://www.googleapis.com/auth/photos.image.readonly";
718+ "trk:108:https://www.googleapis.com/auth/photos.image.readonly";
719
720 // Used to mint uber auth tokens when needed.
721 const char kGaiaSid[] = "sid";
722--- a/google_apis/gaia/gaia_urls.cc
723+++ b/google_apis/gaia/gaia_urls.cc
724@@ -24,6 +24,7 @@ 715@@ -24,6 +24,7 @@
725 namespace { 716 namespace {
726 717
@@ -729,8 +720,8 @@ by default.
729 const char kDefaultGoogleUrl[] = "http://google.com"; 720 const char kDefaultGoogleUrl[] = "http://google.com";
730 const char kDefaultGaiaUrl[] = "https://accounts.google.com"; 721 const char kDefaultGaiaUrl[] = "https://accounts.google.com";
731 const char kDefaultGoogleApisBaseUrl[] = "https://www.googleapis.com"; 722 const char kDefaultGoogleApisBaseUrl[] = "https://www.googleapis.com";
732--- a/google_apis/gcm/engine/gservices_settings.cc 723--- google_apis/gcm/engine/gservices_settings.cc.orig
733+++ b/google_apis/gcm/engine/gservices_settings.cc 724+++ google_apis/gcm/engine/gservices_settings.cc
734@@ -30,18 +30,18 @@ const char kRegistrationURLKey[] = "gcm_ 725@@ -30,18 +30,18 @@ const char kRegistrationURLKey[] = "gcm_
735 726
736 const int64_t kDefaultCheckinInterval = 2 * 24 * 60 * 60; // seconds = 2 days. 727 const int64_t kDefaultCheckinInterval = 2 * 24 * 60 * 60; // seconds = 2 days.
@@ -753,8 +744,19 @@ by default.
753 const int kMaxSecurePort = 65535; 744 const int kMaxSecurePort = 65535;
754 745
755 std::string MakeMCSEndpoint(const std::string& mcs_hostname, int port) { 746 std::string MakeMCSEndpoint(const std::string& mcs_hostname, int port) {
756--- a/remoting/base/breakpad_mac.mm 747--- jingle/notifier/base/gaia_token_pre_xmpp_auth.cc.orig
757+++ b/remoting/base/breakpad_mac.mm 748+++ jingle/notifier/base/gaia_token_pre_xmpp_auth.cc
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
758@@ -50,7 +50,7 @@ void InitializeCrashReporting() { 760@@ -50,7 +50,7 @@ void InitializeCrashReporting() {
759 breakpad_config[@BREAKPAD_REPORT_INTERVAL] = @"21600"; 761 breakpad_config[@BREAKPAD_REPORT_INTERVAL] = @"21600";
760 } 762 }
@@ -764,8 +766,8 @@ by default.
764 } 766 }
765 767
766 if (!BreakpadCreate(breakpad_config)) { 768 if (!BreakpadCreate(breakpad_config)) {
767--- a/remoting/protocol/jingle_messages.cc 769--- remoting/protocol/jingle_messages.cc.orig
768+++ b/remoting/protocol/jingle_messages.cc 770+++ remoting/protocol/jingle_messages.cc
769@@ -27,7 +27,7 @@ const char kJabberNamespace[] = "jabber: 771@@ -27,7 +27,7 @@ const char kJabberNamespace[] = "jabber:
770 const char kJingleNamespace[] = "urn:xmpp:jingle:1"; 772 const char kJingleNamespace[] = "urn:xmpp:jingle:1";
771 773
@@ -775,8 +777,8 @@ by default.
775 777
776 const char kWebrtcTransportNamespace[] = "google:remoting:webrtc"; 778 const char kWebrtcTransportNamespace[] = "google:remoting:webrtc";
777 779
778--- a/rlz/lib/lib_values.cc 780--- rlz/lib/lib_values.cc.orig
779+++ b/rlz/lib/lib_values.cc 781+++ rlz/lib/lib_values.cc
780@@ -40,7 +40,7 @@ const char kSetDccResponseVariable[] = " 782@@ -40,7 +40,7 @@ const char kSetDccResponseVariable[] = "
781 // 783 //
782 784
@@ -786,8 +788,37 @@ by default.
786 const int kFinancialPort = 443; 788 const int kFinancialPort = 443;
787 789
788 // Ping times in 100-nanosecond intervals. 790 // Ping times in 100-nanosecond intervals.
789--- a/ui/accessibility/extensions/chromevoxclassic/chromevox/background/prefs.js 791--- third_party/libjingle_xmpp/xmpp/constants.cc.orig
790+++ b/ui/accessibility/extensions/chromevoxclassic/chromevox/background/prefs.js 792+++ third_party/libjingle_xmpp/xmpp/constants.cc
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
791@@ -72,9 +72,9 @@ cvox.ChromeVoxPrefs.DEFAULT_PREFS = { 822@@ -72,9 +72,9 @@ cvox.ChromeVoxPrefs.DEFAULT_PREFS = {
792 'outputContextFirst': false, 823 'outputContextFirst': false,
793 'position': '{}', 824 'position': '{}',
@@ -800,8 +831,8 @@ by default.
800 'sticky': false, 831 'sticky': false,
801 'typingEcho': 0, 832 'typingEcho': 0,
802 'useIBeamCursor': cvox.ChromeVox.isMac, 833 'useIBeamCursor': cvox.ChromeVox.isMac,
803--- a/ui/accessibility/extensions/chromevoxclassic/host/chrome/host.js 834--- ui/accessibility/extensions/chromevoxclassic/host/chrome/host.js.orig
804+++ b/ui/accessibility/extensions/chromevoxclassic/host/chrome/host.js 835+++ ui/accessibility/extensions/chromevoxclassic/host/chrome/host.js
805@@ -96,9 +96,9 @@ cvox.ChromeHost.prototype.init = functio 836@@ -96,9 +96,9 @@ cvox.ChromeHost.prototype.init = functio
806 (!cvox.ApiImplementation.siteSpecificScriptLoader || 837 (!cvox.ApiImplementation.siteSpecificScriptLoader ||
807 !cvox.ApiImplementation.siteSpecificScriptBase); 838 !cvox.ApiImplementation.siteSpecificScriptBase);
@@ -814,8 +845,8 @@ by default.
814 if (apiPrefsChanged) { 845 if (apiPrefsChanged) {
815 var searchInit = prefs['siteSpecificEnhancements'] === 'true' ? 846 var searchInit = prefs['siteSpecificEnhancements'] === 'true' ?
816 cvox.SearchLoader.init : 847 cvox.SearchLoader.init :
817--- a/ui/views/examples/webview_example.cc 848--- ui/views/examples/webview_example.cc.orig
818+++ b/ui/views/examples/webview_example.cc 849+++ ui/views/examples/webview_example.cc
819@@ -29,7 +29,7 @@ void WebViewExample::CreateExampleView(V 850@@ -29,7 +29,7 @@ void WebViewExample::CreateExampleView(V
820 webview_->GetWebContents()->SetDelegate(this); 851 webview_->GetWebContents()->SetDelegate(this);
821 container->SetLayoutManager(std::make_unique<FillLayout>()); 852 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 bcaf7ce..021abee 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--- a/chrome/browser/safe_browsing/chrome_safe_browsing_blocking_page_factory.cc 17--- chrome/browser/safe_browsing/chrome_safe_browsing_blocking_page_factory.cc.orig
18+++ b/chrome/browser/safe_browsing/chrome_safe_browsing_blocking_page_factory.cc 18+++ chrome/browser/safe_browsing/chrome_safe_browsing_blocking_page_factory.cc
19@@ -36,8 +36,7 @@ ChromeSafeBrowsingBlockingPageFactory::C 19@@ -35,8 +35,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--- a/chrome/browser/safe_browsing/incident_reporting/incident_report_uploader_impl.cc 29--- chrome/browser/safe_browsing/incident_reporting/incident_report_uploader_impl.cc.orig
30+++ b/chrome/browser/safe_browsing/incident_reporting/incident_report_uploader_impl.cc 30+++ 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,8 +37,8 @@ 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--- a/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc 40--- chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc.orig
41+++ b/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc 41+++ chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc
42@@ -308,11 +308,14 @@ IncidentReportingService::UploadContext: 42@@ -308,11 +308,14 @@ IncidentReportingService::UploadContext:
43 43
44 // static 44 // static
@@ -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--- a/chrome/browser/safe_browsing/safe_browsing_service.cc 57--- chrome/browser/safe_browsing/safe_browsing_service.cc.orig
58+++ b/chrome/browser/safe_browsing/safe_browsing_service.cc 58+++ chrome/browser/safe_browsing/safe_browsing_service.cc
59@@ -278,7 +278,7 @@ SafeBrowsingUIManager* SafeBrowsingServi 59@@ -286,7 +286,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--- a/components/security_interstitials/core/safe_browsing_loud_error_ui.cc 68--- components/security_interstitials/core/safe_browsing_loud_error_ui.cc.orig
69+++ b/components/security_interstitials/core/safe_browsing_loud_error_ui.cc 69+++ 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 3864e25..23f0675 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--- a/components/safe_browsing/content/browser/client_side_detection_service.cc 14--- components/safe_browsing/content/browser/client_side_detection_service.cc.orig
15+++ b/components/safe_browsing/content/browser/client_side_detection_service.cc 15+++ components/safe_browsing/content/browser/client_side_detection_service.cc
16@@ -217,6 +217,10 @@ void ClientSideDetectionService::StartCl 16@@ -209,6 +209,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@@ -296,6 +300,7 @@ void ClientSideDetectionService::StartCl 27@@ -288,6 +292,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 13eb9d7..1e29eb6 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--- a/chrome/browser/new_tab_page/one_google_bar/one_google_bar_loader_impl.cc 3--- chrome/browser/new_tab_page/one_google_bar/one_google_bar_loader_impl.cc.orig
4+++ b/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
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,8 +10,8 @@
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--- a/chrome/browser/new_tab_page/promos/promo_service.cc 13--- chrome/browser/new_tab_page/promos/promo_service.cc.orig
14+++ b/chrome/browser/new_tab_page/promos/promo_service.cc 14+++ chrome/browser/new_tab_page/promos/promo_service.cc
15@@ -138,6 +138,7 @@ PromoService::PromoService( 15@@ -138,6 +138,7 @@ PromoService::PromoService(
16 PromoService::~PromoService() = default; 16 PromoService::~PromoService() = default;
17 17
@@ -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--- a/chrome/browser/resources/discards/graph_doc_template.html 23--- chrome/browser/resources/discards/graph_doc_template.html.orig
24+++ b/chrome/browser/resources/discards/graph_doc_template.html 24+++ 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,8 +33,8 @@
33 <script type="application/javascript"> 33 <script type="application/javascript">
34 ${javascript_file} 34 ${javascript_file}
35 </script> 35 </script>
36--- a/chrome/browser/search/background/ntp_background_service.cc 36--- chrome/browser/search/background/ntp_background_service.cc.orig
37+++ b/chrome/browser/search/background/ntp_background_service.cc 37+++ chrome/browser/search/background/ntp_background_service.cc
38@@ -83,6 +83,7 @@ void NtpBackgroundService::Shutdown() { 38@@ -83,6 +83,7 @@ void NtpBackgroundService::Shutdown() {
39 } 39 }
40 40
@@ -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--- a/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc 46--- chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc.orig
47+++ b/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc 47+++ 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--- a/components/assist_ranker/ranker_url_fetcher.cc 56--- components/assist_ranker/ranker_url_fetcher.cc.orig
57+++ b/components/assist_ranker/ranker_url_fetcher.cc 57+++ 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--- a/components/update_client/update_checker.cc 66--- components/update_client/update_checker.cc.orig
67+++ b/components/update_client/update_checker.cc 67+++ components/update_client/update_checker.cc
68@@ -109,6 +109,7 @@ void UpdateCheckerImpl::CheckForUpdates( 68@@ -129,6 +129,7 @@ void UpdateCheckerImpl::CheckForUpdates(
69 const IdToComponentPtrMap& components,
70 const base::flat_map<std::string, std::string>& additional_attributes, 69 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 37961f4..8b68a77 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--- a/chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.cc 4--- chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.cc.orig
5+++ b/chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.cc 5+++ chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.cc
6@@ -57,6 +57,7 @@ ChromeAutocompleteSchemeClassifier::GetI 6@@ -56,6 +56,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--- a/chrome/browser/history/history_utils.cc 14--- chrome/browser/history/history_utils.cc.orig
15+++ b/chrome/browser/history/history_utils.cc 15+++ 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--- a/chrome/browser/ui/singleton_tabs.cc 24--- chrome/browser/ui/singleton_tabs.cc.orig
25+++ b/chrome/browser/ui/singleton_tabs.cc 25+++ chrome/browser/ui/singleton_tabs.cc
26@@ -102,7 +102,8 @@ int GetIndexOfExistingTab(Browser* brows 26@@ -99,7 +99,8 @@ int GetIndexOfExistingTab(Browser* brows
27 // RewriteURLIfNecessary removes the "view-source:" scheme which could lead 27
28 // to incorrect matching, so ensure that the target and the candidate are 28 // Skip view-source tabs. This is needed because RewriteURLIfNecessary
29 // either both view-source:, or neither is. 29 // removes the "view-source:" scheme which leads to incorrect matching.
30- if (tab_url.SchemeIs(content::kViewSourceScheme) != target_is_view_source) { 30- if (tab_url.SchemeIs(content::kViewSourceScheme))
31+ if (tab_url.SchemeIs(content::kViewSourceScheme) != target_is_view_source || 31+ if (tab_url.SchemeIs(content::kViewSourceScheme) ||
32+ tab_url.SchemeIs(url::kTraceScheme)) { 32+ tab_url.SchemeIs(url::kTraceScheme))
33 continue; 33 continue;
34 }
35 34
36--- a/components/omnibox/browser/autocomplete_input.cc 35 GURL rewritten_tab_url = tab_url;
37+++ b/components/omnibox/browser/autocomplete_input.cc 36--- components/omnibox/browser/autocomplete_input.cc.orig
38@@ -561,7 +561,8 @@ void AutocompleteInput::ParseForEmphasiz 37+++ components/omnibox/browser/autocomplete_input.cc
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--- a/components/url_formatter/url_fixer.cc 48--- components/url_formatter/url_fixer.cc.orig
49+++ b/components/url_formatter/url_fixer.cc 49+++ 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--- a/content/browser/child_process_security_policy_impl.cc 61--- content/browser/child_process_security_policy_impl.cc.orig
62+++ b/content/browser/child_process_security_policy_impl.cc 62+++ content/browser/child_process_security_policy_impl.cc
63@@ -732,6 +732,7 @@ ChildProcessSecurityPolicyImpl::ChildPro 63@@ -861,6 +861,7 @@ ChildProcessSecurityPolicyImpl::ChildPro
64 RegisterWebSafeScheme(url::kWssScheme);
65 #endif // BUILDFLAG(ENABLE_WEBSOCKETS) 64 #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");
68 69
69 // TODO(nick): https://crbug.com/651534 blob: and filesystem: schemes embed 70 // TODO(nick): https://crbug.com/651534 blob: and filesystem: schemes embed
70 // other origins, so we should not treat them as web safe. Remove callers of 71--- net/BUILD.gn.orig
71--- a/net/BUILD.gn 72+++ net/BUILD.gn
72+++ b/net/BUILD.gn 73@@ -1010,6 +1010,8 @@ component("net") {
73@@ -1019,6 +1019,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+++ b/net/url_request/trk_protocol_handler.cc 83+++ 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+++ b/net/url_request/trk_protocol_handler.h 111+++ net/url_request/trk_protocol_handler.h
112@@ -0,0 +1,30 @@ 112@@ -0,0 +1,32 @@
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,6 +118,7 @@
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"
121+#include "net/base/net_export.h" 122+#include "net/base/net_export.h"
122+#include "net/url_request/url_request_job_factory.h" 123+#include "net/url_request/url_request_job_factory.h"
123+ 124+
@@ -130,18 +131,19 @@
130+ : public URLRequestJobFactory::ProtocolHandler { 131+ : public URLRequestJobFactory::ProtocolHandler {
131+ public: 132+ public:
132+ TrkProtocolHandler(); 133+ TrkProtocolHandler();
133+ TrkProtocolHandler(const TrkProtocolHandler&) = delete;
134+ TrkProtocolHandler& operator=(const TrkProtocolHandler&) = delete;
135+ std::unique_ptr<URLRequestJob> CreateJob( 134+ std::unique_ptr<URLRequestJob> CreateJob(
136+ URLRequest* request) const override; 135+ URLRequest* request) const override;
137+ bool IsSafeRedirectTarget(const GURL& location) const override; 136+ bool IsSafeRedirectTarget(const GURL& location) const override;
137+
138+ private:
139+ DISALLOW_COPY_AND_ASSIGN(TrkProtocolHandler);
138+}; 140+};
139+ 141+
140+} // namespace net 142+} // namespace net
141+ 143+
142+#endif // NET_URL_REQUEST_TRK_PROTOCOL_HANDLER_H_ 144+#endif // NET_URL_REQUEST_TRK_PROTOCOL_HANDLER_H_
143--- a/net/url_request/url_request.cc 145--- net/url_request/url_request.cc.orig
144+++ b/net/url_request/url_request.cc 146+++ net/url_request/url_request.cc
145@@ -12,6 +12,7 @@ 147@@ -12,6 +12,7 @@
146 #include "base/compiler_specific.h" 148 #include "base/compiler_specific.h"
147 #include "base/metrics/histogram_macros.h" 149 #include "base/metrics/histogram_macros.h"
@@ -150,7 +152,7 @@
150 #include "base/strings/utf_string_conversions.h" 152 #include "base/strings/utf_string_conversions.h"
151 #include "base/synchronization/lock.h" 153 #include "base/synchronization/lock.h"
152 #include "base/threading/thread_task_runner_handle.h" 154 #include "base/threading/thread_task_runner_handle.h"
153@@ -45,6 +46,7 @@ 155@@ -46,6 +47,7 @@
154 #include "net/url_request/url_request_redirect_job.h" 156 #include "net/url_request/url_request_redirect_job.h"
155 #include "url/gurl.h" 157 #include "url/gurl.h"
156 #include "url/origin.h" 158 #include "url/origin.h"
@@ -158,7 +160,7 @@
158 160
159 using base::Time; 161 using base::Time;
160 using std::string; 162 using std::string;
161@@ -609,6 +611,12 @@ URLRequest::URLRequest(const GURL& url, 163@@ -595,6 +597,12 @@ URLRequest::URLRequest(const GURL& url,
162 // Sanity check out environment. 164 // Sanity check out environment.
163 DCHECK(base::ThreadTaskRunnerHandle::IsSet()); 165 DCHECK(base::ThreadTaskRunnerHandle::IsSet());
164 166
@@ -171,17 +173,17 @@
171 context->url_requests()->insert(this); 173 context->url_requests()->insert(this);
172 net_log_.BeginEvent(NetLogEventType::REQUEST_ALIVE, [&] { 174 net_log_.BeginEvent(NetLogEventType::REQUEST_ALIVE, [&] {
173 return NetLogURLRequestConstructorParams(url, priority_, 175 return NetLogURLRequestConstructorParams(url, priority_,
174--- a/net/url_request/url_request_context_builder.cc 176--- net/url_request/url_request_context_builder.cc.orig
175+++ b/net/url_request/url_request_context_builder.cc 177+++ net/url_request/url_request_context_builder.cc
176@@ -48,6 +48,7 @@ 178@@ -46,6 +46,7 @@
177 #include "net/socket/network_binding_client_socket_factory.h" 179 #include "net/quic/quic_stream_factory.h"
178 #include "net/ssl/ssl_config_service_defaults.h" 180 #include "net/ssl/ssl_config_service_defaults.h"
179 #include "net/url_request/static_http_user_agent_settings.h" 181 #include "net/url_request/static_http_user_agent_settings.h"
180+#include "net/url_request/trk_protocol_handler.h" 182+#include "net/url_request/trk_protocol_handler.h"
181 #include "net/url_request/url_request_context.h" 183 #include "net/url_request/url_request_context.h"
182 #include "net/url_request/url_request_context_storage.h" 184 #include "net/url_request/url_request_context_storage.h"
183 #include "net/url_request/url_request_job_factory.h" 185 #include "net/url_request/url_request_job_factory.h"
184@@ -618,6 +619,9 @@ std::unique_ptr<URLRequestContext> URLRe 186@@ -546,6 +547,9 @@ std::unique_ptr<URLRequestContext> URLRe
185 } 187 }
186 protocol_handlers_.clear(); 188 protocol_handlers_.clear();
187 189
@@ -191,30 +193,28 @@
191 storage->set_job_factory(std::move(job_factory)); 193 storage->set_job_factory(std::move(job_factory));
192 194
193 return std::move(context); 195 return std::move(context);
194--- a/url/url_constants.cc 196--- url/url_constants.cc.orig
195+++ b/url/url_constants.cc 197+++ url/url_constants.cc
196@@ -46,6 +46,8 @@ const char kQuicTransportScheme[] = "qui 198@@ -28,6 +28,7 @@ const char kMailToScheme[] = "mailto";
197 const char16_t kQuicTransportScheme16[] = u"quic-transport"; 199 // See also: https://www.iana.org/assignments/uri-schemes/prov/quic-transport
200 const char kQuicTransportScheme[] = "quic-transport";
198 const char kTelScheme[] = "tel"; 201 const char kTelScheme[] = "tel";
199 const char16_t kTelScheme16[] = u"tel";
200+const char kTraceScheme[] = "trk"; 202+const char kTraceScheme[] = "trk";
201+const char16_t kTraceScheme16[] = u"trk";
202 const char kUrnScheme[] = "urn"; 203 const char kUrnScheme[] = "urn";
203 const char16_t kUrnScheme16[] = u"urn"; 204 const char kWsScheme[] = "ws";
204 const char kUuidInPackageScheme[] = "uuid-in-package"; 205 const char kWssScheme[] = "wss";
205--- a/url/url_constants.h 206--- url/url_constants.h.orig
206+++ b/url/url_constants.h 207+++ url/url_constants.h
207@@ -50,6 +50,8 @@ COMPONENT_EXPORT(URL) extern const char 208@@ -32,6 +32,7 @@ COMPONENT_EXPORT(URL) extern const char
208 COMPONENT_EXPORT(URL) extern const char16_t kQuicTransportScheme16[]; 209 COMPONENT_EXPORT(URL) extern const char kMailToScheme[];
210 COMPONENT_EXPORT(URL) extern const char kQuicTransportScheme[];
209 COMPONENT_EXPORT(URL) extern const char kTelScheme[]; 211 COMPONENT_EXPORT(URL) extern const char kTelScheme[];
210 COMPONENT_EXPORT(URL) extern const char16_t kTelScheme16[];
211+COMPONENT_EXPORT(URL) extern const char kTraceScheme[]; 212+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 char16_t kUrnScheme16[]; 214 COMPONENT_EXPORT(URL) extern const char kWsScheme[];
215 COMPONENT_EXPORT(URL) extern const char kUuidInPackageScheme[]; 215 COMPONENT_EXPORT(URL) extern const char kWssScheme[];
216--- a/url/url_util.cc 216--- url/url_util.cc.orig
217+++ b/url/url_util.cc 217+++ 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 e23a778..a4b3c51 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--- a/components/crash/core/app/crashpad_linux.cc 3--- components/crash/core/app/crashpad_linux.cc.orig
4+++ b/components/crash/core/app/crashpad_linux.cc 4+++ components/crash/core/app/crashpad_linux.cc
5@@ -60,8 +60,7 @@ void SetFirstChanceExceptionHandler(bool 5@@ -59,8 +59,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 d342db3..adc446c 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--- a/chrome/browser/domain_reliability/service_factory.cc 5--- chrome/browser/domain_reliability/service_factory.cc.orig
6+++ b/chrome/browser/domain_reliability/service_factory.cc 6+++ 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--- a/components/domain_reliability/BUILD.gn 43--- components/domain_reliability/BUILD.gn.orig
44+++ b/components/domain_reliability/BUILD.gn 44+++ 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--- a/components/domain_reliability/bake_in_configs.py 101--- components/domain_reliability/bake_in_configs.py.orig
102+++ b/components/domain_reliability/bake_in_configs.py 102+++ 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--- a/components/domain_reliability/google_configs.cc 112--- components/domain_reliability/google_configs.cc.orig
113+++ b/components/domain_reliability/google_configs.cc 113+++ components/domain_reliability/google_configs.cc
114@@ -11,548 +11,6 @@ 114@@ -11,564 +11,6 @@
115 115
116 namespace domain_reliability { 116 namespace domain_reliability {
117 117
@@ -402,6 +402,9 @@
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},
405- {"cdn.ampproject.org", true, false, false}, 408- {"cdn.ampproject.org", true, false, false},
406- {"chromecast.com", true, false, false}, 409- {"chromecast.com", true, false, false},
407- {"chromeexperiments.com", true, false, false}, 410- {"chromeexperiments.com", true, false, false},
@@ -458,6 +461,19 @@
458- {"picasa.com", true, false, false}, 461- {"picasa.com", true, false, false},
459- {"recaptcha.net", true, false, false}, 462- {"recaptcha.net", true, false, false},
460- {"stackdriver.com", true, false, false}, 463- {"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},
461- {"waze.com", true, false, false}, 477- {"waze.com", true, false, false},
462- {"withgoogle.com", true, false, false}, 478- {"withgoogle.com", true, false, false},
463- {"youtu.be", true, false, false}, 479- {"youtu.be", true, false, false},
@@ -660,7 +676,7 @@
660 std::unique_ptr<const DomainReliabilityConfig> MaybeGetGoogleConfig( 676 std::unique_ptr<const DomainReliabilityConfig> MaybeGetGoogleConfig(
661 const std::string& hostname) { 677 const std::string& hostname) {
662 bool is_www_subdomain = 678 bool is_www_subdomain =
663@@ -562,23 +20,6 @@ std::unique_ptr<const DomainReliabilityC 679@@ -578,23 +20,6 @@ std::unique_ptr<const DomainReliabilityC
664 std::unique_ptr<const DomainReliabilityConfig> config; 680 std::unique_ptr<const DomainReliabilityConfig> config;
665 std::unique_ptr<const DomainReliabilityConfig> superdomain_config; 681 std::unique_ptr<const DomainReliabilityConfig> superdomain_config;
666 682
@@ -684,7 +700,7 @@
684 if (config) { 700 if (config) {
685 DCHECK(config->origin.host() == hostname); 701 DCHECK(config->origin.host() == hostname);
686 return config; 702 return config;
687@@ -597,11 +38,6 @@ std::vector<std::unique_ptr<const Domain 703@@ -613,11 +38,6 @@ std::vector<std::unique_ptr<const Domain
688 GetAllGoogleConfigsForTesting() { 704 GetAllGoogleConfigsForTesting() {
689 std::vector<std::unique_ptr<const DomainReliabilityConfig>> configs_out; 705 std::vector<std::unique_ptr<const DomainReliabilityConfig>> configs_out;
690 706
@@ -696,9 +712,9 @@
696 return configs_out; 712 return configs_out;
697 } 713 }
698 714
699--- a/components/domain_reliability/uploader.cc 715--- components/domain_reliability/uploader.cc.orig
700+++ b/components/domain_reliability/uploader.cc 716+++ components/domain_reliability/uploader.cc
701@@ -80,7 +80,7 @@ class DomainReliabilityUploaderImpl : pu 717@@ -79,7 +79,7 @@ class DomainReliabilityUploaderImpl : pu
702 if (discard_uploads_) 718 if (discard_uploads_)
703 discarded_upload_count_++; 719 discarded_upload_count_++;
704 720
diff --git a/www/chromium-uc/patches/core/ungoogled-chromium/disable-floc.patch b/www/chromium-uc/patches/core/ungoogled-chromium/disable-floc.patch
new file mode 100644
index 0000000..3ef84c2
--- /dev/null
+++ b/www/chromium-uc/patches/core/ungoogled-chromium/disable-floc.patch
@@ -0,0 +1,78 @@
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 ebfc63a..e969364 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--- a/chrome/browser/ash/child_accounts/time_limits/web_time_limit_error_page/resources/web_time_limit_error_page.html 3--- chrome/browser/ash/child_accounts/time_limits/web_time_limit_error_page/resources/web_time_limit_error_page.html.orig
4+++ b/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
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--- a/chrome/browser/resources/chromeos/accessibility/chromevox/options/options.css 14--- chrome/browser/resources/chromeos/accessibility/chromevox/options/options.css.orig
15+++ b/chrome/browser/resources/chromeos/accessibility/chromevox/options/options.css 15+++ 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--- a/chrome/browser/resources/chromeos/accessibility/select_to_speak/options.css 25--- chrome/browser/resources/chromeos/accessibility/select_to_speak/options.css.orig
26+++ b/chrome/browser/resources/chromeos/accessibility/select_to_speak/options.css 26+++ 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--- a/chrome/browser/supervised_user/supervised_user_error_page/resources/supervised_user_block_interstitial.html 36--- chrome/browser/supervised_user/supervised_user_error_page/resources/supervised_user_block_interstitial.html.orig
37+++ b/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
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--- a/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc 47--- components/dom_distiller/content/browser/dom_distiller_viewer_source.cc.orig
48+++ b/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc 48+++ components/dom_distiller/content/browser/dom_distiller_viewer_source.cc
49@@ -298,7 +298,7 @@ bool DomDistillerViewerSource::ShouldSer 49@@ -300,7 +300,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--- a/components/dom_distiller/core/html/preview.html 58--- components/dom_distiller/core/html/preview.html.orig
59+++ b/components/dom_distiller/core/html/preview.html 59+++ 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--- a/components/dom_distiller/core/javascript/dom_distiller_viewer.js 69--- components/dom_distiller/core/javascript/dom_distiller_viewer.js.orig
70+++ b/components/dom_distiller/core/javascript/dom_distiller_viewer.js 70+++ 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--- a/third_party/crashpad/crashpad/doc/support/crashpad_doxygen.css 80--- third_party/crashpad/crashpad/doc/support/crashpad_doxygen.css.orig
81+++ b/third_party/crashpad/crashpad/doc/support/crashpad_doxygen.css 81+++ 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--- a/tools/md_browser/base.css 92--- tools/md_browser/base.css.orig
93+++ b/tools/md_browser/base.css 93+++ 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 5aa8290..bc27e5d 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--- a/google_apis/gaia/gaia_auth_fetcher.cc 4--- google_apis/gaia/gaia_auth_fetcher.cc.orig
5+++ b/google_apis/gaia/gaia_auth_fetcher.cc 5+++ google_apis/gaia/gaia_auth_fetcher.cc
6@@ -292,66 +292,6 @@ void GaiaAuthFetcher::CreateAndStartGaia 6@@ -293,65 +293,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,8 +13,7 @@
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(), 16- DCHECK_EQ(GaiaUrls::GetInstance()->gaia_url(), gaia_gurl.GetOrigin())
17- gaia_gurl.DeprecatedGetOriginAsURL())
18- << gaia_gurl; 17- << gaia_gurl;
19- url::Origin origin = 18- url::Origin origin =
20- url::Origin::Create(GaiaUrls::GetInstance()->gaia_url()); 19- 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 7838c20..bafa024 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--- a/components/gcm_driver/gcm_client_impl.cc 3--- components/gcm_driver/gcm_client_impl.cc.orig
4+++ b/components/gcm_driver/gcm_client_impl.cc 4+++ 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.is_negative()) 55- if (time_to_next_checkin < base::TimeDelta())
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 4cdef42..846904d 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--- a/chrome/common/google_url_loader_throttle.cc 3--- chrome/common/google_url_loader_throttle.cc.orig
4+++ b/chrome/common/google_url_loader_throttle.cc 4+++ 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 BUILDFLAG(IS_ANDROID) 15 #if defined(OS_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 BUILDFLAG(IS_ANDROID) 46-#if defined(OS_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 BUILDFLAG(IS_ANDROID) 98-#if defined(OS_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--- a/components/google/core/common/google_util.cc 131--- components/google/core/common/google_util.cc.orig
132+++ b/components/google/core/common/google_util.cc 132+++ components/google/core/common/google_util.cc
133@@ -32,112 +32,6 @@ namespace google_util { 133@@ -33,112 +33,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@@ -145,12 +39,6 @@ bool IsGoogleSearchSubdomainUrl(const GU 246@@ -146,12 +40,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@@ -161,161 +49,53 @@ std::string GetGoogleLocale(const std::s 259@@ -162,161 +50,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) {
@@ -428,9 +428,9 @@
428 return false; 428 return false;
429 } 429 }
430 430
431--- a/components/page_load_metrics/browser/page_load_metrics_util.cc 431--- components/page_load_metrics/browser/page_load_metrics_util.cc.orig
432+++ b/components/page_load_metrics/browser/page_load_metrics_util.cc 432+++ components/page_load_metrics/browser/page_load_metrics_util.cc
433@@ -199,9 +199,7 @@ bool DidObserveLoadingBehaviorInAnyFrame 433@@ -196,9 +196,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--- a/components/page_load_metrics/common/page_load_metrics_util.cc 444--- components/page_load_metrics/common/page_load_metrics_util.cc.orig
445+++ b/components/page_load_metrics/common/page_load_metrics_util.cc 445+++ components/page_load_metrics/common/page_load_metrics_util.cc
446@@ -24,38 +24,7 @@ const int kExtraBufferTimerDelayMillis = 446@@ -36,38 +36,7 @@ const char* kBufferTimerDelayParamName =
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--- a/components/search_engines/template_url.cc 486--- components/search_engines/template_url.cc.orig
487+++ b/components/search_engines/template_url.cc 487+++ components/search_engines/template_url.cc
488@@ -530,11 +530,7 @@ std::u16string TemplateURLRef::SearchTer 488@@ -527,11 +527,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,8 +498,8 @@
498 } 498 }
499 499
500 bool TemplateURLRef::ExtractSearchTermsFromURL( 500 bool TemplateURLRef::ExtractSearchTermsFromURL(
501--- a/components/variations/net/variations_http_headers.cc 501--- components/variations/net/variations_http_headers.cc.orig
502+++ b/components/variations/net/variations_http_headers.cc 502+++ components/variations/net/variations_http_headers.cc
503@@ -26,10 +26,6 @@ 503@@ -26,10 +26,6 @@
504 504
505 namespace variations { 505 namespace variations {
@@ -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,30 +234,7 @@ class VariationsHeaderHelper { 514@@ -238,29 +234,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,9 +533,8 @@
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 to 536- // Set the variations header to cors_exempt_headers rather than headers
537- // be exempted from CORS checks, and to avoid exposing the header to service 537- // to be exempted from CORS checks.
538- // workers.
539- resource_request_->cors_exempt_headers.SetHeaderIfMissing( 538- resource_request_->cors_exempt_headers.SetHeaderIfMissing(
540- kClientDataHeader, variations_header_); 539- kClientDataHeader, variations_header_);
541- return true; 540- return true;
@@ -543,7 +542,7 @@
543 } 542 }
544 543
545 private: 544 private:
546@@ -329,8 +302,6 @@ void RemoveVariationsHeaderIfNeeded( 545@@ -328,8 +302,6 @@ void RemoveVariationsHeaderIfNeeded(
547 const net::RedirectInfo& redirect_info, 546 const net::RedirectInfo& redirect_info,
548 const network::mojom::URLResponseHead& response_head, 547 const network::mojom::URLResponseHead& response_head,
549 std::vector<std::string>* to_be_removed_headers) { 548 std::vector<std::string>* to_be_removed_headers) {
@@ -552,7 +551,13 @@
552 } 551 }
553 552
554 std::unique_ptr<network::SimpleURLLoader> 553 std::unique_ptr<network::SimpleURLLoader>
555@@ -360,9 +331,7 @@ CreateSimpleURLLoaderWithVariationsHeade 554@@ -359,14 +331,11 @@ CreateSimpleURLLoaderWithVariationsHeade
555 }
556
557 bool IsVariationsHeader(const std::string& header_name) {
558- return header_name == kClientDataHeader ||
559- header_name == kOmniboxOnDeviceSuggestionsHeader;
560+ return false;
556 } 561 }
557 562
558 bool HasVariationsHeader(const network::ResourceRequest& request) { 563 bool HasVariationsHeader(const network::ResourceRequest& request) {
@@ -563,7 +568,7 @@
563 } 568 }
564 569
565 bool ShouldAppendVariationsHeaderForTesting( 570 bool ShouldAppendVariationsHeaderForTesting(
566@@ -373,12 +342,6 @@ bool ShouldAppendVariationsHeaderForTest 571@@ -377,12 +346,6 @@ bool ShouldAppendVariationsHeaderForTest
567 572
568 void UpdateCorsExemptHeaderForVariations( 573 void UpdateCorsExemptHeaderForVariations(
569 network::mojom::NetworkContextParams* params) { 574 network::mojom::NetworkContextParams* params) {
@@ -576,9 +581,9 @@
576 } 581 }
577 582
578 } // namespace variations 583 } // namespace variations
579--- a/net/base/url_util.cc 584--- net/base/url_util.cc.orig
580+++ b/net/base/url_util.cc 585+++ net/base/url_util.cc
581@@ -455,27 +455,6 @@ bool HasGoogleHost(const GURL& url) { 586@@ -442,27 +442,6 @@ bool HasGoogleHost(const GURL& url) {
582 } 587 }
583 588
584 bool IsGoogleHost(base::StringPiece host) { 589 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 4a74df6..731e85d 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--- a/chrome/BUILD.gn 8--- chrome/BUILD.gn.orig
9+++ b/chrome/BUILD.gn 9+++ chrome/BUILD.gn
10@@ -347,7 +347,6 @@ if (!is_android && !is_mac) { 10@@ -351,7 +351,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@@ -1189,7 +1188,6 @@ if (is_win) { 18@@ -1157,7 +1156,6 @@ if (is_win) {
19 ":optimization_guide_library", 19 ":keystone_registration_framework",
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 9abf8db..fb27026 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--- a/components/network_time/network_time_tracker.cc 6--- components/network_time/network_time_tracker.cc.orig
7+++ b/components/network_time/network_time_tracker.cc 7+++ components/network_time/network_time_tracker.cc
8@@ -273,7 +273,7 @@ void NetworkTimeTracker::UpdateNetworkTi 8@@ -277,7 +277,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 824e4e5..a4e7e8b 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,6 +1,26 @@
1--- a/chrome/browser/resources/settings/privacy_page/privacy_page.html 1--- chrome/browser/privacy_sandbox/privacy_sandbox_settings.cc.orig
2+++ b/chrome/browser/resources/settings/privacy_page/privacy_page.html 2+++ chrome/browser/privacy_sandbox/privacy_sandbox_settings.cc
3@@ -80,19 +80,6 @@ 3@@ -378,7 +378,7 @@ std::vector<GURL> PrivacySandboxSettings
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 @@
4 sub-label="$i18n{permissionsPageDescription}" 24 sub-label="$i18n{permissionsPageDescription}"
5 on-click="onPermissionsPageClick_" 25 on-click="onPermissionsPageClick_"
6 role-description="$i18n{subpageArrowRoleDescription}"></cr-link-row> 26 role-description="$i18n{subpageArrowRoleDescription}"></cr-link-row>
@@ -9,7 +29,7 @@
9- class="hr" 29- class="hr"
10- label="$i18n{privacySandboxTitle}" 30- label="$i18n{privacySandboxTitle}"
11- sub-label="[[computePrivacySandboxSublabel_( 31- sub-label="[[computePrivacySandboxSublabel_(
12- prefs.privacy_sandbox.*)]]" 32- prefs.privacy_sandbox.apis_enabled.*)]]"
13- on-click="onPrivacySandboxClick_" 33- on-click="onPrivacySandboxClick_"
14- external 34- external
15- role-description="$i18n{subpageArrowRoleDescription}"> 35- role-description="$i18n{subpageArrowRoleDescription}">
@@ -20,48 +40,14 @@
20 </div> 40 </div>
21 41
22 <if expr="use_nss_certs"> 42 <if expr="use_nss_certs">
23--- a/components/privacy_sandbox/privacy_sandbox_prefs.cc 43--- components/privacy_sandbox/privacy_sandbox_prefs.cc.orig
24+++ b/components/privacy_sandbox/privacy_sandbox_prefs.cc 44+++ components/privacy_sandbox/privacy_sandbox_prefs.cc
25@@ -48,7 +48,7 @@ namespace privacy_sandbox { 45@@ -31,7 +31,7 @@ namespace privacy_sandbox {
26 46
27 void RegisterProfilePrefs(PrefRegistrySimple* registry) { 47 void RegisterProfilePrefs(PrefRegistrySimple* registry) {
28 registry->RegisterBooleanPref( 48 registry->RegisterBooleanPref(
29- prefs::kPrivacySandboxApisEnabled, true, 49- prefs::kPrivacySandboxApisEnabled, true,
30+ prefs::kPrivacySandboxApisEnabled, false, 50+ prefs::kPrivacySandboxApisEnabled, false,
31 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 51 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
32 registry->RegisterBooleanPref(prefs::kPrivacySandboxApisEnabledV2, false);
33 registry->RegisterBooleanPref( 52 registry->RegisterBooleanPref(
34--- a/components/privacy_sandbox/privacy_sandbox_settings.cc 53 prefs::kPrivacySandboxManuallyControlled, false,
35+++ b/components/privacy_sandbox/privacy_sandbox_settings.cc
36@@ -290,31 +290,10 @@ std::vector<GURL> PrivacySandboxSettings
37 }
38
39 bool PrivacySandboxSettings::IsPrivacySandboxEnabled() const {
40- // Which preference is consulted is dependent on whether release 3 of the
41- // settings is available.
42- if (base::FeatureList::IsEnabled(privacy_sandbox::kPrivacySandboxSettings3)) {
43- // For Privacy Sandbox Settings 3, APIs are disabled in incognito.
44- if (incognito_profile_)
45 return false;
46-
47- // The V2 pref was introduced with the 3rd Privacy Sandbox release.
48- return pref_service_->GetBoolean(prefs::kPrivacySandboxApisEnabledV2);
49- }
50-
51- return pref_service_->GetBoolean(prefs::kPrivacySandboxApisEnabled);
52 }
53
54 void PrivacySandboxSettings::SetPrivacySandboxEnabled(bool enabled) {
55- pref_service_->SetBoolean(prefs::kPrivacySandboxManuallyControlled, true);
56-
57- // Only apply the decision to the appropriate preference. Confirmation logic
58- // DCHECKS that the user has not been able to enable the V2 preference
59- // without seeing a dialog.
60- if (base::FeatureList::IsEnabled(privacy_sandbox::kPrivacySandboxSettings3)) {
61- pref_service_->SetBoolean(prefs::kPrivacySandboxApisEnabledV2, enabled);
62- } else {
63- pref_service_->SetBoolean(prefs::kPrivacySandboxApisEnabled, enabled);
64- }
65 }
66
67 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 279269e..dee938a 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--- a/chrome/browser/profiles/profile_avatar_downloader.cc 3--- chrome/browser/profiles/profile_avatar_downloader.cc.orig
4+++ b/chrome/browser/profiles/profile_avatar_downloader.cc 4+++ 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 7993f1a..b2b6081 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--- a/chrome/browser/ui/chrome_pages.cc 3--- chrome/browser/ui/chrome_pages.cc.orig
4+++ b/chrome/browser/ui/chrome_pages.cc 4+++ chrome/browser/ui/chrome_pages.cc
5@@ -509,32 +509,6 @@ GURL GetOSSettingsUrl(const std::string& 5@@ -480,32 +480,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 5edf394..612ec7d 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--- a/chrome/browser/plugins/plugins_resource_service.cc 3--- chrome/browser/plugins/plugins_resource_service.cc.orig
4+++ b/chrome/browser/plugins/plugins_resource_service.cc 4+++ 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 BUILDFLAG(IS_WIN) 14 #if defined(OS_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,8 +21,37 @@
21 } 21 }
22 22
23 } // namespace 23 } // namespace
24--- a/rlz/lib/financial_ping.cc 24--- components/safe_browsing/content/browser/client_side_model_loader.cc.orig
25+++ b/rlz/lib/financial_ping.cc 25+++ components/safe_browsing/content/browser/client_side_model_loader.cc
26@@ -61,8 +61,6 @@ std::string ReadFileIntoString(base::Fil
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
26@@ -338,7 +338,7 @@ FinancialPing::PingResponse FinancialPin 55@@ -338,7 +338,7 @@ FinancialPing::PingResponse FinancialPin
27 56
28 // Open network connection. 57 // Open network connection.
@@ -41,8 +70,8 @@
41 70
42 // Use a waitable event to cause this function to block, to match the 71 // Use a waitable event to cause this function to block, to match the
43 // wininet implementation. 72 // wininet implementation.
44--- a/rlz/lib/lib_values.cc 73--- rlz/lib/lib_values.cc.orig
45+++ b/rlz/lib/lib_values.cc 74+++ rlz/lib/lib_values.cc
46@@ -40,7 +40,6 @@ const char kSetDccResponseVariable[] = " 75@@ -40,7 +40,6 @@ const char kSetDccResponseVariable[] = "
47 // 76 //
48 77
@@ -51,8 +80,8 @@
51 const int kFinancialPort = 443; 80 const int kFinancialPort = 443;
52 81
53 // Ping times in 100-nanosecond intervals. 82 // Ping times in 100-nanosecond intervals.
54--- a/rlz/lib/lib_values.h 83--- rlz/lib/lib_values.h.orig
55+++ b/rlz/lib/lib_values.h 84+++ rlz/lib/lib_values.h
56@@ -72,7 +72,6 @@ extern const char kSetDccResponseVariabl 85@@ -72,7 +72,6 @@ extern const char kSetDccResponseVariabl
57 // 86 //
58 87
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 db0ac15..9416c17 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,7 +1,7 @@
1# Disables WebRTC log uploading to Google 1# Disables WebRTC log uploading to Google
2 2
3--- a/chrome/browser/media/webrtc/webrtc_log_uploader.cc 3--- chrome/browser/media/webrtc/webrtc_log_uploader.cc.orig
4+++ b/chrome/browser/media/webrtc/webrtc_log_uploader.cc 4+++ chrome/browser/media/webrtc/webrtc_log_uploader.cc
5@@ -127,28 +127,11 @@ void WebRtcLogUploader::LoggingStoppedDo 5@@ -127,28 +127,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());
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 5b157e3..8259c4d 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--- a/chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc 3--- chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc.orig
4+++ b/chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc 4+++ chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc
5@@ -555,10 +555,6 @@ std::vector<url::Origin> ChromeContentBr 5@@ -655,10 +655,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--- a/chrome/browser/extensions/chrome_content_verifier_delegate.cc 16--- chrome/browser/extensions/chrome_content_verifier_delegate.cc.orig
17+++ b/chrome/browser/extensions/chrome_content_verifier_delegate.cc 17+++ chrome/browser/extensions/chrome_content_verifier_delegate.cc
18@@ -289,17 +289,7 @@ bool ChromeContentVerifierDelegate::IsFr 18@@ -288,17 +288,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--- a/chrome/browser/extensions/extension_migrator.cc 37--- chrome/browser/extensions/extension_migrator.cc.orig
38+++ b/chrome/browser/extensions/extension_migrator.cc 38+++ 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,26 +56,26 @@
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--- a/chrome/browser/extensions/extension_migrator.h 59--- chrome/browser/extensions/extension_migrator.h.orig
60+++ b/chrome/browser/extensions/extension_migrator.h 60+++ chrome/browser/extensions/extension_migrator.h
61@@ -9,6 +9,7 @@ 61@@ -9,6 +9,7 @@
62 62
63 #include "base/memory/raw_ptr.h" 63 #include "base/macros.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 raw_ptr<Profile> profile_; 70 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--- a/extensions/browser/updater/extension_downloader.cc 77--- extensions/browser/updater/extension_downloader.cc.orig
78+++ b/extensions/browser/updater/extension_downloader.cc 78+++ extensions/browser/updater/extension_downloader.cc
79@@ -93,27 +93,18 @@ const char kNotFromWebstoreInstallSource 79@@ -93,27 +93,18 @@ const char kNotFromWebstoreInstallSource
80 const char kDefaultInstallSource[] = ""; 80 const char kDefaultInstallSource[] = "";
81 const char kReinstallInstallSource[] = "reinstall"; 81 const char kReinstallInstallSource[] = "reinstall";
@@ -106,7 +106,7 @@
106 106
107 bool ShouldRetryRequest(const network::SimpleURLLoader* loader) { 107 bool ShouldRetryRequest(const network::SimpleURLLoader* loader) {
108 DCHECK(loader); 108 DCHECK(loader);
109@@ -326,12 +317,6 @@ void ExtensionDownloader::DoStartAllPend 109@@ -309,12 +300,6 @@ void ExtensionDownloader::DoStartAllPend
110 ReportStats(); 110 ReportStats();
111 url_stats_ = URLStats(); 111 url_stats_ = URLStats();
112 112
@@ -119,18 +119,7 @@
119 fetches_preparing_.clear(); 119 fetches_preparing_.clear();
120 } 120 }
121 121
122@@ -353,9 +338,7 @@ void ExtensionDownloader::SetBackoffPoli 122@@ -353,11 +338,6 @@ bool ExtensionDownloader::AddExtensionDa
123
124 void ExtensionDownloader::UpdateURLStats(const GURL& update_url,
125 Manifest::Type extension_type) {
126- if (update_url.DomainIs(kGoogleDotCom)) {
127- url_stats_.google_url_count++;
128- } else if (update_url.is_empty()) {
129+ if (update_url.is_empty()) {
130 url_stats_.no_url_count++;
131 } else {
132 url_stats_.other_url_count++;
133@@ -395,11 +378,6 @@ bool ExtensionDownloader::AddExtensionDa
134 return false; 123 return false;
135 } 124 }
136 125
@@ -140,18 +129,24 @@
140- update_url = extension_urls::GetWebstoreUpdateUrl(); 129- update_url = extension_urls::GetWebstoreUpdateUrl();
141- 130-
142 // Skip extensions with empty IDs. 131 // Skip extensions with empty IDs.
143 if (task.id.empty()) { 132 if (id.empty()) {
144 DLOG(WARNING) << "Found extension with empty ID"; 133 DLOG(WARNING) << "Found extension with empty ID";
145@@ -411,7 +389,7 @@ bool ExtensionDownloader::AddExtensionDa 134@@ -366,12 +346,10 @@ bool ExtensionDownloader::AddExtensionDa
146 UpdateURLStats(update_url, task.type); 135 return false;
147 if (update_url.is_empty()) { 136 }
137
138- if (update_url.DomainIs(kGoogleDotCom)) {
139- url_stats_.google_url_count++;
140- } else if (update_url.is_empty()) {
141+ if (update_url.is_empty()) {
142 url_stats_.no_url_count++;
148 // Fill in default update URL. 143 // Fill in default update URL.
149- update_url = extension_urls::GetWebstoreUpdateUrl(); 144- update_url = extension_urls::GetWebstoreUpdateUrl();
150+ update_url = GURL("chrome://blank/"); 145+ update_url = GURL("chrome://blank/");
146 } else {
147 url_stats_.other_url_count++;
151 } 148 }
152 149@@ -845,20 +823,6 @@ void ExtensionDownloader::HandleManifest
153 DCHECK(!update_url.is_empty());
154@@ -864,20 +842,6 @@ void ExtensionDownloader::HandleManifest
155 update->info); 150 update->info);
156 } 151 }
157 152
@@ -172,7 +167,7 @@
172 NotifyExtensionsDownloadStageChanged( 167 NotifyExtensionsDownloadStageChanged(
173 no_updates, ExtensionDownloaderDelegate::Stage::FINISHED); 168 no_updates, ExtensionDownloaderDelegate::Stage::FINISHED);
174 NotifyExtensionsDownloadFailed( 169 NotifyExtensionsDownloadFailed(
175@@ -1436,11 +1400,7 @@ bool ExtensionDownloader::IterateFetchCr 170@@ -1417,11 +1381,7 @@ bool ExtensionDownloader::IterateFetchCr
176 // fetch. 171 // fetch.
177 switch (fetch->credentials) { 172 switch (fetch->credentials) {
178 case ExtensionFetch::CREDENTIALS_NONE: 173 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 c6cf1a7..4ee53be 100644
--- a/www/chromium-uc/patches/core/ungoogled-chromium/doh-changes.patch
+++ b/www/chromium-uc/patches/core/ungoogled-chromium/doh-changes.patch
@@ -1,11 +1,11 @@
1--- a/chrome/common/chrome_features.cc 1--- chrome/common/chrome_features.cc.orig
2+++ b/chrome/common/chrome_features.cc 2+++ chrome/common/chrome_features.cc
3@@ -329,12 +329,7 @@ const base::Feature kDesktopPWAsWebAppSe 3@@ -323,12 +323,7 @@ const base::Feature kDesktopPWAsWebBundl
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 BUILDFLAG(IS_WIN) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || \ 7-#if defined(OS_WIN) || defined(OS_CHROMEOS) || defined(OS_MAC) || \
8- BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) 8- defined(OS_ANDROID) || defined(OS_LINUX) || defined(OS_BSD)
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
@@ -13,9 +13,9 @@
13 }; 13 };
14 14
15 // Provides a mechanism to remove providers from the dropdown list in the 15 // Provides a mechanism to remove providers from the dropdown list in the
16--- a/net/dns/public/doh_provider_entry.cc 16--- net/dns/public/doh_provider_entry.cc.orig
17+++ b/net/dns/public/doh_provider_entry.cc 17+++ net/dns/public/doh_provider_entry.cc
18@@ -125,24 +125,6 @@ const DohProviderEntry::List& DohProvide 18@@ -117,24 +117,6 @@ const DohProviderEntry::List& DohProvide
19 /*privacy_policy=*/"https://dns.sb/privacy/", 19 /*privacy_policy=*/"https://dns.sb/privacy/",
20 /*display_globally=*/false, /*display_countries=*/{"EE", "DE"}, 20 /*display_globally=*/false, /*display_countries=*/{"EE", "DE"},
21 LoggingLevel::kNormal), 21 LoggingLevel::kNormal),
@@ -40,14 +40,14 @@
40 new DohProviderEntry("Iij", DohProviderIdForHistogram::kIij, 40 new DohProviderEntry("Iij", DohProviderIdForHistogram::kIij,
41 {} /* ip_strs */, {} /* dns_over_tls_hostnames */, 41 {} /* ip_strs */, {} /* dns_over_tls_hostnames */,
42 "https://public.dns.iij.jp/dns-query", 42 "https://public.dns.iij.jp/dns-query",
43--- a/services/network/public/cpp/features.cc 43--- services/network/public/cpp/features.cc.orig
44+++ b/services/network/public/cpp/features.cc 44+++ services/network/public/cpp/features.cc
45@@ -92,12 +92,7 @@ const base::Feature kSplitAuthCacheByNet 45@@ -114,12 +114,7 @@ const base::Feature kSplitAuthCacheByNet
46 // Enable usage of hardcoded DoH upgrade mapping for use in automatic mode. 46 // Enable usage of hardcoded DoH upgrade mapping for use in automatic mode.
47 const base::Feature kDnsOverHttpsUpgrade { 47 const base::Feature kDnsOverHttpsUpgrade {
48 "DnsOverHttpsUpgrade", 48 "DnsOverHttpsUpgrade",
49-#if BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_MAC) || \ 49-#if BUILDFLAG(IS_CHROMEOS_ASH) || defined(OS_MAC) || defined(OS_ANDROID) || \
50- BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_WIN) 50- defined(OS_WIN)
51- base::FEATURE_ENABLED_BY_DEFAULT 51- base::FEATURE_ENABLED_BY_DEFAULT
52-#else 52-#else
53 base::FEATURE_DISABLED_BY_DEFAULT 53 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 6975f20..16b7351 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--- a/chrome/test/chromedriver/BUILD.gn 4--- chrome/test/chromedriver/BUILD.gn.orig
5+++ b/chrome/test/chromedriver/BUILD.gn 5+++ chrome/test/chromedriver/BUILD.gn
6@@ -314,11 +314,7 @@ source_set("lib") { 6@@ -311,11 +311,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@@ -340,16 +336,6 @@ executable("$chromedriver_output") { 18@@ -337,16 +333,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--- a/third_party/devtools-frontend/src/BUILD.gn 35--- third_party/devtools-frontend/src/BUILD.gn.orig
36+++ b/third_party/devtools-frontend/src/BUILD.gn 36+++ third_party/devtools-frontend/src/BUILD.gn
37@@ -13,7 +13,6 @@ import("./third_party/blink/public/publi 37@@ -136,7 +136,6 @@ foreach(module_file, non_autostart_non_r
38
39 devtools_frontend_resources_deps = [ 38 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
new file mode 100644
index 0000000..f86694a
--- /dev/null
+++ b/www/chromium-uc/patches/core/ungoogled-chromium/fix-building-without-enabling-reporting.patch
@@ -0,0 +1,215 @@
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 4e834c7..17b383f 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--- a/chrome/browser/ui/sync/one_click_signin_links_delegate_impl.cc 3--- chrome/browser/ui/sync/one_click_signin_links_delegate_impl.cc.orig
4+++ b/chrome/browser/ui/sync/one_click_signin_links_delegate_impl.cc 4+++ 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--- a/chrome/browser/ui/webui/signin/inline_login_handler_impl.cc 15--- chrome/browser/ui/webui/signin/inline_login_handler_impl.cc.orig
16+++ b/chrome/browser/ui/webui/signin/inline_login_handler_impl.cc 16+++ chrome/browser/ui/webui/signin/inline_login_handler_impl.cc
17@@ -342,6 +342,7 @@ void InlineSigninHelper::OnClientOAuthSu 17@@ -360,6 +360,7 @@ void InlineSigninHelper::OnClientOAuthSu
18 void InlineSigninHelper::OnClientOAuthSuccessAndBrowserOpened(
19 const ClientOAuthResult& result, 18 const ClientOAuthResult& result,
20 Profile* /*profile*/) { 19 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@@ -418,6 +419,7 @@ void InlineSigninHelper::OnClientOAuthSu 25@@ -436,6 +437,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 f8ea612..d71a532 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,8 @@
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--- a/chrome/browser/BUILD.gn 3--- chrome/browser/BUILD.gn.orig
4+++ b/chrome/browser/BUILD.gn 4+++ chrome/browser/BUILD.gn
5@@ -1927,7 +1927,6 @@ static_library("browser") { 5@@ -1953,7 +1953,6 @@ static_library("browser") {
6 "//chrome/browser/net:probe_message_proto", 6 "//chrome/browser/net:probe_message_proto",
7 "//chrome/browser/new_tab_page/modules/drive:mojo_bindings", 7 "//chrome/browser/new_tab_page/modules/drive:mojo_bindings",
8 "//chrome/browser/new_tab_page/modules/photos:mojo_bindings", 8 "//chrome/browser/new_tab_page/modules/photos:mojo_bindings",
@@ -10,7 +10,7 @@
10 "//chrome/browser/new_tab_page/modules/task_module:mojo_bindings", 10 "//chrome/browser/new_tab_page/modules/task_module:mojo_bindings",
11 "//chrome/browser/notifications", 11 "//chrome/browser/notifications",
12 "//chrome/browser/notifications/scheduler:factory", 12 "//chrome/browser/notifications/scheduler:factory",
13@@ -3739,9 +3738,6 @@ static_library("browser") { 13@@ -3726,9 +3725,6 @@ static_library("browser") {
14 "download/offline_item_model_manager_factory.h", 14 "download/offline_item_model_manager_factory.h",
15 "enterprise/connectors/analysis/analysis_service_settings.cc", 15 "enterprise/connectors/analysis/analysis_service_settings.cc",
16 "enterprise/connectors/analysis/analysis_service_settings.h", 16 "enterprise/connectors/analysis/analysis_service_settings.h",
@@ -20,7 +20,7 @@
20 "enterprise/connectors/analysis/content_analysis_dialog.cc", 20 "enterprise/connectors/analysis/content_analysis_dialog.cc",
21 "enterprise/connectors/analysis/content_analysis_dialog.h", 21 "enterprise/connectors/analysis/content_analysis_dialog.h",
22 "enterprise/connectors/analysis/content_analysis_downloads_delegate.cc", 22 "enterprise/connectors/analysis/content_analysis_downloads_delegate.cc",
23@@ -3988,10 +3984,6 @@ static_library("browser") { 23@@ -3978,10 +3974,6 @@ static_library("browser") {
24 "new_tab_page/modules/photos/photos_service.h", 24 "new_tab_page/modules/photos/photos_service.h",
25 "new_tab_page/modules/photos/photos_service_factory.cc", 25 "new_tab_page/modules/photos/photos_service_factory.cc",
26 "new_tab_page/modules/photos/photos_service_factory.h", 26 "new_tab_page/modules/photos/photos_service_factory.h",
@@ -31,7 +31,7 @@
31 "new_tab_page/modules/task_module/task_module_handler.cc", 31 "new_tab_page/modules/task_module/task_module_handler.cc",
32 "new_tab_page/modules/task_module/task_module_handler.h", 32 "new_tab_page/modules/task_module/task_module_handler.h",
33 "new_tab_page/modules/task_module/task_module_service.cc", 33 "new_tab_page/modules/task_module/task_module_service.cc",
34@@ -7285,9 +7277,14 @@ static_library("browser") { 34@@ -7012,9 +7004,14 @@ static_library("browser") {
35 "//components/safe_browsing/content/browser:safe_browsing_blocking_page", 35 "//components/safe_browsing/content/browser:safe_browsing_blocking_page",
36 "//components/safe_browsing/content/browser/download:download_stats", 36 "//components/safe_browsing/content/browser/download:download_stats",
37 "//components/safe_browsing/content/common:file_type_policies", 37 "//components/safe_browsing/content/common:file_type_policies",
@@ -47,8 +47,8 @@
47 47
48 if (!is_fuchsia) { 48 if (!is_fuchsia) {
49 sources += [ 49 sources += [
50--- a/chrome/browser/accuracy_tips/accuracy_service_factory.cc 50--- chrome/browser/accuracy_tips/accuracy_service_factory.cc.orig
51+++ b/chrome/browser/accuracy_tips/accuracy_service_factory.cc 51+++ chrome/browser/accuracy_tips/accuracy_service_factory.cc
52@@ -48,10 +48,7 @@ KeyedService* AccuracyServiceFactory::Bu 52@@ -48,10 +48,7 @@ KeyedService* AccuracyServiceFactory::Bu
53 content::BrowserContext* browser_context) const { 53 content::BrowserContext* browser_context) const {
54 DCHECK(base::FeatureList::IsEnabled(safe_browsing::kAccuracyTipsFeature)); 54 DCHECK(base::FeatureList::IsEnabled(safe_browsing::kAccuracyTipsFeature));
@@ -61,9 +61,9 @@
61 auto* history_service = HistoryServiceFactory::GetForProfile( 61 auto* history_service = HistoryServiceFactory::GetForProfile(
62 profile, ServiceAccessType::IMPLICIT_ACCESS); 62 profile, ServiceAccessType::IMPLICIT_ACCESS);
63 auto delegate = std::make_unique<AccuracyServiceDelegate>(profile); 63 auto delegate = std::make_unique<AccuracyServiceDelegate>(profile);
64--- a/chrome/browser/chrome_content_browser_client.cc 64--- chrome/browser/chrome_content_browser_client.cc.orig
65+++ b/chrome/browser/chrome_content_browser_client.cc 65+++ chrome/browser/chrome_content_browser_client.cc
66@@ -4285,11 +4285,13 @@ ChromeContentBrowserClient::CreateThrott 66@@ -4229,11 +4229,13 @@ ChromeContentBrowserClient::CreateThrott
67 &throttles); 67 &throttles);
68 #endif 68 #endif
69 69
@@ -77,7 +77,7 @@
77 77
78 // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch 78 // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
79 // of lacros-chrome is complete. 79 // of lacros-chrome is complete.
80@@ -5689,26 +5691,7 @@ ChromeContentBrowserClient::GetSafeBrows 80@@ -5632,26 +5634,7 @@ ChromeContentBrowserClient::GetSafeBrows
81 const std::vector<std::string>& allowlist_domains) { 81 const std::vector<std::string>& allowlist_domains) {
82 DCHECK_CURRENTLY_ON(BrowserThread::IO); 82 DCHECK_CURRENTLY_ON(BrowserThread::IO);
83 83
@@ -105,7 +105,7 @@
105 } 105 }
106 106
107 safe_browsing::RealTimeUrlLookupServiceBase* 107 safe_browsing::RealTimeUrlLookupServiceBase*
108@@ -5729,11 +5712,6 @@ ChromeContentBrowserClient::GetUrlLookup 108@@ -5672,11 +5655,6 @@ ChromeContentBrowserClient::GetUrlLookup
109 GetForProfile(profile); 109 GetForProfile(profile);
110 } 110 }
111 #endif 111 #endif
@@ -117,9 +117,9 @@
117 return nullptr; 117 return nullptr;
118 } 118 }
119 119
120--- a/chrome/browser/chrome_content_browser_client_receiver_bindings.cc 120--- chrome/browser/chrome_content_browser_client_receiver_bindings.cc.orig
121+++ b/chrome/browser/chrome_content_browser_client_receiver_bindings.cc 121+++ chrome/browser/chrome_content_browser_client_receiver_bindings.cc
122@@ -143,45 +143,6 @@ void MaybeCreateSafeBrowsingForRenderer( 122@@ -139,45 +139,6 @@ void MaybeCreateSafeBrowsingForRenderer(
123 const std::vector<std::string>& allowlist_domains)> 123 const std::vector<std::string>& allowlist_domains)>
124 get_checker_delegate, 124 get_checker_delegate,
125 mojo::PendingReceiver<safe_browsing::mojom::SafeBrowsing> receiver) { 125 mojo::PendingReceiver<safe_browsing::mojom::SafeBrowsing> receiver) {
@@ -165,9 +165,9 @@
165 } 165 }
166 166
167 // BadgeManager is not used for Android. 167 // BadgeManager is not used for Android.
168--- a/chrome/browser/component_updater/chrome_client_side_phishing_component_installer.cc 168--- chrome/browser/component_updater/client_side_phishing_component_installer.cc.orig
169+++ b/chrome/browser/component_updater/chrome_client_side_phishing_component_installer.cc 169+++ chrome/browser/component_updater/client_side_phishing_component_installer.cc
170@@ -30,20 +30,6 @@ namespace { 170@@ -36,20 +36,6 @@ const char kClientSidePhishingManifestNa
171 171
172 void LoadFromDisk(const base::FilePath& pb_path, 172 void LoadFromDisk(const base::FilePath& pb_path,
173 const base::FilePath& visual_tflite_model_path) { 173 const base::FilePath& visual_tflite_model_path) {
@@ -187,9 +187,9 @@
187- ->PopulateFromDynamicUpdate(binary_pb, std::move(visual_tflite_model)); 187- ->PopulateFromDynamicUpdate(binary_pb, std::move(visual_tflite_model));
188 } 188 }
189 189
190 void PopulateModelFromFiles(const base::FilePath& install_dir) { 190 base::FilePath GetInstalledProtoPath(const base::FilePath& base) {
191@@ -57,9 +43,6 @@ void PopulateModelFromFiles(const base:: 191@@ -123,9 +109,6 @@ update_client::InstallerAttributes
192 update_client::InstallerAttributes GetInstallerAttributes() { 192 ClientSidePhishingComponentInstallerPolicy::GetInstallerAttributes() const {
193 update_client::InstallerAttributes attributes; 193 update_client::InstallerAttributes attributes;
194 194
195- // Pass the tag parameter to the installer as the "tag" attribute; it will 195- // Pass the tag parameter to the installer as the "tag" attribute; it will
@@ -198,9 +198,9 @@
198 return attributes; 198 return attributes;
199 } 199 }
200 200
201--- a/chrome/browser/download/chrome_download_manager_delegate.cc 201--- chrome/browser/download/chrome_download_manager_delegate.cc.orig
202+++ b/chrome/browser/download/chrome_download_manager_delegate.cc 202+++ chrome/browser/download/chrome_download_manager_delegate.cc
203@@ -130,7 +130,6 @@ using content::DownloadManager; 203@@ -135,7 +135,6 @@ using content::DownloadManager;
204 using download::DownloadItem; 204 using download::DownloadItem;
205 using download::DownloadPathReservationTracker; 205 using download::DownloadPathReservationTracker;
206 using download::PathValidationResult; 206 using download::PathValidationResult;
@@ -208,7 +208,7 @@
208 using safe_browsing::DownloadProtectionService; 208 using safe_browsing::DownloadProtectionService;
209 using ConnectionType = net::NetworkChangeNotifier::ConnectionType; 209 using ConnectionType = net::NetworkChangeNotifier::ConnectionType;
210 210
211@@ -1527,8 +1526,6 @@ void ChromeDownloadManagerDelegate::OnDo 211@@ -1517,8 +1516,6 @@ void ChromeDownloadManagerDelegate::OnDo
212 if (item->GetOriginalMimeType() == "application/x-x509-user-cert") 212 if (item->GetOriginalMimeType() == "application/x-x509-user-cert")
213 DownloadItemModel(item).SetShouldPreferOpeningInBrowser(true); 213 DownloadItemModel(item).SetShouldPreferOpeningInBrowser(true);
214 #endif 214 #endif
@@ -217,7 +217,7 @@
217 } 217 }
218 if (ShouldBlockFile(target_info->danger_type, item)) { 218 if (ShouldBlockFile(target_info->danger_type, item)) {
219 MaybeReportDangerousDownloadBlocked( 219 MaybeReportDangerousDownloadBlocked(
220@@ -1680,7 +1677,6 @@ void ChromeDownloadManagerDelegate::Mayb 220@@ -1670,7 +1667,6 @@ void ChromeDownloadManagerDelegate::Mayb
221 service->MaybeSendDangerousDownloadOpenedReport(download, 221 service->MaybeSendDangerousDownloadOpenedReport(download,
222 show_download_in_folder); 222 show_download_in_folder);
223 } 223 }
@@ -225,7 +225,7 @@
225 if (!download->GetAutoOpened()) { 225 if (!download->GetAutoOpened()) {
226 download::DownloadContent download_content = 226 download::DownloadContent download_content =
227 download::DownloadContentFromMimeType(download->GetMimeType(), false); 227 download::DownloadContentFromMimeType(download->GetMimeType(), false);
228@@ -1688,6 +1684,7 @@ void ChromeDownloadManagerDelegate::Mayb 228@@ -1678,6 +1674,7 @@ void ChromeDownloadManagerDelegate::Mayb
229 download->GetDangerType(), download_content, base::Time::Now(), 229 download->GetDangerType(), download_content, base::Time::Now(),
230 download->GetEndTime(), show_download_in_folder); 230 download->GetEndTime(), show_download_in_folder);
231 } 231 }
@@ -233,7 +233,7 @@
233 } 233 }
234 234
235 void ChromeDownloadManagerDelegate::CheckDownloadAllowed( 235 void ChromeDownloadManagerDelegate::CheckDownloadAllowed(
236@@ -1764,30 +1761,6 @@ void ChromeDownloadManagerDelegate::Chec 236@@ -1754,30 +1751,6 @@ void ChromeDownloadManagerDelegate::Chec
237 std::move(callback).Run(true); 237 std::move(callback).Run(true);
238 return; 238 return;
239 } 239 }
@@ -264,17 +264,17 @@
264 #endif 264 #endif
265 std::move(callback).Run(true); 265 std::move(callback).Run(true);
266 } 266 }
267--- a/chrome/browser/download/download_stats.cc 267--- chrome/browser/download/download_stats.cc.orig
268+++ b/chrome/browser/download/download_stats.cc 268+++ chrome/browser/download/download_stats.cc
269@@ -9,6 +9,7 @@ 269@@ -8,6 +8,7 @@
270 #include "base/metrics/user_metrics.h"
270 #include "base/notreached.h" 271 #include "base/notreached.h"
271 #include "build/build_config.h"
272 #include "components/profile_metrics/browser_profile_type.h" 272 #include "components/profile_metrics/browser_profile_type.h"
273+#include "components/safe_browsing/buildflags.h" 273+#include "components/safe_browsing/buildflags.h"
274 #include "components/safe_browsing/content/browser/download/download_stats.h" 274 #include "components/safe_browsing/content/browser/download/download_stats.h"
275 275
276 void RecordDownloadCount(ChromeDownloadCountTypes type) { 276 void RecordDownloadCount(ChromeDownloadCountTypes type) {
277@@ -28,8 +29,10 @@ void RecordDangerousDownloadWarningShown 277@@ -27,8 +28,10 @@ void RecordDangerousDownloadWarningShown
278 bool has_user_gesture) { 278 bool has_user_gesture) {
279 base::UmaHistogramEnumeration("Download.ShowedDownloadWarning", danger_type, 279 base::UmaHistogramEnumeration("Download.ShowedDownloadWarning", danger_type,
280 download::DOWNLOAD_DANGER_TYPE_MAX); 280 download::DOWNLOAD_DANGER_TYPE_MAX);
@@ -285,24 +285,23 @@
285 } 285 }
286 286
287 void RecordOpenedDangerousConfirmDialog( 287 void RecordOpenedDangerousConfirmDialog(
288--- a/chrome/browser/download/download_target_determiner.cc 288--- chrome/browser/download/download_target_determiner.cc.orig
289+++ b/chrome/browser/download/download_target_determiner.cc 289+++ chrome/browser/download/download_target_determiner.cc
290@@ -869,12 +869,14 @@ void DownloadTargetDeterminer::CheckVisi 290@@ -872,11 +872,13 @@ void DownloadTargetDeterminer::CheckVisi
291 bool visited_referrer_before) { 291 bool visited_referrer_before) {
292 DCHECK_CURRENTLY_ON(BrowserThread::UI); 292 DCHECK_CURRENTLY_ON(BrowserThread::UI);
293 DCHECK_EQ(STATE_DETERMINE_INTERMEDIATE_PATH, next_state_); 293 DCHECK_EQ(STATE_DETERMINE_INTERMEDIATE_PATH, next_state_);
294+#if BUILDFLAG(FULL_SAFE_BROWSING) 294+#if BUILDFLAG(FULL_SAFE_BROWSING)
295 safe_browsing::RecordDownloadFileTypeAttributes( 295 safe_browsing::RecordDownloadFileTypeAttributes(
296 safe_browsing::FileTypePolicies::GetInstance()->GetFileDangerLevel( 296 safe_browsing::FileTypePolicies::GetInstance()->GetFileDangerLevel(
297 virtual_path_.BaseName(), download_->GetURL(), 297 virtual_path_.BaseName()),
298 GetProfile()->GetPrefs()),
299 download_->HasUserGesture(), visited_referrer_before, 298 download_->HasUserGesture(), visited_referrer_before,
300 GetLastDownloadBypassTimestamp()); 299 GetLastDownloadBypassTimestamp());
301+#endif // BUILDFLAG(FULL_SAFE_BROWSING) 300+#endif // BUILDFLAG(FULL_SAFE_BROWSING)
302 danger_level_ = GetDangerLevel( 301 danger_level_ = GetDangerLevel(
303 visited_referrer_before ? VISITED_REFERRER : NO_VISITS_TO_REFERRER); 302 visited_referrer_before ? VISITED_REFERRER : NO_VISITS_TO_REFERRER);
304 if (danger_level_ != DownloadFileType::NOT_DANGEROUS && 303 if (danger_level_ != DownloadFileType::NOT_DANGEROUS &&
305@@ -1109,6 +1111,7 @@ DownloadFileType::DangerLevel DownloadTa 304@@ -1111,6 +1113,7 @@ DownloadFileType::DangerLevel DownloadTa
306 305
307 absl::optional<base::Time> 306 absl::optional<base::Time>
308 DownloadTargetDeterminer::GetLastDownloadBypassTimestamp() const { 307 DownloadTargetDeterminer::GetLastDownloadBypassTimestamp() const {
@@ -310,7 +309,7 @@
310 safe_browsing::SafeBrowsingMetricsCollector* metrics_collector = 309 safe_browsing::SafeBrowsingMetricsCollector* metrics_collector =
311 safe_browsing::SafeBrowsingMetricsCollectorFactory::GetForProfile( 310 safe_browsing::SafeBrowsingMetricsCollectorFactory::GetForProfile(
312 GetProfile()); 311 GetProfile());
313@@ -1117,6 +1120,9 @@ DownloadTargetDeterminer::GetLastDownloa 312@@ -1119,6 +1122,9 @@ DownloadTargetDeterminer::GetLastDownloa
314 safe_browsing::SafeBrowsingMetricsCollector:: 313 safe_browsing::SafeBrowsingMetricsCollector::
315 EventType::DANGEROUS_DOWNLOAD_BYPASS) 314 EventType::DANGEROUS_DOWNLOAD_BYPASS)
316 : absl::nullopt; 315 : absl::nullopt;
@@ -320,19 +319,19 @@
320 } 319 }
321 320
322 void DownloadTargetDeterminer::OnDownloadDestroyed( 321 void DownloadTargetDeterminer::OnDownloadDestroyed(
323--- a/chrome/browser/enterprise/connectors/analysis/content_analysis_delegate.cc 322--- chrome/browser/enterprise/connectors/analysis/content_analysis_delegate.cc.orig
324+++ b/chrome/browser/enterprise/connectors/analysis/content_analysis_delegate.cc 323+++ chrome/browser/enterprise/connectors/analysis/content_analysis_delegate.cc
325@@ -33,7 +33,6 @@ 324@@ -32,7 +32,6 @@
326 #include "chrome/browser/safe_browsing/cloud_content_scanning/binary_upload_service_factory.h" 325 #include "chrome/browser/safe_browsing/cloud_content_scanning/binary_upload_service_factory.h"
327 #include "chrome/browser/safe_browsing/cloud_content_scanning/deep_scanning_utils.h" 326 #include "chrome/browser/safe_browsing/cloud_content_scanning/deep_scanning_utils.h"
328 #include "chrome/browser/safe_browsing/cloud_content_scanning/file_analysis_request.h" 327 #include "chrome/browser/safe_browsing/cloud_content_scanning/file_analysis_request.h"
329-#include "chrome/browser/safe_browsing/download_protection/check_client_download_request.h" 328-#include "chrome/browser/safe_browsing/download_protection/check_client_download_request.h"
330 #include "chrome/grit/generated_resources.h" 329 #include "chrome/grit/generated_resources.h"
331 #include "components/enterprise/common/proto/connectors.pb.h" 330 #include "components/enterprise/common/proto/connectors.pb.h"
332 #include "components/policy/core/common/chrome_schema.h" 331 #include "components/policy/core/browser/url_util.h"
333--- a/chrome/browser/enterprise/connectors/connectors_service.cc 332--- chrome/browser/enterprise/connectors/connectors_service.cc.orig
334+++ b/chrome/browser/enterprise/connectors/connectors_service.cc 333+++ chrome/browser/enterprise/connectors/connectors_service.cc
335@@ -460,19 +460,6 @@ absl::optional<std::string> ConnectorsSe 334@@ -475,19 +475,6 @@ absl::optional<std::string> ConnectorsSe
336 return absl::nullopt; 335 return absl::nullopt;
337 } 336 }
338 337
@@ -352,9 +351,9 @@
352 ConnectorsManager* ConnectorsService::ConnectorsManagerForTesting() { 351 ConnectorsManager* ConnectorsService::ConnectorsManagerForTesting() {
353 return connectors_manager_.get(); 352 return connectors_manager_.get();
354 } 353 }
355--- a/chrome/browser/enterprise/connectors/connectors_service.h 354--- chrome/browser/enterprise/connectors/connectors_service.h.orig
356+++ b/chrome/browser/enterprise/connectors/connectors_service.h 355+++ chrome/browser/enterprise/connectors/connectors_service.h
357@@ -80,12 +80,6 @@ class ConnectorsService : public KeyedSe 356@@ -78,12 +78,6 @@ class ConnectorsService : public KeyedSe
358 // is no token to use. 357 // is no token to use.
359 absl::optional<std::string> GetDMTokenForRealTimeUrlCheck() const; 358 absl::optional<std::string> GetDMTokenForRealTimeUrlCheck() const;
360 359
@@ -367,18 +366,18 @@
367 // Returns the CBCM domain or profile domain that enables connector policies. 366 // Returns the CBCM domain or profile domain that enables connector policies.
368 // If both set Connector policies, the CBCM domain is returned as it has 367 // If both set Connector policies, the CBCM domain is returned as it has
369 // precedence. 368 // precedence.
370--- a/chrome/browser/enterprise/connectors/device_trust/signals/decorators/common/common_signals_decorator.cc 369--- chrome/browser/enterprise/connectors/device_trust/signals/decorators/common/common_signals_decorator.cc.orig
371+++ b/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
372@@ -41,9 +41,6 @@ void CommonSignalsDecorator::Decorate(Si 371@@ -38,9 +38,6 @@ void CommonSignalsDecorator::Decorate(Si
373 // Get signals from policy values. 372 // Get signals from policy values.
374 signals.set_built_in_dns_client_enabled( 373 signals.set_built_in_dns_client_enabled(
375 enterprise_signals::utils::GetBuiltInDnsClientEnabled(local_state_)); 374 enterprise_signals::utils::GetBuiltInDnsClientEnabled(local_state_));
376- signals.set_safe_browsing_protection_level(static_cast<int32_t>( 375- signals.set_safe_browsing_protection_level(static_cast<int32_t>(
377- enterprise_signals::utils::GetSafeBrowsingProtectionLevel( 376- enterprise_signals::utils::GetSafeBrowsingProtectionLevel(
378- profile_prefs_))); 377- profile_prefs_)));
379 378 signals.set_remote_desktop_available(
380 absl::optional<bool> third_party_blocking_enabled = 379 enterprise_signals::utils::GetChromeRemoteDesktopAppBlocked(
381 enterprise_signals::utils::GetThirdPartyBlockingEnabled(local_state_); 380 policy_blocklist_service_));
382@@ -58,15 +55,6 @@ void CommonSignalsDecorator::Decorate(Si 381@@ -58,15 +55,6 @@ void CommonSignalsDecorator::Decorate(Si
383 signals.set_chrome_cleanup_enabled(chrome_cleanup_enabled.value()); 382 signals.set_chrome_cleanup_enabled(chrome_cleanup_enabled.value());
384 } 383 }
@@ -392,12 +391,12 @@
392- static_cast<int32_t>(password_protection_warning_trigger.value())); 391- static_cast<int32_t>(password_protection_warning_trigger.value()));
393- } 392- }
394- 393-
395 if (cached_device_model_ && cached_device_manufacturer_) { 394 std::move(done_closure).Run();
396 UpdateFromCache(signals); 395 }
397 LogSignalsCollectionLatency(kLatencyHistogramWithCacheVariant, start_time); 396
398--- a/chrome/browser/enterprise/signals/context_info_fetcher.cc 397--- chrome/browser/enterprise/signals/context_info_fetcher.cc.orig
399+++ b/chrome/browser/enterprise/signals/context_info_fetcher.cc 398+++ chrome/browser/enterprise/signals/context_info_fetcher.cc
400@@ -204,7 +204,6 @@ void ContextInfoFetcher::Fetch(ContextIn 399@@ -169,7 +169,6 @@ void ContextInfoFetcher::Fetch(ContextIn
401 GetAnalysisConnectorProviders(enterprise_connectors::FILE_DOWNLOADED); 400 GetAnalysisConnectorProviders(enterprise_connectors::FILE_DOWNLOADED);
402 info.on_bulk_data_entry_providers = 401 info.on_bulk_data_entry_providers =
403 GetAnalysisConnectorProviders(enterprise_connectors::BULK_DATA_ENTRY); 402 GetAnalysisConnectorProviders(enterprise_connectors::BULK_DATA_ENTRY);
@@ -405,7 +404,7 @@
405 info.on_security_event_providers = GetOnSecurityEventProviders(); 404 info.on_security_event_providers = GetOnSecurityEventProviders();
406 info.browser_version = version_info::GetVersionNumber(); 405 info.browser_version = version_info::GetVersionNumber();
407 info.site_isolation_enabled = 406 info.site_isolation_enabled =
408@@ -262,11 +261,6 @@ std::vector<std::string> ContextInfoFetc 407@@ -227,11 +226,6 @@ std::vector<std::string> ContextInfoFetc
409 return connectors_service_->GetAnalysisServiceProviderNames(connector); 408 return connectors_service_->GetAnalysisServiceProviderNames(connector);
410 } 409 }
411 410
@@ -417,8 +416,8 @@
417 std::vector<std::string> ContextInfoFetcher::GetOnSecurityEventProviders() { 416 std::vector<std::string> ContextInfoFetcher::GetOnSecurityEventProviders() {
418 return connectors_service_->GetReportingServiceProviderNames( 417 return connectors_service_->GetReportingServiceProviderNames(
419 enterprise_connectors::ReportingConnector::SECURITY_EVENT); 418 enterprise_connectors::ReportingConnector::SECURITY_EVENT);
420--- a/chrome/browser/enterprise/signals/context_info_fetcher.h 419--- chrome/browser/enterprise/signals/context_info_fetcher.h.orig
421+++ b/chrome/browser/enterprise/signals/context_info_fetcher.h 420+++ chrome/browser/enterprise/signals/context_info_fetcher.h
422@@ -6,6 +6,7 @@ 421@@ -6,6 +6,7 @@
423 #define CHROME_BROWSER_ENTERPRISE_SIGNALS_CONTEXT_INFO_FETCHER_H_ 422 #define CHROME_BROWSER_ENTERPRISE_SIGNALS_CONTEXT_INFO_FETCHER_H_
424 423
@@ -427,7 +426,7 @@
427 #include <vector> 426 #include <vector>
428 427
429 #include "base/callback_forward.h" 428 #include "base/callback_forward.h"
430@@ -38,7 +39,6 @@ struct ContextInfo { 429@@ -37,7 +38,6 @@ struct ContextInfo {
431 std::vector<std::string> on_file_downloaded_providers; 430 std::vector<std::string> on_file_downloaded_providers;
432 std::vector<std::string> on_bulk_data_entry_providers; 431 std::vector<std::string> on_bulk_data_entry_providers;
433 std::vector<std::string> on_security_event_providers; 432 std::vector<std::string> on_security_event_providers;
@@ -435,7 +434,7 @@
435 std::string browser_version; 434 std::string browser_version;
436 safe_browsing::SafeBrowsingState safe_browsing_protection_level; 435 safe_browsing::SafeBrowsingState safe_browsing_protection_level;
437 bool site_isolation_enabled; 436 bool site_isolation_enabled;
438@@ -89,7 +89,6 @@ class ContextInfoFetcher { 437@@ -88,7 +88,6 @@ class ContextInfoFetcher {
439 std::vector<std::string> GetAnalysisConnectorProviders( 438 std::vector<std::string> GetAnalysisConnectorProviders(
440 enterprise_connectors::AnalysisConnector connector); 439 enterprise_connectors::AnalysisConnector connector);
441 440
@@ -443,8 +442,8 @@
443 442
444 std::vector<std::string> GetOnSecurityEventProviders(); 443 std::vector<std::string> GetOnSecurityEventProviders();
445 444
446--- a/chrome/browser/enterprise/signals/signals_utils.cc 445--- chrome/browser/enterprise/signals/signals_utils.cc.orig
447+++ b/chrome/browser/enterprise/signals/signals_utils.cc 446+++ chrome/browser/enterprise/signals/signals_utils.cc
448@@ -33,24 +33,6 @@ bool IsURLBlocked(const GURL& url, Polic 447@@ -33,24 +33,6 @@ bool IsURLBlocked(const GURL& url, Polic
449 448
450 } // namespace 449 } // namespace
@@ -469,7 +468,7 @@
469- 468-
470 absl::optional<bool> GetThirdPartyBlockingEnabled(PrefService* local_state) { 469 absl::optional<bool> GetThirdPartyBlockingEnabled(PrefService* local_state) {
471 DCHECK(local_state); 470 DCHECK(local_state);
472 #if BUILDFLAG(IS_WIN) && BUILDFLAG(GOOGLE_CHROME_BRANDING) 471 #if defined(OS_WIN) && BUILDFLAG(GOOGLE_CHROME_BRANDING)
473@@ -65,15 +47,6 @@ bool GetBuiltInDnsClientEnabled(PrefServ 472@@ -65,15 +47,6 @@ bool GetBuiltInDnsClientEnabled(PrefServ
474 return local_state->GetBoolean(prefs::kBuiltInDnsClientEnabled); 473 return local_state->GetBoolean(prefs::kBuiltInDnsClientEnabled);
475 } 474 }
@@ -485,9 +484,9 @@
485- 484-
486 absl::optional<bool> GetChromeCleanupEnabled(PrefService* local_state) { 485 absl::optional<bool> GetChromeCleanupEnabled(PrefService* local_state) {
487 DCHECK(local_state); 486 DCHECK(local_state);
488 #if BUILDFLAG(IS_WIN) 487 #if defined(OS_WIN)
489--- a/chrome/browser/enterprise/signals/signals_utils.h 488--- chrome/browser/enterprise/signals/signals_utils.h.orig
490+++ b/chrome/browser/enterprise/signals/signals_utils.h 489+++ chrome/browser/enterprise/signals/signals_utils.h
491@@ -21,12 +21,6 @@ bool GetBuiltInDnsClientEnabled(PrefServ 490@@ -21,12 +21,6 @@ bool GetBuiltInDnsClientEnabled(PrefServ
492 491
493 absl::optional<bool> GetChromeCleanupEnabled(PrefService* local_state); 492 absl::optional<bool> GetChromeCleanupEnabled(PrefService* local_state);
@@ -501,9 +500,9 @@
501 bool GetChromeRemoteDesktopAppBlocked(PolicyBlocklistService* service); 500 bool GetChromeRemoteDesktopAppBlocked(PolicyBlocklistService* service);
502 501
503 } // namespace utils 502 } // namespace utils
504--- a/chrome/browser/extensions/BUILD.gn 503--- chrome/browser/extensions/BUILD.gn.orig
505+++ b/chrome/browser/extensions/BUILD.gn 504+++ chrome/browser/extensions/BUILD.gn
506@@ -636,8 +636,6 @@ static_library("extensions") { 505@@ -650,8 +650,6 @@ static_library("extensions") {
507 "menu_manager_factory.h", 506 "menu_manager_factory.h",
508 "navigation_observer.cc", 507 "navigation_observer.cc",
509 "navigation_observer.h", 508 "navigation_observer.h",
@@ -512,8 +511,8 @@
512 "pack_extension_job.cc", 511 "pack_extension_job.cc",
513 "pack_extension_job.h", 512 "pack_extension_job.h",
514 "pending_extension_info.cc", 513 "pending_extension_info.cc",
515--- a/chrome/browser/extensions/api/enterprise_reporting_private/enterprise_reporting_private_api.cc 514--- chrome/browser/extensions/api/enterprise_reporting_private/enterprise_reporting_private_api.cc.orig
516+++ b/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
517@@ -72,17 +72,8 @@ api::enterprise_reporting_private::Conte 516@@ -72,17 +72,8 @@ api::enterprise_reporting_private::Conte
518 : nullptr; 517 : nullptr;
519 info.os_firewall = ToInfoSettingValue(signals.os_firewall); 518 info.os_firewall = ToInfoSettingValue(signals.os_firewall);
@@ -532,9 +531,9 @@
532 info.browser_version = std::move(signals.browser_version); 531 info.browser_version = std::move(signals.browser_version);
533 info.built_in_dns_client_enabled = signals.built_in_dns_client_enabled; 532 info.built_in_dns_client_enabled = signals.built_in_dns_client_enabled;
534 533
535--- a/chrome/browser/extensions/api/safe_browsing_private/safe_browsing_private_event_router.cc 534--- chrome/browser/extensions/api/safe_browsing_private/safe_browsing_private_event_router.cc.orig
536+++ b/chrome/browser/extensions/api/safe_browsing_private/safe_browsing_private_event_router.cc 535+++ chrome/browser/extensions/api/safe_browsing_private/safe_browsing_private_event_router.cc
537@@ -328,6 +328,7 @@ void SafeBrowsingPrivateEventRouter::OnP 536@@ -326,6 +326,7 @@ void SafeBrowsingPrivateEventRouter::OnD
538 event_router_->BroadcastEvent(std::move(extension_event)); 537 event_router_->BroadcastEvent(std::move(extension_event));
539 } 538 }
540 539
@@ -542,7 +541,7 @@
542 absl::optional<enterprise_connectors::ReportingSettings> settings = 541 absl::optional<enterprise_connectors::ReportingSettings> settings =
543 GetReportingSettings(); 542 GetReportingSettings();
544 if (!settings.has_value() || 543 if (!settings.has_value() ||
545@@ -399,6 +400,7 @@ void SafeBrowsingPrivateEventRouter::OnD 544@@ -356,6 +357,7 @@ void SafeBrowsingPrivateEventRouter::OnD
546 545
547 ReportRealtimeEvent(kKeyDangerousDownloadEvent, std::move(settings.value()), 546 ReportRealtimeEvent(kKeyDangerousDownloadEvent, std::move(settings.value()),
548 std::move(event)); 547 std::move(event));
@@ -550,7 +549,7 @@
550 } 549 }
551 550
552 void SafeBrowsingPrivateEventRouter::OnSecurityInterstitialShown( 551 void SafeBrowsingPrivateEventRouter::OnSecurityInterstitialShown(
553@@ -426,6 +428,7 @@ void SafeBrowsingPrivateEventRouter::OnS 552@@ -383,6 +385,7 @@ void SafeBrowsingPrivateEventRouter::OnS
554 event_router_->BroadcastEvent(std::move(extension_event)); 553 event_router_->BroadcastEvent(std::move(extension_event));
555 } 554 }
556 555
@@ -558,7 +557,7 @@
558 absl::optional<enterprise_connectors::ReportingSettings> settings = 557 absl::optional<enterprise_connectors::ReportingSettings> settings =
559 GetReportingSettings(); 558 GetReportingSettings();
560 if (!settings.has_value() || 559 if (!settings.has_value() ||
561@@ -448,6 +451,7 @@ void SafeBrowsingPrivateEventRouter::OnS 560@@ -406,6 +409,7 @@ void SafeBrowsingPrivateEventRouter::OnS
562 561
563 ReportRealtimeEvent(kKeyInterstitialEvent, std::move(settings.value()), 562 ReportRealtimeEvent(kKeyInterstitialEvent, std::move(settings.value()),
564 std::move(event)); 563 std::move(event));
@@ -566,7 +565,7 @@
566 } 565 }
567 566
568 void SafeBrowsingPrivateEventRouter::OnSecurityInterstitialProceeded( 567 void SafeBrowsingPrivateEventRouter::OnSecurityInterstitialProceeded(
569@@ -475,6 +479,7 @@ void SafeBrowsingPrivateEventRouter::OnS 568@@ -433,6 +437,7 @@ void SafeBrowsingPrivateEventRouter::OnS
570 event_router_->BroadcastEvent(std::move(extension_event)); 569 event_router_->BroadcastEvent(std::move(extension_event));
571 } 570 }
572 571
@@ -574,7 +573,7 @@
574 absl::optional<enterprise_connectors::ReportingSettings> settings = 573 absl::optional<enterprise_connectors::ReportingSettings> settings =
575 GetReportingSettings(); 574 GetReportingSettings();
576 if (!settings.has_value() || 575 if (!settings.has_value() ||
577@@ -493,6 +498,7 @@ void SafeBrowsingPrivateEventRouter::OnS 576@@ -452,6 +457,7 @@ void SafeBrowsingPrivateEventRouter::OnS
578 577
579 ReportRealtimeEvent(kKeyInterstitialEvent, std::move(settings.value()), 578 ReportRealtimeEvent(kKeyInterstitialEvent, std::move(settings.value()),
580 std::move(event)); 579 std::move(event));
@@ -582,7 +581,7 @@
582 } 581 }
583 582
584 void SafeBrowsingPrivateEventRouter::OnAnalysisConnectorResult( 583 void SafeBrowsingPrivateEventRouter::OnAnalysisConnectorResult(
585@@ -506,6 +512,7 @@ void SafeBrowsingPrivateEventRouter::OnA 584@@ -465,6 +471,7 @@ void SafeBrowsingPrivateEventRouter::OnA
586 const enterprise_connectors::ContentAnalysisResponse::Result& result, 585 const enterprise_connectors::ContentAnalysisResponse::Result& result,
587 const int64_t content_size, 586 const int64_t content_size,
588 safe_browsing::EventResult event_result) { 587 safe_browsing::EventResult event_result) {
@@ -590,7 +589,7 @@
590 if (result.tag() == "malware") { 589 if (result.tag() == "malware") {
591 DCHECK_EQ(1, result.triggered_rules().size()); 590 DCHECK_EQ(1, result.triggered_rules().size());
592 OnDangerousDeepScanningResult( 591 OnDangerousDeepScanningResult(
593@@ -517,6 +524,7 @@ void SafeBrowsingPrivateEventRouter::OnA 592@@ -476,6 +483,7 @@ void SafeBrowsingPrivateEventRouter::OnA
594 OnSensitiveDataEvent(url, file_name, download_digest_sha256, mime_type, 593 OnSensitiveDataEvent(url, file_name, download_digest_sha256, mime_type,
595 trigger, scan_id, result, content_size, event_result); 594 trigger, scan_id, result, content_size, event_result);
596 } 595 }
@@ -598,7 +597,7 @@
598 } 597 }
599 598
600 void SafeBrowsingPrivateEventRouter::OnDangerousDeepScanningResult( 599 void SafeBrowsingPrivateEventRouter::OnDangerousDeepScanningResult(
601@@ -532,6 +540,7 @@ void SafeBrowsingPrivateEventRouter::OnD 600@@ -491,6 +499,7 @@ void SafeBrowsingPrivateEventRouter::OnD
602 const std::string& malware_category, 601 const std::string& malware_category,
603 const std::string& evidence_locker_filepath, 602 const std::string& evidence_locker_filepath,
604 const std::string& scan_id) { 603 const std::string& scan_id) {
@@ -606,7 +605,7 @@
606 absl::optional<enterprise_connectors::ReportingSettings> settings = 605 absl::optional<enterprise_connectors::ReportingSettings> settings =
607 GetReportingSettings(); 606 GetReportingSettings();
608 if (!settings.has_value() || 607 if (!settings.has_value() ||
609@@ -572,6 +581,7 @@ void SafeBrowsingPrivateEventRouter::OnD 608@@ -528,6 +537,7 @@ void SafeBrowsingPrivateEventRouter::OnD
610 609
611 ReportRealtimeEvent(kKeyDangerousDownloadEvent, std::move(settings.value()), 610 ReportRealtimeEvent(kKeyDangerousDownloadEvent, std::move(settings.value()),
612 std::move(event)); 611 std::move(event));
@@ -614,7 +613,7 @@
614 } 613 }
615 614
616 void SafeBrowsingPrivateEventRouter::OnSensitiveDataEvent( 615 void SafeBrowsingPrivateEventRouter::OnSensitiveDataEvent(
617@@ -584,6 +594,7 @@ void SafeBrowsingPrivateEventRouter::OnS 616@@ -540,6 +550,7 @@ void SafeBrowsingPrivateEventRouter::OnS
618 const enterprise_connectors::ContentAnalysisResponse::Result& result, 617 const enterprise_connectors::ContentAnalysisResponse::Result& result,
619 const int64_t content_size, 618 const int64_t content_size,
620 safe_browsing::EventResult event_result) { 619 safe_browsing::EventResult event_result) {
@@ -622,7 +621,7 @@
622 absl::optional<enterprise_connectors::ReportingSettings> settings = 621 absl::optional<enterprise_connectors::ReportingSettings> settings =
623 GetReportingSettings(); 622 GetReportingSettings();
624 if (!settings.has_value() || 623 if (!settings.has_value() ||
625@@ -615,6 +626,7 @@ void SafeBrowsingPrivateEventRouter::OnS 624@@ -572,6 +583,7 @@ void SafeBrowsingPrivateEventRouter::OnS
626 625
627 ReportRealtimeEvent(kKeySensitiveDataEvent, std::move(settings.value()), 626 ReportRealtimeEvent(kKeySensitiveDataEvent, std::move(settings.value()),
628 std::move(event)); 627 std::move(event));
@@ -630,15 +629,15 @@
630 } 629 }
631 630
632 void SafeBrowsingPrivateEventRouter::OnAnalysisConnectorWarningBypassed( 631 void SafeBrowsingPrivateEventRouter::OnAnalysisConnectorWarningBypassed(
633@@ -628,6 +640,7 @@ void SafeBrowsingPrivateEventRouter::OnA 632@@ -584,6 +596,7 @@ void SafeBrowsingPrivateEventRouter::OnA
633 safe_browsing::DeepScanAccessPoint access_point,
634 const enterprise_connectors::ContentAnalysisResponse::Result& result, 634 const enterprise_connectors::ContentAnalysisResponse::Result& result,
635 const int64_t content_size, 635 const int64_t content_size) {
636 absl::optional<std::u16string> user_justification) {
637+#if defined(FULL_SAFE_BROWSING) 636+#if defined(FULL_SAFE_BROWSING)
638 absl::optional<enterprise_connectors::ReportingSettings> settings = 637 absl::optional<enterprise_connectors::ReportingSettings> settings =
639 GetReportingSettings(); 638 GetReportingSettings();
640 if (!settings.has_value() || 639 if (!settings.has_value() ||
641@@ -662,6 +675,7 @@ void SafeBrowsingPrivateEventRouter::OnA 640@@ -616,6 +629,7 @@ void SafeBrowsingPrivateEventRouter::OnA
642 641
643 ReportRealtimeEvent(kKeySensitiveDataEvent, std::move(settings.value()), 642 ReportRealtimeEvent(kKeySensitiveDataEvent, std::move(settings.value()),
644 std::move(event)); 643 std::move(event));
@@ -646,7 +645,7 @@
646 } 645 }
647 646
648 void SafeBrowsingPrivateEventRouter::OnUnscannedFileEvent( 647 void SafeBrowsingPrivateEventRouter::OnUnscannedFileEvent(
649@@ -674,6 +688,7 @@ void SafeBrowsingPrivateEventRouter::OnU 648@@ -628,6 +642,7 @@ void SafeBrowsingPrivateEventRouter::OnU
650 const std::string& reason, 649 const std::string& reason,
651 const int64_t content_size, 650 const int64_t content_size,
652 safe_browsing::EventResult event_result) { 651 safe_browsing::EventResult event_result) {
@@ -654,7 +653,7 @@
654 absl::optional<enterprise_connectors::ReportingSettings> settings = 653 absl::optional<enterprise_connectors::ReportingSettings> settings =
655 GetReportingSettings(); 654 GetReportingSettings();
656 if (!settings.has_value() || 655 if (!settings.has_value() ||
657@@ -700,6 +715,7 @@ void SafeBrowsingPrivateEventRouter::OnU 656@@ -654,6 +669,7 @@ void SafeBrowsingPrivateEventRouter::OnU
658 657
659 ReportRealtimeEvent(kKeyUnscannedFileEvent, std::move(settings.value()), 658 ReportRealtimeEvent(kKeyUnscannedFileEvent, std::move(settings.value()),
660 std::move(event)); 659 std::move(event));
@@ -662,7 +661,7 @@
662 } 661 }
663 662
664 void SafeBrowsingPrivateEventRouter::OnDangerousDownloadEvent( 663 void SafeBrowsingPrivateEventRouter::OnDangerousDownloadEvent(
665@@ -725,6 +741,7 @@ void SafeBrowsingPrivateEventRouter::OnD 664@@ -679,6 +695,7 @@ void SafeBrowsingPrivateEventRouter::OnD
666 const std::string& scan_id, 665 const std::string& scan_id,
667 const int64_t content_size, 666 const int64_t content_size,
668 safe_browsing::EventResult event_result) { 667 safe_browsing::EventResult event_result) {
@@ -670,7 +669,7 @@
670 absl::optional<enterprise_connectors::ReportingSettings> settings = 669 absl::optional<enterprise_connectors::ReportingSettings> settings =
671 GetReportingSettings(); 670 GetReportingSettings();
672 if (!settings.has_value() || 671 if (!settings.has_value() ||
673@@ -756,6 +773,7 @@ void SafeBrowsingPrivateEventRouter::OnD 672@@ -709,6 +726,7 @@ void SafeBrowsingPrivateEventRouter::OnD
674 673
675 ReportRealtimeEvent(kKeyDangerousDownloadEvent, std::move(settings.value()), 674 ReportRealtimeEvent(kKeyDangerousDownloadEvent, std::move(settings.value()),
676 std::move(event)); 675 std::move(event));
@@ -678,7 +677,7 @@
678 } 677 }
679 678
680 void SafeBrowsingPrivateEventRouter::OnDangerousDownloadWarningBypassed( 679 void SafeBrowsingPrivateEventRouter::OnDangerousDownloadWarningBypassed(
681@@ -779,6 +797,7 @@ void SafeBrowsingPrivateEventRouter::OnD 680@@ -732,6 +750,7 @@ void SafeBrowsingPrivateEventRouter::OnD
682 const std::string& mime_type, 681 const std::string& mime_type,
683 const std::string& scan_id, 682 const std::string& scan_id,
684 const int64_t content_size) { 683 const int64_t content_size) {
@@ -686,7 +685,7 @@
686 absl::optional<enterprise_connectors::ReportingSettings> settings = 685 absl::optional<enterprise_connectors::ReportingSettings> settings =
687 GetReportingSettings(); 686 GetReportingSettings();
688 if (!settings.has_value() || 687 if (!settings.has_value() ||
689@@ -810,6 +829,7 @@ void SafeBrowsingPrivateEventRouter::OnD 688@@ -762,6 +781,7 @@ void SafeBrowsingPrivateEventRouter::OnD
690 689
691 ReportRealtimeEvent(kKeyDangerousDownloadEvent, std::move(settings.value()), 690 ReportRealtimeEvent(kKeyDangerousDownloadEvent, std::move(settings.value()),
692 std::move(event)); 691 std::move(event));
@@ -694,7 +693,7 @@
694 } 693 }
695 694
696 void SafeBrowsingPrivateEventRouter::OnLoginEvent( 695 void SafeBrowsingPrivateEventRouter::OnLoginEvent(
697@@ -1155,7 +1175,11 @@ void SafeBrowsingPrivateEventRouter::Rep 696@@ -1087,7 +1107,11 @@ void SafeBrowsingPrivateEventRouter::Rep
698 } 697 }
699 698
700 std::string SafeBrowsingPrivateEventRouter::GetProfileUserName() const { 699 std::string SafeBrowsingPrivateEventRouter::GetProfileUserName() const {
@@ -706,27 +705,9 @@
706 } 705 }
707 706
708 #if BUILDFLAG(IS_CHROMEOS_ASH) 707 #if BUILDFLAG(IS_CHROMEOS_ASH)
709--- a/chrome/browser/extensions/chrome_extensions_browser_client.cc 708--- chrome/browser/extensions/extension_service.cc.orig
710+++ b/chrome/browser/extensions/chrome_extensions_browser_client.cc 709+++ chrome/browser/extensions/extension_service.cc
711@@ -608,15 +608,6 @@ void ChromeExtensionsBrowserClient::Noti 710@@ -52,7 +52,6 @@
712 content::BrowserContext* context,
713 const ExtensionId& extension_id,
714 const std::string& code) const {
715- auto* telemetry_service =
716- safe_browsing::ExtensionTelemetryServiceFactory::GetForProfile(
717- Profile::FromBrowserContext(context));
718- if (!telemetry_service || !telemetry_service->enabled())
719- return;
720-
721- auto signal = std::make_unique<safe_browsing::TabsExecuteScriptSignal>(
722- extension_id, code);
723- telemetry_service->AddSignal(std::move(signal));
724 }
725
726 // static
727--- a/chrome/browser/extensions/extension_service.cc
728+++ b/chrome/browser/extensions/extension_service.cc
729@@ -51,7 +51,6 @@
730 #include "chrome/browser/extensions/forced_extensions/install_stage_tracker.h" 711 #include "chrome/browser/extensions/forced_extensions/install_stage_tracker.h"
731 #include "chrome/browser/extensions/install_verifier.h" 712 #include "chrome/browser/extensions/install_verifier.h"
732 #include "chrome/browser/extensions/installed_loader.h" 713 #include "chrome/browser/extensions/installed_loader.h"
@@ -734,15 +715,7 @@
734 #include "chrome/browser/extensions/pending_extension_manager.h" 715 #include "chrome/browser/extensions/pending_extension_manager.h"
735 #include "chrome/browser/extensions/permissions_updater.h" 716 #include "chrome/browser/extensions/permissions_updater.h"
736 #include "chrome/browser/extensions/shared_module_service.h" 717 #include "chrome/browser/extensions/shared_module_service.h"
737@@ -205,7 +204,6 @@ void ExtensionService::BlocklistExtensio 718@@ -370,7 +369,6 @@ ExtensionService::ExtensionService(Profi
738 blocklist_prefs::SetSafeBrowsingExtensionBlocklistState(
739 extension_id, BitMapBlocklistState::BLOCKLISTED_MALWARE,
740 extension_prefs_);
741- OnBlocklistStateAdded(extension_id);
742 }
743
744 bool ExtensionService::OnExternalExtensionUpdateUrlFound(
745@@ -368,7 +366,6 @@ ExtensionService::ExtensionService(Profi
746 safe_browsing_verdict_handler_(extension_prefs, 719 safe_browsing_verdict_handler_(extension_prefs,
747 ExtensionRegistry::Get(profile), 720 ExtensionRegistry::Get(profile),
748 this), 721 this),
@@ -750,7 +723,7 @@
750 registry_(ExtensionRegistry::Get(profile)), 723 registry_(ExtensionRegistry::Get(profile)),
751 pending_extension_manager_(profile), 724 pending_extension_manager_(profile),
752 install_directory_(install_directory), 725 install_directory_(install_directory),
753@@ -868,100 +865,6 @@ bool ExtensionService::IsExtensionEnable 726@@ -852,47 +850,6 @@ bool ExtensionService::IsExtensionEnable
754 return extension_registrar_.IsExtensionEnabled(extension_id); 727 return extension_registrar_.IsExtensionEnabled(extension_id);
755 } 728 }
756 729
@@ -758,14 +731,56 @@
758- const std::string& extension_id, 731- const std::string& extension_id,
759- const base::Value& attributes) { 732- const base::Value& attributes) {
760- DCHECK_CURRENTLY_ON(BrowserThread::UI); 733- DCHECK_CURRENTLY_ON(BrowserThread::UI);
734- HandleMalwareOmahaAttribute(extension_id, attributes);
761- omaha_attributes_handler_.PerformActionBasedOnOmahaAttributes(extension_id, 735- omaha_attributes_handler_.PerformActionBasedOnOmahaAttributes(extension_id,
762- attributes); 736- attributes);
763- allowlist_.PerformActionBasedOnOmahaAttributes(extension_id, attributes); 737- 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);
764- // Show an error for the newly blocklisted extension. 768- // Show an error for the newly blocklisted extension.
765- error_controller_->ShowErrorIfNeeded(); 769- error_controller_->ShowErrorIfNeeded();
766-} 770-}
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-}
767- 781-
768-void ExtensionService::OnGreylistStateRemoved(const std::string& extension_id) { 782-void ExtensionService::ClearGreylistedAcknowledgedStateAndMaybeReenable(
783- const std::string& extension_id) {
769- bool is_on_sb_list = (blocklist_prefs::GetSafeBrowsingExtensionBlocklistState( 784- bool is_on_sb_list = (blocklist_prefs::GetSafeBrowsingExtensionBlocklistState(
770- extension_id, extension_prefs_) != 785- extension_id, extension_prefs_) !=
771- BitMapBlocklistState::NOT_BLOCKLISTED); 786- BitMapBlocklistState::NOT_BLOCKLISTED);
@@ -782,8 +797,9 @@
782- disable_reason::DISABLE_GREYLIST); 797- disable_reason::DISABLE_GREYLIST);
783-} 798-}
784- 799-
785-void ExtensionService::OnGreylistStateAdded(const std::string& extension_id, 800-void ExtensionService::MaybeDisableGreylistedExtension(
786- BitMapBlocklistState new_state) { 801- const std::string& extension_id,
802- BitMapBlocklistState new_state) {
787-#if DCHECK_IS_ON() 803-#if DCHECK_IS_ON()
788- bool has_new_state_on_sb_list = 804- bool has_new_state_on_sb_list =
789- (blocklist_prefs::GetSafeBrowsingExtensionBlocklistState( 805- (blocklist_prefs::GetSafeBrowsingExtensionBlocklistState(
@@ -809,51 +825,12 @@
809- blocklist_prefs::UpdateCurrentGreylistStatesAsAcknowledged(extension_id, 825- blocklist_prefs::UpdateCurrentGreylistStatesAsAcknowledged(extension_id,
810- extension_prefs_); 826- extension_prefs_);
811- DisableExtension(extension_id, disable_reason::DISABLE_GREYLIST); 827- DisableExtension(extension_id, disable_reason::DISABLE_GREYLIST);
812-} 828 }
813- 829
814-void ExtensionService::OnBlocklistStateRemoved(
815- const std::string& extension_id) {
816- if (blocklist_prefs::IsExtensionBlocklisted(extension_id, extension_prefs_)) {
817- return;
818- }
819-
820- // Clear acknowledged state.
821- blocklist_prefs::RemoveAcknowledgedBlocklistState(
822- extension_id, BitMapBlocklistState::BLOCKLISTED_MALWARE,
823- extension_prefs_);
824-
825- scoped_refptr<const Extension> extension =
826- registry_->blocklisted_extensions().GetByID(extension_id);
827- DCHECK(extension);
828- registry_->RemoveBlocklisted(extension_id);
829- AddExtension(extension.get());
830-}
831-
832-void ExtensionService::OnBlocklistStateAdded(const std::string& extension_id) {
833- DCHECK(
834- blocklist_prefs::IsExtensionBlocklisted(extension_id, extension_prefs_));
835- // The extension was already acknowledged by the user, it should already be in
836- // the unloaded state.
837- if (blocklist_prefs::HasAcknowledgedBlocklistState(
838- extension_id, BitMapBlocklistState::BLOCKLISTED_MALWARE,
839- extension_prefs_)) {
840- DCHECK(base::Contains(registry_->blocklisted_extensions().GetIDs(),
841- extension_id));
842- return;
843- }
844-
845- scoped_refptr<const Extension> extension =
846- registry_->GetInstalledExtension(extension_id);
847- registry_->AddBlocklisted(extension);
848- UnloadExtension(extension_id, UnloadedExtensionReason::BLOCKLIST);
849-}
850-
851 void ExtensionService::RemoveDisableReasonAndMaybeEnable( 830 void ExtensionService::RemoveDisableReasonAndMaybeEnable(
852 const std::string& extension_id, 831--- chrome/browser/extensions/extension_service.h.orig
853 disable_reason::DisableReason reason_to_remove) { 832+++ chrome/browser/extensions/extension_service.h
854--- a/chrome/browser/extensions/extension_service.h 833@@ -25,7 +25,6 @@
855+++ b/chrome/browser/extensions/extension_service.h
856@@ -26,7 +26,6 @@
857 #include "chrome/browser/extensions/forced_extensions/force_installed_metrics.h" 834 #include "chrome/browser/extensions/forced_extensions/force_installed_metrics.h"
858 #include "chrome/browser/extensions/forced_extensions/force_installed_tracker.h" 835 #include "chrome/browser/extensions/forced_extensions/force_installed_tracker.h"
859 #include "chrome/browser/extensions/install_gate.h" 836 #include "chrome/browser/extensions/install_gate.h"
@@ -861,7 +838,7 @@
861 #include "chrome/browser/extensions/pending_extension_manager.h" 838 #include "chrome/browser/extensions/pending_extension_manager.h"
862 #include "chrome/browser/extensions/safe_browsing_verdict_handler.h" 839 #include "chrome/browser/extensions/safe_browsing_verdict_handler.h"
863 #include "chrome/browser/profiles/profile_manager.h" 840 #include "chrome/browser/profiles/profile_manager.h"
864@@ -276,40 +275,11 @@ class ExtensionService : public Extensio 841@@ -269,28 +268,11 @@ class ExtensionService : public Extensio
865 // nothing. 842 // nothing.
866 void EnableExtension(const std::string& extension_id); 843 void EnableExtension(const std::string& extension_id);
867 844
@@ -869,26 +846,14 @@
869- // whether to remove greylist disabled reason. Called when a greylisted 846- // whether to remove greylist disabled reason. Called when a greylisted
870- // state is removed from the Safe Browsing blocklist or Omaha blocklist. Also 847- // state is removed from the Safe Browsing blocklist or Omaha blocklist. Also
871- // clears all acknowledged states if the greylist disabled reason is removed. 848- // clears all acknowledged states if the greylist disabled reason is removed.
872- void OnGreylistStateRemoved(const std::string& extension_id); 849- void ClearGreylistedAcknowledgedStateAndMaybeReenable(
850- const std::string& extension_id);
873- 851-
874- // Takes acknowledged blocklist states into account and decides whether to 852- // Takes acknowledged blocklist states into account and decides whether to
875- // disable the greylisted extension. Called when a new greylisted state is 853- // disable the greylisted extension. Called when a new greylisted state is
876- // added to the Safe Browsing blocklist or Omaha blocklist. 854- // added to the Safe Browsing blocklist or Omaha blocklist.
877- void OnGreylistStateAdded(const std::string& extension_id, 855- void MaybeDisableGreylistedExtension(const std::string& extension_id,
878- BitMapBlocklistState new_state); 856- BitMapBlocklistState new_state);
879-
880- // Takes Safe Browsing and Omaha malware blocklist states into account and
881- // decides whether to remove the extension from the blocklist and reload it.
882- // Called when a blocklisted extension is removed from the Safe Browsing
883- // malware blocklist or Omaha malware blocklist. Also clears the acknowledged
884- // state if the extension is reloaded.
885- void OnBlocklistStateRemoved(const std::string& extension_id);
886-
887- // Takes acknowledged malware blocklist state into account and decides whether
888- // to add the extension to the blocklist and unload it. Called when the
889- // extension is added to the Safe Browsing malware blocklist or the Omaha
890- // malware blocklist.
891- void OnBlocklistStateAdded(const std::string& extension_id);
892- 857-
893 // Removes the disable reason and enable the extension if there are no disable 858 // Removes the disable reason and enable the extension if there are no disable
894 // reasons left and is not blocked for another reason. 859 // reasons left and is not blocked for another reason.
@@ -902,18 +867,30 @@
902 // Disables the extension. If the extension is already disabled, just adds 867 // Disables the extension. If the extension is already disabled, just adds
903 // the |disable_reasons| (a bitmask of disable_reason::DisableReason - there 868 // the |disable_reasons| (a bitmask of disable_reason::DisableReason - there
904 // can be multiple DisableReasons e.g. when an extension comes in disabled 869 // can be multiple DisableReasons e.g. when an extension comes in disabled
905@@ -649,8 +619,6 @@ class ExtensionService : public Extensio 870@@ -562,11 +544,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
906 883
907 SafeBrowsingVerdictHandler safe_browsing_verdict_handler_; 884 SafeBrowsingVerdictHandler safe_browsing_verdict_handler_;
908 885
909- OmahaAttributesHandler omaha_attributes_handler_; 886- OmahaAttributesHandler omaha_attributes_handler_;
910- 887-
911 // Sets of enabled/disabled/terminated/blocklisted extensions. Not owned. 888 // Sets of enabled/disabled/terminated/blocklisted extensions. Not owned.
912 raw_ptr<ExtensionRegistry> registry_ = nullptr; 889 ExtensionRegistry* registry_ = nullptr;
913 890
914--- a/chrome/browser/extensions/extension_system_impl.cc 891--- chrome/browser/extensions/extension_system_impl.cc.orig
915+++ b/chrome/browser/extensions/extension_system_impl.cc 892+++ chrome/browser/extensions/extension_system_impl.cc
916@@ -464,8 +464,6 @@ void ExtensionSystemImpl::InstallUpdate( 893@@ -465,8 +465,6 @@ void ExtensionSystemImpl::InstallUpdate(
917 void ExtensionSystemImpl::PerformActionBasedOnOmahaAttributes( 894 void ExtensionSystemImpl::PerformActionBasedOnOmahaAttributes(
918 const std::string& extension_id, 895 const std::string& extension_id,
919 const base::Value& attributes) { 896 const base::Value& attributes) {
@@ -922,42 +899,28 @@
922 } 899 }
923 900
924 bool ExtensionSystemImpl::FinishDelayedInstallationIfReady( 901 bool ExtensionSystemImpl::FinishDelayedInstallationIfReady(
925--- a/chrome/browser/extensions/safe_browsing_verdict_handler.cc 902--- chrome/browser/extensions/safe_browsing_verdict_handler.cc.orig
926+++ b/chrome/browser/extensions/safe_browsing_verdict_handler.cc 903+++ chrome/browser/extensions/safe_browsing_verdict_handler.cc
927@@ -119,7 +119,6 @@ void SafeBrowsingVerdictHandler::UpdateB 904@@ -101,8 +101,6 @@ void SafeBrowsingVerdictHandler::UpdateG
928 blocklist_.Remove(id);
929 blocklist_prefs::SetSafeBrowsingExtensionBlocklistState(
930 id, BitMapBlocklistState::NOT_BLOCKLISTED, extension_prefs_);
931- extension_service_->OnBlocklistStateRemoved(id);
932 UMA_HISTOGRAM_ENUMERATION("ExtensionBlacklist.UnblacklistInstalled",
933 extension->location());
934 }
935@@ -133,7 +132,6 @@ void SafeBrowsingVerdictHandler::UpdateB
936 blocklist_.Insert(extension);
937 blocklist_prefs::SetSafeBrowsingExtensionBlocklistState(
938 id, BitMapBlocklistState::BLOCKLISTED_MALWARE, extension_prefs_);
939- extension_service_->OnBlocklistStateAdded(id);
940 UMA_HISTOGRAM_ENUMERATION("ExtensionBlacklist.BlacklistInstalled",
941 extension->location());
942 }
943@@ -157,7 +155,6 @@ void SafeBrowsingVerdictHandler::UpdateG
944 blocklist_prefs::SetSafeBrowsingExtensionBlocklistState( 905 blocklist_prefs::SetSafeBrowsingExtensionBlocklistState(
945 extension->id(), BitMapBlocklistState::NOT_BLOCKLISTED, 906 extension->id(), BitMapBlocklistState::NOT_BLOCKLISTED,
946 extension_prefs_); 907 extension_prefs_);
947- extension_service_->OnGreylistStateRemoved(extension->id()); 908- extension_service_->ClearGreylistedAcknowledgedStateAndMaybeReenable(
909- extension->id());
948 UMA_HISTOGRAM_ENUMERATION("Extensions.Greylist.Enabled", 910 UMA_HISTOGRAM_ENUMERATION("Extensions.Greylist.Enabled",
949 extension->location()); 911 extension->location());
950 } 912 }
951@@ -177,7 +174,6 @@ void SafeBrowsingVerdictHandler::UpdateG 913@@ -125,8 +123,6 @@ void SafeBrowsingVerdictHandler::UpdateG
952 blocklist_prefs::BlocklistStateToBitMapBlocklistState(greylist_state); 914 blocklist_prefs::BlocklistStateToBitMapBlocklistState(greylist_state);
953 blocklist_prefs::SetSafeBrowsingExtensionBlocklistState( 915 blocklist_prefs::SetSafeBrowsingExtensionBlocklistState(
954 extension->id(), bitmap_greylist_state, extension_prefs_); 916 extension->id(), bitmap_greylist_state, extension_prefs_);
955- extension_service_->OnGreylistStateAdded(id, bitmap_greylist_state); 917- extension_service_->MaybeDisableGreylistedExtension(id,
918- bitmap_greylist_state);
956 UMA_HISTOGRAM_ENUMERATION("Extensions.Greylist.Disabled", 919 UMA_HISTOGRAM_ENUMERATION("Extensions.Greylist.Disabled",
957 extension->location()); 920 extension->location());
958 } 921 }
959--- a/chrome/browser/file_system_access/chrome_file_system_access_permission_context.cc 922--- chrome/browser/file_system_access/chrome_file_system_access_permission_context.cc.orig
960+++ b/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
961@@ -35,8 +35,6 @@ 924@@ -35,8 +35,6 @@
962 #include "chrome/browser/file_system_access/file_system_access_permission_request_manager.h" 925 #include "chrome/browser/file_system_access/file_system_access_permission_request_manager.h"
963 #include "chrome/browser/installable/installable_utils.h" 926 #include "chrome/browser/installable/installable_utils.h"
@@ -967,7 +930,7 @@
967 #include "chrome/browser/ui/file_system_access_dialogs.h" 930 #include "chrome/browser/ui/file_system_access_dialogs.h"
968 #include "chrome/common/chrome_paths.h" 931 #include "chrome/common/chrome_paths.h"
969 #include "components/content_settings/core/browser/host_content_settings_map.h" 932 #include "components/content_settings/core/browser/host_content_settings_map.h"
970@@ -305,83 +303,6 @@ BindResultCallbackToCurrentSequence( 933@@ -299,83 +297,6 @@ BindResultCallbackToCurrentSequence(
971 base::SequencedTaskRunnerHandle::Get(), std::move(callback)); 934 base::SequencedTaskRunnerHandle::Get(), std::move(callback));
972 } 935 }
973 936
@@ -1051,7 +1014,7 @@
1051 std::string GenerateLastPickedDirectoryKey(const std::string& id) { 1014 std::string GenerateLastPickedDirectoryKey(const std::string& id) {
1052 return id.empty() ? kDefaultLastPickedDirectoryKey 1015 return id.empty() ? kDefaultLastPickedDirectoryKey
1053 : base::StrCat({kCustomLastPickedDirectoryKey, "-", id}); 1016 : base::StrCat({kCustomLastPickedDirectoryKey, "-", id});
1054@@ -1134,28 +1055,6 @@ void ChromeFileSystemAccessPermissionCon 1017@@ -1106,28 +1027,6 @@ void ChromeFileSystemAccessPermissionCon
1055 std::move(callback))); 1018 std::move(callback)));
1056 } 1019 }
1057 1020
@@ -1080,9 +1043,9 @@
1080 void ChromeFileSystemAccessPermissionContext:: 1043 void ChromeFileSystemAccessPermissionContext::
1081 DidConfirmSensitiveDirectoryAccess( 1044 DidConfirmSensitiveDirectoryAccess(
1082 const url::Origin& origin, 1045 const url::Origin& origin,
1083--- a/chrome/browser/file_system_access/chrome_file_system_access_permission_context.h 1046--- chrome/browser/file_system_access/chrome_file_system_access_permission_context.h.orig
1084+++ b/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
1085@@ -86,10 +86,6 @@ class ChromeFileSystemAccessPermissionCo 1048@@ -85,10 +85,6 @@ class ChromeFileSystemAccessPermissionCo
1086 HandleType handle_type, 1049 HandleType handle_type,
1087 content::GlobalRenderFrameHostId frame_id, 1050 content::GlobalRenderFrameHostId frame_id,
1088 base::OnceCallback<void(SensitiveDirectoryResult)> callback) override; 1051 base::OnceCallback<void(SensitiveDirectoryResult)> callback) override;
@@ -1093,9 +1056,9 @@
1093 bool CanObtainReadPermission(const url::Origin& origin) override; 1056 bool CanObtainReadPermission(const url::Origin& origin) override;
1094 bool CanObtainWritePermission(const url::Origin& origin) override; 1057 bool CanObtainWritePermission(const url::Origin& origin) override;
1095 1058
1096--- a/chrome/browser/media/webrtc/display_media_access_handler.cc 1059--- chrome/browser/media/webrtc/display_media_access_handler.cc.orig
1097+++ b/chrome/browser/media/webrtc/display_media_access_handler.cc 1060+++ chrome/browser/media/webrtc/display_media_access_handler.cc
1098@@ -23,6 +23,7 @@ 1061@@ -25,6 +25,7 @@
1099 #include "chrome/browser/safe_browsing/user_interaction_observer.h" 1062 #include "chrome/browser/safe_browsing/user_interaction_observer.h"
1100 #include "chrome/common/pref_names.h" 1063 #include "chrome/common/pref_names.h"
1101 #include "components/prefs/pref_service.h" 1064 #include "components/prefs/pref_service.h"
@@ -1103,7 +1066,7 @@
1103 #include "components/url_formatter/elide_url.h" 1066 #include "components/url_formatter/elide_url.h"
1104 #include "content/public/browser/browser_thread.h" 1067 #include "content/public/browser/browser_thread.h"
1105 #include "content/public/browser/desktop_capture.h" 1068 #include "content/public/browser/desktop_capture.h"
1106@@ -106,6 +107,7 @@ void DisplayMediaAccessHandler::HandleRe 1069@@ -111,6 +112,7 @@ void DisplayMediaAccessHandler::HandleRe
1107 return; 1070 return;
1108 } 1071 }
1109 1072
@@ -1111,41 +1074,25 @@
1111 // SafeBrowsing Delayed Warnings experiment can delay some SafeBrowsing 1074 // SafeBrowsing Delayed Warnings experiment can delay some SafeBrowsing
1112 // warnings until user interaction. If the current page has a delayed warning, 1075 // warnings until user interaction. If the current page has a delayed warning,
1113 // it'll have a user interaction observer attached. Show the warning 1076 // it'll have a user interaction observer attached. Show the warning
1114@@ -121,6 +123,7 @@ void DisplayMediaAccessHandler::HandleRe 1077@@ -125,6 +127,7 @@ void DisplayMediaAccessHandler::HandleRe
1115 observer->OnDesktopCaptureRequest(); 1078 observer->OnDesktopCaptureRequest();
1116 return; 1079 return;
1117 } 1080 }
1118+ #endif // BUILDFLAG(FULL_SAFE_BROWSING) 1081+ #endif // BUILDFLAG(FULL_SAFE_BROWSING)
1119 1082
1120 #if BUILDFLAG(IS_MAC) 1083 #if defined(OS_MAC)
1121 // Do not allow picker UI to be shown on a page that isn't in the foreground 1084 // Do not allow picker UI to be shown on a page that isn't in the foreground
1122--- a/chrome/browser/notifications/notification_display_service_impl.cc 1085--- chrome/browser/password_manager/chrome_password_manager_client.cc.orig
1123+++ b/chrome/browser/notifications/notification_display_service_impl.cc 1086+++ chrome/browser/password_manager/chrome_password_manager_client.cc
1124@@ -89,13 +89,6 @@ NotificationDisplayServiceImpl::Notifica 1087@@ -33,7 +33,6 @@
1125 profile_)); 1088 #include "chrome/browser/password_manager/password_reuse_manager_factory.h"
1126 #endif
1127
1128-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_MAC) || \
1129- BUILDFLAG(IS_WIN)
1130- AddNotificationHandler(
1131- NotificationHandler::Type::TAILORED_SECURITY,
1132- std::make_unique<safe_browsing::TailoredSecurityNotificationHandler>());
1133-#endif
1134-
1135 #if BUILDFLAG(ENABLE_EXTENSIONS)
1136 AddNotificationHandler(
1137 NotificationHandler::Type::EXTENSION,
1138--- a/chrome/browser/password_manager/chrome_password_manager_client.cc
1139+++ b/chrome/browser/password_manager/chrome_password_manager_client.cc
1140@@ -34,7 +34,6 @@
1141 #include "chrome/browser/password_manager/password_scripts_fetcher_factory.h"
1142 #include "chrome/browser/password_manager/password_store_factory.h" 1089 #include "chrome/browser/password_manager/password_store_factory.h"
1143 #include "chrome/browser/profiles/profile.h" 1090 #include "chrome/browser/profiles/profile.h"
1144-#include "chrome/browser/safe_browsing/chrome_password_protection_service.h" 1091-#include "chrome/browser/safe_browsing/chrome_password_protection_service.h"
1145 #include "chrome/browser/safe_browsing/user_interaction_observer.h" 1092 #include "chrome/browser/safe_browsing/user_interaction_observer.h"
1146 #include "chrome/browser/signin/identity_manager_factory.h" 1093 #include "chrome/browser/signin/identity_manager_factory.h"
1147 #include "chrome/browser/sync/sync_service_factory.h" 1094 #include "chrome/browser/sync/sync_service_factory.h"
1148@@ -112,11 +111,11 @@ 1095@@ -110,11 +109,11 @@
1149 #if BUILDFLAG(FULL_SAFE_BROWSING) 1096 #if BUILDFLAG(FULL_SAFE_BROWSING)
1150 #include "chrome/browser/safe_browsing/advanced_protection_status_manager.h" 1097 #include "chrome/browser/safe_browsing/advanced_protection_status_manager.h"
1151 #include "chrome/browser/safe_browsing/advanced_protection_status_manager_factory.h" 1098 #include "chrome/browser/safe_browsing/advanced_protection_status_manager_factory.h"
@@ -1156,9 +1103,9 @@
1156 #include "ui/events/keycodes/keyboard_codes.h" 1103 #include "ui/events/keycodes/keyboard_codes.h"
1157-#endif 1104-#endif
1158 1105
1159 #if BUILDFLAG(IS_ANDROID) 1106 #if defined(OS_ANDROID)
1160 #include "chrome/browser/android/tab_android.h" 1107 #include "chrome/browser/android/tab_android.h"
1161@@ -807,6 +806,7 @@ autofill::LanguageCode ChromePasswordMan 1108@@ -826,6 +825,7 @@ autofill::LanguageCode ChromePasswordMan
1162 return autofill::LanguageCode(); 1109 return autofill::LanguageCode();
1163 } 1110 }
1164 1111
@@ -1166,9 +1113,32 @@
1166 safe_browsing::PasswordProtectionService* 1113 safe_browsing::PasswordProtectionService*
1167 ChromePasswordManagerClient::GetPasswordProtectionService() const { 1114 ChromePasswordManagerClient::GetPasswordProtectionService() const {
1168 return safe_browsing::ChromePasswordProtectionService:: 1115 return safe_browsing::ChromePasswordProtectionService::
1169@@ -842,13 +842,9 @@ void ChromePasswordManagerClient::CheckP 1116@@ -836,13 +836,6 @@ ChromePasswordManagerClient::GetPassword
1170 web_contents(), web_contents()->GetLastCommittedURL(), username, 1117 void ChromePasswordManagerClient::CheckSafeBrowsingReputation(
1171 password_type, matching_reused_credentials, password_field_exists); 1118 const GURL& form_action,
1119 const GURL& frame_url) {
1120- safe_browsing::PasswordProtectionService* pps =
1121- GetPasswordProtectionService();
1122- if (pps) {
1123- pps->MaybeStartPasswordFieldOnFocusRequest(
1124- web_contents(), web_contents()->GetLastCommittedURL(), form_action,
1125- frame_url, pps->GetAccountInfo().hosted_domain);
1126- }
1127 }
1128 #endif // defined(ON_FOCUS_PING_ENABLED)
1129
1130@@ -852,22 +845,10 @@ void ChromePasswordManagerClient::CheckP
1131 const std::vector<password_manager::MatchingReusedCredential>&
1132 matching_reused_credentials,
1133 bool password_field_exists) {
1134- safe_browsing::PasswordProtectionService* pps =
1135- GetPasswordProtectionService();
1136- if (!pps)
1137- return;
1138-
1139- pps->MaybeStartProtectedPasswordEntryRequest(
1140- web_contents(), web_contents()->GetLastCommittedURL(), username,
1141- password_type, matching_reused_credentials, password_field_exists);
1172 } 1142 }
1173+#endif // BUILDFLAG(FULL_SAFE_BROWSING) 1143+#endif // BUILDFLAG(FULL_SAFE_BROWSING)
1174 1144
@@ -1180,8 +1150,8 @@
1180- } 1150- }
1181 } 1151 }
1182 1152
1183 #if !BUILDFLAG(IS_ANDROID) 1153 #if !defined(OS_ANDROID)
1184@@ -1355,9 +1351,11 @@ void ChromePasswordManagerClient::OnPast 1154@@ -1365,9 +1346,11 @@ void ChromePasswordManagerClient::OnPast
1185 } 1155 }
1186 1156
1187 was_on_paste_called_ = true; 1157 was_on_paste_called_ = true;
@@ -1190,11 +1160,11 @@
1190+#endif // defined(SYNC_PASSWORD_REUSE_WARNING_ENABLED) 1160+#endif // defined(SYNC_PASSWORD_REUSE_WARNING_ENABLED)
1191 } 1161 }
1192-#endif 1162-#endif
1193+#endif // !BUILDFLAG(IS_ANDROID) 1163+#endif // !defined(OS_ANDROID)
1194 1164
1195 void ChromePasswordManagerClient::RenderFrameCreated( 1165 void ChromePasswordManagerClient::RenderFrameCreated(
1196 content::RenderFrameHost* render_frame_host) { 1166 content::RenderFrameHost* render_frame_host) {
1197@@ -1392,7 +1390,9 @@ void ChromePasswordManagerClient::OnInpu 1167@@ -1402,7 +1385,9 @@ void ChromePasswordManagerClient::OnInpu
1198 if (key_event.windows_key_code == (ui::VKEY_V & 0x1f)) { 1168 if (key_event.windows_key_code == (ui::VKEY_V & 0x1f)) {
1199 OnPaste(); 1169 OnPaste();
1200 } else { 1170 } else {
@@ -1202,9 +1172,9 @@
1202 password_reuse_detection_manager_.OnKeyPressedCommitted(key_event.text); 1172 password_reuse_detection_manager_.OnKeyPressedCommitted(key_event.text);
1203+#endif // defined(SYNC_PASSWORD_REUSE_DETECTION_ENABLED) 1173+#endif // defined(SYNC_PASSWORD_REUSE_DETECTION_ENABLED)
1204 } 1174 }
1205 #endif // BUILDFLAG(IS_ANDROID) 1175 #endif // defined(OS_ANDROID)
1206 } 1176 }
1207@@ -1431,6 +1431,7 @@ bool ChromePasswordManagerClient::IsPass 1177@@ -1441,6 +1426,7 @@ bool ChromePasswordManagerClient::IsPass
1208 is_enabled = false; 1178 is_enabled = false;
1209 } 1179 }
1210 1180
@@ -1212,7 +1182,7 @@
1212 // SafeBrowsing Delayed Warnings experiment can delay some SafeBrowsing 1182 // SafeBrowsing Delayed Warnings experiment can delay some SafeBrowsing
1213 // warnings until user interaction. If the current page has a delayed warning, 1183 // warnings until user interaction. If the current page has a delayed warning,
1214 // it'll have a user interaction observer attached. Disable password 1184 // it'll have a user interaction observer attached. Disable password
1215@@ -1441,6 +1442,7 @@ bool ChromePasswordManagerClient::IsPass 1185@@ -1451,6 +1437,7 @@ bool ChromePasswordManagerClient::IsPass
1216 observer->OnPasswordSaveOrAutofillDenied(); 1186 observer->OnPasswordSaveOrAutofillDenied();
1217 is_enabled = false; 1187 is_enabled = false;
1218 } 1188 }
@@ -1220,9 +1190,9 @@
1220 1190
1221 if (log_manager_->IsLoggingActive()) { 1191 if (log_manager_->IsLoggingActive()) {
1222 password_manager::BrowserSavePasswordProgressLogger logger( 1192 password_manager::BrowserSavePasswordProgressLogger logger(
1223--- a/chrome/browser/password_manager/chrome_password_manager_client.h 1193--- chrome/browser/password_manager/chrome_password_manager_client.h.orig
1224+++ b/chrome/browser/password_manager/chrome_password_manager_client.h 1194+++ chrome/browser/password_manager/chrome_password_manager_client.h
1225@@ -206,13 +206,14 @@ class ChromePasswordManagerClient 1195@@ -207,13 +207,14 @@ class ChromePasswordManagerClient
1226 void AnnotateNavigationEntry(bool has_password_field) override; 1196 void AnnotateNavigationEntry(bool has_password_field) override;
1227 autofill::LanguageCode GetPageLanguage() const override; 1197 autofill::LanguageCode GetPageLanguage() const override;
1228 1198
@@ -1238,7 +1208,7 @@
1238 1208
1239 void CheckProtectedPasswordEntry( 1209 void CheckProtectedPasswordEntry(
1240 password_manager::metrics_util::PasswordType reused_password_type, 1210 password_manager::metrics_util::PasswordType reused_password_type,
1241@@ -220,6 +221,7 @@ class ChromePasswordManagerClient 1211@@ -221,6 +222,7 @@ class ChromePasswordManagerClient
1242 const std::vector<password_manager::MatchingReusedCredential>& 1212 const std::vector<password_manager::MatchingReusedCredential>&
1243 matching_reused_credentials, 1213 matching_reused_credentials,
1244 bool password_field_exists) override; 1214 bool password_field_exists) override;
@@ -1246,8 +1216,8 @@
1246 1216
1247 void LogPasswordReuseDetectedEvent() override; 1217 void LogPasswordReuseDetectedEvent() override;
1248 1218
1249--- a/chrome/browser/permissions/abusive_origin_permission_revocation_request.cc 1219--- chrome/browser/permissions/abusive_origin_permission_revocation_request.cc.orig
1250+++ b/chrome/browser/permissions/abusive_origin_permission_revocation_request.cc 1220+++ chrome/browser/permissions/abusive_origin_permission_revocation_request.cc
1251@@ -136,6 +136,7 @@ void AbusiveOriginPermissionRevocationRe 1221@@ -136,6 +136,7 @@ void AbusiveOriginPermissionRevocationRe
1252 DCHECK(profile_); 1222 DCHECK(profile_);
1253 DCHECK(callback_); 1223 DCHECK(callback_);
@@ -1264,8 +1234,8 @@
1264 } 1234 }
1265 1235
1266 void AbusiveOriginPermissionRevocationRequest::OnSafeBrowsingVerdictReceived( 1236 void AbusiveOriginPermissionRevocationRequest::OnSafeBrowsingVerdictReceived(
1267--- a/chrome/browser/permissions/contextual_notification_permission_ui_selector.cc 1237--- chrome/browser/permissions/contextual_notification_permission_ui_selector.cc.orig
1268+++ b/chrome/browser/permissions/contextual_notification_permission_ui_selector.cc 1238+++ chrome/browser/permissions/contextual_notification_permission_ui_selector.cc
1269@@ -17,7 +17,6 @@ 1239@@ -17,7 +17,6 @@
1270 #include "chrome/browser/browser_process.h" 1240 #include "chrome/browser/browser_process.h"
1271 #include "chrome/browser/permissions/quiet_notification_permission_ui_config.h" 1241 #include "chrome/browser/permissions/quiet_notification_permission_ui_config.h"
@@ -1314,77 +1284,22 @@
1314 } 1284 }
1315 1285
1316 void ContextualNotificationPermissionUiSelector::OnSafeBrowsingVerdictReceived( 1286 void ContextualNotificationPermissionUiSelector::OnSafeBrowsingVerdictReceived(
1317--- a/chrome/browser/permissions/prediction_based_permission_ui_selector.cc 1287--- chrome/browser/permissions/prediction_based_permission_ui_selector.cc.orig
1318+++ b/chrome/browser/permissions/prediction_based_permission_ui_selector.cc 1288+++ chrome/browser/permissions/prediction_based_permission_ui_selector.cc
1319@@ -312,47 +312,5 @@ bool PredictionBasedPermissionUiSelector 1289@@ -212,10 +212,8 @@ bool PredictionBasedPermissionUiSelector
1320
1321 PredictionSource PredictionBasedPermissionUiSelector::GetPredictionTypeToUse(
1322 permissions::RequestType request_type) { 1290 permissions::RequestType request_type) {
1323- if (!safe_browsing::IsSafeBrowsingEnabled(*(profile_->GetPrefs()))) { 1291 // We need to also check `kQuietNotificationPrompts` here since there is no
1324 return PredictionSource::USE_NONE; 1292 // generic safeguard anywhere else in the stack.
1325- } 1293- if (!base::FeatureList::IsEnabled(features::kQuietNotificationPrompts) ||
1326- 1294- !safe_browsing::IsSafeBrowsingEnabled(*(profile_->GetPrefs()))) {
1327- bool is_server_side_prediction_enabled = false; 1295+ if (!base::FeatureList::IsEnabled(features::kQuietNotificationPrompts))
1328- bool is_ondevice_prediction_enabled = false; 1296 return false;
1329-
1330- bool is_tflite_available = false;
1331-#if BUILDFLAG(BUILD_WITH_TFLITE_LIB)
1332- is_tflite_available = true;
1333-#endif // BUILDFLAG(BUILD_WITH_TFLITE_LIB)
1334-
1335- // Notification supports both flavours of the quiet prompt
1336- if (request_type == permissions::RequestType::kNotifications &&
1337- (base::FeatureList::IsEnabled(features::kQuietNotificationPrompts) ||
1338- base::FeatureList::IsEnabled(
1339- permissions::features::kPermissionQuietChip))) {
1340- is_server_side_prediction_enabled =
1341- base::FeatureList::IsEnabled(features::kPermissionPredictions);
1342-
1343- is_ondevice_prediction_enabled =
1344- is_tflite_available &&
1345- base::FeatureList::IsEnabled(
1346- permissions::features::kPermissionOnDeviceNotificationPredictions);
1347- }
1348-
1349- // Geolocation supports only the quiet chip ui
1350- if (request_type == permissions::RequestType::kGeolocation &&
1351- base::FeatureList::IsEnabled(
1352- permissions::features::kPermissionQuietChip)) {
1353- is_server_side_prediction_enabled = base::FeatureList::IsEnabled(
1354- features::kPermissionGeolocationPredictions);
1355- }
1356-
1357- if (is_server_side_prediction_enabled && is_ondevice_prediction_enabled) {
1358- return PredictionSource::USE_ANY;
1359- } else if (is_server_side_prediction_enabled) {
1360- return PredictionSource::USE_SERVER_SIDE;
1361- } else if (is_ondevice_prediction_enabled) {
1362- return PredictionSource::USE_ONDEVICE;
1363- } else {
1364- return PredictionSource::USE_NONE;
1365- } 1297- }
1366 } 1298 double hold_back_chance = 0.0;
1367--- a/chrome/browser/policy/configuration_policy_handler_list_factory.cc 1299 bool is_permissions_predictions_enabled = false;
1368+++ b/chrome/browser/policy/configuration_policy_handler_list_factory.cc 1300 switch (request_type) {
1369@@ -92,6 +92,7 @@ 1301--- chrome/browser/prefs/browser_prefs.cc.orig
1370 #include "components/policy/core/common/schema.h" 1302+++ chrome/browser/prefs/browser_prefs.cc
1371 #include "components/policy/policy_constants.h"
1372 #include "components/proxy_config/proxy_policy_handler.h"
1373+#include "components/safe_browsing/buildflags.h"
1374 #include "components/safe_browsing/content/common/file_type_policies_prefs.h"
1375 #include "components/safe_browsing/core/common/safe_browsing_policy_handler.h"
1376 #include "components/safe_browsing/core/common/safe_browsing_prefs.h"
1377@@ -2297,7 +2298,7 @@ std::unique_ptr<ConfigurationPolicyHandl
1378 base::Value::Type::BOOLEAN)));
1379 #endif // BUILDFLAG(IS_LINUX)
1380
1381-#if !BUILDFLAG(IS_ANDROID)
1382+#if !BUILDFLAG(IS_ANDROID) && BUILDFLAG(FULL_SAFE_BROWSING)
1383 handlers->AddHandler(std::make_unique<SimpleSchemaValidatingPolicyHandler>(
1384 key::kExemptDomainFileTypePairsFromFileTypeDownloadWarnings,
1385 safe_browsing::file_type::prefs::
1386--- a/chrome/browser/prefs/browser_prefs.cc
1387+++ b/chrome/browser/prefs/browser_prefs.cc
1388@@ -243,7 +243,6 @@ 1303@@ -243,7 +243,6 @@
1389 #include "chrome/browser/nearby_sharing/common/nearby_share_prefs.h" 1304 #include "chrome/browser/nearby_sharing/common/nearby_share_prefs.h"
1390 #include "chrome/browser/new_tab_page/modules/drive/drive_service.h" 1305 #include "chrome/browser/new_tab_page/modules/drive/drive_service.h"
@@ -1393,7 +1308,7 @@
1393 #include "chrome/browser/new_tab_page/modules/task_module/task_module_service.h" 1308 #include "chrome/browser/new_tab_page/modules/task_module/task_module_service.h"
1394 #include "chrome/browser/new_tab_page/promos/promo_service.h" 1309 #include "chrome/browser/new_tab_page/promos/promo_service.h"
1395 #include "chrome/browser/search/background/ntp_custom_background_service.h" 1310 #include "chrome/browser/search/background/ntp_custom_background_service.h"
1396@@ -1354,7 +1353,6 @@ void RegisterProfilePrefs(user_prefs::Pr 1311@@ -1277,7 +1276,6 @@ void RegisterProfilePrefs(user_prefs::Pr
1397 NewTabPageHandler::RegisterProfilePrefs(registry); 1312 NewTabPageHandler::RegisterProfilePrefs(registry);
1398 NewTabPageUI::RegisterProfilePrefs(registry); 1313 NewTabPageUI::RegisterProfilePrefs(registry);
1399 NewTabUI::RegisterProfilePrefs(registry); 1314 NewTabUI::RegisterProfilePrefs(registry);
@@ -1401,18 +1316,8 @@
1401 ntp_tiles::CustomLinksManagerImpl::RegisterProfilePrefs(registry); 1316 ntp_tiles::CustomLinksManagerImpl::RegisterProfilePrefs(registry);
1402 PhotosService::RegisterProfilePrefs(registry); 1317 PhotosService::RegisterProfilePrefs(registry);
1403 PinnedTabCodec::RegisterProfilePrefs(registry); 1318 PinnedTabCodec::RegisterProfilePrefs(registry);
1404--- a/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc 1319--- chrome/browser/reputation/reputation_service.cc.orig
1405+++ b/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc 1320+++ chrome/browser/reputation/reputation_service.cc
1406@@ -525,7 +525,6 @@ void ChromeBrowserMainExtraPartsProfiles
1407 SystemExtensionsProviderFactory::GetInstance();
1408 #endif
1409 TabRestoreServiceFactory::GetInstance();
1410- safe_browsing::TailoredSecurityServiceFactory::GetInstance();
1411 TemplateURLFetcherFactory::GetInstance();
1412 TemplateURLServiceFactory::GetInstance();
1413 #if !BUILDFLAG(IS_ANDROID)
1414--- a/chrome/browser/reputation/reputation_service.cc
1415+++ b/chrome/browser/reputation/reputation_service.cc
1416@@ -120,9 +120,7 @@ void ReputationService::GetReputationSta 1321@@ -120,9 +120,7 @@ void ReputationService::GetReputationSta
1417 ReputationCheckCallback callback) { 1322 ReputationCheckCallback callback) {
1418 DCHECK(url.SchemeIsHTTPOrHTTPS()); 1323 DCHECK(url.SchemeIsHTTPOrHTTPS());
@@ -1424,18 +1329,8 @@
1424 1329
1425 LookalikeUrlService* service = LookalikeUrlService::Get(profile_); 1330 LookalikeUrlService* service = LookalikeUrlService::Get(profile_);
1426 if (service->EngagedSitesNeedUpdating()) { 1331 if (service->EngagedSitesNeedUpdating()) {
1427--- a/chrome/browser/resources/settings/privacy_page/privacy_guide/privacy_guide_page.ts 1332--- chrome/browser/safe_browsing/metrics/safe_browsing_metrics_provider.cc.orig
1428+++ b/chrome/browser/resources/settings/privacy_page/privacy_guide/privacy_guide_page.ts 1333+++ chrome/browser/safe_browsing/metrics/safe_browsing_metrics_provider.cc
1429@@ -17,7 +17,6 @@ import './privacy_guide_completion_fragm
1430 import './privacy_guide_cookies_fragment.js';
1431 import './privacy_guide_history_sync_fragment.js';
1432 import './privacy_guide_msbb_fragment.js';
1433-import './privacy_guide_safe_browsing_fragment.js';
1434 import './privacy_guide_welcome_fragment.js';
1435 import './step_indicator.js';
1436
1437--- a/chrome/browser/safe_browsing/metrics/safe_browsing_metrics_provider.cc
1438+++ b/chrome/browser/safe_browsing/metrics/safe_browsing_metrics_provider.cc
1439@@ -17,15 +17,6 @@ SafeBrowsingMetricsProvider::~SafeBrowsi 1334@@ -17,15 +17,6 @@ SafeBrowsingMetricsProvider::~SafeBrowsi
1440 1335
1441 void SafeBrowsingMetricsProvider::ProvideCurrentSessionData( 1336 void SafeBrowsingMetricsProvider::ProvideCurrentSessionData(
@@ -1452,8 +1347,8 @@
1452 } 1347 }
1453 1348
1454 } // namespace safe_browsing 1349 } // namespace safe_browsing
1455--- a/chrome/browser/safe_browsing/url_lookup_service_factory.cc 1350--- chrome/browser/safe_browsing/url_lookup_service_factory.cc.orig
1456+++ b/chrome/browser/safe_browsing/url_lookup_service_factory.cc 1351+++ chrome/browser/safe_browsing/url_lookup_service_factory.cc
1457@@ -59,28 +59,7 @@ RealTimeUrlLookupServiceFactory::RealTim 1352@@ -59,28 +59,7 @@ RealTimeUrlLookupServiceFactory::RealTim
1458 1353
1459 KeyedService* RealTimeUrlLookupServiceFactory::BuildServiceInstanceFor( 1354 KeyedService* RealTimeUrlLookupServiceFactory::BuildServiceInstanceFor(
@@ -1484,9 +1379,9 @@
1484 } 1379 }
1485 1380
1486 } // namespace safe_browsing 1381 } // namespace safe_browsing
1487--- a/chrome/browser/ssl/chrome_security_blocking_page_factory.cc 1382--- chrome/browser/ssl/chrome_security_blocking_page_factory.cc.orig
1488+++ b/chrome/browser/ssl/chrome_security_blocking_page_factory.cc 1383+++ chrome/browser/ssl/chrome_security_blocking_page_factory.cc
1489@@ -143,15 +143,6 @@ CreateSettingsPageHelper() { 1384@@ -142,15 +142,6 @@ CreateSettingsPageHelper() {
1490 CreateChromeSettingsPageHelper(); 1385 CreateChromeSettingsPageHelper();
1491 } 1386 }
1492 1387
@@ -1502,9 +1397,9 @@
1502 } // namespace 1397 } // namespace
1503 1398
1504 std::unique_ptr<SSLBlockingPage> 1399 std::unique_ptr<SSLBlockingPage>
1505@@ -175,10 +166,6 @@ ChromeSecurityBlockingPageFactory::Creat 1400@@ -192,10 +183,6 @@ ChromeSecurityBlockingPageFactory::Creat
1506 Profile::FromBrowserContext(web_contents->GetBrowserContext())); 1401 }
1507 state->DidDisplayErrorPage(cert_error); 1402 }
1508 1403
1509- LogSafeBrowsingSecuritySensitiveAction( 1404- LogSafeBrowsingSecuritySensitiveAction(
1510- safe_browsing::SafeBrowsingMetricsCollectorFactory::GetForProfile( 1405- safe_browsing::SafeBrowsingMetricsCollectorFactory::GetForProfile(
@@ -1513,7 +1408,18 @@
1513 auto controller_client = std::make_unique<SSLErrorControllerClient>( 1408 auto controller_client = std::make_unique<SSLErrorControllerClient>(
1514 web_contents, ssl_info, cert_error, request_url, 1409 web_contents, ssl_info, cert_error, request_url,
1515 std::move(metrics_helper), CreateSettingsPageHelper()); 1410 std::move(metrics_helper), CreateSettingsPageHelper());
1516@@ -248,10 +235,6 @@ ChromeSecurityBlockingPageFactory::Creat 1411@@ -264,10 +251,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
1517 std::unique_ptr<SSLCertReporter> ssl_cert_reporter, 1423 std::unique_ptr<SSLCertReporter> ssl_cert_reporter,
1518 const net::SSLInfo& ssl_info, 1424 const net::SSLInfo& ssl_info,
1519 const std::string& mitm_software_name) { 1425 const std::string& mitm_software_name) {
@@ -1524,7 +1430,7 @@
1524 auto page = std::make_unique<MITMSoftwareBlockingPage>( 1430 auto page = std::make_unique<MITMSoftwareBlockingPage>(
1525 web_contents, cert_error, request_url, std::move(ssl_cert_reporter), 1431 web_contents, cert_error, request_url, std::move(ssl_cert_reporter),
1526 /*can_show_enhanced_protection_message=*/true, ssl_info, 1432 /*can_show_enhanced_protection_message=*/true, ssl_info,
1527@@ -273,10 +256,6 @@ ChromeSecurityBlockingPageFactory::Creat 1433@@ -314,10 +293,6 @@ ChromeSecurityBlockingPageFactory::Creat
1528 const GURL& request_url, 1434 const GURL& request_url,
1529 std::unique_ptr<SSLCertReporter> ssl_cert_reporter, 1435 std::unique_ptr<SSLCertReporter> ssl_cert_reporter,
1530 const net::SSLInfo& ssl_info) { 1436 const net::SSLInfo& ssl_info) {
@@ -1535,8 +1441,8 @@
1535 auto page = std::make_unique<BlockedInterceptionBlockingPage>( 1441 auto page = std::make_unique<BlockedInterceptionBlockingPage>(
1536 web_contents, cert_error, request_url, std::move(ssl_cert_reporter), 1442 web_contents, cert_error, request_url, std::move(ssl_cert_reporter),
1537 /*can_show_enhanced_protection_message=*/true, ssl_info, 1443 /*can_show_enhanced_protection_message=*/true, ssl_info,
1538--- a/chrome/browser/ssl/sct_reporting_service_factory.cc 1444--- chrome/browser/ssl/sct_reporting_service_factory.cc.orig
1539+++ b/chrome/browser/ssl/sct_reporting_service_factory.cc 1445+++ chrome/browser/ssl/sct_reporting_service_factory.cc
1540@@ -32,15 +32,7 @@ SCTReportingServiceFactory::~SCTReportin 1446@@ -32,15 +32,7 @@ SCTReportingServiceFactory::~SCTReportin
1541 1447
1542 KeyedService* SCTReportingServiceFactory::BuildServiceInstanceFor( 1448 KeyedService* SCTReportingServiceFactory::BuildServiceInstanceFor(
@@ -1554,8 +1460,8 @@
1554 } 1460 }
1555 1461
1556 content::BrowserContext* SCTReportingServiceFactory::GetBrowserContextToUse( 1462 content::BrowserContext* SCTReportingServiceFactory::GetBrowserContextToUse(
1557--- a/chrome/browser/subresource_filter/chrome_content_subresource_filter_web_contents_helper_factory.cc 1463--- chrome/browser/subresource_filter/chrome_content_subresource_filter_web_contents_helper_factory.cc.orig
1558+++ b/chrome/browser/subresource_filter/chrome_content_subresource_filter_web_contents_helper_factory.cc 1464+++ chrome/browser/subresource_filter/chrome_content_subresource_filter_web_contents_helper_factory.cc
1559@@ -6,7 +6,6 @@ 1465@@ -6,7 +6,6 @@
1560 1466
1561 #include "chrome/browser/browser_process.h" 1467 #include "chrome/browser/browser_process.h"
@@ -1576,9 +1482,9 @@
1576 } 1482 }
1577 1483
1578 } // namespace 1484 } // namespace
1579--- a/chrome/browser/ui/BUILD.gn 1485--- chrome/browser/ui/BUILD.gn.orig
1580+++ b/chrome/browser/ui/BUILD.gn 1486+++ chrome/browser/ui/BUILD.gn
1581@@ -534,7 +534,6 @@ static_library("ui") { 1487@@ -533,7 +533,6 @@ static_library("ui") {
1582 "//components/renderer_context_menu", 1488 "//components/renderer_context_menu",
1583 "//components/resources", 1489 "//components/resources",
1584 "//components/safe_browsing/content/browser", 1490 "//components/safe_browsing/content/browser",
@@ -1586,17 +1492,8 @@
1586 "//components/safe_browsing/content/browser/password_protection", 1492 "//components/safe_browsing/content/browser/password_protection",
1587 "//components/safe_browsing/content/browser/web_ui", 1493 "//components/safe_browsing/content/browser/web_ui",
1588 "//components/safe_browsing/core/browser/db:database_manager", 1494 "//components/safe_browsing/core/browser/db:database_manager",
1589@@ -4602,8 +4601,6 @@ static_library("ui") { 1495--- chrome/browser/ui/javascript_dialogs/javascript_tab_modal_dialog_manager_delegate_desktop.cc.orig
1590 "views/safe_browsing/password_reuse_modal_warning_dialog.h", 1496+++ chrome/browser/ui/javascript_dialogs/javascript_tab_modal_dialog_manager_delegate_desktop.cc
1591 "views/safe_browsing/prompt_for_scanning_modal_dialog.cc",
1592 "views/safe_browsing/prompt_for_scanning_modal_dialog.h",
1593- "views/safe_browsing/tailored_security_unconsented_modal.cc",
1594- "views/safe_browsing/tailored_security_unconsented_modal.h",
1595 "views/send_tab_to_self/send_tab_to_self_bubble_device_button.cc",
1596 "views/send_tab_to_self/send_tab_to_self_bubble_device_button.h",
1597 "views/send_tab_to_self/send_tab_to_self_bubble_view_impl.cc",
1598--- a/chrome/browser/ui/javascript_dialogs/javascript_tab_modal_dialog_manager_delegate_desktop.cc
1599+++ b/chrome/browser/ui/javascript_dialogs/javascript_tab_modal_dialog_manager_delegate_desktop.cc
1600@@ -16,6 +16,7 @@ 1497@@ -16,6 +16,7 @@
1601 #include "components/javascript_dialogs/tab_modal_dialog_manager.h" 1498 #include "components/javascript_dialogs/tab_modal_dialog_manager.h"
1602 #include "components/javascript_dialogs/tab_modal_dialog_view.h" 1499 #include "components/javascript_dialogs/tab_modal_dialog_view.h"
@@ -1621,12 +1518,12 @@
1621 } 1518 }
1622 1519
1623 void JavaScriptTabModalDialogManagerDelegateDesktop::DidCloseDialog() { 1520 void JavaScriptTabModalDialogManagerDelegateDesktop::DidCloseDialog() {
1624--- a/chrome/browser/ui/tab_contents/chrome_web_contents_view_handle_drop.cc 1521--- chrome/browser/ui/tab_contents/chrome_web_contents_view_handle_drop.cc.orig
1625+++ b/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
1626@@ -11,7 +11,10 @@ 1523@@ -11,7 +11,10 @@
1627 #include "base/task/post_task.h" 1524 #include "base/task/post_task.h"
1628 #include "base/task/task_runner_util.h"
1629 #include "base/task/thread_pool.h" 1525 #include "base/task/thread_pool.h"
1526 #include "base/task_runner_util.h"
1630+#include "components/safe_browsing/buildflags.h" 1527+#include "components/safe_browsing/buildflags.h"
1631+#if BUILDFLAG(FULL_SAFE_BROWSING) 1528+#if BUILDFLAG(FULL_SAFE_BROWSING)
1632 #include "chrome/browser/enterprise/connectors/analysis/content_analysis_delegate.h" 1529 #include "chrome/browser/enterprise/connectors/analysis/content_analysis_delegate.h"
@@ -1683,7 +1580,7 @@
1683 if (!enterprise_connectors::ContentAnalysisDelegate::IsEnabled( 1580 if (!enterprise_connectors::ContentAnalysisDelegate::IsEnabled(
1684 profile, web_contents->GetLastCommittedURL(), &data, connector)) { 1581 profile, web_contents->GetLastCommittedURL(), &data, connector)) {
1685 std::move(callback).Run( 1582 std::move(callback).Run(
1686@@ -152,4 +162,8 @@ void HandleOnPerformDrop( 1583@@ -154,4 +164,8 @@ void HandleOnPerformDrop(
1687 std::move(callback).Run( 1584 std::move(callback).Run(
1688 content::WebContentsViewDelegate::DropCompletionResult::kContinue); 1585 content::WebContentsViewDelegate::DropCompletionResult::kContinue);
1689 } 1586 }
@@ -1692,9 +1589,9 @@
1692+ content::WebContentsViewDelegate::DropCompletionResult::kContinue); 1589+ content::WebContentsViewDelegate::DropCompletionResult::kContinue);
1693+#endif // BUILDFLAG(FULL_SAFE_BROWSING) 1590+#endif // BUILDFLAG(FULL_SAFE_BROWSING)
1694 } 1591 }
1695--- a/chrome/browser/ui/views/download/download_item_view.cc 1592--- chrome/browser/ui/views/download/download_item_view.cc.orig
1696+++ b/chrome/browser/ui/views/download/download_item_view.cc 1593+++ chrome/browser/ui/views/download/download_item_view.cc
1697@@ -838,9 +838,7 @@ void DownloadItemView::UpdateLabels() { 1594@@ -837,9 +837,7 @@ void DownloadItemView::UpdateLabels() {
1698 deep_scanning_label_->SetVisible(mode_ == 1595 deep_scanning_label_->SetVisible(mode_ ==
1699 download::DownloadItemMode::kDeepScanning); 1596 download::DownloadItemMode::kDeepScanning);
1700 if (deep_scanning_label_->GetVisible()) { 1597 if (deep_scanning_label_->GetVisible()) {
@@ -1705,7 +1602,7 @@
1705 ? IDS_PROMPT_DEEP_SCANNING_DOWNLOAD 1602 ? IDS_PROMPT_DEEP_SCANNING_DOWNLOAD
1706 : IDS_PROMPT_DEEP_SCANNING_APP_DOWNLOAD; 1603 : IDS_PROMPT_DEEP_SCANNING_APP_DOWNLOAD;
1707 const std::u16string filename = ElidedFilename(*deep_scanning_label_); 1604 const std::u16string filename = ElidedFilename(*deep_scanning_label_);
1708@@ -887,11 +885,15 @@ void DownloadItemView::UpdateButtons() { 1605@@ -886,11 +884,15 @@ void DownloadItemView::UpdateButtons() {
1709 } 1606 }
1710 1607
1711 const bool allow_open_during_deep_scan = 1608 const bool allow_open_during_deep_scan =
@@ -1721,7 +1618,7 @@
1721 open_button_->SetEnabled((mode_ == download::DownloadItemMode::kNormal) || 1618 open_button_->SetEnabled((mode_ == download::DownloadItemMode::kNormal) ||
1722 prompt_to_scan || allow_open_during_deep_scan); 1619 prompt_to_scan || allow_open_during_deep_scan);
1723 1620
1724@@ -1432,7 +1434,9 @@ void DownloadItemView::ShowContextMenuIm 1621@@ -1427,7 +1429,9 @@ void DownloadItemView::ShowContextMenuIm
1725 } 1622 }
1726 1623
1727 void DownloadItemView::OpenDownloadDuringAsyncScanning() { 1624 void DownloadItemView::OpenDownloadDuringAsyncScanning() {
@@ -1731,9 +1628,9 @@
1731 model_->SetOpenWhenComplete(true); 1628 model_->SetOpenWhenComplete(true);
1732 } 1629 }
1733 1630
1734--- a/chrome/browser/ui/webui/downloads/downloads_dom_handler.cc 1631--- chrome/browser/ui/webui/downloads/downloads_dom_handler.cc.orig
1735+++ b/chrome/browser/ui/webui/downloads/downloads_dom_handler.cc 1632+++ chrome/browser/ui/webui/downloads/downloads_dom_handler.cc
1736@@ -367,7 +367,6 @@ void DownloadsDOMHandler::OpenDuringScan 1633@@ -366,7 +366,6 @@ void DownloadsDOMHandler::OpenDuringScan
1737 if (download) { 1634 if (download) {
1738 DownloadItemModel model(download); 1635 DownloadItemModel model(download);
1739 model.SetOpenWhenComplete(true); 1636 model.SetOpenWhenComplete(true);
@@ -1741,9 +1638,9 @@
1741 } 1638 }
1742 } 1639 }
1743 1640
1744--- a/chrome/browser/ui/webui/management/management_ui_handler.cc 1641--- chrome/browser/ui/webui/management/management_ui_handler.cc.orig
1745+++ b/chrome/browser/ui/webui/management/management_ui_handler.cc 1642+++ chrome/browser/ui/webui/management/management_ui_handler.cc
1746@@ -834,12 +834,6 @@ base::Value ManagementUIHandler::GetThre 1643@@ -805,12 +805,6 @@ base::Value ManagementUIHandler::GetThre
1747 &info); 1644 &info);
1748 } 1645 }
1749 1646
@@ -1756,9 +1653,9 @@
1756 const std::string enterprise_manager = 1653 const std::string enterprise_manager =
1757 connectors_service->GetManagementDomain(); 1654 connectors_service->GetManagementDomain();
1758 1655
1759--- a/chrome/browser/webshare/share_service_impl.cc 1656--- chrome/browser/webshare/share_service_impl.cc.orig
1760+++ b/chrome/browser/webshare/share_service_impl.cc 1657+++ chrome/browser/webshare/share_service_impl.cc
1761@@ -17,7 +17,9 @@ 1658@@ -14,7 +14,9 @@
1762 #include "chrome/browser/browser_process.h" 1659 #include "chrome/browser/browser_process.h"
1763 #include "chrome/browser/safe_browsing/safe_browsing_service.h" 1660 #include "chrome/browser/safe_browsing/safe_browsing_service.h"
1764 #include "chrome/common/chrome_features.h" 1661 #include "chrome/common/chrome_features.h"
@@ -1768,10 +1665,10 @@
1768 #include "components/safe_browsing/core/browser/db/database_manager.h" 1665 #include "components/safe_browsing/core/browser/db/database_manager.h"
1769 #include "content/public/browser/web_contents.h" 1666 #include "content/public/browser/web_contents.h"
1770 #include "mojo/public/cpp/bindings/self_owned_receiver.h" 1667 #include "mojo/public/cpp/bindings/self_owned_receiver.h"
1771@@ -198,11 +200,13 @@ void ShareServiceImpl::Share(const std:: 1668@@ -182,11 +184,13 @@ void ShareServiceImpl::Share(const std::
1772
1773 // Check if at least one file is marked by the download protection service 1669 // Check if at least one file is marked by the download protection service
1774 // to send a ping to check this file type. 1670 // to send a ping to check this file type.
1671 const base::FilePath path = base::FilePath::FromUTF8Unsafe(file->name);
1775+#if BUILDFLAG(SAFE_BROWSING_AVAILABLE) 1672+#if BUILDFLAG(SAFE_BROWSING_AVAILABLE)
1776 if (!should_check_url && 1673 if (!should_check_url &&
1777 safe_browsing::FileTypePolicies::GetInstance()->IsCheckedBinaryFile( 1674 safe_browsing::FileTypePolicies::GetInstance()->IsCheckedBinaryFile(
@@ -1782,7 +1679,7 @@
1782 1679
1783 // In the case where the original blob handle was to a native file (of 1680 // In the case where the original blob handle was to a native file (of
1784 // unknown size), the serialized data does not contain an accurate file 1681 // unknown size), the serialized data does not contain an accurate file
1785@@ -212,6 +216,7 @@ void ShareServiceImpl::Share(const std:: 1682@@ -196,6 +200,7 @@ void ShareServiceImpl::Share(const std::
1786 } 1683 }
1787 1684
1788 DCHECK(!safe_browsing_request_); 1685 DCHECK(!safe_browsing_request_);
@@ -1790,7 +1687,7 @@
1790 if (should_check_url && g_browser_process->safe_browsing_service()) { 1687 if (should_check_url && g_browser_process->safe_browsing_service()) {
1791 safe_browsing_request_.emplace( 1688 safe_browsing_request_.emplace(
1792 g_browser_process->safe_browsing_service()->database_manager(), 1689 g_browser_process->safe_browsing_service()->database_manager(),
1793@@ -221,6 +226,7 @@ void ShareServiceImpl::Share(const std:: 1690@@ -205,6 +210,7 @@ void ShareServiceImpl::Share(const std::
1794 std::move(files), std::move(callback))); 1691 std::move(files), std::move(callback)));
1795 return; 1692 return;
1796 } 1693 }
@@ -1798,9 +1695,9 @@
1798 1695
1799 OnSafeBrowsingResultReceived(title, text, share_url, std::move(files), 1696 OnSafeBrowsingResultReceived(title, text, share_url, std::move(files),
1800 std::move(callback), 1697 std::move(callback),
1801--- a/chrome/test/BUILD.gn 1698--- chrome/test/BUILD.gn.orig
1802+++ b/chrome/test/BUILD.gn 1699+++ chrome/test/BUILD.gn
1803@@ -1283,7 +1283,6 @@ if (!is_android) { 1700@@ -1196,7 +1196,6 @@ if (!is_android && !is_fuchsia) {
1804 "//components/resources", 1701 "//components/resources",
1805 "//components/safe_browsing:buildflags", 1702 "//components/safe_browsing:buildflags",
1806 "//components/safe_browsing/content/browser", 1703 "//components/safe_browsing/content/browser",
@@ -1808,7 +1705,7 @@
1808 "//components/safe_browsing/content/browser:safe_browsing_service", 1705 "//components/safe_browsing/content/browser:safe_browsing_service",
1809 "//components/safe_browsing/content/browser/password_protection", 1706 "//components/safe_browsing/content/browser/password_protection",
1810 "//components/safe_browsing/content/browser/password_protection:test_support", 1707 "//components/safe_browsing/content/browser/password_protection:test_support",
1811@@ -5540,7 +5539,6 @@ test("unit_tests") { 1708@@ -5349,7 +5348,6 @@ test("unit_tests") {
1812 "//components/resources", 1709 "//components/resources",
1813 "//components/safe_browsing:buildflags", 1710 "//components/safe_browsing:buildflags",
1814 "//components/safe_browsing/content/browser", 1711 "//components/safe_browsing/content/browser",
@@ -1816,20 +1713,20 @@
1816 "//components/safe_browsing/content/browser/password_protection", 1713 "//components/safe_browsing/content/browser/password_protection",
1817 "//components/safe_browsing/content/browser/password_protection:mock_password_protection", 1714 "//components/safe_browsing/content/browser/password_protection:mock_password_protection",
1818 "//components/safe_browsing/content/browser/web_ui", 1715 "//components/safe_browsing/content/browser/web_ui",
1819--- a/components/password_manager/content/browser/content_password_manager_driver.cc 1716--- components/password_manager/content/browser/content_password_manager_driver.cc.orig
1820+++ b/components/password_manager/content/browser/content_password_manager_driver.cc 1717+++ components/password_manager/content/browser/content_password_manager_driver.cc
1821@@ -408,7 +408,7 @@ void ContentPasswordManagerDriver::Check 1718@@ -407,7 +407,7 @@ void ContentPasswordManagerDriver::Check
1822 if (!password_manager::bad_message::CheckFrameNotPrerendering( 1719 if (client_->GetMetricsRecorder()) {
1823 render_frame_host_)) 1720 client_->GetMetricsRecorder()->RecordUserFocusedPasswordField();
1824 return; 1721 }
1825-#if defined(ON_FOCUS_PING_ENABLED) 1722-#if defined(ON_FOCUS_PING_ENABLED)
1826+#if defined(ON_FOCUS_PING_ENABLED) && BUILDFLAG(FULL_SAFE_BROWSING) 1723+#if defined(ON_FOCUS_PING_ENABLED) && BUILDFLAG(FULL_SAFE_BROWSING)
1827 client_->CheckSafeBrowsingReputation(form_action, frame_url); 1724 client_->CheckSafeBrowsingReputation(form_action, frame_url);
1828 #endif 1725 #endif
1829 } 1726 }
1830--- a/components/password_manager/core/browser/password_manager_client.h 1727--- components/password_manager/core/browser/password_manager_client.h.orig
1831+++ b/components/password_manager/core/browser/password_manager_client.h 1728+++ components/password_manager/core/browser/password_manager_client.h
1832@@ -344,11 +344,14 @@ class PasswordManagerClient { 1729@@ -339,11 +339,14 @@ class PasswordManagerClient {
1833 // Returns the current best guess as to the page's display language. 1730 // Returns the current best guess as to the page's display language.
1834 virtual autofill::LanguageCode GetPageLanguage() const; 1731 virtual autofill::LanguageCode GetPageLanguage() const;
1835 1732
@@ -1845,7 +1742,7 @@
1845 // Checks the safe browsing reputation of the webpage when the 1742 // Checks the safe browsing reputation of the webpage when the
1846 // user focuses on a username/password field. This is used for reporting 1743 // user focuses on a username/password field. This is used for reporting
1847 // only, and won't trigger a warning. 1744 // only, and won't trigger a warning.
1848@@ -356,6 +359,7 @@ class PasswordManagerClient { 1745@@ -351,6 +354,7 @@ class PasswordManagerClient {
1849 const GURL& frame_url) = 0; 1746 const GURL& frame_url) = 0;
1850 #endif 1747 #endif
1851 1748
@@ -1853,7 +1750,7 @@
1853 // Checks the safe browsing reputation of the webpage where password reuse 1750 // Checks the safe browsing reputation of the webpage where password reuse
1854 // happens. This is called by the PasswordReuseDetectionManager when a 1751 // happens. This is called by the PasswordReuseDetectionManager when a
1855 // protected password is typed on the wrong domain. This may trigger a 1752 // protected password is typed on the wrong domain. This may trigger a
1856@@ -368,6 +372,7 @@ class PasswordManagerClient { 1753@@ -363,6 +367,7 @@ class PasswordManagerClient {
1857 const std::string& username, 1754 const std::string& username,
1858 const std::vector<MatchingReusedCredential>& matching_reused_credentials, 1755 const std::vector<MatchingReusedCredential>& matching_reused_credentials,
1859 bool password_field_exists) = 0; 1756 bool password_field_exists) = 0;
@@ -1861,8 +1758,8 @@
1861 1758
1862 // Records a Chrome Sync event that GAIA password reuse was detected. 1759 // Records a Chrome Sync event that GAIA password reuse was detected.
1863 virtual void LogPasswordReuseDetectedEvent() = 0; 1760 virtual void LogPasswordReuseDetectedEvent() = 0;
1864--- a/components/password_manager/core/browser/password_reuse_detection_manager.cc 1761--- components/password_manager/core/browser/password_reuse_detection_manager.cc.orig
1865+++ b/components/password_manager/core/browser/password_reuse_detection_manager.cc 1762+++ components/password_manager/core/browser/password_reuse_detection_manager.cc
1866@@ -161,9 +161,11 @@ void PasswordReuseDetectionManager::OnRe 1763@@ -161,9 +161,11 @@ void PasswordReuseDetectionManager::OnRe
1867 ? reused_protected_password_hash->username 1764 ? reused_protected_password_hash->username
1868 : ""; 1765 : "";
@@ -1875,8 +1772,19 @@
1875 } 1772 }
1876 1773
1877 void PasswordReuseDetectionManager::SetClockForTesting(base::Clock* clock) { 1774 void PasswordReuseDetectionManager::SetClockForTesting(base::Clock* clock) {
1878--- a/components/safe_browsing/content/common/proto/BUILD.gn 1775--- components/safe_browsing/content/browser/BUILD.gn.orig
1879+++ b/components/safe_browsing/content/common/proto/BUILD.gn 1776+++ components/safe_browsing/content/browser/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
1880@@ -5,8 +5,12 @@ 1788@@ -5,8 +5,12 @@
1881 import("//components/safe_browsing/buildflags.gni") 1789 import("//components/safe_browsing/buildflags.gni")
1882 import("//third_party/protobuf/proto_library.gni") 1790 import("//third_party/protobuf/proto_library.gni")
@@ -1892,8 +1800,8 @@
1892 } 1800 }
1893-} 1801-}
1894+# } 1802+# }
1895--- a/components/safe_browsing/content/common/safe_browsing.mojom 1803--- components/safe_browsing/content/common/safe_browsing.mojom.orig
1896+++ b/components/safe_browsing/content/common/safe_browsing.mojom 1804+++ components/safe_browsing/content/common/safe_browsing.mojom
1897@@ -120,7 +120,6 @@ enum PhishingDetectorResult { 1805@@ -120,7 +120,6 @@ enum PhishingDetectorResult {
1898 INVALID_SCORE = 4, 1806 INVALID_SCORE = 4,
1899 }; 1807 };
@@ -1902,20 +1810,9 @@
1902 // Interface for setting the CSD model and to start phishing classification. 1810 // Interface for setting the CSD model and to start phishing classification.
1903 interface PhishingDetector { 1811 interface PhishingDetector {
1904 // A classification model for client-side phishing detection. 1812 // A classification model for client-side phishing detection.
1905--- a/components/safe_browsing/core/browser/BUILD.gn 1813--- content/browser/file_system_access/safe_move_helper.cc.orig
1906+++ b/components/safe_browsing/core/browser/BUILD.gn 1814+++ content/browser/file_system_access/safe_move_helper.cc
1907@@ -11,8 +11,6 @@ source_set("browser") { 1815@@ -150,14 +150,8 @@ void SafeMoveHelper::Start(SafeMoveHelpe
1908 "safe_browsing_url_checker_impl.cc",
1909 "safe_browsing_url_checker_impl.h",
1910 "url_checker_delegate.h",
1911- "user_population.cc",
1912- "user_population.h",
1913 ]
1914
1915 public_deps = [ "//google_apis:google_apis" ]
1916--- a/content/browser/file_system_access/safe_move_helper.cc
1917+++ b/content/browser/file_system_access/safe_move_helper.cc
1918@@ -151,14 +151,8 @@ void SafeMoveHelper::Start(SafeMoveHelpe
1919 return; 1816 return;
1920 } 1817 }
1921 1818
@@ -1930,7 +1827,7 @@
1930 } 1827 }
1931 1828
1932 void SafeMoveHelper::ComputeHashForSourceFile(HashCallback callback) { 1829 void SafeMoveHelper::ComputeHashForSourceFile(HashCallback callback) {
1933@@ -178,38 +172,6 @@ void SafeMoveHelper::ComputeHashForSourc 1830@@ -177,38 +171,6 @@ void SafeMoveHelper::ComputeHashForSourc
1934 std::move(wrapped_callback), source_url())); 1831 std::move(wrapped_callback), source_url()));
1935 } 1832 }
1936 1833
@@ -1969,8 +1866,8 @@
1969 void SafeMoveHelper::DidAfterWriteCheck( 1866 void SafeMoveHelper::DidAfterWriteCheck(
1970 FileSystemAccessPermissionContext::AfterWriteCheckResult result) { 1867 FileSystemAccessPermissionContext::AfterWriteCheckResult result) {
1971 DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); 1868 DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
1972--- a/content/browser/file_system_access/safe_move_helper.h 1869--- content/browser/file_system_access/safe_move_helper.h.orig
1973+++ b/content/browser/file_system_access/safe_move_helper.h 1870+++ content/browser/file_system_access/safe_move_helper.h
1974@@ -52,9 +52,6 @@ class CONTENT_EXPORT SafeMoveHelper { 1871@@ -52,9 +52,6 @@ class CONTENT_EXPORT SafeMoveHelper {
1975 private: 1872 private:
1976 SEQUENCE_CHECKER(sequence_checker_); 1873 SEQUENCE_CHECKER(sequence_checker_);
@@ -1981,8 +1878,8 @@
1981 void DidAfterWriteCheck( 1878 void DidAfterWriteCheck(
1982 FileSystemAccessPermissionContext::AfterWriteCheckResult result); 1879 FileSystemAccessPermissionContext::AfterWriteCheckResult result);
1983 void DidFileSkipQuarantine(base::File::Error result); 1880 void DidFileSkipQuarantine(base::File::Error result);
1984--- a/content/public/browser/file_system_access_permission_context.h 1881--- content/public/browser/file_system_access_permission_context.h.orig
1985+++ b/content/public/browser/file_system_access_permission_context.h 1882+++ content/public/browser/file_system_access_permission_context.h
1986@@ -107,12 +107,6 @@ class FileSystemAccessPermissionContext 1883@@ -107,12 +107,6 @@ class FileSystemAccessPermissionContext
1987 base::OnceCallback<void(SensitiveDirectoryResult)> callback) = 0; 1884 base::OnceCallback<void(SensitiveDirectoryResult)> callback) = 0;
1988 1885
@@ -1996,9 +1893,9 @@
1996 1893
1997 // Returns whether the give |origin| already allows read permission, or it is 1894 // Returns whether the give |origin| already allows read permission, or it is
1998 // possible to request one. This is used to block file dialogs from being 1895 // possible to request one. This is used to block file dialogs from being
1999--- a/extensions/browser/updater/update_service.cc 1896--- extensions/browser/updater/update_service.cc.orig
2000+++ b/extensions/browser/updater/update_service.cc 1897+++ extensions/browser/updater/update_service.cc
2001@@ -122,13 +122,6 @@ void UpdateService::OnEvent(Events event 1898@@ -111,13 +111,6 @@ void UpdateService::OnEvent(Events event
2002 break; 1899 break;
2003 } 1900 }
2004 1901
@@ -2012,9 +1909,9 @@
2012 } 1909 }
2013 1910
2014 UpdateService::UpdateService( 1911 UpdateService::UpdateService(
2015--- a/weblayer/BUILD.gn 1912--- weblayer/BUILD.gn.orig
2016+++ b/weblayer/BUILD.gn 1913+++ weblayer/BUILD.gn
2017@@ -462,7 +462,6 @@ source_set("weblayer_lib_base") { 1914@@ -463,7 +463,6 @@ source_set("weblayer_lib_base") {
2018 "//components/prefs", 1915 "//components/prefs",
2019 "//components/profile_metrics", 1916 "//components/profile_metrics",
2020 "//components/safe_browsing/content/browser", 1917 "//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 623320f..74d5b79 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--- a/net/tools/transport_security_state_generator/transport_security_state_generator.cc 3--- net/tools/transport_security_state_generator/transport_security_state_generator.cc.orig
4+++ b/net/tools/transport_security_state_generator/transport_security_state_generator.cc 4+++ 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 f530f4e..0527dde 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,8 +2,8 @@
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--- a/android_webview/browser/aw_browser_context.cc 5--- android_webview/browser/aw_browser_context.cc.orig
6+++ b/android_webview/browser/aw_browser_context.cc 6+++ android_webview/browser/aw_browser_context.cc
7@@ -49,7 +49,6 @@ 7@@ -49,7 +49,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"
@@ -11,8 +11,8 @@
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/variations/variations_client.h" 14 #include "components/visitedlink/browser/visitedlink_writer.h"
15@@ -520,8 +519,6 @@ void AwBrowserContext::RebuildTable( 15@@ -470,8 +469,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--- a/chrome/app/settings_strings.grdp 24--- chrome/app/settings_strings.grdp.orig
25+++ b/chrome/app/settings_strings.grdp 25+++ chrome/app/settings_strings.grdp
26@@ -1800,69 +1800,9 @@ 26@@ -1591,78 +1591,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,6 +33,9 @@
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>
36- <message name="IDS_SETTINGS_SAFEBROWSING_ENABLE_REPORTING_DESC" desc="Description for extended safe browsing"> 39- <message name="IDS_SETTINGS_SAFEBROWSING_ENABLE_REPORTING_DESC" desc="Description for extended safe browsing">
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. 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.
38- </message> 41- </message>
@@ -51,6 +54,9 @@
51- <message name="IDS_SETTINGS_SAFEBROWSING_ENHANCED_BULLET_ONE" desc="First bullet point under the safe browsing enhanced protection mode"> 54- <message name="IDS_SETTINGS_SAFEBROWSING_ENHANCED_BULLET_ONE" desc="First bullet point under the safe browsing enhanced protection mode">
52- Predicts and warns you about dangerous events before they happen 55- Predicts and warns you about dangerous events before they happen
53- </message> 56- </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>
54- <message name="IDS_SETTINGS_SAFEBROWSING_ENHANCED_BULLET_THREE" desc="Third bullet point under the safe browsing enhanced protection mode"> 60- <message name="IDS_SETTINGS_SAFEBROWSING_ENHANCED_BULLET_THREE" desc="Third bullet point under the safe browsing enhanced protection mode">
55- Improves security for you and everyone on the web 61- Improves security for you and everyone on the web
56- </message> 62- </message>
@@ -64,7 +70,7 @@
64- Standard protection 70- Standard protection
65- </message> 71- </message>
66- <message name="IDS_SETTINGS_SAFEBROWSING_STANDARD_DESC" desc="Description for safe browsing standard protection mode"> 72- <message name="IDS_SETTINGS_SAFEBROWSING_STANDARD_DESC" desc="Description for safe browsing standard protection mode">
67- Standard protection against websites, downloads, and extensions that are known to be dangerous 73- Standard protection against websites, downloads, and extensions that are known to be dangerous.
68- </message> 74- </message>
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."> 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.">
70- Show standard protection details 76- Show standard protection details
@@ -72,6 +78,9 @@
72- <message name="IDS_SETTINGS_SAFEBROWSING_STANDARD_BULLET_ONE" desc="First bullet point under the safe browsing standard protection mode"> 78- <message name="IDS_SETTINGS_SAFEBROWSING_STANDARD_BULLET_ONE" desc="First bullet point under the safe browsing standard protection mode">
73- Detects and warns you about dangerous events when they happen 79- Detects and warns you about dangerous events when they happen
74- </message> 80- </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>
75- <message name="IDS_SETTINGS_SAFEBROWSING_STANDARD_HELP_IMPROVE" desc="The name of the toggle to enable reporting to help improve safe browsing"> 84- <message name="IDS_SETTINGS_SAFEBROWSING_STANDARD_HELP_IMPROVE" desc="The name of the toggle to enable reporting to help improve safe browsing">
76- Help improve security on the web for everyone 85- Help improve security on the web for everyone
77- </message> 86- </message>
@@ -93,9 +102,9 @@
93 <message name="IDS_SETTINGS_ENABLE_DO_NOT_TRACK" desc="The label of the checkbox to enable/disable sending the 'Do Not track' header"> 102 <message name="IDS_SETTINGS_ENABLE_DO_NOT_TRACK" desc="The label of the checkbox to enable/disable sending the 'Do Not track' header">
94 Send a "Do Not Track" request with your browsing traffic 103 Send a "Do Not Track" request with your browsing traffic
95 </message> 104 </message>
96--- a/chrome/browser/android/signin/signin_manager_android.cc 105--- chrome/browser/android/signin/signin_manager_android.cc.orig
97+++ b/chrome/browser/android/signin/signin_manager_android.cc 106+++ chrome/browser/android/signin/signin_manager_android.cc
98@@ -15,7 +15,6 @@ 107@@ -14,7 +14,6 @@
99 #include "chrome/android/chrome_jni_headers/SigninManagerImpl_jni.h" 108 #include "chrome/android/chrome_jni_headers/SigninManagerImpl_jni.h"
100 #include "chrome/common/pref_names.h" 109 #include "chrome/common/pref_names.h"
101 #include "components/prefs/pref_service.h" 110 #include "components/prefs/pref_service.h"
@@ -103,7 +112,7 @@
103 #include "google_apis/gaia/gaia_auth_util.h" 112 #include "google_apis/gaia/gaia_auth_util.h"
104 113
105 #include "base/android/callback_android.h" 114 #include "base/android/callback_android.h"
106@@ -31,7 +30,6 @@ 115@@ -30,7 +29,6 @@
107 #include "components/policy/core/browser/browser_policy_connector.h" 116 #include "components/policy/core/browser/browser_policy_connector.h"
108 #include "components/policy/core/common/cloud/user_cloud_policy_manager.h" 117 #include "components/policy/core/common/cloud/user_cloud_policy_manager.h"
109 #include "components/prefs/pref_service.h" 118 #include "components/prefs/pref_service.h"
@@ -111,7 +120,7 @@
111 #include "components/signin/public/identity_manager/accounts_cookie_mutator.h" 120 #include "components/signin/public/identity_manager/accounts_cookie_mutator.h"
112 #include "components/signin/public/identity_manager/identity_manager.h" 121 #include "components/signin/public/identity_manager/identity_manager.h"
113 #include "content/public/browser/browser_context.h" 122 #include "content/public/browser/browser_context.h"
114@@ -96,8 +94,6 @@ class ProfileDataRemover : public conten 123@@ -95,8 +93,6 @@ class ProfileDataRemover : public conten
115 // All the Profile data has been wiped. Clear the last signed in username 124 // All the Profile data has been wiped. Clear the last signed in username
116 // as well, so that the next signin doesn't trigger the account 125 // as well, so that the next signin doesn't trigger the account
117 // change dialog. 126 // change dialog.
@@ -120,7 +129,7 @@
120 } 129 }
121 130
122 origin_runner_->PostTask(FROM_HERE, std::move(callback_)); 131 origin_runner_->PostTask(FROM_HERE, std::move(callback_));
123@@ -133,11 +129,6 @@ SigninManagerAndroid::SigninManagerAndro 132@@ -132,11 +128,6 @@ SigninManagerAndroid::SigninManagerAndro
124 DCHECK(user_cloud_policy_manager_); 133 DCHECK(user_cloud_policy_manager_);
125 DCHECK(user_policy_signin_service_); 134 DCHECK(user_policy_signin_service_);
126 135
@@ -132,7 +141,7 @@
132 force_browser_signin_.Init(prefs::kForceBrowserSignin, 141 force_browser_signin_.Init(prefs::kForceBrowserSignin,
133 g_browser_process->local_state()); 142 g_browser_process->local_state());
134 143
135@@ -161,7 +152,7 @@ void SigninManagerAndroid::Shutdown() { 144@@ -160,7 +151,7 @@ void SigninManagerAndroid::Shutdown() {
136 } 145 }
137 146
138 bool SigninManagerAndroid::IsSigninAllowed() const { 147 bool SigninManagerAndroid::IsSigninAllowed() const {
@@ -141,11 +150,11 @@
141 } 150 }
142 151
143 jboolean SigninManagerAndroid::IsSigninAllowedByPolicy(JNIEnv* env) const { 152 jboolean SigninManagerAndroid::IsSigninAllowedByPolicy(JNIEnv* env) const {
144--- a/chrome/browser/android/signin/signin_manager_android.h 153--- chrome/browser/android/signin/signin_manager_android.h.orig
145+++ b/chrome/browser/android/signin/signin_manager_android.h 154+++ chrome/browser/android/signin/signin_manager_android.h
146@@ -117,9 +117,6 @@ class SigninManagerAndroid : public Keye 155@@ -117,9 +117,6 @@ class SigninManagerAndroid : public Keye
147 156
148 const raw_ptr<Profile> profile_ = nullptr; 157 Profile* const profile_ = nullptr;
149 158
150- // Handler for prefs::kSigninAllowed set in user's profile. 159- // Handler for prefs::kSigninAllowed set in user's profile.
151- BooleanPrefMember signin_allowed_; 160- BooleanPrefMember signin_allowed_;
@@ -153,8 +162,8 @@
153 // Handler for prefs::kForceBrowserSignin. This preference is set in Local 162 // Handler for prefs::kForceBrowserSignin. This preference is set in Local
154 // State, not in user prefs. 163 // State, not in user prefs.
155 BooleanPrefMember force_browser_signin_; 164 BooleanPrefMember force_browser_signin_;
156--- a/chrome/browser/ash/lock_screen_apps/lock_screen_profile_creator_impl.cc 165--- chrome/browser/ash/lock_screen_apps/lock_screen_profile_creator_impl.cc.orig
157+++ b/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
158@@ -18,7 +18,6 @@ 167@@ -18,7 +18,6 @@
159 #include "chrome/browser/profiles/profile_manager.h" 168 #include "chrome/browser/profiles/profile_manager.h"
160 #include "chrome/common/pref_names.h" 169 #include "chrome/common/pref_names.h"
@@ -172,18 +181,18 @@
172 return; 181 return;
173 } 182 }
174 183
175--- a/chrome/browser/ash/lock_screen_apps/lock_screen_profile_creator_impl_unittest.cc 184--- chrome/browser/ash/lock_screen_apps/lock_screen_profile_creator_impl_unittest.cc.orig
176+++ b/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
177@@ -37,7 +37,6 @@ 186@@ -37,7 +37,6 @@
178 #include "chromeos/dbus/dbus_thread_manager.h" 187 #include "components/arc/session/arc_session.h"
179 #include "components/crx_file/id_util.h" 188 #include "components/crx_file/id_util.h"
180 #include "components/prefs/pref_service.h" 189 #include "components/prefs/pref_service.h"
181-#include "components/safe_browsing/core/common/safe_browsing_prefs.h" 190-#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
182 #include "content/public/test/browser_task_environment.h" 191 #include "content/public/test/browser_task_environment.h"
183 #include "extensions/common/extension.h" 192 #include "extensions/common/extension.h"
184 #include "extensions/common/extension_builder.h" 193 #include "extensions/common/extension_builder.h"
185--- a/chrome/browser/ash/login/signin/device_id_browsertest.cc 194--- chrome/browser/ash/login/signin/device_id_browsertest.cc.orig
186+++ b/chrome/browser/ash/login/signin/device_id_browsertest.cc 195+++ chrome/browser/ash/login/signin/device_id_browsertest.cc
187@@ -24,7 +24,6 @@ 196@@ -24,7 +24,6 @@
188 #include "chrome/common/chrome_switches.h" 197 #include "chrome/common/chrome_switches.h"
189 #include "chrome/test/base/in_process_browser_test.h" 198 #include "chrome/test/base/in_process_browser_test.h"
@@ -192,7 +201,7 @@
192 #include "components/user_manager/known_user.h" 201 #include "components/user_manager/known_user.h"
193 #include "components/user_manager/user_manager.h" 202 #include "components/user_manager/user_manager.h"
194 #include "content/public/test/browser_test.h" 203 #include "content/public/test/browser_test.h"
195@@ -248,15 +247,6 @@ IN_PROC_BROWSER_TEST_F(DeviceIDTest, PRE 204@@ -249,15 +248,6 @@ IN_PROC_BROWSER_TEST_F(DeviceIDTest, PRE
196 SignInOnline(FakeGaiaMixin::kFakeUserEmail, FakeGaiaMixin::kFakeUserPassword, 205 SignInOnline(FakeGaiaMixin::kFakeUserEmail, FakeGaiaMixin::kFakeUserPassword,
197 kRefreshToken1, FakeGaiaMixin::kFakeUserGaiaId); 206 kRefreshToken1, FakeGaiaMixin::kFakeUserGaiaId);
198 207
@@ -208,7 +217,7 @@
208 // Can't use SetKnownUserDeviceId here, because it forbids changing a device 217 // Can't use SetKnownUserDeviceId here, because it forbids changing a device
209 // ID. 218 // ID.
210 user_manager::known_user::SetStringPref( 219 user_manager::known_user::SetStringPref(
211@@ -281,13 +271,6 @@ IN_PROC_BROWSER_TEST_F(DeviceIDTest, PRE 220@@ -282,13 +272,6 @@ IN_PROC_BROWSER_TEST_F(DeviceIDTest, PRE
212 SignInOnline(FakeGaiaMixin::kFakeUserEmail, FakeGaiaMixin::kFakeUserPassword, 221 SignInOnline(FakeGaiaMixin::kFakeUserEmail, FakeGaiaMixin::kFakeUserPassword,
213 kRefreshToken1, FakeGaiaMixin::kFakeUserGaiaId); 222 kRefreshToken1, FakeGaiaMixin::kFakeUserGaiaId);
214 223
@@ -222,9 +231,9 @@
222 // Can't use SetKnownUserDeviceId here, because it forbids changing a device 231 // Can't use SetKnownUserDeviceId here, because it forbids changing a device
223 // ID. 232 // ID.
224 user_manager::known_user::SetStringPref( 233 user_manager::known_user::SetStringPref(
225--- a/chrome/browser/chrome_content_browser_client.cc 234--- chrome/browser/chrome_content_browser_client.cc.orig
226+++ b/chrome/browser/chrome_content_browser_client.cc 235+++ chrome/browser/chrome_content_browser_client.cc
227@@ -233,7 +233,6 @@ 236@@ -225,7 +225,6 @@
228 #include "components/safe_browsing/core/browser/realtime/url_lookup_service.h" 237 #include "components/safe_browsing/core/browser/realtime/url_lookup_service.h"
229 #include "components/safe_browsing/core/browser/url_checker_delegate.h" 238 #include "components/safe_browsing/core/browser/url_checker_delegate.h"
230 #include "components/safe_browsing/core/common/features.h" 239 #include "components/safe_browsing/core/common/features.h"
@@ -232,8 +241,8 @@
232 #include "components/security_interstitials/content/insecure_form_navigation_throttle.h" 241 #include "components/security_interstitials/content/insecure_form_navigation_throttle.h"
233 #include "components/security_interstitials/content/origin_policy_ui.h" 242 #include "components/security_interstitials/content/origin_policy_ui.h"
234 #include "components/security_interstitials/content/ssl_cert_reporter.h" 243 #include "components/security_interstitials/content/ssl_cert_reporter.h"
235--- a/chrome/browser/download/download_browsertest.cc 244--- chrome/browser/download/download_browsertest.cc.orig
236+++ b/chrome/browser/download/download_browsertest.cc 245+++ chrome/browser/download/download_browsertest.cc
237@@ -103,7 +103,6 @@ 246@@ -103,7 +103,6 @@
238 #include "components/safe_browsing/content/browser/safe_browsing_service_interface.h" 247 #include "components/safe_browsing/content/browser/safe_browsing_service_interface.h"
239 #include "components/safe_browsing/content/common/proto/download_file_types.pb.h" 248 #include "components/safe_browsing/content/common/proto/download_file_types.pb.h"
@@ -242,9 +251,9 @@
242 #include "components/security_state/core/features.h" 251 #include "components/security_state/core/features.h"
243 #include "components/security_state/core/security_state.h" 252 #include "components/security_state/core/security_state.h"
244 #include "components/services/quarantine/test_support.h" 253 #include "components/services/quarantine/test_support.h"
245--- a/chrome/browser/download/download_item_model.cc 254--- chrome/browser/download/download_item_model.cc.orig
246+++ b/chrome/browser/download/download_item_model.cc 255+++ chrome/browser/download/download_item_model.cc
247@@ -790,6 +790,7 @@ void DownloadItemModel::ExecuteCommand(D 256@@ -783,6 +783,7 @@ void DownloadItemModel::ExecuteCommand(D
248 DownloadUIModel::ExecuteCommand(download_commands, command); 257 DownloadUIModel::ExecuteCommand(download_commands, command);
249 break; 258 break;
250 case DownloadCommands::DEEP_SCAN: 259 case DownloadCommands::DEEP_SCAN:
@@ -252,7 +261,7 @@
252 safe_browsing::SafeBrowsingService* sb_service = 261 safe_browsing::SafeBrowsingService* sb_service =
253 g_browser_process->safe_browsing_service(); 262 g_browser_process->safe_browsing_service();
254 if (!sb_service) 263 if (!sb_service)
255@@ -815,6 +816,7 @@ void DownloadItemModel::ExecuteCommand(D 264@@ -808,6 +809,7 @@ void DownloadItemModel::ExecuteCommand(D
256 safe_browsing::DeepScanningRequest::DeepScanTrigger:: 265 safe_browsing::DeepScanningRequest::DeepScanTrigger::
257 TRIGGER_APP_PROMPT, 266 TRIGGER_APP_PROMPT,
258 safe_browsing::DownloadCheckResult::UNKNOWN, std::move(settings)); 267 safe_browsing::DownloadCheckResult::UNKNOWN, std::move(settings));
@@ -260,8 +269,8 @@
260 break; 269 break;
261 } 270 }
262 } 271 }
263--- a/chrome/browser/enterprise/connectors/analysis/content_analysis_delegate.cc 272--- chrome/browser/enterprise/connectors/analysis/content_analysis_delegate.cc.orig
264+++ b/chrome/browser/enterprise/connectors/analysis/content_analysis_delegate.cc 273+++ chrome/browser/enterprise/connectors/analysis/content_analysis_delegate.cc
265@@ -38,7 +38,6 @@ 274@@ -38,7 +38,6 @@
266 #include "components/policy/core/common/chrome_schema.h" 275 #include "components/policy/core/common/chrome_schema.h"
267 #include "components/prefs/pref_service.h" 276 #include "components/prefs/pref_service.h"
@@ -270,33 +279,35 @@
270 #include "components/url_matcher/url_matcher.h" 279 #include "components/url_matcher/url_matcher.h"
271 #include "content/public/browser/web_contents.h" 280 #include "content/public/browser/web_contents.h"
272 #include "crypto/secure_hash.h" 281 #include "crypto/secure_hash.h"
273--- a/chrome/browser/enterprise/connectors/connectors_manager.cc 282--- chrome/browser/enterprise/connectors/connectors_manager.cc.orig
274+++ b/chrome/browser/enterprise/connectors/connectors_manager.cc 283+++ chrome/browser/enterprise/connectors/connectors_manager.cc
275@@ -6,12 +6,12 @@ 284@@ -6,6 +6,7 @@
276 285
277 #include <memory> 286 #include <memory>
278 287
279+#include "base/bind.h" 288+#include "base/bind.h"
280 #include "base/feature_list.h" 289 #include "base/feature_list.h"
290 #include "base/no_destructor.h"
281 #include "base/values.h" 291 #include "base/values.h"
282 #include "chrome/browser/browser_process.h" 292@@ -13,7 +14,6 @@
283 #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"
284 #include "components/prefs/pref_service.h" 295 #include "components/prefs/pref_service.h"
285-#include "components/safe_browsing/core/common/safe_browsing_prefs.h" 296-#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
286 #include "components/url_matcher/url_matcher.h" 297 #include "components/url_matcher/url_matcher.h"
287 #include "url/gurl.h" 298 #include "url/gurl.h"
288 299
289--- a/chrome/browser/enterprise/connectors/connectors_service.cc 300--- chrome/browser/enterprise/connectors/connectors_service.cc.orig
290+++ b/chrome/browser/enterprise/connectors/connectors_service.cc 301+++ chrome/browser/enterprise/connectors/connectors_service.cc
291@@ -37,7 +37,6 @@ 302@@ -36,7 +36,6 @@
292 #include "components/policy/core/common/cloud/machine_level_user_cloud_policy_store.h" 303 #include "components/policy/core/common/cloud/machine_level_user_cloud_policy_store.h"
293 #include "components/policy/core/common/cloud/user_cloud_policy_manager.h" 304 #include "components/policy/core/common/cloud/user_cloud_policy_manager.h"
294 #include "components/policy/core/common/policy_types.h" 305 #include "components/policy/core/common/policy_types.h"
295-#include "components/safe_browsing/core/common/safe_browsing_prefs.h" 306-#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
296 #include "components/signin/public/base/consent_level.h" 307 #include "components/signin/public/identity_manager/consent_level.h"
297 #include "components/signin/public/identity_manager/identity_manager.h" 308 #include "components/signin/public/identity_manager/identity_manager.h"
298 #include "components/user_prefs/user_prefs.h" 309 #include "components/user_prefs/user_prefs.h"
299@@ -390,8 +389,7 @@ std::string ConnectorsService::GetManage 310@@ -406,8 +405,7 @@ std::string ConnectorsService::GetManage
300 311
301 absl::optional<policy::PolicyScope> scope = absl::nullopt; 312 absl::optional<policy::PolicyScope> scope = absl::nullopt;
302 for (const char* scope_pref : 313 for (const char* scope_pref :
@@ -305,8 +316,8 @@
305+ {ConnectorScopePref(AnalysisConnector::FILE_ATTACHED), 316+ {ConnectorScopePref(AnalysisConnector::FILE_ATTACHED),
306 ConnectorScopePref(AnalysisConnector::FILE_DOWNLOADED), 317 ConnectorScopePref(AnalysisConnector::FILE_DOWNLOADED),
307 ConnectorScopePref(AnalysisConnector::BULK_DATA_ENTRY), 318 ConnectorScopePref(AnalysisConnector::BULK_DATA_ENTRY),
308 ConnectorScopePref(AnalysisConnector::PRINT), 319 ConnectorScopePref(ReportingConnector::SECURITY_EVENT)}) {
309@@ -443,20 +441,6 @@ std::string ConnectorsService::GetManage 320@@ -458,20 +456,6 @@ std::string ConnectorsService::GetManage
310 321
311 absl::optional<std::string> ConnectorsService::GetDMTokenForRealTimeUrlCheck() 322 absl::optional<std::string> ConnectorsService::GetDMTokenForRealTimeUrlCheck()
312 const { 323 const {
@@ -327,9 +338,9 @@
327 return absl::nullopt; 338 return absl::nullopt;
328 } 339 }
329 340
330--- a/chrome/browser/enterprise/connectors/connectors_service.h 341--- chrome/browser/enterprise/connectors/connectors_service.h.orig
331+++ b/chrome/browser/enterprise/connectors/connectors_service.h 342+++ chrome/browser/enterprise/connectors/connectors_service.h
332@@ -15,7 +15,6 @@ 343@@ -13,7 +13,6 @@
333 #include "components/keyed_service/content/browser_context_keyed_service_factory.h" 344 #include "components/keyed_service/content/browser_context_keyed_service_factory.h"
334 #include "components/keyed_service/core/keyed_service.h" 345 #include "components/keyed_service/core/keyed_service.h"
335 #include "components/policy/core/common/policy_types.h" 346 #include "components/policy/core/common/policy_types.h"
@@ -337,9 +348,9 @@
337 #include "content/public/browser/browser_context.h" 348 #include "content/public/browser/browser_context.h"
338 349
339 namespace base { 350 namespace base {
340--- a/chrome/browser/enterprise/signals/context_info_fetcher.cc 351--- chrome/browser/enterprise/signals/context_info_fetcher.cc.orig
341+++ b/chrome/browser/enterprise/signals/context_info_fetcher.cc 352+++ chrome/browser/enterprise/signals/context_info_fetcher.cc
342@@ -218,11 +218,6 @@ void ContextInfoFetcher::Fetch(ContextIn 353@@ -183,11 +183,6 @@ void ContextInfoFetcher::Fetch(ContextIn
343 info.third_party_blocking_enabled = 354 info.third_party_blocking_enabled =
344 utils::GetThirdPartyBlockingEnabled(g_browser_process->local_state()); 355 utils::GetThirdPartyBlockingEnabled(g_browser_process->local_state());
345 356
@@ -349,19 +360,19 @@
349- info.password_protection_warning_trigger = 360- info.password_protection_warning_trigger =
350- utils::GetPasswordProtectionWarningTrigger(profile->GetPrefs()); 361- utils::GetPasswordProtectionWarningTrigger(profile->GetPrefs());
351 362
352 #if BUILDFLAG(IS_WIN) 363 #if defined(OS_WIN)
353 base::ThreadPool::CreateCOMSTATaskRunner({base::MayBlock()}) 364 base::ThreadPool::CreateCOMSTATaskRunner({base::MayBlock()})
354--- a/chrome/browser/enterprise/signals/context_info_fetcher.h 365--- chrome/browser/enterprise/signals/context_info_fetcher.h.orig
355+++ b/chrome/browser/enterprise/signals/context_info_fetcher.h 366+++ chrome/browser/enterprise/signals/context_info_fetcher.h
356@@ -13,7 +13,6 @@ 367@@ -12,7 +12,6 @@
357 #include "base/memory/raw_ptr.h" 368 #include "base/callback_forward.h"
358 #include "build/build_config.h" 369 #include "build/build_config.h"
359 #include "chrome/browser/enterprise/signals/signals_common.h" 370 #include "chrome/browser/enterprise/signals/signals_common.h"
360-#include "components/safe_browsing/core/common/safe_browsing_prefs.h" 371-#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
361 372
362 namespace content { 373 namespace content {
363 class BrowserContext; 374 class BrowserContext;
364@@ -40,11 +39,8 @@ struct ContextInfo { 375@@ -39,11 +38,8 @@ struct ContextInfo {
365 std::vector<std::string> on_bulk_data_entry_providers; 376 std::vector<std::string> on_bulk_data_entry_providers;
366 std::vector<std::string> on_security_event_providers; 377 std::vector<std::string> on_security_event_providers;
367 std::string browser_version; 378 std::string browser_version;
@@ -373,18 +384,18 @@
373 absl::optional<bool> chrome_cleanup_enabled; 384 absl::optional<bool> chrome_cleanup_enabled;
374 bool chrome_remote_desktop_app_blocked; 385 bool chrome_remote_desktop_app_blocked;
375 absl::optional<bool> third_party_blocking_enabled; 386 absl::optional<bool> third_party_blocking_enabled;
376--- a/chrome/browser/enterprise/signals/signals_utils.cc 387--- chrome/browser/enterprise/signals/signals_utils.cc.orig
377+++ b/chrome/browser/enterprise/signals/signals_utils.cc 388+++ chrome/browser/enterprise/signals/signals_utils.cc
378@@ -10,7 +10,6 @@ 389@@ -10,7 +10,6 @@
379 #include "components/policy/content/policy_blocklist_service.h" 390 #include "components/policy/content/policy_blocklist_service.h"
380 #include "components/policy/core/browser/url_blocklist_manager.h" 391 #include "components/policy/core/browser/url_blocklist_manager.h"
381 #include "components/prefs/pref_service.h" 392 #include "components/prefs/pref_service.h"
382-#include "components/safe_browsing/core/common/safe_browsing_prefs.h" 393-#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
383 394
384 #if BUILDFLAG(IS_WIN) 395 #if defined(OS_WIN)
385 #include "components/component_updater/pref_names.h" 396 #include "components/component_updater/pref_names.h"
386--- a/chrome/browser/enterprise/signals/signals_utils.h 397--- chrome/browser/enterprise/signals/signals_utils.h.orig
387+++ b/chrome/browser/enterprise/signals/signals_utils.h 398+++ chrome/browser/enterprise/signals/signals_utils.h
388@@ -5,8 +5,6 @@ 399@@ -5,8 +5,6 @@
389 #ifndef CHROME_BROWSER_ENTERPRISE_SIGNALS_SIGNALS_UTILS_H_ 400 #ifndef CHROME_BROWSER_ENTERPRISE_SIGNALS_SIGNALS_UTILS_H_
390 #define CHROME_BROWSER_ENTERPRISE_SIGNALS_SIGNALS_UTILS_H_ 401 #define CHROME_BROWSER_ENTERPRISE_SIGNALS_SIGNALS_UTILS_H_
@@ -394,8 +405,8 @@
394 #include "third_party/abseil-cpp/absl/types/optional.h" 405 #include "third_party/abseil-cpp/absl/types/optional.h"
395 406
396 class PolicyBlocklistService; 407 class PolicyBlocklistService;
397--- a/chrome/browser/extensions/api/enterprise_reporting_private/enterprise_reporting_private_api.cc 408--- chrome/browser/extensions/api/enterprise_reporting_private/enterprise_reporting_private_api.cc.orig
398+++ b/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
399@@ -77,45 +77,10 @@ api::enterprise_reporting_private::Conte 410@@ -77,45 +77,10 @@ api::enterprise_reporting_private::Conte
400 info.browser_version = std::move(signals.browser_version); 411 info.browser_version = std::move(signals.browser_version);
401 info.built_in_dns_client_enabled = signals.built_in_dns_client_enabled; 412 info.built_in_dns_client_enabled = signals.built_in_dns_client_enabled;
@@ -446,9 +457,9 @@
446 457
447 return info; 458 return info;
448 } 459 }
449--- a/chrome/browser/extensions/api/identity/identity_apitest.cc 460--- chrome/browser/extensions/api/identity/identity_apitest.cc.orig
450+++ b/chrome/browser/extensions/api/identity/identity_apitest.cc 461+++ chrome/browser/extensions/api/identity/identity_apitest.cc
451@@ -57,7 +57,6 @@ 462@@ -56,7 +56,6 @@
452 #include "components/prefs/pref_service.h" 463 #include "components/prefs/pref_service.h"
453 #include "components/signin/core/browser/account_reconcilor.h" 464 #include "components/signin/core/browser/account_reconcilor.h"
454 #include "components/signin/public/base/list_accounts_test_utils.h" 465 #include "components/signin/public/base/list_accounts_test_utils.h"
@@ -456,9 +467,9 @@
456 #include "components/signin/public/base/signin_switches.h" 467 #include "components/signin/public/base/signin_switches.h"
457 #include "components/signin/public/identity_manager/accounts_mutator.h" 468 #include "components/signin/public/identity_manager/accounts_mutator.h"
458 #include "components/signin/public/identity_manager/identity_manager.h" 469 #include "components/signin/public/identity_manager/identity_manager.h"
459--- a/chrome/browser/extensions/api/identity/identity_get_auth_token_function.cc 470--- chrome/browser/extensions/api/identity/identity_get_auth_token_function.cc.orig
460+++ b/chrome/browser/extensions/api/identity/identity_get_auth_token_function.cc 471+++ chrome/browser/extensions/api/identity/identity_get_auth_token_function.cc
461@@ -29,7 +29,6 @@ 472@@ -30,7 +30,6 @@
462 #include "chrome/common/channel_info.h" 473 #include "chrome/common/channel_info.h"
463 #include "chrome/common/extensions/api/identity.h" 474 #include "chrome/common/extensions/api/identity.h"
464 #include "components/prefs/pref_service.h" 475 #include "components/prefs/pref_service.h"
@@ -466,7 +477,7 @@
466 #include "components/signin/public/base/signin_switches.h" 477 #include "components/signin/public/base/signin_switches.h"
467 #include "components/signin/public/identity_manager/access_token_info.h" 478 #include "components/signin/public/identity_manager/access_token_info.h"
468 #include "components/signin/public/identity_manager/accounts_in_cookie_jar_info.h" 479 #include "components/signin/public/identity_manager/accounts_in_cookie_jar_info.h"
469@@ -63,7 +62,7 @@ const char* const kExtensionsIdentityAPI 480@@ -64,7 +63,7 @@ const char* const kExtensionsIdentityAPI
470 "extensions_identity_api"; 481 "extensions_identity_api";
471 482
472 bool IsBrowserSigninAllowed(Profile* profile) { 483 bool IsBrowserSigninAllowed(Profile* profile) {
@@ -475,8 +486,8 @@
475 } 486 }
476 487
477 std::string GetOAuth2MintTokenFlowVersion() { 488 std::string GetOAuth2MintTokenFlowVersion() {
478--- a/chrome/browser/extensions/api/preference/preference_api.cc 489--- chrome/browser/extensions/api/preference/preference_api.cc.orig
479+++ b/chrome/browser/extensions/api/preference/preference_api.cc 490+++ chrome/browser/extensions/api/preference/preference_api.cc
480@@ -35,7 +35,6 @@ 491@@ -35,7 +35,6 @@
481 #include "components/prefs/pref_service.h" 492 #include "components/prefs/pref_service.h"
482 #include "components/privacy_sandbox/privacy_sandbox_prefs.h" 493 #include "components/privacy_sandbox/privacy_sandbox_prefs.h"
@@ -484,8 +495,8 @@
484-#include "components/safe_browsing/core/common/safe_browsing_prefs.h" 495-#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
485 #include "components/spellcheck/browser/pref_names.h" 496 #include "components/spellcheck/browser/pref_names.h"
486 #include "components/translate/core/browser/translate_pref_names.h" 497 #include "components/translate/core/browser/translate_pref_names.h"
487 #include "extensions/browser/api/content_settings/content_settings_service.h" 498 #include "extensions/browser/extension_pref_value_map.h"
488@@ -110,11 +109,6 @@ const PrefMappingEntry kPrefMapping[] = 499@@ -109,11 +108,6 @@ const PrefMappingEntry kPrefMapping[] =
489 APIPermissionID::kPrivacy}, 500 APIPermissionID::kPrivacy},
490 {"doNotTrackEnabled", prefs::kEnableDoNotTrack, APIPermissionID::kPrivacy, 501 {"doNotTrackEnabled", prefs::kEnableDoNotTrack, APIPermissionID::kPrivacy,
491 APIPermissionID::kPrivacy}, 502 APIPermissionID::kPrivacy},
@@ -497,7 +508,7 @@
497 {"searchSuggestEnabled", prefs::kSearchSuggestEnabled, 508 {"searchSuggestEnabled", prefs::kSearchSuggestEnabled,
498 APIPermissionID::kPrivacy, APIPermissionID::kPrivacy}, 509 APIPermissionID::kPrivacy, APIPermissionID::kPrivacy},
499 {"spellingServiceEnabled", spellcheck::prefs::kSpellCheckUseSpellingService, 510 {"spellingServiceEnabled", spellcheck::prefs::kSpellCheckUseSpellingService,
500@@ -845,18 +839,6 @@ ExtensionFunction::ResponseAction SetPre 511@@ -844,18 +838,6 @@ ExtensionFunction::ResponseAction SetPre
501 base::Value(browser_pref_value->GetBool())); 512 base::Value(browser_pref_value->GetBool()));
502 } 513 }
503 514
@@ -516,7 +527,7 @@
516 preference_api->SetExtensionControlledPref( 527 preference_api->SetExtensionControlledPref(
517 extension_id(), browser_pref, scope, 528 extension_id(), browser_pref, scope,
518 base::Value::FromUniquePtrValue(std::move(browser_pref_value))); 529 base::Value::FromUniquePtrValue(std::move(browser_pref_value)));
519@@ -909,18 +891,6 @@ ExtensionFunction::ResponseAction ClearP 530@@ -908,18 +890,6 @@ ExtensionFunction::ResponseAction ClearP
520 PreferenceAPI::Get(browser_context()) 531 PreferenceAPI::Get(browser_context())
521 ->RemoveExtensionControlledPref(extension_id(), browser_pref, scope); 532 ->RemoveExtensionControlledPref(extension_id(), browser_pref, scope);
522 533
@@ -535,9 +546,9 @@
535 return RespondNow(NoArguments()); 546 return RespondNow(NoArguments());
536 } 547 }
537 548
538--- a/chrome/browser/extensions/api/preference/preference_apitest.cc 549--- chrome/browser/extensions/api/preference/preference_apitest.cc.orig
539+++ b/chrome/browser/extensions/api/preference/preference_apitest.cc 550+++ chrome/browser/extensions/api/preference/preference_apitest.cc
540@@ -31,7 +31,6 @@ 551@@ -28,7 +28,6 @@
541 #include "components/keep_alive_registry/scoped_keep_alive.h" 552 #include "components/keep_alive_registry/scoped_keep_alive.h"
542 #include "components/password_manager/core/common/password_manager_pref_names.h" 553 #include "components/password_manager/core/common/password_manager_pref_names.h"
543 #include "components/prefs/pref_service.h" 554 #include "components/prefs/pref_service.h"
@@ -545,43 +556,43 @@
545 #include "components/translate/core/browser/translate_pref_names.h" 556 #include "components/translate/core/browser/translate_pref_names.h"
546 #include "content/public/browser/notification_service.h" 557 #include "content/public/browser/notification_service.h"
547 #include "content/public/test/browser_test.h" 558 #include "content/public/test/browser_test.h"
548@@ -86,7 +85,6 @@ class ExtensionPreferenceApiTest 559@@ -73,7 +72,6 @@ class ExtensionPreferenceApiTest : publi
549 prefs->GetInteger(prefetch::prefs::kNetworkPredictionOptions)); 560 prefs->GetInteger(prefs::kNetworkPredictionOptions));
550 EXPECT_TRUE( 561 EXPECT_TRUE(
551 prefs->GetBoolean(password_manager::prefs::kCredentialsEnableService)); 562 prefs->GetBoolean(password_manager::prefs::kCredentialsEnableService));
552- EXPECT_TRUE(prefs->GetBoolean(prefs::kSafeBrowsingEnabled)); 563- EXPECT_TRUE(prefs->GetBoolean(prefs::kSafeBrowsingEnabled));
553 EXPECT_TRUE(prefs->GetBoolean(prefs::kSearchSuggestEnabled)); 564 EXPECT_TRUE(prefs->GetBoolean(prefs::kSearchSuggestEnabled));
554 } 565 }
555 566
556@@ -112,7 +110,6 @@ class ExtensionPreferenceApiTest 567@@ -99,7 +97,6 @@ class ExtensionPreferenceApiTest : publi
557 prefs->GetInteger(prefetch::prefs::kNetworkPredictionOptions)); 568 prefs->GetInteger(prefs::kNetworkPredictionOptions));
558 EXPECT_FALSE( 569 EXPECT_FALSE(
559 prefs->GetBoolean(password_manager::prefs::kCredentialsEnableService)); 570 prefs->GetBoolean(password_manager::prefs::kCredentialsEnableService));
560- EXPECT_FALSE(prefs->GetBoolean(prefs::kSafeBrowsingEnabled)); 571- EXPECT_FALSE(prefs->GetBoolean(prefs::kSafeBrowsingEnabled));
561 EXPECT_FALSE(prefs->GetBoolean(prefs::kSearchSuggestEnabled)); 572 EXPECT_FALSE(prefs->GetBoolean(prefs::kSearchSuggestEnabled));
562 } 573 }
563 574
564@@ -185,7 +182,6 @@ IN_PROC_BROWSER_TEST_P(ExtensionPreferen 575@@ -163,7 +160,6 @@ IN_PROC_BROWSER_TEST_F(ExtensionPreferen
565 prefetch::prefs::kNetworkPredictionOptions, 576 prefs->SetInteger(prefs::kNetworkPredictionOptions,
566 static_cast<int>(prefetch::NetworkPredictionOptions::kDisabled)); 577 chrome_browser_net::NETWORK_PREDICTION_NEVER);
567 prefs->SetBoolean(password_manager::prefs::kCredentialsEnableService, false); 578 prefs->SetBoolean(password_manager::prefs::kCredentialsEnableService, false);
568- prefs->SetBoolean(prefs::kSafeBrowsingEnabled, false); 579- prefs->SetBoolean(prefs::kSafeBrowsingEnabled, false);
569 prefs->SetBoolean(prefs::kSearchSuggestEnabled, false); 580 prefs->SetBoolean(prefs::kSearchSuggestEnabled, false);
570 prefs->SetString(prefs::kWebRTCIPHandlingPolicy, 581 prefs->SetString(prefs::kWebRTCIPHandlingPolicy,
571 blink::kWebRTCIPHandlingDefaultPublicInterfaceOnly); 582 blink::kWebRTCIPHandlingDefaultPublicInterfaceOnly);
572--- a/chrome/browser/extensions/api/safe_browsing_private/safe_browsing_private_event_router.cc 583--- chrome/browser/extensions/api/safe_browsing_private/safe_browsing_private_event_router.cc.orig
573+++ b/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
574@@ -37,7 +37,6 @@ 585@@ -36,7 +36,6 @@
575 #include "components/policy/core/common/cloud/user_cloud_policy_manager.h" 586 #include "components/policy/core/common/cloud/user_cloud_policy_manager.h"
576 #include "components/prefs/pref_service.h" 587 #include "components/prefs/pref_service.h"
577 #include "components/safe_browsing/content/browser/web_ui/safe_browsing_ui.h" 588 #include "components/safe_browsing/content/browser/web_ui/safe_browsing_ui.h"
578-#include "components/safe_browsing/core/common/safe_browsing_prefs.h" 589-#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
579 #include "components/signin/public/identity_manager/identity_manager.h" 590 #include "components/signin/public/identity_manager/identity_manager.h"
580 #include "components/url_matcher/url_matcher.h" 591 #include "content/public/browser/browser_context.h"
581 #include "components/url_matcher/url_util.h" 592 #include "extensions/browser/event_router.h"
582--- a/chrome/browser/extensions/api/safe_browsing_private/safe_browsing_private_event_router_unittest.cc 593--- chrome/browser/extensions/api/safe_browsing_private/safe_browsing_private_event_router_unittest.cc.orig
583+++ b/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
584@@ -36,7 +36,6 @@ 595@@ -35,7 +35,6 @@
585 #include "components/policy/core/common/cloud/mock_cloud_policy_client.h" 596 #include "components/policy/core/common/cloud/mock_cloud_policy_client.h"
586 #include "components/policy/core/common/cloud/realtime_reporting_job_configuration.h" 597 #include "components/policy/core/common/cloud/realtime_reporting_job_configuration.h"
587 #include "components/safe_browsing/core/common/features.h" 598 #include "components/safe_browsing/core/common/features.h"
@@ -589,8 +600,8 @@
589 #include "components/signin/public/identity_manager/identity_test_environment.h" 600 #include "components/signin/public/identity_manager/identity_test_environment.h"
590 #include "content/public/test/browser_task_environment.h" 601 #include "content/public/test/browser_task_environment.h"
591 #include "extensions/browser/test_event_router.h" 602 #include "extensions/browser/test_event_router.h"
592--- a/chrome/browser/extensions/api/settings_private/prefs_util.cc 603--- chrome/browser/extensions/api/settings_private/prefs_util.cc.orig
593+++ b/chrome/browser/extensions/api/settings_private/prefs_util.cc 604+++ chrome/browser/extensions/api/settings_private/prefs_util.cc
594@@ -43,7 +43,6 @@ 605@@ -43,7 +43,6 @@
595 #include "components/prefs/pref_service.h" 606 #include "components/prefs/pref_service.h"
596 #include "components/privacy_sandbox/privacy_sandbox_prefs.h" 607 #include "components/privacy_sandbox/privacy_sandbox_prefs.h"
@@ -599,7 +610,7 @@
599 #include "components/search_engines/default_search_manager.h" 610 #include "components/search_engines/default_search_manager.h"
600 #include "components/spellcheck/browser/pref_names.h" 611 #include "components/spellcheck/browser/pref_names.h"
601 #include "components/translate/core/browser/translate_pref_names.h" 612 #include "components/translate/core/browser/translate_pref_names.h"
602@@ -292,16 +291,6 @@ const PrefsUtil::TypedPrefMap& PrefsUtil 613@@ -283,16 +282,6 @@ const PrefsUtil::TypedPrefMap& PrefsUtil
603 settings_api::PrefType::PREF_TYPE_BOOLEAN; 614 settings_api::PrefType::PREF_TYPE_BOOLEAN;
604 615
605 // Security page 616 // Security page
@@ -616,9 +627,9 @@
616 (*s_allowlist)[::prefs::kHttpsOnlyModeEnabled] = 627 (*s_allowlist)[::prefs::kHttpsOnlyModeEnabled] =
617 settings_api::PrefType::PREF_TYPE_BOOLEAN; 628 settings_api::PrefType::PREF_TYPE_BOOLEAN;
618 629
619--- a/chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc 630--- chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc.orig
620+++ b/chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc 631+++ chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc
621@@ -646,9 +646,6 @@ IN_PROC_BROWSER_TEST_F(ExtensionWebstore 632@@ -647,9 +647,6 @@ IN_PROC_BROWSER_TEST_F(ExtensionWebstore
622 IN_PROC_BROWSER_TEST_F(ExtensionWebstorePrivateGetReferrerChainApiTest, 633 IN_PROC_BROWSER_TEST_F(ExtensionWebstorePrivateGetReferrerChainApiTest,
623 GetReferrerChainForNonSafeBrowsingUser) { 634 GetReferrerChainForNonSafeBrowsingUser) {
624 PrefService* pref_service = browser()->profile()->GetPrefs(); 635 PrefService* pref_service = browser()->profile()->GetPrefs();
@@ -628,8 +639,8 @@
628 639
629 GURL page_url = GetTestServerURLWithReferrers("empty_referrer_chain.html"); 640 GURL page_url = GetTestServerURLWithReferrers("empty_referrer_chain.html");
630 ASSERT_TRUE(OpenTestURL(page_url)); 641 ASSERT_TRUE(OpenTestURL(page_url));
631--- a/chrome/browser/extensions/extension_allowlist.cc 642--- chrome/browser/extensions/extension_allowlist.cc.orig
632+++ b/chrome/browser/extensions/extension_allowlist.cc 643+++ chrome/browser/extensions/extension_allowlist.cc
633@@ -9,7 +9,6 @@ 644@@ -9,7 +9,6 @@
634 #include "chrome/browser/profiles/profile.h" 645 #include "chrome/browser/profiles/profile.h"
635 #include "chrome/browser/safe_browsing/safe_browsing_metrics_collector_factory.h" 646 #include "chrome/browser/safe_browsing/safe_browsing_metrics_collector_factory.h"
@@ -681,8 +692,8 @@
681 } 692 }
682 693
683 } // namespace extensions 694 } // namespace extensions
684--- a/chrome/browser/extensions/installed_loader.cc 695--- chrome/browser/extensions/installed_loader.cc.orig
685+++ b/chrome/browser/extensions/installed_loader.cc 696+++ chrome/browser/extensions/installed_loader.cc
686@@ -797,12 +797,6 @@ void InstalledLoader::RecordExtensionsMe 697@@ -797,12 +797,6 @@ void InstalledLoader::RecordExtensionsMe
687 enabled_not_allowlisted_count); 698 enabled_not_allowlisted_count);
688 base::UmaHistogramCounts100("Extensions.NotAllowlistedDisabled", 699 base::UmaHistogramCounts100("Extensions.NotAllowlistedDisabled",
@@ -696,9 +707,9 @@
696 } 707 }
697 708
698 int InstalledLoader::GetCreationFlags(const ExtensionInfo* info) { 709 int InstalledLoader::GetCreationFlags(const ExtensionInfo* info) {
699--- a/chrome/browser/net/profile_network_context_service.cc 710--- chrome/browser/net/profile_network_context_service.cc.orig
700+++ b/chrome/browser/net/profile_network_context_service.cc 711+++ chrome/browser/net/profile_network_context_service.cc
701@@ -47,7 +47,6 @@ 712@@ -43,7 +43,6 @@
702 #include "components/pref_registry/pref_registry_syncable.h" 713 #include "components/pref_registry/pref_registry_syncable.h"
703 #include "components/prefs/pref_registry_simple.h" 714 #include "components/prefs/pref_registry_simple.h"
704 #include "components/prefs/pref_service.h" 715 #include "components/prefs/pref_service.h"
@@ -706,24 +717,22 @@
706 #include "content/public/browser/browser_context.h" 717 #include "content/public/browser/browser_context.h"
707 #include "content/public/browser/browser_thread.h" 718 #include "content/public/browser/browser_thread.h"
708 #include "content/public/browser/network_service_instance.h" 719 #include "content/public/browser/network_service_instance.h"
709@@ -800,15 +799,8 @@ void ProfileNetworkContextService::Confi 720@@ -741,13 +740,6 @@ void ProfileNetworkContextService::Confi
710 network_context_params->enable_certificate_reporting = true; 721 network_context_params->enable_certificate_reporting = true;
711 network_context_params->enable_expect_ct_reporting = true; 722 network_context_params->enable_expect_ct_reporting = true;
712 723
713- SCTReportingService* sct_reporting_service = 724- // Initialize the network context to do SCT auditing only if the current
714- SCTReportingServiceFactory::GetForBrowserContext(profile_); 725- // profile is opted in to Safe Browsing Extended Reporting.
715- if (sct_reporting_service) { 726- if (!profile_->IsOffTheRecord() &&
716- network_context_params->sct_auditing_mode = 727- safe_browsing::IsExtendedReportingEnabled(*profile_->GetPrefs())) {
717- sct_reporting_service->GetReportingMode(); 728- network_context_params->enable_sct_auditing = true;
718- } else {
719 network_context_params->sct_auditing_mode =
720 network::mojom::SCTAuditingMode::kDisabled;
721- } 729- }
722 730-
723 network_context_params->ct_policy = GetCTPolicy(); 731 network_context_params->ct_policy = GetCTPolicy();
724 732
725--- a/chrome/browser/net/trial_comparison_cert_verifier_browsertest.cc 733 #if BUILDFLAG(TRIAL_COMPARISON_CERT_VERIFIER_SUPPORTED)
726+++ b/chrome/browser/net/trial_comparison_cert_verifier_browsertest.cc 734--- chrome/browser/net/trial_comparison_cert_verifier_browsertest.cc.orig
735+++ chrome/browser/net/trial_comparison_cert_verifier_browsertest.cc
727@@ -11,7 +11,6 @@ 736@@ -11,7 +11,6 @@
728 #include "chrome/test/base/in_process_browser_test.h" 737 #include "chrome/test/base/in_process_browser_test.h"
729 #include "chrome/test/base/ui_test_utils.h" 738 #include "chrome/test/base/ui_test_utils.h"
@@ -732,8 +741,8 @@
732 #include "content/public/test/browser_test.h" 741 #include "content/public/test/browser_test.h"
733 #include "net/base/features.h" 742 #include "net/base/features.h"
734 #include "net/cert/trial_comparison_cert_verifier.h" 743 #include "net/cert/trial_comparison_cert_verifier.h"
735--- a/chrome/browser/net/trial_comparison_cert_verifier_controller.cc 744--- chrome/browser/net/trial_comparison_cert_verifier_controller.cc.orig
736+++ b/chrome/browser/net/trial_comparison_cert_verifier_controller.cc 745+++ chrome/browser/net/trial_comparison_cert_verifier_controller.cc
737@@ -19,7 +19,6 @@ 746@@ -19,7 +19,6 @@
738 #include "chrome/browser/safe_browsing/certificate_reporting_service.h" 747 #include "chrome/browser/safe_browsing/certificate_reporting_service.h"
739 #include "chrome/browser/safe_browsing/certificate_reporting_service_factory.h" 748 #include "chrome/browser/safe_browsing/certificate_reporting_service_factory.h"
@@ -766,8 +775,8 @@
766 } 775 }
767 776
768 void TrialComparisonCertVerifierController::SendTrialReport( 777 void TrialComparisonCertVerifierController::SendTrialReport(
769--- a/chrome/browser/net/trial_comparison_cert_verifier_controller.h 778--- chrome/browser/net/trial_comparison_cert_verifier_controller.h.orig
770+++ b/chrome/browser/net/trial_comparison_cert_verifier_controller.h 779+++ chrome/browser/net/trial_comparison_cert_verifier_controller.h
771@@ -14,7 +14,6 @@ 780@@ -14,7 +14,6 @@
772 #include "base/memory/ref_counted.h" 781 #include "base/memory/ref_counted.h"
773 #include "base/memory/weak_ptr.h" 782 #include "base/memory/weak_ptr.h"
@@ -779,14 +788,14 @@
779@@ -77,7 +76,6 @@ class TrialComparisonCertVerifierControl 788@@ -77,7 +76,6 @@ class TrialComparisonCertVerifierControl
780 void RefreshState(); 789 void RefreshState();
781 790
782 raw_ptr<Profile> profile_; 791 Profile* profile_;
783- PrefChangeRegistrar pref_change_registrar_; 792- PrefChangeRegistrar pref_change_registrar_;
784 793
785 mojo::ReceiverSet< 794 mojo::ReceiverSet<
786 cert_verifier::mojom::TrialComparisonCertVerifierReportClient> 795 cert_verifier::mojom::TrialComparisonCertVerifierReportClient>
787--- a/chrome/browser/net/trial_comparison_cert_verifier_controller_unittest.cc 796--- chrome/browser/net/trial_comparison_cert_verifier_controller_unittest.cc.orig
788+++ b/chrome/browser/net/trial_comparison_cert_verifier_controller_unittest.cc 797+++ chrome/browser/net/trial_comparison_cert_verifier_controller_unittest.cc
789@@ -21,7 +21,6 @@ 798@@ -20,7 +20,6 @@
790 #include "chrome/test/base/testing_browser_process.h" 799 #include "chrome/test/base/testing_browser_process.h"
791 #include "chrome/test/base/testing_profile.h" 800 #include "chrome/test/base/testing_profile.h"
792 #include "chrome/test/base/testing_profile_manager.h" 801 #include "chrome/test/base/testing_profile_manager.h"
@@ -794,17 +803,17 @@
794 #include "components/security_interstitials/content/cert_logger.pb.h" 803 #include "components/security_interstitials/content/cert_logger.pb.h"
795 #include "components/sync_preferences/testing_pref_service_syncable.h" 804 #include "components/sync_preferences/testing_pref_service_syncable.h"
796 #include "content/public/browser/browser_task_traits.h" 805 #include "content/public/browser/browser_task_traits.h"
797--- a/chrome/browser/password_manager/generated_password_leak_detection_pref.cc 806--- chrome/browser/password_manager/generated_password_leak_detection_pref.cc.orig
798+++ b/chrome/browser/password_manager/generated_password_leak_detection_pref.cc 807+++ chrome/browser/password_manager/generated_password_leak_detection_pref.cc
799@@ -14,7 +14,6 @@ 808@@ -13,7 +13,6 @@
800 #include "components/password_manager/core/common/password_manager_features.h" 809 #include "chrome/common/extensions/api/settings_private.h"
801 #include "components/password_manager/core/common/password_manager_pref_names.h" 810 #include "components/password_manager/core/common/password_manager_pref_names.h"
802 #include "components/prefs/pref_service.h" 811 #include "components/prefs/pref_service.h"
803-#include "components/safe_browsing/core/common/safe_browsing_prefs.h" 812-#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
804 #include "components/signin/public/identity_manager/identity_manager.h" 813 #include "components/signin/public/identity_manager/identity_manager.h"
805 814
806 namespace { 815 namespace {
807@@ -37,8 +36,7 @@ bool IsUserAllowedToUseLeakDetection(Pro 816@@ -43,8 +42,7 @@ bool IsUserSignedInAndSyncing(Profile* p
808 // Returns whether the effective value of the Safe Browsing preferences for 817 // Returns whether the effective value of the Safe Browsing preferences for
809 // |profile| is standard protection. 818 // |profile| is standard protection.
810 bool IsSafeBrowsingStandard(Profile* profile) { 819 bool IsSafeBrowsingStandard(Profile* profile) {
@@ -814,7 +823,7 @@
814 } 823 }
815 824
816 } // namespace 825 } // namespace
817@@ -57,16 +55,6 @@ GeneratedPasswordLeakDetectionPref::Gene 826@@ -63,16 +61,6 @@ GeneratedPasswordLeakDetectionPref::Gene
818 base::BindRepeating( 827 base::BindRepeating(
819 &GeneratedPasswordLeakDetectionPref::OnSourcePreferencesChanged, 828 &GeneratedPasswordLeakDetectionPref::OnSourcePreferencesChanged,
820 base::Unretained(this))); 829 base::Unretained(this)));
@@ -831,8 +840,8 @@
831 840
832 if (auto* identity_manager = IdentityManagerFactory::GetForProfile(profile)) 841 if (auto* identity_manager = IdentityManagerFactory::GetForProfile(profile))
833 identity_manager_observer_.Observe(identity_manager); 842 identity_manager_observer_.Observe(identity_manager);
834--- a/chrome/browser/permissions/abusive_origin_permission_revocation_request.cc 843--- chrome/browser/permissions/abusive_origin_permission_revocation_request.cc.orig
835+++ b/chrome/browser/permissions/abusive_origin_permission_revocation_request.cc 844+++ chrome/browser/permissions/abusive_origin_permission_revocation_request.cc
836@@ -17,7 +17,6 @@ 845@@ -17,7 +17,6 @@
837 #include "components/permissions/permissions_client.h" 846 #include "components/permissions/permissions_client.h"
838 #include "components/prefs/pref_service.h" 847 #include "components/prefs/pref_service.h"
@@ -841,18 +850,18 @@
841 850
842 namespace { 851 namespace {
843 constexpr char kExcludedKey[] = "exempted"; 852 constexpr char kExcludedKey[] = "exempted";
844--- a/chrome/browser/permissions/prediction_based_permission_ui_selector.cc 853--- chrome/browser/permissions/prediction_based_permission_ui_selector.cc.orig
845+++ b/chrome/browser/permissions/prediction_based_permission_ui_selector.cc 854+++ chrome/browser/permissions/prediction_based_permission_ui_selector.cc
846@@ -26,7 +26,6 @@ 855@@ -23,7 +23,6 @@
847 #include "components/permissions/prediction_service/prediction_service.h" 856 #include "components/permissions/prediction_service/prediction_service.h"
848 #include "components/permissions/prediction_service/prediction_service_messages.pb.h" 857 #include "components/permissions/prediction_service/prediction_service_messages.pb.h"
849 #include "components/prefs/pref_service.h" 858 #include "components/prefs/pref_service.h"
850-#include "components/safe_browsing/core/common/safe_browsing_prefs.h" 859-#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
851 860
852 #if BUILDFLAG(BUILD_WITH_TFLITE_LIB) 861 namespace {
853 #include "chrome/browser/permissions/prediction_model_handler_factory.h" 862
854--- a/chrome/browser/policy/browser_signin_policy_handler.cc 863--- chrome/browser/policy/browser_signin_policy_handler.cc.orig
855+++ b/chrome/browser/policy/browser_signin_policy_handler.cc 864+++ chrome/browser/policy/browser_signin_policy_handler.cc
856@@ -15,7 +15,6 @@ 865@@ -15,7 +15,6 @@
857 #include "components/policy/core/common/policy_map.h" 866 #include "components/policy/core/common/policy_map.h"
858 #include "components/policy/policy_constants.h" 867 #include "components/policy/policy_constants.h"
@@ -863,11 +872,11 @@
863 BrowserSigninPolicyHandler::BrowserSigninPolicyHandler(Schema chrome_schema) 872 BrowserSigninPolicyHandler::BrowserSigninPolicyHandler(Schema chrome_schema)
864@@ -48,28 +47,18 @@ void BrowserSigninPolicyHandler::ApplyPo 873@@ -48,28 +47,18 @@ void BrowserSigninPolicyHandler::ApplyPo
865 #endif 874 #endif
866 [[fallthrough]]; 875 FALLTHROUGH;
867 case BrowserSigninMode::kEnabled: 876 case BrowserSigninMode::kEnabled:
868+#if !BUILDFLAG(IS_ANDROID) 877+#if !defined(OS_ANDROID)
869 prefs->SetValue( 878 prefs->SetValue(
870-#if BUILDFLAG(IS_ANDROID) 879-#if defined(OS_ANDROID)
871- // The new kSigninAllowedOnNextStartup pref is only used on Desktop. 880- // The new kSigninAllowedOnNextStartup pref is only used on Desktop.
872- // Keep the old kSigninAllowed pref for Android until the policy is 881- // Keep the old kSigninAllowed pref for Android until the policy is
873- // fully deprecated in M71 and can be removed. 882- // fully deprecated in M71 and can be removed.
@@ -879,9 +888,9 @@
879+#endif 888+#endif
880 break; 889 break;
881 case BrowserSigninMode::kDisabled: 890 case BrowserSigninMode::kDisabled:
882+#if !BUILDFLAG(IS_ANDROID) 891+#if !defined(OS_ANDROID)
883 prefs->SetValue( 892 prefs->SetValue(
884-#if BUILDFLAG(IS_ANDROID) 893-#if defined(OS_ANDROID)
885- // The new kSigninAllowedOnNextStartup pref is only used on Desktop. 894- // The new kSigninAllowedOnNextStartup pref is only used on Desktop.
886- // Keep the old kSigninAllowed pref for Android until the policy is 895- // Keep the old kSigninAllowed pref for Android until the policy is
887- // fully deprecated in M71 and can be removed. 896- // fully deprecated in M71 and can be removed.
@@ -894,12 +903,12 @@
894 break; 903 break;
895 } 904 }
896 } 905 }
897--- a/chrome/browser/policy/configuration_policy_handler_list_factory.cc 906--- chrome/browser/policy/configuration_policy_handler_list_factory.cc.orig
898+++ b/chrome/browser/policy/configuration_policy_handler_list_factory.cc 907+++ chrome/browser/policy/configuration_policy_handler_list_factory.cc
899@@ -94,12 +94,9 @@ 908@@ -83,12 +83,9 @@
909 #include "components/policy/core/common/schema.h"
910 #include "components/policy/policy_constants.h"
900 #include "components/proxy_config/proxy_policy_handler.h" 911 #include "components/proxy_config/proxy_policy_handler.h"
901 #include "components/safe_browsing/buildflags.h"
902 #include "components/safe_browsing/content/common/file_type_policies_prefs.h"
903-#include "components/safe_browsing/core/common/safe_browsing_policy_handler.h" 912-#include "components/safe_browsing/core/common/safe_browsing_policy_handler.h"
904-#include "components/safe_browsing/core/common/safe_browsing_prefs.h" 913-#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
905 #include "components/search_engines/default_search_policy_handler.h" 914 #include "components/search_engines/default_search_policy_handler.h"
@@ -909,7 +918,7 @@
909 #include "components/spellcheck/spellcheck_buildflags.h" 918 #include "components/spellcheck/spellcheck_buildflags.h"
910 #include "components/sync/base/pref_names.h" 919 #include "components/sync/base/pref_names.h"
911 #include "components/sync/driver/sync_policy_handler.h" 920 #include "components/sync/driver/sync_policy_handler.h"
912@@ -222,15 +219,6 @@ const PolicyToPreferenceMapEntry kSimple 921@@ -209,15 +206,6 @@ const PolicyToPreferenceMapEntry kSimple
913 { key::kQuicAllowed, 922 { key::kQuicAllowed,
914 prefs::kQuicAllowed, 923 prefs::kQuicAllowed,
915 base::Value::Type::BOOLEAN }, 924 base::Value::Type::BOOLEAN },
@@ -925,7 +934,7 @@
925 { key::kUrlKeyedAnonymizedDataCollectionEnabled, 934 { key::kUrlKeyedAnonymizedDataCollectionEnabled,
926 unified_consent::prefs::kUrlKeyedAnonymizedDataCollectionEnabled, 935 unified_consent::prefs::kUrlKeyedAnonymizedDataCollectionEnabled,
927 base::Value::Type::BOOLEAN }, 936 base::Value::Type::BOOLEAN },
928@@ -366,15 +354,6 @@ const PolicyToPreferenceMapEntry kSimple 937@@ -353,15 +341,6 @@ const PolicyToPreferenceMapEntry kSimple
929 { key::kGloballyScopeHTTPAuthCacheEnabled, 938 { key::kGloballyScopeHTTPAuthCacheEnabled,
930 prefs::kGloballyScopeHTTPAuthCacheEnabled, 939 prefs::kGloballyScopeHTTPAuthCacheEnabled,
931 base::Value::Type::BOOLEAN }, 940 base::Value::Type::BOOLEAN },
@@ -941,7 +950,7 @@
941 { key::kSafeSitesFilterBehavior, 950 { key::kSafeSitesFilterBehavior,
942 policy_prefs::kSafeSitesFilterBehavior, 951 policy_prefs::kSafeSitesFilterBehavior,
943 base::Value::Type::INTEGER }, 952 base::Value::Type::INTEGER },
944@@ -483,18 +462,12 @@ const PolicyToPreferenceMapEntry kSimple 953@@ -470,18 +449,12 @@ const PolicyToPreferenceMapEntry kSimple
945 { key::kMaxConnectionsPerProxy, 954 { key::kMaxConnectionsPerProxy,
946 prefs::kMaxConnectionsPerProxy, 955 prefs::kMaxConnectionsPerProxy,
947 base::Value::Type::INTEGER }, 956 base::Value::Type::INTEGER },
@@ -960,7 +969,7 @@
960 { key::kCECPQ2Enabled, 969 { key::kCECPQ2Enabled,
961 prefs::kCECPQ2Enabled, 970 prefs::kCECPQ2Enabled,
962 base::Value::Type::BOOLEAN }, 971 base::Value::Type::BOOLEAN },
963@@ -706,9 +679,6 @@ const PolicyToPreferenceMapEntry kSimple 972@@ -684,9 +657,6 @@ const PolicyToPreferenceMapEntry kSimple
964 { key::kIntranetRedirectBehavior, 973 { key::kIntranetRedirectBehavior,
965 omnibox::kIntranetRedirectBehavior, 974 omnibox::kIntranetRedirectBehavior,
966 base::Value::Type::INTEGER }, 975 base::Value::Type::INTEGER },
@@ -970,16 +979,16 @@
970 { key::kAccessibilityImageLabelsEnabled, 979 { key::kAccessibilityImageLabelsEnabled,
971 prefs::kAccessibilityImageLabelsEnabled, 980 prefs::kAccessibilityImageLabelsEnabled,
972 base::Value::Type::BOOLEAN }, 981 base::Value::Type::BOOLEAN },
973@@ -1740,8 +1710,6 @@ std::unique_ptr<ConfigurationPolicyHandl 982@@ -1642,8 +1612,6 @@ std::unique_ptr<ConfigurationPolicyHandl
974 handlers->AddHandler(std::make_unique<JavascriptPolicyHandler>()); 983 handlers->AddHandler(std::make_unique<JavascriptPolicyHandler>());
975 handlers->AddHandler(std::make_unique<NetworkPredictionPolicyHandler>()); 984 handlers->AddHandler(std::make_unique<NetworkPredictionPolicyHandler>());
976 handlers->AddHandler(std::make_unique<RestoreOnStartupPolicyHandler>()); 985 handlers->AddHandler(std::make_unique<RestoreOnStartupPolicyHandler>());
977- handlers->AddHandler( 986- handlers->AddHandler(
978- std::make_unique<safe_browsing::SafeBrowsingPolicyHandler>()); 987- std::make_unique<safe_browsing::SafeBrowsingPolicyHandler>());
979 handlers->AddHandler(std::make_unique<SimpleDeprecatingPolicyHandler>( 988 handlers->AddHandler(std::make_unique<SimpleDeprecatingPolicyHandler>(
980 std::make_unique<SimplePolicyHandler>( 989 std::make_unique<SimplePolicyHandler>(key::kAuthServerWhitelist,
981 key::kAuthServerWhitelist, // nocheck 990 prefs::kAuthServerAllowlist,
982@@ -1765,9 +1733,6 @@ std::unique_ptr<ConfigurationPolicyHandl 991@@ -1667,9 +1635,6 @@ std::unique_ptr<ConfigurationPolicyHandl
983 key::kWindowOcclusionEnabled, 992 key::kWindowOcclusionEnabled,
984 policy::policy_prefs::kNativeWindowOcclusionEnabled, 993 policy::policy_prefs::kNativeWindowOcclusionEnabled,
985 base::Value::Type::BOOLEAN))); 994 base::Value::Type::BOOLEAN)));
@@ -989,7 +998,7 @@
989 handlers->AddHandler(std::make_unique<syncer::SyncPolicyHandler>()); 998 handlers->AddHandler(std::make_unique<syncer::SyncPolicyHandler>());
990 handlers->AddHandler(std::make_unique<BrowsingHistoryPolicyHandler>()); 999 handlers->AddHandler(std::make_unique<BrowsingHistoryPolicyHandler>());
991 1000
992@@ -1863,12 +1828,6 @@ std::unique_ptr<ConfigurationPolicyHandl 1001@@ -1762,12 +1727,6 @@ std::unique_ptr<ConfigurationPolicyHandl
993 key::kOnSecurityEventEnterpriseConnector, 1002 key::kOnSecurityEventEnterpriseConnector,
994 enterprise_connectors::kOnSecurityEventPref, 1003 enterprise_connectors::kOnSecurityEventPref,
995 enterprise_connectors::kOnSecurityEventScopePref, chrome_schema)); 1004 enterprise_connectors::kOnSecurityEventScopePref, chrome_schema));
@@ -1002,54 +1011,53 @@
1002 1011
1003 handlers->AddHandler(std::make_unique<BrowsingDataLifetimePolicyHandler>( 1012 handlers->AddHandler(std::make_unique<BrowsingDataLifetimePolicyHandler>(
1004 key::kClearBrowsingDataOnExitList, 1013 key::kClearBrowsingDataOnExitList,
1005@@ -1918,17 +1877,6 @@ std::unique_ptr<ConfigurationPolicyHandl 1014@@ -1806,17 +1765,6 @@ std::unique_ptr<ConfigurationPolicyHandl
1006 signin_legacy_policies.push_back(std::make_unique<SimplePolicyHandler>( 1015 signin_legacy_policies.push_back(std::make_unique<SimplePolicyHandler>(
1007 key::kForceBrowserSignin, prefs::kForceBrowserSignin, 1016 key::kForceBrowserSignin, prefs::kForceBrowserSignin,
1008 base::Value::Type::BOOLEAN)); 1017 base::Value::Type::BOOLEAN));
1009- signin_legacy_policies.push_back(std::make_unique<SimplePolicyHandler>( 1018- signin_legacy_policies.push_back(std::make_unique<SimplePolicyHandler>(
1010- key::kSigninAllowed, 1019- key::kSigninAllowed,
1011-#if BUILDFLAG(IS_ANDROID) 1020-#if defined(OS_ANDROID)
1012- // The new kSigninAllowedOnNextStartup pref is only used on Desktop. 1021- // The new kSigninAllowedOnNextStartup pref is only used on Desktop.
1013- // Keep the old kSigninAllowed pref for Android until the policy is 1022- // Keep the old kSigninAllowed pref for Android until the policy is
1014- // fully deprecated in M71 and can be removed. 1023- // fully deprecated in M71 and can be removed.
1015- prefs::kSigninAllowed, 1024- prefs::kSigninAllowed,
1016-#else // BUILDFLAG(IS_ANDROID) 1025-#else // defined(OS_ANDROID)
1017- prefs::kSigninAllowedOnNextStartup, 1026- prefs::kSigninAllowedOnNextStartup,
1018-#endif // BUILDFLAG(IS_ANDROID) 1027-#endif // defined(OS_ANDROID)
1019- base::Value::Type::BOOLEAN)); 1028- base::Value::Type::BOOLEAN));
1020 handlers->AddHandler(std::make_unique<LegacyPoliciesDeprecatingPolicyHandler>( 1029 handlers->AddHandler(std::make_unique<LegacyPoliciesDeprecatingPolicyHandler>(
1021 std::move(signin_legacy_policies), 1030 std::move(signin_legacy_policies),
1022 std::make_unique<BrowserSigninPolicyHandler>(chrome_schema))); 1031 std::make_unique<BrowserSigninPolicyHandler>(chrome_schema)));
1023--- a/chrome/browser/prefs/browser_prefs.cc 1032--- chrome/browser/prefs/browser_prefs.cc.orig
1024+++ b/chrome/browser/prefs/browser_prefs.cc 1033+++ chrome/browser/prefs/browser_prefs.cc
1025@@ -132,7 +132,6 @@ 1034@@ -139,7 +139,6 @@
1035 #include "components/prefs/pref_service.h"
1026 #include "components/privacy_sandbox/privacy_sandbox_prefs.h" 1036 #include "components/privacy_sandbox/privacy_sandbox_prefs.h"
1027 #include "components/proxy_config/pref_proxy_config_tracker_impl.h" 1037 #include "components/proxy_config/pref_proxy_config_tracker_impl.h"
1028 #include "components/safe_browsing/content/common/file_type_policies_prefs.h"
1029-#include "components/safe_browsing/core/common/safe_browsing_prefs.h" 1038-#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
1030 #include "components/search_engines/template_url_prepopulate_data.h" 1039 #include "components/search_engines/template_url_prepopulate_data.h"
1031 #include "components/security_interstitials/content/insecure_form_blocking_page.h" 1040 #include "components/security_interstitials/content/insecure_form_blocking_page.h"
1032 #include "components/security_interstitials/content/stateful_ssl_host_state_delegate.h" 1041 #include "components/security_interstitials/content/stateful_ssl_host_state_delegate.h"
1033@@ -989,7 +988,6 @@ void RegisterLocalState(PrefRegistrySimp 1042@@ -921,7 +920,6 @@ void RegisterLocalState(PrefRegistrySimp
1034 ProfileNetworkContextService::RegisterLocalStatePrefs(registry); 1043 ProfileNetworkContextService::RegisterLocalStatePrefs(registry);
1035 profiles::RegisterPrefs(registry); 1044 profiles::RegisterPrefs(registry);
1036 RegisterScreenshotPrefs(registry); 1045 RegisterScreenshotPrefs(registry);
1037- safe_browsing::RegisterLocalStatePrefs(registry); 1046- safe_browsing::RegisterLocalStatePrefs(registry);
1038 secure_origin_allowlist::RegisterPrefs(registry); 1047 secure_origin_allowlist::RegisterPrefs(registry);
1039 #if !BUILDFLAG(IS_ANDROID) 1048 #if !defined(OS_ANDROID)
1040 SerialPolicyAllowedPorts::RegisterPrefs(registry); 1049 SerialPolicyAllowedPorts::RegisterPrefs(registry);
1041@@ -1246,8 +1244,6 @@ void RegisterProfilePrefs(user_prefs::Pr 1050@@ -1171,7 +1169,6 @@ void RegisterProfilePrefs(user_prefs::Pr
1042 PushMessagingAppIdentifier::RegisterProfilePrefs(registry); 1051 PushMessagingAppIdentifier::RegisterProfilePrefs(registry);
1043 QuietNotificationPermissionUiState::RegisterProfilePrefs(registry); 1052 QuietNotificationPermissionUiState::RegisterProfilePrefs(registry);
1044 RegisterBrowserUserPrefs(registry); 1053 RegisterBrowserUserPrefs(registry);
1045- safe_browsing::file_type::RegisterProfilePrefs(registry);
1046- safe_browsing::RegisterProfilePrefs(registry); 1054- safe_browsing::RegisterProfilePrefs(registry);
1047 SearchPrefetchService::RegisterProfilePrefs(registry); 1055 SearchPrefetchService::RegisterProfilePrefs(registry);
1048 blocked_content::SafeBrowsingTriggeredPopupBlocker::RegisterProfilePrefs( 1056 blocked_content::SafeBrowsingTriggeredPopupBlocker::RegisterProfilePrefs(
1049 registry); 1057 registry);
1050--- a/chrome/browser/prefs/chrome_command_line_pref_store.cc 1058--- chrome/browser/prefs/chrome_command_line_pref_store.cc.orig
1051+++ b/chrome/browser/prefs/chrome_command_line_pref_store.cc 1059+++ chrome/browser/prefs/chrome_command_line_pref_store.cc
1052@@ -29,7 +29,6 @@ 1060@@ -31,7 +31,6 @@
1053 #include "components/language/core/browser/pref_names.h" 1061 #include "components/language/core/browser/pref_names.h"
1054 #include "components/proxy_config/proxy_config_dictionary.h" 1062 #include "components/proxy_config/proxy_config_dictionary.h"
1055 #include "components/proxy_config/proxy_config_pref_names.h" 1063 #include "components/proxy_config/proxy_config_pref_names.h"
@@ -1057,18 +1065,18 @@
1057 #include "components/safe_browsing/core/common/safebrowsing_switches.h" 1065 #include "components/safe_browsing/core/common/safebrowsing_switches.h"
1058 #include "components/sync/base/pref_names.h" 1066 #include "components/sync/base/pref_names.h"
1059 #include "content/public/common/content_switches.h" 1067 #include "content/public/common/content_switches.h"
1060@@ -77,8 +76,6 @@ const CommandLinePrefStore::BooleanSwitc 1068@@ -78,8 +77,6 @@ const CommandLinePrefStore::BooleanSwitc
1061 {switches::kAllowCrossOriginAuthPrompt, 1069 {switches::kAllowCrossOriginAuthPrompt,
1062 prefs::kAllowCrossOriginAuthPrompt, true}, 1070 prefs::kAllowCrossOriginAuthPrompt, true},
1063 {switches::kDisablePrintPreview, prefs::kPrintPreviewDisabled, true}, 1071 {switches::kDisablePrintPreview, prefs::kPrintPreviewDisabled, true},
1064- {safe_browsing::switches::kSbEnableEnhancedProtection, 1072- {safe_browsing::switches::kSbEnableEnhancedProtection,
1065- prefs::kSafeBrowsingEnhanced, true}, 1073- prefs::kSafeBrowsingEnhanced, true},
1066 #if BUILDFLAG(IS_CHROMEOS_ASH) 1074 #if BUILDFLAG(IS_CHROMEOS_ASH)
1067 {ash::switches::kEnableTouchpadThreeFingerClick, 1075 {chromeos::switches::kEnableTouchpadThreeFingerClick,
1068 prefs::kEnableTouchpadThreeFingerClick, true}, 1076 prefs::kEnableTouchpadThreeFingerClick, true},
1069--- a/chrome/browser/prefs/chrome_pref_service_factory.cc 1077--- chrome/browser/prefs/chrome_pref_service_factory.cc.orig
1070+++ b/chrome/browser/prefs/chrome_pref_service_factory.cc 1078+++ chrome/browser/prefs/chrome_pref_service_factory.cc
1071@@ -50,10 +50,8 @@ 1079@@ -48,10 +48,8 @@
1072 #include "components/prefs/pref_service.h" 1080 #include "components/prefs/pref_service.h"
1073 #include "components/prefs/pref_store.h" 1081 #include "components/prefs/pref_store.h"
1074 #include "components/prefs/pref_value_store.h" 1082 #include "components/prefs/pref_value_store.h"
@@ -1079,7 +1087,7 @@
1079 #include "components/sync/base/model_type.h" 1087 #include "components/sync/base/model_type.h"
1080 #include "components/sync/base/pref_names.h" 1088 #include "components/sync/base/pref_names.h"
1081 #include "components/sync_preferences/pref_model_associator.h" 1089 #include "components/sync_preferences/pref_model_associator.h"
1082@@ -123,8 +121,6 @@ const prefs::TrackedPreferenceMetadata k 1090@@ -121,8 +119,6 @@ const prefs::TrackedPreferenceMetadata k
1083 {5, extensions::pref_names::kExtensions, EnforcementLevel::NO_ENFORCEMENT, 1091 {5, extensions::pref_names::kExtensions, EnforcementLevel::NO_ENFORCEMENT,
1084 PrefTrackingStrategy::SPLIT, ValueType::IMPERSONAL}, 1092 PrefTrackingStrategy::SPLIT, ValueType::IMPERSONAL},
1085 #endif 1093 #endif
@@ -1087,17 +1095,17 @@
1087- PrefTrackingStrategy::ATOMIC, ValueType::PERSONAL}, 1095- PrefTrackingStrategy::ATOMIC, ValueType::PERSONAL},
1088 {7, prefs::kSearchProviderOverrides, EnforcementLevel::ENFORCE_ON_LOAD, 1096 {7, prefs::kSearchProviderOverrides, EnforcementLevel::ENFORCE_ON_LOAD,
1089 PrefTrackingStrategy::ATOMIC, ValueType::IMPERSONAL}, 1097 PrefTrackingStrategy::ATOMIC, ValueType::IMPERSONAL},
1090 #if !BUILDFLAG(IS_ANDROID) 1098 #if !defined(OS_ANDROID)
1091@@ -148,8 +144,6 @@ const prefs::TrackedPreferenceMetadata k 1099@@ -146,8 +142,6 @@ const prefs::TrackedPreferenceMetadata k
1092 PrefTrackingStrategy::ATOMIC, ValueType::IMPERSONAL}, 1100 PrefTrackingStrategy::ATOMIC, ValueType::IMPERSONAL},
1093 // kSyncRemainingRollbackTries is deprecated and will be removed a few 1101 // kSyncRemainingRollbackTries is deprecated and will be removed a few
1094 // releases after M50. 1102 // releases after M50.
1095- {18, prefs::kSafeBrowsingIncidentsSent, EnforcementLevel::ENFORCE_ON_LOAD, 1103- {18, prefs::kSafeBrowsingIncidentsSent, EnforcementLevel::ENFORCE_ON_LOAD,
1096- PrefTrackingStrategy::ATOMIC, ValueType::IMPERSONAL}, 1104- PrefTrackingStrategy::ATOMIC, ValueType::IMPERSONAL},
1097 #if BUILDFLAG(IS_WIN) 1105 #if defined(OS_WIN)
1098 {19, prefs::kSwReporterPromptVersion, EnforcementLevel::ENFORCE_ON_LOAD, 1106 {19, prefs::kSwReporterPromptVersion, EnforcementLevel::ENFORCE_ON_LOAD,
1099 PrefTrackingStrategy::ATOMIC, ValueType::IMPERSONAL}, 1107 PrefTrackingStrategy::ATOMIC, ValueType::IMPERSONAL},
1100@@ -158,10 +152,6 @@ const prefs::TrackedPreferenceMetadata k 1108@@ -156,10 +150,6 @@ const prefs::TrackedPreferenceMetadata k
1101 {22, prefs::kSwReporterPromptSeed, EnforcementLevel::ENFORCE_ON_LOAD, 1109 {22, prefs::kSwReporterPromptSeed, EnforcementLevel::ENFORCE_ON_LOAD,
1102 PrefTrackingStrategy::ATOMIC, ValueType::IMPERSONAL}, 1110 PrefTrackingStrategy::ATOMIC, ValueType::IMPERSONAL},
1103 #endif 1111 #endif
@@ -1105,11 +1113,11 @@
1105- PrefTrackingStrategy::ATOMIC, ValueType::PERSONAL}, 1113- PrefTrackingStrategy::ATOMIC, ValueType::PERSONAL},
1106- {24, prefs::kGoogleServicesLastAccountId, EnforcementLevel::ENFORCE_ON_LOAD, 1114- {24, prefs::kGoogleServicesLastAccountId, EnforcementLevel::ENFORCE_ON_LOAD,
1107- PrefTrackingStrategy::ATOMIC, ValueType::PERSONAL}, 1115- PrefTrackingStrategy::ATOMIC, ValueType::PERSONAL},
1108 #if BUILDFLAG(IS_WIN) 1116 #if defined(OS_WIN)
1109 {25, prefs::kSettingsResetPromptPromptWave, 1117 {25, prefs::kSettingsResetPromptPromptWave,
1110 EnforcementLevel::ENFORCE_ON_LOAD, PrefTrackingStrategy::ATOMIC, 1118 EnforcementLevel::ENFORCE_ON_LOAD, PrefTrackingStrategy::ATOMIC,
1111--- a/chrome/browser/prefs/pref_functional_browsertest.cc 1119--- chrome/browser/prefs/pref_functional_browsertest.cc.orig
1112+++ b/chrome/browser/prefs/pref_functional_browsertest.cc 1120+++ chrome/browser/prefs/pref_functional_browsertest.cc
1113@@ -24,7 +24,6 @@ 1121@@ -24,7 +24,6 @@
1114 #include "components/content_settings/core/common/content_settings_types.h" 1122 #include "components/content_settings/core/common/content_settings_types.h"
1115 #include "components/content_settings/core/common/pref_names.h" 1123 #include "components/content_settings/core/common/pref_names.h"
@@ -1119,8 +1127,8 @@
1119 #include "content/public/browser/web_contents.h" 1127 #include "content/public/browser/web_contents.h"
1120 #include "content/public/test/browser_test.h" 1128 #include "content/public/test/browser_test.h"
1121@@ -220,9 +219,6 @@ IN_PROC_BROWSER_TEST_F(PrefsFunctionalTe 1129@@ -220,9 +219,6 @@ IN_PROC_BROWSER_TEST_F(PrefsFunctionalTe
1122 prefetch::SetPreloadPagesState(prefs, 1130 prefs->SetInteger(prefs::kNetworkPredictionOptions,
1123 prefetch::PreloadPagesState::kNoPreloading); 1131 chrome_browser_net::NETWORK_PREDICTION_NEVER);
1124 1132
1125- EXPECT_TRUE(prefs->GetBoolean(prefs::kSafeBrowsingEnabled)); 1133- EXPECT_TRUE(prefs->GetBoolean(prefs::kSafeBrowsingEnabled));
1126- prefs->SetBoolean(prefs::kSafeBrowsingEnabled, false); 1134- prefs->SetBoolean(prefs::kSafeBrowsingEnabled, false);
@@ -1130,25 +1138,25 @@
1130 1138
1131@@ -236,7 +232,6 @@ IN_PROC_BROWSER_TEST_F(PrefsFunctionalTe 1139@@ -236,7 +232,6 @@ IN_PROC_BROWSER_TEST_F(PrefsFunctionalTe
1132 1140
1133 EXPECT_EQ(prefetch::PreloadPagesState::kNoPreloading, 1141 EXPECT_EQ(chrome_browser_net::NETWORK_PREDICTION_NEVER,
1134 prefetch::GetPreloadPagesState(*prefs)); 1142 prefs->GetInteger(prefs::kNetworkPredictionOptions));
1135- EXPECT_FALSE(prefs->GetBoolean(prefs::kSafeBrowsingEnabled)); 1143- EXPECT_FALSE(prefs->GetBoolean(prefs::kSafeBrowsingEnabled));
1136 EXPECT_FALSE( 1144 EXPECT_FALSE(
1137 prefs->GetBoolean(embedder_support::kAlternateErrorPagesEnabled)); 1145 prefs->GetBoolean(embedder_support::kAlternateErrorPagesEnabled));
1138 EXPECT_FALSE(prefs->GetBoolean(prefs::kSearchSuggestEnabled)); 1146 EXPECT_FALSE(prefs->GetBoolean(prefs::kSearchSuggestEnabled));
1139--- a/chrome/browser/profiles/gaia_info_update_service.cc 1147--- chrome/browser/profiles/gaia_info_update_service.cc.orig
1140+++ b/chrome/browser/profiles/gaia_info_update_service.cc 1148+++ chrome/browser/profiles/gaia_info_update_service.cc
1141@@ -20,7 +20,6 @@ 1149@@ -19,7 +19,6 @@
1150 #include "chrome/common/pref_names.h"
1142 #include "components/prefs/pref_service.h" 1151 #include "components/prefs/pref_service.h"
1143 #include "components/signin/public/base/avatar_icon_util.h" 1152 #include "components/signin/public/base/avatar_icon_util.h"
1144 #include "components/signin/public/base/consent_level.h"
1145-#include "components/signin/public/base/signin_pref_names.h" 1153-#include "components/signin/public/base/signin_pref_names.h"
1146 #include "components/signin/public/identity_manager/account_info.h" 1154 #include "components/signin/public/identity_manager/account_info.h"
1147 #include "components/signin/public/identity_manager/accounts_in_cookie_jar_info.h" 1155 #include "components/signin/public/identity_manager/accounts_in_cookie_jar_info.h"
1148 #include "content/public/browser/notification_details.h" 1156 #include "components/signin/public/identity_manager/consent_level.h"
1149--- a/chrome/browser/profiles/gaia_info_update_service_unittest.cc 1157--- chrome/browser/profiles/gaia_info_update_service_unittest.cc.orig
1150+++ b/chrome/browser/profiles/gaia_info_update_service_unittest.cc 1158+++ chrome/browser/profiles/gaia_info_update_service_unittest.cc
1151@@ -28,7 +28,6 @@ 1159@@ -27,7 +27,6 @@
1152 #include "chrome/test/base/testing_profile_manager.h" 1160 #include "chrome/test/base/testing_profile_manager.h"
1153 #include "components/prefs/pref_service.h" 1161 #include "components/prefs/pref_service.h"
1154 #include "components/profile_metrics/state.h" 1162 #include "components/profile_metrics/state.h"
@@ -1156,9 +1164,9 @@
1156 #include "components/signin/public/identity_manager/account_info.h" 1164 #include "components/signin/public/identity_manager/account_info.h"
1157 #include "components/sync_preferences/pref_service_syncable.h" 1165 #include "components/sync_preferences/pref_service_syncable.h"
1158 #include "content/public/test/browser_task_environment.h" 1166 #include "content/public/test/browser_task_environment.h"
1159--- a/chrome/browser/profiles/profile_attributes_entry.cc 1167--- chrome/browser/profiles/profile_attributes_entry.cc.orig
1160+++ b/chrome/browser/profiles/profile_attributes_entry.cc 1168+++ chrome/browser/profiles/profile_attributes_entry.cc
1161@@ -26,7 +26,6 @@ 1169@@ -29,7 +29,6 @@
1162 #include "components/prefs/pref_service.h" 1170 #include "components/prefs/pref_service.h"
1163 #include "components/prefs/scoped_user_pref_update.h" 1171 #include "components/prefs/scoped_user_pref_update.h"
1164 #include "components/profile_metrics/state.h" 1172 #include "components/profile_metrics/state.h"
@@ -1166,7 +1174,7 @@
1166 #include "components/signin/public/identity_manager/account_info.h" 1174 #include "components/signin/public/identity_manager/account_info.h"
1167 #include "third_party/abseil-cpp/absl/types/optional.h" 1175 #include "third_party/abseil-cpp/absl/types/optional.h"
1168 #include "ui/base/resource/resource_bundle.h" 1176 #include "ui/base/resource/resource_bundle.h"
1169@@ -486,7 +485,7 @@ bool ProfileAttributesEntry::IsUsingDefa 1177@@ -490,7 +489,7 @@ bool ProfileAttributesEntry::IsUsingDefa
1170 } 1178 }
1171 1179
1172 bool ProfileAttributesEntry::IsSignedInWithCredentialProvider() const { 1180 bool ProfileAttributesEntry::IsSignedInWithCredentialProvider() const {
@@ -1175,7 +1183,7 @@
1175 } 1183 }
1176 1184
1177 size_t ProfileAttributesEntry::GetAvatarIconIndex() const { 1185 size_t ProfileAttributesEntry::GetAvatarIconIndex() const {
1178@@ -666,9 +665,6 @@ void ProfileAttributesEntry::SetLastDown 1186@@ -672,9 +671,6 @@ void ProfileAttributesEntry::SetLastDown
1179 } 1187 }
1180 1188
1181 void ProfileAttributesEntry::SetSignedInWithCredentialProvider(bool value) { 1189 void ProfileAttributesEntry::SetSignedInWithCredentialProvider(bool value) {
@@ -1185,9 +1193,9 @@
1185 } 1193 }
1186 1194
1187 void ProfileAttributesEntry::LockForceSigninProfile(bool is_lock) { 1195 void ProfileAttributesEntry::LockForceSigninProfile(bool is_lock) {
1188--- a/chrome/browser/profiles/profile_attributes_storage.cc 1196--- chrome/browser/profiles/profile_attributes_storage.cc.orig
1189+++ b/chrome/browser/profiles/profile_attributes_storage.cc 1197+++ chrome/browser/profiles/profile_attributes_storage.cc
1190@@ -38,7 +38,6 @@ 1198@@ -36,7 +36,6 @@
1191 #include "components/prefs/scoped_user_pref_update.h" 1199 #include "components/prefs/scoped_user_pref_update.h"
1192 #include "components/profile_metrics/state.h" 1200 #include "components/profile_metrics/state.h"
1193 #include "components/signin/public/base/persistent_repeating_timer.h" 1201 #include "components/signin/public/base/persistent_repeating_timer.h"
@@ -1195,7 +1203,7 @@
1195 #include "content/public/browser/browser_task_traits.h" 1203 #include "content/public/browser/browser_task_traits.h"
1196 #include "content/public/browser/browser_thread.h" 1204 #include "content/public/browser/browser_thread.h"
1197 #include "third_party/icu/source/i18n/unicode/coll.h" 1205 #include "third_party/icu/source/i18n/unicode/coll.h"
1198@@ -376,8 +375,6 @@ void ProfileAttributesStorage::AddProfil 1206@@ -374,8 +373,6 @@ void ProfileAttributesStorage::AddProfil
1199 if (params.account_id.HasAccountIdKey()) 1207 if (params.account_id.HasAccountIdKey())
1200 info.SetStringKey(ProfileAttributesEntry::kAccountIdKey, 1208 info.SetStringKey(ProfileAttributesEntry::kAccountIdKey,
1201 params.account_id.GetAccountIdKey()); 1209 params.account_id.GetAccountIdKey());
@@ -1204,9 +1212,9 @@
1204 attributes->SetKey(key, std::move(info)); 1212 attributes->SetKey(key, std::move(info));
1205 1213
1206 ProfileAttributesEntry* entry = InitEntryWithKey(key, params.is_omitted); 1214 ProfileAttributesEntry* entry = InitEntryWithKey(key, params.is_omitted);
1207--- a/chrome/browser/profiles/profile_impl.cc 1215--- chrome/browser/profiles/profile_impl.cc.orig
1208+++ b/chrome/browser/profiles/profile_impl.cc 1216+++ chrome/browser/profiles/profile_impl.cc
1209@@ -149,7 +149,6 @@ 1217@@ -150,7 +150,6 @@
1210 #include "components/prefs/scoped_user_pref_update.h" 1218 #include "components/prefs/scoped_user_pref_update.h"
1211 #include "components/profile_metrics/browser_profile_type.h" 1219 #include "components/profile_metrics/browser_profile_type.h"
1212 #include "components/security_interstitials/content/stateful_ssl_host_state_delegate.h" 1220 #include "components/security_interstitials/content/stateful_ssl_host_state_delegate.h"
@@ -1214,17 +1222,17 @@
1214 #include "components/signin/public/identity_manager/identity_manager.h" 1222 #include "components/signin/public/identity_manager/identity_manager.h"
1215 #include "components/site_isolation/site_isolation_policy.h" 1223 #include "components/site_isolation/site_isolation_policy.h"
1216 #include "components/spellcheck/spellcheck_buildflags.h" 1224 #include "components/spellcheck/spellcheck_buildflags.h"
1217--- a/chrome/browser/profiles/profile_manager.cc 1225--- chrome/browser/profiles/profile_manager.cc.orig
1218+++ b/chrome/browser/profiles/profile_manager.cc 1226+++ chrome/browser/profiles/profile_manager.cc
1219@@ -91,7 +91,6 @@ 1227@@ -94,7 +94,6 @@
1220 #include "components/signin/public/base/consent_level.h" 1228 #include "components/search_engines/default_search_manager.h"
1221 #include "components/signin/public/base/signin_buildflags.h" 1229 #include "components/signin/public/base/signin_buildflags.h"
1222 #include "components/signin/public/base/signin_metrics.h" 1230 #include "components/signin/public/base/signin_metrics.h"
1223-#include "components/signin/public/base/signin_pref_names.h" 1231-#include "components/signin/public/base/signin_pref_names.h"
1232 #include "components/signin/public/identity_manager/consent_level.h"
1224 #include "components/signin/public/identity_manager/identity_manager.h" 1233 #include "components/signin/public/identity_manager/identity_manager.h"
1225 #include "components/signin/public/identity_manager/primary_account_mutator.h" 1234 #include "components/signin/public/identity_manager/primary_account_mutator.h"
1226 #include "components/sync/base/stop_source.h" 1235@@ -2105,8 +2104,7 @@ void ProfileManager::AddProfileToStorage
1227@@ -2192,8 +2191,7 @@ void ProfileManager::AddProfileToStorage
1228 entry->SetAuthInfo(account_info.gaia, username, 1236 entry->SetAuthInfo(account_info.gaia, username,
1229 is_consented_primary_account); 1237 is_consented_primary_account);
1230 1238
@@ -1232,9 +1240,9 @@
1232- prefs::kSignedInWithCredentialProvider)); 1240- prefs::kSignedInWithCredentialProvider));
1233+ entry->SetSignedInWithCredentialProvider(false); 1241+ entry->SetSignedInWithCredentialProvider(false);
1234 1242
1235 #if !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_CHROMEOS_ASH) 1243 #if !defined(OS_ANDROID) && !BUILDFLAG(IS_CHROMEOS_ASH)
1236 // Sign out if force-sign-in policy is enabled and profile is not signed 1244 // Sign out if force-sign-in policy is enabled and profile is not signed
1237@@ -2248,14 +2246,13 @@ void ProfileManager::AddProfileToStorage 1245@@ -2161,14 +2159,13 @@ void ProfileManager::AddProfileToStorage
1238 1246
1239 init_params.is_ephemeral = IsEphemeral(profile); 1247 init_params.is_ephemeral = IsEphemeral(profile);
1240 init_params.is_signed_in_with_credential_provider = 1248 init_params.is_signed_in_with_credential_provider =
@@ -1250,9 +1258,9 @@
1250 prefs->SetBoolean(bookmarks::prefs::kEditBookmarksEnabled, false); 1258 prefs->SetBoolean(bookmarks::prefs::kEditBookmarksEnabled, false);
1251 prefs->SetBoolean(bookmarks::prefs::kShowBookmarkBar, false); 1259 prefs->SetBoolean(bookmarks::prefs::kShowBookmarkBar, false);
1252 prefs->ClearPref(DefaultSearchManager::kDefaultSearchProviderDataPrefName); 1260 prefs->ClearPref(DefaultSearchManager::kDefaultSearchProviderDataPrefName);
1253--- a/chrome/browser/profiles/profile_window.cc 1261--- chrome/browser/profiles/profile_window.cc.orig
1254+++ b/chrome/browser/profiles/profile_window.cc 1262+++ chrome/browser/profiles/profile_window.cc
1255@@ -41,7 +41,6 @@ 1263@@ -40,7 +40,6 @@
1256 #include "chrome/common/url_constants.h" 1264 #include "chrome/common/url_constants.h"
1257 #include "components/flags_ui/pref_service_flags_storage.h" 1265 #include "components/flags_ui/pref_service_flags_storage.h"
1258 #include "components/prefs/pref_service.h" 1266 #include "components/prefs/pref_service.h"
@@ -1260,8 +1268,8 @@
1260 #include "components/signin/public/identity_manager/account_info.h" 1268 #include "components/signin/public/identity_manager/account_info.h"
1261 #include "components/signin/public/identity_manager/identity_manager.h" 1269 #include "components/signin/public/identity_manager/identity_manager.h"
1262 #include "content/public/browser/browser_thread.h" 1270 #include "content/public/browser/browser_thread.h"
1263--- a/chrome/browser/profiles/profiles_state.cc 1271--- chrome/browser/profiles/profiles_state.cc.orig
1264+++ b/chrome/browser/profiles/profiles_state.cc 1272+++ chrome/browser/profiles/profiles_state.cc
1265@@ -42,7 +42,6 @@ 1273@@ -42,7 +42,6 @@
1266 #include <algorithm> 1274 #include <algorithm>
1267 #include "chrome/browser/profiles/gaia_info_update_service.h" 1275 #include "chrome/browser/profiles/gaia_info_update_service.h"
@@ -1270,24 +1278,24 @@
1270 #endif 1278 #endif
1271 1279
1272 #if BUILDFLAG(IS_CHROMEOS_LACROS) 1280 #if BUILDFLAG(IS_CHROMEOS_LACROS)
1273--- a/chrome/browser/resources/settings/privacy_page/disable_safebrowsing_dialog.html 1281--- chrome/browser/resources/settings/privacy_page/disable_safebrowsing_dialog.html.orig
1274+++ b/chrome/browser/resources/settings/privacy_page/disable_safebrowsing_dialog.html 1282+++ chrome/browser/resources/settings/privacy_page/disable_safebrowsing_dialog.html
1275@@ -1,12 +1,9 @@ 1283@@ -1,12 +1,9 @@
1276 <cr-dialog id="dialog" close-text="$i18n{close}"> 1284 <cr-dialog id="dialog" close-text="$i18n{close}">
1277- <div slot="title">$i18n{safeBrowsingDisableDialog}</div> 1285- <div slot="title">$i18n{safeBrowsingDisableDialog}</div>
1278- <div slot="body">$i18n{safeBrowsingDisableDialogDesc}</div> 1286- <div slot="body">$i18n{safeBrowsingDisableDialogDesc}</div>
1279 <div slot="button-container"> 1287 <div slot="button-container">
1280 <cr-button id="cancel" class="cancel-button" on-click="onDialogCancel_"> 1288 <cr-button class="cancel-button" on-click="onDialogCancel_">
1281 $i18n{cancel} 1289 $i18n{cancel}
1282 </cr-button> 1290 </cr-button>
1283 <cr-button id="confirm" class="action-button" on-click="onDialogConfirm_"> 1291 <cr-button class="action-button" on-click="onDialogConfirm_">
1284- $i18n{safeBrowsingDisableDialogConfirm} 1292- $i18n{safeBrowsingDisableDialogConfirm}
1285 </cr-button> 1293 </cr-button>
1286 </div> 1294 </div>
1287 </cr-dialog> 1295 </cr-dialog>
1288--- a/chrome/browser/resources/settings/privacy_page/privacy_page.html 1296--- chrome/browser/resources/settings/privacy_page/privacy_page.html.orig
1289+++ b/chrome/browser/resources/settings/privacy_page/privacy_page.html 1297+++ chrome/browser/resources/settings/privacy_page/privacy_page.html
1290@@ -558,7 +558,7 @@ 1298@@ -535,7 +535,7 @@
1291 </category-setting-exceptions> 1299 </category-setting-exceptions>
1292 </settings-subpage> 1300 </settings-subpage>
1293 </template> 1301 </template>
@@ -1296,9 +1304,9 @@
1296 no-search> 1304 no-search>
1297 <template is="dom-if" route-path="/content/ads" no-search> 1305 <template is="dom-if" route-path="/content/ads" no-search>
1298 <settings-subpage page-title="$i18n{siteSettingsAds}" 1306 <settings-subpage page-title="$i18n{siteSettingsAds}"
1299--- a/chrome/browser/resources/settings/privacy_page/privacy_page.ts 1307--- chrome/browser/resources/settings/privacy_page/privacy_page.ts.orig
1300+++ b/chrome/browser/resources/settings/privacy_page/privacy_page.ts 1308+++ chrome/browser/resources/settings/privacy_page/privacy_page.ts
1301@@ -101,7 +101,7 @@ export class SettingsPrivacyPageElement 1309@@ -90,7 +90,7 @@ export class SettingsPrivacyPageElement
1302 enableSafeBrowsingSubresourceFilter_: { 1310 enableSafeBrowsingSubresourceFilter_: {
1303 type: Boolean, 1311 type: Boolean,
1304 value() { 1312 value() {
@@ -1307,8 +1315,8 @@
1307 } 1315 }
1308 }, 1316 },
1309 1317
1310--- a/chrome/browser/resources/settings/privacy_page/security_page.html 1318--- chrome/browser/resources/settings/privacy_page/security_page.html.orig
1311+++ b/chrome/browser/resources/settings/privacy_page/security_page.html 1319+++ chrome/browser/resources/settings/privacy_page/security_page.html
1312@@ -53,105 +53,6 @@ 1320@@ -53,105 +53,6 @@
1313 <img id="banner" alt="" 1321 <img id="banner" alt=""
1314 src="chrome://settings/images/safe_browsing_banner.svg"> 1322 src="chrome://settings/images/safe_browsing_banner.svg">
@@ -1415,7 +1423,7 @@
1415 <div class="cr-row first"> 1423 <div class="cr-row first">
1416 <h2>$i18n{advancedPageTitle}</h2> 1424 <h2>$i18n{advancedPageTitle}</h2>
1417 </div> 1425 </div>
1418@@ -213,8 +114,3 @@ 1426@@ -202,8 +103,3 @@
1419 on-click="onAdvancedProtectionProgramLinkClick_" 1427 on-click="onAdvancedProtectionProgramLinkClick_"
1420 external> 1428 external>
1421 </cr-link-row> 1429 </cr-link-row>
@@ -1424,9 +1432,9 @@
1424- on-close="onDisableSafebrowsingDialogClose_"> 1432- on-close="onDisableSafebrowsingDialogClose_">
1425- </settings-disable-safebrowsing-dialog> 1433- </settings-disable-safebrowsing-dialog>
1426- </template> 1434- </template>
1427--- a/chrome/browser/resources/settings/privacy_page/security_page.ts 1435--- chrome/browser/resources/settings/privacy_page/security_page.ts.orig
1428+++ b/chrome/browser/resources/settings/privacy_page/security_page.ts 1436+++ chrome/browser/resources/settings/privacy_page/security_page.ts
1429@@ -196,15 +196,6 @@ export class SettingsSecurityPageElement 1437@@ -182,15 +182,6 @@ export class SettingsSecurityPageElement
1430 1438
1431 ready() { 1439 ready() {
1432 super.ready(); 1440 super.ready();
@@ -1442,7 +1450,7 @@
1442 } 1450 }
1443 1451
1444 /** 1452 /**
1445@@ -253,8 +244,7 @@ export class SettingsSecurityPageElement 1453@@ -239,8 +230,7 @@ export class SettingsSecurityPageElement
1446 } 1454 }
1447 1455
1448 private getDisabledExtendedSafeBrowsing_(): boolean { 1456 private getDisabledExtendedSafeBrowsing_(): boolean {
@@ -1452,9 +1460,9 @@
1452 } 1460 }
1453 1461
1454 private getPasswordsLeakToggleSubLabel_(): string { 1462 private getPasswordsLeakToggleSubLabel_(): string {
1455--- a/chrome/browser/resources/settings/site_settings_page/site_settings_page.ts 1463--- chrome/browser/resources/settings/site_settings_page/site_settings_page.ts.orig
1456+++ b/chrome/browser/resources/settings/site_settings_page/site_settings_page.ts 1464+++ chrome/browser/resources/settings/site_settings_page/site_settings_page.ts
1457@@ -48,7 +48,7 @@ function getCategoryItemMap(): Map<Conte 1465@@ -47,7 +47,7 @@ function getCategoryItemMap(): Map<Conte
1458 enabledLabel: 'siteSettingsAdsAllowed', 1466 enabledLabel: 'siteSettingsAdsAllowed',
1459 disabledLabel: 'siteSettingsAdsBlocked', 1467 disabledLabel: 'siteSettingsAdsBlocked',
1460 shouldShow: () => 1468 shouldShow: () =>
@@ -1463,8 +1471,8 @@
1463 }, 1471 },
1464 { 1472 {
1465 route: routes.SITE_SETTINGS_AR, 1473 route: routes.SITE_SETTINGS_AR,
1466--- a/chrome/browser/safe_browsing/ad_redirect_trigger_browsertest.cc 1474--- chrome/browser/safe_browsing/ad_redirect_trigger_browsertest.cc.orig
1467+++ b/chrome/browser/safe_browsing/ad_redirect_trigger_browsertest.cc 1475+++ chrome/browser/safe_browsing/ad_redirect_trigger_browsertest.cc
1468@@ -19,7 +19,6 @@ 1476@@ -19,7 +19,6 @@
1469 #include "components/prefs/testing_pref_service.h" 1477 #include "components/prefs/testing_pref_service.h"
1470 #include "components/safe_browsing/content/browser/triggers/ad_redirect_trigger.h" 1478 #include "components/safe_browsing/content/browser/triggers/ad_redirect_trigger.h"
@@ -1473,16 +1481,16 @@
1473 #include "content/public/browser/render_frame_host.h" 1481 #include "content/public/browser/render_frame_host.h"
1474 #include "content/public/browser/web_contents.h" 1482 #include "content/public/browser/web_contents.h"
1475 #include "content/public/test/browser_test.h" 1483 #include "content/public/test/browser_test.h"
1476--- a/chrome/browser/safe_browsing/advanced_protection_status_manager.cc 1484--- chrome/browser/safe_browsing/advanced_protection_status_manager.cc.orig
1477+++ b/chrome/browser/safe_browsing/advanced_protection_status_manager.cc 1485+++ chrome/browser/safe_browsing/advanced_protection_status_manager.cc
1478@@ -13,7 +13,6 @@ 1486@@ -13,7 +13,6 @@
1479 #include "chrome/browser/signin/identity_manager_factory.h" 1487 #include "chrome/browser/signin/identity_manager_factory.h"
1480 #include "components/prefs/pref_service.h" 1488 #include "components/prefs/pref_service.h"
1481 #include "components/safe_browsing/core/common/features.h" 1489 #include "components/safe_browsing/core/common/features.h"
1482-#include "components/safe_browsing/core/common/safe_browsing_prefs.h" 1490-#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
1483 #include "components/signin/public/base/consent_level.h"
1484 #include "components/signin/public/identity_manager/account_info.h" 1491 #include "components/signin/public/identity_manager/account_info.h"
1485 #include "components/signin/public/identity_manager/accounts_mutator.h" 1492 #include "components/signin/public/identity_manager/accounts_mutator.h"
1493 #include "components/signin/public/identity_manager/consent_level.h"
1486@@ -63,9 +62,7 @@ void AdvancedProtectionStatusManager::Ma 1494@@ -63,9 +62,7 @@ void AdvancedProtectionStatusManager::Ma
1487 1495
1488 is_under_advanced_protection_ = core_info.is_under_advanced_protection; 1496 is_under_advanced_protection_ = core_info.is_under_advanced_protection;
@@ -1516,8 +1524,8 @@
1516 } 1524 }
1517 1525
1518 bool AdvancedProtectionStatusManager::IsUnconsentedPrimaryAccount( 1526 bool AdvancedProtectionStatusManager::IsUnconsentedPrimaryAccount(
1519--- a/chrome/browser/safe_browsing/advanced_protection_status_manager_unittest.cc 1527--- chrome/browser/safe_browsing/advanced_protection_status_manager_unittest.cc.orig
1520+++ b/chrome/browser/safe_browsing/advanced_protection_status_manager_unittest.cc 1528+++ chrome/browser/safe_browsing/advanced_protection_status_manager_unittest.cc
1521@@ -10,7 +10,6 @@ 1529@@ -10,7 +10,6 @@
1522 #include "base/test/task_environment.h" 1530 #include "base/test/task_environment.h"
1523 #include "build/chromeos_buildflags.h" 1531 #include "build/chromeos_buildflags.h"
@@ -1526,18 +1534,18 @@
1526 #include "components/signin/public/identity_manager/account_info.h" 1534 #include "components/signin/public/identity_manager/account_info.h"
1527 #include "components/signin/public/identity_manager/accounts_mutator.h" 1535 #include "components/signin/public/identity_manager/accounts_mutator.h"
1528 #include "components/signin/public/identity_manager/identity_test_environment.h" 1536 #include "components/signin/public/identity_manager/identity_test_environment.h"
1529--- a/chrome/browser/safe_browsing/android/services_delegate_android.h 1537--- chrome/browser/safe_browsing/android/services_delegate_android.h.orig
1530+++ b/chrome/browser/safe_browsing/android/services_delegate_android.h 1538+++ chrome/browser/safe_browsing/android/services_delegate_android.h
1531@@ -6,7 +6,6 @@ 1539@@ -7,7 +7,6 @@
1532 #define CHROME_BROWSER_SAFE_BROWSING_ANDROID_SERVICES_DELEGATE_ANDROID_H_
1533 1540
1541 #include "base/macros.h"
1534 #include "chrome/browser/safe_browsing/services_delegate.h" 1542 #include "chrome/browser/safe_browsing/services_delegate.h"
1535-#include "components/safe_browsing/core/common/safe_browsing_prefs.h" 1543-#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
1536 1544
1537 namespace safe_browsing { 1545 namespace safe_browsing {
1538 1546
1539--- a/chrome/browser/safe_browsing/certificate_reporting_service.cc 1547--- chrome/browser/safe_browsing/certificate_reporting_service.cc.orig
1540+++ b/chrome/browser/safe_browsing/certificate_reporting_service.cc 1548+++ chrome/browser/safe_browsing/certificate_reporting_service.cc
1541@@ -14,7 +14,6 @@ 1549@@ -14,7 +14,6 @@
1542 #include "chrome/browser/profiles/profile.h" 1550 #include "chrome/browser/profiles/profile.h"
1543 #include "chrome/browser/safe_browsing/safe_browsing_service.h" 1551 #include "chrome/browser/safe_browsing/safe_browsing_service.h"
@@ -1546,9 +1554,9 @@
1546 #include "components/security_interstitials/content/certificate_error_report.h" 1554 #include "components/security_interstitials/content/certificate_error_report.h"
1547 #include "content/public/browser/browser_thread.h" 1555 #include "content/public/browser/browser_thread.h"
1548 #include "services/network/public/cpp/shared_url_loader_factory.h" 1556 #include "services/network/public/cpp/shared_url_loader_factory.h"
1549--- a/chrome/browser/safe_browsing/certificate_reporting_service_browsertest.cc 1557--- chrome/browser/safe_browsing/certificate_reporting_service_browsertest.cc.orig
1550+++ b/chrome/browser/safe_browsing/certificate_reporting_service_browsertest.cc 1558+++ chrome/browser/safe_browsing/certificate_reporting_service_browsertest.cc
1551@@ -26,7 +26,6 @@ 1559@@ -27,7 +27,6 @@
1552 #include "chrome/test/base/in_process_browser_test.h" 1560 #include "chrome/test/base/in_process_browser_test.h"
1553 #include "chrome/test/base/ui_test_utils.h" 1561 #include "chrome/test/base/ui_test_utils.h"
1554 #include "components/prefs/pref_service.h" 1562 #include "components/prefs/pref_service.h"
@@ -1556,8 +1564,8 @@
1556 #include "components/security_interstitials/content/cert_report_helper.h" 1564 #include "components/security_interstitials/content/cert_report_helper.h"
1557 #include "components/security_interstitials/content/certificate_error_report.h" 1565 #include "components/security_interstitials/content/certificate_error_report.h"
1558 #include "components/variations/variations_params_manager.h" 1566 #include "components/variations/variations_params_manager.h"
1559--- a/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_controller_impl_win.cc 1567--- chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_controller_impl_win.cc.orig
1560+++ b/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
1561@@ -43,7 +43,6 @@ 1569@@ -43,7 +43,6 @@
1562 #include "components/component_updater/component_updater_service.h" 1570 #include "components/component_updater/component_updater_service.h"
1563 #include "components/component_updater/pref_names.h" 1571 #include "components/component_updater/pref_names.h"
@@ -1566,9 +1574,9 @@
1566 #include "content/public/browser/browser_task_traits.h" 1574 #include "content/public/browser/browser_task_traits.h"
1567 #include "content/public/browser/browser_thread.h" 1575 #include "content/public/browser/browser_thread.h"
1568 #include "net/http/http_status_code.h" 1576 #include "net/http/http_status_code.h"
1569--- a/chrome/browser/safe_browsing/chrome_cleaner/reporter_runner_browsertest_win.cc 1577--- chrome/browser/safe_browsing/chrome_cleaner/reporter_runner_browsertest_win.cc.orig
1570+++ b/chrome/browser/safe_browsing/chrome_cleaner/reporter_runner_browsertest_win.cc 1578+++ chrome/browser/safe_browsing/chrome_cleaner/reporter_runner_browsertest_win.cc
1571@@ -43,7 +43,6 @@ 1579@@ -44,7 +44,6 @@
1572 #include "components/policy/core/common/mock_configuration_policy_provider.h" 1580 #include "components/policy/core/common/mock_configuration_policy_provider.h"
1573 #include "components/policy/policy_constants.h" 1581 #include "components/policy/policy_constants.h"
1574 #include "components/prefs/pref_service.h" 1582 #include "components/prefs/pref_service.h"
@@ -1576,8 +1584,8 @@
1576 #include "content/public/test/browser_test.h" 1584 #include "content/public/test/browser_test.h"
1577 #include "testing/gmock/include/gmock/gmock.h" 1585 #include "testing/gmock/include/gmock/gmock.h"
1578 #include "testing/gtest/include/gtest/gtest.h" 1586 #include "testing/gtest/include/gtest/gtest.h"
1579--- a/chrome/browser/safe_browsing/chrome_cleaner/srt_client_info_win.cc 1587--- chrome/browser/safe_browsing/chrome_cleaner/srt_client_info_win.cc.orig
1580+++ b/chrome/browser/safe_browsing/chrome_cleaner/srt_client_info_win.cc 1588+++ chrome/browser/safe_browsing/chrome_cleaner/srt_client_info_win.cc
1581@@ -12,7 +12,6 @@ 1589@@ -12,7 +12,6 @@
1582 #include "chrome/browser/profiles/profile.h" 1590 #include "chrome/browser/profiles/profile.h"
1583 #include "chrome/browser/profiles/profile_manager.h" 1591 #include "chrome/browser/profiles/profile_manager.h"
@@ -1586,9 +1594,9 @@
1586 #include "components/version_info/version_info.h" 1594 #include "components/version_info/version_info.h"
1587 1595
1588 namespace safe_browsing { 1596 namespace safe_browsing {
1589--- a/chrome/browser/safe_browsing/chrome_password_protection_service.cc 1597--- chrome/browser/safe_browsing/chrome_password_protection_service.cc.orig
1590+++ b/chrome/browser/safe_browsing/chrome_password_protection_service.cc 1598+++ chrome/browser/safe_browsing/chrome_password_protection_service.cc
1591@@ -64,7 +64,6 @@ 1599@@ -63,7 +63,6 @@
1592 #include "components/safe_browsing/core/browser/verdict_cache_manager.h" 1600 #include "components/safe_browsing/core/browser/verdict_cache_manager.h"
1593 #include "components/safe_browsing/core/common/features.h" 1601 #include "components/safe_browsing/core/common/features.h"
1594 #include "components/safe_browsing/core/common/proto/csd.pb.h" 1602 #include "components/safe_browsing/core/common/proto/csd.pb.h"
@@ -1596,7 +1604,7 @@
1596 #include "components/safe_browsing/core/common/safebrowsing_constants.h" 1604 #include "components/safe_browsing/core/common/safebrowsing_constants.h"
1597 #include "components/safe_browsing/core/common/utils.h" 1605 #include "components/safe_browsing/core/common/utils.h"
1598 #include "components/security_interstitials/content/unsafe_resource_util.h" 1606 #include "components/security_interstitials/content/unsafe_resource_util.h"
1599@@ -1221,14 +1220,6 @@ bool ChromePasswordProtectionService::Ha 1607@@ -1220,14 +1219,6 @@ bool ChromePasswordProtectionService::Ha
1600 } 1608 }
1601 1609
1602 void ChromePasswordProtectionService::OnWarningTriggerChanged() { 1610 void ChromePasswordProtectionService::OnWarningTriggerChanged() {
@@ -1611,7 +1619,7 @@
1611 // Clears captured enterprise password hashes or GSuite sync password hashes. 1619 // Clears captured enterprise password hashes or GSuite sync password hashes.
1612 password_manager::PasswordReuseManager* reuse_manager = 1620 password_manager::PasswordReuseManager* reuse_manager =
1613 GetPasswordReuseManager(); 1621 GetPasswordReuseManager();
1614@@ -1386,7 +1377,7 @@ PrefService* ChromePasswordProtectionSer 1622@@ -1385,7 +1376,7 @@ PrefService* ChromePasswordProtectionSer
1615 } 1623 }
1616 1624
1617 bool ChromePasswordProtectionService::IsSafeBrowsingEnabled() { 1625 bool ChromePasswordProtectionService::IsSafeBrowsingEnabled() {
@@ -1620,7 +1628,7 @@
1620 } 1628 }
1621 1629
1622 bool ChromePasswordProtectionService::IsExtendedReporting() { 1630 bool ChromePasswordProtectionService::IsExtendedReporting() {
1623@@ -1406,44 +1397,7 @@ bool ChromePasswordProtectionService::Is 1631@@ -1405,44 +1396,7 @@ bool ChromePasswordProtectionService::Is
1624 bool ChromePasswordProtectionService::IsPingingEnabled( 1632 bool ChromePasswordProtectionService::IsPingingEnabled(
1625 LoginReputationClientRequest::TriggerType trigger_type, 1633 LoginReputationClientRequest::TriggerType trigger_type,
1626 ReusedPasswordAccountType password_type) { 1634 ReusedPasswordAccountType password_type) {
@@ -1648,7 +1656,7 @@
1648-// Only saved password and GAIA password reuse warnings are shown to users on 1656-// Only saved password and GAIA password reuse warnings are shown to users on
1649-// Android, so other types of password reuse events should be gated by Safe 1657-// Android, so other types of password reuse events should be gated by Safe
1650-// Browsing extended reporting. 1658-// Browsing extended reporting.
1651-#if BUILDFLAG(IS_ANDROID) 1659-#if defined(OS_ANDROID)
1652- if (password_type.account_type() == 1660- if (password_type.account_type() ==
1653- ReusedPasswordAccountType::SAVED_PASSWORD || 1661- ReusedPasswordAccountType::SAVED_PASSWORD ||
1654- IsSyncingGMAILPasswordWithSignedInProtectionEnabled(password_type)) { 1662- IsSyncingGMAILPasswordWithSignedInProtectionEnabled(password_type)) {
@@ -1666,8 +1674,8 @@
1666 } 1674 }
1667 1675
1668 RequestOutcome ChromePasswordProtectionService::GetPingNotSentReason( 1676 RequestOutcome ChromePasswordProtectionService::GetPingNotSentReason(
1669@@ -1669,22 +1623,6 @@ MaybeCreateCommitDeferringCondition( 1677@@ -1661,22 +1615,6 @@ MaybeCreateNavigationThrottle(content::N
1670 : nullptr; 1678 : nullptr;
1671 } 1679 }
1672 1680
1673-PasswordProtectionTrigger 1681-PasswordProtectionTrigger
@@ -1689,9 +1697,9 @@
1689 bool ChromePasswordProtectionService::IsURLAllowlistedForPasswordEntry( 1697 bool ChromePasswordProtectionService::IsURLAllowlistedForPasswordEntry(
1690 const GURL& url) const { 1698 const GURL& url) const {
1691 if (!profile_) 1699 if (!profile_)
1692--- a/chrome/browser/safe_browsing/chrome_password_protection_service.h 1700--- chrome/browser/safe_browsing/chrome_password_protection_service.h.orig
1693+++ b/chrome/browser/safe_browsing/chrome_password_protection_service.h 1701+++ chrome/browser/safe_browsing/chrome_password_protection_service.h
1694@@ -214,13 +214,6 @@ class ChromePasswordProtectionService : 1702@@ -211,13 +211,6 @@ class ChromePasswordProtectionService :
1695 bool UserClickedThroughSBInterstitial( 1703 bool UserClickedThroughSBInterstitial(
1696 PasswordProtectionRequest* request) override; 1704 PasswordProtectionRequest* request) override;
1697 1705
@@ -1705,9 +1713,9 @@
1705 // If |url| matches Safe Browsing allowlist domains, password protection 1713 // If |url| matches Safe Browsing allowlist domains, password protection
1706 // change password URL, or password protection login URLs in the enterprise 1714 // change password URL, or password protection login URLs in the enterprise
1707 // policy. 1715 // policy.
1708--- a/chrome/browser/safe_browsing/chrome_password_protection_service_browsertest.cc 1716--- chrome/browser/safe_browsing/chrome_password_protection_service_browsertest.cc.orig
1709+++ b/chrome/browser/safe_browsing/chrome_password_protection_service_browsertest.cc 1717+++ chrome/browser/safe_browsing/chrome_password_protection_service_browsertest.cc
1710@@ -39,7 +39,6 @@ 1718@@ -38,7 +38,6 @@
1711 #include "components/safe_browsing/content/browser/password_protection/password_protection_test_util.h" 1719 #include "components/safe_browsing/content/browser/password_protection/password_protection_test_util.h"
1712 #include "components/safe_browsing/core/browser/password_protection/metrics_util.h" 1720 #include "components/safe_browsing/core/browser/password_protection/metrics_util.h"
1713 #include "components/safe_browsing/core/common/features.h" 1721 #include "components/safe_browsing/core/common/features.h"
@@ -1715,9 +1723,9 @@
1715 #include "components/security_state/core/security_state.h" 1723 #include "components/security_state/core/security_state.h"
1716 #include "components/signin/public/identity_manager/account_info.h" 1724 #include "components/signin/public/identity_manager/account_info.h"
1717 #include "components/signin/public/identity_manager/identity_test_environment.h" 1725 #include "components/signin/public/identity_manager/identity_test_environment.h"
1718--- a/chrome/browser/safe_browsing/chrome_password_protection_service_sync_browsertest.cc 1726--- chrome/browser/safe_browsing/chrome_password_protection_service_sync_browsertest.cc.orig
1719+++ b/chrome/browser/safe_browsing/chrome_password_protection_service_sync_browsertest.cc 1727+++ chrome/browser/safe_browsing/chrome_password_protection_service_sync_browsertest.cc
1720@@ -29,9 +29,7 @@ 1728@@ -28,9 +28,7 @@
1721 #include "components/prefs/pref_service.h" 1729 #include "components/prefs/pref_service.h"
1722 #include "components/prefs/scoped_user_pref_update.h" 1730 #include "components/prefs/scoped_user_pref_update.h"
1723 #include "components/safe_browsing/content/browser/password_protection/password_protection_request_content.h" 1731 #include "components/safe_browsing/content/browser/password_protection/password_protection_request_content.h"
@@ -1727,8 +1735,8 @@
1727 #include "components/signin/public/identity_manager/identity_manager.h" 1735 #include "components/signin/public/identity_manager/identity_manager.h"
1728 #include "components/signin/public/identity_manager/identity_test_utils.h" 1736 #include "components/signin/public/identity_manager/identity_test_utils.h"
1729 #include "components/sync/driver/sync_service.h" 1737 #include "components/sync/driver/sync_service.h"
1730--- a/chrome/browser/safe_browsing/cloud_content_scanning/binary_upload_service.cc 1738--- chrome/browser/safe_browsing/cloud_content_scanning/binary_upload_service.cc.orig
1731+++ b/chrome/browser/safe_browsing/cloud_content_scanning/binary_upload_service.cc 1739+++ chrome/browser/safe_browsing/cloud_content_scanning/binary_upload_service.cc
1732@@ -34,7 +34,6 @@ 1740@@ -34,7 +34,6 @@
1733 #include "components/prefs/pref_service.h" 1741 #include "components/prefs/pref_service.h"
1734 #include "components/safe_browsing/content/browser/web_ui/safe_browsing_ui.h" 1742 #include "components/safe_browsing/content/browser/web_ui/safe_browsing_ui.h"
@@ -1737,9 +1745,9 @@
1737 1745
1738 #include "content/public/browser/browser_task_traits.h" 1746 #include "content/public/browser/browser_task_traits.h"
1739 #include "content/public/browser/browser_thread.h" 1747 #include "content/public/browser/browser_thread.h"
1740--- a/chrome/browser/safe_browsing/download_protection/check_client_download_request.cc 1748--- chrome/browser/safe_browsing/download_protection/check_client_download_request.cc.orig
1741+++ b/chrome/browser/safe_browsing/download_protection/check_client_download_request.cc 1749+++ chrome/browser/safe_browsing/download_protection/check_client_download_request.cc
1742@@ -37,7 +37,6 @@ 1750@@ -38,7 +38,6 @@
1743 #include "components/safe_browsing/content/common/file_type_policies.h" 1751 #include "components/safe_browsing/content/common/file_type_policies.h"
1744 #include "components/safe_browsing/core/common/features.h" 1752 #include "components/safe_browsing/core/common/features.h"
1745 #include "components/safe_browsing/core/common/proto/csd.pb.h" 1753 #include "components/safe_browsing/core/common/proto/csd.pb.h"
@@ -1747,8 +1755,8 @@
1747 #include "components/safe_browsing/core/common/utils.h" 1755 #include "components/safe_browsing/core/common/utils.h"
1748 #include "components/url_matcher/url_matcher.h" 1756 #include "components/url_matcher/url_matcher.h"
1749 #include "content/public/browser/browser_context.h" 1757 #include "content/public/browser/browser_context.h"
1750--- a/chrome/browser/safe_browsing/download_protection/check_client_download_request_base.cc 1758--- chrome/browser/safe_browsing/download_protection/check_client_download_request_base.cc.orig
1751+++ b/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
1752@@ -24,7 +24,6 @@ 1760@@ -24,7 +24,6 @@
1753 #include "components/safe_browsing/content/browser/web_ui/safe_browsing_ui.h" 1761 #include "components/safe_browsing/content/browser/web_ui/safe_browsing_ui.h"
1754 #include "components/safe_browsing/content/common/file_type_policies.h" 1762 #include "components/safe_browsing/content/common/file_type_policies.h"
@@ -1757,9 +1765,9 @@
1757 #include "components/safe_browsing/core/common/utils.h" 1765 #include "components/safe_browsing/core/common/utils.h"
1758 #include "content/public/browser/browser_context.h" 1766 #include "content/public/browser/browser_context.h"
1759 #include "content/public/browser/browser_task_traits.h" 1767 #include "content/public/browser/browser_task_traits.h"
1760--- a/chrome/browser/safe_browsing/download_protection/download_protection_service_unittest.cc 1768--- chrome/browser/safe_browsing/download_protection/download_protection_service_unittest.cc.orig
1761+++ b/chrome/browser/safe_browsing/download_protection/download_protection_service_unittest.cc 1769+++ chrome/browser/safe_browsing/download_protection/download_protection_service_unittest.cc
1762@@ -95,7 +95,6 @@ 1770@@ -93,7 +93,6 @@
1763 #include "components/safe_browsing/core/browser/db/v4_protocol_manager_util.h" 1771 #include "components/safe_browsing/core/browser/db/v4_protocol_manager_util.h"
1764 #include "components/safe_browsing/core/common/features.h" 1772 #include "components/safe_browsing/core/common/features.h"
1765 #include "components/safe_browsing/core/common/proto/csd.pb.h" 1773 #include "components/safe_browsing/core/common/proto/csd.pb.h"
@@ -1767,8 +1775,8 @@
1767 #include "components/safe_browsing/core/common/safebrowsing_switches.h" 1775 #include "components/safe_browsing/core/common/safebrowsing_switches.h"
1768 #include "components/signin/public/identity_manager/identity_test_environment.h" 1776 #include "components/signin/public/identity_manager/identity_test_environment.h"
1769 #include "content/public/browser/browser_task_traits.h" 1777 #include "content/public/browser/browser_task_traits.h"
1770--- a/chrome/browser/safe_browsing/generated_safe_browsing_pref.cc 1778--- chrome/browser/safe_browsing/generated_safe_browsing_pref.cc.orig
1771+++ b/chrome/browser/safe_browsing/generated_safe_browsing_pref.cc 1779+++ chrome/browser/safe_browsing/generated_safe_browsing_pref.cc
1772@@ -7,7 +7,6 @@ 1780@@ -7,7 +7,6 @@
1773 #include "chrome/browser/profiles/profile.h" 1781 #include "chrome/browser/profiles/profile.h"
1774 #include "chrome/common/extensions/api/settings_private.h" 1782 #include "chrome/common/extensions/api/settings_private.h"
@@ -1799,7 +1807,7 @@
1799 } 1807 }
1800 1808
1801 extensions::settings_private::SetPrefResult GeneratedSafeBrowsingPref::SetPref( 1809 extensions::settings_private::SetPrefResult GeneratedSafeBrowsingPref::SetPref(
1802@@ -48,37 +32,14 @@ extensions::settings_private::SetPrefRes 1810@@ -48,31 +32,14 @@ extensions::settings_private::SetPrefRes
1803 return extensions::settings_private::SetPrefResult::PREF_TYPE_MISMATCH; 1811 return extensions::settings_private::SetPrefResult::PREF_TYPE_MISMATCH;
1804 1812
1805 // If SBER is forcefully disabled, Enhanced cannot be selected by the user. 1813 // If SBER is forcefully disabled, Enhanced cannot be selected by the user.
@@ -1830,16 +1838,10 @@
1830- profile_->GetPrefs()->SetBoolean(prefs::kSafeBrowsingEnhanced, 1838- profile_->GetPrefs()->SetBoolean(prefs::kSafeBrowsingEnhanced,
1831- selection == SafeBrowsingSetting::ENHANCED); 1839- selection == SafeBrowsingSetting::ENHANCED);
1832- 1840-
1833- // Set ESB not set in sync with Account ESB through TailoredSecurity.
1834- if (selection == SafeBrowsingSetting::ENHANCED) {
1835- profile_->GetPrefs()->SetBoolean(
1836- prefs::kEnhancedProtectionEnabledViaTailoredSecurity, false);
1837- }
1838-
1839 return extensions::settings_private::SetPrefResult::SUCCESS; 1841 return extensions::settings_private::SetPrefResult::SUCCESS;
1840 } 1842 }
1841 1843
1842@@ -89,10 +50,8 @@ GeneratedSafeBrowsingPref::GetPrefObject 1844@@ -83,10 +50,8 @@ GeneratedSafeBrowsingPref::GetPrefObject
1843 pref_object->key = kGeneratedSafeBrowsingPref; 1845 pref_object->key = kGeneratedSafeBrowsingPref;
1844 pref_object->type = extensions::api::settings_private::PREF_TYPE_NUMBER; 1846 pref_object->type = extensions::api::settings_private::PREF_TYPE_NUMBER;
1845 1847
@@ -1852,7 +1854,7 @@
1852 1854
1853 if (safe_browsing_enhanced_enabled && safe_browsing_enabled) { 1855 if (safe_browsing_enhanced_enabled && safe_browsing_enabled) {
1854 pref_object->value = std::make_unique<base::Value>( 1856 pref_object->value = std::make_unique<base::Value>(
1855@@ -122,29 +81,18 @@ void GeneratedSafeBrowsingPref::ApplySaf 1857@@ -116,29 +81,18 @@ void GeneratedSafeBrowsingPref::ApplySaf
1856 // three different preferences. It is possible that these may be in 1858 // three different preferences. It is possible that these may be in
1857 // temporarily conflicting managed states. The enabled preference is always 1859 // temporarily conflicting managed states. The enabled preference is always
1858 // taken as the canonical source of management. 1860 // taken as the canonical source of management.
@@ -1888,7 +1890,7 @@
1888 1890
1889 if (!enabled_enforced && !enabled_recommended && !reporting_enforced) { 1891 if (!enabled_enforced && !enabled_recommended && !reporting_enforced) {
1890 // No relevant policies are applied. 1892 // No relevant policies are applied.
1891@@ -154,8 +102,6 @@ void GeneratedSafeBrowsingPref::ApplySaf 1893@@ -148,8 +102,6 @@ void GeneratedSafeBrowsingPref::ApplySaf
1892 if (enabled_enforced) { 1894 if (enabled_enforced) {
1893 // Preference is fully controlled. 1895 // Preference is fully controlled.
1894 pref_object->enforcement = settings_api::Enforcement::ENFORCEMENT_ENFORCED; 1896 pref_object->enforcement = settings_api::Enforcement::ENFORCEMENT_ENFORCED;
@@ -1897,7 +1899,7 @@
1897 return; 1899 return;
1898 } 1900 }
1899 1901
1900@@ -180,8 +126,6 @@ void GeneratedSafeBrowsingPref::ApplySaf 1902@@ -174,8 +126,6 @@ void GeneratedSafeBrowsingPref::ApplySaf
1901 // Reporting has been forcefully disabled by policy. Enhanced protection is 1903 // Reporting has been forcefully disabled by policy. Enhanced protection is
1902 // thus also implicitly disabled by the same policy. 1904 // thus also implicitly disabled by the same policy.
1903 pref_object->enforcement = settings_api::Enforcement::ENFORCEMENT_ENFORCED; 1905 pref_object->enforcement = settings_api::Enforcement::ENFORCEMENT_ENFORCED;
@@ -1906,9 +1908,9 @@
1906 1908
1907 pref_object->user_selectable_values = 1909 pref_object->user_selectable_values =
1908 std::make_unique<std::vector<std::unique_ptr<base::Value>>>(); 1910 std::make_unique<std::vector<std::unique_ptr<base::Value>>>();
1909--- a/chrome/browser/safe_browsing/incident_reporting/extension_data_collection_unittest.cc 1911--- chrome/browser/safe_browsing/incident_reporting/extension_data_collection_unittest.cc.orig
1910+++ b/chrome/browser/safe_browsing/incident_reporting/extension_data_collection_unittest.cc 1912+++ chrome/browser/safe_browsing/incident_reporting/extension_data_collection_unittest.cc
1911@@ -23,7 +23,6 @@ 1913@@ -22,7 +22,6 @@
1912 #include "chrome/test/base/testing_profile.h" 1914 #include "chrome/test/base/testing_profile.h"
1913 #include "chrome/test/base/testing_profile_manager.h" 1915 #include "chrome/test/base/testing_profile_manager.h"
1914 #include "components/safe_browsing/core/common/proto/csd.pb.h" 1916 #include "components/safe_browsing/core/common/proto/csd.pb.h"
@@ -1916,8 +1918,8 @@
1916 #include "components/sync_preferences/testing_pref_service_syncable.h" 1918 #include "components/sync_preferences/testing_pref_service_syncable.h"
1917 #include "content/public/test/browser_task_environment.h" 1919 #include "content/public/test/browser_task_environment.h"
1918 #include "content/public/test/test_utils.h" 1920 #include "content/public/test/test_utils.h"
1919--- a/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc 1921--- chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc.orig
1920+++ b/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc 1922+++ chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc
1921@@ -42,7 +42,6 @@ 1923@@ -42,7 +42,6 @@
1922 #include "components/prefs/pref_service.h" 1924 #include "components/prefs/pref_service.h"
1923 #include "components/safe_browsing/core/common/features.h" 1925 #include "components/safe_browsing/core/common/features.h"
@@ -1926,8 +1928,8 @@
1926 #include "content/public/browser/browser_thread.h" 1928 #include "content/public/browser/browser_thread.h"
1927 #include "content/public/browser/download_item_utils.h" 1929 #include "content/public/browser/download_item_utils.h"
1928 #include "services/network/public/cpp/shared_url_loader_factory.h" 1930 #include "services/network/public/cpp/shared_url_loader_factory.h"
1929--- a/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service_unittest.cc 1931--- chrome/browser/safe_browsing/incident_reporting/incident_reporting_service_unittest.cc.orig
1930+++ b/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service_unittest.cc 1932+++ chrome/browser/safe_browsing/incident_reporting/incident_reporting_service_unittest.cc
1931@@ -36,7 +36,6 @@ 1933@@ -36,7 +36,6 @@
1932 #include "chrome/test/base/testing_profile.h" 1934 #include "chrome/test/base/testing_profile.h"
1933 #include "chrome/test/base/testing_profile_manager.h" 1935 #include "chrome/test/base/testing_profile_manager.h"
@@ -1936,8 +1938,8 @@
1936 #include "components/sync_preferences/testing_pref_service_syncable.h" 1938 #include "components/sync_preferences/testing_pref_service_syncable.h"
1937 #include "content/public/test/browser_task_environment.h" 1939 #include "content/public/test/browser_task_environment.h"
1938 #include "extensions/browser/quota_service.h" 1940 #include "extensions/browser/quota_service.h"
1939--- a/chrome/browser/safe_browsing/incident_reporting/last_download_finder_unittest.cc 1941--- chrome/browser/safe_browsing/incident_reporting/last_download_finder_unittest.cc.orig
1940+++ b/chrome/browser/safe_browsing/incident_reporting/last_download_finder_unittest.cc 1942+++ chrome/browser/safe_browsing/incident_reporting/last_download_finder_unittest.cc
1941@@ -43,7 +43,6 @@ 1943@@ -43,7 +43,6 @@
1942 #include "components/history/core/browser/history_database_params.h" 1944 #include "components/history/core/browser/history_database_params.h"
1943 #include "components/history/core/browser/history_service.h" 1945 #include "components/history/core/browser/history_service.h"
@@ -1946,8 +1948,8 @@
1946 #include "components/sync_preferences/testing_pref_service_syncable.h" 1948 #include "components/sync_preferences/testing_pref_service_syncable.h"
1947 #include "content/public/test/browser_task_environment.h" 1949 #include "content/public/test/browser_task_environment.h"
1948 #include "content/public/test/test_utils.h" 1950 #include "content/public/test/test_utils.h"
1949--- a/chrome/browser/safe_browsing/incident_reporting/state_store.cc 1951--- chrome/browser/safe_browsing/incident_reporting/state_store.cc.orig
1950+++ b/chrome/browser/safe_browsing/incident_reporting/state_store.cc 1952+++ chrome/browser/safe_browsing/incident_reporting/state_store.cc
1951@@ -14,7 +14,6 @@ 1953@@ -14,7 +14,6 @@
1952 #include "chrome/browser/safe_browsing/incident_reporting/incident.h" 1954 #include "chrome/browser/safe_browsing/incident_reporting/incident.h"
1953 #include "chrome/browser/safe_browsing/incident_reporting/platform_state_store.h" 1955 #include "chrome/browser/safe_browsing/incident_reporting/platform_state_store.h"
@@ -1956,8 +1958,8 @@
1956 1958
1957 namespace safe_browsing { 1959 namespace safe_browsing {
1958 1960
1959--- a/chrome/browser/safe_browsing/incident_reporting/state_store_unittest.cc 1961--- chrome/browser/safe_browsing/incident_reporting/state_store_unittest.cc.orig
1960+++ b/chrome/browser/safe_browsing/incident_reporting/state_store_unittest.cc 1962+++ chrome/browser/safe_browsing/incident_reporting/state_store_unittest.cc
1961@@ -21,7 +21,6 @@ 1963@@ -21,7 +21,6 @@
1962 #include "chrome/test/base/testing_profile.h" 1964 #include "chrome/test/base/testing_profile.h"
1963 #include "chrome/test/base/testing_profile_manager.h" 1965 #include "chrome/test/base/testing_profile_manager.h"
@@ -1966,8 +1968,8 @@
1966 #include "components/sync_preferences/pref_service_syncable.h" 1968 #include "components/sync_preferences/pref_service_syncable.h"
1967 #include "components/sync_preferences/pref_service_syncable_factory.h" 1969 #include "components/sync_preferences/pref_service_syncable_factory.h"
1968 #include "content/public/test/browser_task_environment.h" 1970 #include "content/public/test/browser_task_environment.h"
1969--- a/chrome/browser/safe_browsing/metrics/safe_browsing_metrics_provider.cc 1971--- chrome/browser/safe_browsing/metrics/safe_browsing_metrics_provider.cc.orig
1970+++ b/chrome/browser/safe_browsing/metrics/safe_browsing_metrics_provider.cc 1972+++ chrome/browser/safe_browsing/metrics/safe_browsing_metrics_provider.cc
1971@@ -7,7 +7,6 @@ 1973@@ -7,7 +7,6 @@
1972 #include "base/metrics/histogram_functions.h" 1974 #include "base/metrics/histogram_functions.h"
1973 #include "chrome/browser/profiles/profile.h" 1975 #include "chrome/browser/profiles/profile.h"
@@ -1976,9 +1978,9 @@
1976 1978
1977 namespace safe_browsing { 1979 namespace safe_browsing {
1978 1980
1979--- a/chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc 1981--- chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc.orig
1980+++ b/chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc 1982+++ chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc
1981@@ -79,7 +79,6 @@ 1983@@ -74,7 +74,6 @@
1982 #include "components/safe_browsing/core/browser/safe_browsing_metrics_collector.h" 1984 #include "components/safe_browsing/core/browser/safe_browsing_metrics_collector.h"
1983 #include "components/safe_browsing/core/browser/verdict_cache_manager.h" 1985 #include "components/safe_browsing/core/browser/verdict_cache_manager.h"
1984 #include "components/safe_browsing/core/common/features.h" 1986 #include "components/safe_browsing/core/common/features.h"
@@ -1986,9 +1988,9 @@
1986 #include "components/safe_browsing/core/common/web_ui_constants.h" 1988 #include "components/safe_browsing/core/common/web_ui_constants.h"
1987 #include "components/security_interstitials/content/security_interstitial_controller_client.h" 1989 #include "components/security_interstitials/content/security_interstitial_controller_client.h"
1988 #include "components/security_interstitials/content/security_interstitial_tab_helper.h" 1990 #include "components/security_interstitials/content/security_interstitial_tab_helper.h"
1989--- a/chrome/browser/safe_browsing/safe_browsing_service.cc 1991--- chrome/browser/safe_browsing/safe_browsing_service.cc.orig
1990+++ b/chrome/browser/safe_browsing/safe_browsing_service.cc 1992+++ chrome/browser/safe_browsing/safe_browsing_service.cc
1991@@ -121,7 +121,6 @@ base::FilePath SafeBrowsingService::GetB 1993@@ -103,7 +103,6 @@ base::FilePath SafeBrowsingService::GetB
1992 1994
1993 SafeBrowsingService::SafeBrowsingService() 1995 SafeBrowsingService::SafeBrowsingService()
1994 : services_delegate_(ServicesDelegate::Create(this)), 1996 : services_delegate_(ServicesDelegate::Create(this)),
@@ -1996,7 +1998,7 @@
1996 shutdown_(false), 1998 shutdown_(false),
1997 enabled_(false), 1999 enabled_(false),
1998 enabled_by_prefs_(false) {} 2000 enabled_by_prefs_(false) {}
1999@@ -249,8 +248,6 @@ TriggerManager* SafeBrowsingService::tri 2001@@ -257,8 +256,6 @@ TriggerManager* SafeBrowsingService::tri
2000 2002
2001 PasswordProtectionService* SafeBrowsingService::GetPasswordProtectionService( 2003 PasswordProtectionService* SafeBrowsingService::GetPasswordProtectionService(
2002 Profile* profile) const { 2004 Profile* profile) const {
@@ -2005,7 +2007,7 @@
2005 return nullptr; 2007 return nullptr;
2006 } 2008 }
2007 2009
2008@@ -342,9 +339,6 @@ void SafeBrowsingService::OnProfileAdded 2010@@ -387,9 +384,6 @@ void SafeBrowsingService::OnProfileAdded
2009 std::unique_ptr<PrefChangeRegistrar> registrar = 2011 std::unique_ptr<PrefChangeRegistrar> registrar =
2010 std::make_unique<PrefChangeRegistrar>(); 2012 std::make_unique<PrefChangeRegistrar>();
2011 registrar->Init(pref_service); 2013 registrar->Init(pref_service);
@@ -2015,7 +2017,7 @@
2015 // ClientSideDetectionService will need to be refresh the models 2017 // ClientSideDetectionService will need to be refresh the models
2016 // renderers have if extended-reporting changes. 2018 // renderers have if extended-reporting changes.
2017 registrar->Add(prefs::kSafeBrowsingScoutReportingEnabled, 2019 registrar->Add(prefs::kSafeBrowsingScoutReportingEnabled,
2018@@ -373,14 +367,6 @@ void SafeBrowsingService::OnProfileAdded 2020@@ -418,14 +412,6 @@ void SafeBrowsingService::OnProfileAdded
2019 NoCachedPopulationReason::kChangeMbbPref)); 2021 NoCachedPopulationReason::kChangeMbbPref));
2020 user_population_prefs_[pref_service] = std::move(registrar); 2022 user_population_prefs_[pref_service] = std::move(registrar);
2021 2023
@@ -2030,7 +2032,7 @@
2030 // Extended Reporting metrics are handled together elsewhere. 2032 // Extended Reporting metrics are handled together elsewhere.
2031 RecordExtendedReportingMetrics(*pref_service); 2033 RecordExtendedReportingMetrics(*pref_service);
2032 2034
2033@@ -423,18 +409,6 @@ void SafeBrowsingService::RefreshState() 2035@@ -465,18 +451,6 @@ void SafeBrowsingService::RefreshState()
2034 2036
2035 // Check if any profile requires the service to be active. 2037 // Check if any profile requires the service to be active.
2036 enabled_by_prefs_ = false; 2038 enabled_by_prefs_ = false;
@@ -2049,9 +2051,9 @@
2049 2051
2050 if (enabled_by_prefs_) 2052 if (enabled_by_prefs_)
2051 Start(); 2053 Start();
2052--- a/chrome/browser/safe_browsing/safe_browsing_service.h 2054--- chrome/browser/safe_browsing/safe_browsing_service.h.orig
2053+++ b/chrome/browser/safe_browsing/safe_browsing_service.h 2055+++ chrome/browser/safe_browsing/safe_browsing_service.h
2054@@ -27,7 +27,6 @@ 2056@@ -28,7 +28,6 @@
2055 #include "components/safe_browsing/buildflags.h" 2057 #include "components/safe_browsing/buildflags.h"
2056 #include "components/safe_browsing/content/browser/safe_browsing_service_interface.h" 2058 #include "components/safe_browsing/content/browser/safe_browsing_service_interface.h"
2057 #include "components/safe_browsing/core/browser/db/util.h" 2059 #include "components/safe_browsing/core/browser/db/util.h"
@@ -2059,7 +2061,7 @@
2059 #include "content/public/browser/browser_context.h" 2061 #include "content/public/browser/browser_context.h"
2060 #include "content/public/browser/browser_thread.h" 2062 #include "content/public/browser/browser_thread.h"
2061 #include "services/network/public/mojom/network_context.mojom-forward.h" 2063 #include "services/network/public/mojom/network_context.mojom-forward.h"
2062@@ -94,15 +93,6 @@ class SafeBrowsingService : public SafeB 2064@@ -97,15 +96,6 @@ class SafeBrowsingService : public SafeB
2063 // Called on the main thread to let us know that the io_thread is going away. 2065 // Called on the main thread to let us know that the io_thread is going away.
2064 void ShutDown(); 2066 void ShutDown();
2065 2067
@@ -2075,9 +2077,9 @@
2075 // Get current enabled status. Must be called on IO thread. 2077 // Get current enabled status. Must be called on IO thread.
2076 bool enabled() const { 2078 bool enabled() const {
2077 DCHECK_CURRENTLY_ON(content::BrowserThread::IO); 2079 DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
2078@@ -267,10 +257,6 @@ class SafeBrowsingService : public SafeB 2080@@ -287,10 +277,6 @@ class SafeBrowsingService : public SafeB
2079 2081 // Provides phishing and malware statistics. Accessed on UI thread.
2080 std::unique_ptr<ProxyConfigMonitor> proxy_config_monitor_; 2082 std::unique_ptr<PingManager> ping_manager_;
2081 2083
2082- // Whether SafeBrowsing Extended Reporting is enabled by the current set of 2084- // Whether SafeBrowsing Extended Reporting is enabled by the current set of
2083- // profiles. Updated on the UI thread. 2085- // profiles. Updated on the UI thread.
@@ -2086,9 +2088,9 @@
2086 // Whether the service has been shutdown. 2088 // Whether the service has been shutdown.
2087 bool shutdown_; 2089 bool shutdown_;
2088 2090
2089--- a/chrome/browser/safe_browsing/telemetry/android/android_telemetry_service.cc 2091--- chrome/browser/safe_browsing/telemetry/android/android_telemetry_service.cc.orig
2090+++ b/chrome/browser/safe_browsing/telemetry/android/android_telemetry_service.cc 2092+++ chrome/browser/safe_browsing/telemetry/android/android_telemetry_service.cc
2091@@ -28,7 +28,6 @@ 2093@@ -27,7 +27,6 @@
2092 #include "components/safe_browsing/core/browser/db/database_manager.h" 2094 #include "components/safe_browsing/core/browser/db/database_manager.h"
2093 #include "components/safe_browsing/core/browser/ping_manager.h" 2095 #include "components/safe_browsing/core/browser/ping_manager.h"
2094 #include "components/safe_browsing/core/common/features.h" 2096 #include "components/safe_browsing/core/common/features.h"
@@ -2096,7 +2098,7 @@
2096 #include "content/public/browser/browser_task_traits.h" 2098 #include "content/public/browser/browser_task_traits.h"
2097 #include "content/public/browser/browser_thread.h" 2099 #include "content/public/browser/browser_thread.h"
2098 #include "content/public/browser/download_item_utils.h" 2100 #include "content/public/browser/download_item_utils.h"
2099@@ -140,11 +139,9 @@ bool AndroidTelemetryService::CanSendPin 2101@@ -142,11 +141,9 @@ bool AndroidTelemetryService::CanSendPin
2100 return false; 2102 return false;
2101 } 2103 }
2102 2104
@@ -2111,9 +2113,9 @@
2111 2113
2112 if (profile_->IsOffTheRecord()) { 2114 if (profile_->IsOffTheRecord()) {
2113 RecordApkDownloadTelemetryOutcome( 2115 RecordApkDownloadTelemetryOutcome(
2114--- a/chrome/browser/safe_browsing/telemetry/android/android_telemetry_service_unittest.cc 2116--- chrome/browser/safe_browsing/telemetry/android/android_telemetry_service_unittest.cc.orig
2115+++ b/chrome/browser/safe_browsing/telemetry/android/android_telemetry_service_unittest.cc 2117+++ chrome/browser/safe_browsing/telemetry/android/android_telemetry_service_unittest.cc
2116@@ -20,7 +20,6 @@ 2118@@ -18,7 +18,6 @@
2117 #include "components/download/public/common/mock_download_item.h" 2119 #include "components/download/public/common/mock_download_item.h"
2118 #include "components/prefs/pref_service.h" 2120 #include "components/prefs/pref_service.h"
2119 #include "components/safe_browsing/core/common/features.h" 2121 #include "components/safe_browsing/core/common/features.h"
@@ -2121,8 +2123,8 @@
2121 #include "content/public/browser/browser_task_traits.h" 2123 #include "content/public/browser/browser_task_traits.h"
2122 #include "content/public/browser/browser_thread.h" 2124 #include "content/public/browser/browser_thread.h"
2123 #include "content/public/browser/download_item_utils.h" 2125 #include "content/public/browser/download_item_utils.h"
2124--- a/chrome/browser/safe_browsing/url_checker_delegate_impl.cc 2126--- chrome/browser/safe_browsing/url_checker_delegate_impl.cc.orig
2125+++ b/chrome/browser/safe_browsing/url_checker_delegate_impl.cc 2127+++ chrome/browser/safe_browsing/url_checker_delegate_impl.cc
2126@@ -21,7 +21,6 @@ 2128@@ -21,7 +21,6 @@
2127 #include "components/safe_browsing/core/browser/db/database_manager.h" 2129 #include "components/safe_browsing/core/browser/db/database_manager.h"
2128 #include "components/safe_browsing/core/browser/db/v4_protocol_manager_util.h" 2130 #include "components/safe_browsing/core/browser/db/v4_protocol_manager_util.h"
@@ -2131,9 +2133,9 @@
2131 #include "components/security_interstitials/content/unsafe_resource_util.h" 2133 #include "components/security_interstitials/content/unsafe_resource_util.h"
2132 #include "content/public/browser/browser_task_traits.h" 2134 #include "content/public/browser/browser_task_traits.h"
2133 #include "content/public/browser/browser_thread.h" 2135 #include "content/public/browser/browser_thread.h"
2134--- a/chrome/browser/signin/account_consistency_mode_manager.cc 2136--- chrome/browser/signin/account_consistency_mode_manager.cc.orig
2135+++ b/chrome/browser/signin/account_consistency_mode_manager.cc 2137+++ chrome/browser/signin/account_consistency_mode_manager.cc
2136@@ -20,7 +20,6 @@ 2138@@ -19,7 +19,6 @@
2137 #include "components/pref_registry/pref_registry_syncable.h" 2139 #include "components/pref_registry/pref_registry_syncable.h"
2138 #include "components/prefs/pref_service.h" 2140 #include "components/prefs/pref_service.h"
2139 #include "components/signin/public/base/signin_buildflags.h" 2141 #include "components/signin/public/base/signin_buildflags.h"
@@ -2141,7 +2143,7 @@
2141 #include "google_apis/google_api_keys.h" 2143 #include "google_apis/google_api_keys.h"
2142 2144
2143 #if BUILDFLAG(IS_CHROMEOS_ASH) 2145 #if BUILDFLAG(IS_CHROMEOS_ASH)
2144@@ -97,7 +96,6 @@ AccountConsistencyModeManager::AccountCo 2146@@ -98,7 +97,6 @@ AccountConsistencyModeManager::AccountCo
2145 // pref. 2147 // pref.
2146 bool signin_allowed = IsDiceSignInAllowed() && 2148 bool signin_allowed = IsDiceSignInAllowed() &&
2147 prefs->GetBoolean(prefs::kSigninAllowedOnNextStartup); 2149 prefs->GetBoolean(prefs::kSigninAllowedOnNextStartup);
@@ -2149,8 +2151,8 @@
2149 2151
2150 UMA_HISTOGRAM_BOOLEAN("Signin.SigninAllowed", signin_allowed); 2152 UMA_HISTOGRAM_BOOLEAN("Signin.SigninAllowed", signin_allowed);
2151 #endif 2153 #endif
2152@@ -192,16 +190,7 @@ AccountConsistencyModeManager::ComputeAc 2154@@ -196,16 +194,7 @@ AccountConsistencyModeManager::ComputeAc
2153 return AccountConsistencyMethod::kMirror; 2155 // AccountManager is not available, when DICE has been disabled on Lacros.
2154 #endif 2156 #endif
2155 2157
2156-#if BUILDFLAG(ENABLE_DICE_SUPPORT) 2158-#if BUILDFLAG(ENABLE_DICE_SUPPORT)
@@ -2166,9 +2168,9 @@
2166- NOTREACHED(); 2168- NOTREACHED();
2167 return AccountConsistencyMethod::kDisabled; 2169 return AccountConsistencyMethod::kDisabled;
2168 } 2170 }
2169--- a/chrome/browser/signin/account_consistency_mode_manager_unittest.cc 2171--- chrome/browser/signin/account_consistency_mode_manager_unittest.cc.orig
2170+++ b/chrome/browser/signin/account_consistency_mode_manager_unittest.cc 2172+++ chrome/browser/signin/account_consistency_mode_manager_unittest.cc
2171@@ -19,7 +19,6 @@ 2173@@ -20,7 +20,6 @@
2172 #include "components/prefs/testing_pref_store.h" 2174 #include "components/prefs/testing_pref_store.h"
2173 #include "components/signin/public/base/account_consistency_method.h" 2175 #include "components/signin/public/base/account_consistency_method.h"
2174 #include "components/signin/public/base/signin_buildflags.h" 2176 #include "components/signin/public/base/signin_buildflags.h"
@@ -2176,8 +2178,8 @@
2176 #include "components/sync_preferences/testing_pref_service_syncable.h" 2178 #include "components/sync_preferences/testing_pref_service_syncable.h"
2177 #include "content/public/test/browser_task_environment.h" 2179 #include "content/public/test/browser_task_environment.h"
2178 #include "testing/gtest/include/gtest/gtest.h" 2180 #include "testing/gtest/include/gtest/gtest.h"
2179--- a/chrome/browser/signin/chrome_device_id_helper.cc 2181--- chrome/browser/signin/chrome_device_id_helper.cc.orig
2180+++ b/chrome/browser/signin/chrome_device_id_helper.cc 2182+++ chrome/browser/signin/chrome_device_id_helper.cc
2181@@ -16,7 +16,6 @@ 2183@@ -16,7 +16,6 @@
2182 #include "base/logging.h" 2184 #include "base/logging.h"
2183 #include "chrome/browser/ash/profiles/profile_helper.h" 2185 #include "chrome/browser/ash/profiles/profile_helper.h"
@@ -2212,8 +2214,8 @@
2212 } 2214 }
2213 2215
2214 #endif 2216 #endif
2215--- a/chrome/browser/signin/chrome_signin_client.cc 2217--- chrome/browser/signin/chrome_signin_client.cc.orig
2216+++ b/chrome/browser/signin/chrome_signin_client.cc 2218+++ chrome/browser/signin/chrome_signin_client.cc
2217@@ -38,7 +38,6 @@ 2219@@ -38,7 +38,6 @@
2218 #include "components/prefs/pref_service.h" 2220 #include "components/prefs/pref_service.h"
2219 #include "components/signin/core/browser/cookie_settings_util.h" 2221 #include "components/signin/core/browser/cookie_settings_util.h"
@@ -2222,8 +2224,8 @@
2222 #include "components/signin/public/identity_manager/access_token_info.h" 2224 #include "components/signin/public/identity_manager/access_token_info.h"
2223 #include "components/signin/public/identity_manager/identity_manager.h" 2225 #include "components/signin/public/identity_manager/identity_manager.h"
2224 #include "components/signin/public/identity_manager/scope_set.h" 2226 #include "components/signin/public/identity_manager/scope_set.h"
2225--- a/chrome/browser/signin/chromeos_mirror_account_consistency_browsertest.cc 2227--- chrome/browser/signin/chromeos_mirror_account_consistency_browsertest.cc.orig
2226+++ b/chrome/browser/signin/chromeos_mirror_account_consistency_browsertest.cc 2228+++ chrome/browser/signin/chromeos_mirror_account_consistency_browsertest.cc
2227@@ -21,7 +21,6 @@ 2229@@ -21,7 +21,6 @@
2228 #include "components/network_session_configurator/common/network_switches.h" 2230 #include "components/network_session_configurator/common/network_switches.h"
2229 #include "components/prefs/pref_service.h" 2231 #include "components/prefs/pref_service.h"
@@ -2232,8 +2234,8 @@
2232 #include "components/signin/public/identity_manager/identity_test_utils.h" 2234 #include "components/signin/public/identity_manager/identity_test_utils.h"
2233 #include "components/user_manager/user.h" 2235 #include "components/user_manager/user.h"
2234 #include "components/user_manager/user_manager.h" 2236 #include "components/user_manager/user_manager.h"
2235--- a/chrome/browser/signin/dice_browsertest.cc 2237--- chrome/browser/signin/dice_browsertest.cc.orig
2236+++ b/chrome/browser/signin/dice_browsertest.cc 2238+++ chrome/browser/signin/dice_browsertest.cc
2237@@ -59,7 +59,6 @@ 2239@@ -59,7 +59,6 @@
2238 #include "components/signin/public/base/account_consistency_method.h" 2240 #include "components/signin/public/base/account_consistency_method.h"
2239 #include "components/signin/public/base/signin_client.h" 2241 #include "components/signin/public/base/signin_client.h"
@@ -2242,8 +2244,8 @@
2242 #include "components/signin/public/identity_manager/identity_manager.h" 2244 #include "components/signin/public/identity_manager/identity_manager.h"
2243 #include "components/signin/public/identity_manager/identity_test_utils.h" 2245 #include "components/signin/public/identity_manager/identity_test_utils.h"
2244 #include "components/signin/public/identity_manager/primary_account_mutator.h" 2246 #include "components/signin/public/identity_manager/primary_account_mutator.h"
2245--- a/chrome/browser/signin/header_modification_delegate_impl.cc 2247--- chrome/browser/signin/header_modification_delegate_impl.cc.orig
2246+++ b/chrome/browser/signin/header_modification_delegate_impl.cc 2248+++ chrome/browser/signin/header_modification_delegate_impl.cc
2247@@ -15,7 +15,6 @@ 2249@@ -15,7 +15,6 @@
2248 #include "chrome/browser/sync/sync_service_factory.h" 2250 #include "chrome/browser/sync/sync_service_factory.h"
2249 #include "chrome/common/pref_names.h" 2251 #include "chrome/common/pref_names.h"
@@ -2261,8 +2263,8 @@
2261 #endif 2263 #endif
2262 cookie_settings_.get()); 2264 cookie_settings_.get());
2263 } 2265 }
2264--- a/chrome/browser/signin/mirror_browsertest.cc 2266--- chrome/browser/signin/mirror_browsertest.cc.orig
2265+++ b/chrome/browser/signin/mirror_browsertest.cc 2267+++ chrome/browser/signin/mirror_browsertest.cc
2266@@ -31,7 +31,6 @@ 2268@@ -31,7 +31,6 @@
2267 #include "components/prefs/pref_service.h" 2269 #include "components/prefs/pref_service.h"
2268 #include "components/signin/core/browser/dice_header_helper.h" 2270 #include "components/signin/core/browser/dice_header_helper.h"
@@ -2271,17 +2273,17 @@
2271 #include "content/public/common/content_client.h" 2273 #include "content/public/common/content_client.h"
2272 #include "content/public/test/browser_test.h" 2274 #include "content/public/test/browser_test.h"
2273 #include "google_apis/gaia/gaia_urls.h" 2275 #include "google_apis/gaia/gaia_urls.h"
2274--- a/chrome/browser/signin/signin_manager.cc 2276--- chrome/browser/signin/signin_manager.cc.orig
2275+++ b/chrome/browser/signin/signin_manager.cc 2277+++ chrome/browser/signin/signin_manager.cc
2276@@ -7,7 +7,6 @@ 2278@@ -5,7 +5,6 @@
2277 #include "build/build_config.h" 2279 #include "chrome/browser/signin/signin_manager.h"
2278 #include "build/chromeos_buildflags.h" 2280
2279 #include "components/prefs/pref_service.h" 2281 #include "components/prefs/pref_service.h"
2280-#include "components/signin/public/base/signin_pref_names.h" 2282-#include "components/signin/public/base/signin_pref_names.h"
2281 #include "components/signin/public/identity_manager/accounts_in_cookie_jar_info.h" 2283 #include "components/signin/public/identity_manager/accounts_in_cookie_jar_info.h"
2282 #include "components/signin/public/identity_manager/identity_manager.h" 2284 #include "components/signin/public/identity_manager/identity_manager.h"
2283 #include "components/signin/public/identity_manager/primary_account_mutator.h" 2285 #include "components/signin/public/identity_manager/primary_account_mutator.h"
2284@@ -15,11 +14,6 @@ 2286@@ -13,11 +12,6 @@
2285 SigninManager::SigninManager(PrefService* prefs, 2287 SigninManager::SigninManager(PrefService* prefs,
2286 signin::IdentityManager* identity_manager) 2288 signin::IdentityManager* identity_manager)
2287 : prefs_(prefs), identity_manager_(identity_manager) { 2289 : prefs_(prefs), identity_manager_(identity_manager) {
@@ -2291,9 +2293,9 @@
2291- base::Unretained(this))); 2293- base::Unretained(this)));
2292- 2294-
2293 UpdateUnconsentedPrimaryAccount(); 2295 UpdateUnconsentedPrimaryAccount();
2294 identity_manager_observation_.Observe(identity_manager_); 2296 identity_manager_->AddObserver(this);
2295 } 2297 }
2296@@ -77,16 +71,6 @@ CoreAccountInfo SigninManager::ComputeUn 2298@@ -63,16 +57,6 @@ SigninManager::ComputeUnconsentedPrimary
2297 signin::ConsentLevel::kSync); 2299 signin::ConsentLevel::kSync);
2298 } 2300 }
2299 2301
@@ -2305,13 +2307,13 @@
2305- // It was considered simpler to keep the logic to update the unconsented 2307- // It was considered simpler to keep the logic to update the unconsented
2306- // primary account in a single place. 2308- // primary account in a single place.
2307- if (!signin_allowed_.GetValue()) 2309- if (!signin_allowed_.GetValue())
2308- return CoreAccountInfo(); 2310- return absl::nullopt;
2309- 2311-
2310 signin::AccountsInCookieJarInfo cookie_info = 2312 signin::AccountsInCookieJarInfo cookie_info =
2311 identity_manager_->GetAccountsInCookieJar(); 2313 identity_manager_->GetAccountsInCookieJar();
2312 2314
2313--- a/chrome/browser/signin/signin_promo_util.cc 2315--- chrome/browser/signin/signin_promo_util.cc.orig
2314+++ b/chrome/browser/signin/signin_promo_util.cc 2316+++ chrome/browser/signin/signin_promo_util.cc
2315@@ -8,7 +8,6 @@ 2317@@ -8,7 +8,6 @@
2316 #include "chrome/browser/profiles/profile.h" 2318 #include "chrome/browser/profiles/profile.h"
2317 #include "chrome/browser/signin/identity_manager_factory.h" 2319 #include "chrome/browser/signin/identity_manager_factory.h"
@@ -2329,19 +2331,19 @@
2329 return false; 2331 return false;
2330 2332
2331 // Display the signin promo if the user is not signed in. 2333 // Display the signin promo if the user is not signed in.
2332--- a/chrome/browser/signin/signin_ui_util.cc 2334--- chrome/browser/signin/signin_ui_util.cc.orig
2333+++ b/chrome/browser/signin/signin_ui_util.cc 2335+++ chrome/browser/signin/signin_ui_util.cc
2334@@ -39,7 +39,6 @@ 2336@@ -34,7 +34,6 @@
2337 #include "components/feature_engagement/public/tracker.h"
2335 #include "components/prefs/pref_service.h" 2338 #include "components/prefs/pref_service.h"
2336 #include "components/signin/public/base/consent_level.h"
2337 #include "components/signin/public/base/signin_metrics.h" 2339 #include "components/signin/public/base/signin_metrics.h"
2338-#include "components/signin/public/base/signin_pref_names.h" 2340-#include "components/signin/public/base/signin_pref_names.h"
2339 #include "components/signin/public/identity_manager/account_info.h" 2341 #include "components/signin/public/identity_manager/account_info.h"
2340 #include "components/signin/public/identity_manager/accounts_in_cookie_jar_info.h" 2342 #include "components/signin/public/identity_manager/accounts_in_cookie_jar_info.h"
2341 #include "components/signin/public/identity_manager/identity_manager.h" 2343 #include "components/signin/public/identity_manager/consent_level.h"
2342--- a/chrome/browser/signin/signin_util.cc 2344--- chrome/browser/signin/signin_util.cc.orig
2343+++ b/chrome/browser/signin/signin_util.cc 2345+++ chrome/browser/signin/signin_util.cc
2344@@ -31,7 +31,6 @@ 2346@@ -30,7 +30,6 @@
2345 #include "components/google/core/common/google_util.h" 2347 #include "components/google/core/common/google_util.h"
2346 #include "components/prefs/pref_service.h" 2348 #include "components/prefs/pref_service.h"
2347 #include "components/signin/public/base/signin_metrics.h" 2349 #include "components/signin/public/base/signin_metrics.h"
@@ -2349,7 +2351,7 @@
2349 #include "components/signin/public/identity_manager/identity_manager.h" 2351 #include "components/signin/public/identity_manager/identity_manager.h"
2350 #include "components/signin/public/identity_manager/identity_utils.h" 2352 #include "components/signin/public/identity_manager/identity_utils.h"
2351 #include "components/signin/public/identity_manager/primary_account_mutator.h" 2353 #include "components/signin/public/identity_manager/primary_account_mutator.h"
2352@@ -299,7 +298,7 @@ void EnsurePrimaryAccountAllowedForProfi 2354@@ -232,7 +231,7 @@ void EnsurePrimaryAccountAllowedForProfi
2353 2355
2354 CoreAccountInfo primary_account = 2356 CoreAccountInfo primary_account =
2355 identity_manager->GetPrimaryAccountInfo(signin::ConsentLevel::kSync); 2357 identity_manager->GetPrimaryAccountInfo(signin::ConsentLevel::kSync);
@@ -2358,8 +2360,8 @@
2358 signin::IsUsernameAllowedByPatternFromPrefs( 2360 signin::IsUsernameAllowedByPatternFromPrefs(
2359 g_browser_process->local_state(), primary_account.email)) { 2361 g_browser_process->local_state(), primary_account.email)) {
2360 return; 2362 return;
2361--- a/chrome/browser/signin/signin_util_win.cc 2363--- chrome/browser/signin/signin_util_win.cc.orig
2362+++ b/chrome/browser/signin/signin_util_win.cc 2364+++ chrome/browser/signin/signin_util_win.cc
2363@@ -34,7 +34,6 @@ 2365@@ -34,7 +34,6 @@
2364 #include "components/prefs/pref_service.h" 2366 #include "components/prefs/pref_service.h"
2365 #include "components/signin/core/browser/about_signin_internals.h" 2367 #include "components/signin/core/browser/about_signin_internals.h"
@@ -2368,8 +2370,8 @@
2368 #include "components/signin/public/identity_manager/accounts_mutator.h" 2370 #include "components/signin/public/identity_manager/accounts_mutator.h"
2369 #include "components/signin/public/identity_manager/identity_manager.h" 2371 #include "components/signin/public/identity_manager/identity_manager.h"
2370 2372
2371@@ -134,9 +133,6 @@ void ImportCredentialsFromProvider(Profi 2373@@ -136,9 +135,6 @@ void ImportCredentialsFromProvider(Profi
2372 account_id, nullptr, profile)); 2374 account_id, nullptr));
2373 } 2375 }
2374 } 2376 }
2375- 2377-
@@ -2378,7 +2380,7 @@
2378 } 2380 }
2379 2381
2380 // Extracts the |cred_provider_gaia_id| and |cred_provider_email| for the user 2382 // Extracts the |cred_provider_gaia_id| and |cred_provider_email| for the user
2381@@ -311,20 +307,7 @@ bool ReauthWithCredentialProviderIfPossi 2383@@ -313,20 +309,7 @@ bool ReauthWithCredentialProviderIfPossi
2382 // - The profile is marked as having been signed in with a system credential. 2384 // - The profile is marked as having been signed in with a system credential.
2383 // - The profile is already signed in. 2385 // - The profile is already signed in.
2384 // - The profile is in an auth error state. 2386 // - The profile is in an auth error state.
@@ -2399,9 +2401,9 @@
2399 } 2401 }
2400 2402
2401 } // namespace signin_util 2403 } // namespace signin_util
2402--- a/chrome/browser/signin/signin_util_win_browsertest.cc 2404--- chrome/browser/signin/signin_util_win_browsertest.cc.orig
2403+++ b/chrome/browser/signin/signin_util_win_browsertest.cc 2405+++ chrome/browser/signin/signin_util_win_browsertest.cc
2404@@ -30,7 +30,6 @@ 2406@@ -31,7 +31,6 @@
2405 #include "chrome/test/base/in_process_browser_test.h" 2407 #include "chrome/test/base/in_process_browser_test.h"
2406 #include "chrome/test/base/testing_browser_process.h" 2408 #include "chrome/test/base/testing_browser_process.h"
2407 #include "components/prefs/pref_service.h" 2409 #include "components/prefs/pref_service.h"
@@ -2409,9 +2411,9 @@
2409 #include "components/signin/public/identity_manager/identity_manager.h" 2411 #include "components/signin/public/identity_manager/identity_manager.h"
2410 #include "components/signin/public/identity_manager/identity_test_utils.h" 2412 #include "components/signin/public/identity_manager/identity_test_utils.h"
2411 #include "components/signin/public/identity_manager/primary_account_mutator.h" 2413 #include "components/signin/public/identity_manager/primary_account_mutator.h"
2412--- a/chrome/browser/ssl/certificate_reporting_test_utils.cc 2414--- chrome/browser/ssl/certificate_reporting_test_utils.cc.orig
2413+++ b/chrome/browser/ssl/certificate_reporting_test_utils.cc 2415+++ chrome/browser/ssl/certificate_reporting_test_utils.cc
2414@@ -14,7 +14,6 @@ 2416@@ -15,7 +15,6 @@
2415 #include "build/build_config.h" 2417 #include "build/build_config.h"
2416 #include "chrome/browser/profiles/profile.h" 2418 #include "chrome/browser/profiles/profile.h"
2417 #include "components/prefs/pref_service.h" 2419 #include "components/prefs/pref_service.h"
@@ -2419,38 +2421,29 @@
2419 #include "components/security_interstitials/content/cert_report_helper.h" 2421 #include "components/security_interstitials/content/cert_report_helper.h"
2420 #include "components/security_interstitials/content/certificate_error_report.h" 2422 #include "components/security_interstitials/content/certificate_error_report.h"
2421 #include "components/variations/variations_associated_data.h" 2423 #include "components/variations/variations_associated_data.h"
2422--- a/chrome/browser/ssl/sct_reporting_service.cc 2424--- chrome/browser/ssl/sct_reporting_service.cc.orig
2423+++ b/chrome/browser/ssl/sct_reporting_service.cc 2425+++ chrome/browser/ssl/sct_reporting_service.cc
2424@@ -12,7 +12,6 @@ 2426@@ -9,7 +9,6 @@
2427 #include "chrome/browser/net/system_network_context_manager.h"
2428 #include "chrome/browser/safe_browsing/safe_browsing_service.h"
2425 #include "chrome/common/chrome_features.h" 2429 #include "chrome/common/chrome_features.h"
2426 #include "chrome/common/pref_names.h"
2427 #include "components/prefs/pref_service.h"
2428-#include "components/safe_browsing/core/common/safe_browsing_prefs.h" 2430-#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
2429 #include "content/public/browser/network_service_instance.h" 2431 #include "content/public/browser/network_service_instance.h"
2430 #include "content/public/browser/storage_partition.h" 2432 #include "content/public/browser/storage_partition.h"
2431 #include "google_apis/google_api_keys.h" 2433 #include "net/traffic_annotation/network_traffic_annotation.h"
2432@@ -193,18 +192,6 @@ void SetSCTAuditingEnabledForStoragePart 2434@@ -119,8 +118,5 @@ void SCTReportingService::SetReportingEn
2433 } // namespace
2434
2435 network::mojom::SCTAuditingMode SCTReportingService::GetReportingMode() {
2436- if (profile_->IsOffTheRecord() ||
2437- !base::FeatureList::IsEnabled(features::kSCTAuditing)) {
2438- return network::mojom::SCTAuditingMode::kDisabled;
2439- }
2440- if (safe_browsing::IsSafeBrowsingEnabled(pref_service_)) {
2441- if (safe_browsing::IsExtendedReportingEnabled(pref_service_)) {
2442- return network::mojom::SCTAuditingMode::kEnhancedSafeBrowsingReporting;
2443- }
2444- if (base::FeatureList::IsEnabled(features::kSCTAuditingHashdance)) {
2445- return network::mojom::SCTAuditingMode::kHashdance;
2446- }
2447- }
2448 return network::mojom::SCTAuditingMode::kDisabled;
2449 } 2435 }
2450 2436
2451--- a/chrome/browser/ssl/ssl_browsertest.cc 2437 void SCTReportingService::OnPreferenceChanged() {
2452+++ b/chrome/browser/ssl/ssl_browsertest.cc 2438- const bool enabled = safe_browsing_service_ &&
2453@@ -93,7 +93,6 @@ 2439- safe_browsing_service_->enabled_by_prefs() &&
2440- safe_browsing::IsExtendedReportingEnabled(pref_service_);
2441- SetReportingEnabled(enabled);
2442+ SetReportingEnabled(false);
2443 }
2444--- chrome/browser/ssl/ssl_browsertest.cc.orig
2445+++ chrome/browser/ssl/ssl_browsertest.cc
2446@@ -94,7 +94,6 @@
2454 #include "components/policy/policy_constants.h" 2447 #include "components/policy/policy_constants.h"
2455 #include "components/prefs/testing_pref_service.h" 2448 #include "components/prefs/testing_pref_service.h"
2456 #include "components/safe_browsing/core/common/features.h" 2449 #include "components/safe_browsing/core/common/features.h"
@@ -2458,8 +2451,8 @@
2458 #include "components/security_interstitials/content/bad_clock_blocking_page.h" 2451 #include "components/security_interstitials/content/bad_clock_blocking_page.h"
2459 #include "components/security_interstitials/content/captive_portal_blocking_page.h" 2452 #include "components/security_interstitials/content/captive_portal_blocking_page.h"
2460 #include "components/security_interstitials/content/cert_report_helper.h" 2453 #include "components/security_interstitials/content/cert_report_helper.h"
2461--- a/chrome/browser/ssl/ssl_error_controller_client.cc 2454--- chrome/browser/ssl/ssl_error_controller_client.cc.orig
2462+++ b/chrome/browser/ssl/ssl_error_controller_client.cc 2455+++ chrome/browser/ssl/ssl_error_controller_client.cc
2463@@ -23,7 +23,6 @@ 2456@@ -23,7 +23,6 @@
2464 #include "chrome/browser/ssl/stateful_ssl_host_state_delegate_factory.h" 2457 #include "chrome/browser/ssl/stateful_ssl_host_state_delegate_factory.h"
2465 #include "chrome/common/pref_names.h" 2458 #include "chrome/common/pref_names.h"
@@ -2468,8 +2461,8 @@
2468 #include "components/security_interstitials/content/content_metrics_helper.h" 2461 #include "components/security_interstitials/content/content_metrics_helper.h"
2469 #include "components/security_interstitials/content/settings_page_helper.h" 2462 #include "components/security_interstitials/content/settings_page_helper.h"
2470 #include "components/security_interstitials/content/stateful_ssl_host_state_delegate.h" 2463 #include "components/security_interstitials/content/stateful_ssl_host_state_delegate.h"
2471--- a/chrome/browser/supervised_user/supervised_user_pref_store.cc 2464--- chrome/browser/supervised_user/supervised_user_pref_store.cc.orig
2472+++ b/chrome/browser/supervised_user/supervised_user_pref_store.cc 2465+++ chrome/browser/supervised_user/supervised_user_pref_store.cc
2473@@ -23,7 +23,6 @@ 2466@@ -23,7 +23,6 @@
2474 #include "chrome/common/pref_names.h" 2467 #include "chrome/common/pref_names.h"
2475 #include "components/feed/core/shared_prefs/pref_names.h" 2468 #include "components/feed/core/shared_prefs/pref_names.h"
@@ -2497,8 +2490,8 @@
2497 prefs_->SetBoolean(feed::prefs::kEnableSnippets, false); 2490 prefs_->SetBoolean(feed::prefs::kEnableSnippets, false);
2498 2491
2499 // Copy supervised user settings to prefs. 2492 // Copy supervised user settings to prefs.
2500--- a/chrome/browser/ui/autofill/payments/save_card_bubble_controller_impl.cc 2493--- chrome/browser/ui/autofill/payments/save_card_bubble_controller_impl.cc.orig
2501+++ b/chrome/browser/ui/autofill/payments/save_card_bubble_controller_impl.cc 2494+++ chrome/browser/ui/autofill/payments/save_card_bubble_controller_impl.cc
2502@@ -37,7 +37,6 @@ 2495@@ -37,7 +37,6 @@
2503 #include "components/autofill/core/common/autofill_features.h" 2496 #include "components/autofill/core/common/autofill_features.h"
2504 #include "components/autofill/core/common/autofill_payments_features.h" 2497 #include "components/autofill/core/common/autofill_payments_features.h"
@@ -2507,9 +2500,9 @@
2507 #include "components/signin/public/identity_manager/identity_manager.h" 2500 #include "components/signin/public/identity_manager/identity_manager.h"
2508 #include "components/strings/grit/components_strings.h" 2501 #include "components/strings/grit/components_strings.h"
2509 #include "components/sync/driver/sync_service.h" 2502 #include "components/sync/driver/sync_service.h"
2510--- a/chrome/browser/ui/browser_command_controller.cc 2503--- chrome/browser/ui/browser_command_controller.cc.orig
2511+++ b/chrome/browser/ui/browser_command_controller.cc 2504+++ chrome/browser/ui/browser_command_controller.cc
2512@@ -56,7 +56,6 @@ 2505@@ -57,7 +57,6 @@
2513 #include "components/prefs/pref_service.h" 2506 #include "components/prefs/pref_service.h"
2514 #include "components/sessions/core/tab_restore_service.h" 2507 #include "components/sessions/core/tab_restore_service.h"
2515 #include "components/signin/public/base/signin_buildflags.h" 2508 #include "components/signin/public/base/signin_buildflags.h"
@@ -2517,7 +2510,7 @@
2517 #include "content/public/browser/native_web_keyboard_event.h" 2510 #include "content/public/browser/native_web_keyboard_event.h"
2518 #include "content/public/browser/navigation_controller.h" 2511 #include "content/public/browser/navigation_controller.h"
2519 #include "content/public/browser/navigation_entry.h" 2512 #include "content/public/browser/navigation_entry.h"
2520@@ -204,10 +203,6 @@ BrowserCommandController::BrowserCommand 2513@@ -184,10 +183,6 @@ BrowserCommandController::BrowserCommand
2521 &BrowserCommandController::UpdateCommandsForFullscreenMode, 2514 &BrowserCommandController::UpdateCommandsForFullscreenMode,
2522 base::Unretained(this))); 2515 base::Unretained(this)));
2523 #endif 2516 #endif
@@ -2528,7 +2521,7 @@
2528 2521
2529 InitCommandState(); 2522 InitCommandState();
2530 2523
2531@@ -1556,7 +1551,7 @@ void BrowserCommandController::UpdateSho 2524@@ -1526,7 +1521,7 @@ void BrowserCommandController::UpdateSho
2532 return; 2525 return;
2533 2526
2534 command_updater_.UpdateCommandEnabled( 2527 command_updater_.UpdateCommandEnabled(
@@ -2536,10 +2529,10 @@
2536+ IDC_SHOW_SIGNIN, false); 2529+ IDC_SHOW_SIGNIN, false);
2537 } 2530 }
2538 2531
2539 void BrowserCommandController::UpdateReloadStopState(bool is_loading, 2532 // static
2540--- a/chrome/browser/ui/browser_command_controller.h 2533--- chrome/browser/ui/browser_command_controller.h.orig
2541+++ b/chrome/browser/ui/browser_command_controller.h 2534+++ chrome/browser/ui/browser_command_controller.h
2542@@ -212,7 +212,6 @@ class BrowserCommandController : public 2535@@ -211,7 +211,6 @@ class BrowserCommandController : public
2543 2536
2544 PrefChangeRegistrar profile_pref_registrar_; 2537 PrefChangeRegistrar profile_pref_registrar_;
2545 PrefChangeRegistrar local_pref_registrar_; 2538 PrefChangeRegistrar local_pref_registrar_;
@@ -2547,9 +2540,9 @@
2547 2540
2548 // In locked fullscreen mode disallow enabling/disabling commands. 2541 // In locked fullscreen mode disallow enabling/disabling commands.
2549 bool is_locked_fullscreen_ = false; 2542 bool is_locked_fullscreen_ = false;
2550--- a/chrome/browser/ui/browser_command_controller_unittest.cc 2543--- chrome/browser/ui/browser_command_controller_unittest.cc.orig
2551+++ b/chrome/browser/ui/browser_command_controller_unittest.cc 2544+++ chrome/browser/ui/browser_command_controller_unittest.cc
2552@@ -28,7 +28,6 @@ 2545@@ -27,7 +27,6 @@
2553 #include "chrome/test/base/test_browser_window.h" 2546 #include "chrome/test/base/test_browser_window.h"
2554 #include "chrome/test/base/testing_browser_process.h" 2547 #include "chrome/test/base/testing_browser_process.h"
2555 #include "chrome/test/base/testing_profile_manager.h" 2548 #include "chrome/test/base/testing_profile_manager.h"
@@ -2557,17 +2550,17 @@
2557 #include "content/public/browser/native_web_keyboard_event.h" 2550 #include "content/public/browser/native_web_keyboard_event.h"
2558 #include "ui/events/keycodes/dom/dom_code.h" 2551 #include "ui/events/keycodes/dom/dom_code.h"
2559 #include "ui/events/keycodes/keyboard_codes.h" 2552 #include "ui/events/keycodes/keyboard_codes.h"
2560--- a/chrome/browser/ui/chrome_pages.cc 2553--- chrome/browser/ui/chrome_pages.cc.orig
2561+++ b/chrome/browser/ui/chrome_pages.cc 2554+++ chrome/browser/ui/chrome_pages.cc
2562@@ -64,7 +64,6 @@ 2555@@ -61,7 +61,6 @@
2563 #if !BUILDFLAG(IS_ANDROID) 2556
2564 #include "base/metrics/histogram_functions.h" 2557 #if !defined(OS_ANDROID)
2565 #include "chrome/browser/signin/identity_manager_factory.h" 2558 #include "chrome/browser/signin/identity_manager_factory.h"
2566-#include "components/signin/public/base/signin_pref_names.h" 2559-#include "components/signin/public/base/signin_pref_names.h"
2567 #include "components/signin/public/identity_manager/identity_manager.h" 2560 #include "components/signin/public/identity_manager/identity_manager.h"
2568 #endif 2561 #endif
2569 2562
2570@@ -513,13 +512,7 @@ void ShowBrowserSignin(Browser* browser, 2563@@ -484,13 +483,7 @@ void ShowBrowserSignin(Browser* browser,
2571 2564
2572 void ShowBrowserSigninOrSettings(Browser* browser, 2565 void ShowBrowserSigninOrSettings(Browser* browser,
2573 signin_metrics::AccessPoint access_point) { 2566 signin_metrics::AccessPoint access_point) {
@@ -2582,8 +2575,8 @@
2582 } 2575 }
2583 #endif 2576 #endif
2584 2577
2585--- a/chrome/browser/ui/hats/trust_safety_sentiment_service.cc 2578--- chrome/browser/ui/hats/trust_safety_sentiment_service.cc.orig
2586+++ b/chrome/browser/ui/hats/trust_safety_sentiment_service.cc 2579+++ chrome/browser/ui/hats/trust_safety_sentiment_service.cc
2587@@ -19,8 +19,6 @@ 2580@@ -19,8 +19,6 @@
2588 #include "components/content_settings/core/common/pref_names.h" 2581 #include "components/content_settings/core/common/pref_names.h"
2589 #include "components/password_manager/core/common/password_manager_pref_names.h" 2582 #include "components/password_manager/core/common/password_manager_pref_names.h"
@@ -2593,7 +2586,7 @@
2593 #include "components/unified_consent/pref_names.h" 2586 #include "components/unified_consent/pref_names.h"
2594 2587
2595 namespace { 2588 namespace {
2596@@ -124,9 +122,6 @@ bool HasNonDefaultPrivacySetting(Profile 2589@@ -81,9 +79,6 @@ bool HasNonDefaultPrivacySetting(Profile
2597 auto* prefs = profile->GetPrefs(); 2590 auto* prefs = profile->GetPrefs();
2598 2591
2599 std::vector<std::string> prefs_to_check = { 2592 std::vector<std::string> prefs_to_check = {
@@ -2603,7 +2596,7 @@
2603 prefs::kEnableDoNotTrack, 2596 prefs::kEnableDoNotTrack,
2604 password_manager::prefs::kPasswordLeakDetectionEnabled, 2597 password_manager::prefs::kPasswordLeakDetectionEnabled,
2605 prefs::kCookieControlsMode, 2598 prefs::kCookieControlsMode,
2606@@ -144,13 +139,9 @@ bool HasNonDefaultPrivacySetting(Profile 2599@@ -101,13 +96,9 @@ bool HasNonDefaultPrivacySetting(Profile
2607 // Users consenting to sync automatically enable UKM collection 2600 // Users consenting to sync automatically enable UKM collection
2608 auto* ukm_pref = prefs->FindPreference( 2601 auto* ukm_pref = prefs->FindPreference(
2609 unified_consent::prefs::kUrlKeyedAnonymizedDataCollectionEnabled); 2602 unified_consent::prefs::kUrlKeyedAnonymizedDataCollectionEnabled);
@@ -2618,9 +2611,9 @@
2618 2611
2619 // Check the default value for each user facing content setting. Note that 2612 // Check the default value for each user facing content setting. Note that
2620 // this will not include content setting exceptions set via permission 2613 // this will not include content setting exceptions set via permission
2621--- a/chrome/browser/ui/views/page_info/page_info_bubble_view_sync_browsertest.cc 2614--- chrome/browser/ui/views/page_info/page_info_bubble_view_sync_browsertest.cc.orig
2622+++ b/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
2623@@ -19,7 +19,6 @@ 2616@@ -20,7 +20,6 @@
2624 #include "components/password_manager/core/browser/password_manager_metrics_util.h" 2617 #include "components/password_manager/core/browser/password_manager_metrics_util.h"
2625 #include "components/safe_browsing/content/browser/password_protection/password_protection_test_util.h" 2618 #include "components/safe_browsing/content/browser/password_protection/password_protection_test_util.h"
2626 #include "components/safe_browsing/core/browser/password_protection/metrics_util.h" 2619 #include "components/safe_browsing/core/browser/password_protection/metrics_util.h"
@@ -2628,17 +2621,17 @@
2628 #include "components/signin/public/identity_manager/account_info.h" 2621 #include "components/signin/public/identity_manager/account_info.h"
2629 #include "components/signin/public/identity_manager/identity_manager.h" 2622 #include "components/signin/public/identity_manager/identity_manager.h"
2630 #include "components/signin/public/identity_manager/identity_test_utils.h" 2623 #include "components/signin/public/identity_manager/identity_test_utils.h"
2631--- a/chrome/browser/ui/views/profiles/profile_menu_view.cc 2624--- chrome/browser/ui/views/profiles/profile_menu_view.cc.orig
2632+++ b/chrome/browser/ui/views/profiles/profile_menu_view.cc 2625+++ chrome/browser/ui/views/profiles/profile_menu_view.cc
2633@@ -53,7 +53,6 @@ 2626@@ -53,7 +53,6 @@
2627 #include "chrome/grit/generated_resources.h"
2634 #include "chrome/grit/theme_resources.h" 2628 #include "chrome/grit/theme_resources.h"
2635 #include "components/signin/core/browser/signin_error_controller.h" 2629 #include "components/signin/core/browser/signin_error_controller.h"
2636 #include "components/signin/public/base/consent_level.h"
2637-#include "components/signin/public/base/signin_pref_names.h" 2630-#include "components/signin/public/base/signin_pref_names.h"
2631 #include "components/signin/public/identity_manager/consent_level.h"
2638 #include "components/signin/public/identity_manager/primary_account_mutator.h" 2632 #include "components/signin/public/identity_manager/primary_account_mutator.h"
2639 #include "components/strings/grit/components_strings.h" 2633 #include "components/strings/grit/components_strings.h"
2640 #include "components/vector_icons/vector_icons.h" 2634@@ -501,7 +500,6 @@ void ProfileMenuView::BuildAutofillButto
2641@@ -507,7 +506,6 @@ void ProfileMenuView::BuildAutofillButto
2642 2635
2643 void ProfileMenuView::BuildSyncInfo() { 2636 void ProfileMenuView::BuildSyncInfo() {
2644 Profile* profile = browser()->profile(); 2637 Profile* profile = browser()->profile();
@@ -2646,18 +2639,18 @@
2646 return; 2639 return;
2647 2640
2648 signin::IdentityManager* identity_manager = 2641 signin::IdentityManager* identity_manager =
2649--- a/chrome/browser/ui/views/profiles/profile_menu_view_browsertest.cc 2642--- chrome/browser/ui/views/profiles/profile_menu_view_browsertest.cc.orig
2650+++ b/chrome/browser/ui/views/profiles/profile_menu_view_browsertest.cc 2643+++ chrome/browser/ui/views/profiles/profile_menu_view_browsertest.cc
2651@@ -60,7 +60,6 @@ 2644@@ -55,7 +55,6 @@
2652 #include "components/google/core/common/google_util.h" 2645 #include "components/feature_engagement/public/tracker.h"
2646 #include "components/feature_engagement/test/test_tracker.h"
2653 #include "components/prefs/pref_service.h" 2647 #include "components/prefs/pref_service.h"
2654 #include "components/signin/public/base/consent_level.h"
2655-#include "components/signin/public/base/signin_pref_names.h" 2648-#include "components/signin/public/base/signin_pref_names.h"
2649 #include "components/signin/public/identity_manager/consent_level.h"
2656 #include "components/signin/public/identity_manager/identity_test_utils.h" 2650 #include "components/signin/public/identity_manager/identity_test_utils.h"
2657 #include "components/sync/driver/sync_service.h" 2651 #include "components/sync/driver/sync_service.h"
2658 #include "components/sync/driver/sync_user_settings.h" 2652--- chrome/browser/ui/views/safe_browsing/password_reuse_modal_warning_dialog.cc.orig
2659--- a/chrome/browser/ui/views/safe_browsing/password_reuse_modal_warning_dialog.cc 2653+++ chrome/browser/ui/views/safe_browsing/password_reuse_modal_warning_dialog.cc
2660+++ b/chrome/browser/ui/views/safe_browsing/password_reuse_modal_warning_dialog.cc
2661@@ -122,7 +122,6 @@ PasswordReuseModalWarningDialog::Passwor 2654@@ -122,7 +122,6 @@ PasswordReuseModalWarningDialog::Passwor
2662 OnWarningDone done_callback) 2655 OnWarningDone done_callback)
2663 : content::WebContentsObserver(web_contents), 2656 : content::WebContentsObserver(web_contents),
@@ -2699,19 +2692,19 @@
2699 LogModalWarningDialogLifetime(modal_construction_start_time_); 2692 LogModalWarningDialogLifetime(modal_construction_start_time_);
2700 } 2693 }
2701 2694
2702--- a/chrome/browser/ui/views/safe_browsing/password_reuse_modal_warning_dialog.h 2695--- chrome/browser/ui/views/safe_browsing/password_reuse_modal_warning_dialog.h.orig
2703+++ b/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
2704@@ -61,7 +61,6 @@ class PasswordReuseModalWarningDialog 2697@@ -60,7 +60,6 @@ class PasswordReuseModalWarningDialog
2705 2698
2706 private: 2699 private:
2707 OnWarningDone done_callback_; 2700 OnWarningDone done_callback_;
2708- raw_ptr<ChromePasswordProtectionService> service_; 2701- ChromePasswordProtectionService* service_;
2709 const GURL url_; 2702 const GURL url_;
2710 const ReusedPasswordAccountType password_type_; 2703 const ReusedPasswordAccountType password_type_;
2711 2704
2712--- a/chrome/browser/ui/views/sync/inline_login_ui_browsertest.cc 2705--- chrome/browser/ui/views/sync/inline_login_ui_browsertest.cc.orig
2713+++ b/chrome/browser/ui/views/sync/inline_login_ui_browsertest.cc 2706+++ chrome/browser/ui/views/sync/inline_login_ui_browsertest.cc
2714@@ -46,7 +46,6 @@ 2707@@ -44,7 +44,6 @@
2715 #include "components/keyed_service/content/browser_context_dependency_manager.h" 2708 #include "components/keyed_service/content/browser_context_dependency_manager.h"
2716 #include "components/prefs/pref_service.h" 2709 #include "components/prefs/pref_service.h"
2717 #include "components/prefs/scoped_user_pref_update.h" 2710 #include "components/prefs/scoped_user_pref_update.h"
@@ -2719,9 +2712,9 @@
2719 #include "components/signin/public/identity_manager/identity_test_utils.h" 2712 #include "components/signin/public/identity_manager/identity_test_utils.h"
2720 #include "content/public/browser/render_frame_host.h" 2713 #include "content/public/browser/render_frame_host.h"
2721 #include "content/public/browser/render_process_host.h" 2714 #include "content/public/browser/render_process_host.h"
2722--- a/chrome/browser/ui/webui/browser_command/browser_command_handler.cc 2715--- chrome/browser/ui/webui/browser_command/browser_command_handler.cc.orig
2723+++ b/chrome/browser/ui/webui/browser_command/browser_command_handler.cc 2716+++ chrome/browser/ui/webui/browser_command/browser_command_handler.cc
2724@@ -17,7 +17,6 @@ 2717@@ -16,7 +16,6 @@
2725 #include "chrome/common/webui_url_constants.h" 2718 #include "chrome/common/webui_url_constants.h"
2726 #include "components/safe_browsing/content/browser/web_ui/safe_browsing_ui.h" 2719 #include "components/safe_browsing/content/browser/web_ui/safe_browsing_ui.h"
2727 #include "components/safe_browsing/core/common/safe_browsing_policy_handler.h" 2720 #include "components/safe_browsing/core/common/safe_browsing_policy_handler.h"
@@ -2730,8 +2723,8 @@
2730 #include "ui/base/window_open_disposition.h" 2723 #include "ui/base/window_open_disposition.h"
2731 2724
2732@@ -61,13 +60,6 @@ void BrowserCommandHandler::CanExecuteCo 2725@@ -61,13 +60,6 @@ void BrowserCommandHandler::CanExecuteCo
2733 case Command::kOpenSafetyCheck: 2726 can_execute =
2734 can_execute = !chrome::enterprise_util::IsBrowserManaged(profile_); 2727 !chrome::enterprise_util::HasBrowserPoliciesApplied(profile_);
2735 break; 2728 break;
2736- case Command::kOpenSafeBrowsingEnhancedProtectionSettings: { 2729- case Command::kOpenSafeBrowsingEnhancedProtectionSettings: {
2737- bool managed = safe_browsing::SafeBrowsingPolicyHandler:: 2730- bool managed = safe_browsing::SafeBrowsingPolicyHandler::
@@ -2743,8 +2736,8 @@
2743 case Command::kOpenFeedbackForm: 2736 case Command::kOpenFeedbackForm:
2744 can_execute = true; 2737 can_execute = true;
2745 break; 2738 break;
2746--- a/chrome/browser/ui/webui/downloads/downloads_dom_handler.cc 2739--- chrome/browser/ui/webui/downloads/downloads_dom_handler.cc.orig
2747+++ b/chrome/browser/ui/webui/downloads/downloads_dom_handler.cc 2740+++ chrome/browser/ui/webui/downloads/downloads_dom_handler.cc
2748@@ -37,7 +37,6 @@ 2741@@ -37,7 +37,6 @@
2749 #include "chrome/common/url_constants.h" 2742 #include "chrome/common/url_constants.h"
2750 #include "components/download/public/common/download_item.h" 2743 #include "components/download/public/common/download_item.h"
@@ -2753,27 +2746,8 @@
2753 #include "content/public/browser/browser_thread.h" 2746 #include "content/public/browser/browser_thread.h"
2754 #include "content/public/browser/download_manager.h" 2747 #include "content/public/browser/download_manager.h"
2755 #include "content/public/browser/render_process_host.h" 2748 #include "content/public/browser/render_process_host.h"
2756--- a/chrome/browser/ui/webui/history/history_ui.cc 2749--- chrome/browser/ui/webui/management/management_ui_handler.cc.orig
2757+++ b/chrome/browser/ui/webui/history/history_ui.cc 2750+++ chrome/browser/ui/webui/management/management_ui_handler.cc
2758@@ -40,7 +40,6 @@
2759 #include "components/history_clusters/core/history_clusters_prefs.h"
2760 #include "components/history_clusters/core/history_clusters_service.h"
2761 #include "components/prefs/pref_service.h"
2762-#include "components/signin/public/base/signin_pref_names.h"
2763 #include "components/signin/public/identity_manager/identity_manager.h"
2764 #include "components/strings/grit/components_strings.h"
2765 #include "content/public/browser/web_ui.h"
2766@@ -123,8 +122,6 @@ content::WebUIDataSource* CreateHistoryU
2767 source->AddBoolean("allowDeletingHistory", allow_deleting_history);
2768
2769 source->AddBoolean("isGuestSession", profile->IsGuestSession());
2770- source->AddBoolean("isSignInAllowed",
2771- prefs->GetBoolean(prefs::kSigninAllowed));
2772
2773 source->AddBoolean(kIsUserSignedInKey, IsUserSignedIn(profile));
2774
2775--- a/chrome/browser/ui/webui/management/management_ui_handler.cc
2776+++ b/chrome/browser/ui/webui/management/management_ui_handler.cc
2777@@ -29,7 +29,6 @@ 2751@@ -29,7 +29,6 @@
2778 #include "chrome/browser/profiles/profile.h" 2752 #include "chrome/browser/profiles/profile.h"
2779 #include "chrome/browser/ui/managed_ui.h" 2753 #include "chrome/browser/ui/managed_ui.h"
@@ -2782,8 +2756,8 @@
2782 #include "components/strings/grit/components_strings.h" 2756 #include "components/strings/grit/components_strings.h"
2783 #include "content/public/browser/storage_partition.h" 2757 #include "content/public/browser/storage_partition.h"
2784 #include "content/public/browser/web_contents.h" 2758 #include "content/public/browser/web_contents.h"
2785--- a/chrome/browser/ui/webui/profile_info_watcher.cc 2759--- chrome/browser/ui/webui/profile_info_watcher.cc.orig
2786+++ b/chrome/browser/ui/webui/profile_info_watcher.cc 2760+++ chrome/browser/ui/webui/profile_info_watcher.cc
2787@@ -12,7 +12,6 @@ 2761@@ -12,7 +12,6 @@
2788 #include "chrome/browser/signin/identity_manager_factory.h" 2762 #include "chrome/browser/signin/identity_manager_factory.h"
2789 #include "chrome/common/pref_names.h" 2763 #include "chrome/common/pref_names.h"
@@ -2804,8 +2778,8 @@
2804 } 2778 }
2805 2779
2806 ProfileInfoWatcher::~ProfileInfoWatcher() { 2780 ProfileInfoWatcher::~ProfileInfoWatcher() {
2807--- a/chrome/browser/ui/webui/profile_info_watcher.h 2781--- chrome/browser/ui/webui/profile_info_watcher.h.orig
2808+++ b/chrome/browser/ui/webui/profile_info_watcher.h 2782+++ chrome/browser/ui/webui/profile_info_watcher.h
2809@@ -49,7 +49,6 @@ class ProfileInfoWatcher : public Profil 2783@@ -49,7 +49,6 @@ class ProfileInfoWatcher : public Profil
2810 // Called when the authenticated username changes. 2784 // Called when the authenticated username changes.
2811 base::RepeatingClosure callback_; 2785 base::RepeatingClosure callback_;
@@ -2814,9 +2788,9 @@
2814 }; 2788 };
2815 2789
2816 #endif // CHROME_BROWSER_UI_WEBUI_PROFILE_INFO_WATCHER_H_ 2790 #endif // CHROME_BROWSER_UI_WEBUI_PROFILE_INFO_WATCHER_H_
2817--- a/chrome/browser/ui/webui/reset_password/reset_password_ui.cc 2791--- chrome/browser/ui/webui/reset_password/reset_password_ui.cc.orig
2818+++ b/chrome/browser/ui/webui/reset_password/reset_password_ui.cc 2792+++ chrome/browser/ui/webui/reset_password/reset_password_ui.cc
2819@@ -18,7 +18,6 @@ 2793@@ -17,7 +17,6 @@
2820 #include "components/safe_browsing/content/browser/password_protection/password_protection_service.h" 2794 #include "components/safe_browsing/content/browser/password_protection/password_protection_service.h"
2821 #include "components/safe_browsing/core/browser/password_protection/metrics_util.h" 2795 #include "components/safe_browsing/core/browser/password_protection/metrics_util.h"
2822 #include "components/safe_browsing/core/common/proto/csd.pb.h" 2796 #include "components/safe_browsing/core/common/proto/csd.pb.h"
@@ -2824,17 +2798,17 @@
2824 #include "components/strings/grit/components_strings.h" 2798 #include "components/strings/grit/components_strings.h"
2825 #include "components/url_formatter/url_formatter.h" 2799 #include "components/url_formatter/url_formatter.h"
2826 #include "components/user_prefs/user_prefs.h" 2800 #include "components/user_prefs/user_prefs.h"
2827--- a/chrome/browser/ui/webui/settings/people_handler.cc 2801--- chrome/browser/ui/webui/settings/people_handler.cc.orig
2828+++ b/chrome/browser/ui/webui/settings/people_handler.cc 2802+++ chrome/browser/ui/webui/settings/people_handler.cc
2829@@ -42,7 +42,6 @@ 2803@@ -41,7 +41,6 @@
2804 #include "components/prefs/pref_service.h"
2830 #include "components/signin/core/browser/signin_error_controller.h" 2805 #include "components/signin/core/browser/signin_error_controller.h"
2831 #include "components/signin/public/base/consent_level.h"
2832 #include "components/signin/public/base/signin_metrics.h" 2806 #include "components/signin/public/base/signin_metrics.h"
2833-#include "components/signin/public/base/signin_pref_names.h" 2807-#include "components/signin/public/base/signin_pref_names.h"
2834 #include "components/signin/public/identity_manager/accounts_mutator.h" 2808 #include "components/signin/public/identity_manager/accounts_mutator.h"
2809 #include "components/signin/public/identity_manager/consent_level.h"
2835 #include "components/signin/public/identity_manager/identity_manager.h" 2810 #include "components/signin/public/identity_manager/identity_manager.h"
2836 #include "components/signin/public/identity_manager/primary_account_mutator.h" 2811@@ -290,10 +289,6 @@ void PeopleHandler::RegisterMessages() {
2837@@ -299,10 +298,6 @@ void PeopleHandler::RegisterMessages() {
2838 void PeopleHandler::OnJavascriptAllowed() { 2812 void PeopleHandler::OnJavascriptAllowed() {
2839 PrefService* prefs = profile_->GetPrefs(); 2813 PrefService* prefs = profile_->GetPrefs();
2840 profile_pref_registrar_.Init(prefs); 2814 profile_pref_registrar_.Init(prefs);
@@ -2845,8 +2819,8 @@
2845 2819
2846 signin::IdentityManager* identity_manager( 2820 signin::IdentityManager* identity_manager(
2847 IdentityManagerFactory::GetInstance()->GetForProfile(profile_)); 2821 IdentityManagerFactory::GetInstance()->GetForProfile(profile_));
2848--- a/chrome/browser/ui/webui/settings/safety_check_handler.cc 2822--- chrome/browser/ui/webui/settings/safety_check_handler.cc.orig
2849+++ b/chrome/browser/ui/webui/settings/safety_check_handler.cc 2823+++ chrome/browser/ui/webui/settings/safety_check_handler.cc
2850@@ -28,7 +28,6 @@ 2824@@ -28,7 +28,6 @@
2851 #include "chrome/grit/chromium_strings.h" 2825 #include "chrome/grit/chromium_strings.h"
2852 #include "chrome/grit/generated_resources.h" 2826 #include "chrome/grit/generated_resources.h"
@@ -2855,20 +2829,22 @@
2855 #include "components/strings/grit/components_strings.h" 2829 #include "components/strings/grit/components_strings.h"
2856 #include "components/version_info/version_info.h" 2830 #include "components/version_info/version_info.h"
2857 #include "content/public/browser/browser_context.h" 2831 #include "content/public/browser/browser_context.h"
2858--- a/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc 2832--- chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc.orig
2859+++ b/chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc 2833+++ chrome/browser/ui/webui/settings/settings_localized_strings_provider.cc
2860@@ -69,7 +69,6 @@ 2834@@ -67,7 +67,6 @@
2835 #include "components/password_manager/core/browser/manage_passwords_referrer.h"
2861 #include "components/password_manager/core/common/password_manager_features.h" 2836 #include "components/password_manager/core/common/password_manager_features.h"
2862 #include "components/prefs/pref_service.h" 2837 #include "components/prefs/pref_service.h"
2863 #include "components/privacy_sandbox/privacy_sandbox_features.h"
2864-#include "components/safe_browsing/core/common/safe_browsing_prefs.h" 2838-#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
2865 #include "components/signin/public/base/signin_buildflags.h" 2839 #include "components/signin/public/base/signin_buildflags.h"
2866 #include "components/strings/grit/components_chromium_strings.h" 2840 #include "components/strings/grit/components_chromium_strings.h"
2867 #include "components/strings/grit/components_strings.h" 2841 #include "components/strings/grit/components_strings.h"
2868@@ -1445,44 +1444,6 @@ void AddPrivacyStrings(content::WebUIDat 2842@@ -1391,46 +1390,6 @@ void AddPrivacyStrings(content::WebUIDat
2869 {"clearBrowsingData", IDS_SETTINGS_CLEAR_BROWSING_DATA}, 2843 {"clearBrowsingData", IDS_SETTINGS_CLEAR_BROWSING_DATA},
2870 {"clearBrowsingDataDescription", IDS_SETTINGS_CLEAR_DATA_DESCRIPTION}, 2844 {"clearBrowsingDataDescription", IDS_SETTINGS_CLEAR_DATA_DESCRIPTION},
2871 {"titleAndCount", IDS_SETTINGS_TITLE_AND_COUNT}, 2845 {"titleAndCount", IDS_SETTINGS_TITLE_AND_COUNT},
2846- {"safeBrowsingEnableExtendedReporting",
2847- IDS_SETTINGS_SAFEBROWSING_ENABLE_REPORTING},
2872- {"safeBrowsingEnableExtendedReportingDesc", 2848- {"safeBrowsingEnableExtendedReportingDesc",
2873- IDS_SETTINGS_SAFEBROWSING_ENABLE_REPORTING_DESC}, 2849- IDS_SETTINGS_SAFEBROWSING_ENABLE_REPORTING_DESC},
2874- {"safeBrowsingEnhanced", IDS_SETTINGS_SAFEBROWSING_ENHANCED}, 2850- {"safeBrowsingEnhanced", IDS_SETTINGS_SAFEBROWSING_ENHANCED},
@@ -2910,7 +2886,7 @@
2910 {"safeBrowsingSectionLabel", IDS_SETTINGS_SAFEBROWSING_SECTION_LABEL}, 2886 {"safeBrowsingSectionLabel", IDS_SETTINGS_SAFEBROWSING_SECTION_LABEL},
2911 {"syncAndGoogleServicesPrivacyDescription", 2887 {"syncAndGoogleServicesPrivacyDescription",
2912 IDS_SETTINGS_SYNC_AND_GOOGLE_SERVICES_PRIVACY_DESC_UNIFIED_CONSENT}, 2888 IDS_SETTINGS_SYNC_AND_GOOGLE_SERVICES_PRIVACY_DESC_UNIFIED_CONSENT},
2913@@ -2779,11 +2740,6 @@ void AddSiteSettingsStrings(content::Web 2889@@ -2626,11 +2585,6 @@ void AddSiteSettingsStrings(content::Web
2914 html_source->AddLocalizedStrings(kSensorsLocalizedStrings); 2890 html_source->AddLocalizedStrings(kSensorsLocalizedStrings);
2915 2891
2916 html_source->AddBoolean( 2892 html_source->AddBoolean(
@@ -2922,9 +2898,9 @@
2922 "enableBlockAutoplayContentSetting", 2898 "enableBlockAutoplayContentSetting",
2923 base::FeatureList::IsEnabled(media::kAutoplayDisableSettings)); 2899 base::FeatureList::IsEnabled(media::kAutoplayDisableSettings));
2924 2900
2925--- a/chrome/browser/ui/webui/settings/settings_ui.cc 2901--- chrome/browser/ui/webui/settings/settings_ui.cc.orig
2926+++ b/chrome/browser/ui/webui/settings/settings_ui.cc 2902+++ chrome/browser/ui/webui/settings/settings_ui.cc
2927@@ -70,7 +70,6 @@ 2903@@ -72,7 +72,6 @@
2928 #include "components/pref_registry/pref_registry_syncable.h" 2904 #include "components/pref_registry/pref_registry_syncable.h"
2929 #include "components/prefs/pref_service.h" 2905 #include "components/prefs/pref_service.h"
2930 #include "components/safe_browsing/core/common/features.h" 2906 #include "components/safe_browsing/core/common/features.h"
@@ -2932,9 +2908,9 @@
2932 #include "content/public/browser/url_data_source.h" 2908 #include "content/public/browser/url_data_source.h"
2933 #include "content/public/browser/web_contents.h" 2909 #include "content/public/browser/web_contents.h"
2934 #include "content/public/browser/web_ui.h" 2910 #include "content/public/browser/web_ui.h"
2935@@ -268,9 +267,7 @@ SettingsUI::SettingsUI(content::WebUI* w 2911@@ -274,9 +273,7 @@ SettingsUI::SettingsUI(content::WebUI* w
2936 html_source->AddString("enableBrandingUpdateAttribute", 2912 ? "enable-branding-update"
2937 "enable-branding-update"); 2913 : "");
2938 2914
2939- html_source->AddBoolean("signinAllowed", !profile->IsGuestSession() && 2915- html_source->AddBoolean("signinAllowed", !profile->IsGuestSession() &&
2940- profile->GetPrefs()->GetBoolean( 2916- profile->GetPrefs()->GetBoolean(
@@ -2943,8 +2919,38 @@
2943 2919
2944 html_source->AddBoolean("showImportPasswords", 2920 html_source->AddBoolean("showImportPasswords",
2945 base::FeatureList::IsEnabled( 2921 base::FeatureList::IsEnabled(
2946--- a/chrome/browser/ui/webui/signin/inline_login_handler.cc 2922--- chrome/browser/ui/webui/signin/dice_turn_sync_on_helper.cc.orig
2947+++ b/chrome/browser/ui/webui/signin/inline_login_handler.cc 2923+++ chrome/browser/ui/webui/signin/dice_turn_sync_on_helper.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
2948@@ -27,7 +27,6 @@ 2954@@ -27,7 +27,6 @@
2949 #include "chrome/common/pref_names.h" 2955 #include "chrome/common/pref_names.h"
2950 #include "components/metrics/metrics_pref_names.h" 2956 #include "components/metrics/metrics_pref_names.h"
@@ -2953,7 +2959,7 @@
2953 #include "content/public/browser/storage_partition.h" 2959 #include "content/public/browser/storage_partition.h"
2954 #include "content/public/browser/web_contents.h" 2960 #include "content/public/browser/web_contents.h"
2955 #include "content/public/browser/web_ui.h" 2961 #include "content/public/browser/web_ui.h"
2956@@ -138,8 +137,6 @@ void InlineLoginHandler::ContinueHandleI 2962@@ -127,8 +126,6 @@ void InlineLoginHandler::ContinueHandleI
2957 std::string default_email; 2963 std::string default_email;
2958 if (reason == signin_metrics::Reason::kSigninPrimaryAccount || 2964 if (reason == signin_metrics::Reason::kSigninPrimaryAccount ||
2959 reason == signin_metrics::Reason::kForcedSigninPrimaryAccount) { 2965 reason == signin_metrics::Reason::kForcedSigninPrimaryAccount) {
@@ -2962,9 +2968,9 @@
2962 } else { 2968 } else {
2963 if (!net::GetValueForKeyInQuery(current_url, "email", &default_email)) 2969 if (!net::GetValueForKeyInQuery(current_url, "email", &default_email))
2964 default_email.clear(); 2970 default_email.clear();
2965--- a/chrome/browser/ui/webui/signin/inline_login_handler_impl.cc 2971--- chrome/browser/ui/webui/signin/inline_login_handler_impl.cc.orig
2966+++ b/chrome/browser/ui/webui/signin/inline_login_handler_impl.cc 2972+++ chrome/browser/ui/webui/signin/inline_login_handler_impl.cc
2967@@ -67,7 +67,6 @@ 2973@@ -70,7 +70,6 @@
2968 #include "components/prefs/pref_service.h" 2974 #include "components/prefs/pref_service.h"
2969 #include "components/signin/core/browser/about_signin_internals.h" 2975 #include "components/signin/core/browser/about_signin_internals.h"
2970 #include "components/signin/public/base/signin_metrics.h" 2976 #include "components/signin/public/base/signin_metrics.h"
@@ -2972,8 +2978,8 @@
2972 #include "components/signin/public/identity_manager/account_info.h" 2978 #include "components/signin/public/identity_manager/account_info.h"
2973 #include "components/signin/public/identity_manager/accounts_cookie_mutator.h" 2979 #include "components/signin/public/identity_manager/accounts_cookie_mutator.h"
2974 #include "components/signin/public/identity_manager/accounts_mutator.h" 2980 #include "components/signin/public/identity_manager/accounts_mutator.h"
2975--- a/chrome/browser/ui/webui/signin/signin_error_ui.cc 2981--- chrome/browser/ui/webui/signin/signin_error_ui.cc.orig
2976+++ b/chrome/browser/ui/webui/signin/signin_error_ui.cc 2982+++ chrome/browser/ui/webui/signin/signin_error_ui.cc
2977@@ -23,7 +23,6 @@ 2983@@ -23,7 +23,6 @@
2978 #include "chrome/grit/generated_resources.h" 2984 #include "chrome/grit/generated_resources.h"
2979 #include "chrome/grit/signin_resources.h" 2985 #include "chrome/grit/signin_resources.h"
@@ -2993,8 +2999,8 @@
2993 if (allowed_domain.empty()) { 2999 if (allowed_domain.empty()) {
2994 source->AddLocalizedString( 3000 source->AddLocalizedString(
2995 "profileBlockedAddPersonSuggestion", 3001 "profileBlockedAddPersonSuggestion",
2996--- a/chrome/browser/ui/webui/signin/signin_utils_desktop.cc 3002--- chrome/browser/ui/webui/signin/signin_utils_desktop.cc.orig
2997+++ b/chrome/browser/ui/webui/signin/signin_utils_desktop.cc 3003+++ chrome/browser/ui/webui/signin/signin_utils_desktop.cc
2998@@ -18,7 +18,6 @@ 3004@@ -18,7 +18,6 @@
2999 #include "chrome/grit/chromium_strings.h" 3005 #include "chrome/grit/chromium_strings.h"
3000 #include "chrome/grit/generated_resources.h" 3006 #include "chrome/grit/generated_resources.h"
@@ -3022,38 +3028,8 @@
3022 return SigninUIError::ProfileWasUsedByAnotherAccount(email, last_email); 3028 return SigninUIError::ProfileWasUsedByAnotherAccount(email, last_email);
3023 } 3029 }
3024 } 3030 }
3025--- a/chrome/browser/ui/webui/signin/turn_sync_on_helper.cc 3031--- chrome/browser/ui/webui/welcome/welcome_ui.cc.orig
3026+++ b/chrome/browser/ui/webui/signin/turn_sync_on_helper.cc 3032+++ chrome/browser/ui/webui/welcome/welcome_ui.cc
3027@@ -45,7 +45,6 @@
3028 #include "components/policy/core/common/management/management_service.h"
3029 #include "components/prefs/pref_service.h"
3030 #include "components/signin/public/base/signin_metrics.h"
3031-#include "components/signin/public/base/signin_pref_names.h"
3032 #include "components/signin/public/identity_manager/accounts_mutator.h"
3033 #include "components/signin/public/identity_manager/identity_manager.h"
3034 #include "components/signin/public/identity_manager/primary_account_mutator.h"
3035@@ -220,8 +219,7 @@ TurnSyncOnHelper::TurnSyncOnHelper(
3036 // last authenticated account of the current profile, then Chrome will show a
3037 // confirmation dialog before starting sync.
3038 // TODO(skym): Warn for high risk upgrade scenario (https://crbug.com/572754).
3039- std::string last_email =
3040- profile_->GetPrefs()->GetString(prefs::kGoogleServicesLastUsername);
3041+ std::string last_email;
3042 delegate_->ShowMergeSyncDataConfirmation(
3043 last_email, account_info_.email,
3044 base::BindOnce(&TurnSyncOnHelper::OnMergeAccountConfirmation,
3045--- a/chrome/browser/ui/webui/signin/turn_sync_on_helper_unittest.cc
3046+++ b/chrome/browser/ui/webui/signin/turn_sync_on_helper_unittest.cc
3047@@ -41,7 +41,6 @@
3048 #include "components/prefs/pref_service.h"
3049 #include "components/signin/public/base/account_consistency_method.h"
3050 #include "components/signin/public/base/signin_metrics.h"
3051-#include "components/signin/public/base/signin_pref_names.h"
3052 #include "components/signin/public/identity_manager/identity_manager.h"
3053 #include "components/signin/public/identity_manager/identity_test_environment.h"
3054 #include "components/signin/public/identity_manager/primary_account_mutator.h"
3055--- a/chrome/browser/ui/webui/welcome/welcome_ui.cc
3056+++ b/chrome/browser/ui/webui/welcome/welcome_ui.cc
3057@@ -24,7 +24,6 @@ 3033@@ -24,7 +24,6 @@
3058 #include "chrome/grit/welcome_resources.h" 3034 #include "chrome/grit/welcome_resources.h"
3059 #include "chrome/grit/welcome_resources_map.h" 3035 #include "chrome/grit/welcome_resources_map.h"
@@ -3071,8 +3047,8 @@
3071 html_source->SetRequestFilter( 3047 html_source->SetRequestFilter(
3072 base::BindRepeating(&ShouldHandleRequestCallback, 3048 base::BindRepeating(&ShouldHandleRequestCallback,
3073 weak_ptr_factory_.GetWeakPtr()), 3049 weak_ptr_factory_.GetWeakPtr()),
3074--- a/chrome/browser/unified_consent/unified_consent_service_factory.cc 3050--- chrome/browser/unified_consent/unified_consent_service_factory.cc.orig
3075+++ b/chrome/browser/unified_consent/unified_consent_service_factory.cc 3051+++ chrome/browser/unified_consent/unified_consent_service_factory.cc
3076@@ -13,7 +13,6 @@ 3052@@ -13,7 +13,6 @@
3077 #include "components/embedder_support/pref_names.h" 3053 #include "components/embedder_support/pref_names.h"
3078 #include "components/keyed_service/content/browser_context_dependency_manager.h" 3054 #include "components/keyed_service/content/browser_context_dependency_manager.h"
@@ -3087,10 +3063,10 @@
3087 prefs::kSearchSuggestEnabled, embedder_support::kAlternateErrorPagesEnabled, 3063 prefs::kSearchSuggestEnabled, embedder_support::kAlternateErrorPagesEnabled,
3088- prefs::kSafeBrowsingEnabled, prefs::kSafeBrowsingScoutReportingEnabled, 3064- prefs::kSafeBrowsingEnabled, prefs::kSafeBrowsingScoutReportingEnabled,
3089 spellcheck::prefs::kSpellCheckUseSpellingService, 3065 spellcheck::prefs::kSpellCheckUseSpellingService,
3090 #if BUILDFLAG(IS_ANDROID) 3066 #if defined(OS_ANDROID)
3091 prefs::kContextualSearchEnabled 3067 prefs::kContextualSearchEnabled
3092--- a/chrome/common/extensions/api/privacy.json 3068--- chrome/common/extensions/api/privacy.json.orig
3093+++ b/chrome/common/extensions/api/privacy.json 3069+++ chrome/common/extensions/api/privacy.json
3094@@ -63,16 +63,6 @@ 3070@@ -63,16 +63,6 @@
3095 "value": ["passwordSavingEnabled", {"type":"boolean"}], 3071 "value": ["passwordSavingEnabled", {"type":"boolean"}],
3096 "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>." 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>."
@@ -3108,9 +3084,9 @@
3108 "searchSuggestEnabled": { 3084 "searchSuggestEnabled": {
3109 "$ref": "types.ChromeSetting", 3085 "$ref": "types.ChromeSetting",
3110 "value": ["searchSuggestEnabled", {"type":"boolean"}], 3086 "value": ["searchSuggestEnabled", {"type":"boolean"}],
3111--- a/components/password_manager/core/browser/leak_detection_delegate.cc 3087--- components/password_manager/core/browser/leak_detection_delegate.cc.orig
3112+++ b/components/password_manager/core/browser/leak_detection_delegate.cc 3088+++ components/password_manager/core/browser/leak_detection_delegate.cc
3113@@ -23,7 +23,6 @@ 3089@@ -22,7 +22,6 @@
3114 #include "components/password_manager/core/common/password_manager_features.h" 3090 #include "components/password_manager/core/common/password_manager_features.h"
3115 #include "components/password_manager/core/common/password_manager_pref_names.h" 3091 #include "components/password_manager/core/common/password_manager_pref_names.h"
3116 #include "components/prefs/pref_service.h" 3092 #include "components/prefs/pref_service.h"
@@ -3118,7 +3094,7 @@
3118 #include "services/network/public/cpp/shared_url_loader_factory.h" 3094 #include "services/network/public/cpp/shared_url_loader_factory.h"
3119 3095
3120 namespace password_manager { 3096 namespace password_manager {
3121@@ -176,28 +175,7 @@ void LeakDetectionDelegate::OnError(Leak 3097@@ -169,28 +168,7 @@ void LeakDetectionDelegate::OnError(Leak
3122 3098
3123 bool CanStartLeakCheck(const PrefService& prefs, 3099 bool CanStartLeakCheck(const PrefService& prefs,
3124 const PasswordManagerClient* client) { 3100 const PasswordManagerClient* client) {
@@ -3148,8 +3124,8 @@
3148 } 3124 }
3149 3125
3150 } // namespace password_manager 3126 } // namespace password_manager
3151--- a/components/password_manager/core/browser/password_bubble_experiment.cc 3127--- components/password_manager/core/browser/password_bubble_experiment.cc.orig
3152+++ b/components/password_manager/core/browser/password_bubble_experiment.cc 3128+++ components/password_manager/core/browser/password_bubble_experiment.cc
3153@@ -18,7 +18,6 @@ 3129@@ -18,7 +18,6 @@
3154 #include "components/prefs/pref_registry_simple.h" 3130 #include "components/prefs/pref_registry_simple.h"
3155 #include "components/prefs/pref_service.h" 3131 #include "components/prefs/pref_service.h"
@@ -3158,8 +3134,8 @@
3158 #include "components/sync/driver/sync_service.h" 3134 #include "components/sync/driver/sync_service.h"
3159 #include "components/sync/driver/sync_user_settings.h" 3135 #include "components/sync/driver/sync_user_settings.h"
3160 3136
3161--- a/components/password_manager/core/browser/password_reuse_detector.cc 3137--- components/password_manager/core/browser/password_reuse_detector.cc.orig
3162+++ b/components/password_manager/core/browser/password_reuse_detector.cc 3138+++ components/password_manager/core/browser/password_reuse_detector.cc
3163@@ -15,7 +15,6 @@ 3139@@ -15,7 +15,6 @@
3164 #include "components/password_manager/core/browser/password_reuse_detector_consumer.h" 3140 #include "components/password_manager/core/browser/password_reuse_detector_consumer.h"
3165 #include "components/password_manager/core/browser/password_store_consumer.h" 3141 #include "components/password_manager/core/browser/password_store_consumer.h"
@@ -3168,7 +3144,7 @@
3168 #include "google_apis/gaia/gaia_auth_util.h" 3144 #include "google_apis/gaia/gaia_auth_util.h"
3169 #include "google_apis/gaia/gaia_urls.h" 3145 #include "google_apis/gaia/gaia_urls.h"
3170 #include "url/origin.h" 3146 #include "url/origin.h"
3171@@ -216,9 +215,7 @@ PasswordReuseDetector::CheckNonGaiaEnter 3147@@ -205,9 +204,7 @@ PasswordReuseDetector::CheckNonGaiaEnter
3172 // Skips password reuse check if |domain| matches enterprise login URL or 3148 // Skips password reuse check if |domain| matches enterprise login URL or
3173 // enterprise change password URL. 3149 // enterprise change password URL.
3174 GURL page_url(domain); 3150 GURL page_url(domain);
@@ -3179,8 +3155,8 @@
3179 return absl::nullopt; 3155 return absl::nullopt;
3180 } 3156 }
3181 3157
3182--- a/components/password_manager/core/browser/password_reuse_manager_impl.cc 3158--- components/password_manager/core/browser/password_reuse_manager_impl.cc.orig
3183+++ b/components/password_manager/core/browser/password_reuse_manager_impl.cc 3159+++ components/password_manager/core/browser/password_reuse_manager_impl.cc
3184@@ -9,7 +9,6 @@ 3160@@ -9,7 +9,6 @@
3185 #include "components/password_manager/core/browser/password_store_signin_notifier.h" 3161 #include "components/password_manager/core/browser/password_store_signin_notifier.h"
3186 #include "components/password_manager/core/common/password_manager_features.h" 3162 #include "components/password_manager/core/common/password_manager_features.h"
@@ -3189,7 +3165,7 @@
3189 3165
3190 namespace password_manager { 3166 namespace password_manager {
3191 3167
3192@@ -320,20 +319,6 @@ void PasswordReuseManagerImpl::ScheduleP 3168@@ -318,20 +317,6 @@ void PasswordReuseManagerImpl::ScheduleP
3193 3169
3194 void PasswordReuseManagerImpl::ScheduleEnterprisePasswordURLUpdate() { 3170 void PasswordReuseManagerImpl::ScheduleEnterprisePasswordURLUpdate() {
3195 DCHECK(main_task_runner_->RunsTasksInCurrentSequence()); 3171 DCHECK(main_task_runner_->RunsTasksInCurrentSequence());
@@ -3210,9 +3186,9 @@
3210 } 3186 }
3211 3187
3212 void PasswordReuseManagerImpl::OnGetPasswordStoreResults( 3188 void PasswordReuseManagerImpl::OnGetPasswordStoreResults(
3213--- a/components/password_manager/core/browser/password_store.cc 3189--- components/password_manager/core/browser/password_store.cc.orig
3214+++ b/components/password_manager/core/browser/password_store.cc 3190+++ components/password_manager/core/browser/password_store.cc
3215@@ -40,7 +40,6 @@ 3191@@ -39,7 +39,6 @@
3216 #include "components/password_manager/core/common/password_manager_features.h" 3192 #include "components/password_manager/core/common/password_manager_features.h"
3217 #include "components/password_manager/core/common/password_manager_pref_names.h" 3193 #include "components/password_manager/core/common/password_manager_pref_names.h"
3218 #include "components/prefs/pref_service.h" 3194 #include "components/prefs/pref_service.h"
@@ -3220,8 +3196,8 @@
3220 #include "components/sync/model/proxy_model_type_controller_delegate.h" 3196 #include "components/sync/model/proxy_model_type_controller_delegate.h"
3221 3197
3222 namespace password_manager { 3198 namespace password_manager {
3223--- a/components/password_manager/core/browser/password_sync_util.cc 3199--- components/password_manager/core/browser/password_sync_util.cc.orig
3224+++ b/components/password_manager/core/browser/password_sync_util.cc 3200+++ components/password_manager/core/browser/password_sync_util.cc
3225@@ -8,7 +8,6 @@ 3201@@ -8,7 +8,6 @@
3226 #include "build/build_config.h" 3202 #include "build/build_config.h"
3227 #include "components/password_manager/core/browser/password_form.h" 3203 #include "components/password_manager/core/browser/password_form.h"
@@ -3242,9 +3218,9 @@
3242 return false; 3218 return false;
3243 } 3219 }
3244 3220
3245--- a/components/password_manager/core/browser/sync_credentials_filter_unittest.cc 3221--- components/password_manager/core/browser/sync_credentials_filter_unittest.cc.orig
3246+++ b/components/password_manager/core/browser/sync_credentials_filter_unittest.cc 3222+++ components/password_manager/core/browser/sync_credentials_filter_unittest.cc
3247@@ -30,7 +30,6 @@ 3223@@ -29,7 +29,6 @@
3248 #include "components/password_manager/core/common/password_manager_features.h" 3224 #include "components/password_manager/core/common/password_manager_features.h"
3249 #include "components/prefs/pref_registry_simple.h" 3225 #include "components/prefs/pref_registry_simple.h"
3250 #include "components/prefs/testing_pref_service.h" 3226 #include "components/prefs/testing_pref_service.h"
@@ -3252,18 +3228,8 @@
3252 #include "testing/gtest/include/gtest/gtest.h" 3228 #include "testing/gtest/include/gtest/gtest.h"
3253 3229
3254 namespace password_manager { 3230 namespace password_manager {
3255--- a/components/reputation/core/safety_tips_config.cc 3231--- components/safe_browsing/content/browser/base_blocking_page.cc.orig
3256+++ b/components/reputation/core/safety_tips_config.cc 3232+++ components/safe_browsing/content/browser/base_blocking_page.cc
3257@@ -5,6 +5,7 @@
3258 #include "components/reputation/core/safety_tips_config.h"
3259
3260 #include "base/no_destructor.h"
3261+#include "base/notreached.h"
3262 #include "base/ranges/algorithm.h"
3263 #include "components/safe_browsing/core/browser/db/v4_protocol_manager_util.h"
3264 #include "third_party/re2/src/re2/re2.h"
3265--- a/components/safe_browsing/content/browser/base_blocking_page.cc
3266+++ b/components/safe_browsing/content/browser/base_blocking_page.cc
3267@@ -13,7 +13,6 @@ 3233@@ -13,7 +13,6 @@
3268 #include "base/time/time.h" 3234 #include "base/time/time.h"
3269 #include "components/safe_browsing/content/browser/safe_browsing_controller_client.h" 3235 #include "components/safe_browsing/content/browser/safe_browsing_controller_client.h"
@@ -3272,8 +3238,8 @@
3272 #include "components/security_interstitials/content/security_interstitial_controller_client.h" 3238 #include "components/security_interstitials/content/security_interstitial_controller_client.h"
3273 #include "components/security_interstitials/content/settings_page_helper.h" 3239 #include "components/security_interstitials/content/settings_page_helper.h"
3274 #include "components/security_interstitials/content/unsafe_resource_util.h" 3240 #include "components/security_interstitials/content/unsafe_resource_util.h"
3275--- a/components/safe_browsing/content/browser/client_side_detection_service.cc 3241--- components/safe_browsing/content/browser/client_side_detection_service.cc.orig
3276+++ b/components/safe_browsing/content/browser/client_side_detection_service.cc 3242+++ components/safe_browsing/content/browser/client_side_detection_service.cc
3277@@ -28,7 +28,6 @@ 3243@@ -28,7 +28,6 @@
3278 #include "components/safe_browsing/core/common/features.h" 3244 #include "components/safe_browsing/core/common/features.h"
3279 #include "components/safe_browsing/core/common/proto/client_model.pb.h" 3245 #include "components/safe_browsing/core/common/proto/client_model.pb.h"
@@ -3282,8 +3248,8 @@
3282 #include "components/safe_browsing/core/common/safebrowsing_constants.h" 3248 #include "components/safe_browsing/core/common/safebrowsing_constants.h"
3283 #include "components/safe_browsing/core/common/utils.h" 3249 #include "components/safe_browsing/core/common/utils.h"
3284 #include "content/public/browser/browser_task_traits.h" 3250 #include "content/public/browser/browser_task_traits.h"
3285--- a/components/safe_browsing/content/browser/safe_browsing_navigation_observer_manager.cc 3251--- components/safe_browsing/content/browser/safe_browsing_navigation_observer_manager.cc.orig
3286+++ b/components/safe_browsing/content/browser/safe_browsing_navigation_observer_manager.cc 3252+++ components/safe_browsing/content/browser/safe_browsing_navigation_observer_manager.cc
3287@@ -20,7 +20,6 @@ 3253@@ -20,7 +20,6 @@
3288 #include "components/safe_browsing/content/browser/safe_browsing_navigation_observer_manager_util.h" 3254 #include "components/safe_browsing/content/browser/safe_browsing_navigation_observer_manager_util.h"
3289 #include "components/safe_browsing/content/browser/web_ui/safe_browsing_ui.h" 3255 #include "components/safe_browsing/content/browser/web_ui/safe_browsing_ui.h"
@@ -3301,8 +3267,8 @@
3301 } 3267 }
3302 3268
3303 // static 3269 // static
3304--- a/components/safe_browsing/content/browser/triggers/suspicious_site_trigger_unittest.cc 3270--- components/safe_browsing/content/browser/triggers/suspicious_site_trigger_unittest.cc.orig
3305+++ b/components/safe_browsing/content/browser/triggers/suspicious_site_trigger_unittest.cc 3271+++ components/safe_browsing/content/browser/triggers/suspicious_site_trigger_unittest.cc
3306@@ -11,7 +11,6 @@ 3272@@ -11,7 +11,6 @@
3307 #include "build/build_config.h" 3273 #include "build/build_config.h"
3308 #include "components/prefs/testing_pref_service.h" 3274 #include "components/prefs/testing_pref_service.h"
@@ -3311,8 +3277,8 @@
3311 #include "content/public/test/browser_task_environment.h" 3277 #include "content/public/test/browser_task_environment.h"
3312 #include "content/public/test/navigation_simulator.h" 3278 #include "content/public/test/navigation_simulator.h"
3313 #include "content/public/test/test_renderer_host.h" 3279 #include "content/public/test/test_renderer_host.h"
3314--- a/components/safe_browsing/content/browser/triggers/trigger_manager.cc 3280--- components/safe_browsing/content/browser/triggers/trigger_manager.cc.orig
3315+++ b/components/safe_browsing/content/browser/triggers/trigger_manager.cc 3281+++ components/safe_browsing/content/browser/triggers/trigger_manager.cc
3316@@ -12,7 +12,6 @@ 3282@@ -12,7 +12,6 @@
3317 #include "components/safe_browsing/content/browser/base_ui_manager.h" 3283 #include "components/safe_browsing/content/browser/base_ui_manager.h"
3318 #include "components/safe_browsing/content/browser/threat_details.h" 3284 #include "components/safe_browsing/content/browser/threat_details.h"
@@ -3344,14 +3310,14 @@
3344 /*help_center_article_link=*/std::string()); 3310 /*help_center_article_link=*/std::string());
3345 } 3311 }
3346 3312
3347--- a/components/safe_browsing/content/browser/triggers/trigger_throttler.cc 3313--- components/safe_browsing/content/browser/triggers/trigger_throttler.cc.orig
3348+++ b/components/safe_browsing/content/browser/triggers/trigger_throttler.cc 3314+++ components/safe_browsing/content/browser/triggers/trigger_throttler.cc
3349@@ -197,28 +197,6 @@ void TriggerThrottler::LoadTriggerEvents 3315@@ -197,28 +197,6 @@ void TriggerThrottler::LoadTriggerEvents
3350 trigger_events_.clear(); 3316 trigger_events_.clear();
3351 if (!local_state_prefs_) 3317 if (!local_state_prefs_)
3352 return; 3318 return;
3353- 3319-
3354- const base::Value* event_dict = local_state_prefs_->GetDictionary( 3320- const base::DictionaryValue* event_dict = local_state_prefs_->GetDictionary(
3355- prefs::kSafeBrowsingTriggerEventTimestamps); 3321- prefs::kSafeBrowsingTriggerEventTimestamps);
3356- for (auto trigger_pair : event_dict->DictItems()) { 3322- for (auto trigger_pair : event_dict->DictItems()) {
3357- // Check that the first item in the pair is convertible to a trigger type 3323- // Check that the first item in the pair is convertible to a trigger type
@@ -3366,7 +3332,7 @@
3366- continue; 3332- continue;
3367- 3333-
3368- const TriggerType trigger_type = static_cast<TriggerType>(trigger_type_int); 3334- const TriggerType trigger_type = static_cast<TriggerType>(trigger_type_int);
3369- for (const auto& timestamp : trigger_pair.second.GetListDeprecated()) { 3335- for (const auto& timestamp : trigger_pair.second.GetList()) {
3370- if (timestamp.is_double()) 3336- if (timestamp.is_double())
3371- trigger_events_[trigger_type].push_back( 3337- trigger_events_[trigger_type].push_back(
3372- base::Time::FromDoubleT(timestamp.GetDouble())); 3338- base::Time::FromDoubleT(timestamp.GetDouble()));
@@ -3385,8 +3351,8 @@
3385 } 3351 }
3386 3352
3387 size_t TriggerThrottler::GetDailyQuotaForTrigger( 3353 size_t TriggerThrottler::GetDailyQuotaForTrigger(
3388--- a/components/safe_browsing/content/browser/triggers/trigger_throttler_unittest.cc 3354--- components/safe_browsing/content/browser/triggers/trigger_throttler_unittest.cc.orig
3389+++ b/components/safe_browsing/content/browser/triggers/trigger_throttler_unittest.cc 3355+++ components/safe_browsing/content/browser/triggers/trigger_throttler_unittest.cc
3390@@ -9,7 +9,6 @@ 3356@@ -9,7 +9,6 @@
3391 #include "base/test/simple_test_clock.h" 3357 #include "base/test/simple_test_clock.h"
3392 #include "components/prefs/testing_pref_service.h" 3358 #include "components/prefs/testing_pref_service.h"
@@ -3395,9 +3361,9 @@
3395 #include "testing/gmock/include/gmock/gmock.h" 3361 #include "testing/gmock/include/gmock/gmock.h"
3396 #include "testing/gtest/include/gtest/gtest.h" 3362 #include "testing/gtest/include/gtest/gtest.h"
3397 3363
3398--- a/components/safe_browsing/content/browser/ui_manager.cc 3364--- components/safe_browsing/content/browser/ui_manager.cc.orig
3399+++ b/components/safe_browsing/content/browser/ui_manager.cc 3365+++ components/safe_browsing/content/browser/ui_manager.cc
3400@@ -16,7 +16,6 @@ 3366@@ -18,7 +18,6 @@
3401 #include "components/safe_browsing/core/browser/db/v4_protocol_manager_util.h" 3367 #include "components/safe_browsing/core/browser/db/v4_protocol_manager_util.h"
3402 #include "components/safe_browsing/core/browser/ping_manager.h" 3368 #include "components/safe_browsing/core/browser/ping_manager.h"
3403 #include "components/safe_browsing/core/common/features.h" 3369 #include "components/safe_browsing/core/common/features.h"
@@ -3405,9 +3371,9 @@
3405 #include "components/security_interstitials/content/security_interstitial_tab_helper.h" 3371 #include "components/security_interstitials/content/security_interstitial_tab_helper.h"
3406 #include "components/security_interstitials/content/unsafe_resource_util.h" 3372 #include "components/security_interstitials/content/unsafe_resource_util.h"
3407 #include "components/security_interstitials/core/unsafe_resource.h" 3373 #include "components/security_interstitials/core/unsafe_resource.h"
3408--- a/components/safe_browsing/content/browser/ui_manager_unittest.cc 3374--- components/safe_browsing/content/browser/ui_manager_unittest.cc.orig
3409+++ b/components/safe_browsing/content/browser/ui_manager_unittest.cc 3375+++ components/safe_browsing/content/browser/ui_manager_unittest.cc
3410@@ -15,7 +15,6 @@ 3376@@ -14,7 +14,6 @@
3411 #include "components/safe_browsing/content/browser/safe_browsing_controller_client.h" 3377 #include "components/safe_browsing/content/browser/safe_browsing_controller_client.h"
3412 #include "components/safe_browsing/content/browser/ui_manager.h" 3378 #include "components/safe_browsing/content/browser/ui_manager.h"
3413 #include "components/safe_browsing/core/browser/db/util.h" 3379 #include "components/safe_browsing/core/browser/db/util.h"
@@ -3415,8 +3381,8 @@
3415 #include "components/security_interstitials/content/security_interstitial_controller_client.h" 3381 #include "components/security_interstitials/content/security_interstitial_controller_client.h"
3416 #include "components/security_interstitials/content/settings_page_helper.h" 3382 #include "components/security_interstitials/content/settings_page_helper.h"
3417 #include "components/security_interstitials/content/unsafe_resource_util.h" 3383 #include "components/security_interstitials/content/unsafe_resource_util.h"
3418--- a/components/safe_browsing/content/browser/web_ui/safe_browsing_ui.cc 3384--- components/safe_browsing/content/browser/web_ui/safe_browsing_ui.cc.orig
3419+++ b/components/safe_browsing/content/browser/web_ui/safe_browsing_ui.cc 3385+++ components/safe_browsing/content/browser/web_ui/safe_browsing_ui.cc
3420@@ -32,7 +32,6 @@ 3386@@ -32,7 +32,6 @@
3421 #include "components/safe_browsing/core/browser/referrer_chain_provider.h" 3387 #include "components/safe_browsing/core/browser/referrer_chain_provider.h"
3422 #include "components/safe_browsing/core/common/features.h" 3388 #include "components/safe_browsing/core/common/features.h"
@@ -3425,28 +3391,28 @@
3425 #include "services/network/public/mojom/cookie_manager.mojom.h" 3391 #include "services/network/public/mojom/cookie_manager.mojom.h"
3426 #if BUILDFLAG(FULL_SAFE_BROWSING) 3392 #if BUILDFLAG(FULL_SAFE_BROWSING)
3427 #include "components/enterprise/common/proto/connectors.pb.h" 3393 #include "components/enterprise/common/proto/connectors.pb.h"
3428@@ -2043,18 +2042,13 @@ void SafeBrowsingUIHandler::GetPrefs(con 3394@@ -2035,18 +2034,13 @@ void SafeBrowsingUIHandler::GetPrefs(con
3429 AllowJavascript(); 3395 AllowJavascript();
3430 DCHECK(!args.empty()); 3396 DCHECK(!args->GetList().empty());
3431 std::string callback_id = args[0].GetString(); 3397 std::string callback_id = args->GetList()[0].GetString();
3432- ResolveJavascriptCallback(base::Value(callback_id), 3398- ResolveJavascriptCallback(base::Value(callback_id),
3433- safe_browsing::GetSafeBrowsingPreferencesList( 3399- safe_browsing::GetSafeBrowsingPreferencesList(
3434- user_prefs::UserPrefs::Get(browser_context_))); 3400- user_prefs::UserPrefs::Get(browser_context_)));
3435+ ResolveJavascriptCallback(base::Value(callback_id), base::ListValue()); 3401+ ResolveJavascriptCallback(base::Value(callback_id), base::ListValue());
3436 } 3402 }
3437 3403
3438 void SafeBrowsingUIHandler::GetPolicies(const base::Value::ConstListView args) { 3404 void SafeBrowsingUIHandler::GetPolicies(const base::ListValue* args) {
3439 AllowJavascript(); 3405 AllowJavascript();
3440 DCHECK(!args.empty()); 3406 DCHECK(!args->GetList().empty());
3441 std::string callback_id = args[0].GetString(); 3407 std::string callback_id = args->GetList()[0].GetString();
3442- ResolveJavascriptCallback(base::Value(callback_id), 3408- ResolveJavascriptCallback(base::Value(callback_id),
3443- safe_browsing::GetSafeBrowsingPoliciesList( 3409- safe_browsing::GetSafeBrowsingPoliciesList(
3444- user_prefs::UserPrefs::Get(browser_context_))); 3410- user_prefs::UserPrefs::Get(browser_context_)));
3445 } 3411 }
3446 3412
3447 void SafeBrowsingUIHandler::GetCookie(const base::Value::ConstListView args) { 3413 void SafeBrowsingUIHandler::GetCookie(const base::ListValue* args) {
3448--- a/components/safe_browsing/core/browser/db/hit_report.h 3414--- components/safe_browsing/core/browser/db/hit_report.h.orig
3449+++ b/components/safe_browsing/core/browser/db/hit_report.h 3415+++ components/safe_browsing/core/browser/db/hit_report.h
3450@@ -8,7 +8,6 @@ 3416@@ -8,7 +8,6 @@
3451 #define COMPONENTS_SAFE_BROWSING_CORE_BROWSER_DB_HIT_REPORT_H_ 3417 #define COMPONENTS_SAFE_BROWSING_CORE_BROWSER_DB_HIT_REPORT_H_
3452 3418
@@ -3463,8 +3429,8 @@
3463 bool is_enhanced_protection = false; 3429 bool is_enhanced_protection = false;
3464 bool is_metrics_reporting_active; 3430 bool is_metrics_reporting_active;
3465 3431
3466--- a/components/safe_browsing/core/browser/db/util.h 3432--- components/safe_browsing/core/browser/db/util.h.orig
3467+++ b/components/safe_browsing/core/browser/db/util.h 3433+++ components/safe_browsing/core/browser/db/util.h
3468@@ -18,7 +18,6 @@ 3434@@ -18,7 +18,6 @@
3469 #include "base/strings/string_piece.h" 3435 #include "base/strings/string_piece.h"
3470 #include "base/trace_event/traced_value.h" 3436 #include "base/trace_event/traced_value.h"
@@ -3473,9 +3439,9 @@
3473 3439
3474 namespace safe_browsing { 3440 namespace safe_browsing {
3475 3441
3476--- a/components/safe_browsing/core/browser/db/v4_local_database_manager.cc 3442--- components/safe_browsing/core/browser/db/v4_local_database_manager.cc.orig
3477+++ b/components/safe_browsing/core/browser/db/v4_local_database_manager.cc 3443+++ components/safe_browsing/core/browser/db/v4_local_database_manager.cc
3478@@ -334,10 +334,9 @@ const V4LocalDatabaseManager* 3444@@ -337,10 +337,9 @@ const V4LocalDatabaseManager*
3479 scoped_refptr<V4LocalDatabaseManager> V4LocalDatabaseManager::Create( 3445 scoped_refptr<V4LocalDatabaseManager> V4LocalDatabaseManager::Create(
3480 const base::FilePath& base_path, 3446 const base::FilePath& base_path,
3481 scoped_refptr<base::SequencedTaskRunner> ui_task_runner, 3447 scoped_refptr<base::SequencedTaskRunner> ui_task_runner,
@@ -3488,7 +3454,7 @@
3488 std::move(io_task_runner), nullptr)); 3454 std::move(io_task_runner), nullptr));
3489 } 3455 }
3490 3456
3491@@ -360,14 +359,12 @@ void V4LocalDatabaseManager::CollectData 3457@@ -363,14 +362,12 @@ void V4LocalDatabaseManager::CollectData
3492 3458
3493 V4LocalDatabaseManager::V4LocalDatabaseManager( 3459 V4LocalDatabaseManager::V4LocalDatabaseManager(
3494 const base::FilePath& base_path, 3460 const base::FilePath& base_path,
@@ -3503,7 +3469,7 @@
3503 list_infos_(GetListInfos()), 3469 list_infos_(GetListInfos()),
3504 task_runner_(task_runner_for_tests 3470 task_runner_(task_runner_for_tests
3505 ? task_runner_for_tests 3471 ? task_runner_for_tests
3506@@ -1119,8 +1116,7 @@ void V4LocalDatabaseManager::SetupUpdate 3472@@ -1137,8 +1134,7 @@ void V4LocalDatabaseManager::SetupUpdate
3507 weak_factory_.GetWeakPtr()); 3473 weak_factory_.GetWeakPtr());
3508 3474
3509 v4_update_protocol_manager_ = V4UpdateProtocolManager::Create( 3475 v4_update_protocol_manager_ = V4UpdateProtocolManager::Create(
@@ -3513,9 +3479,9 @@
3513 } 3479 }
3514 3480
3515 void V4LocalDatabaseManager::UpdateRequestCompleted( 3481 void V4LocalDatabaseManager::UpdateRequestCompleted(
3516--- a/components/safe_browsing/core/browser/db/v4_local_database_manager.h 3482--- components/safe_browsing/core/browser/db/v4_local_database_manager.h.orig
3517+++ b/components/safe_browsing/core/browser/db/v4_local_database_manager.h 3483+++ components/safe_browsing/core/browser/db/v4_local_database_manager.h
3518@@ -38,8 +38,7 @@ class V4LocalDatabaseManager : public Sa 3484@@ -37,8 +37,7 @@ class V4LocalDatabaseManager : public Sa
3519 static scoped_refptr<V4LocalDatabaseManager> Create( 3485 static scoped_refptr<V4LocalDatabaseManager> Create(
3520 const base::FilePath& base_path, 3486 const base::FilePath& base_path,
3521 scoped_refptr<base::SequencedTaskRunner> ui_task_runner, 3487 scoped_refptr<base::SequencedTaskRunner> ui_task_runner,
@@ -3544,8 +3510,8 @@
3544 // The client_state of each list currently being synced. This is updated each 3510 // The client_state of each list currently being synced. This is updated each
3545 // time a database update completes, and used to send list client_state 3511 // time a database update completes, and used to send list client_state
3546 // information in the full hash request. 3512 // information in the full hash request.
3547--- a/components/safe_browsing/core/browser/db/v4_protocol_manager_util.cc 3513--- components/safe_browsing/core/browser/db/v4_protocol_manager_util.cc.orig
3548+++ b/components/safe_browsing/core/browser/db/v4_protocol_manager_util.cc 3514+++ components/safe_browsing/core/browser/db/v4_protocol_manager_util.cc
3549@@ -88,7 +88,6 @@ void SetSbV4UrlPrefixForTesting(const ch 3515@@ -88,7 +88,6 @@ void SetSbV4UrlPrefixForTesting(const ch
3550 3516
3551 std::string GetReportUrl(const V4ProtocolConfig& config, 3517 std::string GetReportUrl(const V4ProtocolConfig& config,
@@ -3563,8 +3529,8 @@
3563 if (is_enhanced_protection) 3529 if (is_enhanced_protection)
3564 url.append(base::StringPrintf("&enh=%d", is_enhanced_protection)); 3530 url.append(base::StringPrintf("&enh=%d", is_enhanced_protection));
3565 return url; 3531 return url;
3566--- a/components/safe_browsing/core/browser/db/v4_protocol_manager_util.h 3532--- components/safe_browsing/core/browser/db/v4_protocol_manager_util.h.orig
3567+++ b/components/safe_browsing/core/browser/db/v4_protocol_manager_util.h 3533+++ components/safe_browsing/core/browser/db/v4_protocol_manager_util.h
3568@@ -18,10 +18,11 @@ 3534@@ -18,10 +18,11 @@
3569 #include <vector> 3535 #include <vector>
3570 3536
@@ -3586,8 +3552,8 @@
3586 const bool is_enhanced_protection = false); 3552 const bool is_enhanced_protection = false);
3587 3553
3588 // Different types of threats that SafeBrowsing protects against. This is the 3554 // Different types of threats that SafeBrowsing protects against. This is the
3589--- a/components/safe_browsing/core/browser/db/v4_update_protocol_manager.cc 3555--- components/safe_browsing/core/browser/db/v4_update_protocol_manager.cc.orig
3590+++ b/components/safe_browsing/core/browser/db/v4_update_protocol_manager.cc 3556+++ components/safe_browsing/core/browser/db/v4_update_protocol_manager.cc
3591@@ -78,19 +78,8 @@ static const int kV4TimerStartIntervalSe 3557@@ -78,19 +78,8 @@ static const int kV4TimerStartIntervalSe
3592 // Maximum time, in seconds, to wait for a response to an update request. 3558 // Maximum time, in seconds, to wait for a response to an update request.
3593 static const int kV4TimerUpdateWaitSecMax = 15 * 60; // 15 minutes 3559 static const int kV4TimerUpdateWaitSecMax = 15 * 60; // 15 minutes
@@ -3674,9 +3640,9 @@
3674 V4ProtocolManagerUtil::SetClientInfoFromConfig(request.mutable_client(), 3640 V4ProtocolManagerUtil::SetClientInfoFromConfig(request.mutable_client(),
3675 config_); 3641 config_);
3676 3642
3677--- a/components/safe_browsing/core/browser/db/v4_update_protocol_manager.h 3643--- components/safe_browsing/core/browser/db/v4_update_protocol_manager.h.orig
3678+++ b/components/safe_browsing/core/browser/db/v4_update_protocol_manager.h 3644+++ components/safe_browsing/core/browser/db/v4_update_protocol_manager.h
3679@@ -23,7 +23,6 @@ 3645@@ -24,7 +24,6 @@
3680 #include "components/safe_browsing/core/browser/db/util.h" 3646 #include "components/safe_browsing/core/browser/db/util.h"
3681 #include "components/safe_browsing/core/browser/db/v4_protocol_manager_util.h" 3647 #include "components/safe_browsing/core/browser/db/v4_protocol_manager_util.h"
3682 #include "components/safe_browsing/core/common/proto/webui.pb.h" 3648 #include "components/safe_browsing/core/common/proto/webui.pb.h"
@@ -3684,7 +3650,7 @@
3684 #include "third_party/abseil-cpp/absl/types/optional.h" 3650 #include "third_party/abseil-cpp/absl/types/optional.h"
3685 3651
3686 class GURL; 3652 class GURL;
3687@@ -44,9 +43,6 @@ class V4UpdateProtocolManagerFactory; 3653@@ -45,9 +44,6 @@ class V4UpdateProtocolManagerFactory;
3688 using V4UpdateCallback = 3654 using V4UpdateCallback =
3689 base::RepeatingCallback<void(std::unique_ptr<ParsedServerResponse>)>; 3655 base::RepeatingCallback<void(std::unique_ptr<ParsedServerResponse>)>;
3690 3656
@@ -3694,7 +3660,7 @@
3694 class V4UpdateProtocolManager { 3660 class V4UpdateProtocolManager {
3695 public: 3661 public:
3696 V4UpdateProtocolManager(const V4UpdateProtocolManager&) = delete; 3662 V4UpdateProtocolManager(const V4UpdateProtocolManager&) = delete;
3697@@ -64,8 +60,7 @@ class V4UpdateProtocolManager { 3663@@ -65,8 +61,7 @@ class V4UpdateProtocolManager {
3698 static std::unique_ptr<V4UpdateProtocolManager> Create( 3664 static std::unique_ptr<V4UpdateProtocolManager> Create(
3699 scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory, 3665 scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory,
3700 const V4ProtocolConfig& config, 3666 const V4ProtocolConfig& config,
@@ -3704,7 +3670,7 @@
3704 3670
3705 void OnURLLoaderComplete(std::unique_ptr<std::string> response_body); 3671 void OnURLLoaderComplete(std::unique_ptr<std::string> response_body);
3706 3672
3707@@ -87,8 +82,7 @@ class V4UpdateProtocolManager { 3673@@ -88,8 +83,7 @@ class V4UpdateProtocolManager {
3708 V4UpdateProtocolManager( 3674 V4UpdateProtocolManager(
3709 scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory, 3675 scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory,
3710 const V4ProtocolConfig& config, 3676 const V4ProtocolConfig& config,
@@ -3714,7 +3680,7 @@
3714 3680
3715 private: 3681 private:
3716 FRIEND_TEST_ALL_PREFIXES(V4UpdateProtocolManagerTest, 3682 FRIEND_TEST_ALL_PREFIXES(V4UpdateProtocolManagerTest,
3717@@ -206,8 +200,6 @@ class V4UpdateProtocolManager { 3683@@ -207,8 +201,6 @@ class V4UpdateProtocolManager {
3718 // complete. 3684 // complete.
3719 base::OneShotTimer timeout_timer_; 3685 base::OneShotTimer timeout_timer_;
3720 3686
@@ -3723,7 +3689,7 @@
3723 SEQUENCE_CHECKER(sequence_checker_); 3689 SEQUENCE_CHECKER(sequence_checker_);
3724 }; 3690 };
3725 3691
3726@@ -225,8 +217,7 @@ class V4UpdateProtocolManagerFactory { 3692@@ -226,8 +218,7 @@ class V4UpdateProtocolManagerFactory {
3727 virtual std::unique_ptr<V4UpdateProtocolManager> CreateProtocolManager( 3693 virtual std::unique_ptr<V4UpdateProtocolManager> CreateProtocolManager(
3728 scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory, 3694 scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory,
3729 const V4ProtocolConfig& config, 3695 const V4ProtocolConfig& config,
@@ -3733,8 +3699,8 @@
3733 }; 3699 };
3734 3700
3735 } // namespace safe_browsing 3701 } // namespace safe_browsing
3736--- a/components/safe_browsing/core/browser/password_protection/password_protection_service_base.h 3702--- components/safe_browsing/core/browser/password_protection/password_protection_service_base.h.orig
3737+++ b/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
3738@@ -28,7 +28,6 @@ 3704@@ -28,7 +28,6 @@
3739 #include "components/safe_browsing/core/browser/safe_browsing_metrics_collector.h" 3705 #include "components/safe_browsing/core/browser/safe_browsing_metrics_collector.h"
3740 #include "components/safe_browsing/core/browser/safe_browsing_token_fetcher.h" 3706 #include "components/safe_browsing/core/browser/safe_browsing_token_fetcher.h"
@@ -3754,9 +3720,9 @@
3754 // If |url| matches Safe Browsing allowlist domains, password protection 3720 // If |url| matches Safe Browsing allowlist domains, password protection
3755 // change password URL, or password protection login URLs in the enterprise 3721 // change password URL, or password protection login URLs in the enterprise
3756 // policy. 3722 // policy.
3757--- a/components/safe_browsing/core/browser/ping_manager.cc 3723--- components/safe_browsing/core/browser/ping_manager.cc.orig
3758+++ b/components/safe_browsing/core/browser/ping_manager.cc 3724+++ components/safe_browsing/core/browser/ping_manager.cc
3759@@ -173,7 +173,7 @@ GURL PingManager::SafeBrowsingHitUrl( 3725@@ -141,7 +141,7 @@ GURL PingManager::SafeBrowsingHitUrl(
3760 hit_report.threat_type == SB_THREAT_TYPE_URL_CLIENT_SIDE_PHISHING || 3726 hit_report.threat_type == SB_THREAT_TYPE_URL_CLIENT_SIDE_PHISHING ||
3761 hit_report.threat_type == SB_THREAT_TYPE_URL_CLIENT_SIDE_MALWARE); 3727 hit_report.threat_type == SB_THREAT_TYPE_URL_CLIENT_SIDE_MALWARE);
3762 std::string url = 3728 std::string url =
@@ -3765,8 +3731,8 @@
3765 hit_report.is_enhanced_protection); 3731 hit_report.is_enhanced_protection);
3766 std::string threat_list = "none"; 3732 std::string threat_list = "none";
3767 switch (hit_report.threat_type) { 3733 switch (hit_report.threat_type) {
3768--- a/components/safe_browsing/core/browser/realtime/policy_engine.cc 3734--- components/safe_browsing/core/browser/realtime/policy_engine.cc.orig
3769+++ b/components/safe_browsing/core/browser/realtime/policy_engine.cc 3735+++ components/safe_browsing/core/browser/realtime/policy_engine.cc
3770@@ -8,7 +8,6 @@ 3736@@ -8,7 +8,6 @@
3771 #include "base/metrics/histogram_macros.h" 3737 #include "base/metrics/histogram_macros.h"
3772 #include "build/build_config.h" 3738 #include "build/build_config.h"
@@ -3775,7 +3741,7 @@
3775 #include "components/safe_browsing/core/common/utils.h" 3741 #include "components/safe_browsing/core/common/utils.h"
3776 #include "components/unified_consent/pref_names.h" 3742 #include "components/unified_consent/pref_names.h"
3777 #include "components/user_prefs/user_prefs.h" 3743 #include "components/user_prefs/user_prefs.h"
3778@@ -36,7 +35,7 @@ bool RealTimePolicyEngine::IsUserMbbOpte 3744@@ -35,7 +34,7 @@ bool RealTimePolicyEngine::IsUserMbbOpte
3779 3745
3780 // static 3746 // static
3781 bool RealTimePolicyEngine::IsUserEpOptedIn(PrefService* pref_service) { 3747 bool RealTimePolicyEngine::IsUserEpOptedIn(PrefService* pref_service) {
@@ -3784,7 +3750,7 @@
3784 } 3750 }
3785 3751
3786 // static 3752 // static
3787@@ -82,9 +81,7 @@ bool RealTimePolicyEngine::CanPerformEnt 3753@@ -81,9 +80,7 @@ bool RealTimePolicyEngine::CanPerformEnt
3788 return false; 3754 return false;
3789 } 3755 }
3790 3756
@@ -3795,9 +3761,9 @@
3795 } 3761 }
3796 3762
3797 // static 3763 // static
3798--- a/components/safe_browsing/core/browser/realtime/url_lookup_service.cc 3764--- components/safe_browsing/core/browser/realtime/url_lookup_service.cc.orig
3799+++ b/components/safe_browsing/core/browser/realtime/url_lookup_service.cc 3765+++ components/safe_browsing/core/browser/realtime/url_lookup_service.cc
3800@@ -20,7 +20,6 @@ 3766@@ -19,7 +19,6 @@
3801 #include "components/safe_browsing/core/browser/referrer_chain_provider.h" 3767 #include "components/safe_browsing/core/browser/referrer_chain_provider.h"
3802 #include "components/safe_browsing/core/browser/safe_browsing_token_fetcher.h" 3768 #include "components/safe_browsing/core/browser/safe_browsing_token_fetcher.h"
3803 #include "components/safe_browsing/core/common/features.h" 3769 #include "components/safe_browsing/core/common/features.h"
@@ -3805,7 +3771,7 @@
3805 #include "components/unified_consent/pref_names.h" 3771 #include "components/unified_consent/pref_names.h"
3806 #include "net/base/ip_address.h" 3772 #include "net/base/ip_address.h"
3807 #include "net/base/load_flags.h" 3773 #include "net/base/load_flags.h"
3808@@ -63,10 +62,6 @@ RealTimeUrlLookupService::RealTimeUrlLoo 3774@@ -61,10 +60,6 @@ RealTimeUrlLookupService::RealTimeUrlLoo
3809 variations_(variations_service) { 3775 variations_(variations_service) {
3810 pref_change_registrar_.Init(pref_service_); 3776 pref_change_registrar_.Init(pref_service_);
3811 pref_change_registrar_.Add( 3777 pref_change_registrar_.Add(
@@ -3816,7 +3782,7 @@
3816 unified_consent::prefs::kUrlKeyedAnonymizedDataCollectionEnabled, 3782 unified_consent::prefs::kUrlKeyedAnonymizedDataCollectionEnabled,
3817 base::BindRepeating(&RealTimeUrlLookupService::OnPrefChanged, 3783 base::BindRepeating(&RealTimeUrlLookupService::OnPrefChanged,
3818 base::Unretained(this))); 3784 base::Unretained(this)));
3819@@ -140,7 +135,7 @@ bool RealTimeUrlLookupService::CanSendPa 3785@@ -144,7 +139,7 @@ bool RealTimeUrlLookupService::CanSendPa
3820 } 3786 }
3821 3787
3822 bool RealTimeUrlLookupService::CanCheckSubresourceURL() const { 3788 bool RealTimeUrlLookupService::CanCheckSubresourceURL() const {
@@ -3825,35 +3791,22 @@
3825 } 3791 }
3826 3792
3827 bool RealTimeUrlLookupService::CanCheckSafeBrowsingDb() const { 3793 bool RealTimeUrlLookupService::CanCheckSafeBrowsingDb() const {
3828@@ -150,11 +145,7 @@ bool RealTimeUrlLookupService::CanCheckS 3794--- components/safe_browsing/core/browser/realtime/url_lookup_service_base.cc.orig
3829 } 3795+++ components/safe_browsing/core/browser/realtime/url_lookup_service_base.cc
3830 3796@@ -16,7 +16,6 @@
3831 bool RealTimeUrlLookupService::CanSendRTSampleRequest() const { 3797 #include "components/prefs/pref_service.h"
3832- return IsExtendedReportingEnabled(*pref_service_) &&
3833- base::FeatureList::IsEnabled(
3834- safe_browsing::kSendSampledPingsForProtegoAllowlistDomains) &&
3835- (bypass_protego_probability_for_tests_ ||
3836- base::RandDouble() <= kProbabilityForSendingSampledRequests);
3837+ return false;
3838 }
3839
3840 void RealTimeUrlLookupService::Shutdown() {
3841--- a/components/safe_browsing/core/browser/realtime/url_lookup_service_base.cc
3842+++ b/components/safe_browsing/core/browser/realtime/url_lookup_service_base.cc
3843@@ -17,7 +17,6 @@
3844 #include "components/safe_browsing/core/browser/referrer_chain_provider.h" 3798 #include "components/safe_browsing/core/browser/referrer_chain_provider.h"
3845 #include "components/safe_browsing/core/browser/verdict_cache_manager.h" 3799 #include "components/safe_browsing/core/browser/verdict_cache_manager.h"
3846 #include "components/safe_browsing/core/common/features.h"
3847-#include "components/safe_browsing/core/common/safe_browsing_prefs.h" 3800-#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
3848 #include "components/safe_browsing/core/common/safebrowsing_constants.h" 3801 #include "components/safe_browsing/core/common/safebrowsing_constants.h"
3849 #include "components/safe_browsing/core/common/utils.h" 3802 #include "components/safe_browsing/core/common/utils.h"
3850 #include "net/base/ip_address.h" 3803 #include "net/base/ip_address.h"
3851--- a/components/safe_browsing/core/browser/safe_browsing_metrics_collector.cc 3804--- components/safe_browsing/core/browser/safe_browsing_metrics_collector.cc.orig
3852+++ b/components/safe_browsing/core/browser/safe_browsing_metrics_collector.cc 3805+++ components/safe_browsing/core/browser/safe_browsing_metrics_collector.cc
3853@@ -12,13 +12,11 @@ 3806@@ -11,13 +11,11 @@
3807 #include "base/time/time.h"
3854 #include "components/prefs/pref_service.h" 3808 #include "components/prefs/pref_service.h"
3855 #include "components/prefs/scoped_user_pref_update.h" 3809 #include "components/prefs/scoped_user_pref_update.h"
3856 #include "components/safe_browsing/core/browser/db/hit_report.h"
3857-#include "components/safe_browsing/core/common/safe_browsing_prefs.h" 3810-#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
3858 3811
3859 namespace { 3812 namespace {
@@ -3864,7 +3817,7 @@
3864 3817
3865 const int kMetricsLoggingIntervalDay = 1; 3818 const int kMetricsLoggingIntervalDay = 1;
3866 3819
3867@@ -59,11 +57,6 @@ SafeBrowsingMetricsCollector::SafeBrowsi 3820@@ -54,11 +52,6 @@ SafeBrowsingMetricsCollector::SafeBrowsi
3868 PrefService* pref_service) 3821 PrefService* pref_service)
3869 : pref_service_(pref_service) { 3822 : pref_service_(pref_service) {
3870 pref_change_registrar_.Init(pref_service_); 3823 pref_change_registrar_.Init(pref_service_);
@@ -3876,7 +3829,7 @@
3876 } 3829 }
3877 3830
3878 void SafeBrowsingMetricsCollector::Shutdown() { 3831 void SafeBrowsingMetricsCollector::Shutdown() {
3879@@ -71,16 +64,6 @@ void SafeBrowsingMetricsCollector::Shutd 3832@@ -66,16 +59,6 @@ void SafeBrowsingMetricsCollector::Shutd
3880 } 3833 }
3881 3834
3882 void SafeBrowsingMetricsCollector::StartLogging() { 3835 void SafeBrowsingMetricsCollector::StartLogging() {
@@ -3893,7 +3846,7 @@
3893 } 3846 }
3894 3847
3895 void SafeBrowsingMetricsCollector::LogMetricsAndScheduleNextLogging() { 3848 void SafeBrowsingMetricsCollector::LogMetricsAndScheduleNextLogging() {
3896@@ -88,9 +71,6 @@ void SafeBrowsingMetricsCollector::LogMe 3849@@ -83,9 +66,6 @@ void SafeBrowsingMetricsCollector::LogMe
3897 LogDailyEventMetrics(); 3850 LogDailyEventMetrics();
3898 RemoveOldEventsFromPref(); 3851 RemoveOldEventsFromPref();
3899 3852
@@ -3903,7 +3856,7 @@
3903 ScheduleNextLoggingAfterInterval(base::Days(kMetricsLoggingIntervalDay)); 3856 ScheduleNextLoggingAfterInterval(base::Days(kMetricsLoggingIntervalDay));
3904 } 3857 }
3905 3858
3906@@ -103,87 +83,16 @@ void SafeBrowsingMetricsCollector::Sched 3859@@ -98,181 +78,40 @@ void SafeBrowsingMetricsCollector::Sched
3907 } 3860 }
3908 3861
3909 void SafeBrowsingMetricsCollector::LogDailyOptInMetrics() { 3862 void SafeBrowsingMetricsCollector::LogDailyOptInMetrics() {
@@ -3961,7 +3914,7 @@
3961 void SafeBrowsingMetricsCollector::RemoveOldEventsFromPref() { 3914 void SafeBrowsingMetricsCollector::RemoveOldEventsFromPref() {
3962- DictionaryPrefUpdate update(pref_service_, 3915- DictionaryPrefUpdate update(pref_service_,
3963- prefs::kSafeBrowsingEventTimestamps); 3916- prefs::kSafeBrowsingEventTimestamps);
3964- base::Value* mutable_state_dict = update.Get(); 3917- base::DictionaryValue* mutable_state_dict = update.Get();
3965- bool is_pref_valid = mutable_state_dict->is_dict(); 3918- bool is_pref_valid = mutable_state_dict->is_dict();
3966- base::UmaHistogramBoolean("SafeBrowsing.MetricsCollector.IsPrefValid", 3919- base::UmaHistogramBoolean("SafeBrowsing.MetricsCollector.IsPrefValid",
3967- is_pref_valid); 3920- is_pref_valid);
@@ -3990,30 +3943,47 @@
3990- AddSafeBrowsingEventAndUserStateToPref(GetUserState(), event_type); 3943- AddSafeBrowsingEventAndUserStateToPref(GetUserState(), event_type);
3991 } 3944 }
3992 3945
3993 void SafeBrowsingMetricsCollector::AddBypassEventToPref( 3946 absl::optional<base::Time>
3994@@ -220,15 +129,7 @@ absl::optional<base::Time> 3947 SafeBrowsingMetricsCollector::GetLatestEventTimestamp(EventType event_type) {
3995 SafeBrowsingMetricsCollector::GetLatestEventTimestamp( 3948- // Events are not logged when Safe Browsing is disabled.
3996 EventTypeFilter event_type_filter) {
3997 // Events are not logged when Safe Browsing is disabled.
3998- SafeBrowsingState sb_state = GetSafeBrowsingState(*pref_service_); 3949- SafeBrowsingState sb_state = GetSafeBrowsingState(*pref_service_);
3999- if (sb_state == SafeBrowsingState::NO_SAFE_BROWSING) { 3950- if (sb_state == SafeBrowsingState::NO_SAFE_BROWSING) {
4000 return absl::nullopt; 3951 return absl::nullopt;
4001- } 3952- }
4002- 3953-
4003- const absl::optional<Event> event = 3954- const absl::optional<Event> event =
4004- GetLatestEventFromEventTypeFilter(GetUserState(), event_type_filter); 3955- GetLatestEventFromEventType(GetUserState(), event_type);
4005- return event ? absl::optional<base::Time>(event.value().timestamp) 3956- return event ? absl::optional<base::Time>(event.value().timestamp)
4006- : absl::nullopt; 3957- : absl::nullopt;
4007 } 3958 }
4008 3959
4009 absl::optional<base::Time> 3960 absl::optional<base::Time>
4010@@ -240,55 +141,14 @@ SafeBrowsingMetricsCollector::GetLatestS 3961 SafeBrowsingMetricsCollector::GetLatestSecuritySensitiveEventTimestamp() {
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
4011 void SafeBrowsingMetricsCollector::AddSafeBrowsingEventAndUserStateToPref( 3981 void SafeBrowsingMetricsCollector::AddSafeBrowsingEventAndUserStateToPref(
4012 UserState user_state, 3982 UserState user_state,
4013 EventType event_type) { 3983 EventType event_type) {
4014- DictionaryPrefUpdate update(pref_service_, 3984- DictionaryPrefUpdate update(pref_service_,
4015- prefs::kSafeBrowsingEventTimestamps); 3985- prefs::kSafeBrowsingEventTimestamps);
4016- base::Value* mutable_state_dict = update.Get(); 3986- base::DictionaryValue* mutable_state_dict = update.Get();
4017- 3987-
4018- base::Value* event_dict = 3988- base::Value* event_dict =
4019- mutable_state_dict->FindDictKey(UserStateToPrefKey(user_state)); 3989- mutable_state_dict->FindDictKey(UserStateToPrefKey(user_state));
@@ -4031,8 +4001,8 @@
4031- } 4001- }
4032- 4002-
4033- // Remove the oldest timestamp if the length of the timestamps hits the limit. 4003- // Remove the oldest timestamp if the length of the timestamps hits the limit.
4034- while (timestamps->GetListDeprecated().size() >= kTimestampsMaxLength) { 4004- while (timestamps->GetList().size() >= kTimestampsMaxLength) {
4035- timestamps->EraseListIter(timestamps->GetListDeprecated().begin()); 4005- timestamps->EraseListIter(timestamps->GetList().begin());
4036- } 4006- }
4037- 4007-
4038- timestamps->Append(TimeToPrefValue(base::Time::Now())); 4008- timestamps->Append(TimeToPrefValue(base::Time::Now()));
@@ -4047,7 +4017,12 @@
4047- if (!pref_service_->GetBoolean(prefs::kSafeBrowsingEnhanced)) { 4017- if (!pref_service_->GetBoolean(prefs::kSafeBrowsingEnhanced)) {
4048- AddSafeBrowsingEventAndUserStateToPref(UserState::kEnhancedProtection, 4018- AddSafeBrowsingEventAndUserStateToPref(UserState::kEnhancedProtection,
4049- EventType::USER_STATE_DISABLED); 4019- EventType::USER_STATE_DISABLED);
4050- LogEnhancedProtectionDisabledMetrics(); 4020- int disabled_times_last_week = GetEventCountSince(
4021- UserState::kEnhancedProtection, EventType::USER_STATE_DISABLED,
4022- base::Time::Now() - base::Days(7));
4023- if (disabled_times_last_week <= kEsbDisabledMetricsQuota) {
4024- LogEnhancedProtectionDisabledMetrics();
4025- }
4051- } else { 4026- } else {
4052- AddSafeBrowsingEventAndUserStateToPref(UserState::kEnhancedProtection, 4027- AddSafeBrowsingEventAndUserStateToPref(UserState::kEnhancedProtection,
4053- EventType::USER_STATE_ENABLED); 4028- EventType::USER_STATE_ENABLED);
@@ -4056,7 +4031,7 @@
4056 4031
4057 const base::Value* SafeBrowsingMetricsCollector::GetSafeBrowsingEventDictionary( 4032 const base::Value* SafeBrowsingMetricsCollector::GetSafeBrowsingEventDictionary(
4058 UserState user_state) { 4033 UserState user_state) {
4059- const base::Value* state_dict = 4034- const base::DictionaryValue* state_dict =
4060- pref_service_->GetDictionary(prefs::kSafeBrowsingEventTimestamps); 4035- pref_service_->GetDictionary(prefs::kSafeBrowsingEventTimestamps);
4061- 4036-
4062- return state_dict->FindDictKey(UserStateToPrefKey(user_state)); 4037- return state_dict->FindDictKey(UserStateToPrefKey(user_state));
@@ -4064,7 +4039,7 @@
4064 } 4039 }
4065 4040
4066 absl::optional<SafeBrowsingMetricsCollector::Event> 4041 absl::optional<SafeBrowsingMetricsCollector::Event>
4067@@ -449,20 +309,7 @@ int SafeBrowsingMetricsCollector::GetEve 4042@@ -370,20 +209,7 @@ int SafeBrowsingMetricsCollector::GetEve
4068 } 4043 }
4069 4044
4070 UserState SafeBrowsingMetricsCollector::GetUserState() { 4045 UserState SafeBrowsingMetricsCollector::GetUserState() {
@@ -4086,8 +4061,8 @@
4086 } 4061 }
4087 4062
4088 bool SafeBrowsingMetricsCollector::IsBypassEventType(const EventType& type) { 4063 bool SafeBrowsingMetricsCollector::IsBypassEventType(const EventType& type) {
4089--- a/components/safe_browsing/core/common/BUILD.gn 4064--- components/safe_browsing/core/common/BUILD.gn.orig
4090+++ b/components/safe_browsing/core/common/BUILD.gn 4065+++ components/safe_browsing/core/common/BUILD.gn
4091@@ -6,20 +6,8 @@ import("//build/config/features.gni") 4066@@ -6,20 +6,8 @@ import("//build/config/features.gni")
4092 import("//components/safe_browsing/buildflags.gni") 4067 import("//components/safe_browsing/buildflags.gni")
4093 import("//mojo/public/tools/bindings/mojom.gni") 4068 import("//mojo/public/tools/bindings/mojom.gni")
@@ -4111,8 +4086,8 @@
4111 } 4086 }
4112 4087
4113 source_set("safe_browsing_policy_handler") { 4088 source_set("safe_browsing_policy_handler") {
4114--- a/components/safe_browsing/core/common/safe_browsing_policy_handler.cc 4089--- components/safe_browsing/core/common/safe_browsing_policy_handler.cc.orig
4115+++ b/components/safe_browsing/core/common/safe_browsing_policy_handler.cc 4090+++ components/safe_browsing/core/common/safe_browsing_policy_handler.cc
4116@@ -11,7 +11,6 @@ 4091@@ -11,7 +11,6 @@
4117 #include "components/policy/policy_constants.h" 4092 #include "components/policy/policy_constants.h"
4118 #include "components/prefs/pref_service.h" 4093 #include "components/prefs/pref_service.h"
@@ -4171,8 +4146,8 @@
4171 DCHECK_EQ(is_safe_browsing_enabled_managed, 4146 DCHECK_EQ(is_safe_browsing_enabled_managed,
4172 is_safe_browsing_enhanced_managed); 4147 is_safe_browsing_enhanced_managed);
4173 return is_safe_browsing_enabled_managed && is_safe_browsing_enhanced_managed; 4148 return is_safe_browsing_enabled_managed && is_safe_browsing_enhanced_managed;
4174--- a/components/safe_browsing/core/common/safe_browsing_prefs_unittest.cc 4149--- components/safe_browsing/core/common/safe_browsing_prefs_unittest.cc.orig
4175+++ b/components/safe_browsing/core/common/safe_browsing_prefs_unittest.cc 4150+++ components/safe_browsing/core/common/safe_browsing_prefs_unittest.cc
4176@@ -12,7 +12,6 @@ 4151@@ -12,7 +12,6 @@
4177 #include "components/prefs/pref_registry_simple.h" 4152 #include "components/prefs/pref_registry_simple.h"
4178 #include "components/prefs/testing_pref_service.h" 4153 #include "components/prefs/testing_pref_service.h"
@@ -4181,8 +4156,8 @@
4181 #include "testing/gtest/include/gtest/gtest.h" 4156 #include "testing/gtest/include/gtest/gtest.h"
4182 #include "url/gurl.h" 4157 #include "url/gurl.h"
4183 4158
4184--- a/components/safety_check/safety_check.cc 4159--- components/safety_check/safety_check.cc.orig
4185+++ b/components/safety_check/safety_check.cc 4160+++ components/safety_check/safety_check.cc
4186@@ -4,26 +4,9 @@ 4161@@ -4,26 +4,9 @@
4187 4162
4188 #include "components/safety_check/safety_check.h" 4163 #include "components/safety_check/safety_check.h"
@@ -4210,8 +4185,8 @@
4210 return SafeBrowsingStatus::kDisabled; 4185 return SafeBrowsingStatus::kDisabled;
4211 } 4186 }
4212 4187
4213--- a/components/security_interstitials/content/bad_clock_blocking_page.cc 4188--- components/security_interstitials/content/bad_clock_blocking_page.cc.orig
4214+++ b/components/security_interstitials/content/bad_clock_blocking_page.cc 4189+++ components/security_interstitials/content/bad_clock_blocking_page.cc
4215@@ -7,7 +7,6 @@ 4190@@ -7,7 +7,6 @@
4216 #include <utility> 4191 #include <utility>
4217 4192
@@ -4220,8 +4195,8 @@
4220 #include "components/security_interstitials/content/cert_report_helper.h" 4195 #include "components/security_interstitials/content/cert_report_helper.h"
4221 #include "components/security_interstitials/content/security_interstitial_controller_client.h" 4196 #include "components/security_interstitials/content/security_interstitial_controller_client.h"
4222 #include "components/security_interstitials/content/security_interstitial_page.h" 4197 #include "components/security_interstitials/content/security_interstitial_page.h"
4223--- a/components/security_interstitials/content/captive_portal_blocking_page.cc 4198--- components/security_interstitials/content/captive_portal_blocking_page.cc.orig
4224+++ b/components/security_interstitials/content/captive_portal_blocking_page.cc 4199+++ components/security_interstitials/content/captive_portal_blocking_page.cc
4225@@ -15,7 +15,6 @@ 4200@@ -15,7 +15,6 @@
4226 #include "build/build_config.h" 4201 #include "build/build_config.h"
4227 #include "components/captive_portal/core/captive_portal_detector.h" 4202 #include "components/captive_portal/core/captive_portal_detector.h"
@@ -4230,8 +4205,8 @@
4230 #include "components/security_interstitials/content/cert_report_helper.h" 4205 #include "components/security_interstitials/content/cert_report_helper.h"
4231 #include "components/security_interstitials/content/security_interstitial_controller_client.h" 4206 #include "components/security_interstitials/content/security_interstitial_controller_client.h"
4232 #include "components/security_interstitials/content/ssl_cert_reporter.h" 4207 #include "components/security_interstitials/content/ssl_cert_reporter.h"
4233--- a/components/security_interstitials/content/cert_report_helper.cc 4208--- components/security_interstitials/content/cert_report_helper.cc.orig
4234+++ b/components/security_interstitials/content/cert_report_helper.cc 4209+++ components/security_interstitials/content/cert_report_helper.cc
4235@@ -14,7 +14,6 @@ 4210@@ -14,7 +14,6 @@
4236 #include "build/branding_buildflags.h" 4211 #include "build/branding_buildflags.h"
4237 #include "build/build_config.h" 4212 #include "build/build_config.h"
@@ -4328,8 +4303,8 @@
4328 } 4303 }
4329 4304
4330 bool CertReportHelper::ShouldReportCertificateError() { 4305 bool CertReportHelper::ShouldReportCertificateError() {
4331--- a/components/security_interstitials/content/mitm_software_blocking_page.cc 4306--- components/security_interstitials/content/mitm_software_blocking_page.cc.orig
4332+++ b/components/security_interstitials/content/mitm_software_blocking_page.cc 4307+++ components/security_interstitials/content/mitm_software_blocking_page.cc
4333@@ -6,7 +6,6 @@ 4308@@ -6,7 +6,6 @@
4334 4309
4335 #include <utility> 4310 #include <utility>
@@ -4338,8 +4313,8 @@
4338 #include "components/security_interstitials/content/cert_report_helper.h" 4313 #include "components/security_interstitials/content/cert_report_helper.h"
4339 #include "components/security_interstitials/content/security_interstitial_controller_client.h" 4314 #include "components/security_interstitials/content/security_interstitial_controller_client.h"
4340 #include "components/security_interstitials/content/security_interstitial_page.h" 4315 #include "components/security_interstitials/content/security_interstitial_page.h"
4341--- a/components/security_interstitials/content/security_interstitial_controller_client.cc 4316--- components/security_interstitials/content/security_interstitial_controller_client.cc.orig
4342+++ b/components/security_interstitials/content/security_interstitial_controller_client.cc 4317+++ components/security_interstitials/content/security_interstitial_controller_client.cc
4343@@ -7,7 +7,6 @@ 4318@@ -7,7 +7,6 @@
4344 #include <utility> 4319 #include <utility>
4345 4320
@@ -4347,8 +4322,8 @@
4347-#include "components/safe_browsing/core/common/safe_browsing_prefs.h" 4322-#include "components/safe_browsing/core/common/safe_browsing_prefs.h"
4348 #include "components/security_interstitials/content/settings_page_helper.h" 4323 #include "components/security_interstitials/content/settings_page_helper.h"
4349 #include "components/security_interstitials/core/metrics_helper.h" 4324 #include "components/security_interstitials/core/metrics_helper.h"
4350 #include "content/public/browser/navigation_entry.h" 4325 #include "content/public/browser/web_contents.h"
4351@@ -99,11 +98,6 @@ SecurityInterstitialControllerClient::Ge 4326@@ -98,11 +97,6 @@ SecurityInterstitialControllerClient::Ge
4352 return prefs_; 4327 return prefs_;
4353 } 4328 }
4354 4329
@@ -4360,19 +4335,19 @@
4360 bool SecurityInterstitialControllerClient::CanLaunchDateAndTimeSettings() { 4335 bool SecurityInterstitialControllerClient::CanLaunchDateAndTimeSettings() {
4361 NOTREACHED(); 4336 NOTREACHED();
4362 return false; 4337 return false;
4363--- a/components/security_interstitials/content/security_interstitial_controller_client.h 4338--- components/security_interstitials/content/security_interstitial_controller_client.h.orig
4364+++ b/components/security_interstitials/content/security_interstitial_controller_client.h 4339+++ components/security_interstitials/content/security_interstitial_controller_client.h
4365@@ -54,8 +54,6 @@ class SecurityInterstitialControllerClie 4340@@ -54,8 +54,6 @@ class SecurityInterstitialControllerClie
4366 bool CanGoBackBeforeNavigation() override; 4341 bool CanGoBackBeforeNavigation() override;
4367 4342
4368 protected: 4343 protected:
4369- // security_interstitials::ControllerClient overrides. 4344- // security_interstitials::ControllerClient overrides.
4370- const std::string GetExtendedReportingPrefName() const override; 4345- const std::string GetExtendedReportingPrefName() const override;
4371 raw_ptr<content::WebContents> web_contents_; 4346 content::WebContents* web_contents_;
4372 4347
4373 private: 4348 private:
4374--- a/components/security_interstitials/content/security_interstitial_page.cc 4349--- components/security_interstitials/content/security_interstitial_page.cc.orig
4375+++ b/components/security_interstitials/content/security_interstitial_page.cc 4350+++ components/security_interstitials/content/security_interstitial_page.cc
4376@@ -11,7 +11,6 @@ 4351@@ -11,7 +11,6 @@
4377 #include "base/values.h" 4352 #include "base/values.h"
4378 #include "components/grit/components_resources.h" 4353 #include "components/grit/components_resources.h"
@@ -4413,8 +4388,8 @@
4413 } 4388 }
4414 4389
4415 std::u16string SecurityInterstitialPage::GetFormattedHostName() const { 4390 std::u16string SecurityInterstitialPage::GetFormattedHostName() const {
4416--- a/components/security_interstitials/content/ssl_blocking_page.cc 4391--- components/security_interstitials/content/ssl_blocking_page.cc.orig
4417+++ b/components/security_interstitials/content/ssl_blocking_page.cc 4392+++ components/security_interstitials/content/ssl_blocking_page.cc
4418@@ -12,7 +12,6 @@ 4393@@ -12,7 +12,6 @@
4419 #include "base/metrics/histogram_macros.h" 4394 #include "base/metrics/histogram_macros.h"
4420 #include "base/strings/string_number_conversions.h" 4395 #include "base/strings/string_number_conversions.h"
@@ -4423,8 +4398,8 @@
4423 #include "components/security_interstitials/content/cert_report_helper.h" 4398 #include "components/security_interstitials/content/cert_report_helper.h"
4424 #include "components/security_interstitials/content/security_interstitial_controller_client.h" 4399 #include "components/security_interstitials/content/security_interstitial_controller_client.h"
4425 #include "components/security_interstitials/content/security_interstitial_page.h" 4400 #include "components/security_interstitials/content/security_interstitial_page.h"
4426--- a/components/security_interstitials/core/controller_client.cc 4401--- components/security_interstitials/core/controller_client.cc.orig
4427+++ b/components/security_interstitials/core/controller_client.cc 4402+++ components/security_interstitials/core/controller_client.cc
4428@@ -36,7 +36,6 @@ MetricsHelper* ControllerClient::metrics 4403@@ -36,7 +36,6 @@ MetricsHelper* ControllerClient::metrics
4429 4404
4430 void ControllerClient::SetReportingPreference(bool report) { 4405 void ControllerClient::SetReportingPreference(bool report) {
@@ -4433,9 +4408,9 @@
4433 metrics_helper_->RecordUserInteraction( 4408 metrics_helper_->RecordUserInteraction(
4434 report ? MetricsHelper::SET_EXTENDED_REPORTING_ENABLED 4409 report ? MetricsHelper::SET_EXTENDED_REPORTING_ENABLED
4435 : MetricsHelper::SET_EXTENDED_REPORTING_DISABLED); 4410 : MetricsHelper::SET_EXTENDED_REPORTING_DISABLED);
4436--- a/components/security_interstitials/core/controller_client.h 4411--- components/security_interstitials/core/controller_client.h.orig
4437+++ b/components/security_interstitials/core/controller_client.h 4412+++ components/security_interstitials/core/controller_client.h
4438@@ -121,9 +121,6 @@ class ControllerClient { 4413@@ -122,9 +122,6 @@ class ControllerClient {
4439 4414
4440 void SetBaseHelpCenterUrlForTesting(const GURL& test_url); 4415 void SetBaseHelpCenterUrlForTesting(const GURL& test_url);
4441 4416
@@ -4445,8 +4420,8 @@
4445 private: 4420 private:
4446 std::unique_ptr<MetricsHelper> metrics_helper_; 4421 std::unique_ptr<MetricsHelper> metrics_helper_;
4447 // Link to the help center. 4422 // Link to the help center.
4448--- a/components/signin/core/browser/account_investigator.cc 4423--- components/signin/core/browser/account_investigator.cc.orig
4449+++ b/components/signin/core/browser/account_investigator.cc 4424+++ components/signin/core/browser/account_investigator.cc
4450@@ -13,7 +13,6 @@ 4425@@ -13,7 +13,6 @@
4451 #include "components/prefs/pref_registry_simple.h" 4426 #include "components/prefs/pref_registry_simple.h"
4452 #include "components/prefs/pref_service.h" 4427 #include "components/prefs/pref_service.h"
@@ -4521,8 +4496,8 @@
4521 base::TimeDelta stable_age; 4496 base::TimeDelta stable_age;
4522 if (!last_changed.is_null()) 4497 if (!last_changed.is_null())
4523 stable_age = std::max(now - last_changed, base::TimeDelta()); 4498 stable_age = std::max(now - last_changed, base::TimeDelta());
4524--- a/components/signin/core/browser/account_investigator_unittest.cc 4499--- components/signin/core/browser/account_investigator_unittest.cc.orig
4525+++ b/components/signin/core/browser/account_investigator_unittest.cc 4500+++ components/signin/core/browser/account_investigator_unittest.cc
4526@@ -12,7 +12,6 @@ 4501@@ -12,7 +12,6 @@
4527 #include "build/build_config.h" 4502 #include "build/build_config.h"
4528 #include "components/prefs/pref_registry_simple.h" 4503 #include "components/prefs/pref_registry_simple.h"
@@ -4531,8 +4506,8 @@
4531 #include "components/signin/public/identity_manager/accounts_in_cookie_jar_info.h" 4506 #include "components/signin/public/identity_manager/accounts_in_cookie_jar_info.h"
4532 #include "components/signin/public/identity_manager/identity_test_environment.h" 4507 #include "components/signin/public/identity_manager/identity_test_environment.h"
4533 #include "components/sync_preferences/testing_pref_service_syncable.h" 4508 #include "components/sync_preferences/testing_pref_service_syncable.h"
4534--- a/components/signin/core/browser/account_reconcilor_unittest.cc 4509--- components/signin/core/browser/account_reconcilor_unittest.cc.orig
4535+++ b/components/signin/core/browser/account_reconcilor_unittest.cc 4510+++ components/signin/core/browser/account_reconcilor_unittest.cc
4536@@ -29,7 +29,6 @@ 4511@@ -29,7 +29,6 @@
4537 #include "components/signin/public/base/list_accounts_test_utils.h" 4512 #include "components/signin/public/base/list_accounts_test_utils.h"
4538 #include "components/signin/public/base/signin_buildflags.h" 4513 #include "components/signin/public/base/signin_buildflags.h"
@@ -4541,8 +4516,8 @@
4541 #include "components/signin/public/base/test_signin_client.h" 4516 #include "components/signin/public/base/test_signin_client.h"
4542 #include "components/signin/public/identity_manager/accounts_in_cookie_jar_info.h" 4517 #include "components/signin/public/identity_manager/accounts_in_cookie_jar_info.h"
4543 #include "components/signin/public/identity_manager/identity_test_environment.h" 4518 #include "components/signin/public/identity_manager/identity_test_environment.h"
4544--- a/components/signin/core/browser/dice_account_reconcilor_delegate.cc 4519--- components/signin/core/browser/dice_account_reconcilor_delegate.cc.orig
4545+++ b/components/signin/core/browser/dice_account_reconcilor_delegate.cc 4520+++ components/signin/core/browser/dice_account_reconcilor_delegate.cc
4546@@ -12,7 +12,6 @@ 4521@@ -12,7 +12,6 @@
4547 #include "base/ranges/algorithm.h" 4522 #include "base/ranges/algorithm.h"
4548 #include "components/prefs/pref_service.h" 4523 #include "components/prefs/pref_service.h"
@@ -4551,8 +4526,8 @@
4551 4526
4552 namespace signin { 4527 namespace signin {
4553 4528
4554--- a/components/signin/core/browser/dice_account_reconcilor_delegate_unittest.cc 4529--- components/signin/core/browser/dice_account_reconcilor_delegate_unittest.cc.orig
4555+++ b/components/signin/core/browser/dice_account_reconcilor_delegate_unittest.cc 4530+++ components/signin/core/browser/dice_account_reconcilor_delegate_unittest.cc
4556@@ -8,7 +8,6 @@ 4531@@ -8,7 +8,6 @@
4557 4532
4558 #include "components/prefs/pref_registry_simple.h" 4533 #include "components/prefs/pref_registry_simple.h"
@@ -4561,8 +4536,8 @@
4561 #include "components/signin/public/base/test_signin_client.h" 4536 #include "components/signin/public/base/test_signin_client.h"
4562 #include "components/sync_preferences/testing_pref_service_syncable.h" 4537 #include "components/sync_preferences/testing_pref_service_syncable.h"
4563 #include "google_apis/gaia/gaia_auth_util.h" 4538 #include "google_apis/gaia/gaia_auth_util.h"
4564--- a/components/signin/core/browser/signin_investigator.cc 4539--- components/signin/core/browser/signin_investigator.cc.orig
4565+++ b/components/signin/core/browser/signin_investigator.cc 4540+++ components/signin/core/browser/signin_investigator.cc
4566@@ -7,7 +7,6 @@ 4541@@ -7,7 +7,6 @@
4567 #include "base/check.h" 4542 #include "base/check.h"
4568 #include "base/metrics/histogram_macros.h" 4543 #include "base/metrics/histogram_macros.h"
@@ -4599,8 +4574,8 @@
4599 scenario = InvestigatedScenario::kFirstSignIn; 4574 scenario = InvestigatedScenario::kFirstSignIn;
4600 } else if (AreAccountsEqualWithFallback()) { 4575 } else if (AreAccountsEqualWithFallback()) {
4601 scenario = InvestigatedScenario::kSameAccount; 4576 scenario = InvestigatedScenario::kSameAccount;
4602--- a/components/signin/core/browser/signin_investigator_unittest.cc 4577--- components/signin/core/browser/signin_investigator_unittest.cc.orig
4603+++ b/components/signin/core/browser/signin_investigator_unittest.cc 4578+++ components/signin/core/browser/signin_investigator_unittest.cc
4604@@ -9,7 +9,6 @@ 4579@@ -9,7 +9,6 @@
4605 #include "components/prefs/pref_registry_simple.h" 4580 #include "components/prefs/pref_registry_simple.h"
4606 #include "components/signin/core/browser/signin_investigator.h" 4581 #include "components/signin/core/browser/signin_investigator.h"
@@ -4609,8 +4584,8 @@
4609 #include "components/signin/public/identity_manager/identity_test_environment.h" 4584 #include "components/signin/public/identity_manager/identity_test_environment.h"
4610 #include "components/sync_preferences/testing_pref_service_syncable.h" 4585 #include "components/sync_preferences/testing_pref_service_syncable.h"
4611 #include "testing/gtest/include/gtest/gtest.h" 4586 #include "testing/gtest/include/gtest/gtest.h"
4612--- a/components/signin/internal/identity_manager/account_tracker_service.cc 4587--- components/signin/internal/identity_manager/account_tracker_service.cc.orig
4613+++ b/components/signin/internal/identity_manager/account_tracker_service.cc 4588+++ components/signin/internal/identity_manager/account_tracker_service.cc
4614@@ -29,7 +29,6 @@ 4589@@ -29,7 +29,6 @@
4615 #include "components/prefs/scoped_user_pref_update.h" 4590 #include "components/prefs/scoped_user_pref_update.h"
4616 #include "components/signin/internal/identity_manager/account_capabilities_constants.h" 4591 #include "components/signin/internal/identity_manager/account_capabilities_constants.h"
@@ -4619,7 +4594,7 @@
4619 #include "components/signin/public/base/signin_switches.h" 4594 #include "components/signin/public/base/signin_switches.h"
4620 #include "components/signin/public/identity_manager/account_capabilities.h" 4595 #include "components/signin/public/identity_manager/account_capabilities.h"
4621 #include "components/signin/public/identity_manager/tribool.h" 4596 #include "components/signin/public/identity_manager/tribool.h"
4622@@ -160,9 +159,6 @@ AccountTrackerService::~AccountTrackerSe 4597@@ -152,9 +151,6 @@ AccountTrackerService::~AccountTrackerSe
4623 4598
4624 // static 4599 // static
4625 void AccountTrackerService::RegisterPrefs(PrefRegistrySimple* registry) { 4600 void AccountTrackerService::RegisterPrefs(PrefRegistrySimple* registry) {
@@ -4629,7 +4604,7 @@
4629 } 4604 }
4630 4605
4631 void AccountTrackerService::Initialize(PrefService* pref_service, 4606 void AccountTrackerService::Initialize(PrefService* pref_service,
4632@@ -463,14 +459,12 @@ AccountTrackerService::ComputeNewMigrati 4607@@ -455,14 +451,12 @@ AccountTrackerService::ComputeNewMigrati
4633 4608
4634 void AccountTrackerService::SetMigrationState(AccountIdMigrationState state) { 4609 void AccountTrackerService::SetMigrationState(AccountIdMigrationState state) {
4635 DCHECK(state != MIGRATION_DONE || AreAllAccountsMigrated()); 4610 DCHECK(state != MIGRATION_DONE || AreAllAccountsMigrated());
@@ -4645,7 +4620,7 @@
4645 } 4620 }
4646 4621
4647 base::FilePath AccountTrackerService::GetImagePathFor( 4622 base::FilePath AccountTrackerService::GetImagePathFor(
4648@@ -527,27 +521,6 @@ void AccountTrackerService::OnAccountIma 4623@@ -519,24 +513,7 @@ void AccountTrackerService::OnAccountIma
4649 const CoreAccountId& account_id, 4624 const CoreAccountId& account_id,
4650 const std::string& image_url_with_size, 4625 const std::string& image_url_with_size,
4651 bool success) { 4626 bool success) {
@@ -4654,15 +4629,12 @@
4654- 4629-
4655- base::DictionaryValue* dict = nullptr; 4630- base::DictionaryValue* dict = nullptr;
4656- ListPrefUpdate update(pref_service_, prefs::kAccountInfo); 4631- ListPrefUpdate update(pref_service_, prefs::kAccountInfo);
4657- for (size_t i = 0; i < update->GetListDeprecated().size(); 4632- for (size_t i = 0; i < update->GetList().size(); ++i, dict = nullptr) {
4658- ++i, dict = nullptr) { 4633- if (update->GetDictionary(i, &dict)) {
4659- base::Value& dict_value = update->GetListDeprecated()[i]; 4634- std::string value;
4660- if (dict_value.is_dict()) { 4635- if (dict->GetString(kAccountKeyPath, &value) &&
4661- dict = static_cast<base::DictionaryValue*>(&dict_value); 4636- value == account_id.ToString())
4662- const std::string* account_key = dict->FindStringKey(kAccountKeyPath);
4663- if (account_key && *account_key == account_id.ToString()) {
4664- break; 4637- break;
4665- }
4666- } 4638- }
4667- } 4639- }
4668- 4640-
@@ -4670,158 +4642,67 @@
4670- return; 4642- return;
4671- } 4643- }
4672- dict->SetString(kLastDownloadedImageURLWithSizePath, image_url_with_size); 4644- dict->SetString(kLastDownloadedImageURLWithSizePath, image_url_with_size);
4645+ return;
4673 } 4646 }
4674 4647
4675 void AccountTrackerService::RemoveAccountImageFromDisk( 4648 void AccountTrackerService::RemoveAccountImageFromDisk(
4676@@ -559,162 +532,16 @@ void AccountTrackerService::RemoveAccoun 4649@@ -548,11 +525,10 @@ void AccountTrackerService::RemoveAccoun
4677 } 4650 }
4678 4651
4679 void AccountTrackerService::LoadFromPrefs() { 4652 void AccountTrackerService::LoadFromPrefs() {
4680- const base::Value* list = pref_service_->GetList(prefs::kAccountInfo); 4653- const base::ListValue* list = pref_service_->GetList(prefs::kAccountInfo);
4681- std::set<CoreAccountId> to_remove; 4654 std::set<CoreAccountId> to_remove;
4682- for (size_t i = 0; i < list->GetListDeprecated().size(); ++i) { 4655- for (size_t i = 0; i < list->GetList().size(); ++i) {
4683- const base::Value& dict_value = list->GetListDeprecated()[i]; 4656+ for (size_t i = 0; false; ++i) {
4684- if (dict_value.is_dict()) { 4657 const base::DictionaryValue* dict = nullptr;
4685- const base::DictionaryValue& dict = 4658- if (list->GetDictionary(i, &dict)) {
4686- base::Value::AsDictionaryValue(dict_value); 4659+ if (false) {
4687- if (const std::string* account_key = 4660 std::string value;
4688- dict.FindStringKey(kAccountKeyPath)) { 4661 if (dict->GetString(kAccountKeyPath, &value)) {
4689- // Ignore incorrectly persisted non-canonical account ids. 4662 // Ignore incorrectly persisted non-canonical account ids.
4690- if (account_key->find('@') != std::string::npos && 4663@@ -588,14 +564,6 @@ void AccountTrackerService::LoadFromPref
4691- *account_key != gaia::CanonicalizeEmail(*account_key)) { 4664 account_info.is_child_account = is_child_status.value()
4692- to_remove.insert(CoreAccountId::FromString(*account_key)); 4665 ? signin::Tribool::kTrue
4693- continue; 4666 : signin::Tribool::kFalse;
4694- }
4695-
4696- CoreAccountId account_id = CoreAccountId::FromString(*account_key);
4697- StartTrackingAccount(account_id);
4698- AccountInfo& account_info = accounts_[account_id];
4699-
4700- GetString(dict, kAccountGaiaPath, account_info.gaia);
4701- GetString(dict, kAccountEmailPath, account_info.email);
4702- GetString(dict, kAccountHostedDomainPath, account_info.hosted_domain);
4703- GetString(dict, kAccountFullNamePath, account_info.full_name);
4704- GetString(dict, kAccountGivenNamePath, account_info.given_name);
4705- GetString(dict, kAccountLocalePath, account_info.locale);
4706- GetString(dict, kAccountPictureURLPath, account_info.picture_url);
4707- GetString(dict, kLastDownloadedImageURLWithSizePath,
4708- account_info.last_downloaded_image_url_with_size);
4709-
4710- if (absl::optional<bool> is_child_status =
4711- dict.FindBoolKey(kDeprecatedChildStatusPath)) {
4712- account_info.is_child_account = is_child_status.value()
4713- ? signin::Tribool::kTrue
4714- : signin::Tribool::kFalse;
4715- // Migrate to kAccountChildAttributePath. 4667- // Migrate to kAccountChildAttributePath.
4716- ListPrefUpdate update(pref_service_, prefs::kAccountInfo); 4668- ListPrefUpdate update(pref_service_, prefs::kAccountInfo);
4717- base::Value* update_dict = &update->GetListDeprecated()[i]; 4669- base::DictionaryValue* update_dict = nullptr;
4718- DCHECK(update_dict->is_dict()); 4670- update->GetDictionary(i, &update_dict);
4671- DCHECK(update_dict);
4719- SetAccountCapabilityPath(update_dict, kAccountChildAttributePath, 4672- SetAccountCapabilityPath(update_dict, kAccountChildAttributePath,
4720- account_info.is_child_account); 4673- account_info.is_child_account);
4721- update_dict->RemoveKey(kDeprecatedChildStatusPath); 4674- update_dict->RemoveKey(kDeprecatedChildStatusPath);
4722- } else { 4675 } else {
4723- account_info.is_child_account = 4676 account_info.is_child_account =
4724- FindAccountCapabilityPath(dict, kAccountChildAttributePath); 4677 FindAccountCapabilityPath(*dict, kAccountChildAttributePath);
4725- } 4678@@ -654,13 +622,11 @@ void AccountTrackerService::LoadFromPref
4726-
4727- absl::optional<bool> is_under_advanced_protection =
4728- dict.FindBoolKey(kAdvancedProtectionAccountStatusPath);
4729- if (is_under_advanced_protection.has_value()) {
4730- account_info.is_under_advanced_protection =
4731- is_under_advanced_protection.value();
4732- }
4733-
4734- switch (FindAccountCapabilityPath(
4735- dict, kCanOfferExtendedChromeSyncPromosCapabilityPrefsPath)) {
4736- case signin::Tribool::kUnknown:
4737- break;
4738- case signin::Tribool::kTrue:
4739- account_info.capabilities.set_can_offer_extended_chrome_sync_promos(
4740- true);
4741- break;
4742- case signin::Tribool::kFalse:
4743- account_info.capabilities.set_can_offer_extended_chrome_sync_promos(
4744- false);
4745- break;
4746- }
4747-
4748- if (!account_info.gaia.empty())
4749- NotifyAccountUpdated(account_info);
4750- }
4751- }
4752- }
4753-
4754- // Remove any obsolete prefs.
4755- for (auto account_id : to_remove) {
4756- AccountInfo account_info;
4757- account_info.account_id = account_id;
4758- RemoveFromPrefs(account_info);
4759- RemoveAccountImageFromDisk(account_id);
4760- }
4761-
4762- if (GetMigrationState() != MIGRATION_DONE) {
4763- const AccountIdMigrationState new_state = ComputeNewMigrationState();
4764- SetMigrationState(new_state);
4765-
4766- if (new_state == MIGRATION_IN_PROGRESS) {
4767- MigrateToGaiaId();
4768- }
4769- }
4770-
4771- DCHECK(GetMigrationState() != MIGRATION_DONE || AreAllAccountsMigrated());
4772- UMA_HISTOGRAM_ENUMERATION("Signin.AccountTracker.GaiaIdMigrationState",
4773- GetMigrationState(), NUM_MIGRATION_STATES);
4774-
4775- UMA_HISTOGRAM_COUNTS_100("Signin.AccountTracker.CountOfLoadedAccounts",
4776- accounts_.size());
4777 } 4679 }
4778 4680
4779 void AccountTrackerService::SaveToPrefs(const AccountInfo& account_info) { 4681 void AccountTrackerService::SaveToPrefs(const AccountInfo& account_info) {
4780- if (!pref_service_) 4682- if (!pref_service_)
4781- return; 4683- return;
4782- 4684+ return;
4783- base::DictionaryValue* dict = nullptr; 4685
4686 base::DictionaryValue* dict = nullptr;
4784- ListPrefUpdate update(pref_service_, prefs::kAccountInfo); 4687- ListPrefUpdate update(pref_service_, prefs::kAccountInfo);
4785- for (size_t i = 0; i < update->GetListDeprecated().size(); 4688- for (size_t i = 0; i < update->GetList().size(); ++i, dict = nullptr) {
4786- ++i, dict = nullptr) { 4689- if (update->GetDictionary(i, &dict)) {
4787- base::Value& dict_value = update->GetListDeprecated()[i]; 4690+ if (false) {
4788- if (dict_value.is_dict()) { 4691+ while (false) {
4789- dict = static_cast<base::DictionaryValue*>(&dict_value); 4692 std::string value;
4790- const std::string* account_key = dict->FindStringKey(kAccountKeyPath); 4693 if (dict->GetString(kAccountKeyPath, &value) &&
4791- if (account_key && *account_key == account_info.account_id.ToString()) { 4694 value == account_info.account_id.ToString())
4792- break; 4695@@ -670,9 +636,6 @@ void AccountTrackerService::SaveToPrefs(
4793- } 4696
4794- } 4697 if (!dict) {
4795- } 4698 dict = new base::DictionaryValue();
4796- 4699- update->Append(base::WrapUnique(dict));
4797- if (!dict) { 4700- // |dict| is invalidated at this point, so it needs to be reset.
4798- update->Append(base::Value(base::Value::Type::DICTIONARY)); 4701- update->GetDictionary(update->GetList().size() - 1, &dict);
4799- base::Value& dict_value = update->GetListDeprecated().back(); 4702 dict->SetString(kAccountKeyPath, account_info.account_id.ToString());
4800- DCHECK(dict_value.is_dict()); 4703 }
4801- dict = static_cast<base::DictionaryValue*>(&dict_value);
4802- dict->SetString(kAccountKeyPath, account_info.account_id.ToString());
4803- }
4804-
4805- dict->SetString(kAccountEmailPath, account_info.email);
4806- dict->SetString(kAccountGaiaPath, account_info.gaia);
4807- dict->SetString(kAccountHostedDomainPath, account_info.hosted_domain);
4808- dict->SetString(kAccountFullNamePath, account_info.full_name);
4809- dict->SetString(kAccountGivenNamePath, account_info.given_name);
4810- dict->SetString(kAccountLocalePath, account_info.locale);
4811- dict->SetString(kAccountPictureURLPath, account_info.picture_url);
4812- SetAccountCapabilityPath(dict, kAccountChildAttributePath,
4813- account_info.is_child_account);
4814- dict->SetBoolean(kAdvancedProtectionAccountStatusPath,
4815- account_info.is_under_advanced_protection);
4816- // |kLastDownloadedImageURLWithSizePath| should only be set after the GAIA
4817- // picture is successufly saved to disk. Otherwise, there is no guarantee that
4818- // |kLastDownloadedImageURLWithSizePath| matches the picture on disk.
4819- SetAccountCapabilityPath(
4820- dict, kCanOfferExtendedChromeSyncPromosCapabilityPrefsPath,
4821- account_info.capabilities.can_offer_extended_chrome_sync_promos());
4822 }
4823 4704
4824 void AccountTrackerService::RemoveFromPrefs(const AccountInfo& account_info) { 4705@@ -699,14 +662,7 @@ void AccountTrackerService::RemoveFromPr
4825 if (!pref_service_) 4706 if (!pref_service_)
4826 return; 4707 return;
4827 4708
@@ -4836,9 +4717,9 @@
4836 } 4717 }
4837 4718
4838 CoreAccountId AccountTrackerService::PickAccountIdForAccount( 4719 CoreAccountId AccountTrackerService::PickAccountIdForAccount(
4839--- a/components/signin/internal/identity_manager/account_tracker_service.h 4720--- components/signin/internal/identity_manager/account_tracker_service.h.orig
4840+++ b/components/signin/internal/identity_manager/account_tracker_service.h 4721+++ components/signin/internal/identity_manager/account_tracker_service.h
4841@@ -235,6 +235,8 @@ class AccountTrackerService { 4722@@ -236,6 +236,8 @@ class AccountTrackerService {
4842 AccountInfoCallback on_account_updated_callback_; 4723 AccountInfoCallback on_account_updated_callback_;
4843 AccountInfoCallback on_account_removed_callback_; 4724 AccountInfoCallback on_account_removed_callback_;
4844 4725
@@ -4847,8 +4728,8 @@
4847 // Task runner used for file operations on avatar images. 4728 // Task runner used for file operations on avatar images.
4848 scoped_refptr<base::SequencedTaskRunner> image_storage_task_runner_; 4729 scoped_refptr<base::SequencedTaskRunner> image_storage_task_runner_;
4849 4730
4850--- a/components/signin/internal/identity_manager/account_tracker_service_unittest.cc 4731--- components/signin/internal/identity_manager/account_tracker_service_unittest.cc.orig
4851+++ b/components/signin/internal/identity_manager/account_tracker_service_unittest.cc 4732+++ components/signin/internal/identity_manager/account_tracker_service_unittest.cc
4852@@ -26,7 +26,6 @@ 4733@@ -26,7 +26,6 @@
4853 #include "components/signin/internal/identity_manager/account_tracker_service.h" 4734 #include "components/signin/internal/identity_manager/account_tracker_service.h"
4854 #include "components/signin/internal/identity_manager/fake_profile_oauth2_token_service.h" 4735 #include "components/signin/internal/identity_manager/fake_profile_oauth2_token_service.h"
@@ -4857,8 +4738,8 @@
4857 #include "components/signin/public/base/signin_switches.h" 4738 #include "components/signin/public/base/signin_switches.h"
4858 #include "components/signin/public/base/test_signin_client.h" 4739 #include "components/signin/public/base/test_signin_client.h"
4859 #include "components/signin/public/identity_manager/account_capabilities.h" 4740 #include "components/signin/public/identity_manager/account_capabilities.h"
4860--- a/components/signin/internal/identity_manager/gaia_cookie_manager_service.cc 4741--- components/signin/internal/identity_manager/gaia_cookie_manager_service.cc.orig
4861+++ b/components/signin/internal/identity_manager/gaia_cookie_manager_service.cc 4742+++ components/signin/internal/identity_manager/gaia_cookie_manager_service.cc
4862@@ -29,7 +29,6 @@ 4743@@ -29,7 +29,6 @@
4863 #include "components/signin/internal/identity_manager/ubertoken_fetcher_impl.h" 4744 #include "components/signin/internal/identity_manager/ubertoken_fetcher_impl.h"
4864 #include "components/signin/public/base/signin_buildflags.h" 4745 #include "components/signin/public/base/signin_buildflags.h"
@@ -4867,7 +4748,7 @@
4867 #include "components/signin/public/identity_manager/set_accounts_in_cookie_result.h" 4748 #include "components/signin/public/identity_manager/set_accounts_in_cookie_result.h"
4868 #include "google_apis/gaia/gaia_constants.h" 4749 #include "google_apis/gaia/gaia_constants.h"
4869 #include "google_apis/gaia/gaia_urls.h" 4750 #include "google_apis/gaia/gaia_urls.h"
4870@@ -451,9 +450,7 @@ GaiaCookieManagerService::GaiaCookieMana 4751@@ -456,9 +455,7 @@ GaiaCookieManagerService::GaiaCookieMana
4871 listAccountsUnexpectedServerResponseRetried_(false), 4752 listAccountsUnexpectedServerResponseRetried_(false),
4872 external_cc_result_fetched_(false), 4753 external_cc_result_fetched_(false),
4873 list_accounts_stale_(true) { 4754 list_accounts_stale_(true) {
@@ -4878,7 +4759,7 @@
4878 4759
4879 if (!gaia_cookie_last_list_accounts_data.empty()) { 4760 if (!gaia_cookie_last_list_accounts_data.empty()) {
4880 if (!gaia::ParseListAccountsData(gaia_cookie_last_list_accounts_data, 4761 if (!gaia::ParseListAccountsData(gaia_cookie_last_list_accounts_data,
4881@@ -477,8 +474,6 @@ GaiaCookieManagerService::~GaiaCookieMan 4762@@ -482,8 +479,6 @@ GaiaCookieManagerService::~GaiaCookieMan
4882 4763
4883 // static 4764 // static
4884 void GaiaCookieManagerService::RegisterPrefs(PrefRegistrySimple* registry) { 4765 void GaiaCookieManagerService::RegisterPrefs(PrefRegistrySimple* registry) {
@@ -4887,7 +4768,7 @@
4887 } 4768 }
4888 4769
4889 void GaiaCookieManagerService::InitCookieListener() { 4770 void GaiaCookieManagerService::InitCookieListener() {
4890@@ -896,16 +891,12 @@ void GaiaCookieManagerService::OnListAcc 4771@@ -906,16 +901,12 @@ void GaiaCookieManagerService::OnListAcc
4891 &signed_out_accounts_)) { 4772 &signed_out_accounts_)) {
4892 listed_accounts_.clear(); 4773 listed_accounts_.clear();
4893 signed_out_accounts_.clear(); 4774 signed_out_accounts_.clear();
@@ -4904,9 +4785,9 @@
4904 RecordListAccountsFailure(GoogleServiceAuthError::NONE); 4785 RecordListAccountsFailure(GoogleServiceAuthError::NONE);
4905 4786
4906 InitializeListedAccountsIds(); 4787 InitializeListedAccountsIds();
4907--- a/components/signin/internal/identity_manager/gaia_cookie_manager_service_unittest.cc 4788--- components/signin/internal/identity_manager/gaia_cookie_manager_service_unittest.cc.orig
4908+++ b/components/signin/internal/identity_manager/gaia_cookie_manager_service_unittest.cc 4789+++ components/signin/internal/identity_manager/gaia_cookie_manager_service_unittest.cc
4909@@ -24,7 +24,6 @@ 4790@@ -25,7 +25,6 @@
4910 #include "components/prefs/testing_pref_service.h" 4791 #include "components/prefs/testing_pref_service.h"
4911 #include "components/signin/internal/identity_manager/account_tracker_service.h" 4792 #include "components/signin/internal/identity_manager/account_tracker_service.h"
4912 #include "components/signin/internal/identity_manager/fake_profile_oauth2_token_service.h" 4793 #include "components/signin/internal/identity_manager/fake_profile_oauth2_token_service.h"
@@ -4914,8 +4795,8 @@
4914 #include "components/signin/public/base/test_signin_client.h" 4795 #include "components/signin/public/base/test_signin_client.h"
4915 #include "google_apis/gaia/gaia_constants.h" 4796 #include "google_apis/gaia/gaia_constants.h"
4916 #include "google_apis/gaia/gaia_urls.h" 4797 #include "google_apis/gaia/gaia_urls.h"
4917--- a/components/signin/internal/identity_manager/mutable_profile_oauth2_token_service_delegate.cc 4798--- components/signin/internal/identity_manager/mutable_profile_oauth2_token_service_delegate.cc.orig
4918+++ b/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
4919@@ -17,7 +17,6 @@ 4800@@ -17,7 +17,6 @@
4920 #include "components/prefs/pref_service.h" 4801 #include "components/prefs/pref_service.h"
4921 #include "components/signin/public/base/signin_client.h" 4802 #include "components/signin/public/base/signin_client.h"
@@ -4970,8 +4851,8 @@
4970- client_->GetPrefs()->SetBoolean(prefs::kTokenServiceDiceCompatible, true); 4851- client_->GetPrefs()->SetBoolean(prefs::kTokenServiceDiceCompatible, true);
4971 } 4852 }
4972 } 4853 }
4973--- a/components/signin/internal/identity_manager/mutable_profile_oauth2_token_service_delegate_unittest.cc 4854--- components/signin/internal/identity_manager/mutable_profile_oauth2_token_service_delegate_unittest.cc.orig
4974+++ b/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
4975@@ -25,7 +25,6 @@ 4856@@ -25,7 +25,6 @@
4976 #include "components/signin/internal/identity_manager/profile_oauth2_token_service.h" 4857 #include "components/signin/internal/identity_manager/profile_oauth2_token_service.h"
4977 #include "components/signin/public/base/account_consistency_method.h" 4858 #include "components/signin/public/base/account_consistency_method.h"
@@ -4980,8 +4861,8 @@
4980 #include "components/signin/public/base/test_signin_client.h" 4861 #include "components/signin/public/base/test_signin_client.h"
4981 #include "components/signin/public/identity_manager/account_info.h" 4862 #include "components/signin/public/identity_manager/account_info.h"
4982 #include "components/signin/public/webdata/token_web_data.h" 4863 #include "components/signin/public/webdata/token_web_data.h"
4983--- a/components/signin/internal/identity_manager/primary_account_manager.cc 4864--- components/signin/internal/identity_manager/primary_account_manager.cc.orig
4984+++ b/components/signin/internal/identity_manager/primary_account_manager.cc 4865+++ components/signin/internal/identity_manager/primary_account_manager.cc
4985@@ -22,7 +22,6 @@ 4866@@ -22,7 +22,6 @@
4986 #include "components/signin/public/base/account_consistency_method.h" 4867 #include "components/signin/public/base/account_consistency_method.h"
4987 #include "components/signin/public/base/signin_client.h" 4868 #include "components/signin/public/base/signin_client.h"
@@ -5056,7 +4937,7 @@
5056 CoreAccountId account_id = CoreAccountId::FromString(pref_account_id); 4937 CoreAccountId account_id = CoreAccountId::FromString(pref_account_id);
5057 CoreAccountInfo account_info = 4938 CoreAccountInfo account_info =
5058 account_tracker_service_->GetAccountInfo(account_id); 4939 account_tracker_service_->GetAccountInfo(account_id);
5059@@ -182,8 +148,7 @@ void PrimaryAccountManager::SetSyncPrima 4940@@ -166,8 +132,7 @@ void PrimaryAccountManager::SetSyncPrima
5060 4941
5061 #if DCHECK_IS_ON() 4942 #if DCHECK_IS_ON()
5062 { 4943 {
@@ -5066,7 +4947,7 @@
5066 bool consented_to_sync = 4947 bool consented_to_sync =
5067 client_->GetPrefs()->GetBoolean(prefs::kGoogleServicesConsentedToSync); 4948 client_->GetPrefs()->GetBoolean(prefs::kGoogleServicesConsentedToSync);
5068 4949
5069@@ -199,10 +164,6 @@ void PrimaryAccountManager::SetSyncPrima 4950@@ -183,10 +148,6 @@ void PrimaryAccountManager::SetSyncPrima
5070 // Go ahead and update the last signed in account info here as well. Once a 4951 // Go ahead and update the last signed in account info here as well. Once a
5071 // user is signed in the corresponding preferences should match. Doing it here 4952 // user is signed in the corresponding preferences should match. Doing it here
5072 // as opposed to on signin allows us to catch the upgrade scenario. 4953 // as opposed to on signin allows us to catch the upgrade scenario.
@@ -5077,7 +4958,7 @@
5077 4958
5078 // Commit primary sync account info immediately so that it does not get lost 4959 // Commit primary sync account info immediately so that it does not get lost
5079 // if Chrome crashes before the next commit interval. 4960 // if Chrome crashes before the next commit interval.
5080@@ -216,20 +177,11 @@ void PrimaryAccountManager::SetPrimaryAc 4961@@ -200,20 +161,11 @@ void PrimaryAccountManager::SetPrimaryAc
5081 4962
5082 PrefService* prefs = client_->GetPrefs(); 4963 PrefService* prefs = client_->GetPrefs();
5083 const std::string& account_id = primary_account_info_.account_id.ToString(); 4964 const std::string& account_id = primary_account_info_.account_id.ToString();
@@ -5099,9 +4980,9 @@
5099 if (primary_account_info().account_id.empty()) { 4980 if (primary_account_info().account_id.empty()) {
5100 DCHECK(!consented_pref); 4981 DCHECK(!consented_pref);
5101 return false; 4982 return false;
5102--- a/components/signin/internal/identity_manager/primary_account_manager_unittest.cc 4983--- components/signin/internal/identity_manager/primary_account_manager_unittest.cc.orig
5103+++ b/components/signin/internal/identity_manager/primary_account_manager_unittest.cc 4984+++ components/signin/internal/identity_manager/primary_account_manager_unittest.cc
5104@@ -25,7 +25,6 @@ 4985@@ -24,7 +24,6 @@
5105 #include "components/signin/internal/identity_manager/fake_profile_oauth2_token_service_delegate.h" 4986 #include "components/signin/internal/identity_manager/fake_profile_oauth2_token_service_delegate.h"
5106 #include "components/signin/internal/identity_manager/primary_account_policy_manager.h" 4987 #include "components/signin/internal/identity_manager/primary_account_policy_manager.h"
5107 #include "components/signin/internal/identity_manager/profile_oauth2_token_service.h" 4988 #include "components/signin/internal/identity_manager/profile_oauth2_token_service.h"
@@ -5109,8 +4990,8 @@
5109 #include "components/signin/public/base/signin_switches.h" 4990 #include "components/signin/public/base/signin_switches.h"
5110 #include "components/signin/public/base/test_signin_client.h" 4991 #include "components/signin/public/base/test_signin_client.h"
5111 #include "components/sync_preferences/testing_pref_service_syncable.h" 4992 #include "components/sync_preferences/testing_pref_service_syncable.h"
5112--- a/components/signin/internal/identity_manager/primary_account_mutator_impl.cc 4993--- components/signin/internal/identity_manager/primary_account_mutator_impl.cc.orig
5113+++ b/components/signin/internal/identity_manager/primary_account_mutator_impl.cc 4994+++ components/signin/internal/identity_manager/primary_account_mutator_impl.cc
5114@@ -14,7 +14,6 @@ 4995@@ -14,7 +14,6 @@
5115 #include "components/signin/internal/identity_manager/profile_oauth2_token_service.h" 4996 #include "components/signin/internal/identity_manager/profile_oauth2_token_service.h"
5116 #include "components/signin/public/base/signin_buildflags.h" 4997 #include "components/signin/public/base/signin_buildflags.h"
@@ -5128,8 +5009,8 @@
5128 #if BUILDFLAG(IS_CHROMEOS_LACROS) 5009 #if BUILDFLAG(IS_CHROMEOS_LACROS)
5129 // Check that `prefs::kSigninAllowed` has not been set to false in a context 5010 // Check that `prefs::kSigninAllowed` has not been set to false in a context
5130 // where Lacros wants to set a Primary Account. Lacros doesn't offer account 5011 // where Lacros wants to set a Primary Account. Lacros doesn't offer account
5131--- a/components/signin/internal/identity_manager/primary_account_policy_manager_impl.cc 5012--- components/signin/internal/identity_manager/primary_account_policy_manager_impl.cc.orig
5132+++ b/components/signin/internal/identity_manager/primary_account_policy_manager_impl.cc 5013+++ components/signin/internal/identity_manager/primary_account_policy_manager_impl.cc
5133@@ -10,7 +10,6 @@ 5014@@ -10,7 +10,6 @@
5134 #include "components/signin/internal/identity_manager/primary_account_manager.h" 5015 #include "components/signin/internal/identity_manager/primary_account_manager.h"
5135 #include "components/signin/public/base/signin_client.h" 5016 #include "components/signin/public/base/signin_client.h"
@@ -5157,8 +5038,8 @@
5157 5038
5158 CoreAccountInfo account_info = primary_account_manager->GetPrimaryAccountInfo( 5039 CoreAccountInfo account_info = primary_account_manager->GetPrimaryAccountInfo(
5159 signin::ConsentLevel::kSync); 5040 signin::ConsentLevel::kSync);
5160--- a/components/signin/internal/identity_manager/primary_account_policy_manager_impl.h 5041--- components/signin/internal/identity_manager/primary_account_policy_manager_impl.h.orig
5161+++ b/components/signin/internal/identity_manager/primary_account_policy_manager_impl.h 5042+++ components/signin/internal/identity_manager/primary_account_policy_manager_impl.h
5162@@ -56,9 +56,6 @@ class PrimaryAccountPolicyManagerImpl : 5043@@ -56,9 +56,6 @@ class PrimaryAccountPolicyManagerImpl :
5163 // profile-specific local prefs (like kGoogleServicesUsernamePattern). 5044 // profile-specific local prefs (like kGoogleServicesUsernamePattern).
5164 PrefChangeRegistrar local_state_pref_registrar_; 5045 PrefChangeRegistrar local_state_pref_registrar_;
@@ -5169,8 +5050,8 @@
5169 base::WeakPtrFactory<PrimaryAccountPolicyManagerImpl> weak_pointer_factory_{ 5050 base::WeakPtrFactory<PrimaryAccountPolicyManagerImpl> weak_pointer_factory_{
5170 this}; 5051 this};
5171 }; 5052 };
5172--- a/components/signin/internal/identity_manager/primary_account_policy_manager_impl_unittest.cc 5053--- components/signin/internal/identity_manager/primary_account_policy_manager_impl_unittest.cc.orig
5173+++ b/components/signin/internal/identity_manager/primary_account_policy_manager_impl_unittest.cc 5054+++ components/signin/internal/identity_manager/primary_account_policy_manager_impl_unittest.cc
5174@@ -15,7 +15,6 @@ 5055@@ -15,7 +15,6 @@
5175 #include "components/signin/internal/identity_manager/primary_account_policy_manager_impl.h" 5056 #include "components/signin/internal/identity_manager/primary_account_policy_manager_impl.h"
5176 #include "components/signin/internal/identity_manager/profile_oauth2_token_service.h" 5057 #include "components/signin/internal/identity_manager/profile_oauth2_token_service.h"
@@ -5179,8 +5060,8 @@
5179 #include "components/signin/public/base/test_signin_client.h" 5060 #include "components/signin/public/base/test_signin_client.h"
5180 #include "components/sync_preferences/testing_pref_service_syncable.h" 5061 #include "components/sync_preferences/testing_pref_service_syncable.h"
5181 #include "testing/gtest/include/gtest/gtest.h" 5062 #include "testing/gtest/include/gtest/gtest.h"
5182--- a/components/signin/internal/identity_manager/profile_oauth2_token_service.cc 5063--- components/signin/internal/identity_manager/profile_oauth2_token_service.cc.orig
5183+++ b/components/signin/internal/identity_manager/profile_oauth2_token_service.cc 5064+++ components/signin/internal/identity_manager/profile_oauth2_token_service.cc
5184@@ -12,7 +12,6 @@ 5065@@ -12,7 +12,6 @@
5185 #include "components/prefs/pref_registry_simple.h" 5066 #include "components/prefs/pref_registry_simple.h"
5186 #include "components/signin/internal/identity_manager/profile_oauth2_token_service_delegate.h" 5067 #include "components/signin/internal/identity_manager/profile_oauth2_token_service_delegate.h"
@@ -5198,9 +5079,9 @@
5198 } 5079 }
5199 5080
5200 ProfileOAuth2TokenServiceDelegate* ProfileOAuth2TokenService::GetDelegate() { 5081 ProfileOAuth2TokenServiceDelegate* ProfileOAuth2TokenService::GetDelegate() {
5201--- a/components/signin/internal/identity_manager/profile_oauth2_token_service_delegate_chromeos_unittest.cc 5082--- components/signin/internal/identity_manager/profile_oauth2_token_service_delegate_chromeos_unittest.cc.orig
5202+++ b/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
5203@@ -24,7 +24,6 @@ 5084@@ -25,7 +25,6 @@
5204 #include "components/account_manager_core/mock_account_manager_facade.h" 5085 #include "components/account_manager_core/mock_account_manager_facade.h"
5205 #include "components/signin/internal/identity_manager/account_tracker_service.h" 5086 #include "components/signin/internal/identity_manager/account_tracker_service.h"
5206 #include "components/signin/internal/identity_manager/profile_oauth2_token_service_observer.h" 5087 #include "components/signin/internal/identity_manager/profile_oauth2_token_service_observer.h"
@@ -5208,9 +5089,9 @@
5208 #include "components/signin/public/base/test_signin_client.h" 5089 #include "components/signin/public/base/test_signin_client.h"
5209 #include "components/signin/public/identity_manager/account_info.h" 5090 #include "components/signin/public/identity_manager/account_info.h"
5210 #include "components/sync_preferences/testing_pref_service_syncable.h" 5091 #include "components/sync_preferences/testing_pref_service_syncable.h"
5211--- a/components/signin/public/base/BUILD.gn 5092--- components/signin/public/base/BUILD.gn.orig
5212+++ b/components/signin/public/base/BUILD.gn 5093+++ components/signin/public/base/BUILD.gn
5213@@ -35,8 +35,6 @@ static_library("base") { 5094@@ -34,8 +34,6 @@ static_library("base") {
5214 "signin_client.h", 5095 "signin_client.h",
5215 "signin_metrics.cc", 5096 "signin_metrics.cc",
5216 "signin_metrics.h", 5097 "signin_metrics.h",
@@ -5219,8 +5100,8 @@
5219 "signin_switches.cc", 5100 "signin_switches.cc",
5220 "signin_switches.h", 5101 "signin_switches.h",
5221 ] 5102 ]
5222--- a/components/signin/public/base/device_id_helper.cc 5103--- components/signin/public/base/device_id_helper.cc.orig
5223+++ b/components/signin/public/base/device_id_helper.cc 5104+++ components/signin/public/base/device_id_helper.cc
5224@@ -9,7 +9,6 @@ 5105@@ -9,7 +9,6 @@
5225 #include "base/guid.h" 5106 #include "base/guid.h"
5226 #include "build/chromeos_buildflags.h" 5107 #include "build/chromeos_buildflags.h"
@@ -5265,8 +5146,8 @@
5265 } 5146 }
5266 5147
5267 #endif 5148 #endif
5268--- a/components/signin/public/base/device_id_helper_unittest.cc 5149--- components/signin/public/base/device_id_helper_unittest.cc.orig
5269+++ b/components/signin/public/base/device_id_helper_unittest.cc 5150+++ components/signin/public/base/device_id_helper_unittest.cc
5270@@ -8,7 +8,6 @@ 5151@@ -8,7 +8,6 @@
5271 5152
5272 #include "build/build_config.h" 5153 #include "build/build_config.h"
@@ -5316,8 +5197,8 @@
5316 } 5197 }
5317 5198
5318 #endif 5199 #endif
5319--- a/components/signin/public/identity_manager/identity_utils.cc 5200--- components/signin/public/identity_manager/identity_utils.cc.orig
5320+++ b/components/signin/public/identity_manager/identity_utils.cc 5201+++ components/signin/public/identity_manager/identity_utils.cc
5321@@ -11,7 +11,6 @@ 5202@@ -11,7 +11,6 @@
5322 #include "base/strings/string_util.h" 5203 #include "base/strings/string_util.h"
5323 #include "base/strings/utf_string_conversions.h" 5204 #include "base/strings/utf_string_conversions.h"
@@ -5336,8 +5217,8 @@
5336 } 5217 }
5337 5218
5338 } // namespace signin 5219 } // namespace signin
5339--- a/components/signin/public/identity_manager/identity_utils_unittest.cc 5220--- components/signin/public/identity_manager/identity_utils_unittest.cc.orig
5340+++ b/components/signin/public/identity_manager/identity_utils_unittest.cc 5221+++ components/signin/public/identity_manager/identity_utils_unittest.cc
5341@@ -7,7 +7,6 @@ 5222@@ -7,7 +7,6 @@
5342 #include "components/prefs/pref_registry_simple.h" 5223 #include "components/prefs/pref_registry_simple.h"
5343 #include "components/prefs/pref_service.h" 5224 #include "components/prefs/pref_service.h"
@@ -5346,19 +5227,19 @@
5346 #include "testing/gtest/include/gtest/gtest.h" 5227 #include "testing/gtest/include/gtest/gtest.h"
5347 5228
5348 namespace { 5229 namespace {
5349--- a/components/signin/public/identity_manager/primary_account_mutator_unittest.cc 5230--- components/signin/public/identity_manager/primary_account_mutator_unittest.cc.orig
5350+++ b/components/signin/public/identity_manager/primary_account_mutator_unittest.cc 5231+++ components/signin/public/identity_manager/primary_account_mutator_unittest.cc
5351@@ -16,7 +16,6 @@ 5232@@ -15,7 +15,6 @@
5352 #include "components/signin/public/base/consent_level.h" 5233 #include "build/chromeos_buildflags.h"
5353 #include "components/signin/public/base/signin_buildflags.h" 5234 #include "components/signin/public/base/signin_buildflags.h"
5354 #include "components/signin/public/base/signin_metrics.h" 5235 #include "components/signin/public/base/signin_metrics.h"
5355-#include "components/signin/public/base/signin_pref_names.h" 5236-#include "components/signin/public/base/signin_pref_names.h"
5237 #include "components/signin/public/identity_manager/consent_level.h"
5356 #include "components/signin/public/identity_manager/identity_test_environment.h" 5238 #include "components/signin/public/identity_manager/identity_test_environment.h"
5357 #include "components/signin/public/identity_manager/identity_test_utils.h" 5239 #include "components/signin/public/identity_manager/identity_test_utils.h"
5358 #include "components/sync_preferences/testing_pref_service_syncable.h" 5240--- tools/metrics/histograms/enums.xml.orig
5359--- a/tools/metrics/histograms/enums.xml 5241+++ tools/metrics/histograms/enums.xml
5360+++ b/tools/metrics/histograms/enums.xml 5242@@ -83754,7 +83754,6 @@ Full version information for the fingerp
5361@@ -88989,7 +88989,6 @@ Full version information for the fingerp
5362 <int value="3" label="kRestoreOnStartup"/> 5243 <int value="3" label="kRestoreOnStartup"/>
5363 <int value="4" label="kURLsToRestoreOnStartup"/> 5244 <int value="4" label="kURLsToRestoreOnStartup"/>
5364 <int value="5" label="extensions::pref_names::kExtensions"/> 5245 <int value="5" label="extensions::pref_names::kExtensions"/>
@@ -5366,7 +5247,7 @@
5366 <int value="7" label="kSearchProviderOverrides"/> 5247 <int value="7" label="kSearchProviderOverrides"/>
5367 <int value="8" label="kDefaultSearchProviderSearchURL (Obsolete 12/2016)"/> 5248 <int value="8" label="kDefaultSearchProviderSearchURL (Obsolete 12/2016)"/>
5368 <int value="9" label="kDefaultSearchProviderKeyword (Obsolete 12/2016)"/> 5249 <int value="9" label="kDefaultSearchProviderKeyword (Obsolete 12/2016)"/>
5369@@ -89004,10 +89003,7 @@ Full version information for the fingerp 5250@@ -83769,10 +83768,7 @@ Full version information for the fingerp
5370 <int value="18" label="kSafeBrowsingIncidentsSent"/> 5251 <int value="18" label="kSafeBrowsingIncidentsSent"/>
5371 <int value="19" label="kSwReporterPromptVersion"/> 5252 <int value="19" label="kSwReporterPromptVersion"/>
5372 <int value="20" label="kSwReporterPromptReason"/> 5253 <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 25b55d2..0ef3743 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,5 +1,5 @@
1--- a/components/search_engines/prepopulated_engines.json 1--- components/search_engines/prepopulated_engines.json.orig
2+++ b/components/search_engines/prepopulated_engines.json 2+++ components/search_engines/prepopulated_engines.json
3@@ -113,21 +113,11 @@ 3@@ -113,21 +113,11 @@
4 }, 4 },
5 5
@@ -8,7 +8,7 @@
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: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:clientCacheTimeToLive}{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: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}",
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 5864c1d..50efc58 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--- a/chrome/browser/renderer_context_menu/render_view_context_menu.cc 2--- chrome/browser/renderer_context_menu/render_view_context_menu.cc.orig
3+++ b/chrome/browser/renderer_context_menu/render_view_context_menu.cc 3+++ chrome/browser/renderer_context_menu/render_view_context_menu.cc
4@@ -135,6 +135,7 @@ 4@@ -133,6 +133,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@@ -1725,6 +1726,8 @@ void RenderViewContextMenu::AppendPageIt 12@@ -1751,6 +1752,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@@ -1746,6 +1749,7 @@ void RenderViewContextMenu::AppendPageIt 21@@ -1772,6 +1775,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--- a/components/translate/core/browser/translate_language_list.cc 29--- components/translate/core/browser/translate_language_list.cc.orig
30+++ b/components/translate/core/browser/translate_language_list.cc 30+++ 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--- a/components/translate/core/browser/translate_manager.cc 57--- components/translate/core/browser/translate_manager.cc.orig
58+++ b/components/translate/core/browser/translate_manager.cc 58+++ components/translate/core/browser/translate_manager.cc
59@@ -880,8 +880,9 @@ void TranslateManager::FilterIsTranslate 59@@ -887,8 +887,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--- a/components/translate/core/browser/translate_ranker_impl.cc 71--- components/translate/core/browser/translate_ranker_impl.cc.orig
72+++ b/components/translate/core/browser/translate_ranker_impl.cc 72+++ 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--- a/components/translate/core/browser/translate_script.cc 98--- components/translate/core/browser/translate_script.cc.orig
99+++ b/components/translate/core/browser/translate_script.cc 99+++ 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 59fbb6d..2d6821f 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--- a/chrome/browser/BUILD.gn 10--- chrome/browser/BUILD.gn.orig
11+++ b/chrome/browser/BUILD.gn 11+++ chrome/browser/BUILD.gn
12@@ -2350,6 +2350,7 @@ static_library("browser") { 12@@ -2370,6 +2370,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--- a/chrome/browser/about_flags.cc 20--- chrome/browser/about_flags.cc.orig
21+++ b/chrome/browser/about_flags.cc 21+++ chrome/browser/about_flags.cc
22@@ -150,6 +150,7 @@ 22@@ -151,6 +151,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--- a/chrome/browser/bromite_flag_entries.h 30--- chrome/browser/bromite_flag_entries.h.orig
31+++ b/chrome/browser/bromite_flag_entries.h 31+++ 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--- a/content/browser/BUILD.gn 45--- content/browser/BUILD.gn.orig
46+++ b/content/browser/BUILD.gn 46+++ content/browser/BUILD.gn
47@@ -226,6 +226,7 @@ source_set("browser") { 47@@ -222,6 +222,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--- a/content/browser/renderer_host/render_process_host_impl.cc 55--- content/browser/renderer_host/render_process_host_impl.cc.orig
56+++ b/content/browser/renderer_host/render_process_host_impl.cc 56+++ content/browser/renderer_host/render_process_host_impl.cc
57@@ -74,6 +74,7 @@ 57@@ -68,6 +68,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@@ -3363,6 +3364,8 @@ void RenderProcessHostImpl::PropagateBro 65@@ -3465,6 +3466,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--- a/content/child/BUILD.gn 74--- content/child/BUILD.gn.orig
75+++ b/content/child/BUILD.gn 75+++ 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--- a/content/child/runtime_features.cc 84--- content/child/runtime_features.cc.orig
85+++ b/content/child/runtime_features.cc 85+++ content/child/runtime_features.cc
86@@ -32,6 +32,7 @@ 86@@ -31,6 +31,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@@ -486,6 +487,10 @@ void SetRuntimeFeaturesFromCommandLine(c 94@@ -466,6 +467,10 @@ void SetRuntimeFeaturesFromCommandLine(c
95 {wrf::EnableWebGPU, switches::kEnableUnsafeWebGPU, true},
95 {wrf::ForceOverlayFullscreenVideo, switches::kForceOverlayFullscreenVideo, 96 {wrf::ForceOverlayFullscreenVideo, switches::kForceOverlayFullscreenVideo,
96 true}, 97 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--- a/third_party/blink/public/platform/web_runtime_features.h 105--- third_party/blink/public/platform/web_runtime_features.h.orig
106+++ b/third_party/blink/public/platform/web_runtime_features.h 106+++ third_party/blink/public/platform/web_runtime_features.h
107@@ -212,6 +212,8 @@ class WebRuntimeFeatures { 107@@ -218,6 +218,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,8 +113,8 @@
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--- a/third_party/blink/renderer/core/dom/document.cc 116--- third_party/blink/renderer/core/dom/document.cc.orig
117+++ b/third_party/blink/renderer/core/dom/document.cc 117+++ third_party/blink/renderer/core/dom/document.cc
118@@ -42,6 +42,7 @@ 118@@ -42,6 +42,7 @@
119 #include "base/containers/contains.h" 119 #include "base/containers/contains.h"
120 #include "base/debug/dump_without_crashing.h" 120 #include "base/debug/dump_without_crashing.h"
@@ -123,7 +123,7 @@
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@@ -871,6 +872,14 @@ Range* Document::CreateRangeAdjustedToTr 126@@ -855,6 +856,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@@ -2166,6 +2175,15 @@ void Document::UpdateStyleAndLayoutTreeF 141@@ -2145,6 +2154,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--- a/third_party/blink/renderer/core/dom/document.h 157--- third_party/blink/renderer/core/dom/document.h.orig
158+++ b/third_party/blink/renderer/core/dom/document.h 158+++ third_party/blink/renderer/core/dom/document.h
159@@ -478,6 +478,10 @@ class CORE_EXPORT Document : public Cont 159@@ -456,6 +456,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@@ -2137,6 +2141,9 @@ class CORE_EXPORT Document : public Cont 170@@ -2078,6 +2082,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--- a/third_party/blink/renderer/core/dom/element.cc 180--- third_party/blink/renderer/core/dom/element.cc.orig
181+++ b/third_party/blink/renderer/core/dom/element.cc 181+++ third_party/blink/renderer/core/dom/element.cc
182@@ -2090,6 +2090,11 @@ DOMRectList* Element::getClientRects() { 182@@ -2114,6 +2114,11 @@ DOMRectList* Element::getClientRects() {
183 DCHECK(element_layout_object); 183 DCHECK(element_layout_object);
184 GetDocument().AdjustQuadsForScrollAndAbsoluteZoom(quads, 184 GetDocument().AdjustFloatQuadsForScrollAndAbsoluteZoom(
185 *element_layout_object); 185 quads, *element_layout_object);
186+ if (RuntimeEnabledFeatures::FingerprintingClientRectsNoiseEnabled()) { 186+ if (RuntimeEnabledFeatures::FingerprintingClientRectsNoiseEnabled()) {
187+ for (gfx::QuadF& quad : quads) { 187+ for (FloatQuad& 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@@ -2107,6 +2112,9 @@ gfx::RectF Element::GetBoundingClientRec 194@@ -2131,6 +2136,9 @@ FloatRect Element::GetBoundingClientRect
195 DCHECK(element_layout_object); 195 DCHECK(element_layout_object);
196 GetDocument().AdjustRectForScrollAndAbsoluteZoom(result, 196 GetDocument().AdjustFloatRectForScrollAndAbsoluteZoom(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--- a/third_party/blink/renderer/core/dom/range.cc 204--- third_party/blink/renderer/core/dom/range.cc.orig
205+++ b/third_party/blink/renderer/core/dom/range.cc 205+++ 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<gfx::QuadF> quads; 207 Vector<FloatQuad> quads;
208 GetBorderAndTextQuads(quads); 208 GetBorderAndTextQuads(quads);
209 209
210+ if (RuntimeEnabledFeatures::FingerprintingClientRectsNoiseEnabled()) { 210+ if (RuntimeEnabledFeatures::FingerprintingClientRectsNoiseEnabled()) {
211+ for (gfx::QuadF& quad : quads) { 211+ for (FloatQuad& 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::FromRectF(BoundingRect()); 220- return DOMRect::FromFloatRect(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::FromRectF(rect); 225+ return DOMRect::FromFloatRect(rect);
226 } 226 }
227 227
228 // TODO(editing-dev): We should make 228 // TODO(editing-dev): We should make
229--- a/third_party/blink/renderer/core/html/canvas/text_metrics.cc 229--- third_party/blink/renderer/core/html/canvas/text_metrics.cc.orig
230+++ b/third_party/blink/renderer/core/html/canvas/text_metrics.cc 230+++ 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--- a/third_party/blink/renderer/core/html/canvas/text_metrics.h 256--- third_party/blink/renderer/core/html/canvas/text_metrics.h.orig
257+++ b/third_party/blink/renderer/core/html/canvas/text_metrics.h 257+++ 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--- a/third_party/blink/renderer/modules/canvas/canvas2d/canvas_rendering_context_2d.cc 267--- third_party/blink/renderer/modules/canvas/canvas2d/canvas_rendering_context_2d.cc.orig
268+++ b/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
269@@ -923,9 +923,15 @@ TextMetrics* CanvasRenderingContext2D::m 269@@ -912,9 +912,15 @@ TextMetrics* CanvasRenderingContext2D::m
270 TextDirection direction = 270 TextDirection direction =
271 ToTextDirection(GetState().GetDirection(), canvas()); 271 ToTextDirection(GetState().GetDirection(), canvas());
272 272
@@ -283,19 +283,19 @@
283 } 283 }
284 284
285 void CanvasRenderingContext2D::fillFormattedText( 285 void CanvasRenderingContext2D::fillFormattedText(
286--- a/third_party/blink/renderer/platform/BUILD.gn 286--- third_party/blink/renderer/platform/BUILD.gn.orig
287+++ b/third_party/blink/renderer/platform/BUILD.gn 287+++ third_party/blink/renderer/platform/BUILD.gn
288@@ -1665,6 +1665,7 @@ component("platform") { 288@@ -1686,6 +1686,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 "//components/webrtc:net_address_utils", 295 "//crypto",
296--- a/third_party/blink/renderer/platform/exported/web_runtime_features.cc 296--- third_party/blink/renderer/platform/exported/web_runtime_features.cc.orig
297+++ b/third_party/blink/renderer/platform/exported/web_runtime_features.cc 297+++ third_party/blink/renderer/platform/exported/web_runtime_features.cc
298@@ -659,4 +659,12 @@ void WebRuntimeFeatures::EnableCLSScroll 298@@ -689,4 +689,12 @@ void WebRuntimeFeatures::EnableCLSScroll
299 RuntimeEnabledFeatures::SetCLSScrollAnchoringEnabled(enable); 299 RuntimeEnabledFeatures::SetCLSScrollAnchoringEnabled(enable);
300 } 300 }
301 301
@@ -308,10 +308,10 @@
308+} 308+}
309+ 309+
310 } // namespace blink 310 } // namespace blink
311--- a/third_party/blink/renderer/platform/runtime_enabled_features.json5 311--- third_party/blink/renderer/platform/runtime_enabled_features.json5.orig
312+++ b/third_party/blink/renderer/platform/runtime_enabled_features.json5 312+++ third_party/blink/renderer/platform/runtime_enabled_features.json5
313@@ -1118,6 +1118,12 @@ 313@@ -1076,6 +1076,12 @@
314 name: "Focusgroup", 314 origin_trial_feature_name: "Fledge",
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 e7b6dce..6ebc7a1 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--- a/chrome/browser/bromite_flag_entries.h 24--- chrome/browser/bromite_flag_entries.h.orig
25+++ b/chrome/browser/bromite_flag_entries.h 25+++ 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--- a/content/browser/renderer_host/render_process_host_impl.cc 35--- content/browser/renderer_host/render_process_host_impl.cc.orig
36+++ b/content/browser/renderer_host/render_process_host_impl.cc 36+++ content/browser/renderer_host/render_process_host_impl.cc
37@@ -3366,6 +3366,7 @@ void RenderProcessHostImpl::PropagateBro 37@@ -3468,6 +3468,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--- a/content/child/runtime_features.cc 45--- content/child/runtime_features.cc.orig
46+++ b/content/child/runtime_features.cc 46+++ content/child/runtime_features.cc
47@@ -491,6 +491,8 @@ void SetRuntimeFeaturesFromCommandLine(c 47@@ -471,6 +471,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--- a/third_party/blink/public/platform/web_runtime_features.h 56--- third_party/blink/public/platform/web_runtime_features.h.orig
57+++ b/third_party/blink/public/platform/web_runtime_features.h 57+++ third_party/blink/public/platform/web_runtime_features.h
58@@ -214,6 +214,7 @@ class WebRuntimeFeatures { 58@@ -220,6 +220,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--- a/third_party/blink/renderer/modules/canvas/canvas2d/base_rendering_context_2d.cc 66--- third_party/blink/renderer/modules/canvas/canvas2d/base_rendering_context_2d.cc.orig
67+++ b/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
68@@ -29,6 +29,7 @@ 68@@ -30,6 +30,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/garbage_collected.h" 75 #include "third_party/blink/renderer/platform/heap/heap.h"
76@@ -2049,6 +2050,9 @@ ImageData* BaseRenderingContext2D::getIm 76@@ -2311,6 +2312,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--- a/third_party/blink/renderer/platform/BUILD.gn 86--- third_party/blink/renderer/platform/BUILD.gn.orig
87+++ b/third_party/blink/renderer/platform/BUILD.gn 87+++ third_party/blink/renderer/platform/BUILD.gn
88@@ -1623,7 +1623,9 @@ component("platform") { 88@@ -1645,7 +1645,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--- a/third_party/blink/renderer/platform/exported/web_runtime_features.cc 99--- third_party/blink/renderer/platform/exported/web_runtime_features.cc.orig
100+++ b/third_party/blink/renderer/platform/exported/web_runtime_features.cc 100+++ third_party/blink/renderer/platform/exported/web_runtime_features.cc
101@@ -667,4 +667,8 @@ void WebRuntimeFeatures::EnableFingerpri 101@@ -697,4 +697,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--- a/third_party/blink/renderer/platform/graphics/image_data_buffer.cc 110--- third_party/blink/renderer/platform/graphics/image_data_buffer.cc.orig
111+++ b/third_party/blink/renderer/platform/graphics/image_data_buffer.cc 111+++ 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--- a/third_party/blink/renderer/platform/graphics/static_bitmap_image.cc 133--- third_party/blink/renderer/platform/graphics/static_bitmap_image.cc.orig
134+++ b/third_party/blink/renderer/platform/graphics/static_bitmap_image.cc 134+++ 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"
155 #include "v8/include/v8.h" 154 #include "v8/include/v8.h"
156 155
157@@ -79,4 +83,154 @@ void StaticBitmapImage::DrawHelper(cc::P 156 namespace blink {
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,8 +309,8 @@ approach to change color components.
309+#undef shuffleComponent 309+#undef shuffleComponent
310+ 310+
311 } // namespace blink 311 } // namespace blink
312--- a/third_party/blink/renderer/platform/graphics/static_bitmap_image.h 312--- third_party/blink/renderer/platform/graphics/static_bitmap_image.h.orig
313+++ b/third_party/blink/renderer/platform/graphics/static_bitmap_image.h 313+++ third_party/blink/renderer/platform/graphics/static_bitmap_image.h
314@@ -36,6 +36,8 @@ class PLATFORM_EXPORT StaticBitmapImage 314@@ -36,6 +36,8 @@ class PLATFORM_EXPORT StaticBitmapImage
315 315
316 StaticBitmapImage(ImageOrientation orientation) : orientation_(orientation) {} 316 StaticBitmapImage(ImageOrientation orientation) : orientation_(orientation) {}
@@ -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--- a/third_party/blink/renderer/platform/runtime_enabled_features.json5 323--- third_party/blink/renderer/platform/runtime_enabled_features.json5.orig
324+++ b/third_party/blink/renderer/platform/runtime_enabled_features.json5 324+++ third_party/blink/renderer/platform/runtime_enabled_features.json5
325@@ -1124,6 +1124,9 @@ 325@@ -1082,6 +1082,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 16055fe..65b1887 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--- a/chrome/browser/BUILD.gn 18--- chrome/browser/BUILD.gn.orig
19+++ b/chrome/browser/BUILD.gn 19+++ chrome/browser/BUILD.gn
20@@ -2102,6 +2102,7 @@ static_library("browser") { 20@@ -2126,6 +2126,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--- a/chrome/browser/bromite_flag_choices.h 28--- chrome/browser/bromite_flag_choices.h.orig
29+++ b/chrome/browser/bromite_flag_choices.h 29+++ 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--- a/chrome/browser/bromite_flag_entries.h 39--- chrome/browser/bromite_flag_entries.h.orig
40+++ b/chrome/browser/bromite_flag_entries.h 40+++ 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,22 +47,24 @@ 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--- a/chrome/browser/browser_process_impl.cc 50--- chrome/browser/browser_process_impl.cc.orig
51+++ b/chrome/browser/browser_process_impl.cc 51+++ chrome/browser/browser_process_impl.cc
52@@ -19,10 +19,12 @@ 52@@ -19,12 +19,14 @@
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"
57 #include "base/memory/ptr_util.h" 58 #include "base/memory/ptr_util.h"
58 #include "base/metrics/histogram_macros.h" 59 #include "base/metrics/histogram_macros.h"
59 #include "base/path_service.h" 60 #include "base/path_service.h"
60 #include "base/run_loop.h" 61 #include "base/run_loop.h"
62 #include "base/single_thread_task_runner.h"
61+#include "base/strings/string_number_conversions.h" 63+#include "base/strings/string_number_conversions.h"
62 #include "base/synchronization/waitable_event.h" 64 #include "base/synchronization/waitable_event.h"
63 #include "base/task/single_thread_task_runner.h"
64 #include "base/task/task_traits.h" 65 #include "base/task/task_traits.h"
65@@ -102,6 +104,7 @@ 66 #include "base/task/thread_pool.h"
67@@ -103,6 +105,7 @@
66 #include "components/metrics/metrics_service.h" 68 #include "components/metrics/metrics_service.h"
67 #include "components/metrics_services_manager/metrics_services_manager.h" 69 #include "components/metrics_services_manager/metrics_services_manager.h"
68 #include "components/metrics_services_manager/metrics_services_manager_client.h" 70 #include "components/metrics_services_manager/metrics_services_manager_client.h"
@@ -70,7 +72,7 @@ with limited CPU/memory resources and it is disabled by default.
70 #include "components/network_time/network_time_tracker.h" 72 #include "components/network_time/network_time_tracker.h"
71 #include "components/permissions/permissions_client.h" 73 #include "components/permissions/permissions_client.h"
72 #include "components/policy/core/common/policy_service.h" 74 #include "components/policy/core/common/policy_service.h"
73@@ -134,6 +137,7 @@ 75@@ -135,6 +138,7 @@
74 #include "media/media_buildflags.h" 76 #include "media/media_buildflags.h"
75 #include "mojo/public/cpp/bindings/pending_receiver.h" 77 #include "mojo/public/cpp/bindings/pending_receiver.h"
76 #include "net/log/net_log.h" 78 #include "net/log/net_log.h"
@@ -78,9 +80,9 @@ with limited CPU/memory resources and it is disabled by default.
78 #include "ppapi/buildflags/buildflags.h" 80 #include "ppapi/buildflags/buildflags.h"
79 #include "printing/buildflags/buildflags.h" 81 #include "printing/buildflags/buildflags.h"
80 #include "services/network/public/cpp/features.h" 82 #include "services/network/public/cpp/features.h"
81@@ -343,6 +347,18 @@ void BrowserProcessImpl::Init() { 83@@ -345,6 +349,18 @@ void BrowserProcessImpl::Init() {
82 pref_change_registrar_.Add(metrics::prefs::kMetricsReportingEnabled,
83 base::BindRepeating(&ApplyMetricsReportingPolicy)); 84 base::BindRepeating(&ApplyMetricsReportingPolicy));
85 #endif
84 86
85+ int max_connections_per_host = 0; 87+ int max_connections_per_host = 0;
86+ auto switch_value = base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( 88+ auto switch_value = base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
@@ -97,11 +99,11 @@ with limited CPU/memory resources and it is disabled by default.
97 DCHECK(!webrtc_event_log_manager_); 99 DCHECK(!webrtc_event_log_manager_);
98 webrtc_event_log_manager_ = WebRtcEventLogManager::CreateSingletonInstance(); 100 webrtc_event_log_manager_ = WebRtcEventLogManager::CreateSingletonInstance();
99 101
100--- a/chrome/browser/flag_descriptions.cc 102--- chrome/browser/flag_descriptions.cc.orig
101+++ b/chrome/browser/flag_descriptions.cc 103+++ chrome/browser/flag_descriptions.cc
102@@ -1630,6 +1630,10 @@ const char kLogJsConsoleMessagesDescript 104@@ -1621,6 +1621,10 @@ const char kMediaHistoryDescription[] =
103 "Enable logging JS console messages in system logs, please note that they " 105 "Enables Media History which records data around media playbacks on "
104 "may contain PII."; 106 "websites.";
105 107
106+const char kMaxConnectionsPerHostName[] = "Maximum connections per host"; 108+const char kMaxConnectionsPerHostName[] = "Maximum connections per host";
107+const char kMaxConnectionsPerHostDescription[] = 109+const char kMaxConnectionsPerHostDescription[] =
@@ -110,11 +112,11 @@ with limited CPU/memory resources and it is disabled by default.
110 const char kMediaRouterCastAllowAllIPsName[] = 112 const char kMediaRouterCastAllowAllIPsName[] =
111 "Connect to Cast devices on all IP addresses"; 113 "Connect to Cast devices on all IP addresses";
112 const char kMediaRouterCastAllowAllIPsDescription[] = 114 const char kMediaRouterCastAllowAllIPsDescription[] =
113--- a/chrome/browser/flag_descriptions.h 115--- chrome/browser/flag_descriptions.h.orig
114+++ b/chrome/browser/flag_descriptions.h 116+++ chrome/browser/flag_descriptions.h
115@@ -931,6 +931,9 @@ extern const char kLensCameraAssistedSea 117@@ -930,6 +930,9 @@ extern const char kLogJsConsoleMessagesD
116 extern const char kLogJsConsoleMessagesName[]; 118 extern const char kMediaHistoryName[];
117 extern const char kLogJsConsoleMessagesDescription[]; 119 extern const char kMediaHistoryDescription[];
118 120
119+extern const char kMaxConnectionsPerHostName[]; 121+extern const char kMaxConnectionsPerHostName[];
120+extern const char kMaxConnectionsPerHostDescription[]; 122+extern const char kMaxConnectionsPerHostDescription[];
@@ -122,8 +124,8 @@ with limited CPU/memory resources and it is disabled by default.
122 extern const char kMediaRouterCastAllowAllIPsName[]; 124 extern const char kMediaRouterCastAllowAllIPsName[];
123 extern const char kMediaRouterCastAllowAllIPsDescription[]; 125 extern const char kMediaRouterCastAllowAllIPsDescription[];
124 126
125--- a/components/network_session_configurator/common/network_features.cc 127--- components/network_session_configurator/common/network_features.cc.orig
126+++ b/components/network_session_configurator/common/network_features.cc 128+++ components/network_session_configurator/common/network_features.cc
127@@ -8,4 +8,7 @@ 129@@ -8,4 +8,7 @@
128 130
129 namespace features { 131 namespace features {
@@ -132,8 +134,8 @@ with limited CPU/memory resources and it is disabled by default.
132+ kMaxConnectionsPerHostChoice15[] = "15"; 134+ kMaxConnectionsPerHostChoice15[] = "15";
133+ 135+
134 } // namespace features 136 } // namespace features
135--- a/components/network_session_configurator/common/network_features.h 137--- components/network_session_configurator/common/network_features.h.orig
136+++ b/components/network_session_configurator/common/network_features.h 138+++ components/network_session_configurator/common/network_features.h
137@@ -10,6 +10,10 @@ 139@@ -10,6 +10,10 @@
138 140
139 namespace features { 141 namespace features {
@@ -145,8 +147,8 @@ with limited CPU/memory resources and it is disabled by default.
145 } // namespace features 147 } // namespace features
146 148
147 #endif // COMPONENTS_NETWORK_SESSION_CONFIGURATOR_COMMON_NETWORK_FEATURES_H_ 149 #endif // COMPONENTS_NETWORK_SESSION_CONFIGURATOR_COMMON_NETWORK_FEATURES_H_
148--- a/components/network_session_configurator/common/network_switch_list.h 150--- components/network_session_configurator/common/network_switch_list.h.orig
149+++ b/components/network_session_configurator/common/network_switch_list.h 151+++ components/network_session_configurator/common/network_switch_list.h
150@@ -19,6 +19,10 @@ NETWORK_SWITCH(kEnableUserAlternateProto 152@@ -19,6 +19,10 @@ NETWORK_SWITCH(kEnableUserAlternateProto
151 // Enables the QUIC protocol. This is a temporary testing flag. 153 // Enables the QUIC protocol. This is a temporary testing flag.
152 NETWORK_SWITCH(kEnableQuic, "enable-quic") 154 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 5ed977e..1c9d44b 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--- a/chrome/browser/ui/startup/infobar_utils.cc 4--- chrome/browser/ui/startup/startup_browser_creator_impl.cc.orig
5+++ b/chrome/browser/ui/startup/infobar_utils.cc 5+++ chrome/browser/ui/startup/startup_browser_creator_impl.cc
6@@ -113,9 +113,6 @@ void AddInfoBarsIfNecessary(Browser* bro 6@@ -672,9 +672,6 @@ void StartupBrowserCreatorImpl::AddInfoB
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 322bd38..873aeae 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--- a/chrome/browser/profiles/profile_manager.cc 5--- chrome/browser/profiles/profile_manager.cc.orig
6+++ b/chrome/browser/profiles/profile_manager.cc 6+++ chrome/browser/profiles/profile_manager.cc
7@@ -1379,7 +1379,7 @@ void ProfileManager::InitProfileUserPref 7@@ -1310,7 +1310,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 !BUILDFLAG(IS_ANDROID) 11-#if !defined(OS_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 a4e9922..d9aaa94 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--- a/components/error_page_strings.grdp 5--- components/error_page_strings.grdp.orig
6+++ b/components/error_page_strings.grdp 6+++ 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 77e0110..ac0a2b0 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--- a/tools/gn/bootstrap/bootstrap.py 4--- tools/gn/bootstrap/bootstrap.py.orig
5+++ b/tools/gn/bootstrap/bootstrap.py 5+++ 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 d5ef7dc..d62ef29 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--- a/chrome/browser/background/background_mode_manager.cc 2--- chrome/browser/background/background_mode_manager.cc.orig
3+++ b/chrome/browser/background/background_mode_manager.cc 3+++ 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--- a/chrome/browser/chrome_content_browser_client.cc 13--- chrome/browser/chrome_content_browser_client.cc.orig
14+++ b/chrome/browser/chrome_content_browser_client.cc 14+++ chrome/browser/chrome_content_browser_client.cc
15@@ -1264,7 +1264,7 @@ void ChromeContentBrowserClient::Registe 15@@ -1238,7 +1238,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,9 +21,31 @@
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--- a/chrome/browser/net/profile_network_context_service.cc 24--- chrome/browser/net/prediction_options.cc.orig
25+++ b/chrome/browser/net/profile_network_context_service.cc 25+++ chrome/browser/net/prediction_options.cc
26@@ -337,7 +337,7 @@ void ProfileNetworkContextService::Updat 26@@ -31,7 +31,7 @@ NetworkPredictionStatus CanPrefetchAndPr
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
27 void ProfileNetworkContextService::RegisterProfilePrefs( 49 void ProfileNetworkContextService::RegisterProfilePrefs(
28 user_prefs::PrefRegistrySyncable* registry) { 50 user_prefs::PrefRegistrySyncable* registry) {
29 registry->RegisterBooleanPref( 51 registry->RegisterBooleanPref(
@@ -32,30 +54,19 @@
32 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 54 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
33 registry->RegisterBooleanPref(prefs::kQuicAllowed, true); 55 registry->RegisterBooleanPref(prefs::kQuicAllowed, true);
34 registry->RegisterBooleanPref(prefs::kGloballyScopeHTTPAuthCacheEnabled, 56 registry->RegisterBooleanPref(prefs::kGloballyScopeHTTPAuthCacheEnabled,
35--- a/chrome/browser/prefetch/prefetch_prefs.h 57--- chrome/browser/profiles/profile.cc.orig
36+++ b/chrome/browser/prefetch/prefetch_prefs.h 58+++ chrome/browser/profiles/profile.cc
37@@ -22,7 +22,7 @@ enum class NetworkPredictionOptions { 59@@ -276,7 +276,7 @@ const char Profile::kProfileKey[] = "__P
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@@ -275,7 +275,7 @@ const char Profile::kProfileKey[] = "__P
49 void Profile::RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { 60 void Profile::RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
50 registry->RegisterBooleanPref( 61 registry->RegisterBooleanPref(
51 prefs::kSearchSuggestEnabled, 62 prefs::kSearchSuggestEnabled,
52- true, 63- true,
53+ false, 64+ false,
54 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 65 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
55 #if BUILDFLAG(IS_ANDROID) 66 #if defined(OS_ANDROID)
56 registry->RegisterStringPref( 67 registry->RegisterStringPref(
57--- a/chrome/browser/resources/settings/reset_page/reset_profile_dialog.html 68--- chrome/browser/resources/settings/reset_page/reset_profile_dialog.html.orig
58+++ b/chrome/browser/resources/settings/reset_page/reset_profile_dialog.html 69+++ chrome/browser/resources/settings/reset_page/reset_profile_dialog.html
59@@ -36,7 +36,7 @@ 70@@ -36,7 +36,7 @@
60 </cr-button> 71 </cr-button>
61 </div> 72 </div>
@@ -65,9 +76,9 @@
65 $i18nRaw{resetPageFeedback}</cr-checkbox> 76 $i18nRaw{resetPageFeedback}</cr-checkbox>
66 </div> 77 </div>
67 </cr-dialog> 78 </cr-dialog>
68--- a/chrome/browser/signin/account_consistency_mode_manager.cc 79--- chrome/browser/signin/account_consistency_mode_manager.cc.orig
69+++ b/chrome/browser/signin/account_consistency_mode_manager.cc 80+++ chrome/browser/signin/account_consistency_mode_manager.cc
70@@ -110,7 +110,7 @@ AccountConsistencyModeManager::~AccountC 81@@ -111,7 +111,7 @@ AccountConsistencyModeManager::~AccountC
71 // static 82 // static
72 void AccountConsistencyModeManager::RegisterProfilePrefs( 83 void AccountConsistencyModeManager::RegisterProfilePrefs(
73 user_prefs::PrefRegistrySyncable* registry) { 84 user_prefs::PrefRegistrySyncable* registry) {
@@ -76,8 +87,8 @@
76 } 87 }
77 88
78 // static 89 // static
79--- a/chrome/browser/ui/browser_ui_prefs.cc 90--- chrome/browser/ui/browser_ui_prefs.cc.orig
80+++ b/chrome/browser/ui/browser_ui_prefs.cc 91+++ chrome/browser/ui/browser_ui_prefs.cc
81@@ -77,11 +77,11 @@ void RegisterBrowserUserPrefs(user_prefs 92@@ -77,11 +77,11 @@ void RegisterBrowserUserPrefs(user_prefs
82 registry->RegisterBooleanPref(prefs::kWebAppCreateInAppsMenu, true); 93 registry->RegisterBooleanPref(prefs::kWebAppCreateInAppsMenu, true);
83 registry->RegisterBooleanPref(prefs::kWebAppCreateInQuickLaunchBar, true); 94 registry->RegisterBooleanPref(prefs::kWebAppCreateInQuickLaunchBar, true);
@@ -92,8 +103,19 @@
92 registry->RegisterDictionaryPref(prefs::kBrowserWindowPlacement); 103 registry->RegisterDictionaryPref(prefs::kBrowserWindowPlacement);
93 registry->RegisterDictionaryPref(prefs::kBrowserWindowPlacementPopup); 104 registry->RegisterDictionaryPref(prefs::kBrowserWindowPlacementPopup);
94 registry->RegisterDictionaryPref(prefs::kAppWindowPlacement); 105 registry->RegisterDictionaryPref(prefs::kAppWindowPlacement);
95--- a/components/autofill/core/common/autofill_prefs.cc 106--- chrome/service/cloud_print/connector_settings.cc.orig
96+++ b/components/autofill/core/common/autofill_prefs.cc 107+++ chrome/service/cloud_print/connector_settings.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
97@@ -131,10 +131,10 @@ const char kAutocompleteLastVersionReten 119@@ -131,10 +131,10 @@ const char kAutocompleteLastVersionReten
98 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { 120 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
99 // Synced prefs. Used for cross-device choices, e.g., credit card Autofill. 121 // Synced prefs. Used for cross-device choices, e.g., credit card Autofill.
@@ -116,9 +138,9 @@
116 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 138 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
117 registry->RegisterStringPref( 139 registry->RegisterStringPref(
118 prefs::kAutofillProfileValidity, "", 140 prefs::kAutofillProfileValidity, "",
119--- a/components/bookmarks/browser/bookmark_utils.cc 141--- components/bookmarks/browser/bookmark_utils.cc.orig
120+++ b/components/bookmarks/browser/bookmark_utils.cc 142+++ components/bookmarks/browser/bookmark_utils.cc
121@@ -438,7 +438,7 @@ bool DoesBookmarkContainWords(const std: 143@@ -437,7 +437,7 @@ bool DoesBookmarkContainWords(const std:
122 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { 144 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
123 registry->RegisterBooleanPref( 145 registry->RegisterBooleanPref(
124 prefs::kShowBookmarkBar, 146 prefs::kShowBookmarkBar,
@@ -127,8 +149,8 @@
127 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 149 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
128 registry->RegisterBooleanPref(prefs::kEditBookmarksEnabled, true); 150 registry->RegisterBooleanPref(prefs::kEditBookmarksEnabled, true);
129 registry->RegisterBooleanPref( 151 registry->RegisterBooleanPref(
130--- a/components/bookmarks/browser/features.cc 152--- components/bookmarks/browser/features.cc.orig
131+++ b/components/bookmarks/browser/features.cc 153+++ components/bookmarks/browser/features.cc
132@@ -10,7 +10,7 @@ namespace features { 154@@ -10,7 +10,7 @@ namespace features {
133 // Changes the apps shortcut on the bookmarks bar to default to off. 155 // Changes the apps shortcut on the bookmarks bar to default to off.
134 // https://crbug.com/1236793 156 // https://crbug.com/1236793
@@ -138,8 +160,8 @@
138 160
139 } // namespace features 161 } // namespace features
140 } // namespace bookmarks 162 } // namespace bookmarks
141--- a/components/content_settings/core/browser/cookie_settings.cc 163--- components/content_settings/core/browser/cookie_settings.cc.orig
142+++ b/components/content_settings/core/browser/cookie_settings.cc 164+++ components/content_settings/core/browser/cookie_settings.cc
143@@ -63,7 +63,7 @@ void CookieSettings::RegisterProfilePref 165@@ -63,7 +63,7 @@ void CookieSettings::RegisterProfilePref
144 user_prefs::PrefRegistrySyncable* registry) { 166 user_prefs::PrefRegistrySyncable* registry) {
145 registry->RegisterIntegerPref( 167 registry->RegisterIntegerPref(
@@ -149,8 +171,8 @@
149 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); 171 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF);
150 } 172 }
151 173
152--- a/components/password_manager/core/browser/password_manager.cc 174--- components/password_manager/core/browser/password_manager.cc.orig
153+++ b/components/password_manager/core/browser/password_manager.cc 175+++ components/password_manager/core/browser/password_manager.cc
154@@ -204,10 +204,10 @@ bool HasMutedCredentials(base::span<cons 176@@ -204,10 +204,10 @@ bool HasMutedCredentials(base::span<cons
155 void PasswordManager::RegisterProfilePrefs( 177 void PasswordManager::RegisterProfilePrefs(
156 user_prefs::PrefRegistrySyncable* registry) { 178 user_prefs::PrefRegistrySyncable* registry) {
@@ -164,8 +186,8 @@
164 user_prefs::PrefRegistrySyncable::SYNCABLE_PRIORITY_PREF); 186 user_prefs::PrefRegistrySyncable::SYNCABLE_PRIORITY_PREF);
165 registry->RegisterStringPref(prefs::kSyncPasswordHash, std::string(), 187 registry->RegisterStringPref(prefs::kSyncPasswordHash, std::string(),
166 PrefRegistry::NO_REGISTRATION_FLAGS); 188 PrefRegistry::NO_REGISTRATION_FLAGS);
167--- a/components/payments/core/payment_prefs.cc 189--- components/payments/core/payment_prefs.cc.orig
168+++ b/components/payments/core/payment_prefs.cc 190+++ components/payments/core/payment_prefs.cc
169@@ -16,7 +16,7 @@ const char kCanMakePaymentEnabled[] = "p 191@@ -16,7 +16,7 @@ const char kCanMakePaymentEnabled[] = "p
170 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { 192 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
171 registry->RegisterBooleanPref(kPaymentsFirstTransactionCompleted, false); 193 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 288c6f5..9d21b6f 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--- a/chrome/browser/search/search.cc 1--- chrome/browser/search/search.cc.orig
2+++ b/chrome/browser/search/search.cc 2+++ chrome/browser/search/search.cc
3@@ -184,26 +184,7 @@ struct NewTabURLDetails { 3@@ -182,26 +182,7 @@ struct NewTabURLDetails {
4 : chrome::kChromeUINewTabPageThirdPartyURL); 4 : chrome::kChromeUINewTabPageThirdPartyURL);
5 #endif 5 #endif
6 6
@@ -28,8 +28,8 @@
28 } 28 }
29 29
30 const GURL url; 30 const GURL url;
31--- a/components/ntp_snippets/features.cc 31--- components/ntp_snippets/features.cc.orig
32+++ b/components/ntp_snippets/features.cc 32+++ components/ntp_snippets/features.cc
33@@ -39,7 +39,7 @@ const base::Feature* const kAllFeatures[ 33@@ -39,7 +39,7 @@ const base::Feature* const kAllFeatures[
34 &kOptionalImagesEnabledFeature}; 34 &kOptionalImagesEnabledFeature};
35 35
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 c5a74c7..0b14cd8 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--- a/chrome/browser/ui/startup/google_api_keys_infobar_delegate.cc 1--- chrome/browser/ui/startup/google_api_keys_infobar_delegate.cc.orig
2+++ b/chrome/browser/ui/startup/google_api_keys_infobar_delegate.cc 2+++ 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 6ee4d73..ff72a53 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--- a/sandbox/linux/BUILD.gn 1--- sandbox/linux/BUILD.gn.orig
2+++ b/sandbox/linux/BUILD.gn 2+++ sandbox/linux/BUILD.gn
3@@ -296,6 +296,12 @@ if (is_linux || is_chromeos) { 3@@ -327,6 +327,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 dd03502..4790f65 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--- a/chrome/browser/ui/startup/startup_tab_provider.cc 1--- chrome/browser/ui/startup/startup_tab_provider.cc.orig
2+++ b/chrome/browser/ui/startup/startup_tab_provider.cc 2+++ chrome/browser/ui/startup/startup_tab_provider.cc
3@@ -108,7 +108,7 @@ bool ValidateUrl(const GURL& url) { 3@@ -105,7 +105,7 @@ bool ValidateUrl(const GURL& url) {
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 e69d4da..ded3df9 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--- a/services/device/battery/battery_status_service.cc 1--- services/device/battery/battery_status_service.cc.orig
2+++ b/services/device/battery/battery_status_service.cc 2+++ 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--- a/services/device/battery/battery_status_service.h 85--- services/device/battery/battery_status_service.h.orig
86+++ b/services/device/battery/battery_status_service.h 86+++ services/device/battery/battery_status_service.h
87@@ -59,15 +59,10 @@ class BatteryStatusService { 87@@ -60,15 +60,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 5f6dedb..8f794fe 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,15 +7,16 @@ 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(-)
10 13
11--- a/net/cert/ev_root_ca_metadata.cc 14--- net/cert/ev_root_ca_metadata.cc.orig
12+++ b/net/cert/ev_root_ca_metadata.cc 15+++ net/cert/ev_root_ca_metadata.cc
13@@ -41,7 +41,17 @@ struct EVMetadata { 16@@ -41,6 +41,16 @@ struct EVMetadata {
14 const base::StringPiece policy_oids[kMaxOIDsPerCA];
15 };
16 17
17-#include "net/data/ssl/ev_roots/chrome-ev-root-store-inc.cc" 18 // These certificates may be found in net/data/ssl/ev_roots.
18+static const EVMetadata kEvRootCaMetadata[] = { 19 static const EVMetadata kEvRootCaMetadata[] = {
19+ // need some dummy thing to make compiler happy, because 20+ // need some dummy thing to make compiler happy, because
20+ // arraysize() is implemented as a convoluted template rather than 21+ // arraysize() is implemented as a convoluted template rather than
21+ // the traditional sizeof(x)/sizeof(*x) 22+ // the traditional sizeof(x)/sizeof(*x)
@@ -24,7 +25,18 @@ Instead, let them appear just like regular ones.
24+ { 25+ {
25+ "0", 26+ "0",
26+ } 27+ }
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- }};
27+ } 38+ }
39+#endif
28+}; 40+};
29 41
30 #endif // defined(PLATFORM_USES_CHROMIUM_EV_METADATA) 42 #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 2f3b4f7..0072e8f 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,14 +3,18 @@ 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--- a/chrome/browser/chrome_browser_main.cc 6---
7+++ b/chrome/browser/chrome_browser_main.cc 7 chrome/browser/chrome_browser_main.cc | 2 --
8@@ -1617,8 +1617,6 @@ int ChromeBrowserMainParts::PreMainMessa 8 1 file changed, 2 deletions(-)
9
10--- chrome/browser/chrome_browser_main.cc.orig
11+++ chrome/browser/chrome_browser_main.cc
12@@ -1492,8 +1492,6 @@ int ChromeBrowserMainParts::PreMainMessa
9 // and preferences have been registered since some of the import code depends 13 // and preferences have been registered since some of the import code depends
10 // on preferences. 14 // on preferences.
11 if (first_run::IsChromeFirstRun()) { 15 if (first_run::IsChromeFirstRun()) {
12- first_run::AutoImport(profile, master_prefs_->import_bookmarks_path); 16- first_run::AutoImport(profile_, master_prefs_->import_bookmarks_path);
13- 17-
14 // Note: This can pop-up the first run consent dialog on Linux & Mac. 18 // Note: This can pop-up the first run consent dialog on Linux & Mac.
15 first_run::DoPostImportTasks(profile, 19 first_run::DoPostImportTasks(profile_,
16 master_prefs_->make_chrome_default_for_user); 20 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 e66b0d6..a6eab74 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--- a/third_party/blink/common/mime_util/mime_util.cc 12--- third_party/blink/common/mime_util/mime_util.cc.orig
13+++ b/third_party/blink/common/mime_util/mime_util.cc 13+++ 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 fe39bb4..394a6da 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--- a/net/cert/x509_util.cc 13--- net/cert/x509_util.cc.orig
14+++ b/net/cert/x509_util.cc 14+++ net/cert/x509_util.cc
15@@ -243,7 +243,7 @@ bool GetTLSServerEndPointChannelBinding( 15@@ -241,7 +241,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 b1aa987..beb8b0b 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--- a/chrome/browser/download/download_prefs.cc 30--- chrome/browser/download/download_prefs.cc.orig
31+++ b/chrome/browser/download/download_prefs.cc 31+++ chrome/browser/download/download_prefs.cc
32@@ -262,7 +262,7 @@ void DownloadPrefs::RegisterProfilePrefs 32@@ -271,7 +271,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 41e42b8..01696b7 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--- a/components/content_settings/core/browser/content_settings_registry.cc 11--- components/content_settings/core/browser/content_settings_registry.cc.orig
12+++ b/components/content_settings/core/browser/content_settings_registry.cc 12+++ components/content_settings/core/browser/content_settings_registry.cc
13@@ -131,7 +131,7 @@ void ContentSettingsRegistry::Init() { 13@@ -126,7 +126,7 @@ void ContentSettingsRegistry::Init() {
14 // PrefProvider::DiscardOrMigrateObsoletePreferences() and 14 // WARNING: The string names of the permissions passed in below are used to
15 // DefaultProvider::DiscardOrMigrateObsoletePreferences() accordingly. 15 // generate preference names and should never be changed!
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 1394a10..a6be904 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,8 +14,8 @@ 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--- a/chrome/browser/app_controller_mac.mm 17--- chrome/browser/app_controller_mac.mm.orig
18+++ b/chrome/browser/app_controller_mac.mm 18+++ chrome/browser/app_controller_mac.mm
19@@ -866,7 +866,7 @@ static base::mac::ScopedObjCClassSwizzle 19@@ -866,7 +866,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);
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 c9ef633..167eaec 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+++ b/components/ungoogled/BUILD.gn 4+++ 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,7 +18,7 @@
18+ deps = [ "//base" ] 18+ deps = [ "//base" ]
19+} 19+}
20--- /dev/null 20--- /dev/null
21+++ b/components/ungoogled/ungoogled_switches.cc 21+++ components/ungoogled/ungoogled_switches.cc
22@@ -0,0 +1,21 @@ 22@@ -0,0 +1,21 @@
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
@@ -42,7 +42,7 @@
42+ 42+
43+} // namespace switches 43+} // namespace switches
44--- /dev/null 44--- /dev/null
45+++ b/components/ungoogled/ungoogled_switches.h 45+++ components/ungoogled/ungoogled_switches.h
46@@ -0,0 +1,21 @@ 46@@ -0,0 +1,21 @@
47+// Copyright (c) 2020 The ungoogled-chromium Authors. All rights reserved. 47+// 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 48+// 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/add-extra-channel-info.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/add-extra-channel-info.patch
index 0df57e0..6df493e 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--- a/components/version_ui_strings.grdp 8--- components/version_ui_strings.grdp.orig
9+++ b/components/version_ui_strings.grdp 9+++ 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 169ac68..0d622e8 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--- a/chrome/browser/ui/bookmarks/bookmark_tab_helper.cc 1--- chrome/browser/ui/bookmarks/bookmark_tab_helper.cc.orig
2+++ b/chrome/browser/ui/bookmarks/bookmark_tab_helper.cc 2+++ 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,8 +22,8 @@
22 } 22 }
23 23
24 void BookmarkTabHelper::AddObserver(BookmarkTabHelperObserver* observer) { 24 void BookmarkTabHelper::AddObserver(BookmarkTabHelperObserver* observer) {
25--- a/chrome/browser/ungoogled_flag_choices.h 25--- chrome/browser/ungoogled_flag_choices.h.orig
26+++ b/chrome/browser/ungoogled_flag_choices.h 26+++ chrome/browser/ungoogled_flag_choices.h
27@@ -39,4 +39,10 @@ const FeatureEntry::Choice kPDFPluginNam 27@@ -39,4 +39,10 @@ const FeatureEntry::Choice kPDFPluginNam
28 {"Google Chrome", switches::kPDFPluginName, "chrome"}, 28 {"Google Chrome", switches::kPDFPluginName, "chrome"},
29 {"Microsoft Edge", switches::kPDFPluginName, "edge"}, 29 {"Microsoft Edge", switches::kPDFPluginName, "edge"},
@@ -35,9 +35,9 @@
35+ "never"}, 35+ "never"},
36+}; 36+};
37 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_CHOICES_H_ 37 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_CHOICES_H_
38--- a/chrome/browser/ungoogled_flag_entries.h 38--- chrome/browser/ungoogled_flag_entries.h.orig
39+++ b/chrome/browser/ungoogled_flag_entries.h 39+++ chrome/browser/ungoogled_flag_entries.h
40@@ -40,4 +40,8 @@ 40@@ -44,4 +44,8 @@
41 "Set internal PDF plugin name", 41 "Set internal PDF plugin name",
42 "Sets the internal PDF viewer plugin name. Useful for sites that probe JS API navigator.plugins. ungoogled-chromium flag.", 42 "Sets the internal PDF viewer plugin name. Useful for sites that probe JS API navigator.plugins. ungoogled-chromium flag.",
43 kOsDesktop, MULTI_VALUE_TYPE(kPDFPluginNameChoices)}, 43 kOsDesktop, MULTI_VALUE_TYPE(kPDFPluginNameChoices)},
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 81fd375..56dc7e2 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--- a/chrome/browser/ui/browser.cc 1--- chrome/browser/ui/browser.cc.orig
2+++ b/chrome/browser/ui/browser.cc 2+++ chrome/browser/ui/browser.cc
3@@ -139,6 +139,8 @@ 3@@ -140,6 +140,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@@ -468,6 +470,7 @@ Browser::Browser(const CreateParams& par 12@@ -467,6 +469,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@@ -835,7 +838,7 @@ Browser::WarnBeforeClosingResult Browser 20@@ -830,7 +833,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@@ -865,6 +868,7 @@ bool Browser::TryToCloseWindow( 29@@ -860,6 +863,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@@ -2698,6 +2702,62 @@ bool Browser::CanCloseWithInProgressDown 37@@ -2702,6 +2706,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@@ -2716,6 +2776,22 @@ void Browser::InProgressDownloadResponse 100@@ -2720,6 +2780,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--- a/chrome/browser/ui/browser.h 123--- chrome/browser/ui/browser.h.orig
124+++ b/chrome/browser/ui/browser.h 124+++ 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@@ -1015,12 +1016,17 @@ class Browser : public TabStripModelObse 133@@ -1008,12 +1009,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@@ -1183,6 +1189,8 @@ class Browser : public TabStripModelObse 151@@ -1176,6 +1182,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,8 +157,8 @@
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--- a/chrome/browser/ungoogled_flag_choices.h 160--- chrome/browser/ungoogled_flag_choices.h.orig
161+++ b/chrome/browser/ungoogled_flag_choices.h 161+++ chrome/browser/ungoogled_flag_choices.h
162@@ -66,4 +66,13 @@ const FeatureEntry::Choice kCloseWindowW 162@@ -66,4 +66,13 @@ const FeatureEntry::Choice kCloseWindowW
163 "close-window-with-last-tab", 163 "close-window-with-last-tab",
164 "never"}, 164 "never"},
@@ -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--- a/chrome/browser/ungoogled_flag_entries.h 176--- chrome/browser/ungoogled_flag_entries.h.orig
177+++ b/chrome/browser/ungoogled_flag_entries.h 177+++ chrome/browser/ungoogled_flag_entries.h
178@@ -76,4 +76,8 @@ 178@@ -80,4 +80,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 3f273e5..6bb52b8 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,6 +1,6 @@
1--- a/chrome/browser/chrome_content_browser_client.cc 1--- chrome/browser/chrome_content_browser_client.cc.orig
2+++ b/chrome/browser/chrome_content_browser_client.cc 2+++ chrome/browser/chrome_content_browser_client.cc
3@@ -771,6 +771,9 @@ bool HandleNewTabPageLocationOverride( 3@@ -743,6 +743,9 @@ bool HandleNewTabPageLocationOverride(
4 Profile* profile = Profile::FromBrowserContext(browser_context); 4 Profile* profile = Profile::FromBrowserContext(browser_context);
5 std::string ntp_location = 5 std::string ntp_location =
6 profile->GetPrefs()->GetString(prefs::kNewTabPageLocationOverride); 6 profile->GetPrefs()->GetString(prefs::kNewTabPageLocationOverride);
@@ -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--- a/chrome/browser/ungoogled_flag_entries.h 13--- chrome/browser/ungoogled_flag_entries.h.orig
14+++ b/chrome/browser/ungoogled_flag_entries.h 14+++ chrome/browser/ungoogled_flag_entries.h
15@@ -80,4 +80,8 @@ 15@@ -84,4 +84,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--- a/components/flags_ui/flags_state.cc 24--- components/flags_ui/flags_state.cc.orig
25+++ b/components/flags_ui/flags_state.cc 25+++ components/flags_ui/flags_state.cc
26@@ -207,6 +207,7 @@ std::string GetCombinedOriginListValue(c 26@@ -231,6 +231,7 @@ std::string GetCombinedOriginListValue(c
27 command_line.GetSwitchValueASCII(command_line_switch); 27 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@@ -395,6 +396,7 @@ void FlagsState::SetOriginListFlag(const 34@@ -417,6 +418,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 6c4ef2b..8fc406a 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--- a/chrome/browser/ui/views/frame/tab_strip_region_view.cc 1--- chrome/browser/ui/views/frame/tab_strip_region_view.cc.orig
2+++ b/chrome/browser/ui/views/frame/tab_strip_region_view.cc 2+++ chrome/browser/ui/views/frame/tab_strip_region_view.cc
3@@ -46,6 +46,7 @@ class FrameGrabHandle : public views::Vi 3@@ -42,6 +42,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--- a/chrome/browser/ungoogled_flag_entries.h 11--- chrome/browser/ungoogled_flag_entries.h.orig
12+++ b/chrome/browser/ungoogled_flag_entries.h 12+++ chrome/browser/ungoogled_flag_entries.h
13@@ -72,4 +72,8 @@ 13@@ -76,4 +76,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 e1c88a7..0e695ce 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,5 +1,5 @@
1--- a/chrome/browser/ungoogled_flag_choices.h 1--- chrome/browser/ungoogled_flag_choices.h.orig
2+++ b/chrome/browser/ungoogled_flag_choices.h 2+++ chrome/browser/ungoogled_flag_choices.h
3@@ -45,4 +45,19 @@ const FeatureEntry::Choice kBookmarkBarN 3@@ -45,4 +45,19 @@ const FeatureEntry::Choice kBookmarkBarN
4 "bookmark-bar-ntp", 4 "bookmark-bar-ntp",
5 "never"}, 5 "never"},
@@ -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--- a/chrome/browser/ungoogled_flag_entries.h 23--- chrome/browser/ungoogled_flag_entries.h.orig
24+++ b/chrome/browser/ungoogled_flag_entries.h 24+++ chrome/browser/ungoogled_flag_entries.h
25@@ -44,4 +44,8 @@ 25@@ -48,4 +48,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--- a/components/omnibox/browser/autocomplete_controller.cc 34--- components/omnibox/browser/autocomplete_controller.cc.orig
35+++ b/components/omnibox/browser/autocomplete_controller.cc 35+++ 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@@ -272,6 +274,15 @@ AutocompleteController::AutocompleteCont 45@@ -276,6 +278,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--- a/components/omnibox/browser/history_url_provider.cc 61--- components/omnibox/browser/history_url_provider.cc.orig
62+++ b/components/omnibox/browser/history_url_provider.cc 62+++ components/omnibox/browser/history_url_provider.cc
63@@ -472,6 +472,9 @@ void HistoryURLProvider::Start(const Aut 63@@ -551,6 +551,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--- a/components/omnibox/browser/search_provider.cc 73--- components/omnibox/browser/search_provider.cc.orig
74+++ b/components/omnibox/browser/search_provider.cc 74+++ 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--- a/components/url_formatter/url_fixer.cc 93--- components/url_formatter/url_fixer.cc.orig
94+++ b/components/url_formatter/url_fixer.cc 94+++ 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
index 37a4834..5b52596 100644
--- 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
@@ -1,6 +1,6 @@
1--- a/chrome/browser/chrome_content_browser_client.cc 1--- chrome/browser/chrome_content_browser_client.cc.orig
2+++ b/chrome/browser/chrome_content_browser_client.cc 2+++ chrome/browser/chrome_content_browser_client.cc
3@@ -6068,7 +6068,7 @@ bool ChromeContentBrowserClient::ShouldA 3@@ -6001,7 +6001,7 @@ bool ChromeContentBrowserClient::ShouldA
4 const url::Origin& embedder_origin, 4 const url::Origin& embedder_origin,
5 const content::PepperPluginInfo& plugin_info) { 5 const content::PepperPluginInfo& plugin_info) {
6 #if BUILDFLAG(ENABLE_PDF) 6 #if BUILDFLAG(ENABLE_PDF)
@@ -9,8 +9,8 @@
9 return IsPdfInternalPluginAllowedOrigin(embedder_origin); 9 return IsPdfInternalPluginAllowedOrigin(embedder_origin);
10 } 10 }
11 #endif // BUILDFLAG(ENABLE_PDF) 11 #endif // BUILDFLAG(ENABLE_PDF)
12--- a/chrome/browser/pdf/pdf_extension_util.cc 12--- chrome/browser/pdf/pdf_extension_util.cc.orig
13+++ b/chrome/browser/pdf/pdf_extension_util.cc 13+++ chrome/browser/pdf/pdf_extension_util.cc
14@@ -170,7 +170,7 @@ std::string GetManifest() { 14@@ -170,7 +170,7 @@ std::string GetManifest() {
15 DCHECK(manifest_contents.find(kNameTag) != std::string::npos); 15 DCHECK(manifest_contents.find(kNameTag) != std::string::npos);
16 base::ReplaceFirstSubstringAfterOffset( 16 base::ReplaceFirstSubstringAfterOffset(
@@ -20,9 +20,9 @@
20 20
21 return manifest_contents; 21 return manifest_contents;
22 } 22 }
23--- a/chrome/browser/plugins/pdf_iframe_navigation_throttle_unittest.cc 23--- chrome/browser/plugins/pdf_iframe_navigation_throttle_unittest.cc.orig
24+++ b/chrome/browser/plugins/pdf_iframe_navigation_throttle_unittest.cc 24+++ chrome/browser/plugins/pdf_iframe_navigation_throttle_unittest.cc
25@@ -67,7 +67,7 @@ class PDFIFrameNavigationThrottleTest : 25@@ -65,7 +65,7 @@ class PDFIFrameNavigationThrottleTest :
26 // Register a fake PDF Viewer plugin into our plugin service. 26 // Register a fake PDF Viewer plugin into our plugin service.
27 content::WebPluginInfo info; 27 content::WebPluginInfo info;
28 info.name = 28 info.name =
@@ -31,8 +31,8 @@
31 info.mime_types.push_back(content::WebPluginMimeType( 31 info.mime_types.push_back(content::WebPluginMimeType(
32 kPDFMimeType, "pdf", "Fake PDF description")); 32 kPDFMimeType, "pdf", "Fake PDF description"));
33 plugin_service->RegisterInternalPlugin(info, true); 33 plugin_service->RegisterInternalPlugin(info, true);
34--- a/chrome/browser/plugins/plugin_prefs.cc 34--- chrome/browser/plugins/plugin_prefs.cc.orig
35+++ b/chrome/browser/plugins/plugin_prefs.cc 35+++ chrome/browser/plugins/plugin_prefs.cc
36@@ -40,7 +40,7 @@ bool IsPDFViewerPlugin(const std::u16str 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 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. 38 // and Print Preview can create the internal PDF plugin in the first place.
@@ -42,8 +42,8 @@
42 } 42 }
43 43
44 } // namespace 44 } // namespace
45--- a/chrome/browser/plugins/plugin_prefs_unittest.cc 45--- chrome/browser/plugins/plugin_prefs_unittest.cc.orig
46+++ b/chrome/browser/plugins/plugin_prefs_unittest.cc 46+++ chrome/browser/plugins/plugin_prefs_unittest.cc
47@@ -24,11 +24,11 @@ class PluginPrefsTest : public ::testing 47@@ -24,11 +24,11 @@ class PluginPrefsTest : public ::testing
48 TEST_F(PluginPrefsTest, AlwaysOpenPdfExternally) { 48 TEST_F(PluginPrefsTest, AlwaysOpenPdfExternally) {
49 EXPECT_EQ(PluginPrefs::NO_POLICY, 49 EXPECT_EQ(PluginPrefs::NO_POLICY,
@@ -58,8 +58,8 @@
58- ChromeContentClient::kPDFExtensionPluginName))); 58- ChromeContentClient::kPDFExtensionPluginName)));
59+ ChromeContentClient::GetPDFExtensionPluginName()))); 59+ ChromeContentClient::GetPDFExtensionPluginName())));
60 } 60 }
61--- a/chrome/browser/resources/plugin_metadata/plugins_chromeos.json 61--- chrome/browser/resources/plugin_metadata/plugins_chromeos.json.orig
62+++ b/chrome/browser/resources/plugin_metadata/plugins_chromeos.json 62+++ chrome/browser/resources/plugin_metadata/plugins_chromeos.json
63@@ -44,6 +44,19 @@ 63@@ -44,6 +44,19 @@
64 "name": "Chrome PDF Viewer", 64 "name": "Chrome PDF Viewer",
65 "group_name_matcher": "*Chrome PDF Viewer*" 65 "group_name_matcher": "*Chrome PDF Viewer*"
@@ -100,8 +100,8 @@
100 "chromium-pdf-plugin": { 100 "chromium-pdf-plugin": {
101 "mime_types": [ 101 "mime_types": [
102 ], 102 ],
103--- a/chrome/browser/resources/plugin_metadata/plugins_linux.json 103--- chrome/browser/resources/plugin_metadata/plugins_linux.json.orig
104+++ b/chrome/browser/resources/plugin_metadata/plugins_linux.json 104+++ chrome/browser/resources/plugin_metadata/plugins_linux.json
105@@ -36,6 +36,19 @@ 105@@ -36,6 +36,19 @@
106 "name": "Chrome PDF Viewer", 106 "name": "Chrome PDF Viewer",
107 "group_name_matcher": "*Chrome PDF Viewer*" 107 "group_name_matcher": "*Chrome PDF Viewer*"
@@ -142,8 +142,8 @@
142 "chromium-pdf-plugin": { 142 "chromium-pdf-plugin": {
143 "mime_types": [ 143 "mime_types": [
144 ], 144 ],
145--- a/chrome/browser/resources/plugin_metadata/plugins_mac.json 145--- chrome/browser/resources/plugin_metadata/plugins_mac.json.orig
146+++ b/chrome/browser/resources/plugin_metadata/plugins_mac.json 146+++ chrome/browser/resources/plugin_metadata/plugins_mac.json
147@@ -33,6 +33,19 @@ 147@@ -33,6 +33,19 @@
148 "name": "Chrome PDF Viewer", 148 "name": "Chrome PDF Viewer",
149 "group_name_matcher": "*Chrome PDF Viewer*" 149 "group_name_matcher": "*Chrome PDF Viewer*"
@@ -184,8 +184,8 @@
184 "chromium-pdf-plugin": { 184 "chromium-pdf-plugin": {
185 "mime_types": [ 185 "mime_types": [
186 ], 186 ],
187--- a/chrome/browser/resources/plugin_metadata/plugins_win.json 187--- chrome/browser/resources/plugin_metadata/plugins_win.json.orig
188+++ b/chrome/browser/resources/plugin_metadata/plugins_win.json 188+++ chrome/browser/resources/plugin_metadata/plugins_win.json
189@@ -33,6 +33,19 @@ 189@@ -33,6 +33,19 @@
190 "name": "Chrome PDF Viewer", 190 "name": "Chrome PDF Viewer",
191 "group_name_matcher": "*Chrome PDF Viewer*" 191 "group_name_matcher": "*Chrome PDF Viewer*"
@@ -226,8 +226,8 @@
226 "chromium-pdf-plugin": { 226 "chromium-pdf-plugin": {
227 "mime_types": [ 227 "mime_types": [
228 ], 228 ],
229--- a/chrome/browser/ungoogled_flag_choices.h 229--- chrome/browser/ungoogled_flag_choices.h.orig
230+++ b/chrome/browser/ungoogled_flag_choices.h 230+++ chrome/browser/ungoogled_flag_choices.h
231@@ -34,4 +34,9 @@ const FeatureEntry::Choice kScrollEventC 231@@ -34,4 +34,9 @@ const FeatureEntry::Choice kScrollEventC
232 "scroll-tabs", 232 "scroll-tabs",
233 "never"} 233 "never"}
@@ -238,9 +238,9 @@
238+ {"Microsoft Edge", switches::kPDFPluginName, "edge"}, 238+ {"Microsoft Edge", switches::kPDFPluginName, "edge"},
239+}; 239+};
240 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_CHOICES_H_ 240 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_CHOICES_H_
241--- a/chrome/browser/ungoogled_flag_entries.h 241--- chrome/browser/ungoogled_flag_entries.h.orig
242+++ b/chrome/browser/ungoogled_flag_entries.h 242+++ chrome/browser/ungoogled_flag_entries.h
243@@ -36,4 +36,8 @@ 243@@ -40,4 +40,8 @@
244 "Scroll switches tab", 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.", 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)}, 246 kOsDesktop, MULTI_VALUE_TYPE(kScrollEventChangesTab)},
@@ -249,9 +249,9 @@
249+ "Sets the internal PDF viewer plugin name. Useful for sites that probe JS API navigator.plugins. ungoogled-chromium flag.", 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)}, 250+ kOsDesktop, MULTI_VALUE_TYPE(kPDFPluginNameChoices)},
251 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_ 251 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_ENTRIES_H_
252--- a/chrome/common/BUILD.gn 252--- chrome/common/BUILD.gn.orig
253+++ b/chrome/common/BUILD.gn 253+++ chrome/common/BUILD.gn
254@@ -246,6 +246,7 @@ static_library("common") { 254@@ -249,6 +249,7 @@ static_library("common") {
255 "//components/no_state_prefetch/common", 255 "//components/no_state_prefetch/common",
256 "//components/no_state_prefetch/common:mojo_bindings", 256 "//components/no_state_prefetch/common:mojo_bindings",
257 "//components/page_load_metrics/common:common", 257 "//components/page_load_metrics/common:common",
@@ -259,9 +259,9 @@
259 ] 259 ]
260 260
261 if (enable_pdf) { 261 if (enable_pdf) {
262--- a/chrome/common/chrome_content_client.cc 262--- chrome/common/chrome_content_client.cc.orig
263+++ b/chrome/common/chrome_content_client.cc 263+++ chrome/common/chrome_content_client.cc
264@@ -126,7 +126,7 @@ void ComputeBuiltInPlugins(std::vector<c 264@@ -122,7 +122,7 @@ void ComputeBuiltInPlugins(std::vector<c
265 content::PepperPluginInfo pdf_info; 265 content::PepperPluginInfo pdf_info;
266 pdf_info.is_internal = true; 266 pdf_info.is_internal = true;
267 pdf_info.is_out_of_process = true; 267 pdf_info.is_out_of_process = true;
@@ -270,9 +270,9 @@
270 pdf_info.description = kPDFPluginDescription; 270 pdf_info.description = kPDFPluginDescription;
271 pdf_info.path = base::FilePath(ChromeContentClient::kPDFPluginPath); 271 pdf_info.path = base::FilePath(ChromeContentClient::kPDFPluginPath);
272 content::WebPluginMimeType pdf_mime_type( 272 content::WebPluginMimeType pdf_mime_type(
273--- a/chrome/common/chrome_content_client.h 273--- chrome/common/chrome_content_client.h.orig
274+++ b/chrome/common/chrome_content_client.h 274+++ chrome/common/chrome_content_client.h
275@@ -41,8 +41,8 @@ class ChromeContentClient : public conte 275@@ -42,8 +42,8 @@ class ChromeContentClient : public conte
276 static const base::FilePath::CharType kNaClPluginFileName[]; 276 static const base::FilePath::CharType kNaClPluginFileName[];
277 #endif 277 #endif
278 278
@@ -283,8 +283,8 @@
283 static const base::FilePath::CharType kPDFPluginPath[]; 283 static const base::FilePath::CharType kPDFPluginPath[];
284 284
285 ChromeContentClient(); 285 ChromeContentClient();
286--- a/chrome/common/chrome_content_client_constants.cc 286--- chrome/common/chrome_content_client_constants.cc.orig
287+++ b/chrome/common/chrome_content_client_constants.cc 287+++ chrome/common/chrome_content_client_constants.cc
288@@ -2,8 +2,12 @@ 288@@ -2,8 +2,12 @@
289 // Use of this source code is governed by a BSD-style license that can be 289 // Use of this source code is governed by a BSD-style license that can be
290 // found in the LICENSE file. 290 // found in the LICENSE file.
@@ -358,9 +358,9 @@
358 358
359 const base::FilePath::CharType ChromeContentClient::kPDFPluginPath[] = 359 const base::FilePath::CharType ChromeContentClient::kPDFPluginPath[] =
360 FILE_PATH_LITERAL("internal-pdf-viewer"); 360 FILE_PATH_LITERAL("internal-pdf-viewer");
361--- a/chrome/renderer/chrome_content_renderer_client.cc 361--- chrome/renderer/chrome_content_renderer_client.cc.orig
362+++ b/chrome/renderer/chrome_content_renderer_client.cc 362+++ chrome/renderer/chrome_content_renderer_client.cc
363@@ -1027,7 +1027,7 @@ WebPlugin* ChromeContentRendererClient:: 363@@ -1047,7 +1047,7 @@ WebPlugin* ChromeContentRendererClient::
364 } 364 }
365 } 365 }
366 } else if (info.name == 366 } else if (info.name ==
@@ -369,7 +369,7 @@
369 // Report PDF load metrics. Since the PDF plugin is comprised of an 369 // Report PDF load metrics. Since the PDF plugin is comprised of an
370 // extension that loads a second plugin, avoid double counting by 370 // extension that loads a second plugin, avoid double counting by
371 // ignoring the creation of the second plugin. 371 // ignoring the creation of the second plugin.
372@@ -1059,7 +1059,7 @@ WebPlugin* ChromeContentRendererClient:: 372@@ -1079,7 +1079,7 @@ WebPlugin* ChromeContentRendererClient::
373 373
374 #if BUILDFLAG(ENABLE_PDF) 374 #if BUILDFLAG(ENABLE_PDF)
375 if (info.name == 375 if (info.name ==
@@ -378,7 +378,7 @@
378 return pdf::CreateInternalPlugin( 378 return pdf::CreateInternalPlugin(
379 info, std::move(params), render_frame, 379 info, std::move(params), render_frame,
380 std::make_unique<ChromePdfInternalPluginDelegate>()); 380 std::make_unique<ChromePdfInternalPluginDelegate>());
381@@ -1072,7 +1072,7 @@ WebPlugin* ChromeContentRendererClient:: 381@@ -1092,7 +1092,7 @@ WebPlugin* ChromeContentRendererClient::
382 PluginUMAReporter::GetInstance()->ReportPluginDisabled(orig_mime_type, 382 PluginUMAReporter::GetInstance()->ReportPluginDisabled(orig_mime_type,
383 url); 383 url);
384 if (info.name == 384 if (info.name ==
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 553782e..5b97e10 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--- a/chrome/browser/sharing/features.cc 1--- chrome/browser/sharing/features.cc.orig
2+++ b/chrome/browser/sharing/features.cc 2+++ chrome/browser/sharing/features.cc
3@@ -26,3 +26,5 @@ const base::Feature kSharingSendViaSync{ 3@@ -32,3 +32,5 @@ const base::Feature kSharingPreferVapid
4 4 base::FEATURE_DISABLED_BY_DEFAULT
5 const base::Feature kSharingPreferVapid { 5 #endif // defined(OS_ANDROID)
6 "SharingPreferVapid", base::FEATURE_DISABLED_BY_DEFAULT}; 6 };
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--- a/chrome/browser/sharing/features.h 9--- chrome/browser/sharing/features.h.orig
10+++ b/chrome/browser/sharing/features.h 10+++ 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--- a/chrome/browser/ui/qrcode_generator/qrcode_generator_bubble_controller.cc 17--- chrome/browser/ui/qrcode_generator/qrcode_generator_bubble_controller.cc.orig
18+++ b/chrome/browser/ui/qrcode_generator/qrcode_generator_bubble_controller.cc 18+++ 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,9 +25,9 @@
25 return false; 25 return false;
26 26
27 return true; 27 return true;
28--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc 28--- chrome/browser/ui/views/location_bar/location_bar_view.cc.orig
29+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc 29+++ chrome/browser/ui/views/location_bar/location_bar_view.cc
30@@ -298,7 +298,8 @@ void LocationBarView::Init() { 30@@ -297,7 +297,8 @@ void LocationBarView::Init() {
31 // the left most icon. 31 // the left most icon.
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);
@@ -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--- a/chrome/browser/ungoogled_flag_entries.h 40--- chrome/browser/ungoogled_flag_entries.h.orig
41+++ b/chrome/browser/ungoogled_flag_entries.h 41+++ chrome/browser/ungoogled_flag_entries.h
42@@ -68,4 +68,8 @@ 42@@ -72,4 +72,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-search-engine-collection.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-for-search-engine-collection.patch
index 13197f8..b80101e 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--- a/chrome/browser/ungoogled_flag_entries.h 3--- chrome/browser/ungoogled_flag_entries.h.orig
4+++ b/chrome/browser/ungoogled_flag_entries.h 4+++ chrome/browser/ungoogled_flag_entries.h
5@@ -12,4 +12,8 @@ 5@@ -16,4 +16,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,8 +11,8 @@
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--- a/chrome/renderer/chrome_render_frame_observer.cc 14--- chrome/renderer/chrome_render_frame_observer.cc.orig
15+++ b/chrome/renderer/chrome_render_frame_observer.cc 15+++ chrome/renderer/chrome_render_frame_observer.cc
16@@ -139,9 +139,10 @@ ChromeRenderFrameObserver::ChromeRenderF 16@@ -139,9 +139,10 @@ ChromeRenderFrameObserver::ChromeRenderF
17 if (!render_frame->IsMainFrame()) 17 if (!render_frame->IsMainFrame())
18 return; 18 return;
@@ -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@@ -200,14 +201,16 @@ void ChromeRenderFrameObserver::DidFinis 28@@ -201,14 +202,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--- a/chrome/renderer/chrome_render_frame_observer.h 53--- chrome/renderer/chrome_render_frame_observer.h.orig
54+++ b/chrome/renderer/chrome_render_frame_observer.h 54+++ chrome/renderer/chrome_render_frame_observer.h
55@@ -138,6 +138,7 @@ class ChromeRenderFrameObserver : public 55@@ -139,6 +139,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--- a/components/search_engines/template_url_service.cc 63--- components/search_engines/template_url_service.cc.orig
64+++ b/components/search_engines/template_url_service.cc 64+++ 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@@ -199,6 +200,12 @@ bool IsCreatedByExtension(const Template 73@@ -197,6 +198,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@@ -284,6 +291,7 @@ TemplateURLService::TemplateURLService( 86@@ -282,6 +289,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@@ -365,8 +373,8 @@ bool TemplateURLService::CanAddAutogener 94@@ -363,8 +371,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@@ -1502,6 +1510,8 @@ SyncDataMap TemplateURLService::CreateGU 105@@ -1496,6 +1504,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@@ -1638,6 +1648,9 @@ void TemplateURLService::ChangeToLoadedS 114@@ -1632,6 +1642,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--- a/components/search_engines/template_url_service.h 124--- components/search_engines/template_url_service.h.orig
125+++ b/components/search_engines/template_url_service.h 125+++ components/search_engines/template_url_service.h
126@@ -706,6 +706,8 @@ class TemplateURLService : public WebDat 126@@ -706,6 +706,8 @@ class TemplateURLService : public WebDat
127 // ---------- Browser state related members --------------------------------- 127 // ---------- Browser state related members ---------------------------------
128 raw_ptr<PrefService> prefs_ = nullptr; 128 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 aac7b9d..6010902 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--- a/chrome/browser/ui/views/tabs/tab.cc 1--- chrome/browser/ui/views/tabs/tab.cc.orig
2+++ b/chrome/browser/ui/views/tabs/tab.cc 2+++ 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,7 +7,7 @@
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/memory/raw_ptr.h" 10 #include "base/metrics/user_metrics.h"
11@@ -641,6 +642,8 @@ void Tab::OnGestureEvent(ui::GestureEven 11@@ -641,6 +642,8 @@ void Tab::OnGestureEvent(ui::GestureEven
12 } 12 }
13 13
@@ -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--- a/chrome/browser/ui/views/tabs/tab_strip.cc 20--- chrome/browser/ui/views/tabs/tab_strip.cc.orig
21+++ b/chrome/browser/ui/views/tabs/tab_strip.cc 21+++ chrome/browser/ui/views/tabs/tab_strip.cc
22@@ -16,6 +16,7 @@ 22@@ -15,6 +15,7 @@
23 23
24 #include "base/bind.h" 24 #include "base/bind.h"
25 #include "base/callback.h" 25 #include "base/callback.h"
@@ -27,7 +27,7 @@
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@@ -1904,6 +1905,8 @@ void TabStrip::OnMouseEventInTab(views:: 30@@ -2153,6 +2154,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) {
@@ -36,8 +36,8 @@
36 // Some operations (including e.g. starting a drag) can cause the tab focus 36 // Some operations (including e.g. starting a drag) can cause the tab focus
37 // to change at the same time as the tabstrip is starting to animate; the 37 // to change at the same time as the tabstrip is starting to animate; the
38 // hover card should not be visible at this time. 38 // hover card should not be visible at this time.
39--- a/chrome/browser/ungoogled_flag_choices.h 39--- chrome/browser/ungoogled_flag_choices.h.orig
40+++ b/chrome/browser/ungoogled_flag_choices.h 40+++ chrome/browser/ungoogled_flag_choices.h
41@@ -75,4 +75,13 @@ const FeatureEntry::Choice kCloseConfirm 41@@ -75,4 +75,13 @@ const FeatureEntry::Choice kCloseConfirm
42 "close-confirmation", 42 "close-confirmation",
43 "multiple"}, 43 "multiple"},
@@ -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--- a/chrome/browser/ungoogled_flag_entries.h 55--- chrome/browser/ungoogled_flag_entries.h.orig
56+++ b/chrome/browser/ungoogled_flag_entries.h 56+++ chrome/browser/ungoogled_flag_entries.h
57@@ -84,4 +84,8 @@ 57@@ -88,4 +88,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 e3ce3e5..317602c 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--- a/chrome/browser/ui/browser_command_controller.cc 1--- chrome/browser/ui/browser_command_controller.cc.orig
2+++ b/chrome/browser/ui/browser_command_controller.cc 2+++ chrome/browser/ui/browser_command_controller.cc
3@@ -1160,7 +1160,8 @@ void BrowserCommandController::InitComma 3@@ -1139,7 +1139,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--- a/chrome/browser/ui/views/frame/tab_strip_region_view.cc 13--- chrome/browser/ui/views/frame/tab_strip_region_view.cc.orig
14+++ b/chrome/browser/ui/views/frame/tab_strip_region_view.cc 14+++ 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@@ -137,7 +138,8 @@ TabStripRegionView::TabStripRegionView(s 23@@ -132,7 +133,8 @@ TabStripRegionView::TabStripRegionView(s
24 return; 24 return;
25 } 25 #endif
26 26 const Browser* browser = tab_strip_->controller()->GetBrowser();
27- if (browser->is_type_normal()) { 27- if (browser && browser->is_type_normal()) {
28+ if (browser->is_type_normal() && 28+ if (browser && 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--- a/chrome/browser/ungoogled_flag_entries.h 33--- chrome/browser/ungoogled_flag_entries.h.orig
34+++ b/chrome/browser/ungoogled_flag_entries.h 34+++ chrome/browser/ungoogled_flag_entries.h
35@@ -64,4 +64,8 @@ 35@@ -68,4 +68,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-clear-data-on-exit.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-clear-data-on-exit.patch
index a10762f..070c4cd 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--- a/chrome/browser/browsing_data/chrome_browsing_data_lifetime_manager.cc 1--- chrome/browser/browsing_data/chrome_browsing_data_lifetime_manager.cc.orig
2+++ b/chrome/browser/browsing_data/chrome_browsing_data_lifetime_manager.cc 2+++ chrome/browser/browsing_data/chrome_browsing_data_lifetime_manager.cc
3@@ -25,6 +25,7 @@ 3@@ -24,6 +24,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@@ -157,6 +158,21 @@ class BrowsingDataRemoverObserver 11@@ -151,6 +152,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.GetListDeprecated()) { 32 for (const auto& data_type : data_types.GetList()) {
33@@ -307,8 +323,9 @@ void ChromeBrowsingDataLifetimeManager:: 33@@ -292,8 +308,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->GetListDeprecated().empty() && 37- if (data_types && !data_types->GetList().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->GetListDeprecated().empty() && 40+ if (cdoe || (data_types && !data_types->GetList().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@@ -319,8 +336,8 @@ void ChromeBrowsingDataLifetimeManager:: 45@@ -304,8 +321,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--- a/chrome/browser/browsing_data/chrome_browsing_data_lifetime_manager_factory.cc 56--- chrome/browser/browsing_data/chrome_browsing_data_lifetime_manager_factory.cc.orig
57+++ b/chrome/browser/browsing_data/chrome_browsing_data_lifetime_manager_factory.cc 57+++ 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--- a/chrome/browser/ungoogled_flag_entries.h 67--- chrome/browser/ungoogled_flag_entries.h.orig
68+++ b/chrome/browser/ungoogled_flag_entries.h 68+++ chrome/browser/ungoogled_flag_entries.h
69@@ -60,4 +60,8 @@ 69@@ -64,4 +64,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--- a/components/browsing_data/core/features.cc 78--- components/browsing_data/core/features.cc.orig
79+++ b/components/browsing_data/core/features.cc 79+++ 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--- a/components/browsing_data/core/features.h 88--- components/browsing_data/core/features.h.orig
89+++ b/components/browsing_data/core/features.h 89+++ 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 5c9dbac..b0358e8 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--- a/chrome/browser/ui/tabs/tab_strip_model.cc 1--- chrome/browser/ui/tabs/tab_strip_model.cc.orig
2+++ b/chrome/browser/ui/tabs/tab_strip_model.cc 2+++ 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/memory/raw_ptr.h" 10 #include "base/metrics/histogram_macros.h"
11@@ -1875,6 +1876,10 @@ bool TabStripModel::CloseTabs(base::span 11@@ -1779,6 +1780,10 @@ bool TabStripModel::CloseTabs(base::span
12 if (items.empty()) 12 if (items.empty())
13 return true; 13 return true;
14 14
@@ -19,8 +19,8 @@
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--- a/chrome/browser/ungoogled_flag_choices.h 22--- chrome/browser/ungoogled_flag_choices.h.orig
23+++ b/chrome/browser/ungoogled_flag_choices.h 23+++ chrome/browser/ungoogled_flag_choices.h
24@@ -60,4 +60,10 @@ const FeatureEntry::Choice kOmniboxAutoc 24@@ -60,4 +60,10 @@ const FeatureEntry::Choice kOmniboxAutoc
25 "omnibox-autocomplete-filtering", 25 "omnibox-autocomplete-filtering",
26 "search-bookmarks-chrome"}, 26 "search-bookmarks-chrome"},
@@ -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--- a/chrome/browser/ungoogled_flag_entries.h 35--- chrome/browser/ungoogled_flag_entries.h.orig
36+++ b/chrome/browser/ungoogled_flag_entries.h 36+++ chrome/browser/ungoogled_flag_entries.h
37@@ -48,4 +48,8 @@ 37@@ -52,4 +52,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 e50637e..381de61 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--- a/chrome/browser/download/download_crx_util.cc 4--- chrome/browser/download/download_crx_util.cc.orig
5+++ b/chrome/browser/download/download_crx_util.cc 5+++ 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--- a/chrome/browser/download/download_crx_util.h 38--- chrome/browser/download/download_crx_util.h.orig
39+++ b/chrome/browser/download/download_crx_util.h 39+++ 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--- a/chrome/browser/download/download_target_determiner.cc 51--- chrome/browser/download/download_target_determiner.cc.orig
52+++ b/chrome/browser/download/download_target_determiner.cc 52+++ chrome/browser/download/download_target_determiner.cc
53@@ -1057,10 +1057,12 @@ DownloadConfirmationReason DownloadTarge 53@@ -1059,10 +1059,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--- a/chrome/browser/extensions/extension_management.cc 70--- chrome/browser/extensions/extension_management.cc.orig
71+++ b/chrome/browser/extensions/extension_management.cc 71+++ 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"
@@ -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--- a/chrome/browser/ungoogled_flag_choices.h 94--- chrome/browser/ungoogled_flag_choices.h.orig
95+++ b/chrome/browser/ungoogled_flag_choices.h 95+++ 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--- a/chrome/browser/ungoogled_flag_entries.h 110--- chrome/browser/ungoogled_flag_entries.h.orig
111+++ b/chrome/browser/ungoogled_flag_entries.h 111+++ chrome/browser/ungoogled_flag_entries.h
112@@ -8,4 +8,8 @@ 112@@ -12,4 +12,8 @@
113 "SetIpv6ProbeFalse", 113 "Enable stacking in the tab strip",
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.", 114 "Forces tabs to be stacked in the tab strip. Otherwise, they follow default behavior. ungoogled-chromium flag.",
115 kOsAll, FEATURE_VALUE_TYPE(net::features::kSetIpv6ProbeFalse)}, 115 kOsAll, SINGLE_VALUE_TYPE("enable-stacked-tab-strip")},
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 da6544e..9a31082 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--- a/chrome/browser/ungoogled_flag_entries.h 3--- chrome/browser/ungoogled_flag_entries.h.orig
4+++ b/chrome/browser/ungoogled_flag_entries.h 4+++ chrome/browser/ungoogled_flag_entries.h
5@@ -52,4 +52,8 @@ 5@@ -56,4 +56,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,20 +11,19 @@
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--- a/content/renderer/render_view_impl.cc 14--- content/renderer/render_view_impl.cc.orig
15+++ b/content/renderer/render_view_impl.cc 15+++ content/renderer/render_view_impl.cc
16@@ -74,6 +74,9 @@ WindowOpenDisposition RenderViewImpl::Na 16@@ -73,6 +73,8 @@ 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:
24 return WindowOpenDisposition::NEW_POPUP; 22 return WindowOpenDisposition::NEW_POPUP;
25 default: 23 default:
26--- a/ui/base/mojom/window_open_disposition_mojom_traits.h 24 NOTREACHED() << "Unexpected WebNavigationPolicy";
27+++ b/ui/base/mojom/window_open_disposition_mojom_traits.h 25--- ui/base/mojom/window_open_disposition_mojom_traits.h.orig
26+++ ui/base/mojom/window_open_disposition_mojom_traits.h
28@@ -5,6 +5,7 @@ 27@@ -5,6 +5,7 @@
29 #ifndef UI_BASE_MOJOM_WINDOW_OPEN_DISPOSITION_MOJOM_TRAITS_H_ 28 #ifndef UI_BASE_MOJOM_WINDOW_OPEN_DISPOSITION_MOJOM_TRAITS_H_
30 #define UI_BASE_MOJOM_WINDOW_OPEN_DISPOSITION_MOJOM_TRAITS_H_ 29 #define UI_BASE_MOJOM_WINDOW_OPEN_DISPOSITION_MOJOM_TRAITS_H_
@@ -33,16 +32,16 @@
33 #include "base/notreached.h" 32 #include "base/notreached.h"
34 #include "mojo/public/cpp/bindings/enum_traits.h" 33 #include "mojo/public/cpp/bindings/enum_traits.h"
35 #include "ui/base/mojom/window_open_disposition.mojom.h" 34 #include "ui/base/mojom/window_open_disposition.mojom.h"
36@@ -30,6 +31,8 @@ struct EnumTraits<ui::mojom::WindowOpenD 35@@ -28,6 +29,8 @@ struct EnumTraits<ui::mojom::WindowOpenD
37 case WindowOpenDisposition::NEW_PICTURE_IN_PICTURE: 36 case WindowOpenDisposition::NEW_BACKGROUND_TAB:
38 return ui::mojom::WindowOpenDisposition::NEW_PICTURE_IN_PICTURE; 37 return ui::mojom::WindowOpenDisposition::NEW_BACKGROUND_TAB;
39 case WindowOpenDisposition::NEW_POPUP: 38 case WindowOpenDisposition::NEW_POPUP:
40+ if (base::CommandLine::ForCurrentProcess()->HasSwitch("popups-to-tabs")) 39+ if (base::CommandLine::ForCurrentProcess()->HasSwitch("popups-to-tabs"))
41+ return ui::mojom::WindowOpenDisposition::NEW_FOREGROUND_TAB; 40+ return ui::mojom::WindowOpenDisposition::NEW_FOREGROUND_TAB;
42 return ui::mojom::WindowOpenDisposition::NEW_POPUP; 41 return ui::mojom::WindowOpenDisposition::NEW_POPUP;
43 case WindowOpenDisposition::NEW_WINDOW: 42 case WindowOpenDisposition::NEW_WINDOW:
44 return ui::mojom::WindowOpenDisposition::NEW_WINDOW; 43 return ui::mojom::WindowOpenDisposition::NEW_WINDOW;
45@@ -68,6 +71,8 @@ struct EnumTraits<ui::mojom::WindowOpenD 44@@ -63,6 +66,8 @@ struct EnumTraits<ui::mojom::WindowOpenD
46 return true; 45 return true;
47 case ui::mojom::WindowOpenDisposition::NEW_POPUP: 46 case ui::mojom::WindowOpenDisposition::NEW_POPUP:
48 *out = WindowOpenDisposition::NEW_POPUP; 47 *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 c2678af..c46ec2b 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--- a/chrome/browser/ungoogled_flag_entries.h 3--- chrome/browser/ungoogled_flag_entries.h.orig
4+++ b/chrome/browser/ungoogled_flag_entries.h 4+++ chrome/browser/ungoogled_flag_entries.h
5@@ -16,4 +16,8 @@ 5@@ -20,4 +20,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--- a/components/javascript_dialogs/app_modal_dialog_manager.cc 14--- components/javascript_dialogs/app_modal_dialog_manager.cc.orig
15+++ b/components/javascript_dialogs/app_modal_dialog_manager.cc 15+++ 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"
22 #include "base/metrics/histogram_macros.h" 23 #include "base/metrics/histogram_macros.h"
23 #include "base/strings/utf_string_conversions.h" 24@@ -196,7 +197,8 @@ void AppModalDialogManager::RunBeforeUnl
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 f377414..090432a 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--- a/chrome/browser/ungoogled_flag_entries.h 3--- chrome/browser/ungoogled_flag_entries.h.orig
4+++ b/chrome/browser/ungoogled_flag_entries.h 4+++ chrome/browser/ungoogled_flag_entries.h
5@@ -56,4 +56,8 @@ 5@@ -60,4 +60,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--- a/components/history/core/browser/history_backend.cc 14--- components/history/core/browser/history_backend.cc.orig
15+++ b/components/history/core/browser/history_backend.cc 15+++ 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@@ -977,7 +978,8 @@ void HistoryBackend::InitImpl( 24@@ -911,7 +912,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-force-punycode-hostnames.patch b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-force-punycode-hostnames.patch
index 840f91a..be26b2c 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--- a/chrome/browser/ungoogled_flag_entries.h 3--- chrome/browser/ungoogled_flag_entries.h.orig
4+++ b/chrome/browser/ungoogled_flag_entries.h 4+++ chrome/browser/ungoogled_flag_entries.h
5@@ -20,4 +20,8 @@ 5@@ -24,4 +24,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--- a/components/url_formatter/url_formatter.cc 14--- components/url_formatter/url_formatter.cc.orig
15+++ b/components/url_formatter/url_formatter.cc 15+++ components/url_formatter/url_formatter.cc
16@@ -9,6 +9,7 @@ 16@@ -8,6 +8,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"
23 #include "base/numerics/safe_conversions.h" 22 #include "base/numerics/safe_conversions.h"
24@@ -270,6 +271,13 @@ IDNConversionResult IDNToUnicodeWithAdju 23 #include "base/strings/strcat.h"
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 a7a43aa..87da094 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--- a/chrome/browser/ui/startup/infobar_utils.cc 4--- chrome/browser/ui/startup/startup_browser_creator_impl.cc.orig
5+++ b/chrome/browser/ui/startup/infobar_utils.cc 5+++ chrome/browser/ui/startup/startup_browser_creator_impl.cc
6@@ -80,7 +80,8 @@ void AddInfoBarsIfNecessary(Browser* bro 6@@ -648,7 +648,8 @@ void StartupBrowserCreatorImpl::AddInfoB
7 if (command_line_.HasSwitch(switches::kKioskMode))
7 return; 8 return;
8 9
9 // Web apps should not display the session restore bubble (crbug.com/1264121) 10- if (HasPendingUncleanExit(browser->profile()))
10- if (!is_web_app && HasPendingUncleanExit(browser->profile())) 11+ if (HasPendingUncleanExit(browser->profile()) &&
11+ if (!is_web_app && HasPendingUncleanExit(browser->profile()) && 12+ !command_line_.HasSwitch("hide-crashed-bubble"))
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--- a/chrome/browser/ungoogled_flag_entries.h 16--- chrome/browser/ungoogled_flag_entries.h.orig
17+++ b/chrome/browser/ungoogled_flag_entries.h 17+++ chrome/browser/ungoogled_flag_entries.h
18@@ -28,4 +28,8 @@ 18@@ -32,4 +32,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 085b6b2..7937d6f 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,29 +1,17 @@
1--- a/chrome/browser/ui/views/tabs/tab.cc 1--- chrome/browser/ui/views/tabs/tab_strip.cc.orig
2+++ b/chrome/browser/ui/views/tabs/tab.cc 2+++ chrome/browser/ui/views/tabs/tab_strip.cc
3@@ -978,7 +978,11 @@ void Tab::UpdateIconVisibility() { 3@@ -1909,6 +1909,8 @@ bool TabStrip::SupportsMultipleSelection
4 if (IsActive()) { 4 }
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+ }
12 5
13 showing_alert_indicator_ = 6 bool TabStrip::ShouldHideCloseButtonForTab(Tab* tab) const {
14 has_alert_icon && alert_icon_width <= available_width; 7+ if (base::CommandLine::ForCurrentProcess()->HasSwitch("hide-tab-close-buttons"))
15@@ -999,6 +1003,8 @@ void Tab::UpdateIconVisibility() { 8+ return true;
16 available_width -= favicon_width; 9 if (tab->IsActive())
17 10 return false;
18 showing_close_button_ = large_enough_for_close_button; 11 return !!touch_layout_;
19+ if (base::CommandLine::ForCurrentProcess()->HasSwitch("hide-tab-close-buttons")) 12--- chrome/browser/ungoogled_flag_entries.h.orig
20+ showing_close_button_ = false; 13+++ chrome/browser/ungoogled_flag_entries.h
21 if (showing_close_button_) 14@@ -92,4 +92,8 @@
22 available_width -= close_button_width;
23
24--- a/chrome/browser/ungoogled_flag_entries.h
25+++ b/chrome/browser/ungoogled_flag_entries.h
26@@ -88,4 +88,8 @@
27 "Tab Hover Cards", 15 "Tab Hover Cards",
28 "Allows removing the tab hover cards or using a tooltip as a replacement. ungoogled-chromium flag.", 16 "Allows removing the tab hover cards or using a tooltip as a replacement. ungoogled-chromium flag.",
29 kOsDesktop, MULTI_VALUE_TYPE(kTabHoverCards)}, 17 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 e1a6886..d657480 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,5 +1,5 @@
1--- a/chrome/browser/ui/views/frame/browser_root_view.cc 1--- chrome/browser/ui/views/frame/browser_root_view.cc.orig
2+++ b/chrome/browser/ui/views/frame/browser_root_view.cc 2+++ 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"
@@ -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@@ -255,7 +270,7 @@ bool BrowserRootView::OnMouseWheel(const 41@@ -245,7 +260,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,9 +47,9 @@
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--- a/chrome/browser/ui/views/frame/browser_root_view.h 50--- chrome/browser/ui/views/frame/browser_root_view.h.orig
51+++ b/chrome/browser/ui/views/frame/browser_root_view.h 51+++ chrome/browser/ui/views/frame/browser_root_view.h
52@@ -144,6 +144,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;
55 55
@@ -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--- a/chrome/browser/ungoogled_flag_choices.h 61--- chrome/browser/ungoogled_flag_choices.h.orig
62+++ b/chrome/browser/ungoogled_flag_choices.h 62+++ 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--- a/chrome/browser/ungoogled_flag_entries.h 77--- chrome/browser/ungoogled_flag_entries.h.orig
78+++ b/chrome/browser/ungoogled_flag_entries.h 78+++ chrome/browser/ungoogled_flag_entries.h
79@@ -32,4 +32,8 @@ 79@@ -36,4 +36,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 6035274..8fe39bd 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--- a/chrome/browser/ui/views/toolbar/toolbar_view.cc 1--- chrome/browser/ui/views/toolbar/toolbar_view.cc.orig
2+++ b/chrome/browser/ui/views/toolbar/toolbar_view.cc 2+++ chrome/browser/ui/views/toolbar/toolbar_view.cc
3@@ -282,14 +282,30 @@ void ToolbarView::Init() { 3@@ -273,12 +273,28 @@ 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,8 +19,6 @@
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();
24 #endif 22 #endif
25+ 23+
26+ if (flag_value == "always") 24+ if (flag_value == "always")
@@ -33,8 +31,8 @@
33 if (base::FeatureList::IsEnabled( 31 if (base::FeatureList::IsEnabled(
34 autofill::features::kAutofillEnableToolbarStatusChip)) { 32 autofill::features::kAutofillEnableToolbarStatusChip)) {
35 // The avatar button is contained inside the page-action container and 33 // The avatar button is contained inside the page-action container and
36--- a/chrome/browser/ungoogled_flag_choices.h 34--- chrome/browser/ungoogled_flag_choices.h.orig
37+++ b/chrome/browser/ungoogled_flag_choices.h 35+++ chrome/browser/ungoogled_flag_choices.h
38@@ -13,4 +13,16 @@ const FeatureEntry::Choice kExtensionHan 36@@ -13,4 +13,16 @@ const FeatureEntry::Choice kExtensionHan
39 "extension-mime-request-handling", 37 "extension-mime-request-handling",
40 "always-prompt-for-install"}, 38 "always-prompt-for-install"},
@@ -52,9 +50,9 @@
52+ "never"} 50+ "never"}
53+}; 51+};
54 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_CHOICES_H_ 52 #endif // CHROME_BROWSER_UNGOOGLED_FLAG_CHOICES_H_
55--- a/chrome/browser/ungoogled_flag_entries.h 53--- chrome/browser/ungoogled_flag_entries.h.orig
56+++ b/chrome/browser/ungoogled_flag_entries.h 54+++ chrome/browser/ungoogled_flag_entries.h
57@@ -24,4 +24,8 @@ 55@@ -28,4 +28,8 @@
58 "Force punycode hostnames", 56 "Force punycode hostnames",
59 "Force punycode in hostnames instead of Unicode when displaying Internationalized Domain Names (IDNs). ungoogled-chromium flag.", 57 "Force punycode in hostnames instead of Unicode when displaying Internationalized Domain Names (IDNs). ungoogled-chromium flag.",
60 kOsAll, SINGLE_VALUE_TYPE("force-punycode-hostnames")}, 58 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
new file mode 100644
index 0000000..6e19e76
--- /dev/null
+++ b/www/chromium-uc/patches/extra/ungoogled-chromium/add-flag-to-stack-tabs.patch
@@ -0,0 +1,33 @@
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 ce33ec4..0bc5dd5 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--- a/chrome/browser/ungoogled_flag_entries.h 3--- chrome/browser/ungoogled_flag_entries.h.orig
4+++ b/chrome/browser/ungoogled_flag_entries.h 4+++ 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--- a/net/base/features.cc 14--- net/base/features.cc.orig
15+++ b/net/base/features.cc 15+++ net/base/features.cc
16@@ -259,5 +259,7 @@ const base::Feature kRecordRadioWakeupTr 16@@ -263,5 +263,7 @@ const base::Feature kPartitionedCookies{
17 const base::Feature kSandboxHttpCache("SandboxHttpCache", 17 const base::Feature kExtraCookieValidityChecks{
18 base::FEATURE_DISABLED_BY_DEFAULT); 18 "ExtraCookieValidityChecks", base::FEATURE_ENABLED_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--- a/net/base/features.h 24--- net/base/features.h.orig
25+++ b/net/base/features.h 25+++ net/base/features.h
26@@ -390,6 +390,8 @@ NET_EXPORT extern const base::Feature kR 26@@ -396,6 +396,8 @@ NET_EXPORT extern const base::Feature kP
27 // the network process to be sandboxed. 27 // feature flag, assuming no breakage occurs with it enabled.
28 NET_EXPORT extern const base::Feature kSandboxHttpCache; 28 NET_EXPORT extern const base::Feature kExtraCookieValidityChecks;
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--- a/net/dns/host_resolver_manager.cc 35--- net/dns/host_resolver_manager.cc.orig
36+++ b/net/dns/host_resolver_manager.cc 36+++ net/dns/host_resolver_manager.cc
37@@ -151,11 +151,6 @@ const unsigned kMinimumTTLSeconds = kCac 37@@ -139,11 +139,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@@ -3907,7 +3902,7 @@ bool HostResolverManager::IsIPv6Reachabl 49@@ -3696,7 +3691,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 1b30554..9ff8cfa 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--- a/chrome/browser/resources/settings/search_engines_page/search_engine_edit_dialog.html 4--- chrome/browser/resources/settings/search_engines_page/search_engine_dialog.html.orig
5+++ b/chrome/browser/resources/settings/search_engines_page/search_engine_edit_dialog.html 5+++ chrome/browser/resources/settings/search_engines_page/search_engine_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--- a/chrome/browser/resources/settings/search_engines_page/search_engine_edit_dialog.ts 20--- chrome/browser/resources/settings/search_engines_page/search_engine_dialog.ts.orig
21+++ b/chrome/browser/resources/settings/search_engines_page/search_engine_edit_dialog.ts 21+++ chrome/browser/resources/settings/search_engines_page/search_engine_dialog.ts
22@@ -28,6 +28,7 @@ export interface SettingsSearchEngineEdi 22@@ -26,6 +26,7 @@ interface SettingsSearchEngineDialogElem
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@@ -56,6 +57,7 @@ export class SettingsSearchEngineEditDia 30@@ -54,6 +55,7 @@ class SettingsSearchEngineDialogElement
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,
37 actionButtonText_: String, 36 actionButtonText_: String,
38@@ -72,6 +74,7 @@ export class SettingsSearchEngineEditDia 37 };
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;
45 private actionButtonText_: string; 44 private actionButtonText_: string;
46@@ -103,6 +106,7 @@ export class SettingsSearchEngineEditDia 45 private browserProxy_: SearchEnginesBrowserProxy =
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@@ -142,8 +146,12 @@ export class SettingsSearchEngineEditDia 54@@ -127,8 +131,12 @@ class SettingsSearchEngineDialogElement
55 } 55 }
56 } 56 }
57 57
@@ -66,7 +66,7 @@
66 } 66 }
67 67
68 private cancel_() { 68 private cancel_() {
69@@ -152,7 +160,8 @@ export class SettingsSearchEngineEditDia 69@@ -137,7 +145,8 @@ class SettingsSearchEngineDialogElement
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@@ -180,9 +189,11 @@ export class SettingsSearchEngineEditDia 79@@ -165,9 +174,11 @@ class SettingsSearchEngineDialogElement
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--- a/chrome/browser/resources/settings/search_engines_page/search_engines_browser_proxy.ts 93--- chrome/browser/resources/settings/search_engines_page/search_engines_browser_proxy.ts.orig
94+++ b/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
95@@ -31,6 +31,7 @@ export type SearchEngine = { 95@@ -30,6 +30,7 @@ export type SearchEngine = {
96 modelIndex: number,
96 name: string, 97 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@@ -73,7 +74,7 @@ export interface SearchEnginesBrowserPro 103@@ -53,7 +54,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@@ -114,11 +115,12 @@ export class SearchEnginesBrowserProxyIm 112@@ -84,11 +85,12 @@ export class SearchEnginesBrowserProxyIm
113 } 113 }
114 114
115 searchEngineEditCompleted( 115 searchEngineEditCompleted(
@@ -123,8 +123,8 @@
123 ]); 123 ]);
124 } 124 }
125 125
126--- a/chrome/browser/ui/search_engines/edit_search_engine_controller.cc 126--- chrome/browser/ui/search_engines/edit_search_engine_controller.cc.orig
127+++ b/chrome/browser/ui/search_engines/edit_search_engine_controller.cc 127+++ 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--- a/chrome/browser/ui/search_engines/edit_search_engine_controller.h 168--- chrome/browser/ui/search_engines/edit_search_engine_controller.h.orig
169+++ b/chrome/browser/ui/search_engines/edit_search_engine_controller.h 169+++ 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--- a/chrome/browser/ui/search_engines/keyword_editor_controller.cc 199--- chrome/browser/ui/search_engines/keyword_editor_controller.cc.orig
200+++ b/chrome/browser/ui/search_engines/keyword_editor_controller.cc 200+++ 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--- a/chrome/browser/ui/search_engines/keyword_editor_controller.h 252--- chrome/browser/ui/search_engines/keyword_editor_controller.h.orig
253+++ b/chrome/browser/ui/search_engines/keyword_editor_controller.h 253+++ 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--- a/chrome/browser/ui/search_engines/template_url_table_model.cc 273--- chrome/browser/ui/search_engines/template_url_table_model.cc.orig
274+++ b/chrome/browser/ui/search_engines/template_url_table_model.cc 274+++ chrome/browser/ui/search_engines/template_url_table_model.cc
275@@ -108,21 +108,25 @@ void TemplateURLTableModel::Remove(int i 275@@ -109,21 +109,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@@ -131,7 +135,8 @@ void TemplateURLTableModel::ModifyTempla 306@@ -132,7 +136,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--- a/chrome/browser/ui/search_engines/template_url_table_model.h 316--- chrome/browser/ui/search_engines/template_url_table_model.h.orig
317+++ b/chrome/browser/ui/search_engines/template_url_table_model.h 317+++ chrome/browser/ui/search_engines/template_url_table_model.h
318@@ -53,13 +53,15 @@ class TemplateURLTableModel : public ui: 318@@ -54,13 +54,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--- a/chrome/browser/ui/webui/settings/search_engines_handler.cc 336--- chrome/browser/ui/webui/settings/search_engines_handler.cc.orig
337+++ b/chrome/browser/ui/webui/settings/search_engines_handler.cc 337+++ 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";
@@ -345,12 +345,12 @@
345 const int kNewSearchEngineIndex = -1; 345 const int kNewSearchEngineIndex = -1;
346@@ -212,6 +213,9 @@ SearchEnginesHandler::CreateDictionaryFo 346@@ -212,6 +213,9 @@ SearchEnginesHandler::CreateDictionaryFo
347 Profile* profile = Profile::FromWebUI(web_ui()); 347 Profile* profile = Profile::FromWebUI(web_ui());
348 dict->SetStringKey( 348 dict->SetString(
349 "url", template_url->url_ref().DisplayURL(UIThreadSearchTermsData())); 349 "url", template_url->url_ref().DisplayURL(UIThreadSearchTermsData()));
350+ dict->SetStringKey("suggestionsUrl", 350+ dict->SetString("suggestionsUrl",
351+ template_url->suggestions_url_ref().DisplayURL( 351+ template_url->suggestions_url_ref().DisplayURL(
352+ UIThreadSearchTermsData())); 352+ UIThreadSearchTermsData()));
353 dict->SetBoolKey("urlLocked", template_url->prepopulate_id() > 0); 353 dict->SetBoolean("urlLocked", template_url->prepopulate_id() > 0);
354 GURL icon_url = template_url->favicon_url(); 354 GURL icon_url = template_url->favicon_url();
355 if (icon_url.is_valid()) 355 if (icon_url.is_valid())
356@@ -325,12 +329,14 @@ void SearchEnginesHandler::HandleSearchE 356@@ -325,12 +329,14 @@ void SearchEnginesHandler::HandleSearchE
@@ -371,7 +371,7 @@
371 371
372 edit_controller_.reset(); 372 edit_controller_.reset();
373 } 373 }
374@@ -358,6 +364,8 @@ bool SearchEnginesHandler::CheckFieldVal 374@@ -361,6 +367,8 @@ bool SearchEnginesHandler::CheckFieldVal
375 is_valid = edit_controller_->IsKeywordValid(base::UTF8ToUTF16(field_value)); 375 is_valid = edit_controller_->IsKeywordValid(base::UTF8ToUTF16(field_value));
376 else if (field_name.compare(kQueryUrlField) == 0) 376 else if (field_name.compare(kQueryUrlField) == 0)
377 is_valid = edit_controller_->IsURLValid(field_value); 377 is_valid = edit_controller_->IsURLValid(field_value);
@@ -380,11 +380,15 @@
380 else 380 else
381 NOTREACHED(); 381 NOTREACHED();
382 382
383@@ -379,14 +387,17 @@ void SearchEnginesHandler::HandleSearchE 383@@ -382,17 +390,21 @@ void SearchEnginesHandler::HandleSearchE
384 const std::string& search_engine = args[0].GetString(); 384 std::string search_engine;
385 const std::string& keyword = args[1].GetString(); 385 std::string keyword;
386 const std::string& query_url = args[2].GetString(); 386 std::string query_url;
387+ const std::string& suggestions_url = args[3].GetString(); 387+ std::string suggestions_url;
388 CHECK(args->GetString(0, &search_engine));
389 CHECK(args->GetString(1, &keyword));
390 CHECK(args->GetString(2, &query_url));
391+ CHECK(args->GetString(3, &suggestions_url));
388 392
389 // 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
390 // user calls the right JS functions directly from the web inspector. 394 // user calls the right JS functions directly from the web inspector.
@@ -400,9 +404,9 @@
400 } 404 }
401 } 405 }
402 406
403--- a/chrome/browser/ui/webui/settings/search_engines_handler.h 407--- chrome/browser/ui/webui/settings/search_engines_handler.h.orig
404+++ b/chrome/browser/ui/webui/settings/search_engines_handler.h 408+++ chrome/browser/ui/webui/settings/search_engines_handler.h
405@@ -45,7 +45,8 @@ class SearchEnginesHandler : public Sett 409@@ -50,7 +50,8 @@ class SearchEnginesHandler : public Sett
406 void OnEditedKeyword(TemplateURL* template_url, 410 void OnEditedKeyword(TemplateURL* template_url,
407 const std::u16string& title, 411 const std::u16string& title,
408 const std::u16string& keyword, 412 const std::u16string& keyword,
@@ -412,9 +416,9 @@
412 416
413 // SettingsPageUIHandler implementation. 417 // SettingsPageUIHandler implementation.
414 void RegisterMessages() override; 418 void RegisterMessages() override;
415@@ -77,8 +78,8 @@ class SearchEnginesHandler : public Sett 419@@ -82,8 +83,8 @@ class SearchEnginesHandler : public Sett
416 // to WebUI. Called from WebUI. 420 // to WebUI. Called from WebUI.
417 void HandleValidateSearchEngineInput(base::Value::ConstListView args); 421 void HandleValidateSearchEngineInput(const base::ListValue* args);
418 422
419- // Checks whether the given user input field (searchEngine, keyword, queryUrl) 423- // Checks whether the given user input field (searchEngine, keyword, queryUrl)
420- // is populated with a valid value. 424- // is populated with a valid value.
@@ -423,9 +427,9 @@
423 bool CheckFieldValidity(const std::string& field_name, 427 bool CheckFieldValidity(const std::string& field_name,
424 const std::string& field_value); 428 const std::string& field_value);
425 429
426--- a/components/search_engines/template_url_service.cc 430--- components/search_engines/template_url_service.cc.orig
427+++ b/components/search_engines/template_url_service.cc 431+++ components/search_engines/template_url_service.cc
428@@ -643,7 +643,8 @@ void TemplateURLService::IncrementUsageC 432@@ -641,7 +641,8 @@ void TemplateURLService::IncrementUsageC
429 void TemplateURLService::ResetTemplateURL(TemplateURL* url, 433 void TemplateURLService::ResetTemplateURL(TemplateURL* url,
430 const std::u16string& title, 434 const std::u16string& title,
431 const std::u16string& keyword, 435 const std::u16string& keyword,
@@ -435,7 +439,7 @@
435 DCHECK(!IsCreatedByExtension(url)); 439 DCHECK(!IsCreatedByExtension(url));
436 DCHECK(!keyword.empty()); 440 DCHECK(!keyword.empty());
437 DCHECK(!search_url.empty()); 441 DCHECK(!search_url.empty());
438@@ -658,6 +659,7 @@ void TemplateURLService::ResetTemplateUR 442@@ -656,6 +657,7 @@ void TemplateURLService::ResetTemplateUR
439 data.safe_for_autoreplace = false; 443 data.safe_for_autoreplace = false;
440 data.last_modified = clock_->Now(); 444 data.last_modified = clock_->Now();
441 data.is_active = TemplateURLData::ActiveStatus::kTrue; 445 data.is_active = TemplateURLData::ActiveStatus::kTrue;
@@ -443,8 +447,8 @@
443 447
444 Update(url, TemplateURL(data)); 448 Update(url, TemplateURL(data));
445 } 449 }
446--- a/components/search_engines/template_url_service.h 450--- components/search_engines/template_url_service.h.orig
447+++ b/components/search_engines/template_url_service.h 451+++ components/search_engines/template_url_service.h
448@@ -253,7 +253,8 @@ class TemplateURLService : public WebDat 452@@ -253,7 +253,8 @@ class TemplateURLService : public WebDat
449 void ResetTemplateURL(TemplateURL* url, 453 void ResetTemplateURL(TemplateURL* url,
450 const std::u16string& title, 454 const std::u16string& title,
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 3c6d4f8..4a78da1 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--- a/chrome/browser/about_flags.cc 1--- chrome/browser/about_flags.cc.orig
2+++ b/chrome/browser/about_flags.cc 2+++ chrome/browser/about_flags.cc
3@@ -2865,7 +2865,13 @@ constexpr FeatureEntry::FeatureVariation 3@@ -2728,7 +2728,13 @@ const FeatureEntry::FeatureVariation kWi
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+++ b/chrome/browser/bromite_flag_choices.h 18+++ 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+++ b/chrome/browser/bromite_flag_entries.h 28+++ 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+++ b/chrome/browser/ungoogled_flag_choices.h 38+++ 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+++ b/chrome/browser/ungoogled_flag_entries.h 48+++ 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+++ b/chrome/browser/ungoogled_platform_flag_choices.h 58+++ 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+++ b/chrome/browser/ungoogled_platform_flag_entries.h 68+++ 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 058119f..fab5b74 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--- a/chrome/browser/media/router/discovery/dial/dial_registry.cc 4--- chrome/browser/media/router/discovery/dial/dial_registry.cc.orig
5+++ b/chrome/browser/media/router/discovery/dial/dial_registry.cc 5+++ chrome/browser/media/router/discovery/dial/dial_registry.cc
6@@ -150,10 +150,6 @@ void DialRegistry::StartPeriodicDiscover 6@@ -190,10 +190,6 @@ void DialRegistry::StartPeriodicDiscover
7 return;
8 7
9 dial_ = CreateDialService(); 8 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 // Always send the current device list with the next discovery request. This 14 }
15 // may not be necessary, but is done to match previous behavior. 15
16 ++registry_generation_; 16 void DialRegistry::DoDiscovery() {
17@@ -170,8 +166,6 @@ void DialRegistry::StopPeriodicDiscovery 17@@ -207,8 +203,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);
23 ClearDialService(); 24 ClearDialService();
24 } 25 }
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 44d5aca..2191bbe 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--- a/components/download/internal/common/base_file.cc 3--- components/download/internal/common/base_file.cc.orig
4+++ b/components/download/internal/common/base_file.cc 4+++ components/download/internal/common/base_file.cc
5@@ -22,7 +22,6 @@ 5@@ -23,7 +23,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 BUILDFLAG(IS_ANDROID) 12 #if defined(OS_WIN)
13@@ -525,102 +524,6 @@ DownloadInterruptReason BaseFile::Publis 13@@ -535,105 +534,6 @@ DownloadInterruptReason BaseFile::Publis
14 } 14 }
15 #endif // BUILDFLAG(IS_ANDROID) 15 #endif // defined(OS_ANDROID)
16 16
17-namespace { 17-namespace {
18- 18-
@@ -102,24 +102,27 @@
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 BUILDFLAG(IS_WIN) 105-#if defined(OS_WIN)
106- OnFileQuarantined(/*connection_error=*/true, 106- if (base::FeatureList::IsEnabled(quarantine::kOutOfProcessQuarantine)) {
107- quarantine::SetInternetZoneIdentifierDirectly( 107- OnFileQuarantined(/*connection_error=*/true,
108- full_path_, source_url, referrer_url)); 108- quarantine::SetInternetZoneIdentifierDirectly(
109-#else // !BUILDFLAG(IS_WIN) 109- full_path_, source_url, referrer_url));
110- return;
111- }
112-#endif // defined(OS_WIN)
113-
110- CHECK(false) << "In-process quarantine service should not have failed."; 114- CHECK(false) << "In-process quarantine service should not have failed.";
111-#endif // !BUILDFLAG(IS_WIN)
112-} 115-}
113 116
114 void BaseFile::AnnotateWithSourceInformation( 117 void BaseFile::AnnotateWithSourceInformation(
115 const std::string& client_guid, 118 const std::string& client_guid,
116@@ -628,32 +531,8 @@ void BaseFile::AnnotateWithSourceInforma 119@@ -641,32 +541,8 @@ void BaseFile::AnnotateWithSourceInforma
117 const GURL& referrer_url, 120 const GURL& referrer_url,
118 mojo::PendingRemote<quarantine::mojom::Quarantine> remote_quarantine, 121 mojo::PendingRemote<quarantine::mojom::Quarantine> remote_quarantine,
119 OnAnnotationDoneCallback on_annotation_done_callback) { 122 OnAnnotationDoneCallback on_annotation_done_callback) {
120- GURL authority_url = GetEffectiveAuthorityURL(source_url, referrer_url); 123- GURL authority_url = GetEffectiveAuthorityURL(source_url, referrer_url);
121- if (!remote_quarantine) { 124- if (!remote_quarantine) {
122-#if BUILDFLAG(IS_WIN) 125-#if defined(OS_WIN)
123- quarantine::mojom::QuarantineFileResult result = 126- quarantine::mojom::QuarantineFileResult result =
124- quarantine::SetInternetZoneIdentifierDirectly(full_path_, authority_url, 127- quarantine::SetInternetZoneIdentifierDirectly(full_path_, authority_url,
125- referrer_url); 128- referrer_url);
@@ -148,8 +151,8 @@
148 } 151 }
149 152
150 } // namespace download 153 } // namespace download
151--- a/content/browser/BUILD.gn 154--- content/browser/BUILD.gn.orig
152+++ b/content/browser/BUILD.gn 155+++ content/browser/BUILD.gn
153@@ -82,7 +82,6 @@ source_set("browser") { 156@@ -82,7 +82,6 @@ source_set("browser") {
154 "//components/permissions:permissions_common", 157 "//components/permissions:permissions_common",
155 "//components/power_scheduler", 158 "//components/power_scheduler",
@@ -158,17 +161,17 @@
158 "//components/services/storage", 161 "//components/services/storage",
159 "//components/services/storage:filesystem_proxy_factory", 162 "//components/services/storage:filesystem_proxy_factory",
160 "//components/services/storage/dom_storage:local_storage_proto", 163 "//components/services/storage/dom_storage:local_storage_proto",
161--- a/content/browser/file_system_access/safe_move_helper.cc 164--- content/browser/file_system_access/safe_move_helper.cc.orig
162+++ b/content/browser/file_system_access/safe_move_helper.cc 165+++ content/browser/file_system_access/safe_move_helper.cc
163@@ -13,7 +13,6 @@ 166@@ -12,7 +12,6 @@
167 #include "base/task/thread_pool.h"
164 #include "base/threading/sequenced_task_runner_handle.h" 168 #include "base/threading/sequenced_task_runner_handle.h"
165 #include "build/build_config.h" 169 #include "build/build_config.h"
166 #include "build/chromeos_buildflags.h"
167-#include "components/services/quarantine/quarantine.h" 170-#include "components/services/quarantine/quarantine.h"
168 #include "content/browser/file_system_access/file_system_access_error.h" 171 #include "content/browser/file_system_access/file_system_access_error.h"
169 #include "content/public/browser/content_browser_client.h" 172 #include "content/public/browser/content_browser_client.h"
170 #include "content/public/common/content_client.h" 173 #include "content/public/common/content_client.h"
171@@ -194,20 +193,8 @@ void SafeMoveHelper::DidAfterWriteCheck( 174@@ -193,20 +192,8 @@ void SafeMoveHelper::DidAfterWriteCheck(
172 // not exist anymore. In case of error, the source file URL will point to a 175 // not exist anymore. In case of error, the source file URL will point to a
173 // valid filesystem location. 176 // valid filesystem location.
174 base::OnceCallback<void(base::File::Error)> result_callback; 177 base::OnceCallback<void(base::File::Error)> result_callback;
@@ -187,9 +190,9 @@
187 weak_factory_.GetWeakPtr()); 190 weak_factory_.GetWeakPtr());
188- } 191- }
189 manager_->DoFileSystemOperation( 192 manager_->DoFileSystemOperation(
190 FROM_HERE, &storage::FileSystemOperationRunner::Move, 193 FROM_HERE, &storage::FileSystemOperationRunner::MoveFileLocal,
191 std::move(result_callback), source_url(), dest_url(), options_, 194 std::move(result_callback), source_url(), dest_url(), option_);
192@@ -223,7 +210,6 @@ void SafeMoveHelper::DidFileSkipQuaranti 195@@ -220,7 +207,6 @@ void SafeMoveHelper::DidFileSkipQuaranti
193 void SafeMoveHelper::DidFileDoQuarantine( 196 void SafeMoveHelper::DidFileDoQuarantine(
194 const storage::FileSystemURL& target_url, 197 const storage::FileSystemURL& target_url,
195 const GURL& referrer_url, 198 const GURL& referrer_url,
@@ -197,7 +200,7 @@
197 base::File::Error result) { 200 base::File::Error result) {
198 DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); 201 DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
199 202
200@@ -254,37 +240,9 @@ void SafeMoveHelper::DidFileDoQuarantine 203@@ -251,37 +237,9 @@ void SafeMoveHelper::DidFileDoQuarantine
201 referrer_url.is_valid() && referrer_url.SchemeIsHTTPOrHTTPS() 204 referrer_url.is_valid() && referrer_url.SchemeIsHTTPOrHTTPS()
202 ? referrer_url 205 ? referrer_url
203 : GURL(); 206 : GURL();
@@ -215,7 +218,7 @@
215- std::move(quarantine_remote)), 218- std::move(quarantine_remote)),
216- quarantine::mojom::QuarantineFileResult::ANNOTATION_FAILED)); 219- quarantine::mojom::QuarantineFileResult::ANNOTATION_FAILED));
217- } else { 220- } else {
218-#if BUILDFLAG(IS_WIN) 221-#if defined(OS_WIN)
219- base::ThreadPool::PostTaskAndReplyWithResult( 222- base::ThreadPool::PostTaskAndReplyWithResult(
220- FROM_HERE, {base::MayBlock()}, 223- FROM_HERE, {base::MayBlock()},
221- base::BindOnce(&quarantine::SetInternetZoneIdentifierDirectly, 224- base::BindOnce(&quarantine::SetInternetZoneIdentifierDirectly,
@@ -235,8 +238,8 @@
235 quarantine::mojom::QuarantineFileResult result) { 238 quarantine::mojom::QuarantineFileResult result) {
236 DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); 239 DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
237 240
238--- a/content/browser/file_system_access/safe_move_helper.h 241--- content/browser/file_system_access/safe_move_helper.h.orig
239+++ b/content/browser/file_system_access/safe_move_helper.h 242+++ content/browser/file_system_access/safe_move_helper.h
240@@ -58,10 +58,8 @@ class CONTENT_EXPORT SafeMoveHelper { 243@@ -58,10 +58,8 @@ class CONTENT_EXPORT SafeMoveHelper {
241 void DidFileDoQuarantine( 244 void DidFileDoQuarantine(
242 const storage::FileSystemURL& target_url, 245 const storage::FileSystemURL& target_url,
@@ -248,13 +251,13 @@
248 quarantine::mojom::QuarantineFileResult result); 251 quarantine::mojom::QuarantineFileResult result);
249 252
250 void ComputeHashForSourceFile(HashCallback callback); 253 void ComputeHashForSourceFile(HashCallback callback);
251--- a/content/browser/renderer_host/pepper/pepper_file_io_host.cc 254--- content/browser/renderer_host/pepper/pepper_file_io_host.cc.orig
252+++ b/content/browser/renderer_host/pepper/pepper_file_io_host.cc 255+++ content/browser/renderer_host/pepper/pepper_file_io_host.cc
253@@ -456,7 +456,7 @@ void PepperFileIOHost::OnLocalFileOpened 256@@ -456,7 +456,7 @@ void PepperFileIOHost::OnLocalFileOpened
254 ppapi::host::ReplyMessageContext reply_context, 257 ppapi::host::ReplyMessageContext reply_context,
255 const base::FilePath& path, 258 const base::FilePath& path,
256 base::File::Error error_code) { 259 base::File::Error error_code) {
257-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) 260-#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD)
258+#if 0 261+#if 0
259 // Quarantining a file before its contents are available is only supported on 262 // Quarantining a file before its contents are available is only supported on
260 // Windows and Linux. 263 // Windows and Linux.
@@ -263,15 +266,15 @@
263 #endif 266 #endif
264 } 267 }
265 268
266-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) 269-#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD)
267+#if 0 270+#if 0
268 void PepperFileIOHost::OnLocalFileQuarantined( 271 void PepperFileIOHost::OnLocalFileQuarantined(
269 ppapi::host::ReplyMessageContext reply_context, 272 ppapi::host::ReplyMessageContext reply_context,
270 const base::FilePath& path, 273 const base::FilePath& path,
271--- a/content/browser/renderer_host/pepper/pepper_file_io_host.h 274--- content/browser/renderer_host/pepper/pepper_file_io_host.h.orig
272+++ b/content/browser/renderer_host/pepper/pepper_file_io_host.h 275+++ content/browser/renderer_host/pepper/pepper_file_io_host.h
273@@ -13,7 +13,6 @@ 276@@ -13,7 +13,6 @@
274 #include "base/memory/raw_ptr.h" 277 #include "base/macros.h"
275 #include "base/memory/ref_counted.h" 278 #include "base/memory/ref_counted.h"
276 #include "base/memory/weak_ptr.h" 279 #include "base/memory/weak_ptr.h"
277-#include "components/services/quarantine/public/mojom/quarantine.mojom.h" 280-#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 35e5fd5..f9f6449 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--- a/components/url_formatter/url_formatter.cc 3--- components/url_formatter/url_formatter.cc.orig
4+++ b/components/url_formatter/url_formatter.cc 4+++ components/url_formatter/url_formatter.cc
5@@ -492,14 +492,14 @@ bool HasTwoViewSourceSchemes(base::Strin 5@@ -463,14 +463,14 @@ ComponentResult IDNToUnicodeOneComponent
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 bc2945b..f264b5d 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--- a/chrome/browser/intranet_redirect_detector.cc 4--- chrome/browser/intranet_redirect_detector.cc.orig
5+++ b/chrome/browser/intranet_redirect_detector.cc 5+++ 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
deleted file mode 100644
index ea7e7a0..0000000
--- a/www/chromium-uc/patches/extra/ungoogled-chromium/disable-remote-optimization-guide.patch
+++ /dev/null
@@ -1,11 +0,0 @@
1--- a/components/optimization_guide/core/optimization_guide_features.cc
2+++ b/components/optimization_guide/core/optimization_guide_features.cc
3@@ -77,7 +77,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 7372bf3..2896a43 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--- a/third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.cc 4--- third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.cc.orig
5+++ b/third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.cc 5+++ third_party/blink/renderer/modules/webgl/webgl_rendering_context_base.cc
6@@ -3630,8 +3630,7 @@ ScriptValue WebGLRenderingContextBase::g 6@@ -3595,8 +3595,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@@ -3645,8 +3644,7 @@ ScriptValue WebGLRenderingContextBase::g 16@@ -3610,8 +3609,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 0d2a41f..4ea4498 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--- a/third_party/blink/common/features.cc 3--- third_party/blink/common/features.cc.orig
4+++ b/third_party/blink/common/features.cc 4+++ third_party/blink/common/features.cc
5@@ -468,7 +468,7 @@ const base::Feature kComputePressure{"Co 5@@ -416,7 +416,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 915b3be..5f87fc2 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--- a/chrome/browser/ui/views/toolbar/reload_button.cc 3--- chrome/browser/ui/views/toolbar/reload_button.cc.orig
4+++ b/chrome/browser/ui/views/toolbar/reload_button.cc 4+++ chrome/browser/ui/views/toolbar/reload_button.cc
5@@ -83,7 +83,7 @@ bool ReloadButton::GetMenuEnabled() cons 5@@ -84,7 +84,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 7d52d55..a983beb 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--- a/chrome/browser/ui/browser_commands.cc 3--- chrome/browser/ui/browser_commands.cc.orig
4+++ b/chrome/browser/ui/browser_commands.cc 4+++ chrome/browser/ui/browser_commands.cc
5@@ -443,11 +443,6 @@ int GetContentRestrictions(const Browser 5@@ -440,11 +440,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@@ -1371,8 +1366,7 @@ bool CanSavePage(const Browser* browser) 17@@ -1342,8 +1337,7 @@ bool CanSavePage(const Browser* browser)
18 DownloadPrefs::DownloadRestriction::ALL_FILES) { 18 prefs::kAllowFileSelectionDialogs)) {
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--- a/components/offline_pages/core/offline_page_model.cc 27--- components/offline_pages/core/offline_page_model.cc.orig
28+++ b/components/offline_pages/core/offline_page_model.cc 28+++ 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--- a/content/common/url_schemes.cc 38--- content/common/url_schemes.cc.orig
39+++ b/content/common/url_schemes.cc 39+++ content/common/url_schemes.cc
40@@ -23,13 +23,22 @@ namespace { 40@@ -23,6 +23,9 @@ 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,7 +47,8 @@
47 url::kHttpScheme, 47 url::kHttpScheme,
48 url::kHttpsScheme, 48 url::kHttpsScheme,
49 url::kFileScheme, 49 url::kFileScheme,
50 url::kFileSystemScheme, 50@@ -30,7 +33,13 @@ const char* const kDefaultSavableSchemes
51 url::kFtpScheme,
51 kChromeDevToolsScheme, 52 kChromeDevToolsScheme,
52 kChromeUIScheme, 53 kChromeUIScheme,
53- url::kDataScheme 54- url::kDataScheme
@@ -61,9 +62,9 @@
61 }; 62 };
62 63
63 // These lists are lazily initialized below and are leaked on shutdown to 64 // These lists are lazily initialized below and are leaked on shutdown to
64--- a/content/public/common/url_utils.cc 65--- content/public/common/url_utils.cc.orig
65+++ b/content/public/common/url_utils.cc 66+++ content/public/common/url_utils.cc
66@@ -27,11 +27,7 @@ bool HasWebUIScheme(const GURL& url) { 67@@ -26,11 +26,7 @@ bool HasWebUIScheme(const GURL& url) {
67 } 68 }
68 69
69 bool IsSavableURL(const GURL& url) { 70 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 fa93e8a..6205679 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--- a/chrome/browser/ui/views/tabs/new_tab_button.cc 1--- chrome/browser/ui/views/tabs/new_tab_button.cc.orig
2+++ b/chrome/browser/ui/views/tabs/new_tab_button.cc 2+++ chrome/browser/ui/views/tabs/new_tab_button.cc
3@@ -59,10 +59,8 @@ NewTabButton::NewTabButton(TabStrip* tab 3@@ -58,10 +58,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 BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) 7-#if defined(OS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || defined(OS_BSD)
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--- a/chrome/browser/ui/views/tabs/tab_strip.cc 14--- chrome/browser/ui/views/tabs/tab_strip.cc.orig
15+++ b/chrome/browser/ui/views/tabs/tab_strip.cc 15+++ chrome/browser/ui/views/tabs/tab_strip.cc
16@@ -2315,8 +2315,6 @@ void TabStrip::NewTabButtonPressed(const 16@@ -2680,8 +2680,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@@ -2324,7 +2322,6 @@ void TabStrip::NewTabButtonPressed(const 25@@ -2689,7 +2687,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 2b0ee0b..6fb35ec 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--- a/chrome/browser/media/router/discovery/mdns/dns_sd_device_lister.cc 3--- chrome/browser/media/router/discovery/mdns/dns_sd_device_lister.cc.orig
4+++ b/chrome/browser/media/router/discovery/mdns/dns_sd_device_lister.cc 4+++ 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 3cd56cb..80a9618 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--- a/components/dom_distiller/core/css/distilledpage.css 1--- components/dom_distiller/core/css/distilledpage.css.orig
2+++ b/components/dom_distiller/core/css/distilledpage.css 2+++ 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 b6dbaad..9f9df17 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--- a/components/flags_ui/flags_state.cc 1--- components/flags_ui/flags_state.cc.orig
2+++ b/components/flags_ui/flags_state.cc 2+++ 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@@ -555,14 +556,18 @@ void FlagsState::GetFlagFeatureEntries( 11@@ -577,14 +578,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@@ -881,6 +886,7 @@ bool FlagsState::IsSupportedFeature(cons 31@@ -901,6 +906,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 ef49d8b..58e1587 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--- a/components/search_engines/template_url_prepopulate_data.cc 9--- components/search_engines/template_url_prepopulate_data.cc.orig
10+++ b/components/search_engines/template_url_prepopulate_data.cc 10+++ components/search_engines/template_url_prepopulate_data.cc
11@@ -1331,6 +1331,9 @@ std::vector<std::unique_ptr<TemplateURLD 11@@ -1325,6 +1325,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--- a/components/search_engines/util.cc 21--- components/search_engines/util.cc.orig
22+++ b/components/search_engines/util.cc 22+++ 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 4ff54f2..55ddd53 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--- a/chrome/browser/ui/startup/bad_flags_prompt.cc 3--- chrome/browser/ui/startup/bad_flags_prompt.cc.orig
4+++ b/chrome/browser/ui/startup/bad_flags_prompt.cc 4+++ chrome/browser/ui/startup/bad_flags_prompt.cc
5@@ -59,7 +59,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 BUILDFLAG(IS_WIN) 11 #if defined(OS_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 90b3f4a..cbb86fd 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--- a/chrome/browser/resources/extensions/item_list.html 21--- chrome/browser/resources/extensions/item_list.html.orig
22+++ b/chrome/browser/resources/extensions/item_list.html 22+++ 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--- a/chrome/browser/resources/extensions/sidebar.html 37--- chrome/browser/resources/extensions/sidebar.html.orig
38+++ b/chrome/browser/resources/extensions/sidebar.html 38+++ chrome/browser/resources/extensions/sidebar.html
39@@ -76,12 +76,3 @@ 39@@ -69,12 +69,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--- a/chrome/browser/resources/history/side_bar.html 52--- chrome/browser/resources/history/side_bar.html.orig
53+++ b/chrome/browser/resources/history/side_bar.html 53+++ chrome/browser/resources/history/side_bar.html
54@@ -120,13 +120,6 @@ 54@@ -128,13 +128,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 <a role="menuitem" id="clear-browsing-data" 66 <a role="menuitem" id="clear-browsing-data"
66 class="cr-nav-menu-item" 67 class="cr-nav-menu-item"
67 href="chrome://settings/clearBrowserData" 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--- a/chrome/browser/resources/settings/a11y_page/a11y_page.html 79--- chrome/browser/resources/settings/a11y_page/a11y_page.html.orig
80+++ b/chrome/browser/resources/settings/a11y_page/a11y_page.html 80+++ 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,9 +88,9 @@
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}"
92 sub-label="$i18n{accessibleImageLabelsSubtitle}"> 91 sub-label="$i18n{accessibleImageLabelsSubtitle}">
93 </settings-toggle-button> 92 </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>
@@ -98,8 +98,8 @@
98 </div> 98 </div>
99 <if expr="not chromeos"> 99 <if expr="not chromeos">
100 <template is="dom-if" if="[[!captionSettingsOpensExternally_]]"> 100 <template is="dom-if" if="[[!captionSettingsOpensExternally_]]">
101--- a/chrome/browser/resources/settings/about_page/about_page.html 101--- chrome/browser/resources/settings/about_page/about_page.html.orig
102+++ b/chrome/browser/resources/settings/about_page/about_page.html 102+++ 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--- a/chrome/browser/resources/settings/appearance_page/appearance_page.html 112--- chrome/browser/resources/settings/appearance_page/appearance_page.html.orig
113+++ b/chrome/browser/resources/settings/appearance_page/appearance_page.html 113+++ 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_linux or chromeos_ash or chromeos_lacros"> 127 <if expr="not is_posix or chromeos or 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--- a/chrome/browser/resources/settings/autofill_page/passwords_section.html 130--- chrome/browser/resources/settings/autofill_page/passwords_section.html.orig
131+++ b/chrome/browser/resources/settings/autofill_page/passwords_section.html 131+++ chrome/browser/resources/settings/autofill_page/passwords_section.html
132@@ -102,6 +102,7 @@ 132@@ -107,6 +107,7 @@
133 label="$i18n{passwordsAutosigninLabel}" 133 label="$i18n{trustedVaultOptInLabel}"
134 sub-label="$i18n{passwordsAutosigninDescription}"> 134 sub-label="$i18n{trustedVaultOptInSubLabel}">
135 </settings-toggle-button> 135 </cr-link-row>
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@@ -156,6 +157,7 @@ 140@@ -155,6 +156,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,60 +145,58 @@
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--- a/chrome/browser/resources/settings/autofill_page/payments_section.html 148--- chrome/browser/resources/settings/autofill_page/payments_section.html.orig
149+++ b/chrome/browser/resources/settings/autofill_page/payments_section.html 149+++ chrome/browser/resources/settings/autofill_page/payments_section.html
150@@ -53,11 +53,6 @@ 150@@ -53,11 +53,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--- a/chrome/browser/resources/settings/basic_page/basic_page.html 162--- chrome/browser/resources/settings/basic_page/basic_page.html.orig
163+++ b/chrome/browser/resources/settings/basic_page/basic_page.html 163+++ chrome/browser/resources/settings/basic_page/basic_page.html
164@@ -59,7 +59,7 @@ 164@@ -102,7 +102,7 @@
165 prefs="{{prefs}}"> 165 <settings-privacy-review-promo></settings-privacy-review-promo>
166 </settings-privacy-guide-promo> 166 </settings-section>
167 </settings-section> 167 </template>
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--- a/chrome/browser/resources/settings/privacy_page/personalization_options.html 173--- chrome/browser/resources/settings/privacy_page/personalization_options.html.orig
174+++ b/chrome/browser/resources/settings/privacy_page/personalization_options.html 174+++ chrome/browser/resources/settings/privacy_page/personalization_options.html
175@@ -13,7 +13,7 @@ 175@@ -8,7 +8,7 @@
176 padding-inline-start: 0; 176 border-top: none;
177 } 177 }
178 </style> 178 </style>
179-<if expr="not chromeos and not lacros"> 179-<if expr="not chromeos">
180+<if expr="false"> 180+<if expr="false">
181 <!-- Signout is not supported yet on lacros, https://crbug.com/1217645 -->
182 <settings-toggle-button id="signinAllowedToggle" 181 <settings-toggle-button id="signinAllowedToggle"
183 class="hr" 182 class="hr"
184@@ -70,14 +70,6 @@ 183 hidden="[[!signinAvailable_]]"
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- <template is="dom-if" if="[[showUrlCollectionToggle_()]]" restamp> 188- <settings-toggle-button id="urlCollectionToggle"
189- <settings-toggle-button id="urlCollectionToggle" 189- class="hr"
190- class="hr" 190- pref="{{prefs.url_keyed_anonymized_data_collection.enabled}}"
191- pref="{{prefs.url_keyed_anonymized_data_collection.enabled}}" 191- label="$i18n{urlKeyedAnonymizedDataCollection}"
192- label="$i18n{urlKeyedAnonymizedDataCollection}" 192- sub-label="$i18n{urlKeyedAnonymizedDataCollectionDesc}">
193- sub-label="$i18n{urlKeyedAnonymizedDataCollectionDesc}"> 193- </settings-toggle-button>
194- </settings-toggle-button>
195- </template>
196 <if expr="_google_chrome"> 194 <if expr="_google_chrome">
197 <settings-toggle-button id="spellCheckControl" 195 <settings-toggle-button id="spellCheckControl"
198 class="hr" 196 class="hr"
199--- a/chrome/browser/resources/settings/privacy_page/security_page.html 197--- chrome/browser/resources/settings/privacy_page/security_page.html.orig
200+++ b/chrome/browser/resources/settings/privacy_page/security_page.html 198+++ chrome/browser/resources/settings/privacy_page/security_page.html
201@@ -107,10 +107,3 @@ 199@@ -96,10 +96,3 @@
202 sub-label="$i18n{manageCertificatesDescription}" 200 sub-label="$i18n{manageCertificatesDescription}"
203 on-click="onManageCertificatesClick_"></cr-link-row> 201 on-click="onManageCertificatesClick_"></cr-link-row>
204 </if> 202 </if>
@@ -209,8 +207,8 @@
209- on-click="onAdvancedProtectionProgramLinkClick_" 207- on-click="onAdvancedProtectionProgramLinkClick_"
210- external> 208- external>
211- </cr-link-row> 209- </cr-link-row>
212--- a/chrome/browser/resources/settings/search_page/search_page.html 210--- chrome/browser/resources/settings/search_page/search_page.html.orig
213+++ b/chrome/browser/resources/settings/search_page/search_page.html 211+++ chrome/browser/resources/settings/search_page/search_page.html
214@@ -12,10 +12,6 @@ 212@@ -12,10 +12,6 @@
215 <div class="cr-row first"> 213 <div class="cr-row first">
216 <div id="searchExplanation" class="flex cr-padded-text"> 214 <div id="searchExplanation" class="flex cr-padded-text">
@@ -222,8 +220,19 @@
222 </div> 220 </div>
223 <template is="dom-if" if="[[isDefaultSearchControlledByPolicy_( 221 <template is="dom-if" if="[[isDefaultSearchControlledByPolicy_(
224 prefs.default_search_provider_data.template_url_data)]]"> 222 prefs.default_search_provider_data.template_url_data)]]">
225--- a/chrome/browser/resources/settings/settings_page/settings_subpage.html 223--- chrome/browser/resources/settings/settings_menu/settings_menu.html.orig
226+++ b/chrome/browser/resources/settings/settings_page/settings_subpage.html 224+++ chrome/browser/resources/settings/settings_menu/settings_menu.html
225@@ -111,7 +111,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
227@@ -72,7 +72,7 @@ 236@@ -72,7 +72,7 @@
228 </template> 237 </template>
229 <h1 class="cr-title-text">[[pageTitle]]</h1> 238 <h1 class="cr-title-text">[[pageTitle]]</h1>
@@ -233,9 +242,9 @@
233 <cr-icon-button iron-icon="cr:help-outline" dir="ltr" 242 <cr-icon-button iron-icon="cr:help-outline" dir="ltr"
234 aria-label="$i18n{learnMore}" on-click="onHelpClick_"> 243 aria-label="$i18n{learnMore}" on-click="onHelpClick_">
235 </cr-icon-button> 244 </cr-icon-button>
236--- a/chrome/browser/ui/views/profiles/profile_menu_view.cc 245--- chrome/browser/ui/views/profiles/profile_menu_view.cc.orig
237+++ b/chrome/browser/ui/views/profiles/profile_menu_view.cc 246+++ chrome/browser/ui/views/profiles/profile_menu_view.cc
238@@ -175,6 +175,7 @@ void ProfileMenuView::BuildMenu() { 247@@ -176,6 +176,7 @@ void ProfileMenuView::BuildMenu() {
239 } 248 }
240 249
241 gfx::ImageSkia ProfileMenuView::GetSyncIcon() const { 250 gfx::ImageSkia ProfileMenuView::GetSyncIcon() const {
@@ -243,7 +252,7 @@
243 Profile* profile = browser()->profile(); 252 Profile* profile = browser()->profile();
244 if (profile->IsOffTheRecord() || profile->IsGuestSession()) 253 if (profile->IsOffTheRecord() || profile->IsGuestSession())
245 return gfx::ImageSkia(); 254 return gfx::ImageSkia();
246@@ -456,8 +457,7 @@ void ProfileMenuView::BuildIdentity() { 255@@ -450,8 +451,7 @@ void ProfileMenuView::BuildIdentity() {
247 menu_subtitle_); 256 menu_subtitle_);
248 } else { 257 } else {
249 menu_title_ = std::u16string(); 258 menu_title_ = std::u16string();
@@ -253,19 +262,21 @@
253 SetProfileIdentityInfo( 262 SetProfileIdentityInfo(
254 profile_name, background_color, edit_button_params, 263 profile_name, background_color, edit_button_params,
255 ui::ImageModel::FromImage( 264 ui::ImageModel::FromImage(
256--- a/chrome/browser/ui/views/sad_tab_view.cc 265--- chrome/browser/ui/views/sad_tab_view.cc.orig
257+++ b/chrome/browser/ui/views/sad_tab_view.cc 266+++ chrome/browser/ui/views/sad_tab_view.cc
258@@ -549,13 +549,6 @@ SadTabView::SadTabView(content::WebConte 267@@ -556,15 +556,9 @@ SadTabView::SadTabView(content::WebConte
259 auto* actions_container = 268 CreateErrorCodeLabel(GetErrorCodeFormatString(), GetCrashedErrorCode()),
260 container->AddChildView(std::make_unique<views::FlexLayoutView>()); 269 2, 1.0, views::GridLayout::LEADING, views::GridLayout::LEADING);
261 actions_container->SetCrossAxisAlignment(views::LayoutAlignment::kCenter); 270
262- auto* help_link = 271- auto help_link = std::make_unique<views::Link>(
263- actions_container->AddChildView(std::make_unique<views::Link>( 272- l10n_util::GetStringUTF16(GetHelpLinkTitle()));
264- l10n_util::GetStringUTF16(GetHelpLinkTitle())));
265- help_link->SetCallback(base::BindRepeating( 273- help_link->SetCallback(base::BindRepeating(
266- &SadTab::PerformAction, base::Unretained(this), Action::HELP_LINK)); 274- &SadTab::PerformAction, base::Unretained(this), Action::HELP_LINK));
267- help_link->SetProperty(views::kTableVertAlignKey, 275 layout->StartRowWithPadding(views::GridLayout::kFixedSize, column_set_id,
268- views::LayoutAlignment::kCenter); 276 views::GridLayout::kFixedSize,
269 action_button_ = 277 unrelated_vertical_spacing_large);
270 actions_container->AddChildView(std::make_unique<views::MdTextButton>( 278- layout->AddView(std::move(help_link), 1.0, 1.0, views::GridLayout::LEADING,
271 base::BindRepeating(&SadTabView::PerformAction, 279- views::GridLayout::CENTER);
280 auto action_button = std::make_unique<views::MdTextButton>(
281 base::BindRepeating(&SadTabView::PerformAction, base::Unretained(this),
282 Action::BUTTON),