mirror of
https://github.com/imputnet/helium.git
synced 2026-08-20 00:57:32 +02:00
patches/core: Update for 75.0.3770.80
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/chrome_content_browser_client.cc
|
||||
+++ b/chrome/browser/chrome_content_browser_client.cc
|
||||
@@ -861,30 +861,6 @@ void SetApplicationLocaleOnIOThread(cons
|
||||
@@ -889,30 +889,6 @@ void SetApplicationLocaleOnIOThread(cons
|
||||
GetIOThreadApplicationLocale() = locale;
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
#if defined(OS_ANDROID)
|
||||
float GetDeviceScaleAdjustment() {
|
||||
static const float kMinFSM = 1.05f;
|
||||
@@ -2090,7 +2066,7 @@ void ChromeContentBrowserClient::AppendE
|
||||
@@ -2130,7 +2106,7 @@ void ChromeContentBrowserClient::AppendE
|
||||
// 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) ||
|
||||
@@ -40,7 +40,7 @@
|
||||
command_line->AppendSwitch(
|
||||
switches::kDisableClientSidePhishingDetection);
|
||||
}
|
||||
@@ -2719,7 +2695,7 @@ void ChromeContentBrowserClient::AllowCe
|
||||
@@ -2789,7 +2765,7 @@ void ChromeContentBrowserClient::AllowCe
|
||||
SSLErrorHandler::HandleSSLError(
|
||||
web_contents, cert_error, ssl_info, request_url,
|
||||
expired_previous_decision,
|
||||
@@ -49,7 +49,7 @@
|
||||
callback, SSLErrorHandler::BlockingPageReadyCallback());
|
||||
}
|
||||
|
||||
@@ -3004,8 +2980,6 @@ bool ChromeContentBrowserClient::CanCrea
|
||||
@@ -3076,8 +3052,6 @@ bool ChromeContentBrowserClient::CanCrea
|
||||
void ChromeContentBrowserClient::ResourceDispatcherHostCreated() {
|
||||
DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
for (size_t i = 0; i < extra_parts_.size(); ++i)
|
||||
extra_parts_[i]->ResourceDispatcherHostCreated();
|
||||
|
||||
@@ -4243,7 +4217,7 @@ ChromeContentBrowserClient::CreateThrott
|
||||
@@ -4350,7 +4324,7 @@ ChromeContentBrowserClient::CreateThrott
|
||||
if (base::FeatureList::IsEnabled(features::kSSLCommittedInterstitials)) {
|
||||
throttles.push_back(std::make_unique<SSLErrorNavigationThrottle>(
|
||||
handle,
|
||||
@@ -67,7 +67,7 @@
|
||||
base::Bind(&SSLErrorHandler::HandleSSLError)));
|
||||
}
|
||||
|
||||
@@ -4275,11 +4249,6 @@ ChromeContentBrowserClient::CreateThrott
|
||||
@@ -4382,11 +4356,6 @@ ChromeContentBrowserClient::CreateThrott
|
||||
PreviewsLitePageDecider::MaybeCreateThrottleFor(handle);
|
||||
if (previews_lite_page_throttle)
|
||||
throttles.push_back(std::move(previews_lite_page_throttle));
|
||||
@@ -81,7 +81,7 @@
|
||||
(defined(OS_LINUX) && !defined(OS_CHROMEOS))
|
||||
--- a/chrome/browser/profiles/profile_impl.cc
|
||||
+++ b/chrome/browser/profiles/profile_impl.cc
|
||||
@@ -563,18 +563,6 @@ ProfileImpl::ProfileImpl(
|
||||
@@ -562,18 +562,6 @@ ProfileImpl::ProfileImpl(
|
||||
create_mode == CREATE_MODE_SYNCHRONOUS);
|
||||
#endif
|
||||
|
||||
@@ -100,7 +100,7 @@
|
||||
content::BrowserContext::Initialize(this, path_);
|
||||
|
||||
{
|
||||
@@ -583,7 +571,7 @@ ProfileImpl::ProfileImpl(
|
||||
@@ -582,7 +570,7 @@ ProfileImpl::ProfileImpl(
|
||||
->CreateDelegate();
|
||||
delegate->InitPrefRegistry(pref_registry_.get());
|
||||
prefs_ = chrome_prefs::CreateProfilePrefs(
|
||||
@@ -111,7 +111,7 @@
|
||||
GetIOTaskRunner(), std::move(delegate));
|
||||
--- a/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc
|
||||
+++ b/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc
|
||||
@@ -289,8 +289,7 @@ void NotifyUIThreadOfRequestComplete(
|
||||
@@ -290,8 +290,7 @@ void NotifyUIThreadOfRequestComplete(
|
||||
} // namespace
|
||||
|
||||
ChromeResourceDispatcherHostDelegate::ChromeResourceDispatcherHostDelegate()
|
||||
@@ -121,7 +121,7 @@
|
||||
|
||||
ChromeResourceDispatcherHostDelegate::~ChromeResourceDispatcherHostDelegate() {
|
||||
#if BUILDFLAG(ENABLE_EXTENSIONS)
|
||||
@@ -304,8 +303,6 @@ void ChromeResourceDispatcherHostDelegat
|
||||
@@ -305,8 +304,6 @@ void ChromeResourceDispatcherHostDelegat
|
||||
content::AppCacheService* appcache_service,
|
||||
ResourceType resource_type,
|
||||
std::vector<std::unique_ptr<content::ResourceThrottle>>* throttles) {
|
||||
@@ -349,7 +349,7 @@
|
||||
// SimpleURLLoader -> (owned loader, extension id).
|
||||
--- a/chrome/browser/download/chrome_download_manager_delegate.cc
|
||||
+++ b/chrome/browser/download/chrome_download_manager_delegate.cc
|
||||
@@ -327,13 +327,6 @@ ChromeDownloadManagerDelegate::~ChromeDo
|
||||
@@ -320,13 +320,6 @@ ChromeDownloadManagerDelegate::~ChromeDo
|
||||
|
||||
void ChromeDownloadManagerDelegate::SetDownloadManager(DownloadManager* dm) {
|
||||
download_manager_ = dm;
|
||||
@@ -363,7 +363,7 @@
|
||||
}
|
||||
|
||||
#if defined(OS_ANDROID)
|
||||
@@ -644,16 +637,6 @@ void ChromeDownloadManagerDelegate::Choo
|
||||
@@ -637,16 +630,6 @@ void ChromeDownloadManagerDelegate::Choo
|
||||
|
||||
void ChromeDownloadManagerDelegate::SanitizeSavePackageResourceName(
|
||||
base::FilePath* filename) {
|
||||
@@ -388,9 +388,9 @@
|
||||
#include "chrome/browser/resource_coordinator/resource_coordinator_parts.h"
|
||||
-#include "chrome/browser/safe_browsing/safe_browsing_service.h"
|
||||
#include "chrome/browser/shell_integration.h"
|
||||
#include "chrome/browser/status_icons/status_tray.h"
|
||||
#include "chrome/browser/ui/browser_dialogs.h"
|
||||
@@ -369,8 +368,6 @@ void BrowserProcessImpl::StartTearDown()
|
||||
#include "chrome/browser/site_isolation/prefs_observer.h"
|
||||
#include "chrome/browser/startup_data.h"
|
||||
@@ -386,8 +385,6 @@ void BrowserProcessImpl::StartTearDown()
|
||||
// that URLFetcher operation before going away.)
|
||||
metrics_services_manager_.reset();
|
||||
intranet_redirect_detector_.reset();
|
||||
@@ -399,7 +399,7 @@
|
||||
network_time_tracker_.reset();
|
||||
#if BUILDFLAG(ENABLE_PLUGINS)
|
||||
plugins_resource_service_.reset();
|
||||
@@ -992,22 +989,6 @@ StatusTray* BrowserProcessImpl::status_t
|
||||
@@ -1008,22 +1005,6 @@ StatusTray* BrowserProcessImpl::status_t
|
||||
return status_tray_.get();
|
||||
}
|
||||
|
||||
@@ -422,7 +422,7 @@
|
||||
subresource_filter::RulesetService*
|
||||
BrowserProcessImpl::subresource_filter_ruleset_service() {
|
||||
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
|
||||
@@ -1292,16 +1273,6 @@ void BrowserProcessImpl::CreateBackgroun
|
||||
@@ -1311,16 +1292,6 @@ void BrowserProcessImpl::CreateBackgroun
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -441,7 +441,7 @@
|
||||
created_subresource_filter_ruleset_service_ = true;
|
||||
--- a/chrome/browser/browser_process_impl.h
|
||||
+++ b/chrome/browser/browser_process_impl.h
|
||||
@@ -172,9 +172,6 @@ class BrowserProcessImpl : public Browse
|
||||
@@ -173,9 +173,6 @@ class BrowserProcessImpl : public Browse
|
||||
void set_background_mode_manager_for_test(
|
||||
std::unique_ptr<BackgroundModeManager> manager) override;
|
||||
StatusTray* status_tray() override;
|
||||
@@ -451,7 +451,7 @@
|
||||
subresource_filter::RulesetService* subresource_filter_ruleset_service()
|
||||
override;
|
||||
optimization_guide::OptimizationGuideService* optimization_guide_service()
|
||||
@@ -320,9 +317,6 @@ class BrowserProcessImpl : public Browse
|
||||
@@ -321,9 +318,6 @@ class BrowserProcessImpl : public Browse
|
||||
std::unique_ptr<BackgroundModeManager> background_mode_manager_;
|
||||
#endif
|
||||
|
||||
@@ -605,7 +605,7 @@
|
||||
#include "chrome/browser/download/download_file_icon_extractor.h"
|
||||
#include "chrome/browser/download/download_open_prompt.h"
|
||||
#include "chrome/browser/download/download_prefs.h"
|
||||
@@ -1305,9 +1304,6 @@ DownloadsAcceptDangerFunction::Downloads
|
||||
@@ -1304,9 +1303,6 @@ DownloadsAcceptDangerFunction::Downloads
|
||||
|
||||
DownloadsAcceptDangerFunction::~DownloadsAcceptDangerFunction() {}
|
||||
|
||||
@@ -615,7 +615,7 @@
|
||||
bool DownloadsAcceptDangerFunction::RunAsync() {
|
||||
std::unique_ptr<downloads::AcceptDanger::Params> params(
|
||||
downloads::AcceptDanger::Params::Create(*args_));
|
||||
@@ -1345,40 +1341,7 @@ void DownloadsAcceptDangerFunction::Prom
|
||||
@@ -1344,40 +1340,7 @@ void DownloadsAcceptDangerFunction::Prom
|
||||
return;
|
||||
}
|
||||
RecordApiFunctions(DOWNLOADS_FUNCTION_ACCEPT_DANGER);
|
||||
@@ -695,7 +695,7 @@
|
||||
|
||||
--- a/chrome/browser/download/download_prefs.cc
|
||||
+++ b/chrome/browser/download/download_prefs.cc
|
||||
@@ -219,14 +219,7 @@ DownloadPrefs::DownloadPrefs(Profile* pr
|
||||
@@ -224,14 +224,7 @@ DownloadPrefs::DownloadPrefs(Profile* pr
|
||||
base::FilePath::StringType(1, base::FilePath::kExtensionSeparator) +
|
||||
extension);
|
||||
|
||||
@@ -791,7 +791,7 @@
|
||||
void DownloadTargetDeterminer::OnDownloadDestroyed(
|
||||
--- a/chrome/browser/BUILD.gn
|
||||
+++ b/chrome/browser/BUILD.gn
|
||||
@@ -2802,8 +2802,6 @@ jumbo_split_static_library("browser") {
|
||||
@@ -2831,8 +2831,6 @@ jumbo_split_static_library("browser") {
|
||||
"download/download_commands.h",
|
||||
"download/download_crx_util.cc",
|
||||
"download/download_crx_util.h",
|
||||
@@ -802,8 +802,8 @@
|
||||
"download/download_dir_util.cc",
|
||||
--- a/chrome/browser/ui/BUILD.gn
|
||||
+++ b/chrome/browser/ui/BUILD.gn
|
||||
@@ -2461,7 +2461,6 @@ jumbo_split_static_library("ui") {
|
||||
"views/cookie_info_view.h",
|
||||
@@ -2514,7 +2514,6 @@ jumbo_split_static_library("ui") {
|
||||
"views/desktop_capture/desktop_media_tab_list.h",
|
||||
"views/device_chooser_content_view.cc",
|
||||
"views/device_chooser_content_view.h",
|
||||
- "views/download/download_danger_prompt_views.cc",
|
||||
@@ -812,7 +812,7 @@
|
||||
"views/download/download_item_view.cc",
|
||||
--- a/chrome/browser/ssl/security_state_tab_helper.cc
|
||||
+++ b/chrome/browser/ssl/security_state_tab_helper.cc
|
||||
@@ -186,77 +186,6 @@ bool SecurityStateTabHelper::UsedPolicyI
|
||||
@@ -195,77 +195,6 @@ bool SecurityStateTabHelper::UsedPolicyI
|
||||
|
||||
security_state::MaliciousContentStatus
|
||||
SecurityStateTabHelper::GetMaliciousContentStatus() const {
|
||||
@@ -840,7 +840,7 @@
|
||||
- case safe_browsing::SB_THREAT_TYPE_URL_UNWANTED:
|
||||
- return security_state::MALICIOUS_CONTENT_STATUS_UNWANTED_SOFTWARE;
|
||||
- case safe_browsing::SB_THREAT_TYPE_SIGN_IN_PASSWORD_REUSE:
|
||||
-#if defined(SAFE_BROWSING_DB_LOCAL)
|
||||
-#if defined(FULL_SAFE_BROWSING)
|
||||
- if (safe_browsing::ChromePasswordProtectionService::
|
||||
- ShouldShowPasswordReusePageInfoBubble(
|
||||
- web_contents(),
|
||||
@@ -854,7 +854,7 @@
|
||||
- return security_state::MALICIOUS_CONTENT_STATUS_SOCIAL_ENGINEERING;
|
||||
-#endif
|
||||
- case safe_browsing::SB_THREAT_TYPE_ENTERPRISE_PASSWORD_REUSE:
|
||||
-#if defined(SAFE_BROWSING_DB_LOCAL)
|
||||
-#if defined(FULL_SAFE_BROWSING)
|
||||
- if (safe_browsing::ChromePasswordProtectionService::
|
||||
- ShouldShowPasswordReusePageInfoBubble(
|
||||
- web_contents(),
|
||||
@@ -892,7 +892,7 @@
|
||||
|
||||
--- a/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc
|
||||
+++ b/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc
|
||||
@@ -646,36 +646,6 @@ void ChromeBrowsingDataRemoverDelegate::
|
||||
@@ -639,36 +639,6 @@ void ChromeBrowsingDataRemoverDelegate::
|
||||
CONTENT_SETTINGS_TYPE_CLIENT_HINTS, base::Time(), base::Time::Max(),
|
||||
website_settings_filter);
|
||||
|
||||
@@ -931,7 +931,7 @@
|
||||
|
||||
--- a/chrome/browser/metrics/chrome_metrics_service_client.cc
|
||||
+++ b/chrome/browser/metrics/chrome_metrics_service_client.cc
|
||||
@@ -718,9 +718,6 @@ void ChromeMetricsServiceClient::Registe
|
||||
@@ -695,9 +695,6 @@ void ChromeMetricsServiceClient::Registe
|
||||
metrics_service_->RegisterMetricsProvider(
|
||||
std::make_unique<HttpsEngagementMetricsProvider>());
|
||||
|
||||
@@ -943,7 +943,7 @@
|
||||
std::make_unique<UpgradeMetricsProvider>());
|
||||
--- a/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc
|
||||
+++ b/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc
|
||||
@@ -237,7 +237,6 @@ void ChromeBrowserMainExtraPartsProfiles
|
||||
@@ -238,7 +238,6 @@ void ChromeBrowserMainExtraPartsProfiles
|
||||
#if BUILDFLAG(ENABLE_CAPTIVE_PORTAL_DETECTION)
|
||||
CaptivePortalServiceFactory::GetInstance();
|
||||
#endif
|
||||
@@ -987,7 +987,7 @@
|
||||
bool CertReportHelper::ShouldShowCertificateReporterCheckbox() {
|
||||
--- a/chrome/browser/ui/tab_helpers.cc
|
||||
+++ b/chrome/browser/ui/tab_helpers.cc
|
||||
@@ -244,10 +244,6 @@ void TabHelpers::AttachTabHelpers(WebCon
|
||||
@@ -242,10 +242,6 @@ void TabHelpers::AttachTabHelpers(WebCon
|
||||
PreviewsUITabHelper::CreateForWebContents(web_contents);
|
||||
RecentlyAudibleHelper::CreateForWebContents(web_contents);
|
||||
ResourceLoadingHintsWebContentsObserver::CreateForWebContents(web_contents);
|
||||
@@ -998,14 +998,14 @@
|
||||
SearchEngineTabHelper::CreateForWebContents(web_contents);
|
||||
SecurityStateTabHelper::CreateForWebContents(web_contents);
|
||||
if (SiteEngagementService::IsEnabled())
|
||||
@@ -297,7 +293,6 @@ void TabHelpers::AttachTabHelpers(WebCon
|
||||
@@ -295,7 +291,6 @@ void TabHelpers::AttachTabHelpers(WebCon
|
||||
web_contents, std::make_unique<ChromePDFWebContentsHelperClient>());
|
||||
PluginObserver::CreateForWebContents(web_contents);
|
||||
SadTabHelper::CreateForWebContents(web_contents);
|
||||
- safe_browsing::SafeBrowsingTabObserver::CreateForWebContents(web_contents);
|
||||
SearchTabHelper::CreateForWebContents(web_contents);
|
||||
TabDialogs::CreateForWebContents(web_contents);
|
||||
web_modal::WebContentsModalDialogManager::CreateForWebContents(web_contents);
|
||||
if (base::FeatureList::IsEnabled(features::kTabHoverCardImages))
|
||||
--- a/chrome/browser/subresource_filter/chrome_subresource_filter_client.cc
|
||||
+++ b/chrome/browser/subresource_filter/chrome_subresource_filter_client.cc
|
||||
@@ -70,20 +70,6 @@ void ChromeSubresourceFilterClient::DidS
|
||||
@@ -1173,15 +1173,28 @@
|
||||
return !download_->IsSavePackageDownload() &&
|
||||
--- a/components/safe_browsing/features.cc
|
||||
+++ b/components/safe_browsing/features.cc
|
||||
@@ -39,7 +39,7 @@ const base::Feature kForceEnableResetPas
|
||||
"ForceEnableResetPasswordWebUI", base::FEATURE_DISABLED_BY_DEFAULT};
|
||||
@@ -43,10 +43,10 @@ const base::Feature kPasswordProtectionF
|
||||
base::FEATURE_DISABLED_BY_DEFAULT};
|
||||
|
||||
const base::Feature kSuspiciousSiteTriggerQuotaFeature{
|
||||
- "SafeBrowsingSuspiciousSiteTriggerQuota", base::FEATURE_ENABLED_BY_DEFAULT};
|
||||
+ "SafeBrowsingSuspiciousSiteTriggerQuota", base::FEATURE_DISABLED_BY_DEFAULT};
|
||||
|
||||
const base::Feature kTelemetryForApkDownloads{
|
||||
"SafeBrowsingTelemetryForApkDownloads", base::FEATURE_DISABLED_BY_DEFAULT};
|
||||
- "SafeBrowsingTelemetryForApkDownloads", base::FEATURE_ENABLED_BY_DEFAULT};
|
||||
+ "SafeBrowsingTelemetryForApkDownloads", base::FEATURE_DISABLED_BY_DEFAULT};
|
||||
|
||||
const base::Feature kThreatDomDetailsTagAndAttributeFeature{
|
||||
"ThreatDomDetailsTagAttributes", base::FEATURE_DISABLED_BY_DEFAULT};
|
||||
@@ -59,7 +59,7 @@ const base::Feature kUseLocalBlacklistsV
|
||||
base::FEATURE_DISABLED_BY_DEFAULT};
|
||||
|
||||
const base::Feature kInspectRarContentFeature{"InspectRarContent",
|
||||
- base::FEATURE_ENABLED_BY_DEFAULT};
|
||||
+ base::FEATURE_DISABLED_BY_DEFAULT};
|
||||
|
||||
const base::Feature kUseAPDownloadProtection{"UseAPDownloadProtection",
|
||||
base::FEATURE_DISABLED_BY_DEFAULT};
|
||||
--- a/chrome/browser/extensions/api/safe_browsing_private/safe_browsing_private_api.cc
|
||||
+++ b/chrome/browser/extensions/api/safe_browsing_private/safe_browsing_private_api.cc
|
||||
@@ -52,37 +52,7 @@ SafeBrowsingPrivateGetReferrerChainFunct
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
--- a/net/dns/host_resolver_impl.cc
|
||||
+++ b/net/dns/host_resolver_impl.cc
|
||||
@@ -117,10 +117,10 @@ const unsigned kMinimumTTLSeconds = kCac
|
||||
--- a/net/dns/host_resolver_manager.cc
|
||||
+++ b/net/dns/host_resolver_manager.cc
|
||||
@@ -120,10 +120,10 @@ const unsigned kMinimumTTLSeconds = kCac
|
||||
// cached.
|
||||
const int kIPv6ProbePeriodMs = 1000;
|
||||
|
||||
-// Google DNS address used for IPv6 probes.
|
||||
+/* RIPE NCC k.root-servers.net. 2001:7fd::1 (anycasted) */
|
||||
const uint8_t kIPv6ProbeAddress[] =
|
||||
- { 0x20, 0x01, 0x48, 0x60, 0x48, 0x60, 0x00, 0x00,
|
||||
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x88, 0x88 };
|
||||
+ { 0x20, 0x01, 0x07, 0xfd, 0x00, 0x00, 0x00, 0x00,
|
||||
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01 };
|
||||
-const uint8_t kIPv6ProbeAddress[] = {0x20, 0x01, 0x48, 0x60, 0x48, 0x60,
|
||||
+// RIPE NCC k.root-servers.net. 2001:7fd::1 (anycasted), used for IPv6 probes.
|
||||
+const uint8_t kIPv6ProbeAddress[] = {0x20, 0x01, 0x07, 0xfd, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
- 0x00, 0x00, 0x88, 0x88};
|
||||
+ 0x00, 0x00, 0x00, 0x01};
|
||||
|
||||
enum DnsResolveStatus {
|
||||
RESOLVE_STATUS_DNS_SUCCESS = 0,
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
}
|
||||
--- a/components/translate/core/browser/translate_ranker_impl.cc
|
||||
+++ b/components/translate/core/browser/translate_ranker_impl.cc
|
||||
@@ -154,14 +154,10 @@ TranslateRankerImpl::TranslateRankerImpl
|
||||
@@ -157,14 +157,10 @@ TranslateRankerImpl::TranslateRankerImpl
|
||||
ukm::UkmRecorder* ukm_recorder)
|
||||
: ukm_recorder_(ukm_recorder),
|
||||
is_logging_enabled_(false),
|
||||
@@ -50,7 +50,7 @@
|
||||
weak_ptr_factory_(this) {
|
||||
if (is_query_enabled_ || is_enforcement_enabled_) {
|
||||
model_loader_ = std::make_unique<assist_ranker::RankerModelLoaderImpl>(
|
||||
@@ -235,6 +231,8 @@ bool TranslateRankerImpl::ShouldOfferTra
|
||||
@@ -238,6 +234,8 @@ bool TranslateRankerImpl::ShouldOfferTra
|
||||
// (or become False).
|
||||
const bool kDefaultResponse = true;
|
||||
|
||||
|
||||
@@ -1,18 +1,14 @@
|
||||
--- a/components/component_updater/configurator_impl.cc
|
||||
+++ b/components/component_updater/configurator_impl.cc
|
||||
@@ -80,18 +80,7 @@ int ConfiguratorImpl::UpdateDelay() cons
|
||||
@@ -73,14 +73,7 @@ int ConfiguratorImpl::UpdateDelay() cons
|
||||
}
|
||||
|
||||
std::vector<GURL> ConfiguratorImpl::UpdateUrl() const {
|
||||
- if (url_source_override_.is_valid())
|
||||
- return {GURL(url_source_override_)};
|
||||
-
|
||||
- std::vector<GURL> urls =
|
||||
- base::FeatureList::IsEnabled(kFeatureUpdateClientUseJSON)
|
||||
- ? std::vector<GURL>{GURL(kUpdaterJSONDefaultUrl),
|
||||
- GURL(kUpdaterJSONFallbackUrl)}
|
||||
- : std::vector<GURL>{GURL(kUpdaterDefaultUrl),
|
||||
- GURL(kUpdaterFallbackUrl)};
|
||||
- std::vector<GURL> urls{GURL(kUpdaterJSONDefaultUrl),
|
||||
- GURL(kUpdaterJSONFallbackUrl)};
|
||||
- if (require_encryption_)
|
||||
- update_client::RemoveUnsecureUrls(&urls);
|
||||
-
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/components/signin/core/browser/signin_manager.cc
|
||||
+++ b/components/signin/core/browser/signin_manager.cc
|
||||
@@ -201,7 +201,7 @@ void SigninManager::OnGoogleServicesUser
|
||||
@@ -193,7 +193,7 @@ void SigninManager::OnGoogleServicesUser
|
||||
}
|
||||
|
||||
bool SigninManager::IsSigninAllowed() const {
|
||||
|
||||
@@ -10,9 +10,9 @@
|
||||
+ # For unofficial (e.g. development) builds and non-Chrome branded (e.g. Cronet
|
||||
+ # which doesn't use Crashpad, crbug.com/479283) builds it's useful to be able
|
||||
+ # to unwind at runtime.
|
||||
+ exclude_unwind_tables =
|
||||
+ (is_chrome_branded && is_official_build) ||
|
||||
+ (is_chromecast && !is_cast_desktop_build && !is_debug && !is_fuchsia)
|
||||
+ exclude_unwind_tables = (is_chrome_branded && is_official_build) ||
|
||||
+ (is_chromecast && !is_cast_desktop_build && !is_debug &&
|
||||
+ !cast_is_debug && !is_fuchsia)
|
||||
}
|
||||
|
||||
assert(!is_cfi || use_thin_lto, "CFI requires ThinLTO")
|
||||
@@ -22,9 +22,9 @@
|
||||
-# For unofficial (e.g. development) builds and non-Chrome branded (e.g. Cronet
|
||||
-# which doesn't use Crashpad, crbug.com/479283) builds it's useful to be able
|
||||
-# to unwind at runtime.
|
||||
-exclude_unwind_tables =
|
||||
- (is_chrome_branded && is_official_build) ||
|
||||
- (is_chromecast && !is_cast_desktop_build && !is_debug && !is_fuchsia)
|
||||
-exclude_unwind_tables = (is_chrome_branded && is_official_build) ||
|
||||
- (is_chromecast && !is_cast_desktop_build && !is_debug &&
|
||||
- !cast_is_debug && !is_fuchsia)
|
||||
-
|
||||
# If true, optimize for size. Does not affect windows builds.
|
||||
# Linux & Mac favor speed over size.
|
||||
|
||||
+17
-28
@@ -106,7 +106,7 @@ by default.
|
||||
content::BrowserContext::GetDefaultStoragePartition(
|
||||
--- a/chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc
|
||||
+++ b/chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc
|
||||
@@ -78,7 +78,7 @@ namespace {
|
||||
@@ -80,7 +80,7 @@ namespace {
|
||||
|
||||
using api::file_manager_private::ProfileInfo;
|
||||
|
||||
@@ -190,7 +190,7 @@ by default.
|
||||
ProfileAvatarDownloader::ProfileAvatarDownloader(
|
||||
--- a/chrome/browser/resources/chromeos/chromevox/chromevox/background/prefs.js
|
||||
+++ b/chrome/browser/resources/chromeos/chromevox/chromevox/background/prefs.js
|
||||
@@ -85,9 +85,9 @@ cvox.ChromeVoxPrefs.DEFAULT_PREFS = {
|
||||
@@ -87,9 +87,9 @@ cvox.ChromeVoxPrefs.DEFAULT_PREFS = {
|
||||
'position': '{}',
|
||||
'siteSpecificEnhancements': true,
|
||||
'siteSpecificScriptBase':
|
||||
@@ -272,7 +272,7 @@ by default.
|
||||
base::ToLowerASCII(bdict_file));
|
||||
--- a/chrome/browser/supervised_user/supervised_user_service.cc
|
||||
+++ b/chrome/browser/supervised_user/supervised_user_service.cc
|
||||
@@ -84,7 +84,7 @@ namespace {
|
||||
@@ -82,7 +82,7 @@ namespace {
|
||||
|
||||
// The URL from which to download a host blacklist if no local one exists yet.
|
||||
const char kBlacklistURL[] =
|
||||
@@ -305,7 +305,7 @@ by default.
|
||||
// The maximum number of ignored bubble we track in the NumLaterPerReinstall
|
||||
--- a/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
|
||||
+++ b/chrome/browser/ui/webui/ntp/ntp_resource_cache.cc
|
||||
@@ -68,17 +68,17 @@ namespace {
|
||||
@@ -69,17 +69,17 @@ namespace {
|
||||
// The URL for the the Learn More page shown on incognito new tab.
|
||||
const char kLearnMoreIncognitoUrl[] =
|
||||
#if defined(OS_CHROMEOS)
|
||||
@@ -343,7 +343,7 @@ by default.
|
||||
|
||||
--- a/chrome/common/url_constants.cc
|
||||
+++ b/chrome/common/url_constants.cc
|
||||
@@ -232,7 +232,7 @@ const char kSyncErrorsHelpURL[] =
|
||||
@@ -238,7 +238,7 @@ const char kSyncErrorsHelpURL[] =
|
||||
"https://support.google.com/chrome/?p=settings_sync_error";
|
||||
|
||||
const char kSyncGoogleDashboardURL[] =
|
||||
@@ -352,7 +352,7 @@ by default.
|
||||
|
||||
const char kSyncLearnMoreURL[] =
|
||||
"https://support.google.com/chrome/?p=settings_sign_in";
|
||||
@@ -321,7 +321,7 @@ const char kArcTermsURLPath[] = "arc/ter
|
||||
@@ -327,7 +327,7 @@ const char kArcTermsURLPath[] = "arc/ter
|
||||
const char kArcPrivacyPolicyURLPath[] = "arc/privacy_policy";
|
||||
|
||||
const char kOnlineEulaURLPath[] =
|
||||
@@ -475,7 +475,7 @@ by default.
|
||||
// Minimum token validity when sending to GCM groups server.
|
||||
--- a/components/history/core/browser/web_history_service.cc
|
||||
+++ b/components/history/core/browser/web_history_service.cc
|
||||
@@ -41,13 +41,13 @@ namespace history {
|
||||
@@ -40,13 +40,13 @@ namespace history {
|
||||
namespace {
|
||||
|
||||
const char kHistoryOAuthScope[] =
|
||||
@@ -503,17 +503,6 @@ by default.
|
||||
const char kCacheInvalidationPackageName[] = "com.google.chrome.invalidations";
|
||||
|
||||
// Register backoff policy.
|
||||
--- a/components/invalidation/impl/p2p_invalidator.cc
|
||||
+++ b/components/invalidation/impl/p2p_invalidator.cc
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
namespace syncer {
|
||||
|
||||
-const char kSyncP2PNotificationChannel[] = "http://www.google.com/chrome/sync";
|
||||
+const char kSyncP2PNotificationChannel[] = "trk:191:http://www.google.com/chrome/sync";
|
||||
|
||||
namespace {
|
||||
|
||||
--- a/components/metrics/url_constants.cc
|
||||
+++ b/components/metrics/url_constants.cc
|
||||
@@ -7,12 +7,12 @@
|
||||
@@ -534,9 +523,9 @@ by default.
|
||||
|
||||
--- a/components/password_manager/core/browser/password_store.cc
|
||||
+++ b/components/password_manager/core/browser/password_store.cc
|
||||
@@ -229,10 +229,10 @@ void PasswordStore::GetLogins(const Form
|
||||
@@ -219,10 +219,10 @@ void PasswordStore::GetLogins(const Form
|
||||
// TODO(mdm): actually delete them at some point, say M24 or so.
|
||||
base::Time ignore_logins_cutoff; // the null time
|
||||
base::Time cutoff; // the null time
|
||||
if (form.scheme == PasswordForm::SCHEME_HTML &&
|
||||
- (form.signon_realm == "http://www.google.com" ||
|
||||
- form.signon_realm == "http://www.google.com/" ||
|
||||
@@ -546,8 +535,8 @@ by default.
|
||||
+ form.signon_realm == "trk:188:http://www.google.com/" ||
|
||||
+ form.signon_realm == "trk:189:https://www.google.com" ||
|
||||
+ form.signon_realm == "trk:190:https://www.google.com/")) {
|
||||
static const base::Time::Exploded exploded_cutoff =
|
||||
{ 2012, 1, 0, 1, 0, 0, 0, 0 }; // 00:00 Jan 1 2012
|
||||
static const base::Time::Exploded exploded_cutoff = {
|
||||
2012, 1, 0, 1, 0, 0, 0, 0}; // 00:00 Jan 1 2012
|
||||
base::Time out_time;
|
||||
--- a/components/policy/core/common/policy_loader_win.cc
|
||||
+++ b/components/policy/core/common/policy_loader_win.cc
|
||||
@@ -562,16 +551,16 @@ by default.
|
||||
|
||||
--- a/components/policy/resources/policy_templates.json
|
||||
+++ b/components/policy/resources/policy_templates.json
|
||||
@@ -3463,7 +3463,7 @@
|
||||
@@ -3494,7 +3494,7 @@
|
||||
'dynamic_refresh': True,
|
||||
'per_profile': True,
|
||||
},
|
||||
- 'example_value': ['gbchcmhmhahfdphkhkmpfmihenigjmpp;https://clients2.google.com/service/update2/crx', 'abcdefghijklmnopabcdefghijklmnop'],
|
||||
+ 'example_value': ['gbchcmhmhahfdphkhkmpfmihenigjmpp;trk:16:https://clients2.google.com/service/update2/crx', 'abcdefghijklmnopabcdefghijklmnop'],
|
||||
- 'example_value': ['aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;https://clients2.google.com/service/update2/crx', 'abcdefghijklmnopabcdefghijklmnop'],
|
||||
+ 'example_value': ['aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;trk:16:https://clients2.google.com/service/update2/crx', 'abcdefghijklmnopabcdefghijklmnop'],
|
||||
'id': 34,
|
||||
'caption': '''Configure the list of force-installed apps and extensions''',
|
||||
'tags': ['full-admin-access'],
|
||||
@@ -7236,7 +7236,7 @@
|
||||
@@ -7325,7 +7325,7 @@
|
||||
'features': {
|
||||
'dynamic_refresh': True,
|
||||
},
|
||||
@@ -593,7 +582,7 @@ by default.
|
||||
|
||||
--- a/components/search_engines/prepopulated_engines.json
|
||||
+++ b/components/search_engines/prepopulated_engines.json
|
||||
@@ -108,7 +108,7 @@
|
||||
@@ -109,7 +109,7 @@
|
||||
"google": {
|
||||
"name": "Google",
|
||||
"keyword": "google.com",
|
||||
@@ -791,7 +780,7 @@ by default.
|
||||
"https://www.googleapis.com/auth/googletalk",
|
||||
--- a/ui/views/examples/webview_example.cc
|
||||
+++ b/ui/views/examples/webview_example.cc
|
||||
@@ -27,7 +27,7 @@ void WebViewExample::CreateExampleView(V
|
||||
@@ -25,7 +25,7 @@ void WebViewExample::CreateExampleView(V
|
||||
container->SetLayoutManager(std::make_unique<FillLayout>());
|
||||
container->AddChildView(webview_);
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ the URL so we get notified if this happens again in the future).
|
||||
IncidentReportingService::IncidentReportingService(
|
||||
--- a/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc
|
||||
+++ b/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc
|
||||
@@ -59,8 +59,7 @@ class SafeBrowsingBlockingPageFactoryImp
|
||||
@@ -62,8 +62,7 @@ class SafeBrowsingBlockingPageFactoryImp
|
||||
PrefService* prefs =
|
||||
Profile::FromBrowserContext(web_contents->GetBrowserContext())
|
||||
->GetPrefs();
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
GURL rewritten_tab_url = tab_url;
|
||||
--- a/components/omnibox/browser/autocomplete_input.cc
|
||||
+++ b/components/omnibox/browser/autocomplete_input.cc
|
||||
@@ -479,7 +479,8 @@ void AutocompleteInput::ParseForEmphasiz
|
||||
@@ -486,7 +486,8 @@ void AutocompleteInput::ParseForEmphasiz
|
||||
int after_scheme_and_colon = parts.scheme.end() + 1;
|
||||
// For the view-source scheme, we should emphasize the scheme and host of the
|
||||
// URL qualified by the view-source prefix.
|
||||
@@ -46,7 +46,7 @@
|
||||
(static_cast<int>(text.length()) > after_scheme_and_colon)) {
|
||||
// Obtain the URL prefixed by view-source and parse it.
|
||||
base::string16 real_url(text.substr(after_scheme_and_colon));
|
||||
@@ -552,7 +553,9 @@ int AutocompleteInput::NumNonHostCompone
|
||||
@@ -559,7 +560,9 @@ int AutocompleteInput::NumNonHostCompone
|
||||
bool AutocompleteInput::HasHTTPScheme(const base::string16& input) {
|
||||
std::string utf8_input(base::UTF16ToUTF8(input));
|
||||
url::Component scheme;
|
||||
@@ -59,7 +59,7 @@
|
||||
return url::FindAndCompareScheme(utf8_input, url::kHttpScheme, nullptr);
|
||||
--- a/content/browser/child_process_security_policy_impl.cc
|
||||
+++ b/content/browser/child_process_security_policy_impl.cc
|
||||
@@ -510,6 +510,7 @@ ChildProcessSecurityPolicyImpl::ChildPro
|
||||
@@ -490,6 +490,7 @@ ChildProcessSecurityPolicyImpl::ChildPro
|
||||
RegisterWebSafeScheme(url::kHttpsScheme);
|
||||
RegisterWebSafeScheme(url::kFtpScheme);
|
||||
RegisterWebSafeScheme(url::kDataScheme);
|
||||
@@ -133,7 +133,7 @@
|
||||
return GURL(parts.scheme.is_valid() ? text : FixupPath(text));
|
||||
--- a/net/BUILD.gn
|
||||
+++ b/net/BUILD.gn
|
||||
@@ -1728,6 +1728,8 @@ component("net") {
|
||||
@@ -1731,6 +1731,8 @@ component("net") {
|
||||
"url_request/report_sender.h",
|
||||
"url_request/static_http_user_agent_settings.cc",
|
||||
"url_request/static_http_user_agent_settings.h",
|
||||
@@ -144,7 +144,7 @@
|
||||
"url_request/url_fetcher_core.cc",
|
||||
--- a/android_webview/browser/net/aw_url_request_context_getter.cc
|
||||
+++ b/android_webview/browser/net/aw_url_request_context_getter.cc
|
||||
@@ -61,6 +61,7 @@
|
||||
@@ -60,6 +60,7 @@
|
||||
#include "net/ssl/ssl_config_service.h"
|
||||
#include "net/url_request/data_protocol_handler.h"
|
||||
#include "net/url_request/file_protocol_handler.h"
|
||||
@@ -152,7 +152,7 @@
|
||||
#include "net/url_request/url_request_context.h"
|
||||
#include "net/url_request/url_request_context_builder.h"
|
||||
#include "net/url_request/url_request_intercepting_job_factory.h"
|
||||
@@ -137,6 +138,9 @@ std::unique_ptr<net::URLRequestJobFactor
|
||||
@@ -130,6 +131,9 @@ std::unique_ptr<net::URLRequestJobFactor
|
||||
url::kDataScheme, std::make_unique<net::DataProtocolHandler>());
|
||||
DCHECK(set_protocol);
|
||||
set_protocol = aw_job_factory->SetProtocolHandler(
|
||||
@@ -164,7 +164,7 @@
|
||||
DCHECK(set_protocol);
|
||||
--- a/chrome/browser/profiles/profile_io_data.cc
|
||||
+++ b/chrome/browser/profiles/profile_io_data.cc
|
||||
@@ -95,6 +95,7 @@
|
||||
@@ -94,6 +94,7 @@
|
||||
#include "net/url_request/data_protocol_handler.h"
|
||||
#include "net/url_request/file_protocol_handler.h"
|
||||
#include "net/url_request/ftp_protocol_handler.h"
|
||||
@@ -172,7 +172,7 @@
|
||||
#include "net/url_request/url_request.h"
|
||||
#include "net/url_request/url_request_context.h"
|
||||
#include "net/url_request/url_request_context_builder.h"
|
||||
@@ -1062,6 +1063,9 @@ ProfileIOData::SetUpJobFactoryDefaults(
|
||||
@@ -1065,6 +1066,9 @@ ProfileIOData::SetUpJobFactoryDefaults(
|
||||
set_protocol = job_factory->SetProtocolHandler(
|
||||
url::kDataScheme, std::make_unique<net::DataProtocolHandler>());
|
||||
DCHECK(set_protocol);
|
||||
@@ -184,7 +184,7 @@
|
||||
set_protocol = job_factory->SetProtocolHandler(
|
||||
--- a/chromecast/browser/url_request_context_factory.cc
|
||||
+++ b/chromecast/browser/url_request_context_factory.cc
|
||||
@@ -42,6 +42,7 @@
|
||||
@@ -43,6 +43,7 @@
|
||||
#include "net/ssl/ssl_config_service_defaults.h"
|
||||
#include "net/url_request/data_protocol_handler.h"
|
||||
#include "net/url_request/file_protocol_handler.h"
|
||||
@@ -192,7 +192,7 @@
|
||||
#include "net/url_request/url_request_context.h"
|
||||
#include "net/url_request/url_request_context_builder.h"
|
||||
#include "net/url_request/url_request_context_getter.h"
|
||||
@@ -269,6 +270,9 @@ void URLRequestContextFactory::Initializ
|
||||
@@ -280,6 +281,9 @@ void URLRequestContextFactory::Initializ
|
||||
set_protocol = job_factory->SetProtocolHandler(
|
||||
url::kDataScheme, std::make_unique<net::DataProtocolHandler>());
|
||||
DCHECK(set_protocol);
|
||||
@@ -269,7 +269,7 @@
|
||||
+#endif // NET_URL_REQUEST_TRK_PROTOCOL_HANDLER_H_
|
||||
--- a/net/url_request/url_request_context_builder.cc
|
||||
+++ b/net/url_request/url_request_context_builder.cc
|
||||
@@ -39,6 +39,7 @@
|
||||
@@ -40,6 +40,7 @@
|
||||
#include "net/ssl/ssl_config_service_defaults.h"
|
||||
#include "net/url_request/data_protocol_handler.h"
|
||||
#include "net/url_request/static_http_user_agent_settings.h"
|
||||
@@ -277,7 +277,7 @@
|
||||
#include "net/url_request/url_request_context.h"
|
||||
#include "net/url_request/url_request_context_storage.h"
|
||||
#include "net/url_request/url_request_intercepting_job_factory.h"
|
||||
@@ -622,6 +623,8 @@ std::unique_ptr<URLRequestContext> URLRe
|
||||
@@ -656,6 +657,8 @@ std::unique_ptr<URLRequestContext> URLRe
|
||||
if (data_enabled_)
|
||||
job_factory->SetProtocolHandler(url::kDataScheme,
|
||||
std::make_unique<DataProtocolHandler>());
|
||||
|
||||
@@ -591,7 +591,7 @@
|
||||
result.status = UploadResult::SUCCESS;
|
||||
--- a/components/domain_reliability/bake_in_configs.py
|
||||
+++ b/components/domain_reliability/bake_in_configs.py
|
||||
@@ -489,7 +489,7 @@ def origin_is_whitelisted(origin):
|
||||
@@ -490,7 +490,7 @@ def origin_is_whitelisted(origin):
|
||||
domain = origin[8:-1]
|
||||
else:
|
||||
return False
|
||||
|
||||
@@ -66,8 +66,8 @@
|
||||
<body>
|
||||
--- a/components/dom_distiller/core/javascript/dom_distiller_viewer.js
|
||||
+++ b/components/dom_distiller/core/javascript/dom_distiller_viewer.js
|
||||
@@ -120,7 +120,7 @@ function maybeSetWebFont() {
|
||||
if (distiller_on_ios) return;
|
||||
@@ -123,7 +123,7 @@ function maybeSetWebFont() {
|
||||
return;
|
||||
|
||||
var e = document.createElement('link');
|
||||
- e.href = 'https://fonts.googleapis.com/css?family=Roboto';
|
||||
|
||||
@@ -110,7 +110,7 @@
|
||||
#endif
|
||||
--- a/chrome/browser/ui/webui/signin/inline_login_ui.cc
|
||||
+++ b/chrome/browser/ui/webui/signin/inline_login_ui.cc
|
||||
@@ -51,7 +51,6 @@ content::WebUIDataSource* CreateWebUIDat
|
||||
@@ -53,7 +53,6 @@ content::WebUIDataSource* CreateWebUIDat
|
||||
|
||||
source->AddResourcePath("inline_login.css", IDR_INLINE_LOGIN_CSS);
|
||||
source->AddResourcePath("inline_login.js", IDR_INLINE_LOGIN_JS);
|
||||
@@ -120,7 +120,7 @@
|
||||
source->AddLocalizedString(
|
||||
--- a/chrome/browser/browser_resources.grd
|
||||
+++ b/chrome/browser/browser_resources.grd
|
||||
@@ -396,7 +396,6 @@
|
||||
@@ -392,7 +392,6 @@
|
||||
<include name="IDR_INLINE_LOGIN_HTML" file="resources\inline_login\inline_login.html" flattenhtml="true" allowexternalscript="true" type="BINDATA" />
|
||||
<include name="IDR_INLINE_LOGIN_CSS" file="resources\inline_login\inline_login.css" flattenhtml="true" type="BINDATA" />
|
||||
<include name="IDR_INLINE_LOGIN_JS" file="resources\inline_login\inline_login.js" flattenhtml="true" type="BINDATA" />
|
||||
@@ -128,7 +128,7 @@
|
||||
<include name="IDR_INSPECT_CSS" file="resources\inspect\inspect.css" flattenhtml="true" type="BINDATA" />
|
||||
<include name="IDR_INSPECT_HTML" file="resources\inspect\inspect.html" flattenhtml="true" allowexternalscript="true" type="BINDATA" />
|
||||
<include name="IDR_INSPECT_JS" file="resources\inspect\inspect.js" flattenhtml="true" type="BINDATA" />
|
||||
@@ -496,7 +495,6 @@
|
||||
@@ -492,7 +491,6 @@
|
||||
<include name="IDR_WEBRTC_LOGS_JS" file="resources\media\webrtc_logs.js" type="BINDATA" />
|
||||
<include name="IDR_WEBSTORE_MANIFEST" file="resources\webstore_app\manifest.json" type="BINDATA" />
|
||||
<include name="IDR_CRYPTOTOKEN_MANIFEST" file="resources\cryptotoken\manifest.json" type="BINDATA" />
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
// The result of checking if a URL should have variations headers appended.
|
||||
// This enum is used to record UMA histogram values, and should not be
|
||||
// reordered.
|
||||
@@ -96,33 +92,7 @@ class VariationsHeaderHelper {
|
||||
@@ -96,34 +92,7 @@ class VariationsHeaderHelper {
|
||||
: VariationsHeaderHelper(request, null_url_request, variations_header) {}
|
||||
|
||||
bool AppendHeaderIfNeeded(const GURL& url, InIncognito incognito) {
|
||||
@@ -64,9 +64,10 @@
|
||||
- return false;
|
||||
-
|
||||
- if (resource_request_) {
|
||||
- // Set the variations header to client_data_header rather than headers to
|
||||
- // be exempted from CORS checks.
|
||||
- resource_request_->client_data_header = variations_header_;
|
||||
- // Set the variations header to cors_exempt_headers rather than headers
|
||||
- // to be exempted from CORS checks.
|
||||
- resource_request_->cors_exempt_headers.SetHeaderIfMissing(
|
||||
- kClientDataHeader, variations_header_);
|
||||
- } else if (url_request_) {
|
||||
- url_request_->SetExtraRequestHeaderByName(kClientDataHeader,
|
||||
- variations_header_, false);
|
||||
@@ -79,7 +80,7 @@
|
||||
}
|
||||
|
||||
private:
|
||||
@@ -188,14 +158,10 @@ void RemoveVariationsHeaderIfNeeded(
|
||||
@@ -189,14 +158,10 @@ void RemoveVariationsHeaderIfNeeded(
|
||||
const net::RedirectInfo& redirect_info,
|
||||
const network::ResourceResponseHead& response_head,
|
||||
std::vector<std::string>* to_be_removed_headers) {
|
||||
@@ -94,7 +95,7 @@
|
||||
}
|
||||
|
||||
std::unique_ptr<network::SimpleURLLoader>
|
||||
@@ -225,7 +191,7 @@ CreateSimpleURLLoaderWithVariationsHeade
|
||||
@@ -226,11 +191,11 @@ CreateSimpleURLLoaderWithVariationsHeade
|
||||
}
|
||||
|
||||
bool IsVariationsHeader(const std::string& header_name) {
|
||||
@@ -103,6 +104,19 @@
|
||||
}
|
||||
|
||||
bool HasVariationsHeader(const network::ResourceRequest& request) {
|
||||
- return request.cors_exempt_headers.HasHeader(kClientDataHeader);
|
||||
+ return false;
|
||||
}
|
||||
|
||||
bool ShouldAppendVariationsHeaderForTesting(const GURL& url) {
|
||||
@@ -239,7 +204,6 @@ bool ShouldAppendVariationsHeaderForTest
|
||||
|
||||
void UpdateCorsExemptHeaderForVariations(
|
||||
network::mojom::NetworkContextParams* params) {
|
||||
- params->cors_exempt_header_list.push_back(kClientDataHeader);
|
||||
}
|
||||
|
||||
} // namespace variations
|
||||
--- a/chrome/browser/page_load_metrics/page_load_metrics_util.cc
|
||||
+++ b/chrome/browser/page_load_metrics/page_load_metrics_util.cc
|
||||
@@ -169,9 +169,7 @@ bool DidObserveLoadingBehaviorInAnyFrame
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
--- a/chrome/BUILD.gn
|
||||
+++ b/chrome/BUILD.gn
|
||||
@@ -333,7 +333,6 @@ if (!is_android && !is_mac) {
|
||||
@@ -330,7 +330,6 @@ if (!is_android && !is_mac) {
|
||||
}
|
||||
|
||||
data_deps += [
|
||||
@@ -15,10 +15,10 @@
|
||||
"//third_party/widevine/cdm",
|
||||
]
|
||||
|
||||
@@ -1257,7 +1256,6 @@ if (is_win) {
|
||||
@@ -1330,7 +1329,6 @@ if (is_win) {
|
||||
":packed_resources",
|
||||
":swiftshader_library",
|
||||
":widevine_cdm_library",
|
||||
"//chrome/app/nibs:chrome_xibs",
|
||||
- "//chrome/browser/resources/media/mei_preload:component_bundle",
|
||||
]
|
||||
|
||||
|
||||
@@ -1,19 +1,8 @@
|
||||
# Disables browser sign-in
|
||||
|
||||
--- a/components/signin/core/browser/signin_manager_base.cc
|
||||
+++ b/components/signin/core/browser/signin_manager_base.cc
|
||||
@@ -157,7 +157,7 @@ void SigninManagerBase::FinalizeInitBefo
|
||||
bool SigninManagerBase::IsInitialized() const { return initialized_; }
|
||||
|
||||
bool SigninManagerBase::IsSigninAllowed() const {
|
||||
- return client_->GetPrefs()->GetBoolean(prefs::kSigninAllowed);
|
||||
+ return false;
|
||||
}
|
||||
|
||||
AccountInfo SigninManagerBase::GetAuthenticatedAccountInfo() const {
|
||||
--- a/chrome/browser/ui/chrome_pages.cc
|
||||
+++ b/chrome/browser/ui/chrome_pages.cc
|
||||
@@ -379,23 +379,6 @@ void ShowSearchEngineSettings(Browser* b
|
||||
@@ -406,23 +406,6 @@ void ShowManagementPageForProfile(Profil
|
||||
#if !defined(OS_ANDROID) && !defined(OS_CHROMEOS)
|
||||
void ShowBrowserSignin(Browser* browser,
|
||||
signin_metrics::AccessPoint access_point) {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
--- a/components/translate/core/browser/translate_manager.cc
|
||||
+++ b/components/translate/core/browser/translate_manager.cc
|
||||
@@ -704,8 +704,7 @@ void TranslateManager::FilterIsTranslate
|
||||
@@ -670,8 +670,7 @@ void TranslateManager::FilterIsTranslate
|
||||
TranslateBrowserMetrics::INITIATION_STATUS_NO_NETWORK);
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
// that settings syncs and we don't want to turn off translate everywhere
|
||||
--- a/components/translate/content/renderer/translate_helper.cc
|
||||
+++ b/components/translate/content/renderer/translate_helper.cc
|
||||
@@ -79,8 +79,7 @@ TranslateHelper::TranslateHelper(content
|
||||
@@ -78,8 +78,7 @@ TranslateHelper::TranslateHelper(content
|
||||
extension_scheme_(extension_scheme),
|
||||
binding_(this),
|
||||
weak_method_factory_(this) {
|
||||
|
||||
@@ -138,7 +138,7 @@
|
||||
NotifyExtensionsDownloadStageChanged(no_updates,
|
||||
ExtensionDownloaderDelegate::FINISHED);
|
||||
NotifyExtensionsDownloadFailed(
|
||||
@@ -1175,11 +1135,7 @@ bool ExtensionDownloader::IterateFetchCr
|
||||
@@ -1180,11 +1140,7 @@ bool ExtensionDownloader::IterateFetchCr
|
||||
// fetch.
|
||||
switch (fetch->credentials) {
|
||||
case ExtensionFetch::CREDENTIALS_NONE:
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
HandlerSigninReason reason = GetHandlerSigninReason(current_url_);
|
||||
if (reason == HandlerSigninReason::FETCH_LST_ONLY) {
|
||||
// Constants are only available on Windows for the Google Credential
|
||||
@@ -425,6 +426,7 @@ void InlineSigninHelper::OnClientOAuthSu
|
||||
@@ -419,6 +420,7 @@ void InlineSigninHelper::OnClientOAuthSu
|
||||
CreateSyncStarter(result.refresh_token);
|
||||
}
|
||||
base::ThreadTaskRunnerHandle::Get()->DeleteSoon(FROM_HERE, this);
|
||||
@@ -20,7 +20,7 @@
|
||||
void InlineSigninHelper::UntrustedSigninConfirmed(
|
||||
--- a/chrome/browser/ui/sync/one_click_signin_links_delegate_impl.cc
|
||||
+++ b/chrome/browser/ui/sync/one_click_signin_links_delegate_impl.cc
|
||||
@@ -17,11 +17,6 @@ OneClickSigninLinksDelegateImpl::OneClic
|
||||
@@ -16,9 +16,4 @@ OneClickSigninLinksDelegateImpl::OneClic
|
||||
OneClickSigninLinksDelegateImpl::~OneClickSigninLinksDelegateImpl() {}
|
||||
|
||||
void OneClickSigninLinksDelegateImpl::OnLearnMoreLinkClicked(bool is_dialog) {
|
||||
@@ -30,11 +30,9 @@
|
||||
- : WindowOpenDisposition::NEW_FOREGROUND_TAB;
|
||||
- Navigate(¶ms);
|
||||
}
|
||||
|
||||
void OneClickSigninLinksDelegateImpl::OnAdvancedLinkClicked() {
|
||||
--- a/chrome/browser/ui/BUILD.gn
|
||||
+++ b/chrome/browser/ui/BUILD.gn
|
||||
@@ -3029,8 +3029,6 @@ jumbo_split_static_library("ui") {
|
||||
@@ -3108,8 +3108,6 @@ jumbo_split_static_library("ui") {
|
||||
"views/sync/dice_bubble_sync_promo_view.h",
|
||||
"views/sync/dice_signin_button_view.cc",
|
||||
"views/sync/dice_signin_button_view.h",
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
--- a/chrome/browser/chrome_content_browser_client.cc
|
||||
+++ b/chrome/browser/chrome_content_browser_client.cc
|
||||
@@ -5193,20 +5193,7 @@ safe_browsing::UrlCheckerDelegate*
|
||||
@@ -5307,20 +5307,7 @@ safe_browsing::UrlCheckerDelegate*
|
||||
ChromeContentBrowserClient::GetSafeBrowsingUrlCheckerDelegate(
|
||||
content::ResourceContext* resource_context) {
|
||||
DCHECK_CURRENTLY_ON(BrowserThread::IO);
|
||||
@@ -61,7 +61,7 @@
|
||||
bool DownloadItemModel::ShouldRemoveFromShelfWhenComplete() const {
|
||||
--- a/chrome/browser/ui/views/safe_browsing/password_reuse_modal_warning_dialog.cc
|
||||
+++ b/chrome/browser/ui/views/safe_browsing/password_reuse_modal_warning_dialog.cc
|
||||
@@ -57,9 +57,7 @@ PasswordReuseModalWarningDialog::Passwor
|
||||
@@ -58,9 +58,7 @@ PasswordReuseModalWarningDialog::Passwor
|
||||
SetLayoutManager(std::make_unique<views::FillLayout>());
|
||||
|
||||
views::Label* message_body_label = new views::Label(
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/components/search_engines/prepopulated_engines.json
|
||||
+++ b/components/search_engines/prepopulated_engines.json
|
||||
@@ -106,22 +106,11 @@
|
||||
@@ -107,22 +107,11 @@
|
||||
},
|
||||
|
||||
"google": {
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
--- a/third_party/blink/renderer/devtools/BUILD.gn
|
||||
+++ b/third_party/blink/renderer/devtools/BUILD.gn
|
||||
@@ -1265,10 +1265,8 @@ action("generate_devtools_grd") {
|
||||
@@ -1274,10 +1274,8 @@ action("generate_devtools_grd") {
|
||||
devtools_embedder_scripts +
|
||||
[ "$resources_out_dir/devtools_extension_api.js" ]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user