|
@@ -22,7 +22,7 @@ License: GPL-3.0-only - https://spdx.org/licenses/GPL-3.0-only.html
|
|
|
chrome/browser/browser_process_impl.cc | 29 -------
|
|
|
chrome/browser/browser_process_impl.h | 4 -
|
|
|
.../chrome_browsing_data_remover_delegate.cc | 2 +
|
|
|
- .../browser/chrome_content_browser_client.cc | 35 ++++----
|
|
|
+ .../browser/chrome_content_browser_client.cc | 32 ++++----
|
|
|
.../browser/chrome_content_browser_client.h | 2 +
|
|
|
...ontent_browser_client_receiver_bindings.cc | 2 +
|
|
|
.../file_type_policies_component_installer.cc | 16 +---
|
|
@@ -47,7 +47,7 @@ License: GPL-3.0-only - https://spdx.org/licenses/GPL-3.0-only.html
|
|
|
.../lookalike_url_controller_client.cc | 4 -
|
|
|
.../metrics/chrome_metrics_service_client.cc | 3 -
|
|
|
...ial_comparison_cert_verifier_controller.cc | 3 -
|
|
|
- .../chrome_password_manager_client.cc | 25 +-----
|
|
|
+ .../chrome_password_manager_client.cc | 29 ++-----
|
|
|
...ve_origin_permission_revocation_request.cc | 2 +
|
|
|
.../permissions/chrome_permissions_client.cc | 14 ----
|
|
|
.../permissions/chrome_permissions_client.h | 3 -
|
|
@@ -73,7 +73,7 @@ License: GPL-3.0-only - https://spdx.org/licenses/GPL-3.0-only.html
|
|
|
chrome/renderer/BUILD.gn | 5 --
|
|
|
.../chrome_content_renderer_client.cc | 6 +-
|
|
|
.../renderer/chrome_content_renderer_client.h | 3 -
|
|
|
- chrome/test/BUILD.gn | 2 -
|
|
|
+ chrome/test/BUILD.gn | 3 -
|
|
|
components/BUILD.gn | 1 -
|
|
|
.../save_password_leak_detection_delegate.cc | 14 ----
|
|
|
.../installer_policies/BUILD.gn | 2 -
|
|
@@ -91,7 +91,7 @@ License: GPL-3.0-only - https://spdx.org/licenses/GPL-3.0-only.html
|
|
|
.../file_system_access_permission_context.h | 6 --
|
|
|
weblayer/BUILD.gn | 4 -
|
|
|
weblayer/test/BUILD.gn | 1 -
|
|
|
- 82 files changed, 188 insertions(+), 705 deletions(-)
|
|
|
+ 82 files changed, 187 insertions(+), 708 deletions(-)
|
|
|
|
|
|
diff --git a/chrome/android/java/res/xml/google_services_preferences.xml b/chrome/android/java/res/xml/google_services_preferences.xml
|
|
|
--- a/chrome/android/java/res/xml/google_services_preferences.xml
|
|
@@ -271,10 +271,10 @@ diff --git a/chrome/android/java/src/org/chromium/chrome/browser/usage_stats/Usa
|
|
|
diff --git a/chrome/app/android/chrome_main_delegate_android.cc b/chrome/app/android/chrome_main_delegate_android.cc
|
|
|
--- a/chrome/app/android/chrome_main_delegate_android.cc
|
|
|
+++ b/chrome/app/android/chrome_main_delegate_android.cc
|
|
|
-@@ -8,6 +8,7 @@
|
|
|
-
|
|
|
+@@ -9,6 +9,7 @@
|
|
|
#include "base/android/jni_android.h"
|
|
|
#include "base/base_paths_android.h"
|
|
|
+ #include "base/feature_list.h"
|
|
|
+#include "base/feature_list.h"
|
|
|
#include "base/files/file_path.h"
|
|
|
#include "base/files/file_util.h"
|
|
@@ -282,7 +282,7 @@ diff --git a/chrome/app/android/chrome_main_delegate_android.cc b/chrome/app/and
|
|
|
diff --git a/chrome/browser/BUILD.gn b/chrome/browser/BUILD.gn
|
|
|
--- a/chrome/browser/BUILD.gn
|
|
|
+++ b/chrome/browser/BUILD.gn
|
|
|
-@@ -317,8 +317,6 @@ static_library("browser") {
|
|
|
+@@ -321,8 +321,6 @@ static_library("browser") {
|
|
|
"complex_tasks/task_tab_helper.h",
|
|
|
"component_updater/autofill_regex_remover.cc",
|
|
|
"component_updater/autofill_regex_remover.h",
|
|
@@ -291,7 +291,7 @@ diff --git a/chrome/browser/BUILD.gn b/chrome/browser/BUILD.gn
|
|
|
"component_updater/chrome_component_updater_configurator.cc",
|
|
|
"component_updater/chrome_component_updater_configurator.h",
|
|
|
"component_updater/chrome_origin_trials_component_installer.cc",
|
|
|
-@@ -329,8 +327,6 @@ static_library("browser") {
|
|
|
+@@ -335,8 +333,6 @@ static_library("browser") {
|
|
|
"component_updater/component_updater_utils.h",
|
|
|
"component_updater/crl_set_component_installer.cc",
|
|
|
"component_updater/crl_set_component_installer.h",
|
|
@@ -300,7 +300,7 @@ diff --git a/chrome/browser/BUILD.gn b/chrome/browser/BUILD.gn
|
|
|
"component_updater/first_party_sets_component_installer.cc",
|
|
|
"component_updater/first_party_sets_component_installer.h",
|
|
|
"component_updater/mei_preload_component_installer.cc",
|
|
|
-@@ -1109,8 +1105,6 @@ static_library("browser") {
|
|
|
+@@ -1106,8 +1102,6 @@ static_library("browser") {
|
|
|
"permissions/adaptive_quiet_notification_permission_ui_enabler.h",
|
|
|
"permissions/chrome_permissions_client.cc",
|
|
|
"permissions/chrome_permissions_client.h",
|
|
@@ -309,7 +309,7 @@ diff --git a/chrome/browser/BUILD.gn b/chrome/browser/BUILD.gn
|
|
|
"permissions/crowd_deny_preload_data.cc",
|
|
|
"permissions/crowd_deny_preload_data.h",
|
|
|
"permissions/crowd_deny_safe_browsing_request.cc",
|
|
|
-@@ -1474,15 +1468,6 @@ static_library("browser") {
|
|
|
+@@ -1473,15 +1467,6 @@ static_library("browser") {
|
|
|
"renderer_host/chrome_navigation_ui_data.h",
|
|
|
"renderer_preferences_util.cc",
|
|
|
"renderer_preferences_util.h",
|
|
@@ -325,7 +325,7 @@ diff --git a/chrome/browser/BUILD.gn b/chrome/browser/BUILD.gn
|
|
|
"resource_coordinator/resource_coordinator_parts.cc",
|
|
|
"resource_coordinator/resource_coordinator_parts.h",
|
|
|
"resource_coordinator/session_restore_policy.cc",
|
|
|
-@@ -2230,11 +2215,8 @@ static_library("browser") {
|
|
|
+@@ -2223,11 +2208,8 @@ static_library("browser") {
|
|
|
"//components/reporting/util:status_macros",
|
|
|
"//components/reporting/util:status_proto",
|
|
|
"//components/reporting/util:task_runner_context",
|
|
@@ -337,7 +337,7 @@ diff --git a/chrome/browser/BUILD.gn b/chrome/browser/BUILD.gn
|
|
|
"//components/safe_browsing/content/browser:safe_browsing_service",
|
|
|
"//components/safe_browsing/content/browser/password_protection",
|
|
|
"//components/safe_browsing/content/browser/web_ui",
|
|
|
-@@ -3317,12 +3299,6 @@ static_library("browser") {
|
|
|
+@@ -3176,12 +3158,6 @@ static_library("browser") {
|
|
|
"profiles/profile_manager_android.cc",
|
|
|
"profiles/profile_manager_android.h",
|
|
|
"query_tiles/android/tile_provider_factory.cc",
|
|
@@ -345,12 +345,12 @@ diff --git a/chrome/browser/BUILD.gn b/chrome/browser/BUILD.gn
|
|
|
- "reputation/safety_tip_infobar.h",
|
|
|
- "reputation/safety_tip_infobar_delegate.cc",
|
|
|
- "reputation/safety_tip_infobar_delegate.h",
|
|
|
-- "reputation/safety_tip_message_delegate.cc",
|
|
|
-- "reputation/safety_tip_message_delegate.h",
|
|
|
+- "reputation/safety_tip_message_delegate_android.cc",
|
|
|
+- "reputation/safety_tip_message_delegate_android.h",
|
|
|
"safe_browsing/android/password_reuse_controller_android.cc",
|
|
|
"safe_browsing/android/password_reuse_controller_android.h",
|
|
|
"safe_browsing/android/safe_browsing_referring_app_bridge_android.cc",
|
|
|
-@@ -3790,8 +3766,6 @@ static_library("browser") {
|
|
|
+@@ -3647,8 +3623,6 @@ static_library("browser") {
|
|
|
"download/download_commands.h",
|
|
|
"download/download_crx_util.cc",
|
|
|
"download/download_crx_util.h",
|
|
@@ -359,7 +359,7 @@ diff --git a/chrome/browser/BUILD.gn b/chrome/browser/BUILD.gn
|
|
|
"download/download_dir_policy_handler.cc",
|
|
|
"download/download_dir_policy_handler.h",
|
|
|
"download/download_dir_util.cc",
|
|
|
-@@ -7865,8 +7839,6 @@ static_library("test_support") {
|
|
|
+@@ -7920,8 +7894,6 @@ static_library("test_support") {
|
|
|
"//components/reporting/util:status_macros",
|
|
|
"//components/reporting/util:status_proto",
|
|
|
"//components/reporting/util:task_runner_context",
|
|
@@ -459,7 +459,7 @@ diff --git a/chrome/browser/browser_process_impl.cc b/chrome/browser/browser_pro
|
|
|
#include "components/sessions/core/session_id_generator.h"
|
|
|
#include "components/subresource_filter/content/browser/ruleset_service.h"
|
|
|
#include "components/translate/core/browser/translate_download_manager.h"
|
|
|
-@@ -393,8 +391,6 @@ void BrowserProcessImpl::StartTearDown() {
|
|
|
+@@ -406,8 +404,6 @@ void BrowserProcessImpl::StartTearDown() {
|
|
|
|
|
|
metrics_services_manager_.reset();
|
|
|
intranet_redirect_detector_.reset();
|
|
@@ -468,7 +468,7 @@ diff --git a/chrome/browser/browser_process_impl.cc b/chrome/browser/browser_pro
|
|
|
network_time_tracker_.reset();
|
|
|
|
|
|
#if !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_CHROMEOS_ASH)
|
|
|
-@@ -1025,14 +1021,6 @@ StatusTray* BrowserProcessImpl::status_tray() {
|
|
|
+@@ -1038,14 +1034,6 @@ StatusTray* BrowserProcessImpl::status_tray() {
|
|
|
return status_tray_.get();
|
|
|
}
|
|
|
|
|
@@ -483,7 +483,7 @@ diff --git a/chrome/browser/browser_process_impl.cc b/chrome/browser/browser_pro
|
|
|
subresource_filter::RulesetService*
|
|
|
BrowserProcessImpl::subresource_filter_ruleset_service() {
|
|
|
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
|
|
-@@ -1274,23 +1262,6 @@ void BrowserProcessImpl::CreateBackgroundPrintingManager() {
|
|
|
+@@ -1287,23 +1275,6 @@ void BrowserProcessImpl::CreateBackgroundPrintingManager() {
|
|
|
}
|
|
|
|
|
|
void BrowserProcessImpl::CreateSafeBrowsingService() {
|
|
@@ -531,7 +531,7 @@ diff --git a/chrome/browser/browser_process_impl.h b/chrome/browser/browser_proc
|
|
|
diff --git a/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc b/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc
|
|
|
--- a/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc
|
|
|
+++ b/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc
|
|
|
-@@ -617,10 +617,12 @@ void ChromeBrowsingDataRemoverDelegate::RemoveEmbedderData(
|
|
|
+@@ -625,10 +625,12 @@ void ChromeBrowsingDataRemoverDelegate::RemoveEmbedderData(
|
|
|
base::RecordAction(UserMetricsAction("ClearBrowsingData_Cookies"));
|
|
|
|
|
|
network::mojom::NetworkContext* safe_browsing_context = nullptr;
|
|
@@ -547,7 +547,7 @@ diff --git a/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.
|
|
|
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
|
|
|
--- a/chrome/browser/chrome_content_browser_client.cc
|
|
|
+++ b/chrome/browser/chrome_content_browser_client.cc
|
|
|
-@@ -104,6 +104,7 @@
|
|
|
+@@ -105,6 +105,7 @@
|
|
|
#include "chrome/browser/profiling_host/chrome_browser_main_extra_parts_profiling.h"
|
|
|
#include "chrome/browser/renderer_host/chrome_navigation_ui_data.h"
|
|
|
#include "chrome/browser/renderer_preferences_util.h"
|
|
@@ -555,7 +555,7 @@ diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/ch
|
|
|
#include "chrome/browser/safe_browsing/certificate_reporting_service.h"
|
|
|
#include "chrome/browser/safe_browsing/certificate_reporting_service_factory.h"
|
|
|
#include "chrome/browser/safe_browsing/cloud_content_scanning/deep_scanning_utils.h"
|
|
|
-@@ -111,6 +112,7 @@
|
|
|
+@@ -112,6 +113,7 @@
|
|
|
#include "chrome/browser/safe_browsing/safe_browsing_service.h"
|
|
|
#include "chrome/browser/safe_browsing/url_checker_delegate_impl.h"
|
|
|
#include "chrome/browser/safe_browsing/url_lookup_service_factory.h"
|
|
@@ -563,7 +563,7 @@ diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/ch
|
|
|
#include "chrome/browser/search/search.h"
|
|
|
#include "chrome/browser/segmentation_platform/chrome_browser_main_extra_parts_segmentation_platform.h"
|
|
|
#include "chrome/browser/sharing/sms/sms_remote_fetcher.h"
|
|
|
-@@ -969,9 +971,7 @@ void SetApplicationLocaleOnIOThread(const std::string& locale) {
|
|
|
+@@ -975,9 +977,7 @@ void SetApplicationLocaleOnIOThread(const std::string& locale) {
|
|
|
class CertificateReportingServiceCertReporter : public SSLCertReporter {
|
|
|
public:
|
|
|
explicit CertificateReportingServiceCertReporter(
|
|
@@ -574,7 +574,7 @@ diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/ch
|
|
|
|
|
|
CertificateReportingServiceCertReporter(
|
|
|
const CertificateReportingServiceCertReporter&) = delete;
|
|
|
-@@ -983,11 +983,9 @@ class CertificateReportingServiceCertReporter : public SSLCertReporter {
|
|
|
+@@ -989,11 +989,9 @@ class CertificateReportingServiceCertReporter : public SSLCertReporter {
|
|
|
// SSLCertReporter implementation
|
|
|
void ReportInvalidCertificateChain(
|
|
|
const std::string& serialized_report) override {
|
|
@@ -586,7 +586,7 @@ diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/ch
|
|
|
};
|
|
|
|
|
|
#if BUILDFLAG(ENABLE_EXTENSIONS)
|
|
|
-@@ -1239,14 +1237,6 @@ void MaybeAddThrottle(
|
|
|
+@@ -1245,14 +1243,6 @@ void MaybeAddThrottle(
|
|
|
throttles->push_back(std::move(maybe_throttle));
|
|
|
}
|
|
|
|
|
@@ -601,7 +601,7 @@ diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/ch
|
|
|
void MaybeAddThrottles(
|
|
|
std::vector<std::unique_ptr<content::NavigationThrottle>> additional,
|
|
|
std::vector<std::unique_ptr<content::NavigationThrottle>>* combined) {
|
|
|
-@@ -1499,7 +1489,9 @@ void ChromeContentBrowserClient::PostAfterStartupTask(
|
|
|
+@@ -1511,7 +1501,9 @@ void ChromeContentBrowserClient::PostAfterStartupTask(
|
|
|
InitNetworkContextsParentDirectory();
|
|
|
|
|
|
DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
|
@@ -611,7 +611,7 @@ diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/ch
|
|
|
}
|
|
|
|
|
|
bool ChromeContentBrowserClient::IsBrowserStartupComplete() {
|
|
|
-@@ -2229,7 +2221,7 @@ void ChromeContentBrowserClient::AppendExtraCommandLineSwitches(
|
|
|
+@@ -2241,7 +2233,7 @@ void ChromeContentBrowserClient::AppendExtraCommandLineSwitches(
|
|
|
}
|
|
|
#elif BUILDFLAG(IS_POSIX)
|
|
|
#if BUILDFLAG(IS_ANDROID)
|
|
@@ -620,17 +620,7 @@ diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/ch
|
|
|
#else
|
|
|
bool enable_crash_reporter = false;
|
|
|
if (crash_reporter::IsCrashpadEnabled()) {
|
|
|
-@@ -2360,6 +2352,9 @@ void ChromeContentBrowserClient::AppendExtraCommandLineSwitches(
|
|
|
- command_line->AppendSwitch(
|
|
|
- switches::kSharedArrayBufferUnrestrictedAccessAllowed);
|
|
|
- }
|
|
|
-+#else
|
|
|
-+ command_line->AppendSwitch(
|
|
|
-+ switches::kDisableClientSidePhishingDetection);
|
|
|
- #endif
|
|
|
- if (!prefs->GetBoolean(prefs::kSandboxExternalProtocolBlocked))
|
|
|
- command_line->AppendSwitch(kDisableSandboxExternalProtocolSwitch);
|
|
|
-@@ -4393,6 +4388,7 @@ ChromeContentBrowserClient::CreateThrottlesForNavigation(
|
|
|
+@@ -4420,6 +4412,7 @@ ChromeContentBrowserClient::CreateThrottlesForNavigation(
|
|
|
&throttles);
|
|
|
#endif
|
|
|
|
|
@@ -638,7 +628,7 @@ diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/ch
|
|
|
// g_browser_process->safe_browsing_service() may be null in unittests.
|
|
|
safe_browsing::SafeBrowsingUIManager* ui_manager =
|
|
|
g_browser_process->safe_browsing_service()
|
|
|
-@@ -4408,6 +4404,7 @@ ChromeContentBrowserClient::CreateThrottlesForNavigation(
|
|
|
+@@ -4435,6 +4428,7 @@ ChromeContentBrowserClient::CreateThrottlesForNavigation(
|
|
|
std::make_unique<safe_browsing::DelayedWarningNavigationThrottle>(
|
|
|
handle));
|
|
|
}
|
|
@@ -646,7 +636,7 @@ diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/ch
|
|
|
|
|
|
// TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
|
|
|
// of lacros-chrome is complete.
|
|
|
-@@ -5804,6 +5801,7 @@ ChromeContentBrowserClient::GetSafeBrowsingUrlCheckerDelegate(
|
|
|
+@@ -5827,6 +5821,7 @@ ChromeContentBrowserClient::GetSafeBrowsingUrlCheckerDelegate(
|
|
|
const std::vector<std::string>& allowlist_domains) {
|
|
|
DCHECK_CURRENTLY_ON(BrowserThread::IO);
|
|
|
|
|
@@ -654,7 +644,7 @@ diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/ch
|
|
|
// Should not bypass safe browsing check if the check is for enterprise
|
|
|
// lookup.
|
|
|
if (!safe_browsing_enabled_for_profile && !should_check_on_sb_disabled)
|
|
|
-@@ -5824,6 +5822,9 @@ ChromeContentBrowserClient::GetSafeBrowsingUrlCheckerDelegate(
|
|
|
+@@ -5847,6 +5842,9 @@ ChromeContentBrowserClient::GetSafeBrowsingUrlCheckerDelegate(
|
|
|
}
|
|
|
|
|
|
return safe_browsing_url_checker_delegate_;
|
|
@@ -664,7 +654,7 @@ diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/ch
|
|
|
}
|
|
|
|
|
|
safe_browsing::RealTimeUrlLookupServiceBase*
|
|
|
-@@ -5831,24 +5832,28 @@ ChromeContentBrowserClient::GetUrlLookupService(
|
|
|
+@@ -5854,24 +5852,28 @@ ChromeContentBrowserClient::GetUrlLookupService(
|
|
|
content::BrowserContext* browser_context,
|
|
|
bool is_enterprise_lookup_enabled,
|
|
|
bool is_consumer_lookup_enabled) {
|
|
@@ -697,7 +687,7 @@ diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/ch
|
|
|
diff --git a/chrome/browser/chrome_content_browser_client.h b/chrome/browser/chrome_content_browser_client.h
|
|
|
--- a/chrome/browser/chrome_content_browser_client.h
|
|
|
+++ b/chrome/browser/chrome_content_browser_client.h
|
|
|
-@@ -887,9 +887,11 @@ class ChromeContentBrowserClient : public content::ContentBrowserClient {
|
|
|
+@@ -890,9 +890,11 @@ class ChromeContentBrowserClient : public content::ContentBrowserClient {
|
|
|
// Parts are deleted in the reverse order they are added.
|
|
|
std::vector<ChromeContentBrowserClientParts*> extra_parts_;
|
|
|
|
|
@@ -771,16 +761,16 @@ diff --git a/chrome/browser/component_updater/registration.cc b/chrome/browser/c
|
|
|
#include "chrome/browser/component_updater/autofill_regex_remover.h"
|
|
|
-#include "chrome/browser/component_updater/chrome_client_side_phishing_component_installer.h"
|
|
|
#include "chrome/browser/component_updater/chrome_origin_trials_component_installer.h"
|
|
|
+ #include "chrome/browser/component_updater/commerce_heuristics_component_installer.h"
|
|
|
#include "chrome/browser/component_updater/crl_set_component_installer.h"
|
|
|
- #include "chrome/browser/component_updater/crowd_deny_component_installer.h"
|
|
|
@@ -36,7 +35,6 @@
|
|
|
#include "components/component_updater/installer_policies/autofill_states_component_installer.h"
|
|
|
#include "components/component_updater/installer_policies/on_device_head_suggest_component_installer.h"
|
|
|
#include "components/component_updater/installer_policies/optimization_hints_component_installer.h"
|
|
|
-#include "components/component_updater/installer_policies/safety_tips_component_installer.h"
|
|
|
+ #include "components/component_updater/installer_policies/url_param_classification_component_installer.h"
|
|
|
#include "components/nacl/common/buildflags.h"
|
|
|
#include "components/services/screen_ai/buildflags/buildflags.h"
|
|
|
- #include "device/vr/buildflags/buildflags.h"
|
|
|
@@ -192,9 +190,6 @@ void RegisterComponentsForUpdate() {
|
|
|
|
|
|
MaybeRegisterPKIMetadataComponent(cus);
|
|
@@ -791,7 +781,7 @@ diff --git a/chrome/browser/component_updater/registration.cc b/chrome/browser/c
|
|
|
#if BUILDFLAG(IS_CHROMEOS_ASH)
|
|
|
RegisterSmartDimComponent(cus);
|
|
|
RegisterAppProvisioningComponent(cus);
|
|
|
-@@ -216,8 +211,6 @@ void RegisterComponentsForUpdate() {
|
|
|
+@@ -215,8 +210,6 @@ void RegisterComponentsForUpdate() {
|
|
|
|
|
|
RegisterAutofillStatesComponent(cus, g_browser_process->local_state());
|
|
|
|
|
@@ -1022,16 +1012,16 @@ diff --git a/chrome/browser/download/download_item_model.cc b/chrome/browser/dow
|
|
|
--- a/chrome/browser/download/download_item_model.cc
|
|
|
+++ b/chrome/browser/download/download_item_model.cc
|
|
|
@@ -33,7 +33,9 @@
|
|
|
+ #include "chrome/browser/enterprise/connectors/connectors_manager.h"
|
|
|
#include "chrome/browser/profiles/profile.h"
|
|
|
- #include "chrome/browser/safe_browsing/chrome_user_population_helper.h"
|
|
|
#include "chrome/browser/safe_browsing/download_protection/deep_scanning_request.h"
|
|
|
+#if BUILDFLAG(FULL_SAFE_BROWSING)
|
|
|
#include "chrome/browser/safe_browsing/download_protection/download_feedback_service.h"
|
|
|
+#endif
|
|
|
+ #include "chrome/browser/safe_browsing/download_protection/download_protection_util.h"
|
|
|
#include "chrome/browser/safe_browsing/safe_browsing_service.h"
|
|
|
#include "chrome/grit/chromium_strings.h"
|
|
|
- #include "chrome/grit/generated_resources.h"
|
|
|
-@@ -42,8 +44,10 @@
|
|
|
+@@ -43,8 +45,10 @@
|
|
|
#include "components/download/public/common/download_item.h"
|
|
|
#include "components/safe_browsing/buildflags.h"
|
|
|
#include "components/safe_browsing/content/browser/web_ui/safe_browsing_ui.h"
|
|
@@ -1042,17 +1032,17 @@ diff --git a/chrome/browser/download/download_item_model.cc b/chrome/browser/dow
|
|
|
#include "content/public/browser/browser_task_traits.h"
|
|
|
#include "content/public/browser/browser_thread.h"
|
|
|
#include "content/public/browser/download_item_utils.h"
|
|
|
-@@ -57,7 +61,9 @@
|
|
|
+@@ -58,7 +62,9 @@
|
|
|
|
|
|
using download::DownloadItem;
|
|
|
using MixedContentStatus = download::DownloadItem::MixedContentStatus;
|
|
|
+#if defined(FULL_SAFE_BROWSING)
|
|
|
using safe_browsing::DownloadFileType;
|
|
|
+#endif
|
|
|
+ using ReportThreatDetailsResult =
|
|
|
+ safe_browsing::PingManager::ReportThreatDetailsResult;
|
|
|
|
|
|
- namespace {
|
|
|
-
|
|
|
-@@ -87,9 +93,11 @@ class DownloadItemModelData : public base::SupportsUserData::Data {
|
|
|
+@@ -90,9 +96,11 @@ class DownloadItemModelData : public base::SupportsUserData::Data {
|
|
|
// for the file type.
|
|
|
bool should_prefer_opening_in_browser_;
|
|
|
|
|
@@ -1064,7 +1054,7 @@ diff --git a/chrome/browser/download/download_item_model.cc b/chrome/browser/dow
|
|
|
|
|
|
// Whether the download is currently being revived.
|
|
|
bool is_being_revived_;
|
|
|
-@@ -126,7 +134,9 @@ DownloadItemModelData::DownloadItemModelData()
|
|
|
+@@ -129,7 +137,9 @@ DownloadItemModelData::DownloadItemModelData()
|
|
|
: should_show_in_shelf_(true),
|
|
|
was_ui_notified_(false),
|
|
|
should_prefer_opening_in_browser_(false),
|
|
@@ -1073,8 +1063,8 @@ diff --git a/chrome/browser/download/download_item_model.cc b/chrome/browser/dow
|
|
|
+#endif
|
|
|
is_being_revived_(false) {}
|
|
|
|
|
|
- } // namespace
|
|
|
-@@ -410,6 +420,7 @@ void DownloadItemModel::SetShouldPreferOpeningInBrowser(bool preference) {
|
|
|
+ #if BUILDFLAG(FULL_SAFE_BROWSING)
|
|
|
+@@ -429,6 +439,7 @@ void DownloadItemModel::SetShouldPreferOpeningInBrowser(bool preference) {
|
|
|
data->should_prefer_opening_in_browser_ = preference;
|
|
|
}
|
|
|
|
|
@@ -1082,7 +1072,7 @@ diff --git a/chrome/browser/download/download_item_model.cc b/chrome/browser/dow
|
|
|
DownloadFileType::DangerLevel DownloadItemModel::GetDangerLevel() const {
|
|
|
const DownloadItemModelData* data = DownloadItemModelData::Get(download_);
|
|
|
return data ? data->danger_level_ : DownloadFileType::NOT_DANGEROUS;
|
|
|
-@@ -420,6 +431,7 @@ void DownloadItemModel::SetDangerLevel(
|
|
|
+@@ -439,6 +450,7 @@ void DownloadItemModel::SetDangerLevel(
|
|
|
DownloadItemModelData* data = DownloadItemModelData::GetOrCreate(download_);
|
|
|
data->danger_level_ = danger_level;
|
|
|
}
|
|
@@ -1090,7 +1080,7 @@ diff --git a/chrome/browser/download/download_item_model.cc b/chrome/browser/dow
|
|
|
|
|
|
download::DownloadItem::MixedContentStatus
|
|
|
DownloadItemModel::GetMixedContentStatus() const {
|
|
|
-@@ -636,9 +648,6 @@ bool DownloadItemModel::IsCommandEnabled(
|
|
|
+@@ -655,9 +667,6 @@ bool DownloadItemModel::IsCommandEnabled(
|
|
|
// filename. Don't base an "Always open" decision based on it. Also
|
|
|
// exclude extensions.
|
|
|
return download_->CanOpenDownload() &&
|
|
@@ -1265,7 +1255,7 @@ diff --git a/chrome/browser/download/download_target_determiner.cc b/chrome/brow
|
|
|
|
|
|
// If no mime type or explicitly specified a name, don't replace file
|
|
|
// extension.
|
|
|
-@@ -845,6 +855,7 @@ DownloadTargetDeterminer::Result
|
|
|
+@@ -846,6 +856,7 @@ DownloadTargetDeterminer::Result
|
|
|
return CONTINUE;
|
|
|
}
|
|
|
|
|
@@ -1273,7 +1263,7 @@ diff --git a/chrome/browser/download/download_target_determiner.cc b/chrome/brow
|
|
|
// First determine the danger level assuming that the user doesn't have any
|
|
|
// prior visits to the referrer recoreded in history. The resulting danger
|
|
|
// level would be ALLOW_ON_USER_GESTURE if the level depends on the visit
|
|
|
-@@ -881,6 +892,7 @@ DownloadTargetDeterminer::Result
|
|
|
+@@ -882,6 +893,7 @@ DownloadTargetDeterminer::Result
|
|
|
// invalid, then assume the referrer has not been visited before.
|
|
|
if (danger_type_ == download::DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS)
|
|
|
danger_type_ = download::DOWNLOAD_DANGER_TYPE_DANGEROUS_FILE;
|
|
@@ -1281,7 +1271,7 @@ diff --git a/chrome/browser/download/download_target_determiner.cc b/chrome/brow
|
|
|
return CONTINUE;
|
|
|
}
|
|
|
|
|
|
-@@ -888,6 +900,7 @@ void DownloadTargetDeterminer::CheckVisitedReferrerBeforeDone(
|
|
|
+@@ -889,6 +901,7 @@ void DownloadTargetDeterminer::CheckVisitedReferrerBeforeDone(
|
|
|
bool visited_referrer_before) {
|
|
|
DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
|
|
DCHECK_EQ(STATE_DETERMINE_INTERMEDIATE_PATH, next_state_);
|
|
@@ -1289,7 +1279,7 @@ diff --git a/chrome/browser/download/download_target_determiner.cc b/chrome/brow
|
|
|
safe_browsing::RecordDownloadFileTypeAttributes(
|
|
|
safe_browsing::FileTypePolicies::GetInstance()->GetFileDangerLevel(
|
|
|
virtual_path_.BaseName(), download_->GetURL(),
|
|
|
-@@ -899,6 +912,7 @@ void DownloadTargetDeterminer::CheckVisitedReferrerBeforeDone(
|
|
|
+@@ -900,6 +913,7 @@ void DownloadTargetDeterminer::CheckVisitedReferrerBeforeDone(
|
|
|
if (danger_level_ != DownloadFileType::NOT_DANGEROUS &&
|
|
|
danger_type_ == download::DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS)
|
|
|
danger_type_ = download::DOWNLOAD_DANGER_TYPE_DANGEROUS_FILE;
|
|
@@ -1297,7 +1287,7 @@ diff --git a/chrome/browser/download/download_target_determiner.cc b/chrome/brow
|
|
|
DoLoop();
|
|
|
}
|
|
|
|
|
|
-@@ -997,7 +1011,9 @@ void DownloadTargetDeterminer::ScheduleCallbackAndDeleteSelf(
|
|
|
+@@ -998,7 +1012,9 @@ void DownloadTargetDeterminer::ScheduleCallbackAndDeleteSelf(
|
|
|
<< " Intermediate:" << intermediate_path_.AsUTF8Unsafe()
|
|
|
<< " Confirmation reason:" << static_cast<int>(confirmation_reason_)
|
|
|
<< " Danger type:" << danger_type_
|
|
@@ -1307,7 +1297,7 @@ diff --git a/chrome/browser/download/download_target_determiner.cc b/chrome/brow
|
|
|
<< " Result:" << static_cast<int>(result);
|
|
|
std::unique_ptr<DownloadTargetInfo> target_info(new DownloadTargetInfo);
|
|
|
|
|
|
-@@ -1009,7 +1025,9 @@ void DownloadTargetDeterminer::ScheduleCallbackAndDeleteSelf(
|
|
|
+@@ -1010,7 +1026,9 @@ void DownloadTargetDeterminer::ScheduleCallbackAndDeleteSelf(
|
|
|
? DownloadItem::TARGET_DISPOSITION_PROMPT
|
|
|
: DownloadItem::TARGET_DISPOSITION_OVERWRITE);
|
|
|
target_info->danger_type = danger_type_;
|
|
@@ -1317,7 +1307,7 @@ diff --git a/chrome/browser/download/download_target_determiner.cc b/chrome/brow
|
|
|
target_info->intermediate_path = intermediate_path_;
|
|
|
target_info->mime_type = mime_type_;
|
|
|
target_info->is_filetype_handled_safely = is_filetype_handled_safely_;
|
|
|
-@@ -1104,54 +1122,11 @@ bool DownloadTargetDeterminer::HasPromptedForPath() const {
|
|
|
+@@ -1105,54 +1123,11 @@ bool DownloadTargetDeterminer::HasPromptedForPath() const {
|
|
|
DownloadItem::TARGET_DISPOSITION_PROMPT);
|
|
|
}
|
|
|
|
|
@@ -1373,7 +1363,7 @@ diff --git a/chrome/browser/download/download_target_determiner.cc b/chrome/brow
|
|
|
}
|
|
|
|
|
|
absl::optional<base::Time>
|
|
|
-@@ -1165,6 +1140,7 @@ DownloadTargetDeterminer::GetLastDownloadBypassTimestamp() const {
|
|
|
+@@ -1166,6 +1141,7 @@ DownloadTargetDeterminer::GetLastDownloadBypassTimestamp() const {
|
|
|
EventType::DANGEROUS_DOWNLOAD_BYPASS)
|
|
|
: absl::nullopt;
|
|
|
}
|
|
@@ -1472,7 +1462,7 @@ diff --git a/chrome/browser/download/download_target_info.h b/chrome/browser/dow
|
|
|
diff --git a/chrome/browser/download/download_ui_model.cc b/chrome/browser/download/download_ui_model.cc
|
|
|
--- a/chrome/browser/download/download_ui_model.cc
|
|
|
+++ b/chrome/browser/download/download_ui_model.cc
|
|
|
-@@ -36,7 +36,9 @@
|
|
|
+@@ -39,7 +39,9 @@
|
|
|
|
|
|
using download::DownloadItem;
|
|
|
using offline_items_collection::FailState;
|
|
@@ -1482,7 +1472,7 @@ diff --git a/chrome/browser/download/download_ui_model.cc b/chrome/browser/downl
|
|
|
|
|
|
namespace {
|
|
|
|
|
|
-@@ -418,12 +420,14 @@ bool DownloadUIModel::ShouldPreferOpeningInBrowser() const {
|
|
|
+@@ -421,12 +423,14 @@ bool DownloadUIModel::ShouldPreferOpeningInBrowser() const {
|
|
|
|
|
|
void DownloadUIModel::SetShouldPreferOpeningInBrowser(bool preference) {}
|
|
|
|
|
@@ -1500,7 +1490,7 @@ diff --git a/chrome/browser/download/download_ui_model.cc b/chrome/browser/downl
|
|
|
diff --git a/chrome/browser/download/download_ui_model.h b/chrome/browser/download/download_ui_model.h
|
|
|
--- a/chrome/browser/download/download_ui_model.h
|
|
|
+++ b/chrome/browser/download/download_ui_model.h
|
|
|
-@@ -19,7 +19,9 @@
|
|
|
+@@ -20,7 +20,9 @@
|
|
|
#include "components/download/public/common/download_item.h"
|
|
|
#include "components/offline_items_collection/core/offline_item.h"
|
|
|
#include "components/safe_browsing/buildflags.h"
|
|
@@ -1510,7 +1500,7 @@ diff --git a/chrome/browser/download/download_ui_model.h b/chrome/browser/downlo
|
|
|
#include "ui/base/models/image_model.h"
|
|
|
#include "ui/color/color_id.h"
|
|
|
#include "ui/gfx/vector_icon_types.h"
|
|
|
-@@ -295,6 +297,7 @@ class DownloadUIModel {
|
|
|
+@@ -296,6 +298,7 @@ class DownloadUIModel {
|
|
|
// Change what's returned by ShouldPreferOpeningInBrowser to |preference|.
|
|
|
virtual void SetShouldPreferOpeningInBrowser(bool preference);
|
|
|
|
|
@@ -1518,7 +1508,7 @@ diff --git a/chrome/browser/download/download_ui_model.h b/chrome/browser/downlo
|
|
|
// Return the danger level determined during download target determination.
|
|
|
// The value returned here is independent of the danger level as determined by
|
|
|
// the Safe Browsing.
|
|
|
-@@ -303,6 +306,7 @@ class DownloadUIModel {
|
|
|
+@@ -304,6 +307,7 @@ class DownloadUIModel {
|
|
|
// Change what's returned by GetDangerLevel().
|
|
|
virtual void SetDangerLevel(
|
|
|
safe_browsing::DownloadFileType::DangerLevel danger_level);
|
|
@@ -1661,7 +1651,7 @@ diff --git a/chrome/browser/extensions/api/webstore_private/webstore_private_api
|
|
|
diff --git a/chrome/browser/file_system_access/chrome_file_system_access_permission_context.cc b/chrome/browser/file_system_access/chrome_file_system_access_permission_context.cc
|
|
|
--- a/chrome/browser/file_system_access/chrome_file_system_access_permission_context.cc
|
|
|
+++ b/chrome/browser/file_system_access/chrome_file_system_access_permission_context.cc
|
|
|
-@@ -35,8 +35,10 @@
|
|
|
+@@ -36,8 +36,10 @@
|
|
|
#include "chrome/browser/file_system_access/file_system_access_permission_request_manager.h"
|
|
|
#include "chrome/browser/installable/installable_utils.h"
|
|
|
#include "chrome/browser/profiles/profile.h"
|
|
@@ -1671,8 +1661,8 @@ diff --git a/chrome/browser/file_system_access/chrome_file_system_access_permiss
|
|
|
+#endif
|
|
|
#include "chrome/browser/ui/file_system_access_dialogs.h"
|
|
|
#include "chrome/common/chrome_paths.h"
|
|
|
- #include "components/content_settings/core/browser/host_content_settings_map.h"
|
|
|
-@@ -307,6 +309,7 @@ BindResultCallbackToCurrentSequence(
|
|
|
+ #include "chrome/grit/generated_resources.h"
|
|
|
+@@ -312,6 +314,7 @@ BindResultCallbackToCurrentSequence(
|
|
|
base::SequencedTaskRunnerHandle::Get(), std::move(callback));
|
|
|
}
|
|
|
|
|
@@ -1680,7 +1670,7 @@ diff --git a/chrome/browser/file_system_access/chrome_file_system_access_permiss
|
|
|
void DoSafeBrowsingCheckOnUIThread(
|
|
|
content::GlobalRenderFrameHostId frame_id,
|
|
|
std::unique_ptr<content::FileSystemAccessWriteItem> item,
|
|
|
-@@ -383,6 +386,7 @@ InterpretSafeBrowsingResult(safe_browsing::DownloadCheckResult result) {
|
|
|
+@@ -388,6 +391,7 @@ InterpretSafeBrowsingResult(safe_browsing::DownloadCheckResult result) {
|
|
|
NOTREACHED();
|
|
|
return ChromeFileSystemAccessPermissionContext::AfterWriteCheckResult::kBlock;
|
|
|
}
|
|
@@ -1688,7 +1678,7 @@ diff --git a/chrome/browser/file_system_access/chrome_file_system_access_permiss
|
|
|
|
|
|
std::string GenerateLastPickedDirectoryKey(const std::string& id) {
|
|
|
return id.empty() ? kDefaultLastPickedDirectoryKey
|
|
|
-@@ -1160,6 +1164,7 @@ void ChromeFileSystemAccessPermissionContext::ConfirmSensitiveDirectoryAccess(
|
|
|
+@@ -1165,6 +1169,7 @@ void ChromeFileSystemAccessPermissionContext::ConfirmSensitiveDirectoryAccess(
|
|
|
std::move(callback)));
|
|
|
}
|
|
|
|
|
@@ -1696,7 +1686,7 @@ diff --git a/chrome/browser/file_system_access/chrome_file_system_access_permiss
|
|
|
void ChromeFileSystemAccessPermissionContext::PerformAfterWriteChecks(
|
|
|
std::unique_ptr<content::FileSystemAccessWriteItem> item,
|
|
|
content::GlobalRenderFrameHostId frame_id,
|
|
|
-@@ -1181,6 +1186,7 @@ void ChromeFileSystemAccessPermissionContext::PerformAfterWriteChecks(
|
|
|
+@@ -1186,6 +1191,7 @@ void ChromeFileSystemAccessPermissionContext::PerformAfterWriteChecks(
|
|
|
},
|
|
|
base::SequencedTaskRunnerHandle::Get(), std::move(callback))));
|
|
|
}
|
|
@@ -1713,9 +1703,9 @@ diff --git a/chrome/browser/file_system_access/chrome_file_system_access_permiss
|
|
|
#include "components/permissions/permission_util.h"
|
|
|
+#include "components/safe_browsing/buildflags.h"
|
|
|
#include "content/public/browser/file_system_access_permission_context.h"
|
|
|
+ #include "third_party/blink/public/mojom/file_system_access/file_system_access_manager.mojom-forward.h"
|
|
|
#include "third_party/blink/public/mojom/permissions/permission_status.mojom.h"
|
|
|
-
|
|
|
-@@ -86,10 +87,6 @@ class ChromeFileSystemAccessPermissionContext
|
|
|
+@@ -87,10 +88,6 @@ class ChromeFileSystemAccessPermissionContext
|
|
|
HandleType handle_type,
|
|
|
content::GlobalRenderFrameHostId frame_id,
|
|
|
base::OnceCallback<void(SensitiveDirectoryResult)> callback) override;
|
|
@@ -1749,7 +1739,7 @@ diff --git a/chrome/browser/lookalikes/lookalike_url_controller_client.cc b/chro
|
|
|
diff --git a/chrome/browser/metrics/chrome_metrics_service_client.cc b/chrome/browser/metrics/chrome_metrics_service_client.cc
|
|
|
--- a/chrome/browser/metrics/chrome_metrics_service_client.cc
|
|
|
+++ b/chrome/browser/metrics/chrome_metrics_service_client.cc
|
|
|
-@@ -863,9 +863,6 @@ void ChromeMetricsServiceClient::RegisterMetricsServiceProviders() {
|
|
|
+@@ -865,9 +865,6 @@ void ChromeMetricsServiceClient::RegisterMetricsServiceProviders() {
|
|
|
metrics_service_->RegisterMetricsProvider(
|
|
|
std::make_unique<HttpsEngagementMetricsProvider>());
|
|
|
|
|
@@ -1775,7 +1765,21 @@ diff --git a/chrome/browser/net/trial_comparison_cert_verifier_controller.cc b/c
|
|
|
diff --git a/chrome/browser/password_manager/chrome_password_manager_client.cc b/chrome/browser/password_manager/chrome_password_manager_client.cc
|
|
|
--- a/chrome/browser/password_manager/chrome_password_manager_client.cc
|
|
|
+++ b/chrome/browser/password_manager/chrome_password_manager_client.cc
|
|
|
-@@ -877,21 +877,13 @@ autofill::LanguageCode ChromePasswordManagerClient::GetPageLanguage() const {
|
|
|
+@@ -115,11 +115,11 @@
|
|
|
+ #include "third_party/re2/src/re2/re2.h"
|
|
|
+ #include "url/url_constants.h"
|
|
|
+
|
|
|
++#include "third_party/blink/public/mojom/clipboard/clipboard.mojom.h"
|
|
|
++#include "ui/base/clipboard/clipboard.h"
|
|
|
+ #if BUILDFLAG(SAFE_BROWSING_AVAILABLE)
|
|
|
+ #include "chrome/browser/safe_browsing/advanced_protection_status_manager.h"
|
|
|
+ #include "chrome/browser/safe_browsing/advanced_protection_status_manager_factory.h"
|
|
|
+-#include "third_party/blink/public/mojom/clipboard/clipboard.mojom.h"
|
|
|
+-#include "ui/base/clipboard/clipboard.h"
|
|
|
+ #include "ui/base/data_transfer_policy/data_transfer_endpoint.h"
|
|
|
+ #include "ui/events/keycodes/keyboard_codes.h"
|
|
|
+ #endif
|
|
|
+@@ -884,21 +884,13 @@ autofill::LanguageCode ChromePasswordManagerClient::GetPageLanguage() const {
|
|
|
|
|
|
safe_browsing::PasswordProtectionService*
|
|
|
ChromePasswordManagerClient::GetPasswordProtectionService() const {
|
|
@@ -1798,7 +1802,7 @@ diff --git a/chrome/browser/password_manager/chrome_password_manager_client.cc b
|
|
|
}
|
|
|
#endif // defined(ON_FOCUS_PING_ENABLED)
|
|
|
|
|
|
-@@ -901,22 +893,9 @@ void ChromePasswordManagerClient::CheckProtectedPasswordEntry(
|
|
|
+@@ -908,22 +900,9 @@ void ChromePasswordManagerClient::CheckProtectedPasswordEntry(
|
|
|
const std::vector<password_manager::MatchingReusedCredential>&
|
|
|
matching_reused_credentials,
|
|
|
bool password_field_exists) {
|
|
@@ -1821,7 +1825,7 @@ diff --git a/chrome/browser/password_manager/chrome_password_manager_client.cc b
|
|
|
}
|
|
|
|
|
|
#if !BUILDFLAG(IS_ANDROID)
|
|
|
-@@ -1534,6 +1513,7 @@ bool ChromePasswordManagerClient::IsPasswordManagementEnabledForCurrentPage(
|
|
|
+@@ -1539,6 +1518,7 @@ bool ChromePasswordManagerClient::IsPasswordManagementEnabledForCurrentPage(
|
|
|
is_enabled = false;
|
|
|
}
|
|
|
|
|
@@ -1829,7 +1833,7 @@ diff --git a/chrome/browser/password_manager/chrome_password_manager_client.cc b
|
|
|
// SafeBrowsing Delayed Warnings experiment can delay some SafeBrowsing
|
|
|
// warnings until user interaction. If the current page has a delayed warning,
|
|
|
// it'll have a user interaction observer attached. Disable password
|
|
|
-@@ -1544,6 +1524,7 @@ bool ChromePasswordManagerClient::IsPasswordManagementEnabledForCurrentPage(
|
|
|
+@@ -1549,6 +1529,7 @@ bool ChromePasswordManagerClient::IsPasswordManagementEnabledForCurrentPage(
|
|
|
observer->OnPasswordSaveOrAutofillDenied();
|
|
|
is_enabled = false;
|
|
|
}
|
|
@@ -1925,7 +1929,7 @@ diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browse
|
|
|
#include "build/chromecast_buildflags.h"
|
|
|
#include "build/chromeos_buildflags.h"
|
|
|
#include "chrome/browser/about_flags.h"
|
|
|
-@@ -1262,7 +1263,9 @@ void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry,
|
|
|
+@@ -1307,7 +1308,9 @@ void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry,
|
|
|
PushMessagingAppIdentifier::RegisterProfilePrefs(registry);
|
|
|
QuietNotificationPermissionUiState::RegisterProfilePrefs(registry);
|
|
|
RegisterBrowserUserPrefs(registry);
|
|
@@ -1938,7 +1942,7 @@ diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browse
|
|
|
diff --git a/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc b/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc
|
|
|
--- a/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc
|
|
|
+++ b/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc
|
|
|
-@@ -78,7 +78,6 @@
|
|
|
+@@ -79,7 +79,6 @@
|
|
|
#include "chrome/browser/privacy_sandbox/privacy_sandbox_service_factory.h"
|
|
|
#include "chrome/browser/privacy_sandbox/privacy_sandbox_settings_factory.h"
|
|
|
#include "chrome/browser/profiles/renderer_updater_factory.h"
|
|
@@ -1946,7 +1950,7 @@ diff --git a/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc
|
|
|
#include "chrome/browser/safe_browsing/tailored_security/tailored_security_service_factory.h"
|
|
|
#include "chrome/browser/search_engines/template_url_fetcher_factory.h"
|
|
|
#include "chrome/browser/search_engines/template_url_service_factory.h"
|
|
|
-@@ -330,7 +329,6 @@ void ChromeBrowserMainExtraPartsProfiles::
|
|
|
+@@ -335,7 +334,6 @@ void ChromeBrowserMainExtraPartsProfiles::
|
|
|
#if BUILDFLAG(IS_CHROMEOS_LACROS)
|
|
|
CertDbInitializerFactory::GetInstance();
|
|
|
#endif
|
|
@@ -1954,8 +1958,8 @@ diff --git a/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc
|
|
|
#if !BUILDFLAG(IS_ANDROID)
|
|
|
ChromeBrowsingDataLifetimeManagerFactory::GetInstance();
|
|
|
#endif
|
|
|
-@@ -544,7 +542,9 @@ void ChromeBrowserMainExtraPartsProfiles::
|
|
|
- SystemExtensionsProviderFactory::GetInstance();
|
|
|
+@@ -552,7 +550,9 @@ void ChromeBrowserMainExtraPartsProfiles::
|
|
|
+ ash::SystemExtensionsProviderFactory::GetInstance();
|
|
|
#endif
|
|
|
TabRestoreServiceFactory::GetInstance();
|
|
|
+#if BUILDFLAG(FULL_SAFE_BROWSING)
|
|
@@ -1975,7 +1979,7 @@ diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/p
|
|
|
#include "chrome/browser/sessions/exit_type_service.h"
|
|
|
#include "chrome/browser/sharing/sharing_service_factory.h"
|
|
|
#include "chrome/browser/signin/identity_manager_factory.h"
|
|
|
-@@ -618,6 +617,7 @@ void ProfileImpl::LoadPrefsForNormalStartup(bool async_prefs) {
|
|
|
+@@ -620,6 +619,7 @@ void ProfileImpl::LoadPrefsForNormalStartup(bool async_prefs) {
|
|
|
|
|
|
mojo::PendingRemote<prefs::mojom::TrackedPreferenceValidationDelegate>
|
|
|
pref_validation_delegate;
|
|
@@ -1983,7 +1987,7 @@ diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/p
|
|
|
scoped_refptr<safe_browsing::SafeBrowsingService> safe_browsing_service(
|
|
|
g_browser_process->safe_browsing_service());
|
|
|
if (safe_browsing_service.get()) {
|
|
|
-@@ -629,7 +629,7 @@ void ProfileImpl::LoadPrefsForNormalStartup(bool async_prefs) {
|
|
|
+@@ -631,7 +631,7 @@ void ProfileImpl::LoadPrefsForNormalStartup(bool async_prefs) {
|
|
|
pref_validation_delegate.InitWithNewPipeAndPassReceiver());
|
|
|
}
|
|
|
}
|
|
@@ -2019,7 +2023,7 @@ diff --git a/chrome/browser/safe_browsing/BUILD.gn b/chrome/browser/safe_browsin
|
|
|
|
|
|
if (safe_browsing_mode != 0) {
|
|
|
# "Safe Browsing Basic" files used for safe browsing in full mode
|
|
|
-@@ -176,7 +177,6 @@ static_library("safe_browsing") {
|
|
|
+@@ -177,7 +178,6 @@ static_library("safe_browsing") {
|
|
|
"//components/safe_browsing/content/browser/triggers:ad_sampler_trigger",
|
|
|
"//components/safe_browsing/content/browser/triggers:suspicious_site_trigger",
|
|
|
"//components/safe_browsing/content/browser/triggers:trigger_throttler",
|
|
@@ -2203,7 +2207,7 @@ diff --git a/chrome/browser/safe_browsing/android/safe_browsing_bridge.cc b/chro
|
|
|
diff --git a/chrome/browser/safe_browsing/download_protection/download_protection_service.cc b/chrome/browser/safe_browsing/download_protection/download_protection_service.cc
|
|
|
--- a/chrome/browser/safe_browsing/download_protection/download_protection_service.cc
|
|
|
+++ b/chrome/browser/safe_browsing/download_protection/download_protection_service.cc
|
|
|
-@@ -794,11 +794,6 @@ void DownloadProtectionService::RequestFinished(DeepScanningRequest* request) {
|
|
|
+@@ -781,11 +781,6 @@ void DownloadProtectionService::RequestFinished(DeepScanningRequest* request) {
|
|
|
deep_scanning_requests_.erase(it);
|
|
|
}
|
|
|
|
|
@@ -2349,7 +2353,7 @@ diff --git a/chrome/browser/subresource_filter/chrome_content_subresource_filter
|
|
|
diff --git a/chrome/browser/ui/BUILD.gn b/chrome/browser/ui/BUILD.gn
|
|
|
--- a/chrome/browser/ui/BUILD.gn
|
|
|
+++ b/chrome/browser/ui/BUILD.gn
|
|
|
-@@ -551,7 +551,6 @@ static_library("ui") {
|
|
|
+@@ -559,7 +559,6 @@ static_library("ui") {
|
|
|
"//components/renderer_context_menu",
|
|
|
"//components/resources",
|
|
|
"//components/safe_browsing/content/browser",
|
|
@@ -2357,7 +2361,7 @@ diff --git a/chrome/browser/ui/BUILD.gn b/chrome/browser/ui/BUILD.gn
|
|
|
"//components/safe_browsing/content/browser/password_protection",
|
|
|
"//components/safe_browsing/content/browser/web_ui",
|
|
|
"//components/safe_browsing/core/browser/db:database_manager",
|
|
|
-@@ -4241,7 +4240,6 @@ static_library("ui") {
|
|
|
+@@ -4270,7 +4269,6 @@ static_library("ui") {
|
|
|
"views/download/bubble/download_dialog_view.h",
|
|
|
"views/download/bubble/download_toolbar_button_view.cc",
|
|
|
"views/download/bubble/download_toolbar_button_view.h",
|
|
@@ -2368,7 +2372,7 @@ diff --git a/chrome/browser/ui/BUILD.gn b/chrome/browser/ui/BUILD.gn
|
|
|
diff --git a/chrome/browser/ui/android/strings/android_chrome_strings.grd b/chrome/browser/ui/android/strings/android_chrome_strings.grd
|
|
|
--- a/chrome/browser/ui/android/strings/android_chrome_strings.grd
|
|
|
+++ b/chrome/browser/ui/android/strings/android_chrome_strings.grd
|
|
|
-@@ -412,12 +412,6 @@ CHAR_LIMIT guidelines:
|
|
|
+@@ -415,12 +415,6 @@ CHAR_LIMIT guidelines:
|
|
|
<message name="IDS_PRIVACY_SYNC_AND_SERVICES_LINK_SYNC_OFF" desc="The text for Privacy preferences that is shown after all preference rows. This version of the text is shown if Sync hasn't been turned on.">
|
|
|
For more settings that relate to privacy, security, and data collection, see <ph name="BEGIN_LINK"><link></ph>Google services<ph name="END_LINK"></link></ph>
|
|
|
</message>
|
|
@@ -2381,7 +2385,7 @@ diff --git a/chrome/browser/ui/android/strings/android_chrome_strings.grd b/chro
|
|
|
|
|
|
<!-- Metrics settings -->
|
|
|
<message name="IDS_PREFS_METRICS_SETTINGS" desc="Title for the page that allows the user to control how much usage data Chrome uploads. [CHAR_LIMIT=32]">
|
|
|
-@@ -4734,9 +4728,6 @@ To change this setting, <ph name="BEGIN_LINK"><resetlink></ph>reset sync<p
|
|
|
+@@ -4764,9 +4758,6 @@ To change this setting, <ph name="BEGIN_LINK"><resetlink></ph>reset sync<p
|
|
|
To use this setting <ph name="BEGIN_LINK"><link></ph>Make searches and browsing better<ph name="END_LINK"></link></ph> must be turned on
|
|
|
</message>
|
|
|
<!-- Usage Stats strings -->
|
|
@@ -2411,10 +2415,10 @@ diff --git a/chrome/browser/ui/tab_helpers.cc b/chrome/browser/ui/tab_helpers.cc
|
|
|
#include "chrome/browser/safe_browsing/trigger_creator.h"
|
|
|
+#endif
|
|
|
#include "chrome/browser/search_engines/template_url_service_factory.h"
|
|
|
+ #include "chrome/browser/segmentation_platform/segmentation_platform_service_factory.h"
|
|
|
#include "chrome/browser/sessions/session_tab_helper_factory.h"
|
|
|
- #include "chrome/browser/ssl/chrome_security_blocking_page_factory.h"
|
|
|
-@@ -131,9 +135,11 @@
|
|
|
- #include "components/performance_manager/public/performance_manager.h"
|
|
|
+@@ -132,9 +136,11 @@
|
|
|
+ #include "components/performance_manager/embedder/performance_manager_registry.h"
|
|
|
#include "components/permissions/features.h"
|
|
|
#include "components/permissions/permission_request_manager.h"
|
|
|
+#if defined(FULL_SAFE_BROWSING)
|
|
@@ -2422,10 +2426,10 @@ diff --git a/chrome/browser/ui/tab_helpers.cc b/chrome/browser/ui/tab_helpers.cc
|
|
|
#include "components/safe_browsing/content/browser/safe_browsing_tab_observer.h"
|
|
|
#include "components/safe_browsing/core/common/features.h"
|
|
|
+#endif
|
|
|
+ #include "components/segmentation_platform/content/segmentation_platform_tab_helper.h"
|
|
|
#include "components/site_engagement/content/site_engagement_helper.h"
|
|
|
#include "components/site_engagement/content/site_engagement_service.h"
|
|
|
- #include "components/tracing/common/tracing_switches.h"
|
|
|
-@@ -392,6 +398,7 @@ void TabHelpers::AttachTabHelpers(WebContents* web_contents) {
|
|
|
+@@ -400,6 +406,7 @@ void TabHelpers::AttachTabHelpers(WebContents* web_contents) {
|
|
|
// See https://crbug.com/910288.
|
|
|
resource_coordinator::ResourceCoordinatorTabHelper::CreateForWebContents(
|
|
|
web_contents);
|
|
@@ -2433,14 +2437,14 @@ diff --git a/chrome/browser/ui/tab_helpers.cc b/chrome/browser/ui/tab_helpers.cc
|
|
|
safe_browsing::SafeBrowsingNavigationObserver::MaybeCreateForWebContents(
|
|
|
web_contents, HostContentSettingsMapFactory::GetForProfile(profile),
|
|
|
safe_browsing::SafeBrowsingNavigationObserverManagerFactory::
|
|
|
-@@ -409,6 +416,7 @@ void TabHelpers::AttachTabHelpers(WebContents* web_contents) {
|
|
|
+@@ -417,6 +424,7 @@ void TabHelpers::AttachTabHelpers(WebContents* web_contents) {
|
|
|
safe_browsing::TriggerCreator::MaybeCreateTriggersForWebContents(
|
|
|
profile, web_contents);
|
|
|
ReputationWebContentsObserver::CreateForWebContents(web_contents);
|
|
|
+#endif
|
|
|
SearchEngineTabHelper::CreateForWebContents(web_contents);
|
|
|
SecurityStateTabHelper::CreateForWebContents(web_contents);
|
|
|
- if (base::FeatureList::IsEnabled(commerce::kShoppingList)) {
|
|
|
+ segmentation_platform::SegmentationPlatformTabHelper::CreateForWebContents(
|
|
|
diff --git a/chrome/browser/ui/webui/interstitials/interstitial_ui.cc b/chrome/browser/ui/webui/interstitials/interstitial_ui.cc
|
|
|
--- a/chrome/browser/ui/webui/interstitials/interstitial_ui.cc
|
|
|
+++ b/chrome/browser/ui/webui/interstitials/interstitial_ui.cc
|
|
@@ -2534,7 +2538,7 @@ diff --git a/chrome/common/safe_browsing/BUILD.gn b/chrome/common/safe_browsing/
|
|
|
diff --git a/chrome/renderer/BUILD.gn b/chrome/renderer/BUILD.gn
|
|
|
--- a/chrome/renderer/BUILD.gn
|
|
|
+++ b/chrome/renderer/BUILD.gn
|
|
|
-@@ -272,11 +272,6 @@ static_library("renderer") {
|
|
|
+@@ -280,11 +280,6 @@ static_library("renderer") {
|
|
|
deps += [ "//third_party/widevine/cdm:headers" ]
|
|
|
}
|
|
|
|
|
@@ -2559,7 +2563,7 @@ diff --git a/chrome/renderer/chrome_content_renderer_client.cc b/chrome/renderer
|
|
|
#include "components/spellcheck/spellcheck_buildflags.h"
|
|
|
#include "components/subresource_filter/content/renderer/subresource_filter_agent.h"
|
|
|
#include "components/subresource_filter/content/renderer/unverified_ruleset_dealer.h"
|
|
|
-@@ -424,12 +426,8 @@ void ChromeContentRendererClient::RenderThreadStarted() {
|
|
|
+@@ -425,12 +427,8 @@ void ChromeContentRendererClient::RenderThreadStarted() {
|
|
|
subresource_filter_ruleset_dealer_ =
|
|
|
std::make_unique<subresource_filter::UnverifiedRulesetDealer>();
|
|
|
|
|
@@ -2570,8 +2574,8 @@ diff --git a/chrome/renderer/chrome_content_renderer_client.cc b/chrome/renderer
|
|
|
thread->AddObserver(subresource_filter_ruleset_dealer_.get());
|
|
|
- thread->AddObserver(phishing_model_setter_.get());
|
|
|
|
|
|
- thread->RegisterExtension(extensions_v8::LoadTimesExtension::Get());
|
|
|
-
|
|
|
+ blink::WebScriptController::RegisterExtension(
|
|
|
+ extensions_v8::LoadTimesExtension::Get());
|
|
|
diff --git a/chrome/renderer/chrome_content_renderer_client.h b/chrome/renderer/chrome_content_renderer_client.h
|
|
|
--- a/chrome/renderer/chrome_content_renderer_client.h
|
|
|
+++ b/chrome/renderer/chrome_content_renderer_client.h
|
|
@@ -2595,7 +2599,15 @@ diff --git a/chrome/renderer/chrome_content_renderer_client.h b/chrome/renderer/
|
|
|
diff --git a/chrome/test/BUILD.gn b/chrome/test/BUILD.gn
|
|
|
--- a/chrome/test/BUILD.gn
|
|
|
+++ b/chrome/test/BUILD.gn
|
|
|
-@@ -1333,7 +1333,6 @@ if (!is_android) {
|
|
|
+@@ -890,7 +890,6 @@ if (is_android) {
|
|
|
+ "//components/password_manager/content/browser:browser",
|
|
|
+ "//components/policy:chrome_settings_proto_generated_compile",
|
|
|
+ "//components/policy/core/browser:test_support",
|
|
|
+- "//components/safe_browsing/content/browser:client_side_detection",
|
|
|
+ "//components/safe_browsing/content/common:interfaces",
|
|
|
+ "//components/safe_browsing/content/renderer/phishing_classifier:phishing_classifier",
|
|
|
+ "//components/safe_browsing/core/common/fbs:client_model",
|
|
|
+@@ -1343,7 +1342,6 @@ if (!is_android) {
|
|
|
"//components/resources",
|
|
|
"//components/safe_browsing:buildflags",
|
|
|
"//components/safe_browsing/content/browser",
|
|
@@ -2603,7 +2615,7 @@ diff --git a/chrome/test/BUILD.gn b/chrome/test/BUILD.gn
|
|
|
"//components/safe_browsing/content/browser:safe_browsing_service",
|
|
|
"//components/safe_browsing/content/browser/password_protection",
|
|
|
"//components/safe_browsing/content/browser/password_protection:test_support",
|
|
|
-@@ -5676,7 +5675,6 @@ test("unit_tests") {
|
|
|
+@@ -5714,7 +5712,6 @@ test("unit_tests") {
|
|
|
"//components/resources",
|
|
|
"//components/safe_browsing:buildflags",
|
|
|
"//components/safe_browsing/content/browser",
|
|
@@ -2614,7 +2626,7 @@ diff --git a/chrome/test/BUILD.gn b/chrome/test/BUILD.gn
|
|
|
diff --git a/components/BUILD.gn b/components/BUILD.gn
|
|
|
--- a/components/BUILD.gn
|
|
|
+++ b/components/BUILD.gn
|
|
|
-@@ -609,7 +609,6 @@ test("components_unittests") {
|
|
|
+@@ -625,7 +625,6 @@ test("components_unittests") {
|
|
|
if (safe_browsing_mode == 1) {
|
|
|
deps += [
|
|
|
"//components/safe_browsing/content/browser:unit_tests",
|
|
@@ -2660,11 +2672,11 @@ diff --git a/components/component_updater/installer_policies/BUILD.gn b/componen
|
|
|
- "safety_tips_component_installer.h",
|
|
|
"trust_token_key_commitments_component_installer_policy.cc",
|
|
|
"trust_token_key_commitments_component_installer_policy.h",
|
|
|
- ]
|
|
|
+ "url_param_classification_component_installer.cc",
|
|
|
diff --git a/components/permissions/permission_request_manager.cc b/components/permissions/permission_request_manager.cc
|
|
|
--- a/components/permissions/permission_request_manager.cc
|
|
|
+++ b/components/permissions/permission_request_manager.cc
|
|
|
-@@ -599,10 +599,7 @@ PermissionRequestManager::PermissionRequestManager(
|
|
|
+@@ -594,10 +594,7 @@ PermissionRequestManager::PermissionRequestManager(
|
|
|
view_(nullptr),
|
|
|
tab_is_hidden_(web_contents->GetVisibility() ==
|
|
|
content::Visibility::HIDDEN),
|
|
@@ -2679,7 +2691,7 @@ diff --git a/components/permissions/permission_request_manager.cc b/components/p
|
|
|
diff --git a/components/safe_browsing/content/browser/BUILD.gn b/components/safe_browsing/content/browser/BUILD.gn
|
|
|
--- a/components/safe_browsing/content/browser/BUILD.gn
|
|
|
+++ b/components/safe_browsing/content/browser/BUILD.gn
|
|
|
-@@ -142,7 +142,6 @@ source_set("unit_tests") {
|
|
|
+@@ -141,7 +141,6 @@ source_set("unit_tests") {
|
|
|
]
|
|
|
|
|
|
deps = [
|
|
@@ -2703,8 +2715,8 @@ diff --git a/components/safe_browsing/content/common/file_type_policies.cc b/com
|
|
|
diff --git a/components/safe_browsing/core/common/features.cc b/components/safe_browsing/core/common/features.cc
|
|
|
--- a/components/safe_browsing/core/common/features.cc
|
|
|
+++ b/components/safe_browsing/core/common/features.cc
|
|
|
-@@ -127,7 +127,7 @@ const base::Feature kSendSampledPingsForProtegoAllowlistDomains{
|
|
|
- base::FEATURE_DISABLED_BY_DEFAULT};
|
|
|
+@@ -150,7 +150,7 @@ const base::Feature kSendSampledPingsForProtegoAllowlistDomains{
|
|
|
+ base::FEATURE_ENABLED_BY_DEFAULT};
|
|
|
|
|
|
const base::Feature kSuspiciousSiteTriggerQuotaFeature{
|
|
|
- "SafeBrowsingSuspiciousSiteTriggerQuota", base::FEATURE_ENABLED_BY_DEFAULT};
|
|
@@ -2906,7 +2918,7 @@ diff --git a/content/browser/file_system_access/safe_move_helper.h b/content/bro
|
|
|
diff --git a/content/public/browser/file_system_access_permission_context.h b/content/public/browser/file_system_access_permission_context.h
|
|
|
--- a/content/public/browser/file_system_access_permission_context.h
|
|
|
+++ b/content/public/browser/file_system_access_permission_context.h
|
|
|
-@@ -107,12 +107,6 @@ class FileSystemAccessPermissionContext {
|
|
|
+@@ -110,12 +110,6 @@ class FileSystemAccessPermissionContext {
|
|
|
base::OnceCallback<void(SensitiveDirectoryResult)> callback) = 0;
|
|
|
|
|
|
enum class AfterWriteCheckResult { kAllow, kBlock };
|
|
@@ -2922,11 +2934,12 @@ diff --git a/content/public/browser/file_system_access_permission_context.h b/co
|
|
|
diff --git a/weblayer/BUILD.gn b/weblayer/BUILD.gn
|
|
|
--- a/weblayer/BUILD.gn
|
|
|
+++ b/weblayer/BUILD.gn
|
|
|
-@@ -471,10 +471,8 @@ source_set("weblayer_lib_base") {
|
|
|
+@@ -471,11 +471,9 @@ source_set("weblayer_lib_base") {
|
|
|
"//components/prefs",
|
|
|
"//components/profile_metrics",
|
|
|
"//components/safe_browsing/content/browser",
|
|
|
- "//components/safe_browsing/content/browser:client_side_detection",
|
|
|
+ "//components/safe_browsing/content/browser/web_ui",
|
|
|
"//components/safe_browsing/content/common:interfaces",
|
|
|
"//components/safe_browsing/content/renderer:throttles",
|
|
|
- "//components/safe_browsing/content/renderer/phishing_classifier",
|
|
@@ -2950,8 +2963,8 @@ diff --git a/weblayer/test/BUILD.gn b/weblayer/test/BUILD.gn
|
|
|
"//components/safe_browsing/android:safe_browsing_api_handler",
|
|
|
"//components/safe_browsing/content/browser",
|
|
|
- "//components/safe_browsing/content/browser:client_side_detection",
|
|
|
+ "//components/safe_browsing/content/browser/web_ui",
|
|
|
"//components/safe_browsing/content/common:interfaces",
|
|
|
"//components/safe_browsing/core/browser:token_fetcher",
|
|
|
- "//components/safe_browsing/core/common",
|
|
|
--
|
|
|
2.25.1
|