|
@@ -1,33 +1,33 @@
|
|
|
From: csagan5 <32685696+csagan5@users.noreply.github.com>
|
|
|
Date: Tue, 16 Oct 2018 05:22:59 +0200
|
|
|
-Subject: ungoogled-chromium: disable safe browsing
|
|
|
+Subject: ungoogled-chromium: Disable safe browsing
|
|
|
|
|
|
---
|
|
|
chrome/browser/BUILD.gn | 2 -
|
|
|
chrome/browser/browser_process.h | 16 -----
|
|
|
chrome/browser/browser_process_impl.cc | 29 ---------
|
|
|
chrome/browser/browser_process_impl.h | 6 --
|
|
|
- .../chrome_browsing_data_remover_delegate.cc | 29 ---------
|
|
|
+ .../chrome_browsing_data_remover_delegate.cc | 30 ---------
|
|
|
chrome/browser/chrome_content_browser_client.cc | 32 +---------
|
|
|
.../file_type_policies_component_installer.cc | 14 -----
|
|
|
- .../download/chrome_download_manager_delegate.cc | 17 -----
|
|
|
+ .../download/chrome_download_manager_delegate.cc | 17 ------
|
|
|
chrome/browser/download/download_item_model.cc | 3 -
|
|
|
chrome/browser/download/download_prefs.cc | 13 +---
|
|
|
- .../browser/download/download_target_determiner.cc | 24 +------
|
|
|
+ .../browser/download/download_target_determiner.cc | 24 +-------
|
|
|
.../extensions/api/downloads/downloads_api.cc | 39 +-----------
|
|
|
.../extensions/api/downloads/downloads_api.h | 10 ---
|
|
|
- .../api/webstore_private/webstore_private_api.cc | 43 +------------
|
|
|
- .../browser/extensions/blacklist_state_fetcher.cc | 34 ++--------
|
|
|
+ .../api/webstore_private/webstore_private_api.cc | 44 +-------------
|
|
|
+ .../browser/extensions/blacklist_state_fetcher.cc | 34 ++---------
|
|
|
.../browser/extensions/blacklist_state_fetcher.h | 3 -
|
|
|
- .../chrome_resource_dispatcher_host_delegate.cc | 7 +--
|
|
|
+ .../chrome_resource_dispatcher_host_delegate.cc | 5 +-
|
|
|
.../metrics/chrome_metrics_service_client.cc | 3 -
|
|
|
- .../browser/net/trial_comparison_cert_verifier.cc | 3 -
|
|
|
+ .../trial_comparison_cert_verifier_controller.cc | 3 -
|
|
|
.../chrome_browser_main_extra_parts_profiles.cc | 1 -
|
|
|
chrome/browser/profiles/profile_impl.cc | 14 +----
|
|
|
chrome/browser/safe_browsing/BUILD.gn | 2 +
|
|
|
chrome/browser/ssl/captive_portal_blocking_page.cc | 7 +--
|
|
|
chrome/browser/ssl/cert_report_helper.cc | 2 -
|
|
|
- chrome/browser/ssl/security_state_tab_helper.cc | 73 ----------------------
|
|
|
+ chrome/browser/ssl/security_state_tab_helper.cc | 71 ----------------------
|
|
|
.../chrome_subresource_filter_client.cc | 14 -----
|
|
|
chrome/browser/ui/BUILD.gn | 1 -
|
|
|
chrome/browser/ui/tab_helpers.cc | 22 +++----
|
|
@@ -35,12 +35,12 @@ Subject: ungoogled-chromium: disable safe browsing
|
|
|
chrome/renderer/chrome_content_renderer_client.cc | 1 -
|
|
|
components/safe_browsing/features.cc | 2 +-
|
|
|
.../core/browser/subresource_filter_features.cc | 2 +-
|
|
|
- 32 files changed, 33 insertions(+), 446 deletions(-)
|
|
|
+ 32 files changed, 32 insertions(+), 445 deletions(-)
|
|
|
|
|
|
diff --git a/chrome/browser/BUILD.gn b/chrome/browser/BUILD.gn
|
|
|
--- a/chrome/browser/BUILD.gn
|
|
|
+++ b/chrome/browser/BUILD.gn
|
|
|
-@@ -2696,8 +2696,6 @@ jumbo_split_static_library("browser") {
|
|
|
+@@ -2800,8 +2800,6 @@ jumbo_split_static_library("browser") {
|
|
|
"download/download_commands.h",
|
|
|
"download/download_crx_util.cc",
|
|
|
"download/download_crx_util.h",
|
|
@@ -175,7 +175,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
|
|
|
-@@ -628,35 +628,6 @@ void ChromeBrowsingDataRemoverDelegate::RemoveEmbedderData(
|
|
|
+@@ -646,36 +646,6 @@ void ChromeBrowsingDataRemoverDelegate::RemoveEmbedderData(
|
|
|
CONTENT_SETTINGS_TYPE_CLIENT_HINTS, base::Time(), base::Time::Max(),
|
|
|
website_settings_filter);
|
|
|
|
|
@@ -202,9 +202,10 @@ diff --git a/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.
|
|
|
-
|
|
|
- manager_ptr->DeleteCookies(
|
|
|
- std::move(deletion_filter),
|
|
|
-- base::BindOnce(&OnClearedCookies,
|
|
|
-- CreatePendingTaskCompletionClosure(),
|
|
|
-- std::move(cookie_manager)));
|
|
|
+- base::BindOnce(
|
|
|
+- &OnClearedCookies,
|
|
|
+- CreateTaskCompletionClosure(TracingDataType::kCookies),
|
|
|
+- std::move(cookie_manager)));
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
@@ -214,7 +215,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
|
|
|
-@@ -853,30 +853,6 @@ void SetApplicationLocaleOnIOThread(const std::string& locale) {
|
|
|
+@@ -860,30 +860,6 @@ void SetApplicationLocaleOnIOThread(const std::string& locale) {
|
|
|
GetIOThreadApplicationLocale() = locale;
|
|
|
}
|
|
|
|
|
@@ -245,7 +246,7 @@ diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/ch
|
|
|
#if defined(OS_ANDROID)
|
|
|
float GetDeviceScaleAdjustment() {
|
|
|
static const float kMinFSM = 1.05f;
|
|
|
-@@ -2052,7 +2028,7 @@ void ChromeContentBrowserClient::AppendExtraCommandLineSwitches(
|
|
|
+@@ -2089,7 +2065,7 @@ void ChromeContentBrowserClient::AppendExtraCommandLineSwitches(
|
|
|
// Disable client-side phishing detection in the renderer if it is
|
|
|
// disabled in the Profile preferences or the browser process.
|
|
|
if (!prefs->GetBoolean(prefs::kSafeBrowsingEnabled) ||
|
|
@@ -254,7 +255,7 @@ diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/ch
|
|
|
command_line->AppendSwitch(
|
|
|
switches::kDisableClientSidePhishingDetection);
|
|
|
}
|
|
|
-@@ -2747,7 +2723,7 @@ void ChromeContentBrowserClient::AllowCertificateError(
|
|
|
+@@ -2718,7 +2694,7 @@ void ChromeContentBrowserClient::AllowCertificateError(
|
|
|
SSLErrorHandler::HandleSSLError(
|
|
|
web_contents, cert_error, ssl_info, request_url,
|
|
|
expired_previous_decision,
|
|
@@ -263,7 +264,7 @@ diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/ch
|
|
|
callback, SSLErrorHandler::BlockingPageReadyCallback());
|
|
|
}
|
|
|
|
|
|
-@@ -3030,8 +3006,6 @@ bool ChromeContentBrowserClient::CanCreateWindow(
|
|
|
+@@ -3003,8 +2979,6 @@ bool ChromeContentBrowserClient::CanCreateWindow(
|
|
|
void ChromeContentBrowserClient::ResourceDispatcherHostCreated() {
|
|
|
DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
|
|
|
|
@@ -272,7 +273,7 @@ diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/ch
|
|
|
for (size_t i = 0; i < extra_parts_.size(); ++i)
|
|
|
extra_parts_[i]->ResourceDispatcherHostCreated();
|
|
|
|
|
|
-@@ -4250,7 +4224,7 @@ ChromeContentBrowserClient::CreateThrottlesForNavigation(
|
|
|
+@@ -4242,7 +4216,7 @@ ChromeContentBrowserClient::CreateThrottlesForNavigation(
|
|
|
if (base::FeatureList::IsEnabled(features::kSSLCommittedInterstitials)) {
|
|
|
throttles.push_back(std::make_unique<SSLErrorNavigationThrottle>(
|
|
|
handle,
|
|
@@ -308,7 +309,7 @@ diff --git a/chrome/browser/component_updater/file_type_policies_component_insta
|
|
|
diff --git a/chrome/browser/download/chrome_download_manager_delegate.cc b/chrome/browser/download/chrome_download_manager_delegate.cc
|
|
|
--- a/chrome/browser/download/chrome_download_manager_delegate.cc
|
|
|
+++ b/chrome/browser/download/chrome_download_manager_delegate.cc
|
|
|
-@@ -322,13 +322,6 @@ ChromeDownloadManagerDelegate::~ChromeDownloadManagerDelegate() {
|
|
|
+@@ -327,13 +327,6 @@ ChromeDownloadManagerDelegate::~ChromeDownloadManagerDelegate() {
|
|
|
|
|
|
void ChromeDownloadManagerDelegate::SetDownloadManager(DownloadManager* dm) {
|
|
|
download_manager_ = dm;
|
|
@@ -322,7 +323,7 @@ diff --git a/chrome/browser/download/chrome_download_manager_delegate.cc b/chrom
|
|
|
}
|
|
|
|
|
|
#if defined(OS_ANDROID)
|
|
|
-@@ -636,16 +629,6 @@ void ChromeDownloadManagerDelegate::ChooseSavePath(
|
|
|
+@@ -644,16 +637,6 @@ void ChromeDownloadManagerDelegate::ChooseSavePath(
|
|
|
|
|
|
void ChromeDownloadManagerDelegate::SanitizeSavePackageResourceName(
|
|
|
base::FilePath* filename) {
|
|
@@ -385,7 +386,7 @@ diff --git a/chrome/browser/download/download_prefs.cc b/chrome/browser/download
|
|
|
diff --git a/chrome/browser/download/download_target_determiner.cc b/chrome/browser/download/download_target_determiner.cc
|
|
|
--- a/chrome/browser/download/download_target_determiner.cc
|
|
|
+++ b/chrome/browser/download/download_target_determiner.cc
|
|
|
-@@ -988,29 +988,7 @@ DownloadFileType::DangerLevel DownloadTargetDeterminer::GetDangerLevel(
|
|
|
+@@ -1028,29 +1028,7 @@ DownloadFileType::DangerLevel DownloadTargetDeterminer::GetDangerLevel(
|
|
|
download_->HasUserGesture())
|
|
|
return DownloadFileType::NOT_DANGEROUS;
|
|
|
|
|
@@ -427,7 +428,7 @@ diff --git a/chrome/browser/extensions/api/downloads/downloads_api.cc b/chrome/b
|
|
|
#include "chrome/browser/download/download_file_icon_extractor.h"
|
|
|
#include "chrome/browser/download/download_open_prompt.h"
|
|
|
#include "chrome/browser/download/download_prefs.h"
|
|
|
-@@ -1304,9 +1303,6 @@ DownloadsAcceptDangerFunction::DownloadsAcceptDangerFunction() {}
|
|
|
+@@ -1305,9 +1304,6 @@ DownloadsAcceptDangerFunction::DownloadsAcceptDangerFunction() {}
|
|
|
|
|
|
DownloadsAcceptDangerFunction::~DownloadsAcceptDangerFunction() {}
|
|
|
|
|
@@ -437,7 +438,7 @@ diff --git a/chrome/browser/extensions/api/downloads/downloads_api.cc b/chrome/b
|
|
|
bool DownloadsAcceptDangerFunction::RunAsync() {
|
|
|
std::unique_ptr<downloads::AcceptDanger::Params> params(
|
|
|
downloads::AcceptDanger::Params::Create(*args_));
|
|
|
-@@ -1344,40 +1340,7 @@ void DownloadsAcceptDangerFunction::PromptOrWait(int download_id, int retries) {
|
|
|
+@@ -1345,40 +1341,7 @@ void DownloadsAcceptDangerFunction::PromptOrWait(int download_id, int retries) {
|
|
|
return;
|
|
|
}
|
|
|
RecordApiFunctions(DOWNLOADS_FUNCTION_ACCEPT_DANGER);
|
|
@@ -487,9 +488,9 @@ diff --git a/chrome/browser/extensions/api/downloads/downloads_api.h b/chrome/br
|
|
|
#include "base/scoped_observer.h"
|
|
|
#include "base/time/time.h"
|
|
|
-#include "chrome/browser/download/download_danger_prompt.h"
|
|
|
- #include "chrome/browser/download/download_path_reservation_tracker.h"
|
|
|
#include "chrome/browser/extensions/chrome_extension_function.h"
|
|
|
#include "chrome/common/extensions/api/downloads.h"
|
|
|
+ #include "components/download/content/public/all_download_item_notifier.h"
|
|
|
@@ -189,25 +188,16 @@ class DownloadsRemoveFileFunction : public ChromeAsyncExtensionFunction {
|
|
|
|
|
|
class DownloadsAcceptDangerFunction : public ChromeAsyncExtensionFunction {
|
|
@@ -519,18 +520,21 @@ diff --git a/chrome/browser/extensions/api/downloads/downloads_api.h b/chrome/br
|
|
|
diff --git a/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc b/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
|
|
|
--- a/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
|
|
|
+++ b/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc
|
|
|
-@@ -682,48 +682,7 @@ WebstorePrivateGetReferrerChainFunction::
|
|
|
+@@ -681,51 +681,9 @@ WebstorePrivateGetReferrerChainFunction::
|
|
|
|
|
|
ExtensionFunction::ResponseAction
|
|
|
WebstorePrivateGetReferrerChainFunction::Run() {
|
|
|
- Profile* profile = chrome_details_.GetProfile();
|
|
|
- if (!SafeBrowsingNavigationObserverManager::IsEnabledAndReady(profile))
|
|
|
-- return RespondNow(ArgumentList(GetReferrerChain::Results::Create("")));
|
|
|
+- return RespondNow(ArgumentList(
|
|
|
+- api::webstore_private::GetReferrerChain::Results::Create("")));
|
|
|
-
|
|
|
- content::WebContents* web_contents = GetSenderWebContents();
|
|
|
- if (!web_contents) {
|
|
|
-- return RespondNow(ErrorWithArguments(GetReferrerChain::Results::Create(""),
|
|
|
-- kWebstoreUserCancelledError));
|
|
|
+- return RespondNow(ErrorWithArguments(
|
|
|
++ return RespondNow(ErrorWithArguments(
|
|
|
+ api::webstore_private::GetReferrerChain::Results::Create(""),
|
|
|
+ kWebstoreUserCancelledError));
|
|
|
- }
|
|
|
-
|
|
|
- scoped_refptr<SafeBrowsingNavigationObserverManager>
|
|
@@ -563,16 +567,16 @@ diff --git a/chrome/browser/extensions/api/webstore_private/webstore_private_api
|
|
|
- // Base64 encode the proto to avoid issues with base::Value rejecting strings
|
|
|
- // which are not valid UTF8.
|
|
|
- base::Base64Encode(serialized_referrer_proto, &serialized_referrer_proto);
|
|
|
-- return RespondNow(ArgumentList(
|
|
|
-- GetReferrerChain::Results::Create(serialized_referrer_proto)));
|
|
|
-+ return RespondNow(ArgumentList(GetReferrerChain::Results::Create("")));
|
|
|
+- return RespondNow(
|
|
|
+- ArgumentList(api::webstore_private::GetReferrerChain::Results::Create(
|
|
|
+- serialized_referrer_proto)));
|
|
|
}
|
|
|
|
|
|
} // namespace extensions
|
|
|
diff --git a/chrome/browser/extensions/blacklist_state_fetcher.cc b/chrome/browser/extensions/blacklist_state_fetcher.cc
|
|
|
--- a/chrome/browser/extensions/blacklist_state_fetcher.cc
|
|
|
+++ b/chrome/browser/extensions/blacklist_state_fetcher.cc
|
|
|
-@@ -31,28 +31,9 @@ BlacklistStateFetcher::~BlacklistStateFetcher() {
|
|
|
+@@ -32,28 +32,9 @@ BlacklistStateFetcher::~BlacklistStateFetcher() {
|
|
|
void BlacklistStateFetcher::Request(const std::string& id,
|
|
|
const RequestCallback& callback) {
|
|
|
DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
|
@@ -604,7 +608,7 @@ diff --git a/chrome/browser/extensions/blacklist_state_fetcher.cc b/chrome/brows
|
|
|
}
|
|
|
|
|
|
void BlacklistStateFetcher::SendRequest(const std::string& id) {
|
|
|
-@@ -63,8 +44,7 @@ void BlacklistStateFetcher::SendRequest(const std::string& id) {
|
|
|
+@@ -64,8 +45,7 @@ void BlacklistStateFetcher::SendRequest(const std::string& id) {
|
|
|
std::string request_str;
|
|
|
request.SerializeToString(&request_str);
|
|
|
|
|
@@ -614,7 +618,7 @@ diff --git a/chrome/browser/extensions/blacklist_state_fetcher.cc b/chrome/brows
|
|
|
net::NetworkTrafficAnnotationTag traffic_annotation =
|
|
|
net::DefineNetworkTrafficAnnotation("extension_blacklist", R"(
|
|
|
semantics {
|
|
|
-@@ -111,12 +91,6 @@ void BlacklistStateFetcher::SendRequest(const std::string& id) {
|
|
|
+@@ -112,12 +92,6 @@ void BlacklistStateFetcher::SendRequest(const std::string& id) {
|
|
|
base::Unretained(this), fetcher));
|
|
|
}
|
|
|
|
|
@@ -650,7 +654,7 @@ diff --git a/chrome/browser/extensions/blacklist_state_fetcher.h b/chrome/browse
|
|
|
diff --git a/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc b/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc
|
|
|
--- a/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc
|
|
|
+++ b/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc
|
|
|
-@@ -290,8 +290,7 @@ void NotifyUIThreadOfRequestComplete(
|
|
|
+@@ -289,8 +289,7 @@ void NotifyUIThreadOfRequestComplete(
|
|
|
} // namespace
|
|
|
|
|
|
ChromeResourceDispatcherHostDelegate::ChromeResourceDispatcherHostDelegate()
|
|
@@ -660,7 +664,7 @@ diff --git a/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc b
|
|
|
|
|
|
ChromeResourceDispatcherHostDelegate::~ChromeResourceDispatcherHostDelegate() {
|
|
|
#if BUILDFLAG(ENABLE_EXTENSIONS)
|
|
|
-@@ -305,8 +304,6 @@ void ChromeResourceDispatcherHostDelegate::RequestBeginning(
|
|
|
+@@ -304,8 +303,6 @@ void ChromeResourceDispatcherHostDelegate::RequestBeginning(
|
|
|
content::AppCacheService* appcache_service,
|
|
|
ResourceType resource_type,
|
|
|
std::vector<std::unique_ptr<content::ResourceThrottle>>* throttles) {
|
|
@@ -669,19 +673,10 @@ diff --git a/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc b
|
|
|
ProfileIOData* io_data = ProfileIOData::FromResourceContext(resource_context);
|
|
|
|
|
|
#if BUILDFLAG(ENABLE_OFFLINE_PAGES) || BUILDFLAG(ENABLE_NACL)
|
|
|
-@@ -410,7 +407,7 @@ void ChromeResourceDispatcherHostDelegate::AppendStandardResourceThrottles(
|
|
|
- content::ResourceThrottle* first_throttle = NULL;
|
|
|
- #if defined(OS_ANDROID)
|
|
|
- first_throttle = DataReductionProxyResourceThrottle::MaybeCreate(
|
|
|
-- request, resource_context, resource_type, safe_browsing_.get());
|
|
|
-+ request, resource_context, resource_type, nullptr);
|
|
|
- #endif // defined(OS_ANDROID)
|
|
|
-
|
|
|
- #if defined(SAFE_BROWSING_DB_LOCAL) || defined(SAFE_BROWSING_DB_REMOTE)
|
|
|
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
|
|
|
-@@ -714,9 +714,6 @@ void ChromeMetricsServiceClient::RegisterMetricsServiceProviders() {
|
|
|
+@@ -718,9 +718,6 @@ void ChromeMetricsServiceClient::RegisterMetricsServiceProviders() {
|
|
|
metrics_service_->RegisterMetricsProvider(
|
|
|
std::make_unique<HttpsEngagementMetricsProvider>());
|
|
|
|
|
@@ -691,23 +686,23 @@ diff --git a/chrome/browser/metrics/chrome_metrics_service_client.cc b/chrome/br
|
|
|
#if !defined(OS_ANDROID) && !defined(OS_CHROMEOS)
|
|
|
metrics_service_->RegisterMetricsProvider(
|
|
|
std::make_unique<UpgradeMetricsProvider>());
|
|
|
-diff --git a/chrome/browser/net/trial_comparison_cert_verifier.cc b/chrome/browser/net/trial_comparison_cert_verifier.cc
|
|
|
---- a/chrome/browser/net/trial_comparison_cert_verifier.cc
|
|
|
-+++ b/chrome/browser/net/trial_comparison_cert_verifier.cc
|
|
|
-@@ -80,9 +80,6 @@ void SendTrialVerificationReport(void* profile_id,
|
|
|
+diff --git a/chrome/browser/net/trial_comparison_cert_verifier_controller.cc b/chrome/browser/net/trial_comparison_cert_verifier_controller.cc
|
|
|
+--- a/chrome/browser/net/trial_comparison_cert_verifier_controller.cc
|
|
|
++++ b/chrome/browser/net/trial_comparison_cert_verifier_controller.cc
|
|
|
+@@ -112,9 +112,6 @@ void TrialComparisonCertVerifierController::SendTrialReport(
|
|
|
std::string serialized_report;
|
|
|
if (!report.Serialize(&serialized_report))
|
|
|
return;
|
|
|
-
|
|
|
-- CertificateReportingServiceFactory::GetForBrowserContext(profile)->Send(
|
|
|
+- CertificateReportingServiceFactory::GetForBrowserContext(profile_)->Send(
|
|
|
- serialized_report);
|
|
|
}
|
|
|
|
|
|
- std::unique_ptr<base::Value> TrialVerificationJobResultCallback(
|
|
|
+ // static
|
|
|
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
|
|
|
-@@ -239,7 +239,6 @@ void ChromeBrowserMainExtraPartsProfiles::
|
|
|
+@@ -237,7 +237,6 @@ void ChromeBrowserMainExtraPartsProfiles::
|
|
|
#if BUILDFLAG(ENABLE_CAPTIVE_PORTAL_DETECTION)
|
|
|
CaptivePortalServiceFactory::GetInstance();
|
|
|
#endif
|
|
@@ -718,7 +713,7 @@ diff --git a/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc
|
|
|
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
|
|
|
--- a/chrome/browser/profiles/profile_impl.cc
|
|
|
+++ b/chrome/browser/profiles/profile_impl.cc
|
|
|
-@@ -589,18 +589,6 @@ ProfileImpl::ProfileImpl(
|
|
|
+@@ -563,18 +563,6 @@ ProfileImpl::ProfileImpl(
|
|
|
create_mode == CREATE_MODE_SYNCHRONOUS);
|
|
|
#endif
|
|
|
|
|
@@ -737,7 +732,7 @@ diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/p
|
|
|
content::BrowserContext::Initialize(this, path_);
|
|
|
|
|
|
{
|
|
|
-@@ -609,7 +597,7 @@ ProfileImpl::ProfileImpl(
|
|
|
+@@ -583,7 +571,7 @@ ProfileImpl::ProfileImpl(
|
|
|
->CreateDelegate();
|
|
|
delegate->InitPrefRegistry(pref_registry_.get());
|
|
|
prefs_ = chrome_prefs::CreateProfilePrefs(
|
|
@@ -749,15 +744,15 @@ diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/p
|
|
|
diff --git a/chrome/browser/safe_browsing/BUILD.gn b/chrome/browser/safe_browsing/BUILD.gn
|
|
|
--- a/chrome/browser/safe_browsing/BUILD.gn
|
|
|
+++ b/chrome/browser/safe_browsing/BUILD.gn
|
|
|
-@@ -6,6 +6,7 @@ import("//extensions/buildflags/buildflags.gni")
|
|
|
- import("//third_party/protobuf/proto_library.gni")
|
|
|
+@@ -6,6 +6,7 @@ import("//build/config/jumbo.gni")
|
|
|
+ import("//extensions/buildflags/buildflags.gni")
|
|
|
|
|
|
- static_library("safe_browsing") {
|
|
|
+ jumbo_static_library("safe_browsing") {
|
|
|
+ if (false) {
|
|
|
sources = [
|
|
|
"safe_browsing_controller_client.cc",
|
|
|
"safe_browsing_controller_client.h",
|
|
|
-@@ -100,6 +101,7 @@ static_library("safe_browsing") {
|
|
|
+@@ -100,6 +101,7 @@ jumbo_static_library("safe_browsing") {
|
|
|
} else {
|
|
|
sources += [ "chrome_cleaner/chrome_cleaner_extension_util_win_noop.cc" ]
|
|
|
}
|
|
@@ -804,7 +799,7 @@ diff --git a/chrome/browser/ssl/cert_report_helper.cc b/chrome/browser/ssl/cert_
|
|
|
diff --git a/chrome/browser/ssl/security_state_tab_helper.cc b/chrome/browser/ssl/security_state_tab_helper.cc
|
|
|
--- a/chrome/browser/ssl/security_state_tab_helper.cc
|
|
|
+++ b/chrome/browser/ssl/security_state_tab_helper.cc
|
|
|
-@@ -186,79 +186,6 @@ bool SecurityStateTabHelper::UsedPolicyInstalledCertificate() const {
|
|
|
+@@ -186,77 +186,6 @@ bool SecurityStateTabHelper::UsedPolicyInstalledCertificate() const {
|
|
|
|
|
|
security_state::MaliciousContentStatus
|
|
|
SecurityStateTabHelper::GetMaliciousContentStatus() const {
|
|
@@ -860,9 +855,7 @@ diff --git a/chrome/browser/ssl/security_state_tab_helper.cc b/chrome/browser/ss
|
|
|
- return security_state::MALICIOUS_CONTENT_STATUS_SOCIAL_ENGINEERING;
|
|
|
-#endif
|
|
|
- case safe_browsing::SB_THREAT_TYPE_BILLING:
|
|
|
-- return base::FeatureList::IsEnabled(safe_browsing::kBillingInterstitial)
|
|
|
-- ? security_state::MALICIOUS_CONTENT_STATUS_BILLING
|
|
|
-- : security_state::MALICIOUS_CONTENT_STATUS_NONE;
|
|
|
+- return security_state::MALICIOUS_CONTENT_STATUS_BILLING;
|
|
|
- case safe_browsing::
|
|
|
- DEPRECATED_SB_THREAT_TYPE_URL_PASSWORD_PROTECTION_PHISHING:
|
|
|
- case safe_browsing::SB_THREAT_TYPE_URL_BINARY_MALWARE:
|
|
@@ -911,7 +904,7 @@ diff --git a/chrome/browser/subresource_filter/chrome_subresource_filter_client.
|
|
|
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
|
|
|
-@@ -2463,7 +2463,6 @@ jumbo_split_static_library("ui") {
|
|
|
+@@ -2461,7 +2461,6 @@ jumbo_split_static_library("ui") {
|
|
|
"views/cookie_info_view.h",
|
|
|
"views/device_chooser_content_view.cc",
|
|
|
"views/device_chooser_content_view.h",
|
|
@@ -922,7 +915,7 @@ diff --git a/chrome/browser/ui/BUILD.gn b/chrome/browser/ui/BUILD.gn
|
|
|
diff --git a/chrome/browser/ui/tab_helpers.cc b/chrome/browser/ui/tab_helpers.cc
|
|
|
--- a/chrome/browser/ui/tab_helpers.cc
|
|
|
+++ b/chrome/browser/ui/tab_helpers.cc
|
|
|
-@@ -44,8 +44,8 @@
|
|
|
+@@ -47,8 +47,8 @@
|
|
|
#include "chrome/browser/previews/resource_loading_hints/resource_loading_hints_web_contents_observer.h"
|
|
|
#include "chrome/browser/profiles/profile.h"
|
|
|
#include "chrome/browser/resource_coordinator/tab_helper.h"
|
|
@@ -933,7 +926,7 @@ diff --git a/chrome/browser/ui/tab_helpers.cc b/chrome/browser/ui/tab_helpers.cc
|
|
|
#include "chrome/browser/sessions/session_tab_helper.h"
|
|
|
#include "chrome/browser/ssl/connection_help_tab_helper.h"
|
|
|
#include "chrome/browser/ssl/security_state_tab_helper.h"
|
|
|
-@@ -105,7 +105,7 @@
|
|
|
+@@ -106,7 +106,7 @@
|
|
|
#else
|
|
|
#include "chrome/browser/banners/app_banner_manager_desktop.h"
|
|
|
#include "chrome/browser/plugins/plugin_observer.h"
|
|
@@ -942,7 +935,7 @@ diff --git a/chrome/browser/ui/tab_helpers.cc b/chrome/browser/ui/tab_helpers.cc
|
|
|
#include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h"
|
|
|
#include "chrome/browser/ui/hung_plugin_tab_helper.h"
|
|
|
#include "chrome/browser/ui/sad_tab_helper.h"
|
|
|
-@@ -200,10 +200,10 @@ void TabHelpers::AttachTabHelpers(WebContents* web_contents) {
|
|
|
+@@ -201,10 +201,10 @@ void TabHelpers::AttachTabHelpers(WebContents* web_contents) {
|
|
|
ChromePasswordManagerClient::CreateForWebContentsWithAutofillClient(
|
|
|
web_contents,
|
|
|
autofill::ChromeAutofillClient::FromWebContents(web_contents));
|
|
@@ -957,7 +950,7 @@ diff --git a/chrome/browser/ui/tab_helpers.cc b/chrome/browser/ui/tab_helpers.cc
|
|
|
ChromeTranslateClient::CreateForWebContents(web_contents);
|
|
|
ClientHintsObserver::CreateForWebContents(web_contents);
|
|
|
ConnectionHelpTabHelper::CreateForWebContents(web_contents);
|
|
|
-@@ -243,10 +243,8 @@ void TabHelpers::AttachTabHelpers(WebContents* web_contents) {
|
|
|
+@@ -244,10 +244,8 @@ void TabHelpers::AttachTabHelpers(WebContents* web_contents) {
|
|
|
PreviewsUITabHelper::CreateForWebContents(web_contents);
|
|
|
RecentlyAudibleHelper::CreateForWebContents(web_contents);
|
|
|
ResourceLoadingHintsWebContentsObserver::CreateForWebContents(web_contents);
|
|
@@ -970,8 +963,8 @@ diff --git a/chrome/browser/ui/tab_helpers.cc b/chrome/browser/ui/tab_helpers.cc
|
|
|
SearchEngineTabHelper::CreateForWebContents(web_contents);
|
|
|
SecurityStateTabHelper::CreateForWebContents(web_contents);
|
|
|
if (SiteEngagementService::IsEnabled())
|
|
|
-@@ -299,7 +297,7 @@ void TabHelpers::AttachTabHelpers(WebContents* web_contents) {
|
|
|
- new ChromePDFWebContentsHelperClient()));
|
|
|
+@@ -297,7 +295,7 @@ void TabHelpers::AttachTabHelpers(WebContents* web_contents) {
|
|
|
+ web_contents, std::make_unique<ChromePDFWebContentsHelperClient>());
|
|
|
PluginObserver::CreateForWebContents(web_contents);
|
|
|
SadTabHelper::CreateForWebContents(web_contents);
|
|
|
- safe_browsing::SafeBrowsingTabObserver::CreateForWebContents(web_contents);
|
|
@@ -982,15 +975,15 @@ diff --git a/chrome/browser/ui/tab_helpers.cc b/chrome/browser/ui/tab_helpers.cc
|
|
|
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
|
|
|
-@@ -250,6 +250,7 @@ BadClockBlockingPage* CreateBadClockBlockingPage(
|
|
|
- base::Callback<void(content::CertificateRequestResultType)>());
|
|
|
+@@ -267,6 +267,7 @@ LookalikeUrlInterstitialPage* CreateLookalikeInterstitialPage(
|
|
|
+ safe_url));
|
|
|
}
|
|
|
|
|
|
+#if 0
|
|
|
safe_browsing::SafeBrowsingBlockingPage* CreateSafeBrowsingBlockingPage(
|
|
|
content::WebContents* web_contents) {
|
|
|
safe_browsing::SBThreatType threat_type =
|
|
|
-@@ -308,7 +309,9 @@ safe_browsing::SafeBrowsingBlockingPage* CreateSafeBrowsingBlockingPage(
|
|
|
+@@ -325,7 +326,9 @@ safe_browsing::SafeBrowsingBlockingPage* CreateSafeBrowsingBlockingPage(
|
|
|
g_browser_process->safe_browsing_service()->ui_manager().get(),
|
|
|
web_contents, main_frame_url, resource);
|
|
|
}
|
|
@@ -1000,7 +993,7 @@ diff --git a/chrome/browser/ui/webui/interstitials/interstitial_ui.cc b/chrome/b
|
|
|
TestSafeBrowsingBlockingPageQuiet* CreateSafeBrowsingQuietBlockingPage(
|
|
|
content::WebContents* web_contents) {
|
|
|
safe_browsing::SBThreatType threat_type =
|
|
|
-@@ -360,6 +363,7 @@ TestSafeBrowsingBlockingPageQuiet* CreateSafeBrowsingQuietBlockingPage(
|
|
|
+@@ -377,6 +380,7 @@ TestSafeBrowsingBlockingPageQuiet* CreateSafeBrowsingQuietBlockingPage(
|
|
|
g_browser_process->safe_browsing_service()->ui_manager().get(),
|
|
|
web_contents, main_frame_url, resource, is_giant_webview);
|
|
|
}
|
|
@@ -1008,7 +1001,7 @@ diff --git a/chrome/browser/ui/webui/interstitials/interstitial_ui.cc b/chrome/b
|
|
|
|
|
|
#if BUILDFLAG(ENABLE_CAPTIVE_PORTAL_DETECTION)
|
|
|
CaptivePortalBlockingPage* CreateCaptivePortalBlockingPage(
|
|
|
-@@ -460,8 +464,6 @@ void InterstitialHTMLSource::StartDataRequest(
|
|
|
+@@ -484,8 +488,6 @@ void InterstitialHTMLSource::StartDataRequest(
|
|
|
interstitial_delegate.reset(CreateSSLBlockingPage(web_contents));
|
|
|
} else if (path_without_query == "/mitm-software-ssl") {
|
|
|
interstitial_delegate.reset(CreateMITMSoftwareBlockingPage(web_contents));
|
|
@@ -1016,8 +1009,8 @@ diff --git a/chrome/browser/ui/webui/interstitials/interstitial_ui.cc b/chrome/b
|
|
|
- interstitial_delegate.reset(CreateSafeBrowsingBlockingPage(web_contents));
|
|
|
} else if (path_without_query == "/clock") {
|
|
|
interstitial_delegate.reset(CreateBadClockBlockingPage(web_contents));
|
|
|
- #if BUILDFLAG(ENABLE_CAPTIVE_PORTAL_DETECTION)
|
|
|
-@@ -472,11 +474,6 @@ void InterstitialHTMLSource::StartDataRequest(
|
|
|
+ } else if (path_without_query == "/lookalike") {
|
|
|
+@@ -501,11 +503,6 @@ void InterstitialHTMLSource::StartDataRequest(
|
|
|
|
|
|
if (path_without_query == "/supervised_user") {
|
|
|
html = GetSupervisedUserInterstitialHTML(path);
|
|
@@ -1032,7 +1025,7 @@ diff --git a/chrome/browser/ui/webui/interstitials/interstitial_ui.cc b/chrome/b
|
|
|
diff --git a/chrome/renderer/chrome_content_renderer_client.cc b/chrome/renderer/chrome_content_renderer_client.cc
|
|
|
--- a/chrome/renderer/chrome_content_renderer_client.cc
|
|
|
+++ b/chrome/renderer/chrome_content_renderer_client.cc
|
|
|
-@@ -81,7 +81,6 @@
|
|
|
+@@ -84,7 +84,6 @@
|
|
|
#include "components/error_page/common/localized_error.h"
|
|
|
#include "components/network_hints/renderer/prescient_networking_dispatcher.h"
|
|
|
#include "components/pdf/renderer/pepper_pdf_host.h"
|
|
@@ -1043,7 +1036,7 @@ diff --git a/chrome/renderer/chrome_content_renderer_client.cc b/chrome/renderer
|
|
|
diff --git a/components/safe_browsing/features.cc b/components/safe_browsing/features.cc
|
|
|
--- a/components/safe_browsing/features.cc
|
|
|
+++ b/components/safe_browsing/features.cc
|
|
|
-@@ -44,7 +44,7 @@ const base::Feature kForceEnableResetPasswordWebUI{
|
|
|
+@@ -39,7 +39,7 @@ const base::Feature kForceEnableResetPasswordWebUI{
|
|
|
"ForceEnableResetPasswordWebUI", base::FEATURE_DISABLED_BY_DEFAULT};
|
|
|
|
|
|
const base::Feature kSuspiciousSiteTriggerQuotaFeature{
|
|
@@ -1055,7 +1048,7 @@ diff --git a/components/safe_browsing/features.cc b/components/safe_browsing/fea
|
|
|
diff --git a/components/subresource_filter/core/browser/subresource_filter_features.cc b/components/subresource_filter/core/browser/subresource_filter_features.cc
|
|
|
--- a/components/subresource_filter/core/browser/subresource_filter_features.cc
|
|
|
+++ b/components/subresource_filter/core/browser/subresource_filter_features.cc
|
|
|
-@@ -230,7 +230,7 @@ base::LazyInstance<scoped_refptr<ConfigurationList>>::Leaky
|
|
|
+@@ -231,7 +231,7 @@ base::LazyInstance<scoped_refptr<ConfigurationList>>::Leaky
|
|
|
// Constant definitions -------------------------------------------------------
|
|
|
|
|
|
const base::Feature kSafeBrowsingSubresourceFilter{
|