update to version 65.0.3325.162

This commit is contained in:
Timothy Vaccarelli
2018-03-14 18:46:17 -04:00
parent ad7a2b7dad
commit c7e2962fe8
68 changed files with 2830 additions and 17735 deletions
File diff suppressed because it is too large Load Diff
@@ -1,9 +1,7 @@
inox-patchset/chromium-angle-r0.patch
inox-patchset/chromium-clang-r2.patch
inox-patchset/chromium-cups-r0.patch
inox-patchset/chromium-memcpy-r0.patch
inox-patchset/chromium-math.h-r0.patch
inox-patchset/chromium-stdint.patch
inox-patchset/chromium-exclude_unwind_tables.patch
inox-patchset/chromium-omnibox-unescape-fragment.patch
inox-patchset/chromium-skia-harmony.patch
inox-patchset/0001-fix-building-without-safebrowsing.patch
inox-patchset/0002-fix-building-without-reporting.patch
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -1,3 +1,3 @@
[version]
chromium_version = 64.0.3282.186
chromium_version = 65.0.3325.162
release_revision = 1
@@ -10,7 +10,6 @@ optimize_for_size=false
use_allocator="none"
use_cups=true
use_custom_libcxx=false
use_gconf=false
use_gold=true
use_gtk3=true
use_jumbo_build=true
@@ -1,6 +1,4 @@
inox-patchset/chromium-vaapi-move.patch
inox-patchset/chromium-vaapi-init.patch
inox-patchset/chromium-vaapi-rgbx.patch
inox-patchset/chromium-vaapi-init-r16.patch
inox-patchset/chromium-vaapi-r16.patch
debian/master-preferences.patch
@@ -1,4 +1,5 @@
is_clang=false
clang_base_path=getenv("CLANG_BASE_PATH")
clang_use_chrome_plugins=false
is_component_build=false
is_component_ffmpeg=true
link_pulseaudio=true
@@ -7,7 +8,6 @@ use_allocator="tcmalloc"
use_aura=true
use_cups=true
use_custom_libcxx=false
use_gconf=true
use_gold=true
use_gtk3=true
use_kerberos=false
@@ -1,11 +1,7 @@
inox-patchset/chromium-vaapi-move.patch
inox-patchset/chromium-vaapi-init.patch
inox-patchset/chromium-vaapi-rgbx.patch
inox-patchset/chromium-vaapi-init-r16.patch
inox-patchset/chromium-vaapi-r16.patch
opensuse/fix-network-api-crash.patch
opensuse/gcc60-fixes.patch
opensuse/master-preferences.patch
opensuse/bootstrap-gcc-fix.patch
opensuse/fix-kernel-user-namespace-crash.patch
opensuse/chromium-dma-buf.patch
+17
View File
@@ -0,0 +1,17 @@
Thanks for using ungoogled-chromium! You have downloaded a Linux build.
Before you run, you must setup your system so the browser's sandboxing will work. There are two options:
* Use the user namespace sandbox. This is the preferred option.
* Use the SUID sandbox. This should be used on systems that do not have support for user namespaces.
How to setup the SUID sandbox:
1. Rename "chrome_sandbox" to "chrome-sandbox"
2. Set the file mode to 4755
3. Set the group to root
How to setup the user namespace sandbox:
The kernel needs to be configured to allow user namespaces. The method to enable it varies per system. Sometimes it's enabled by default. If it's not, sometimes sysctl can be used to set kernel.unprivileged_userns_clone to 1. There may also be a way to set it via the /sys partition. Specific instructions should be found online.
Running the browser:
Once the sandbox is setup, the browser can be run by using the chrome-wrapper script.
+17
View File
@@ -0,0 +1,17 @@
#!/bin/bash
set -eux
# Simple build script for Linux
# Generally, utilikit configuration types using Clang read CLANG_BASE_PATH to determine the Clang installation path.
# If it needs to be changed, add "export CLANG_BASE_PATH=..." below or set it from outside the script.
true ${CLANG_BASE_PATH:=/usr} # http://www.tldp.org/LDP/abs/html/parameter-substitution.html
rm -rf out || true
mkdir out
mkdir $ungoog{build_output}
env QUILT_PATCHES=./ungoogled_packaging/patches quilt push -a
./tools/gn/bootstrap/bootstrap.py -o $ungoog{build_output}/gn -s -j 4
./$ungoog{build_output}/gn gen $ungoog{build_output} --args='$ungoog{gn_args_string}' --fail-on-unused-args
ninja -C $ungoog{build_output} chrome chrome_sandbox chromedriver
+22
View File
@@ -0,0 +1,22 @@
#!/bin/bash
set -eux
TARPREFIX=ungoogled-chromium_$ungoog{version_string}_linux
CURRENTDIR=$(dirname $(readlink -f $0))
# Assume buildspace tree is outside this script's directory
BUILDSPACE_TREE=$(dirname "$CURRENTDIR")
ARCHIVE_OUTPUT=$(dirname "$BUILDSPACE_TREE")/$TARPREFIX.tar
# Include main build outputs
pushd "$BUILDSPACE_TREE/$ungoog{build_output}"
"$CURRENTDIR/scripts/list_build_outputs.py" --platform linux --tree "$BUILDSPACE_TREE" --build-outputs '$ungoog{build_output}' | tar --transform "s,^,$TARPREFIX/," -c -v -f "$ARCHIVE_OUTPUT" --verbatim-files-from -T -
popd
# Include additional packaging files
pushd "$CURRENTDIR/archive_include"
find -type f -printf '%P\0' | tar --transform "s,^,$TARPREFIX/," -r -v -f "$ARCHIVE_OUTPUT" --null -T -
popd
rm -f "$ARCHIVE_OUTPUT".xz
xz -z "$ARCHIVE_OUTPUT"
@@ -4,7 +4,7 @@ bug-debian: http://bugs.debian.org/856571
--- a/chrome/browser/printing/cloud_print/privet_notifications.cc
+++ b/chrome/browser/printing/cloud_print/privet_notifications.cc
@@ -227,8 +227,7 @@ void PrivetNotificationService::DeviceCa
@@ -228,8 +228,7 @@
// static
bool PrivetNotificationService::IsEnabled() {
base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
+1 -1
View File
@@ -3,7 +3,7 @@ author: Michael Gilbert <mgilbert@debian.org>
--- a/content/shell/BUILD.gn
+++ b/content/shell/BUILD.gn
@@ -590,7 +590,7 @@ if (is_android) {
@@ -589,7 +589,7 @@
[ "//third_party/crashpad/crashpad/handler:crashpad_handler" ]
}
@@ -3,7 +3,7 @@ author: Michael Gilbert <mgilbert@debian.org>
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -698,8 +698,7 @@ group("gn_all") {
@@ -697,8 +697,7 @@
}
}
@@ -3,12 +3,12 @@ author: Michael Gilbert <mgilbert@debian.org>
--- a/chrome/browser/ui/startup/startup_browser_creator_impl.cc
+++ b/chrome/browser/ui/startup/startup_browser_creator_impl.cc
@@ -791,8 +791,6 @@ void StartupBrowserCreatorImpl::AddInfoB
!command_line_.HasSwitch(switches::kTestType) &&
!command_line_.HasSwitch(switches::kEnableAutomation)) {
@@ -797,8 +797,6 @@
chrome::ShowBadFlagsPrompt(browser);
- GoogleApiKeysInfoBarDelegate::Create(InfoBarService::FromWebContents(
- browser->tab_strip_model()->GetActiveWebContents()));
ObsoleteSystemInfoBarDelegate::Create(InfoBarService::FromWebContents(
browser->tab_strip_model()->GetActiveWebContents()));
InfoBarService* infobar_service = InfoBarService::FromWebContents(
browser->tab_strip_model()->GetActiveWebContents());
- if (!google_apis::HasKeysConfigured())
- GoogleApiKeysInfoBarDelegate::Create(infobar_service);
if (ObsoleteSystem::IsObsoleteNowOrSoon()) {
PrefService* local_state = g_browser_process->local_state();
if (!local_state ||
@@ -4,7 +4,7 @@ bug-debian: http://bugs.debian.org/857767
--- a/chrome/browser/profiles/profile_manager.cc
+++ b/chrome/browser/profiles/profile_manager.cc
@@ -1023,7 +1023,7 @@ void ProfileManager::InitProfileUserPref
@@ -1028,7 +1028,7 @@
profile->GetPrefs()->SetString(prefs::kSupervisedUserId,
supervised_user_id);
}
@@ -4,7 +4,7 @@ bug-debian: http://bugs.debian.org/781940
--- a/gpu/ipc/service/gpu_watchdog_thread.cc
+++ b/gpu/ipc/service/gpu_watchdog_thread.cc
@@ -43,7 +43,7 @@ const int kGpuTimeout = 30000;
@@ -42,7 +42,7 @@
// infected machines.
const int kGpuTimeout = 15000;
#else
+5 -5
View File
@@ -3,7 +3,7 @@ author: Michael Gilbert <mgilbert@debian.org>
--- a/content/shell/BUILD.gn
+++ b/content/shell/BUILD.gn
@@ -93,8 +93,6 @@ static_library("content_shell_lib") {
@@ -93,8 +93,6 @@
"browser/layout_test/layout_test_resource_dispatcher_host_delegate.h",
"browser/layout_test/layout_test_url_request_context_getter.cc",
"browser/layout_test/layout_test_url_request_context_getter.h",
@@ -12,7 +12,7 @@ author: Michael Gilbert <mgilbert@debian.org>
"browser/layout_test/secondary_test_window_observer.cc",
"browser/layout_test/secondary_test_window_observer.h",
"browser/layout_test/test_info_extractor.cc",
@@ -244,9 +242,7 @@ static_library("content_shell_lib") {
@@ -244,9 +242,7 @@
"//content/public/common",
"//content/public/common:service_names",
"//content/shell/test_runner:test_runner",
@@ -32,7 +32,7 @@ author: Michael Gilbert <mgilbert@debian.org>
#include "content/shell/browser/shell_browser_context.h"
#include "content/shell/common/layout_test/layout_test_switches.h"
#include "content/shell/common/shell_messages.h"
@@ -32,11 +31,6 @@ namespace {
@@ -32,11 +31,6 @@
LayoutTestContentBrowserClient* g_layout_test_browser_client;
@@ -44,7 +44,7 @@ author: Michael Gilbert <mgilbert@debian.org>
} // namespace
LayoutTestContentBrowserClient::LayoutTestContentBrowserClient() {
@@ -98,7 +92,6 @@ void LayoutTestContentBrowserClient::Exp
@@ -98,7 +92,6 @@
registry->AddInterface(base::Bind(&bluetooth::FakeBluetooth::Create),
ui_task_runner);
@@ -52,7 +52,7 @@ author: Michael Gilbert <mgilbert@debian.org>
}
void LayoutTestContentBrowserClient::OverrideWebkitPrefs(
@@ -192,7 +185,6 @@ bool LayoutTestContentBrowserClient::Can
@@ -193,7 +186,6 @@
void LayoutTestContentBrowserClient::ExposeInterfacesToFrame(
service_manager::BinderRegistryWithArgs<content::RenderFrameHost*>*
registry) {
+1 -1
View File
@@ -3,7 +3,7 @@ author: Michael Gilbert <mgilbert@debian.org>
--- a/tools/gn/bootstrap/bootstrap.py
+++ b/tools/gn/bootstrap/bootstrap.py
@@ -365,7 +365,7 @@ def write_gn_ninja(path, root_gen_dir, o
@@ -378,7 +378,7 @@
'-pipe',
'-fno-exceptions'
])
+2 -2
View File
@@ -3,7 +3,7 @@ author: Michael Gilbert <mgilbert@debian.org>
--- a/tools/gn/bootstrap/bootstrap.py
+++ b/tools/gn/bootstrap/bootstrap.py
@@ -115,6 +115,7 @@ def main(argv):
@@ -115,6 +115,7 @@
'relative to the src directory. (eg. out/Release)')
parser.add_option('-v', '--verbose', action='store_true',
help='Log more details')
@@ -11,7 +11,7 @@ author: Michael Gilbert <mgilbert@debian.org>
options, args = parser.parse_args(argv)
if args:
@@ -221,6 +222,8 @@ def build_gn_with_ninja_manually(tempdir
@@ -234,6 +235,8 @@
cmd = ['ninja', '-C', tempdir, '-w', 'dupbuild=err']
if options.verbose:
cmd.append('-v')
@@ -1,6 +1,6 @@
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -639,6 +639,7 @@ void SetApplicationLocaleOnIOThread(cons
@@ -645,6 +645,7 @@ void SetApplicationLocaleOnIOThread(cons
g_io_thread_application_locale.Get() = locale;
}
@@ -8,7 +8,7 @@
// An implementation of the SSLCertReporter interface used by
// SSLErrorHandler. Uses CertificateReportingService to send reports. The
// service handles queueing and re-sending of failed reports. Each certificate
@@ -654,7 +655,6 @@ class CertificateReportingServiceCertRep
@@ -660,7 +661,6 @@ class CertificateReportingServiceCertRep
// SSLCertReporter implementation
void ReportInvalidCertificateChain(
const std::string& serialized_report) override {
@@ -16,7 +16,7 @@
}
private:
@@ -662,6 +662,7 @@ class CertificateReportingServiceCertRep
@@ -668,6 +668,7 @@ class CertificateReportingServiceCertRep
DISALLOW_COPY_AND_ASSIGN(CertificateReportingServiceCertReporter);
};
@@ -24,7 +24,7 @@
#if defined(OS_ANDROID)
float GetDeviceScaleAdjustment() {
@@ -1752,7 +1753,7 @@ void ChromeContentBrowserClient::AppendE
@@ -1707,7 +1708,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) ||
@@ -33,16 +33,16 @@
command_line->AppendSwitch(
switches::kDisableClientSidePhishingDetection);
}
@@ -2361,7 +2362,7 @@ void ChromeContentBrowserClient::AllowCe
@@ -2304,7 +2305,7 @@ void ChromeContentBrowserClient::AllowCe
SSLErrorHandler::HandleSSLError(
web_contents, cert_error, ssl_info, request_url, strict_enforcement,
web_contents, cert_error, ssl_info, request_url,
expired_previous_decision,
- std::make_unique<CertificateReportingServiceCertReporter>(web_contents),
+ nullptr,
callback, SSLErrorHandler::BlockingPageReadyCallback());
}
@@ -2551,8 +2552,6 @@ bool ChromeContentBrowserClient::CanCrea
@@ -2535,8 +2536,6 @@ bool ChromeContentBrowserClient::CanCrea
void ChromeContentBrowserClient::ResourceDispatcherHostCreated() {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
@@ -69,7 +69,7 @@
#if defined(OS_WIN)
if (base::FeatureList::IsEnabled(features::kModuleDatabase)) {
// Add the ModuleEventSink interface. This is the interface used by renderer
@@ -3508,7 +3496,7 @@ ChromeContentBrowserClient::CreateThrott
@@ -3491,7 +3479,7 @@ ChromeContentBrowserClient::CreateThrott
switches::kCommittedInterstitials)) {
throttles.push_back(std::make_unique<SSLErrorNavigationThrottle>(
handle,
@@ -78,7 +78,7 @@
base::Bind(&SSLErrorHandler::HandleSSLError)));
}
@@ -3697,12 +3685,6 @@ ChromeContentBrowserClient::CreateURLLoa
@@ -3684,12 +3672,6 @@ ChromeContentBrowserClient::CreateURLLoa
std::vector<std::unique_ptr<content::URLLoaderThrottle>> result;
@@ -88,10 +88,10 @@
- if (safe_browsing_throttle)
- result.push_back(std::move(safe_browsing_throttle));
-
return result;
}
@@ -3781,18 +3763,3 @@ void ChromeContentBrowserClient::SetDefa
ChromeNavigationUIData* chrome_navigation_ui_data =
static_cast<ChromeNavigationUIData*>(navigation_ui_data);
if (chrome_navigation_ui_data &&
@@ -3872,18 +3854,3 @@ void ChromeContentBrowserClient::SetDefa
const storage::QuotaSettings* settings) {
g_default_quota_settings = settings;
}
@@ -112,7 +112,7 @@
-}
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -494,18 +494,6 @@ ProfileImpl::ProfileImpl(
@@ -480,18 +480,6 @@ ProfileImpl::ProfileImpl(
create_mode == CREATE_MODE_SYNCHRONOUS);
#endif
@@ -131,7 +131,7 @@
content::BrowserContext::Initialize(this, path_);
{
@@ -514,7 +502,7 @@ ProfileImpl::ProfileImpl(
@@ -500,7 +488,7 @@ ProfileImpl::ProfileImpl(
->CreateDelegate();
delegate->InitPrefRegistry(pref_registry_.get());
prefs_ = chrome_prefs::CreateProfilePrefs(
@@ -142,7 +142,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
@@ -406,8 +406,7 @@ void NotifyUIThreadOfRequestComplete(
@@ -417,8 +417,7 @@ void NotifyUIThreadOfRequestComplete(
} // namespace
ChromeResourceDispatcherHostDelegate::ChromeResourceDispatcherHostDelegate()
@@ -152,7 +152,7 @@
#if BUILDFLAG(ENABLE_EXTENSIONS)
, user_script_listener_(new extensions::UserScriptListener())
#endif
@@ -457,8 +456,6 @@ void ChromeResourceDispatcherHostDelegat
@@ -468,8 +467,6 @@ void ChromeResourceDispatcherHostDelegat
content::AppCacheService* appcache_service,
ResourceType resource_type,
std::vector<std::unique_ptr<content::ResourceThrottle>>* throttles) {
@@ -161,7 +161,7 @@
ProfileIOData* io_data = ProfileIOData::FromResourceContext(resource_context);
client_hints::RequestBeginning(request, io_data->GetCookieSettings());
@@ -644,13 +641,13 @@ void ChromeResourceDispatcherHostDelegat
@@ -642,13 +639,13 @@ void ChromeResourceDispatcherHostDelegat
content::ResourceThrottle* first_throttle = NULL;
#if defined(OS_ANDROID)
first_throttle = DataReductionProxyResourceThrottle::MaybeCreate(
@@ -179,7 +179,7 @@
--- a/chrome/browser/ui/webui/interstitials/interstitial_ui.cc
+++ b/chrome/browser/ui/webui/interstitials/interstitial_ui.cc
@@ -248,6 +248,7 @@ BadClockBlockingPage* CreateBadClockBloc
@@ -250,6 +250,7 @@ BadClockBlockingPage* CreateBadClockBloc
base::Callback<void(content::CertificateRequestResultType)>());
}
@@ -187,7 +187,7 @@
safe_browsing::SafeBrowsingBlockingPage* CreateSafeBrowsingBlockingPage(
content::WebContents* web_contents) {
safe_browsing::SBThreatType threat_type =
@@ -303,7 +304,9 @@ safe_browsing::SafeBrowsingBlockingPage*
@@ -305,7 +306,9 @@ safe_browsing::SafeBrowsingBlockingPage*
g_browser_process->safe_browsing_service()->ui_manager().get(),
web_contents, main_frame_url, resource);
}
@@ -197,7 +197,7 @@
TestSafeBrowsingBlockingPageQuiet* CreateSafeBrowsingQuietBlockingPage(
content::WebContents* web_contents) {
safe_browsing::SBThreatType threat_type =
@@ -351,6 +354,7 @@ TestSafeBrowsingBlockingPageQuiet* Creat
@@ -353,6 +356,7 @@ TestSafeBrowsingBlockingPageQuiet* Creat
g_browser_process->safe_browsing_service()->ui_manager().get(),
web_contents, main_frame_url, resource, is_giant_webview);
}
@@ -205,7 +205,7 @@
#if BUILDFLAG(ENABLE_CAPTIVE_PORTAL_DETECTION)
CaptivePortalBlockingPage* CreateCaptivePortalBlockingPage(
@@ -455,8 +459,6 @@ void InterstitialHTMLSource::StartDataRe
@@ -457,8 +461,6 @@ void InterstitialHTMLSource::StartDataRe
CreateSSLBlockingPage(web_contents, true /* is superfish */));
} else if (path_without_query == "/mitm-software-ssl") {
interstitial_delegate.reset(CreateMITMSoftwareBlockingPage(web_contents));
@@ -214,7 +214,7 @@
} else if (path_without_query == "/clock") {
interstitial_delegate.reset(CreateBadClockBlockingPage(web_contents));
#if BUILDFLAG(ENABLE_CAPTIVE_PORTAL_DETECTION)
@@ -467,11 +469,6 @@ void InterstitialHTMLSource::StartDataRe
@@ -469,11 +471,6 @@ void InterstitialHTMLSource::StartDataRe
if (path_without_query == "/supervised_user") {
html = GetSupervisedUserInterstitialHTML(path);
@@ -334,7 +334,7 @@
}
void ChromeDownloadManagerDelegate::Shutdown() {
@@ -556,16 +549,6 @@ download::InProgressCache* ChromeDownloa
@@ -555,16 +548,6 @@ download::InProgressCache* ChromeDownloa
void ChromeDownloadManagerDelegate::SanitizeSavePackageResourceName(
base::FilePath* filename) {
@@ -353,7 +353,7 @@
void ChromeDownloadManagerDelegate::OpenDownloadUsingPlatformHandler(
--- a/chrome/browser/browser_process_impl.cc
+++ b/chrome/browser/browser_process_impl.cc
@@ -71,7 +71,6 @@
@@ -70,7 +70,6 @@
#include "chrome/browser/printing/print_job_manager.h"
#include "chrome/browser/printing/print_preview_dialog_controller.h"
#include "chrome/browser/profiles/profile_manager.h"
@@ -361,15 +361,7 @@
#include "chrome/browser/shell_integration.h"
#include "chrome/browser/status_icons/status_tray.h"
#include "chrome/browser/ui/browser_dialogs.h"
@@ -220,7 +219,6 @@ BrowserProcessImpl::BrowserProcessImpl(
created_icon_manager_(false),
created_notification_ui_manager_(false),
created_notification_bridge_(false),
- created_safe_browsing_service_(false),
created_subresource_filter_ruleset_service_(false),
created_optimization_guide_service_(false),
shutting_down_(false),
@@ -309,8 +307,6 @@ void BrowserProcessImpl::StartTearDown()
@@ -295,8 +294,6 @@ void BrowserProcessImpl::StartTearDown()
// that URLFetcher operation before going away.)
metrics_services_manager_.reset();
intranet_redirect_detector_.reset();
@@ -378,7 +370,7 @@
network_time_tracker_.reset();
#if BUILDFLAG(ENABLE_PLUGINS)
plugins_resource_service_.reset();
@@ -922,22 +918,6 @@ StatusTray* BrowserProcessImpl::status_t
@@ -911,22 +908,6 @@ StatusTray* BrowserProcessImpl::status_t
return status_tray_.get();
}
@@ -401,7 +393,7 @@
subresource_filter::ContentRulesetService*
BrowserProcessImpl::subresource_filter_ruleset_service() {
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
@@ -1230,16 +1210,6 @@ void BrowserProcessImpl::CreateBackgroun
@@ -1219,16 +1200,6 @@ void BrowserProcessImpl::CreateBackgroun
#endif
}
@@ -420,7 +412,7 @@
created_subresource_filter_ruleset_service_ = true;
--- a/chrome/browser/browser_process_impl.h
+++ b/chrome/browser/browser_process_impl.h
@@ -134,9 +134,6 @@ class BrowserProcessImpl : public Browse
@@ -136,9 +136,6 @@ class BrowserProcessImpl : public Browse
void set_background_mode_manager_for_test(
std::unique_ptr<BackgroundModeManager> manager) override;
StatusTray* status_tray() override;
@@ -430,19 +422,19 @@
subresource_filter::ContentRulesetService*
subresource_filter_ruleset_service() override;
optimization_guide::OptimizationGuideService* optimization_guide_service()
@@ -269,9 +266,6 @@ class BrowserProcessImpl : public Browse
@@ -274,9 +271,6 @@ class BrowserProcessImpl : public Browse
std::unique_ptr<BackgroundModeManager> background_mode_manager_;
#endif
- bool created_safe_browsing_service_;
- bool created_safe_browsing_service_ = false;
- scoped_refptr<safe_browsing::SafeBrowsingService> safe_browsing_service_;
-
bool created_subresource_filter_ruleset_service_;
bool created_subresource_filter_ruleset_service_ = false;
std::unique_ptr<subresource_filter::ContentRulesetService>
subresource_filter_ruleset_service_;
--- a/chrome/browser/browser_process.h
+++ b/chrome/browser/browser_process.h
@@ -46,10 +46,6 @@ namespace content {
@@ -48,10 +48,6 @@ namespace content {
class NetworkConnectionTracker;
}
@@ -453,7 +445,7 @@
namespace subresource_filter {
class ContentRulesetService;
}
@@ -126,10 +122,6 @@ namespace resource_coordinator {
@@ -128,10 +124,6 @@ namespace resource_coordinator {
class TabManager;
}
@@ -464,7 +456,7 @@
// NOT THREAD SAFE, call only from the main thread.
// These functions shouldn't return NULL unless otherwise noted.
class BrowserProcess {
@@ -250,14 +242,6 @@ class BrowserProcess {
@@ -254,14 +246,6 @@ class BrowserProcess {
// on this platform (or this is a unit test).
virtual StatusTray* status_tray() = 0;
@@ -529,7 +521,7 @@
#include "chrome/browser/download/download_history.h"
#include "chrome/browser/download/download_item_model.h"
#include "chrome/browser/download/download_prefs.h"
@@ -194,34 +193,6 @@ void MdDownloadsDOMHandler::HandleDrag(c
@@ -195,34 +194,6 @@ void MdDownloadsDOMHandler::HandleDrag(c
void MdDownloadsDOMHandler::HandleSaveDangerous(const base::ListValue* args) {
CountDownloadsDOMEvents(DOWNLOADS_DOM_EVENT_SAVE_DANGEROUS);
@@ -564,7 +556,7 @@
}
void MdDownloadsDOMHandler::HandleDiscardDangerous(
@@ -323,12 +294,6 @@ void MdDownloadsDOMHandler::RemoveDownlo
@@ -324,12 +295,6 @@ void MdDownloadsDOMHandler::RemoveDownlo
IdSet ids;
for (auto* download : to_remove) {
@@ -577,7 +569,7 @@
DownloadItemModel item_model(download);
if (!item_model.ShouldShowInShelf() ||
download->GetState() == content::DownloadItem::IN_PROGRESS) {
@@ -381,33 +346,6 @@ void MdDownloadsDOMHandler::FinalizeRemo
@@ -382,33 +347,6 @@ void MdDownloadsDOMHandler::FinalizeRemo
}
}
@@ -740,7 +732,7 @@
extension.erase(0, 1);
--- a/chrome/browser/component_updater/file_type_policies_component_installer.cc
+++ b/chrome/browser/component_updater/file_type_policies_component_installer.cc
@@ -38,20 +38,6 @@ const uint8_t kPublicKeySHA256[32] = {
@@ -38,20 +38,6 @@ const uint8_t kFileTypePoliciesPublicKey
const char kFileTypePoliciesManifestName[] = "File Type Policies";
void LoadFileTypesFromDisk(const base::FilePath& pb_path) {
@@ -796,7 +788,7 @@
void DownloadTargetDeterminer::OnDownloadDestroyed(
--- a/chrome/browser/permissions/permission_uma_util.cc
+++ b/chrome/browser/permissions/permission_uma_util.cc
@@ -498,8 +498,6 @@ void PermissionUmaUtil::RecordPermission
@@ -423,8 +423,6 @@ void PermissionUmaUtil::RecordPermission
requesting_origin, permission, action, source_ui, gesture_type,
autoblocker->GetDismissCount(requesting_origin, permission),
autoblocker->GetIgnoreCount(requesting_origin, permission));
@@ -819,7 +811,7 @@
return !download_item_->IsDone();
--- a/chrome/browser/BUILD.gn
+++ b/chrome/browser/BUILD.gn
@@ -2349,8 +2349,6 @@ split_static_library("browser") {
@@ -2388,8 +2388,6 @@ split_static_library("browser") {
"download/download_commands.h",
"download/download_crx_util.cc",
"download/download_crx_util.h",
@@ -830,7 +822,7 @@
"download/download_dir_util.cc",
--- a/chrome/browser/ui/BUILD.gn
+++ b/chrome/browser/ui/BUILD.gn
@@ -2047,7 +2047,6 @@ split_static_library("ui") {
@@ -2070,7 +2070,6 @@ split_static_library("ui") {
"cocoa/dialog_text_field_editor.mm",
"cocoa/download/background_theme.h",
"cocoa/download/background_theme.mm",
@@ -838,7 +830,7 @@
"cocoa/download/download_item_button.h",
"cocoa/download/download_item_button.mm",
"cocoa/download/download_item_cell.h",
@@ -2707,7 +2706,6 @@ split_static_library("ui") {
@@ -2723,7 +2722,6 @@ split_static_library("ui") {
"views/cookie_info_view.h",
"views/device_chooser_content_view.cc",
"views/device_chooser_content_view.h",
@@ -848,7 +840,7 @@
"views/exclusive_access_bubble_views.cc",
--- a/chrome/browser/ssl/security_state_tab_helper.cc
+++ b/chrome/browser/ssl/security_state_tab_helper.cc
@@ -180,6 +180,7 @@ bool SecurityStateTabHelper::UsedPolicyI
@@ -208,6 +208,7 @@ bool SecurityStateTabHelper::UsedPolicyI
security_state::MaliciousContentStatus
SecurityStateTabHelper::GetMaliciousContentStatus() const {
@@ -856,7 +848,7 @@
content::NavigationEntry* entry =
web_contents()->GetController().GetVisibleEntry();
if (!entry)
@@ -235,6 +236,7 @@ SecurityStateTabHelper::GetMaliciousCont
@@ -263,6 +264,7 @@ SecurityStateTabHelper::GetMaliciousCont
break;
}
}
@@ -866,7 +858,19 @@
--- a/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc
+++ b/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc
@@ -720,40 +720,6 @@ void ChromeBrowsingDataRemoverDelegate::
@@ -265,11 +265,6 @@ void ClearNetworkErrorLoggingOnIOThread(
net::URLRequestContextGetter* context,
const base::RepeatingCallback<bool(const GURL&)>& origin_filter) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
-
- net::NetworkErrorLoggingDelegate* delegate =
- context->GetURLRequestContext()->network_error_logging_delegate();
- if (delegate)
- delegate->RemoveBrowsingData(origin_filter);
}
#if defined(OS_ANDROID)
@@ -745,40 +740,6 @@ void ChromeBrowsingDataRemoverDelegate::
CONTENT_SETTINGS_TYPE_CLIENT_HINTS, base::Time(),
base::Bind(&WebsiteSettingsFilterAdapter, filter));
@@ -934,7 +938,7 @@
// Whether a web notification should be displayed when chrome is in full
// screen mode.
@@ -516,13 +516,6 @@ PlatformNotificationServiceImpl::CreateN
@@ -512,13 +512,6 @@ PlatformNotificationServiceImpl::CreateN
notification.set_type(message_center::NOTIFICATION_TYPE_IMAGE);
notification.set_image(
gfx::Image::CreateFrom1xBitmap(notification_resources.image));
@@ -1012,7 +1016,7 @@
#include "chrome/browser/sync/chrome_sync_client.h"
#include "chrome/browser/sync/profile_sync_service_factory.h"
#include "chrome/browser/translate/translate_ranker_metrics_provider.h"
@@ -699,9 +698,6 @@ void ChromeMetricsServiceClient::Registe
@@ -685,9 +684,6 @@ void ChromeMetricsServiceClient::Registe
metrics_service_->RegisterMetricsProvider(
base::MakeUnique<HttpsEngagementMetricsProvider>());
@@ -1038,7 +1042,7 @@
// WebContentsObserver implementation. Sets a flag so that when the database
--- a/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc
+++ b/chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc
@@ -214,7 +214,6 @@ EnsureBrowserContextKeyedServiceFactorie
@@ -217,7 +217,6 @@ EnsureBrowserContextKeyedServiceFactorie
#if BUILDFLAG(ENABLE_CAPTIVE_PORTAL_DETECTION)
CaptivePortalServiceFactory::GetInstance();
#endif
@@ -1048,48 +1052,30 @@
#endif
--- a/chrome/browser/ssl/captive_portal_blocking_page.cc
+++ b/chrome/browser/ssl/captive_portal_blocking_page.cc
@@ -85,13 +85,6 @@ CaptivePortalBlockingPage::CaptivePortal
login_url_(login_url),
ssl_info_(ssl_info),
callback_(callback) {
- if (ssl_cert_reporter) {
- cert_report_helper_.reset(new CertReportHelper(
- std::move(ssl_cert_reporter), web_contents, request_url, ssl_info,
- certificate_reporting::ErrorReport::INTERSTITIAL_CAPTIVE_PORTAL, false,
- base::Time::Now(), nullptr));
- }
-
captive_portal::CaptivePortalMetrics::LogCaptivePortalBlockingPageEvent(
captive_portal::CaptivePortalMetrics::SHOW_ALL);
}
@@ -209,10 +202,7 @@ void CaptivePortalBlockingPage::Populate
@@ -206,10 +206,7 @@ void CaptivePortalBlockingPage::Populate
load_time_data->SetString("explanationParagraph", base::string16());
load_time_data->SetString("finalParagraph", base::string16());
- if (cert_report_helper_)
- cert_report_helper_->PopulateExtendedReportingOption(load_time_data);
- if (cert_report_helper())
- cert_report_helper()->PopulateExtendedReportingOption(load_time_data);
- else
- load_time_data->SetBoolean(security_interstitials::kDisplayCheckBox, false);
+ load_time_data->SetBoolean(security_interstitials::kDisplayCheckBox, false);
}
void CaptivePortalBlockingPage::CommandReceived(const std::string& command) {
@@ -287,12 +277,6 @@ void CaptivePortalBlockingPage::OnProcee
void CaptivePortalBlockingPage::OnDontProceed() {
UpdateMetricsAfterSecurityInterstitial();
- if (cert_report_helper_) {
- // Finish collecting information about invalid certificates, if the
- // user opted in to.
- cert_report_helper_->FinishCertCollection(
- certificate_reporting::ErrorReport::USER_DID_NOT_PROCEED);
- }
// Need to explicity deny the certificate via the callback, otherwise memory
// is leaked.
@@ -224,8 +221,6 @@ void CaptivePortalBlockingPage::CommandR
security_interstitials::SecurityInterstitialCommand cmd =
static_cast<security_interstitials::SecurityInterstitialCommand>(
command_num);
- cert_report_helper()->HandleReportingCommands(cmd,
- controller()->GetPrefService());
switch (cmd) {
case security_interstitials::CMD_OPEN_LOGIN:
captive_portal::CaptivePortalMetrics::LogCaptivePortalBlockingPageEvent(
--- a/chrome/browser/ssl/cert_report_helper.cc
+++ b/chrome/browser/ssl/cert_report_helper.cc
@@ -153,8 +153,6 @@ void CertReportHelper::FinishCertCollect
@@ -183,8 +183,6 @@ void CertReportHelper::FinishCertCollect
LOG(ERROR) << "Failed to serialize certificate report.";
return;
}
@@ -1097,10 +1083,10 @@
- ssl_cert_reporter_->ReportInvalidCertificateChain(serialized_report);
}
void CertReportHelper::SetSSLCertReporterForTesting(
bool CertReportHelper::ShouldShowCertificateReporterCheckbox() {
--- a/chrome/browser/ui/tab_helpers.cc
+++ b/chrome/browser/ui/tab_helpers.cc
@@ -288,11 +288,6 @@ void TabHelpers::AttachTabHelpers(WebCon
@@ -292,11 +292,6 @@ void TabHelpers::AttachTabHelpers(WebCon
new ChromePDFWebContentsHelperClient()));
PluginObserver::CreateForWebContents(web_contents);
SadTabHelper::CreateForWebContents(web_contents);
@@ -1111,7 +1097,7 @@
- profile, web_contents);
SearchTabHelper::CreateForWebContents(web_contents);
if (base::FeatureList::IsEnabled(features::kTabMetricsLogging))
TabActivityWatcher::WatchWebContents(web_contents);
resource_coordinator::TabActivityWatcher::WatchWebContents(web_contents);
--- a/chrome/browser/permissions/permission_decision_auto_blocker.cc
+++ b/chrome/browser/permissions/permission_decision_auto_blocker.cc
@@ -18,7 +18,6 @@
@@ -1175,7 +1161,7 @@
void ChromeSubresourceFilterClient::OnReloadRequested() {
--- a/chrome/browser/extensions/webstore_inline_installer.cc
+++ b/chrome/browser/extensions/webstore_inline_installer.cc
@@ -115,85 +115,10 @@ bool WebstoreInlineInstaller::IsRequesto
@@ -116,7 +116,7 @@ bool WebstoreInlineInstaller::IsRequesto
}
bool WebstoreInlineInstaller::SafeBrowsingNavigationEventsEnabled() const {
@@ -1183,85 +1169,39 @@
+ return false;
}
std::string WebstoreInlineInstaller::GetPostData(
@@ -248,6 +248,7 @@ void WebstoreInlineInstaller::WebContent
}
std::string WebstoreInlineInstaller::GetJsonPostData() {
- // web_contents() might return null during tab destruction. This object would
- // also be destroyed shortly thereafter but check to be on the safe side.
- if (!web_contents())
- return std::string();
-
- // Report extra data only when SafeBrowsing is enabled for the current
- // profile.
- if (!profile()->GetPrefs()->GetBoolean(prefs::kSafeBrowsingEnabled))
- return std::string();
-
- auto redirect_chain = base::MakeUnique<base::ListValue>();
-
- if (SafeBrowsingNavigationEventsEnabled()) {
- // If we have it, use the new referrer checker.
- safe_browsing::SafeBrowsingService* safe_browsing_service =
- g_browser_process->safe_browsing_service();
- // May be null in some tests.
- if (!safe_browsing_service)
- return std::string();
-
- scoped_refptr<SafeBrowsingNavigationObserverManager>
- navigation_observer_manager =
- safe_browsing_service->navigation_observer_manager();
- // This may be null if the navigation observer manager feature is
- // disabled by experiment.
- if (!navigation_observer_manager)
- return std::string();
-
- ReferrerChain referrer_chain;
- SafeBrowsingNavigationObserverManager::AttributionResult result =
- navigation_observer_manager->IdentifyReferrerChainByWebContents(
- web_contents(), kExtensionReferrerUserGestureLimit,
- &referrer_chain);
- if (result !=
- SafeBrowsingNavigationObserverManager::NAVIGATION_EVENT_NOT_FOUND) {
- // For now the CWS post data is JSON encoded. Consider moving it to a
- // proto.
- for (const auto& referrer_chain_entry : referrer_chain) {
- // Referrer chain entries are a list of URLs in reverse chronological
- // order, so the final URL is the last thing in the list and the initial
- // landing page is the first thing in the list.
- // Furthermore each entry may contain a series of server redirects
- // stored in the same order.
- redirect_chain->AppendString(referrer_chain_entry.url());
- for (const auto& server_side_redirect :
- referrer_chain_entry.server_redirect_chain()) {
- redirect_chain->AppendString(server_side_redirect.url());
- }
- }
- }
- } else {
- content::NavigationController& navigation_controller =
- web_contents()->GetController();
- content::NavigationEntry* navigation_entry =
- navigation_controller.GetLastCommittedEntry();
- if (navigation_entry) {
- const std::vector<GURL>& redirect_urls =
- navigation_entry->GetRedirectChain();
- for (const GURL& url : redirect_urls) {
- redirect_chain->AppendString(url.spec());
- }
- }
- }
-
- if (!redirect_chain->empty()) {
- base::DictionaryValue dictionary;
- dictionary.SetString("id", id());
- dictionary.SetString("referrer", requestor_url_.spec());
- dictionary.Set("redirect_chain", std::move(redirect_chain));
-
- std::string json;
- base::JSONWriter::Write(dictionary, &json);
- return json;
- }
-
+#if 0
auto redirect_chain = base::MakeUnique<base::ListValue>();
if (SafeBrowsingNavigationEventsEnabled()) {
@@ -299,11 +300,13 @@ std::string WebstoreInlineInstaller::Get
base::JSONWriter::Write(dictionary, &json);
return json;
}
+#endif
return std::string();
}
std::string WebstoreInlineInstaller::GetProtoPostData() {
+#if 0
if (!SafeBrowsingNavigationEventsEnabled())
return std::string();
@@ -330,6 +333,9 @@ std::string WebstoreInlineInstaller::Get
recent_navigations_to_collect);
return request.SerializeAsString();
+#endif
+
+ return std::string();
}
// static
--- a/chrome/browser/safe_browsing/BUILD.gn
+++ b/chrome/browser/safe_browsing/BUILD.gn
@@ -12,6 +12,11 @@ proto_library("chunk_proto") {
@@ -1286,7 +1226,7 @@
# "Safe Browsing Basic" files used for safe browsing in full mode
--- a/chrome/browser/net/system_network_context_manager.cc
+++ b/chrome/browser/net/system_network_context_manager.cc
@@ -50,17 +50,11 @@ content::mojom::NetworkContextParamsPtr
@@ -32,18 +32,12 @@ namespace {
// Called on IOThread to disable QUIC for HttpNetworkSessions not using the
// network service. Note that re-enabling QUIC dynamically is not supported for
// simpliciy and requires a browser restart.
@@ -1296,7 +1236,8 @@
+void DisableQuicOnIOThread(IOThread* io_thread) {
DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
// Disable QUIC for HttpNetworkSessions using IOThread's NetworkService.
if (!base::FeatureList::IsEnabled(features::kNetworkService))
content::GetNetworkServiceImpl()->DisableQuic();
io_thread->DisableQuic();
-
- // Safebrowsing isn't yet using the IOThread's NetworkService, so must be
@@ -1305,7 +1246,7 @@
}
} // namespace
@@ -132,11 +126,7 @@ void SystemNetworkContextManager::Disabl
@@ -122,13 +116,9 @@ void SystemNetworkContextManager::Disabl
if (!io_thread)
return;
@@ -1318,9 +1259,11 @@
- base::Unretained(safe_browsing_service)));
+ base::BindOnce(&DisableQuicOnIOThread, io_thread));
}
void SystemNetworkContextManager::FlushProxyConfigMonitorForTesting() {
--- a/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc
@@ -405,9 +405,8 @@ void AddBluetoothStrings(content::WebUID
@@ -427,9 +427,8 @@ void AddBluetoothStrings(content::WebUID
#endif
void AddChangePasswordStrings(content::WebUIDataSource* html_source) {
@@ -1340,18 +1283,17 @@
#include "chrome/renderer/prerender/prerenderer_client.h"
-#include "chrome/renderer/safe_browsing/phishing_classifier_delegate.h"
#include "chrome/renderer/tts_dispatcher.h"
#include "chrome/renderer/url_loader_throttle_provider_impl.h"
#include "chrome/renderer/worker_content_settings_client.h"
#include "components/autofill/content/renderer/autofill_agent.h"
@@ -79,8 +78,6 @@
@@ -79,7 +78,6 @@
#include "components/error_page/common/localized_error.h"
#include "components/network_hints/renderer/prescient_networking_dispatcher.h"
#include "components/password_manager/content/renderer/credential_manager_client.h"
#include "components/pdf/renderer/pepper_pdf_host.h"
-#include "components/safe_browsing/renderer/renderer_url_loader_throttle.h"
-#include "components/safe_browsing/renderer/threat_dom_details.h"
#include "components/safe_browsing/renderer/websocket_sb_handshake_throttle.h"
#include "components/spellcheck/spellcheck_build_features.h"
#include "components/startup_metric_utils/common/startup_metric.mojom.h"
@@ -449,9 +446,6 @@ void ChromeContentRendererClient::Render
@@ -448,9 +446,6 @@ void ChromeContentRendererClient::Render
thread->AddObserver(spellcheck_.get());
}
#endif
@@ -1361,7 +1303,7 @@
prerender_dispatcher_.reset(new prerender::PrerenderDispatcher());
subresource_filter_ruleset_dealer_.reset(
new subresource_filter::UnverifiedRulesetDealer());
@@ -566,10 +560,6 @@ void ChromeContentRendererClient::Render
@@ -564,10 +559,6 @@ void ChromeContentRendererClient::Render
new nacl::NaClHelper(render_frame);
#endif
@@ -1372,24 +1314,7 @@
#if BUILDFLAG(ENABLE_PRINTING)
new printing::PrintRenderFrameHelper(
render_frame, base::MakeUnique<ChromePrintRenderFrameHelperDelegate>());
@@ -1316,16 +1306,6 @@ bool ChromeContentRendererClient::WillSe
const blink::WebURL& url,
std::vector<std::unique_ptr<content::URLLoaderThrottle>>* throttles,
GURL* new_url) {
- if (base::FeatureList::IsEnabled(features::kNetworkService)) {
- InitSafeBrowsingIfNecessary();
- RenderFrame* render_frame = content::RenderFrame::FromWebFrame(frame);
- int render_frame_id =
- render_frame ? render_frame->GetRoutingID() : MSG_ROUTING_NONE;
- throttles->push_back(
- base::MakeUnique<safe_browsing::RendererURLLoaderThrottle>(
- safe_browsing_.get(), render_frame_id));
- }
-
// Check whether the request should be allowed. If not allowed, we reset the
// URL to something invalid to prevent the request and cause an error.
#if BUILDFLAG(ENABLE_EXTENSIONS)
@@ -1423,9 +1403,7 @@ bool ChromeContentRendererClient::IsExte
@@ -1394,9 +1385,7 @@ bool ChromeContentRendererClient::IsExte
std::unique_ptr<blink::WebSocketHandshakeThrottle>
ChromeContentRendererClient::CreateWebSocketHandshakeThrottle() {
@@ -1400,7 +1325,7 @@
}
std::unique_ptr<blink::WebSpeechSynthesizer>
@@ -1717,13 +1695,6 @@ ChromeContentRendererClient::GetTaskSche
@@ -1688,13 +1677,6 @@ ChromeContentRendererClient::GetTaskSche
GetRendererTaskSchedulerInitParamsFromCommandLine();
}
@@ -1435,17 +1360,17 @@
namespace subresource_filter {
class UnverifiedRulesetDealer;
}
@@ -255,9 +250,6 @@ class ChromeContentRendererClient
@@ -263,9 +258,6 @@ class ChromeContentRendererClient
void GetInterface(const std::string& name,
mojo::ScopedMessagePipeHandle request_handle) override;
- // Initialises |safe_browsing_| if it is not already initialised.
- void InitSafeBrowsingIfNecessary();
-
void GetNavigationErrorStringsInternal(
content::RenderFrame* render_frame,
const blink::WebURLRequest& failed_request,
@@ -289,12 +281,9 @@ class ChromeContentRendererClient
void PrepareErrorPageInternal(content::RenderFrame* render_frame,
const blink::WebURLRequest& failed_request,
const error_page::Error& error,
@@ -296,12 +288,9 @@ class ChromeContentRendererClient
ChromeKeySystemsProvider key_systems_provider_;
@@ -14,7 +14,7 @@
#include "chrome/browser/ui/webui/print_preview/privet_printer_handler.h"
--- a/content/browser/net/reporting_service_proxy.cc
+++ b/content/browser/net/reporting_service_proxy.cc
@@ -97,6 +97,7 @@ class ReportingServiceProxyImpl : public
@@ -102,6 +102,7 @@ class ReportingServiceProxyImpl : public
const std::string& group,
const std::string& type,
std::unique_ptr<base::Value> body) {
@@ -22,7 +22,7 @@
net::URLRequestContext* request_context =
request_context_getter_->GetURLRequestContext();
if (!request_context) {
@@ -112,6 +113,7 @@ class ReportingServiceProxyImpl : public
@@ -117,6 +118,7 @@ class ReportingServiceProxyImpl : public
}
reporting_service->QueueReport(url, group, type, std::move(body));
@@ -32,7 +32,7 @@
scoped_refptr<net::URLRequestContextGetter> request_context_getter_;
--- a/chrome/browser/profiles/profile_impl_io_data.h
+++ b/chrome/browser/profiles/profile_impl_io_data.h
@@ -182,6 +182,7 @@ class ProfileImplIOData : public Profile
@@ -177,6 +177,7 @@ class ProfileImplIOData : public Profile
const StoragePartitionDescriptor& partition_descriptor) const override;
chrome_browser_net::Predictor* GetPredictor() override;
@@ -40,7 +40,7 @@
// Returns a net::ReportingService, if reporting should be enabled. Otherwise,
// returns nullptr.
// TODO(mmenke): Remove once URLRequestContextBuilders are always used to
@@ -192,6 +193,7 @@ class ProfileImplIOData : public Profile
@@ -187,6 +188,7 @@ class ProfileImplIOData : public Profile
// Returns a net::ReportingPolicy, if reporting should be enabled. Otherwise,
// returns nullptr.
static std::unique_ptr<net::ReportingPolicy> MaybeCreateReportingPolicy();
@@ -50,7 +50,7 @@
mutable std::unique_ptr<LazyParams> lazy_params_;
--- a/chrome/browser/profiles/profile_impl_io_data.cc
+++ b/chrome/browser/profiles/profile_impl_io_data.cc
@@ -472,7 +472,9 @@ void ProfileImplIOData::InitializeIntern
@@ -480,7 +480,9 @@ void ProfileImplIOData::InitializeIntern
builder, std::move(request_interceptors),
std::move(profile_params->protocol_handler_interceptor));
@@ -60,7 +60,7 @@
}
void ProfileImplIOData::OnMainRequestContextCreated(
@@ -608,7 +610,9 @@ net::URLRequestContext* ProfileImplIODat
@@ -615,7 +617,9 @@ net::URLRequestContext* ProfileImplIODat
context->host_resolver()));
context->SetJobFactory(std::move(top_job_factory));
@@ -70,7 +70,7 @@
return context;
}
@@ -698,6 +702,7 @@ chrome_browser_net::Predictor* ProfileIm
@@ -705,6 +709,7 @@ chrome_browser_net::Predictor* ProfileIm
return predictor_.get();
}
@@ -78,14 +78,14 @@
std::unique_ptr<net::ReportingService>
ProfileImplIOData::MaybeCreateReportingService(
net::URLRequestContext* url_request_context) const {
@@ -716,3 +721,4 @@ ProfileImplIOData::MaybeCreateReportingP
@@ -723,3 +728,4 @@ ProfileImplIOData::MaybeCreateReportingP
return base::MakeUnique<net::ReportingPolicy>();
}
+#endif
--- a/chrome/browser/profiles/profile_io_data.cc
+++ b/chrome/browser/profiles/profile_io_data.cc
@@ -638,7 +638,9 @@
@@ -637,7 +637,9 @@ void ProfileIOData::AppRequestContext::S
void ProfileIOData::AppRequestContext::SetReportingService(
std::unique_ptr<net::ReportingService> reporting_service) {
reporting_service_ = std::move(reporting_service);
@@ -97,7 +97,7 @@
ProfileIOData::AppRequestContext::~AppRequestContext() {
--- a/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc
+++ b/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc
@@ -252,10 +252,12 @@
@@ -255,10 +255,12 @@ void ClearReportingCacheOnIOThread(
const base::Callback<bool(const GURL&)>& origin_filter) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
@@ -109,4 +109,4 @@
+#endif
}
#if defined(OS_ANDROID)
void ClearNetworkErrorLoggingOnIOThread(
@@ -10,41 +10,19 @@
}
std::ostream& operator<<(std::ostream& out,
@@ -299,37 +298,6 @@ bool AutofillDownloadManager::StartUploa
@@ -299,6 +298,7 @@ bool AutofillDownloadManager::StartUploa
bool AutofillDownloadManager::StartRequest(
const FormRequestData& request_data) {
- net::URLRequestContextGetter* request_context =
- driver_->GetURLRequestContext();
- DCHECK(request_context);
- GURL request_url = GetRequestUrl(request_data.request_type);
-
- // Id is ignored for regular chrome, in unit test id's for fake fetcher
- // factory will be 0, 1, 2, ...
- std::unique_ptr<net::URLFetcher> owned_fetcher = net::URLFetcher::Create(
- fetcher_id_for_unittest_++, request_url, net::URLFetcher::POST, this,
- GetNetworkTrafficAnnotation(request_data.request_type));
- net::URLFetcher* fetcher = owned_fetcher.get();
- data_use_measurement::DataUseUserData::AttachToFetcher(
- fetcher, data_use_measurement::DataUseUserData::AUTOFILL);
- url_fetchers_[fetcher] =
- std::make_pair(std::move(owned_fetcher), request_data);
- fetcher->SetAutomaticallyRetryOn5xx(false);
- fetcher->SetRequestContext(request_context);
- fetcher->SetUploadData("text/proto", request_data.payload);
- fetcher->SetLoadFlags(net::LOAD_DO_NOT_SAVE_COOKIES |
- net::LOAD_DO_NOT_SEND_COOKIES);
- // Add Chrome experiment state to the request headers.
- net::HttpRequestHeaders headers;
- // Note: It's OK to pass |is_signed_in| false if it's unknown, as it does
- // not affect transmission of experiments coming from the variations server.
- bool is_signed_in = false;
- variations::AppendVariationHeaders(fetcher->GetOriginalURL(),
- driver_->IsIncognito(), false,
- is_signed_in, &headers);
- fetcher->SetExtraRequestHeaders(headers.ToString());
- fetcher->Start();
-
+#if 0
net::URLRequestContextGetter* request_context =
driver_->GetURLRequestContext();
DCHECK(request_context);
@@ -330,6 +330,7 @@ bool AutofillDownloadManager::StartReque
variations::SignedIn::kNo, &headers);
fetcher->SetExtraRequestHeaders(headers.ToString());
fetcher->Start();
+#endif
return true;
}
@@ -1,6 +1,6 @@
--- a/chrome/browser/extensions/component_loader.cc
+++ b/chrome/browser/extensions/component_loader.cc
@@ -422,11 +422,6 @@ void ComponentLoader::AddWebStoreApp() {
@@ -421,11 +421,6 @@ void ComponentLoader::AddWebStoreApp() {
if (!IsNormalSession())
return;
#endif
@@ -12,7 +12,7 @@
}
scoped_refptr<const Extension> ComponentLoader::CreateExtension(
@@ -481,11 +476,6 @@ void ComponentLoader::AddDefaultComponen
@@ -480,11 +475,6 @@ void ComponentLoader::AddDefaultComponen
Add(IDR_BOOKMARKS_MANIFEST,
base::FilePath(FILE_PATH_LITERAL("bookmark_manager")));
}
@@ -24,7 +24,7 @@
#endif // defined(OS_CHROMEOS)
if (!skip_session_components) {
@@ -561,13 +551,6 @@ void ComponentLoader::AddDefaultComponen
@@ -560,13 +550,6 @@ void ComponentLoader::AddDefaultComponen
AddHangoutServicesExtension();
AddImageLoaderExtension();
@@ -1,6 +1,6 @@
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -879,7 +879,7 @@ void ChromeContentBrowserClient::Registe
@@ -859,7 +859,7 @@ void ChromeContentBrowserClient::Registe
void ChromeContentBrowserClient::RegisterProfilePrefs(
user_prefs::PrefRegistrySyncable* registry) {
registry->RegisterBooleanPref(prefs::kDisable3DAPIs, false);
@@ -82,7 +82,7 @@
--- a/components/autofill/core/browser/autofill_manager.cc
+++ b/components/autofill/core/browser/autofill_manager.cc
@@ -217,7 +217,7 @@ void AutofillManager::RegisterProfilePre
@@ -216,7 +216,7 @@ void AutofillManager::RegisterProfilePre
registry->RegisterIntegerPref(
prefs::kAutofillCreditCardSigninPromoImpressionCount, 0);
registry->RegisterBooleanPref(
@@ -104,7 +104,7 @@
</dialog>
--- a/chrome/browser/io_thread.cc
+++ b/chrome/browser/io_thread.cc
@@ -612,7 +612,7 @@ void IOThread::RegisterPrefs(PrefRegistr
@@ -620,7 +620,7 @@ void IOThread::RegisterPrefs(PrefRegistr
std::string());
registry->RegisterBooleanPref(prefs::kEnableReferrers, true);
data_reduction_proxy::RegisterPrefs(registry);
@@ -145,7 +145,7 @@
prefs::kShowManagedBookmarksInBookmarkBar,
--- a/chrome/browser/profiles/profile.cc
+++ b/chrome/browser/profiles/profile.cc
@@ -136,7 +136,7 @@ const char Profile::kNoHostedDomainFound
@@ -138,7 +138,7 @@ const char Profile::kNoHostedDomainFound
void Profile::RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
registry->RegisterBooleanPref(
prefs::kSearchSuggestEnabled,
@@ -167,7 +167,7 @@
prefs::kCloudPrintXmppPingEnabled, false);
--- a/chrome/browser/ui/webui/local_discovery/local_discovery_ui.cc
+++ b/chrome/browser/ui/webui/local_discovery/local_discovery_ui.cc
@@ -143,10 +143,6 @@ void LocalDiscoveryUI::RegisterProfilePr
@@ -144,10 +144,6 @@ void LocalDiscoveryUI::RegisterProfilePr
user_prefs::PrefRegistrySyncable* registry) {
registry->RegisterBooleanPref(
prefs::kLocalDiscoveryNotificationsEnabled,
@@ -211,7 +211,7 @@
false);
--- a/components/password_manager/core/browser/password_manager.cc
+++ b/components/password_manager/core/browser/password_manager.cc
@@ -235,10 +235,10 @@ PasswordFormManager* FindMatchedManager(
@@ -236,10 +236,10 @@ PasswordFormManager* FindMatchedManager(
void PasswordManager::RegisterProfilePrefs(
user_prefs::PrefRegistrySyncable* registry) {
registry->RegisterBooleanPref(
@@ -1,6 +1,6 @@
--- a/chrome/browser/search/search.cc
+++ b/chrome/browser/search/search.cc
@@ -147,29 +147,7 @@ struct NewTabURLDetails {
@@ -187,29 +187,7 @@ struct NewTabURLDetails {
const GURL local_url(chrome::kChromeSearchLocalNtpUrl);
@@ -33,7 +33,7 @@
const GURL url;
--- a/components/ntp_snippets/features.cc
+++ b/components/ntp_snippets/features.cc
@@ -38,16 +38,16 @@ const base::Feature* const kAllFeatures[
@@ -37,16 +37,16 @@ const base::Feature* const kAllFeatures[
nullptr};
const base::Feature kArticleSuggestionsFeature{
@@ -30,7 +30,7 @@
--- a/components/search_engines/template_url_prepopulate_data.cc
+++ b/components/search_engines/template_url_prepopulate_data.cc
@@ -50,548 +50,548 @@ namespace {
@@ -51,548 +51,548 @@ namespace {
// Default (for countries with no better engine set)
const PrepopulatedEngine* const engines_default[] = {
@@ -1,10 +1,10 @@
--- a/chrome/browser/ui/startup/google_api_keys_infobar_delegate.cc
+++ b/chrome/browser/ui/startup/google_api_keys_infobar_delegate.cc
@@ -15,6 +15,7 @@
@@ -14,6 +14,7 @@
// static
void GoogleApiKeysInfoBarDelegate::Create(InfoBarService* infobar_service) {
+ return;
if (google_apis::HasKeysConfigured())
return;
infobar_service->AddInfoBar(infobar_service->CreateConfirmInfoBar(
std::unique_ptr<ConfirmInfoBarDelegate>(
new GoogleApiKeysInfoBarDelegate())));
@@ -1,6 +1,6 @@
--- a/components/signin/core/browser/signin_manager.cc
+++ b/components/signin/core/browser/signin_manager.cc
@@ -299,7 +299,7 @@ void SigninManager::OnGoogleServicesUser
@@ -302,7 +302,7 @@ void SigninManager::OnGoogleServicesUser
}
bool SigninManager::IsSigninAllowed() const {
@@ -1,6 +1,6 @@
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -1211,6 +1211,11 @@ const FeatureEntry::FeatureVariation kSp
@@ -1221,6 +1221,11 @@ const FeatureEntry::FeatureVariation kWe
//
// When adding a new choice, add it to the end of the list.
const FeatureEntry kFeatureEntries[] = {
@@ -52,7 +52,7 @@
HistogramBase::HistogramBase(const char* name)
--- a/base/metrics/histogram.cc
+++ b/base/metrics/histogram.cc
@@ -124,7 +124,8 @@ class Histogram::Factory {
@@ -123,7 +123,8 @@ class Histogram::Factory {
minimum_(minimum),
maximum_(maximum),
bucket_count_(bucket_count),
@@ -62,7 +62,7 @@
// Create a BucketRanges structure appropriate for this histogram.
virtual BucketRanges* CreateRanges() {
@@ -154,13 +155,18 @@ class Histogram::Factory {
@@ -153,13 +154,18 @@ class Histogram::Factory {
HistogramBase::Sample maximum_;
uint32_t bucket_count_;
int32_t flags_;
@@ -82,7 +82,7 @@
if (!histogram) {
// To avoid racy destruction at shutdown, the following will be leaked.
const BucketRanges* created_ranges = CreateRanges();
@@ -191,7 +197,7 @@ HistogramBase* Histogram::Factory::Build
@@ -190,7 +196,7 @@ HistogramBase* Histogram::Factory::Build
if (allocator) {
tentative_histogram = allocator->AllocateHistogram(
histogram_type_,
@@ -91,7 +91,7 @@
minimum_,
maximum_,
registered_ranges,
@@ -226,6 +232,10 @@ HistogramBase* Histogram::Factory::Build
@@ -225,6 +231,10 @@ HistogramBase* Histogram::Factory::Build
}
}
@@ -102,7 +102,7 @@
CHECK_EQ(histogram_type_, histogram->GetHistogramType()) << name_;
if (bucket_count_ != 0 &&
!histogram->HasConstructionArguments(minimum_, maximum_, bucket_count_)) {
@@ -462,10 +472,16 @@ bool Histogram::HasConstructionArguments
@@ -461,10 +471,16 @@ bool Histogram::HasConstructionArguments
}
void Histogram::Add(int value) {
@@ -119,7 +119,7 @@
DCHECK_EQ(0, ranges(0));
DCHECK_EQ(kSampleType_MAX, ranges(bucket_count()));
@@ -520,10 +536,16 @@ std::unique_ptr<HistogramSamples> Histog
@@ -519,10 +535,16 @@ std::unique_ptr<HistogramSamples> Histog
}
void Histogram::AddSamples(const HistogramSamples& samples) {
@@ -279,7 +279,7 @@
--- a/chrome/browser/ui/tab_helpers.cc
+++ b/chrome/browser/ui/tab_helpers.cc
@@ -204,8 +204,10 @@ void TabHelpers::AttachTabHelpers(WebCon
@@ -207,8 +207,10 @@ void TabHelpers::AttachTabHelpers(WebCon
ChromeTranslateClient::CreateForWebContents(web_contents);
ClientHintsObserver::CreateForWebContents(web_contents);
CoreTabHelper::CreateForWebContents(web_contents);
@@ -292,7 +292,7 @@
ExternalProtocolObserver::CreateForWebContents(web_contents);
favicon::CreateContentFaviconDriverForWebContents(web_contents);
FindTabHelper::CreateForWebContents(web_contents);
@@ -220,14 +222,20 @@ void TabHelpers::AttachTabHelpers(WebCon
@@ -223,14 +225,20 @@ void TabHelpers::AttachTabHelpers(WebCon
HistoryTabHelper::CreateForWebContents(web_contents);
InfoBarService::CreateForWebContents(web_contents);
InstallableManager::CreateForWebContents(web_contents);
@@ -317,7 +317,7 @@
PDFPluginPlaceholderObserver::CreateForWebContents(web_contents);
PermissionRequestManager::CreateForWebContents(web_contents);
// The PopupBlockerTabHelper has an implicit dependency on
@@ -252,7 +260,9 @@ void TabHelpers::AttachTabHelpers(WebCon
@@ -255,7 +263,9 @@ void TabHelpers::AttachTabHelpers(WebCon
// is taken over by ChromeContentSettingsClient. http://crbug.com/387075
TabSpecificContentSettings::CreateForWebContents(web_contents);
TabUIHelper::CreateForWebContents(web_contents);
@@ -328,7 +328,7 @@
vr::VrTabHelper::CreateForWebContents(web_contents);
// NO! Do not just add your tab helper here. This is a large alphabetized
@@ -302,7 +312,8 @@ void TabHelpers::AttachTabHelpers(WebCon
@@ -306,7 +316,8 @@ void TabHelpers::AttachTabHelpers(WebCon
#if defined(OS_WIN) || defined(OS_MACOSX) || \
(defined(OS_LINUX) && !defined(OS_CHROMEOS))
@@ -1,83 +0,0 @@
From 030017a4855c7b6e7f2ff8d9566c146f31eb301b Mon Sep 17 00:00:00 2001
From: Kai Ninomiya <kainino@chromium.org>
Date: Wed, 06 Dec 2017 14:06:53 -0800
Subject: [PATCH] Mark StaticType related functions as constexpr
Fixes compilation on some versions of GCC and probably Clang.
Follow-up to http://crrev.com/c/786317
Bug: angleproject:1432
Change-Id: I3fc3ad0f65492f9543eb27fcdce6ca29a9ad06e5
Reviewed-on: https://chromium-review.googlesource.com/812220
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Commit-Queue: Kai Ninomiya <kainino@chromium.org>
---
--- a/third_party/angle/src/compiler/translator/StaticType.h
+++ b/third_party/angle/src/compiler/translator/StaticType.h
@@ -160,7 +160,7 @@ template <TBasicType basicType,
TPrecision precision,
TQualifier qualifier,
unsigned char secondarySize>
-const TType *GetForVecMatHelper(unsigned char primarySize)
+constexpr const TType *GetForVecMatHelper(unsigned char primarySize)
{
static_assert(basicType == EbtFloat || basicType == EbtInt || basicType == EbtUInt ||
basicType == EbtBool,
@@ -186,7 +186,7 @@ const TType *GetForVecMatHelper(unsigned
template <TBasicType basicType,
TPrecision precision = EbpUndefined,
TQualifier qualifier = EvqGlobal>
-const TType *GetForVecMat(unsigned char primarySize, unsigned char secondarySize = 1)
+constexpr const TType *GetForVecMat(unsigned char primarySize, unsigned char secondarySize = 1)
{
static_assert(basicType == EbtFloat || basicType == EbtInt || basicType == EbtUInt ||
basicType == EbtBool,
@@ -208,7 +208,7 @@ const TType *GetForVecMat(unsigned char
}
template <TBasicType basicType, TPrecision precision = EbpUndefined>
-const TType *GetForVec(TQualifier qualifier, unsigned char size)
+constexpr const TType *GetForVec(TQualifier qualifier, unsigned char size)
{
switch (qualifier)
{
--- a/third_party/angle/src/compiler/translator/SymbolTable.cpp
+++ b/third_party/angle/src/compiler/translator/SymbolTable.cpp
@@ -189,7 +189,7 @@ TSymbolTable::~TSymbolTable()
pop();
}
-bool IsGenType(const TType *type)
+constexpr bool IsGenType(const TType *type)
{
if (type)
{
@@ -201,7 +201,7 @@ bool IsGenType(const TType *type)
return false;
}
-bool IsVecType(const TType *type)
+constexpr bool IsVecType(const TType *type)
{
if (type)
{
--- a/third_party/angle/src/compiler/translator/Types.h
+++ b/third_party/angle/src/compiler/translator/Types.h
@@ -236,13 +236,13 @@ class TType
{
}
- TBasicType getBasicType() const { return type; }
+ constexpr TBasicType getBasicType() const { return type; }
void setBasicType(TBasicType t);
TPrecision getPrecision() const { return precision; }
void setPrecision(TPrecision p) { precision = p; }
- TQualifier getQualifier() const { return qualifier; }
+ constexpr TQualifier getQualifier() const { return qualifier; }
void setQualifier(TQualifier q) { qualifier = q; }
bool isInvariant() const { return invariant; }
@@ -1,40 +0,0 @@
From 3cf91d8d674a496d533aa106723a632b68ab26ba Mon Sep 17 00:00:00 2001
From: Tom Anderson <thomasanderson@chromium.org>
Date: Tue, 12 Dec 2017 23:31:56 +0000
Subject: [PATCH] Fix use_cups=false build
BUG=793801
R=thestig@chromium.org
Change-Id: I60ee6ec48d2686d0b42ca25311a9b76009ce9768
Reviewed-on: https://chromium-review.googlesource.com/823245
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Thomas Anderson <thomasanderson@chromium.org>
Cr-Commit-Position: refs/heads/master@{#523602}
---
chrome/service/cloud_print/print_system.cc | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
--- a/chrome/service/cloud_print/print_system.cc
+++ b/chrome/service/cloud_print/print_system.cc
@@ -5,6 +5,7 @@
#include "chrome/service/cloud_print/print_system.h"
#include "base/guid.h"
+#include "build/build_config.h"
namespace cloud_print {
@@ -35,5 +36,11 @@ std::string PrintSystem::GenerateProxyId
return base::GenerateGUID();
}
-} // namespace cloud_print
+#if defined(OS_LINUX) && !defined(USE_CUPS)
+scoped_refptr<PrintSystem> PrintSystem::CreateInstance(
+ const base::DictionaryValue*) {
+ return nullptr;
+}
+#endif
+} // namespace cloud_print
@@ -0,0 +1,29 @@
From 9f63f94a11abc34d40ede8b8712fa15b5844a8c0 Mon Sep 17 00:00:00 2001
From: Tom Anderson <thomasanderson@chromium.org>
Date: Sat, 27 Jan 2018 20:03:37 +0000
Subject: [PATCH] Fix build with glibc 2.27
BUG=806340
TBR=hamelphi@chromium.org
Change-Id: Ib4e5091212d874d9ad88f3e9a1fdfee3ed7e0d5e
Reviewed-on: https://chromium-review.googlesource.com/890059
Reviewed-by: Thomas Anderson <thomasanderson@chromium.org>
Reviewed-by: Philippe Hamel <hamelphi@chromium.org>
Commit-Queue: Thomas Anderson <thomasanderson@chromium.org>
Cr-Commit-Position: refs/heads/master@{#532249}
---
diff --git a/components/assist_ranker/ranker_example_util.cc b/components/assist_ranker/ranker_example_util.cc
index 54d4dbd..ceedd8f 100644
--- a/components/assist_ranker/ranker_example_util.cc
+++ b/components/assist_ranker/ranker_example_util.cc
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <math.h>
+
#include "components/assist_ranker/ranker_example_util.h"
#include "base/bit_cast.h"
#include "base/format_macros.h"
@@ -1,427 +0,0 @@
commit 03f9a90d8a783f9d1a94935ac298338a1e694380
Author: Eric Lawrence <elawrence@chromium.org>
Date: Sat Dec 16 04:48:11 2017 +0000
Reland of 'Unescape fragment for display in Omnibox'
The original landing broke EGTests for iOS Simulator and Device which
were not run by the CQ. This change includes updated EGTests.
TBR=pkasting@chromium.org
Bug: 789163, 643458
Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs
Change-Id: Ie30afcb7bcba5affc7266d72a10b7f8dc0074314
Reviewed-on: https://chromium-review.googlesource.com/830093
Reviewed-by: Eric Lawrence <elawrence@chromium.org>
Reviewed-by: Peter Kasting <pkasting@chromium.org>
Reviewed-by: Eugene But <eugenebut@chromium.org>
Commit-Queue: Eric Lawrence <elawrence@chromium.org>
Cr-Commit-Position: refs/heads/master@{#524591}
--- a/chrome/browser/ui/views/omnibox/omnibox_view_views_browsertest.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_view_views_browsertest.cc
@@ -458,3 +458,13 @@ IN_PROC_BROWSER_TEST_F(OmniboxViewViewsT
EXPECT_EQ(omnibox_view_views->GetRenderText()->elide_behavior(),
gfx::NO_ELIDE);
}
+
+IN_PROC_BROWSER_TEST_F(OmniboxViewViewsTest, FragmentUnescapedForDisplay) {
+ OmniboxView* view = nullptr;
+ ASSERT_NO_FATAL_FAILURE(GetOmniboxViewForBrowser(browser(), &view));
+ ui_test_utils::NavigateToURL(browser(),
+ GURL("https://www.google.com/#%E2%98%83"));
+
+ EXPECT_EQ(view->GetText(),
+ base::UTF8ToUTF16("https://www.google.com/#\u2603"));
+}
--- a/components/url_formatter/elide_url_unittest.cc
+++ b/components/url_formatter/elide_url_unittest.cc
@@ -347,15 +347,16 @@ TEST(TextEliderTest, TestElisionSpecialC
kEllipsisStr + "berkeley.edu:4430/" + kEllipsisStr + "/arbitfilename"},
// Unescaping.
- {"http://www/%E4%BD%A0%E5%A5%BD?q=%E4%BD%A0%E5%A5%BD#\xe4\xbd\xa0",
- "www/\xe4\xbd\xa0\xe5\xa5\xbd?q=\xe4\xbd\xa0\xe5\xa5\xbd#" +
+ {"http://www/%E4%BD%A0%E5%A5%BD?"
+ "q=%E4%BD%A0%E5%A5%BD#\xe4\xbd\xa0\xe4\xbd\xa0\xe4\xbd\xa0",
+ "www/\xe4\xbd\xa0\xe5\xa5\xbd?q=\xe4\xbd\xa0\xe5\xa5\xbd#\xe4\xbd\xa0" +
kEllipsisStr},
// Invalid unescaping for path. The ref will always be valid UTF-8. We
// don't bother to do too many edge cases, since these are handled by the
// escaper unittest.
{"http://www/%E4%A0%E5%A5%BD?q=%E4%BD%A0%E5%A5%BD#\xe4\xbd\xa0",
- "www/%E4%A0%E5%A5%BD?q=\xe4\xbd\xa0\xe5\xa5\xbd#" + kEllipsisStr},
+ "www/%E4%A0%E5%A5%BD?q=\xe4\xbd\xa0\xe5\xa5\xbd#\xe4\xbd\xa0"},
};
RunElisionTest(testcases);
--- a/components/url_formatter/url_formatter.cc
+++ b/components/url_formatter/url_formatter.cc
@@ -586,11 +586,10 @@ base::string16 FormatUrlWithAdjustments(
NonHostComponentTransform(unescape_rules),
&url_string, &new_parsed->query, adjustments);
- // Ref. This is valid, unescaped UTF-8, so we can just convert.
if (parsed.ref.is_valid())
url_string.push_back('#');
AppendFormattedComponent(spec, parsed.ref,
- NonHostComponentTransform(net::UnescapeRule::NONE),
+ NonHostComponentTransform(unescape_rules),
&url_string, &new_parsed->ref, adjustments);
}
--- a/components/url_formatter/url_formatter_unittest.cc
+++ b/components/url_formatter/url_formatter_unittest.cc
@@ -781,7 +781,7 @@ TEST(UrlFormatterTest, FormatUrl) {
{"With a port number and a reference",
"http://www.google.com:8080/#\xE3\x82\xB0", default_format_type,
- net::UnescapeRule::NORMAL, L"http://www.google.com:8080/#%E3%82%B0", 7},
+ net::UnescapeRule::NORMAL, L"http://www.google.com:8080/#\x30B0", 7},
// -------- IDN tests --------
{"Japanese IDN with ja", "http://xn--l8jvb1ey91xtjb.jp",
@@ -1072,7 +1072,7 @@ TEST(UrlFormatterTest, FormatUrlParsed)
kFormatUrlOmitNothing, net::UnescapeRule::NORMAL, &parsed,
nullptr, nullptr);
EXPECT_EQ(WideToUTF16(L"http://\x30B0:\x30FC@\x30B0\x30FC\x30B0\x30EB.jp:8080"
- L"/\x30B0/?q=\x30B0#%E3%82%B0"),
+ L"/\x30B0/?q=\x30B0#\x30B0"),
formatted);
EXPECT_EQ(WideToUTF16(L"\x30B0"),
formatted.substr(parsed.username.begin, parsed.username.len));
@@ -1086,7 +1086,7 @@ TEST(UrlFormatterTest, FormatUrlParsed)
formatted.substr(parsed.path.begin, parsed.path.len));
EXPECT_EQ(WideToUTF16(L"q=\x30B0"),
formatted.substr(parsed.query.begin, parsed.query.len));
- EXPECT_EQ(WideToUTF16(L"%E3%82%B0"),
+ EXPECT_EQ(WideToUTF16(L"\x30B0"),
formatted.substr(parsed.ref.begin, parsed.ref.len));
// Omit_username_password + unescape case.
@@ -1096,7 +1096,7 @@ TEST(UrlFormatterTest, FormatUrlParsed)
kFormatUrlOmitUsernamePassword, net::UnescapeRule::NORMAL,
&parsed, nullptr, nullptr);
EXPECT_EQ(WideToUTF16(L"http://\x30B0\x30FC\x30B0\x30EB.jp:8080"
- L"/\x30B0/?q=\x30B0#%E3%82%B0"),
+ L"/\x30B0/?q=\x30B0#\x30B0"),
formatted);
EXPECT_FALSE(parsed.username.is_valid());
EXPECT_FALSE(parsed.password.is_valid());
@@ -1108,7 +1108,7 @@ TEST(UrlFormatterTest, FormatUrlParsed)
formatted.substr(parsed.path.begin, parsed.path.len));
EXPECT_EQ(WideToUTF16(L"q=\x30B0"),
formatted.substr(parsed.query.begin, parsed.query.len));
- EXPECT_EQ(WideToUTF16(L"%E3%82%B0"),
+ EXPECT_EQ(WideToUTF16(L"\x30B0"),
formatted.substr(parsed.ref.begin, parsed.ref.len));
// View-source case.
@@ -1342,9 +1342,12 @@ TEST(UrlFormatterTest, FormatUrlWithOffs
kFormatUrlOmitNothing, net::UnescapeRule::SPACES, unescape_offsets);
const size_t ref_offsets[] = {
- 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
- 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33,
- 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49};
+ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
+ 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
+ 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
+ 30, 31, kNpos, kNpos, kNpos, kNpos, kNpos, kNpos, kNpos, kNpos,
+ 32, kNpos, kNpos, kNpos, kNpos, kNpos, kNpos, kNpos, kNpos, 33};
+
// Unescape to "http://www.google.com/foo.html#\x30B0\x30B0z".
CheckAdjustedOffsets("http://www.google.com/foo.html#%E3%82%B0%E3%82%B0z",
kFormatUrlOmitNothing, net::UnescapeRule::NORMAL,
--- a/ios/chrome/browser/web/push_and_replace_state_navigation_egtest.mm
+++ b/ios/chrome/browser/web/push_and_replace_state_navigation_egtest.mm
@@ -59,40 +59,42 @@ const char* kReplaceStateRootPathSpaceUR
// Push 3 URLs. Verify that the URL changed and the status was updated.
[ChromeEarlGrey tapWebViewElementWithID:@"pushStateHashWithObject"];
[self assertStatusText:@"pushStateHashWithObject"
- withURL:pushStateHashWithObjectURL
+ withOmniboxText:pushStateHashWithObjectURL.GetContent()
pageLoaded:NO];
[ChromeEarlGrey tapWebViewElementWithID:@"pushStateRootPath"];
[self assertStatusText:@"pushStateRootPath"
- withURL:pushStateRootPathURL
+ withOmniboxText:pushStateRootPathURL.GetContent()
pageLoaded:NO];
[ChromeEarlGrey tapWebViewElementWithID:@"pushStatePathSpace"];
[self assertStatusText:@"pushStatePathSpace"
- withURL:pushStatePathSpaceURL
+ withOmniboxText:pushStatePathSpaceURL.GetContent()
pageLoaded:NO];
// Go back and check that the page doesn't load and the status text is updated
// by the popstate event.
[[EarlGrey selectElementWithMatcher:BackButton()] performAction:grey_tap()];
[self assertStatusText:@"pushStateRootPath"
- withURL:pushStateRootPathURL
+ withOmniboxText:pushStateRootPathURL.GetContent()
pageLoaded:NO];
[[EarlGrey selectElementWithMatcher:BackButton()] performAction:grey_tap()];
[self assertStatusText:@"pushStateHashWithObject"
- withURL:pushStateHashWithObjectURL
+ withOmniboxText:pushStateHashWithObjectURL.GetContent()
pageLoaded:NO];
[ChromeEarlGrey tapWebViewElementWithID:@"goBack"];
const GURL historyTestURL = web::test::HttpServer::MakeUrl(kHistoryTestUrl);
- [self assertStatusText:NULL withURL:historyTestURL pageLoaded:NO];
+ [self assertStatusText:nil
+ withOmniboxText:historyTestURL.GetContent()
+ pageLoaded:NO];
// Go forward 2 pages and check that the page doesn't load and the status text
// is updated by the popstate event.
[ChromeEarlGrey tapWebViewElementWithID:@"goForward2"];
[self assertStatusText:@"pushStateRootPath"
- withURL:pushStateRootPathURL
+ withOmniboxText:pushStateRootPathURL.GetContent()
pageLoaded:NO];
}
@@ -108,7 +110,7 @@ const char* kReplaceStateRootPathSpaceUR
web::test::HttpServer::MakeUrl(kReplaceStateHashWithObjectURL);
[ChromeEarlGrey tapWebViewElementWithID:@"replaceStateHashWithObject"];
[self assertStatusText:@"replaceStateHashWithObject"
- withURL:replaceStateHashWithObjectURL
+ withOmniboxText:replaceStateHashWithObjectURL.GetContent()
pageLoaded:NO];
[[EarlGrey selectElementWithMatcher:BackButton()] performAction:grey_tap()];
@@ -119,7 +121,7 @@ const char* kReplaceStateRootPathSpaceUR
[[EarlGrey selectElementWithMatcher:ForwardButton()]
performAction:grey_tap()];
[self assertStatusText:@"replaceStateHashWithObject"
- withURL:replaceStateHashWithObjectURL
+ withOmniboxText:replaceStateHashWithObjectURL.GetContent()
pageLoaded:YES];
// Push URL then replace it. Do this twice.
@@ -127,44 +129,44 @@ const char* kReplaceStateRootPathSpaceUR
web::test::HttpServer::MakeUrl(kPushStateHashStringURL);
[ChromeEarlGrey tapWebViewElementWithID:@"pushStateHashString"];
[self assertStatusText:@"pushStateHashString"
- withURL:pushStateHashStringURL
+ withOmniboxText:pushStateHashStringURL.GetContent()
pageLoaded:NO];
const GURL replaceStateHashStringURL =
web::test::HttpServer::MakeUrl(kReplaceStateHashStringURL);
[ChromeEarlGrey tapWebViewElementWithID:@"replaceStateHashString"];
[self assertStatusText:@"replaceStateHashString"
- withURL:replaceStateHashStringURL
+ withOmniboxText:replaceStateHashStringURL.GetContent()
pageLoaded:NO];
const GURL pushStatePathURL =
web::test::HttpServer::MakeUrl(kPushStatePathURL);
[ChromeEarlGrey tapWebViewElementWithID:@"pushStatePath"];
[self assertStatusText:@"pushStatePath"
- withURL:pushStatePathURL
+ withOmniboxText:pushStatePathURL.GetContent()
pageLoaded:NO];
const GURL replaceStateRootPathSpaceURL =
web::test::HttpServer::MakeUrl(kReplaceStateRootPathSpaceURL);
[ChromeEarlGrey tapWebViewElementWithID:@"replaceStateRootPathSpace"];
[self assertStatusText:@"replaceStateRootPathSpace"
- withURL:replaceStateRootPathSpaceURL
+ withOmniboxText:replaceStateRootPathSpaceURL.GetContent()
pageLoaded:NO];
// Go back and check URLs.
[[EarlGrey selectElementWithMatcher:BackButton()] performAction:grey_tap()];
[self assertStatusText:@"replaceStateHashString"
- withURL:replaceStateHashStringURL
+ withOmniboxText:replaceStateHashStringURL.GetContent()
pageLoaded:NO];
[[EarlGrey selectElementWithMatcher:BackButton()] performAction:grey_tap()];
[self assertStatusText:@"replaceStateHashWithObject"
- withURL:replaceStateHashWithObjectURL
+ withOmniboxText:replaceStateHashWithObjectURL.GetContent()
pageLoaded:NO];
// Go forward and check URL.
[ChromeEarlGrey tapWebViewElementWithID:@"goForward2"];
[self assertStatusText:@"replaceStateRootPathSpace"
- withURL:replaceStateRootPathSpaceURL
+ withOmniboxText:replaceStateRootPathSpaceURL.GetContent()
pageLoaded:NO];
}
@@ -180,11 +182,11 @@ const char* kReplaceStateRootPathSpaceUR
web::test::HttpServer::MakeUrl(kPushStateHashStringURL);
[ChromeEarlGrey tapWebViewElementWithID:@"pushStateHashString"];
[self assertStatusText:@"pushStateHashString"
- withURL:pushStateHashStringURL
+ withOmniboxText:pushStateHashStringURL.GetContent()
pageLoaded:NO];
[ChromeEarlGrey tapWebViewElementWithID:@"pushStateHashString"];
[self assertStatusText:@"pushStateHashString"
- withURL:pushStateHashStringURL
+ withOmniboxText:pushStateHashStringURL.GetContent()
pageLoaded:NO];
// Load a non-pushed URL.
@@ -194,7 +196,7 @@ const char* kReplaceStateRootPathSpaceUR
[ChromeEarlGrey loadURL:historyTestURL];
[ChromeEarlGrey tapWebViewElementWithID:@"pushStateHashString"];
[self assertStatusText:@"pushStateHashString"
- withURL:pushStateHashStringURL
+ withOmniboxText:pushStateHashStringURL.GetContent()
pageLoaded:NO];
// At this point the history looks like this:
@@ -202,38 +204,54 @@ const char* kReplaceStateRootPathSpaceUR
// Go back (to second history.html) and verify page did not load.
[[EarlGrey selectElementWithMatcher:BackButton()] performAction:grey_tap()];
- [self assertStatusText:nil withURL:historyTestURL pageLoaded:NO];
+ [self assertStatusText:nil
+ withOmniboxText:historyTestURL.GetContent()
+ pageLoaded:NO];
// Go back twice (to second #string) and verify page did load.
[[EarlGrey selectElementWithMatcher:BackButton()] performAction:grey_tap()];
[[EarlGrey selectElementWithMatcher:BackButton()] performAction:grey_tap()];
- [self assertStatusText:nil withURL:pushStateHashStringURL pageLoaded:YES];
+ [self assertStatusText:nil
+ withOmniboxText:pushStateHashStringURL.GetContent()
+ pageLoaded:YES];
// Go back once (to first #string) and verify page did not load.
[[EarlGrey selectElementWithMatcher:BackButton()] performAction:grey_tap()];
[self assertStatusText:@"pushStateHashString"
- withURL:pushStateHashStringURL
+ withOmniboxText:pushStateHashStringURL.GetContent()
pageLoaded:NO];
// Go forward 4 entries at once (to third #string) and verify page did load.
[ChromeEarlGrey tapWebViewElementWithID:@"goForward4"];
- [self assertStatusText:nil withURL:pushStateHashStringURL pageLoaded:YES];
+ [self assertStatusText:nil
+ withOmniboxText:pushStateHashStringURL.GetContent()
+ pageLoaded:YES];
// Go back 4 entries at once (to first #string) and verify page did load.
[ChromeEarlGrey tapWebViewElementWithID:@"goBack4"];
- [self assertStatusText:NULL withURL:pushStateHashStringURL pageLoaded:YES];
+ [self assertStatusText:nil
+ withOmniboxText:pushStateHashStringURL.GetContent()
+ pageLoaded:YES];
}
// Tests calling pushState with unicode characters.
- (void)testHtml5HistoryPushUnicodeCharacters {
- const GURL pushStateUnicodeURLEncoded = web::test::HttpServer::MakeUrl(
- "http://ios/testing/data/http_server_files/"
- "history.html#unicode%E1%84%91");
- const GURL pushStateUnicode2URLEncoded = web::test::HttpServer::MakeUrl(
- "http://ios/testing/data/http_server_files/"
- "history.html#unicode2%E2%88%A2");
+ // The GURL object %-escapes Unicode characters in the URL's fragment,
+ // but the omnibox decodes them back to Unicode for display.
+ std::string pushStateUnicode =
+ web::test::HttpServer::MakeUrl(
+ "http://ios/testing/data/http_server_files/"
+ "history.html#unicode")
+ .GetContent() +
+ "\xe1\x84\x91";
+ std::string pushStateUnicode2 =
+ web::test::HttpServer::MakeUrl(
+ "http://ios/testing/data/http_server_files/"
+ "history.html#unicode2")
+ .GetContent() +
+ "\xe2\x88\xa2";
const char pushStateUnicodeLabel[] = "Action: pushStateUnicodeᄑ";
NSString* pushStateUnicodeStatus = @"pushStateUnicodeᄑ";
const char pushStateUnicode2Label[] = "Action: pushStateUnicode2∢";
@@ -242,21 +260,16 @@ const char* kReplaceStateRootPathSpaceUR
web::test::SetUpFileBasedHttpServer();
[ChromeEarlGrey loadURL:web::test::HttpServer::MakeUrl(kHistoryTestUrl)];
- // TODO(crbug.com/643458): The fact that the URL shows %-escaped is due to
- // NSURL escaping to make UIWebView/JS happy. See if it's possible to
- // represent differently such that it displays unescaped.
// Do 2 push states with unicode characters.
[ChromeEarlGrey tapWebViewElementWithID:@"pushStateUnicode"];
[[EarlGrey
- selectElementWithMatcher:chrome_test_util::OmniboxText(
- pushStateUnicodeURLEncoded.GetContent())]
+ selectElementWithMatcher:chrome_test_util::OmniboxText(pushStateUnicode)]
assertWithMatcher:grey_notNil()];
[ChromeEarlGrey waitForWebViewContainingText:pushStateUnicodeLabel];
[ChromeEarlGrey tapWebViewElementWithID:@"pushStateUnicode2"];
[[EarlGrey
- selectElementWithMatcher:chrome_test_util::OmniboxText(
- pushStateUnicode2URLEncoded.GetContent())]
+ selectElementWithMatcher:chrome_test_util::OmniboxText(pushStateUnicode2)]
assertWithMatcher:grey_notNil()];
[ChromeEarlGrey waitForWebViewContainingText:pushStateUnicode2Label];
@@ -266,18 +279,18 @@ const char* kReplaceStateRootPathSpaceUR
[ChromeEarlGrey tapWebViewElementWithID:@"pushStatePath"];
[self assertStatusText:@"pushStatePath"
- withURL:pushStatePathURL
+ withOmniboxText:pushStatePathURL.GetContent()
pageLoaded:NO];
// Go back and check the unicode in the URL and status.
[[EarlGrey selectElementWithMatcher:BackButton()] performAction:grey_tap()];
[self assertStatusText:pushStateUnicode2Status
- withURL:pushStateUnicode2URLEncoded
+ withOmniboxText:pushStateUnicode2
pageLoaded:NO];
[[EarlGrey selectElementWithMatcher:BackButton()] performAction:grey_tap()];
[self assertStatusText:pushStateUnicodeStatus
- withURL:pushStateUnicodeURLEncoded
+ withOmniboxText:pushStateUnicode
pageLoaded:NO];
}
@@ -321,10 +334,11 @@ const char* kReplaceStateRootPathSpaceUR
#pragma mark - Utility methods
-// Assert that status text |status| is displayed in the webview, that "onloaded"
-// text is displayed if pageLoaded is YES, and that the URL is as expected.
+// Assert that status text |status|, if non-nil, is displayed in the webview,
+// that the omnibox text is as expected, and that "onload" text is displayed if
+// pageLoaded is YES.
- (void)assertStatusText:(NSString*)status
- withURL:(const GURL&)urlToVerify
+ withOmniboxText:(const std::string&)omniboxText
pageLoaded:(BOOL)pageLoaded {
if (pageLoaded) {
[ChromeEarlGrey waitForWebViewContainingText:"onload"];
@@ -332,14 +346,14 @@ const char* kReplaceStateRootPathSpaceUR
[ChromeEarlGrey waitForWebViewNotContainingText:"onload"];
}
- if (status != NULL) {
+ if (status != nil) {
NSString* statusLabel = [NSString stringWithFormat:@"Action: %@", status];
[ChromeEarlGrey
waitForWebViewContainingText:base::SysNSStringToUTF8(statusLabel)];
}
- [[EarlGrey selectElementWithMatcher:chrome_test_util::OmniboxText(
- urlToVerify.GetContent())]
+ [[EarlGrey
+ selectElementWithMatcher:chrome_test_util::OmniboxText(omniboxText)]
assertWithMatcher:grey_notNil()];
}
@@ -0,0 +1,21 @@
From 0235c2b657d936f3cdb09053776e5929fc84704b Mon Sep 17 00:00:00 2001
From: Tomas Popela <tomas.popela@gmail.com>
Date: Wed, 31 Jan 2018 18:57:07 +0000
Subject: [PATCH] Add missing stdint include
diff --git a/chrome/browser/vr/sample_queue.cc b/chrome/browser/vr/sample_queue.cc
index c2ca777ce90c..53cb3aab1576 100644
--- a/chrome/browser/vr/sample_queue.cc
+++ b/chrome/browser/vr/sample_queue.cc
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <stdint.h>
+
#include "chrome/browser/vr/sample_queue.h"
namespace vr {
--
2.16.2
@@ -1,6 +1,6 @@
From a57aa298ed3c3b76056d6e24fb09db05dca2f465 Mon Sep 17 00:00:00 2001
From 281edc278272f0650fc190c8539d443ac59157bc Mon Sep 17 00:00:00 2001
From: Daniel Charles <daniel.charles@intel.com>
Date: Thu, 25 Jan 2018 13:01:37 -0800
Date: Thu, 08 Feb 2018 02:36:51 +0000
Subject: [PATCH] vaapi initialization: move it to vaapi_wrapper
vaapi loading of libraries happens on the Pre and Post Sandbox
@@ -10,18 +10,28 @@ and i965_drv_video shared libraries to vaapi_wrapper.
When calling PreSandbox function in vaapi_wrapper libva will open
i965_drv_video shared library and both will be available for use
BUG=chromium:785117
TEST="video initialization of h/w dec/enc, VAVDA/VAVEA/VAJDA subjective"
TEST="testing and include unittests and autotests"
BUG=785117
TEST=video initialization of h/w dec/enc, VAVDA/VAVEA/VAJDA subjective
testing and include unittests and autotests
Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
Change-Id: I862bb49f1167d7437e80387882cb9081ad53f54b
Signed-off-by: Daniel Charles <daniel.charles@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/666138
Commit-Queue: Miguel Casas <mcasas@chromium.org>
Reviewed-by: Kenneth Russell <kbr@chromium.org>
Reviewed-by: Antoine Labour <piman@chromium.org>
Reviewed-by: Dongseong Hwang <dongseong.hwang@intel.com>
Reviewed-by: Pawel Osciak <posciak@chromium.org>
Reviewed-by: Jorge Lucangeli Obes <jorgelo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#535274}
---
diff --git a/content/gpu/gpu_sandbox_hook_linux.cc b/content/gpu/gpu_sandbox_hook_linux.cc
index e69e23e..5c4013c 100644
--- a/content/gpu/gpu_sandbox_hook_linux.cc
+++ b/content/gpu/gpu_sandbox_hook_linux.cc
@@ -28,10 +28,6 @@
@@ -29,10 +29,6 @@
#include "services/service_manager/sandbox/linux/bpf_gpu_policy_linux.h"
#include "services/service_manager/sandbox/linux/sandbox_linux.h"
@@ -32,7 +42,7 @@ Signed-off-by: Daniel Charles <daniel.charles@intel.com>
using sandbox::bpf_dsl::Policy;
using sandbox::syscall_broker::BrokerFilePermission;
using sandbox::syscall_broker::BrokerProcess;
@@ -47,22 +43,6 @@ inline bool IsChromeOS() {
@@ -48,22 +44,6 @@
#endif
}
@@ -55,7 +65,7 @@ Signed-off-by: Daniel Charles <daniel.charles@intel.com>
inline bool IsArchitectureArm() {
#if defined(ARCH_CPU_ARM_FAMILY)
return true;
@@ -87,14 +67,6 @@ inline bool UseLibV4L2() {
@@ -88,14 +68,6 @@
#endif
}
@@ -70,7 +80,7 @@ Signed-off-by: Daniel Charles <daniel.charles@intel.com>
constexpr int dlopen_flag = RTLD_NOW | RTLD_GLOBAL | RTLD_NODELETE;
void AddV4L2GpuWhitelist(
@@ -259,51 +231,6 @@ void LoadV4L2Libraries() {
@@ -270,50 +242,6 @@
}
}
@@ -79,8 +89,7 @@ Signed-off-by: Daniel Charles <daniel.charles@intel.com>
- if (IsArchitectureX86_64() || IsArchitectureI386()) {
- // Accelerated video dlopen()'s some shared objects
- // inside the sandbox, so preload them now.
- if (options.vaapi_accelerated_video_encode_enabled ||
- options.accelerated_video_decode_enabled) {
- if (IsAcceleratedVideoEnabled(options)) {
- if (IsLibVAVersion2()) {
- if (IsArchitectureX86_64()) {
- dlopen("/usr/lib64/va/drivers/i965_drv_video.so", dlopen_flag);
@@ -122,7 +131,7 @@ Signed-off-by: Daniel Charles <daniel.charles@intel.com>
bool LoadLibrariesForGpu(
const service_manager::SandboxSeccompBPF::Options& options) {
if (IsChromeOS()) {
@@ -316,7 +243,6 @@ bool LoadLibrariesForGpu(
@@ -326,7 +254,6 @@
if (options.use_amd_specific_policies)
return LoadAmdGpuLibraries();
}
@@ -130,9 +139,23 @@ Signed-off-by: Daniel Charles <daniel.charles@intel.com>
return true;
}
diff --git a/media/gpu/vaapi/vaapi_wrapper.cc b/media/gpu/vaapi/vaapi_wrapper.cc
index bc3d735..7421a74 100644
--- a/media/gpu/vaapi/vaapi_wrapper.cc
+++ b/media/gpu/vaapi/vaapi_wrapper.cc
@@ -163,9 +163,6 @@ class VADisplayState {
@@ -48,6 +48,11 @@
using media_gpu_vaapi::kModuleVa_x11;
#endif
using media_gpu_vaapi::InitializeStubs;
+using media_gpu_vaapi::IsVaInitialized;
+#if defined(USE_X11)
+using media_gpu_vaapi::IsVa_x11Initialized;
+#endif
+using media_gpu_vaapi::IsVa_drmInitialized;
using media_gpu_vaapi::StubPathMap;
#define LOG_VA_ERROR_AND_REPORT(va_error, err_msg) \
@@ -166,9 +171,6 @@
void SetDrmFd(base::PlatformFile fd) { drm_fd_.reset(HANDLE_EINTR(dup(fd))); }
private:
@@ -142,7 +165,7 @@ Signed-off-by: Daniel Charles <daniel.charles@intel.com>
// Protected by |va_lock_|.
int refcount_;
@@ -200,43 +197,12 @@ void VADisplayState::PreSandboxInitializ
@@ -203,41 +205,17 @@
VADisplayState::Get()->SetDrmFd(drm_file.GetPlatformFile());
}
@@ -181,12 +204,15 @@ Signed-off-by: Daniel Charles <daniel.charles@intel.com>
- static bool result = PostSandboxInitialization();
- if (!result)
- return false;
-
if (refcount_++ > 0)
return true;
+ if (!IsVaInitialized() ||
+#if defined(USE_X11)
+ !IsVa_x11Initialized() ||
+#endif
+ !IsVa_drmInitialized())
return false;
@@ -1367,6 +1333,34 @@ void VaapiWrapper::DeinitializeVpp() {
if (refcount_++ > 0)
@@ -1169,6 +1147,38 @@
// static
void VaapiWrapper::PreSandboxInitialization() {
VADisplayState::PreSandboxInitialization();
@@ -200,6 +226,10 @@ Signed-off-by: Daniel Charles <daniel.charles@intel.com>
+ paths[kModuleVa_x11].push_back(std::string("libva-x11.so.") + va_suffix);
+#endif
+
+ // InitializeStubs dlopen() VA-API libraries
+ // libva.so
+ // libva-x11.so (X11)
+ // libva-drm.so (X11 and Ozone).
+ static bool result = InitializeStubs(paths);
+ if (!result) {
+ static const char kErrorMsg[] = "Failed to initialize VAAPI libs";
@@ -211,13 +241,13 @@ Signed-off-by: Daniel Charles <daniel.charles@intel.com>
+ DVLOG(1) << kErrorMsg;
+#endif
+ }
+ // next command will dlopen all necessary libraries for
+ // va-api to function properly, to know:
+ // libva.so
+
+ // VASupportedProfiles::Get creates VADisplayState and in so doing
+ // driver associated libraries are dlopen(), to know:
+ // i965_drv_video.so
+ // hybrid_drv_video.so (platforms that support it)
+ // libva-x11.so (X11) or libva-drm.so (Ozone).
+ // libcmrt.so (platforms that support it)
+ VASupportedProfiles::Get();
}
} // namespace media
VaapiWrapper::VaapiWrapper()
File diff suppressed because it is too large Load Diff
@@ -1,6 +1,6 @@
From 7f29b44224439377592be2b75da0b86d82d8ad6d Mon Sep 17 00:00:00 2001
From 4bf343ab8c4a538205f9c1e96a661e40620c716b Mon Sep 17 00:00:00 2001
From: Daniel Charles <daniel.charles@intel.com>
Date: Wed, 18 Oct 2017 17:27:42 -0700
Date: Fri, 09 Feb 2018 14:39:27 -0800
Subject: [PATCH] Enable VAVDA, VAVEA and VAJDA on linux with VAAPI only
This patch contains all the changes necessary to use VA-API along with
@@ -24,12 +24,10 @@ video are used. The other flags are kept for ChromeOS and other OSes.
Developer testing was made on skylake hardware, ChromeOS and Ubuntu.
BUG=NONE
TEST="subjective testing with VAVDA,VAVEA and VAJDA, autotest for encoder"
TEST="and decoder hardware accelerated"
TEST="have libva/intel-vaapi-driver installed and not installed in the system"
TEST="repeat on different hardware families"
R=posciak@chromium.org
R=kcwu@chromium.org
TEST=subjective testing with VAVDA,VAVEA and VAJDA, autotest for encoder
and decoder hardware accelerated
have libva/intel-vaapi-driver installed and not installed in the system
repeat on different hardware families
Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
Change-Id: Ifbbf5c9e5221a8b5733fc6d4d0cf984a1f103171
@@ -39,10 +37,10 @@ Signed-off-by: Daniel Charles <daniel.charles@intel.com>
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -1281,12 +1281,14 @@
flag_descriptions::kEnablePreventLayerSquashingDescription, kOsAll,
FEATURE_VALUE_TYPE(features::kEnablePreventLayerSquashing)},
flag_descriptions::kUiPartialSwapDescription, kOsAll,
SINGLE_DISABLE_VALUE_TYPE(switches::kUIDisablePartialSwap)},
#if BUILDFLAG(ENABLE_WEBRTC)
+#if !defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_ANDROID)
+#if defined(OS_CHROMEOS) || defined(OS_ANDROID)
{"disable-webrtc-hw-decoding", flag_descriptions::kWebrtcHwDecodingName,
flag_descriptions::kWebrtcHwDecodingDescription, kOsAndroid | kOsCrOS,
SINGLE_DISABLE_VALUE_TYPE(switches::kDisableWebRtcHWDecoding)},
@@ -53,8 +51,8 @@ Signed-off-by: Daniel Charles <daniel.charles@intel.com>
{"enable-webrtc-hw-h264-encoding",
flag_descriptions::kWebrtcHwH264EncodingName,
flag_descriptions::kWebrtcHwH264EncodingDescription, kOsAndroid | kOsCrOS,
@@ -1567,6 +1569,13 @@
flag_descriptions::kShowTouchHudDescription, kOsAll,
@@ -1582,6 +1584,13 @@
flag_descriptions::kShowTouchHudDescription, kOsCrOS,
SINGLE_VALUE_TYPE(ash::switches::kAshTouchHud)},
#endif // OS_CHROMEOS
+#if defined(OS_LINUX) && !defined(OS_CHROMEOS) && !defined(OS_ANDROID)
@@ -67,15 +65,15 @@ Signed-off-by: Daniel Charles <daniel.charles@intel.com>
{
"disable-accelerated-video-decode",
flag_descriptions::kAcceleratedVideoDecodeName,
@@ -1574,6 +1583,7 @@
@@ -1589,6 +1598,7 @@
kOsMac | kOsWin | kOsCrOS | kOsAndroid,
SINGLE_DISABLE_VALUE_TYPE(switches::kDisableAcceleratedVideoDecode),
},
+#endif
{"mojo-video-encode-accelerator",
flag_descriptions::kMojoVideoEncodeAcceleratorName,
flag_descriptions::kMojoVideoEncodeAcceleratorDescription,
@@ -2302,12 +2312,17 @@
#if defined(OS_WIN)
{"enable-hdr", flag_descriptions::kEnableHDRName,
flag_descriptions::kEnableHDRDescription, kOsWin,
@@ -2300,12 +2310,17 @@
FEATURE_VALUE_TYPE(features::kOpenVR)},
#endif // ENABLE_OPENVR
#endif // ENABLE_VR
@@ -105,7 +103,7 @@ Signed-off-by: Daniel Charles <daniel.charles@intel.com>
#include "cc/base/switches.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/chromeos/boot_times_recorder.h"
@@ -84,8 +85,13 @@
@@ -84,9 +85,14 @@
::switches::kDisable2dCanvasImageChromium,
::switches::kDisableAccelerated2dCanvas,
::switches::kDisableAcceleratedJpegDecoding,
@@ -115,11 +113,12 @@ Signed-off-by: Daniel Charles <daniel.charles@intel.com>
+#else
::switches::kDisableAcceleratedMjpegDecode,
::switches::kDisableAcceleratedVideoDecode,
::switches::kDisableAcceleratedVideoEncode,
+#endif
::switches::kDisableBlinkFeatures,
::switches::kDisableCastStreamingHWEncoding,
::switches::kDisableDistanceFieldText,
@@ -166,7 +172,7 @@
@@ -164,7 +170,7 @@
::switches::kDisableWebGLImageChromium,
::switches::kEnableWebGLImageChromium,
::switches::kEnableWebVR,
@@ -130,11 +129,11 @@ Signed-off-by: Daniel Charles <daniel.charles@intel.com>
#endif
--- a/chrome/browser/flag_descriptions.cc
+++ b/chrome/browser/flag_descriptions.cc
@@ -19,6 +19,13 @@
@@ -14,6 +14,13 @@
"Enables the use of the GPU to perform 2d canvas rendering instead of "
"using software rendering.";
+#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
+#if defined(OS_LINUX) && !defined(OS_CHROMEOS) && !defined(OS_ANDROID)
+const char kAcceleratedVideoName[] = "Hardware-accelerated video";
+const char kAcceleratedVideoDescription[] =
+ "Hardware-accelerated video where VA-API driver is installed on the"
@@ -144,15 +143,15 @@ Signed-off-by: Daniel Charles <daniel.charles@intel.com>
const char kAcceleratedVideoDecodeName[] = "Hardware-accelerated video decode";
const char kAcceleratedVideoDecodeDescription[] =
"Hardware-accelerated video decode where available.";
@@ -1578,6 +1585,7 @@
@@ -1603,6 +1610,7 @@
const char kWebrtcEchoCanceller3Description[] =
"Experimental WebRTC echo canceller (AEC3).";
+#if !defined(OS_LINUX) || !defined(OS_CHROMEOS)
+#if defined(OS_CHROMEOS) || defined(OS_ANDROID)
const char kWebrtcHwDecodingName[] = "WebRTC hardware video decoding";
const char kWebrtcHwDecodingDescription[] =
"Support in WebRTC for decoding video streams using platform hardware.";
@@ -1585,6 +1593,7 @@
@@ -1610,6 +1618,7 @@
const char kWebrtcHwEncodingName[] = "WebRTC hardware video encoding";
const char kWebrtcHwEncodingDescription[] =
"Support in WebRTC for encoding video streams using platform hardware.";
@@ -160,7 +159,7 @@ Signed-off-by: Daniel Charles <daniel.charles@intel.com>
const char kWebrtcHwH264EncodingName[] = "WebRTC hardware h264 video encoding";
const char kWebrtcHwH264EncodingDescription[] =
@@ -2396,14 +2405,16 @@
@@ -2440,14 +2449,16 @@
// Chrome OS -------------------------------------------------------------------
@@ -191,7 +190,7 @@ Signed-off-by: Daniel Charles <daniel.charles@intel.com>
extern const char kAcceleratedVideoDecodeName[];
extern const char kAcceleratedVideoDecodeDescription[];
@@ -1483,13 +1487,17 @@
@@ -1501,13 +1505,17 @@
#endif // defined(OS_MACOSX)
@@ -214,75 +213,21 @@ Signed-off-by: Daniel Charles <daniel.charles@intel.com>
--- a/content/browser/gpu/compositor_util.cc
+++ b/content/browser/gpu/compositor_util.cc
@@ -103,7 +103,11 @@
{"video_decode",
manager->IsFeatureBlacklisted(
gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE),
@@ -98,7 +98,11 @@
{"video_decode",
manager->GetFeatureStatus(
gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE),
+#if defined(OS_LINUX) && !defined(OS_CHROMEOS) && !defined(OS_ANDROID)
+ !command_line.HasSwitch(switches::kEnableAcceleratedVideo),
+ !command_line.HasSwitch(switches::kEnableAcceleratedVideo),
+#else
command_line.HasSwitch(switches::kDisableAcceleratedVideoDecode),
command_line.HasSwitch(switches::kDisableAcceleratedVideoDecode),
+#endif
"Accelerated video decode has been disabled, either via blacklist,"
" about:flags or the command line.",
true},
--- a/content/browser/gpu/gpu_data_manager_impl_private.cc
+++ b/content/browser/gpu/gpu_data_manager_impl_private.cc
@@ -709,7 +709,11 @@
DCHECK(command_line);
if (ShouldDisableAcceleratedVideoDecode(command_line))
+#if defined(OS_LINUX) && !defined(OS_CHROMEOS) && !defined(OS_ANDROID)
+ command_line->AppendSwitch(switches::kEnableAcceleratedVideo);
+#else
command_line->AppendSwitch(switches::kDisableAcceleratedVideoDecode);
+#endif
}
void GpuDataManagerImplPrivate::AppendGpuCommandLine(
@@ -810,7 +814,12 @@
prefs->accelerated_2d_canvas_enabled = false;
}
if (!ShouldDisableAcceleratedVideoDecode(command_line) &&
- !command_line->HasSwitch(switches::kDisableAcceleratedVideoDecode)) {
+#if defined(OS_LINUX) && !defined(OS_CHROMEOS) && !defined(OS_ANDROID)
+ command_line->HasSwitch(switches::kEnableAcceleratedVideo)
+#else
+ !command_line->HasSwitch(switches::kDisableAcceleratedVideoDecode)
+#endif
+ ) {
prefs->pepper_accelerated_video_decode_enabled = true;
}
}
@@ -959,7 +968,13 @@
bool GpuDataManagerImplPrivate::ShouldDisableAcceleratedVideoDecode(
const base::CommandLine* command_line) const {
- if (command_line->HasSwitch(switches::kDisableAcceleratedVideoDecode)) {
+ if (
+#if defined(OS_LINUX) && !defined(OS_CHROMEOS) && !defined(OS_ANDROID)
+ !command_line->HasSwitch(switches::kEnableAcceleratedVideo)
+#else
+ command_line->HasSwitch(switches::kDisableAcceleratedVideoDecode)
+#endif
+ ) {
// It was already disabled on the command line.
return false;
}
"Accelerated video decode has been disabled, either via blacklist,"
" about:flags or the command line.",
true},
--- a/content/browser/gpu/gpu_process_host.cc
+++ b/content/browser/gpu/gpu_process_host.cc
@@ -114,13 +114,18 @@
service_manager::switches::kDisableSeccompFilterSandbox,
service_manager::switches::kGpuSandboxAllowSysVShm,
service_manager::switches::kGpuSandboxFailuresFatal,
+#if defined(OS_LINUX) && !defined(OS_CHROMEOS) && !defined(OS_ANDROID)
+ switches::kEnableAcceleratedVideo,
+#else
+ switches::kDisableAcceleratedVideoDecode,
+#endif
switches::kDisableBreakpad,
switches::kDisableGpuRasterization,
switches::kDisableGpuSandbox,
@@ -120,7 +120,7 @@
switches::kDisableGLExtensions,
switches::kDisableLogging,
switches::kDisableShaderNameHashing,
@@ -309,7 +254,7 @@ Signed-off-by: Daniel Charles <daniel.charles@intel.com>
--- a/content/browser/renderer_host/media/video_capture_gpu_jpeg_decoder.cc
+++ b/content/browser/renderer_host/media/video_capture_gpu_jpeg_decoder.cc
@@ -64,15 +64,21 @@
@@ -65,15 +65,21 @@
bool is_platform_supported =
base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kUseFakeJpegDecodeAccelerator);
@@ -337,7 +282,7 @@ Signed-off-by: Daniel Charles <daniel.charles@intel.com>
return;
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -2534,7 +2534,11 @@
@@ -2530,7 +2530,11 @@
switches::kDefaultTileHeight,
switches::kDisable2dCanvasImageChromium,
switches::kDisableAcceleratedJpegDecoding,
@@ -348,8 +293,8 @@ Signed-off-by: Daniel Charles <daniel.charles@intel.com>
+#endif
switches::kDisableBackgroundTimerThrottling,
switches::kDisableBreakpad,
switches::kDisableBrowserSideNavigation,
@@ -2682,8 +2686,10 @@
switches::kDisableCompositorUkmForTests,
@@ -2663,8 +2667,10 @@
switches::kDisableMojoRenderer,
#endif
#if BUILDFLAG(ENABLE_WEBRTC)
@@ -378,15 +323,7 @@ Signed-off-by: Daniel Charles <daniel.charles@intel.com>
private:
--- a/content/gpu/BUILD.gn
+++ b/content/gpu/BUILD.gn
@@ -48,7 +48,6 @@
]
configs += [ "//content:content_implementation" ]
-
deps = [
"//base",
"//base/third_party/dynamic_annotations",
@@ -124,4 +123,8 @@
@@ -125,4 +125,8 @@
if (is_desktop_linux && (!is_chromecast || is_cast_desktop_build)) {
configs += [ "//build/config/linux/dri" ]
}
@@ -397,16 +334,16 @@ Signed-off-by: Daniel Charles <daniel.charles@intel.com>
}
--- a/content/gpu/gpu_main.cc
+++ b/content/gpu/gpu_main.cc
@@ -271,7 +271,7 @@
// Initializes StatisticsRecorder which tracks UMA histograms.
base::StatisticsRecorder::Initialize();
@@ -273,7 +273,7 @@
base::PlatformThread::SetName("CrGpuMain");
-#if defined(OS_ANDROID) || defined(OS_CHROMEOS)
+#if defined(OS_LINUX)
// Set thread priority before sandbox initialization.
base::PlatformThread::SetCurrentThreadPriority(base::ThreadPriority::DISPLAY);
#endif
@@ -300,7 +300,7 @@
@@ -302,7 +302,7 @@
GetContentClient()->SetGpuInfo(gpu_init->gpu_info());
base::ThreadPriority io_thread_priority = base::ThreadPriority::NORMAL;
@@ -425,7 +362,7 @@ Signed-off-by: Daniel Charles <daniel.charles@intel.com>
#include "content/browser/gpu/gpu_process_host.h"
#include "content/public/common/content_features.h"
#include "content/public/common/content_switches.h"
@@ -55,12 +56,19 @@
@@ -55,10 +56,18 @@
gpu_preferences.in_process_gpu =
command_line->HasSwitch(switches::kInProcessGPU);
gpu_preferences.disable_accelerated_video_decode =
@@ -433,17 +370,15 @@ Signed-off-by: Daniel Charles <daniel.charles@intel.com>
+ !command_line->HasSwitch(switches::kEnableAcceleratedVideo);
+#else
command_line->HasSwitch(switches::kDisableAcceleratedVideoDecode);
-#if defined(OS_CHROMEOS)
+#endif
gpu_preferences.disable_accelerated_video_encode =
+#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
+ gpu_preferences.disable_vaapi_accelerated_video_encode =
+ !command_line->HasSwitch(switches::kEnableAcceleratedVideo);
+#elif defined(OS_CHROMEOS)
gpu_preferences.disable_vaapi_accelerated_video_encode =
command_line->HasSwitch(switches::kDisableVaapiAcceleratedVideoEncode);
#endif
+#else
command_line->HasSwitch(switches::kDisableAcceleratedVideoEncode);
-#if BUILDFLAG(ENABLE_WEBRTC)
+#if BUILDFLAG(ENABLE_WEBRTC) && (!defined(OS_LINUX) || defined(OS_CHROMEOS))
+#endif
+#if BUILDFLAG(ENABLE_WEBRTC) && (defined(OS_CHROMEOS) || defined(OS_ANDROID))
gpu_preferences.disable_web_rtc_hw_encoding =
command_line->HasSwitch(switches::kDisableWebRtcHWEncoding);
#endif
@@ -472,7 +407,7 @@ Signed-off-by: Daniel Charles <daniel.charles@intel.com>
// Disables hardware acceleration of video decode, where available.
const char kDisableAcceleratedVideoDecode[] =
"disable-accelerated-video-decode";
@@ -903,11 +912,13 @@
@@ -888,11 +897,13 @@
// ignores this switch on its stable and beta channels.
const char kDisableWebRtcEncryption[] = "disable-webrtc-encryption";
@@ -498,8 +433,8 @@ Signed-off-by: Daniel Charles <daniel.charles@intel.com>
CONTENT_EXPORT extern const char kDisableAcceleratedMjpegDecode[];
+#endif
CONTENT_EXPORT extern const char kDisableAcceleratedVideoDecode[];
CONTENT_EXPORT extern const char kDisableAcceleratedVideoEncode[];
CONTENT_EXPORT extern const char kDisableAudioSupportForDesktopShare[];
extern const char kDisableBackingStoreLimit[];
@@ -107,6 +111,9 @@
CONTENT_EXPORT extern const char kDomAutomationController[];
extern const char kDisable2dCanvasClipAntialiasing[];
@@ -510,7 +445,7 @@ Signed-off-by: Daniel Charles <daniel.charles@intel.com>
CONTENT_EXPORT extern const char kEnableAggressiveDOMStorageFlushing[];
CONTENT_EXPORT extern const char kEnableAutomation[];
CONTENT_EXPORT extern const char kEnablePreferCompositingToLCDText[];
@@ -248,8 +255,10 @@
@@ -244,8 +251,10 @@
#if BUILDFLAG(ENABLE_WEBRTC)
CONTENT_EXPORT extern const char kDisableWebRtcEncryption[];
@@ -523,7 +458,7 @@ Signed-off-by: Daniel Charles <daniel.charles@intel.com>
CONTENT_EXPORT extern const char kEnableWebRtcStunOrigin[];
--- a/content/renderer/media/webrtc/peer_connection_dependency_factory.cc
+++ b/content/renderer/media/webrtc/peer_connection_dependency_factory.cc
@@ -243,10 +243,19 @@
@@ -245,12 +245,19 @@
const base::CommandLine* cmd_line = base::CommandLine::ForCurrentProcess();
if (gpu_factories && gpu_factories->IsGpuVideoAcceleratorEnabled()) {
@@ -540,24 +475,25 @@ Signed-off-by: Daniel Charles <daniel.charles@intel.com>
+#else
+ if (!cmd_line->HasSwitch(switches::kDisableWebRtcHWEncoding))
+#endif
+ {
encoder_factory.reset(new RTCVideoEncoderFactory(gpu_factories));
}
- }
}
#if defined(OS_ANDROID)
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -1496,7 +1496,11 @@
@@ -1485,7 +1485,11 @@
scoped_refptr<base::SingleThreadTaskRunner> media_task_runner =
GetMediaThreadTaskRunner();
const bool enable_video_accelerator =
+#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
+ cmd_line->HasSwitch(switches::kEnableAcceleratedVideo);
+ cmd_line->HasSwitch(switches::kEnableAcceleratedVideo) &&
+#else
!cmd_line->HasSwitch(switches::kDisableAcceleratedVideoDecode);
!cmd_line->HasSwitch(switches::kDisableAcceleratedVideoDecode) &&
+#endif
const bool enable_gpu_memory_buffer_video_frames =
!is_gpu_compositing_disabled_ &&
#if defined(OS_MACOSX) || defined(OS_LINUX)
(gpu_channel_host->gpu_feature_info()
.status_values[gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE] ==
gpu::kGpuFeatureStatusEnabled);
--- a/gpu/config/software_rendering_list.json
+++ b/gpu/config/software_rendering_list.json
@@ -373,17 +373,6 @@
@@ -580,7 +516,7 @@ Signed-off-by: Daniel Charles <daniel.charles@intel.com>
"cr_bugs": [145531, 332596, 571899, 629434],
--- a/media/gpu/BUILD.gn
+++ b/media/gpu/BUILD.gn
@@ -25,6 +25,14 @@
@@ -24,6 +24,14 @@
import("//build/config/mac/mac_sdk.gni")
}
@@ -595,7 +531,7 @@ Signed-off-by: Daniel Charles <daniel.charles@intel.com>
if (use_vaapi) {
action("libva_generate_stubs") {
extra_header = "vaapi/va_stub_header.fragment"
@@ -356,6 +364,10 @@
@@ -353,6 +361,10 @@
if (use_ozone) {
deps += [ "//ui/ozone" ]
}
@@ -606,13 +542,3 @@ Signed-off-by: Daniel Charles <daniel.charles@intel.com>
}
if (is_win) {
--- a/media/gpu/gpu_video_decode_accelerator_factory.cc
+++ b/media/gpu/gpu_video_decode_accelerator_factory.cc
@@ -87,6 +87,7 @@
// profile (instead of calculating a superset).
// TODO(posciak,henryhsu): improve this so that we choose a superset of
// resolutions and other supported profile parameters.
+ DVLOG(1) << "Get Supported profiles";
#if defined(OS_WIN)
capabilities.supported_profiles =
DXVAVideoDecodeAccelerator::GetSupportedProfiles(gpu_preferences,
@@ -1,35 +0,0 @@
From 51357dc19efbf30328ca05655fbf69886f6e9113 Mon Sep 17 00:00:00 2001
From: Julien Isorce <julien.isorce@chromium.org>
Date: Tue, 05 Dec 2017 23:39:45 +0000
Subject: [PATCH] Allow RGBX for VaapiTFPPicture
Fixes regression on non-ozone platforms and introduced by
73d609f366ba6a86324048bbad81527f76d237b5
https://chromium-review.googlesource.com/787290
Note that the format is only used for sanity check. All the logic is
done automatically in the vaapi driver's implementation of vaPutSurface.
Bug: 785201
Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
Change-Id: Idc0bdf184874bf2c238e28da6f42f4e3572e9743
Reviewed-on: https://chromium-review.googlesource.com/807928
Reviewed-by: Dan Sanders <sandersd@chromium.org>
Commit-Queue: Julien Isorce <julien.isorce@chromium.org>
Cr-Commit-Position: refs/heads/master@{#521897}
---
diff --git a/media/gpu/vaapi/vaapi_tfp_picture.cc b/media/gpu/vaapi/vaapi_tfp_picture.cc
index e9eecce..bd7823c 100644
--- a/media/gpu/vaapi/vaapi_tfp_picture.cc
+++ b/media/gpu/vaapi/vaapi_tfp_picture.cc
@@ -72,7 +72,8 @@
bool VaapiTFPPicture::Allocate(gfx::BufferFormat format) {
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
if (format != gfx::BufferFormat::BGRX_8888 &&
- format != gfx::BufferFormat::BGRA_8888) {
+ format != gfx::BufferFormat::BGRA_8888 &&
+ format != gfx::BufferFormat::RGBX_8888) {
DLOG(ERROR) << "Unsupported format";
return false;
}
@@ -73,7 +73,7 @@ by default.
--- a/build/mac/tweak_info_plist.py
+++ b/build/mac/tweak_info_plist.py
@@ -209,7 +209,7 @@ def _AddKeystoneKeys(plist, bundle_ident
@@ -209,7 +209,7 @@
also requires the |bundle_identifier| argument (com.example.product)."""
plist['KSVersion'] = plist['CFBundleShortVersionString']
plist['KSProductID'] = bundle_identifier
@@ -84,7 +84,7 @@ by default.
for tag_suffix in _TagSuffixes():
--- a/chrome/browser/chromeos/customization/customization_document.cc
+++ b/chrome/browser/chromeos/customization/customization_document.cc
@@ -167,7 +167,7 @@ std::string ReadFileInBackground(const b
@@ -168,7 +168,7 @@
// Template URL where to fetch OEM services customization manifest from.
const char ServicesCustomizationDocument::kManifestUrl[] =
@@ -95,7 +95,7 @@ by default.
// creates and uses to publish OEM default apps to the extensions system.
--- a/chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc
+++ b/chrome/browser/chromeos/extensions/file_manager/private_api_drive.cc
@@ -1129,7 +1129,7 @@ void FileManagerPrivateInternalGetDownlo
@@ -1129,7 +1129,7 @@
SigninManagerFactory::GetForProfile(GetProfile());
const std::string& account_id = signin_manager->GetAuthenticatedAccountId();
std::vector<std::string> scopes;
@@ -106,7 +106,7 @@ by default.
new google_apis::AuthService(oauth2_token_service,
--- a/chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc
+++ b/chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc
@@ -66,7 +66,7 @@ namespace {
@@ -65,7 +65,7 @@
using api::file_manager_private::ProfileInfo;
@@ -117,7 +117,7 @@ by default.
AppWindow* GetCurrentAppWindow(UIThreadExtensionFunction* function) {
--- a/chrome/browser/chromeos/extensions/file_manager/private_api_strings.cc
+++ b/chrome/browser/chromeos/extensions/file_manager/private_api_strings.cc
@@ -22,26 +22,26 @@ namespace {
@@ -22,26 +22,26 @@
// Location of the page to buy more storage for Google Drive.
const char kGoogleDriveBuyStorageUrl[] =
@@ -152,7 +152,7 @@ by default.
const int kDownloadsLowSpaceWarningHelpNumber = 1061547;
--- a/chrome/browser/extensions/api/cryptotoken_private/cryptotoken_private_api.cc
+++ b/chrome/browser/extensions/api/cryptotoken_private/cryptotoken_private_api.cc
@@ -16,8 +16,8 @@ namespace {
@@ -29,8 +29,8 @@
const char kGoogleDotCom[] = "google.com";
constexpr const char* kGoogleGstaticAppIds[] = {
@@ -161,11 +161,11 @@ by default.
+ "trk:273:https://www.gstatic.com/securitykey/origins.json",
+ "trk:274:https://www.gstatic.com/securitykey/a/google.com/origins.json"};
} // namespace
// ContainsAppIdByHash returns true iff the SHA-256 hash of one of the
// elements of |list| equals |hash|.
--- a/chrome/browser/extensions/install_signer.cc
+++ b/chrome/browser/extensions/install_signer.cc
@@ -66,7 +66,7 @@ const int kSignatureFormatVersion = 2;
@@ -65,7 +65,7 @@
const size_t kSaltBytes = 32;
const char kBackendUrl[] =
@@ -174,17 +174,9 @@ by default.
const char kPublicKeyPEM[] = \
"-----BEGIN PUBLIC KEY-----" \
--- a/chrome/browser/media/media_url_constants.cc
+++ b/chrome/browser/media/media_url_constants.cc
@@ -4,4 +4,4 @@
#include "chrome/browser/media/media_url_constants.h"
-const char kUploadURL[] = "https://clients2.google.com/cr/report";
+const char kUploadURL[] = "trk:108:https://clients2.google.com/cr/report";
--- a/chrome/browser/nacl_host/nacl_infobar_delegate.cc
+++ b/chrome/browser/nacl_host/nacl_infobar_delegate.cc
@@ -56,5 +56,5 @@ base::string16 NaClInfoBarDelegate::GetL
@@ -42,5 +42,5 @@
}
GURL NaClInfoBarDelegate::GetLinkURL() const {
@@ -193,7 +185,7 @@ by default.
}
--- a/chrome/browser/net/predictor.cc
+++ b/chrome/browser/net/predictor.cc
@@ -350,7 +350,7 @@ std::vector<GURL> Predictor::GetPredicte
@@ -350,7 +350,7 @@
}
if (urls.empty())
@@ -204,7 +196,7 @@ by default.
}
--- a/chrome/browser/profiles/profile_avatar_downloader.cc
+++ b/chrome/browser/profiles/profile_avatar_downloader.cc
@@ -17,7 +17,7 @@
@@ -18,7 +18,7 @@
namespace {
const char kHighResAvatarDownloadUrlPrefix[] =
@@ -215,7 +207,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
@@ -78,9 +78,9 @@ cvox.ChromeVoxPrefs.DEFAULT_PREFS = {
@@ -78,9 +78,9 @@
'position': '{}',
'siteSpecificEnhancements': true,
'siteSpecificScriptBase':
@@ -250,7 +242,7 @@ by default.
--- a/chrome/browser/safe_browsing/client_side_detection_service.cc
+++ b/chrome/browser/safe_browsing/client_side_detection_service.cc
@@ -77,9 +77,9 @@ const int ClientSideDetectionService::kN
@@ -77,9 +77,9 @@
const int ClientSideDetectionService::kPositiveCacheIntervalMinutes = 30;
const char ClientSideDetectionService::kClientReportPhishingUrl[] =
@@ -264,7 +256,7 @@ by default.
std::unique_ptr<net::URLFetcher> fetcher;
--- a/chrome/browser/safe_browsing/download_protection/download_feedback.cc
+++ b/chrome/browser/safe_browsing/download_protection/download_feedback.cc
@@ -230,7 +230,7 @@ const int64_t DownloadFeedback::kMaxUplo
@@ -230,7 +230,7 @@
// static
const char DownloadFeedback::kSbFeedbackURL[] =
@@ -275,7 +267,7 @@ by default.
DownloadFeedbackFactory* DownloadFeedback::factory_ = nullptr;
--- a/chrome/browser/safe_search_api/safe_search_url_checker.cc
+++ b/chrome/browser/safe_search_api/safe_search_url_checker.cc
@@ -32,7 +32,7 @@ using net::URLRequestStatus;
@@ -32,7 +32,7 @@
namespace {
@@ -286,7 +278,7 @@ by default.
--- a/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
+++ b/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
@@ -234,7 +234,7 @@ void SpellcheckHunspellDictionary::OnURL
@@ -234,7 +234,7 @@
GURL SpellcheckHunspellDictionary::GetDictionaryURL() {
static const char kDownloadServerUrl[] =
@@ -297,7 +289,7 @@ by default.
DCHECK(!bdict_file.empty());
--- a/chrome/browser/supervised_user/supervised_user_service.cc
+++ b/chrome/browser/supervised_user/supervised_user_service.cc
@@ -103,7 +103,7 @@ namespace {
@@ -103,7 +103,7 @@
// The URL from which to download a host blacklist if no local one exists yet.
const char kBlacklistURL[] =
@@ -308,18 +300,18 @@ by default.
--- a/chrome/browser/tracing/crash_service_uploader.cc
+++ b/chrome/browser/tracing/crash_service_uploader.cc
@@ -39,7 +39,7 @@ using std::string;
@@ -40,7 +40,7 @@
namespace {
-const char kUploadURL[] = "https://clients2.google.com/cr/report";
+const char kUploadURL[] = "trk:109:https://clients2.google.com/cr/report";
const char kUploadContentType[] = "multipart/form-data";
const char kMultipartBoundary[] =
const char kCrashUploadContentType[] = "multipart/form-data";
const char kCrashMultipartBoundary[] =
"----**--yradnuoBgoLtrapitluMklaTelgooG--**----";
--- a/chrome/browser/ui/views/outdated_upgrade_bubble_view.cc
+++ b/chrome/browser/ui/views/outdated_upgrade_bubble_view.cc
@@ -32,7 +32,7 @@ namespace {
@@ -32,7 +32,7 @@
// The URL to be used to re-install Chrome when auto-update failed for too long.
constexpr char kDownloadChromeUrl[] =
@@ -330,7 +322,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
@@ -66,17 +66,17 @@ namespace {
@@ -66,17 +66,17 @@
// The URL for the the Learn More page shown on incognito new tab.
const char kLearnMoreIncognitoUrl[] =
#if defined(OS_CHROMEOS)
@@ -354,7 +346,7 @@ by default.
SkColor GetThemeColor(const ui::ThemeProvider& tp, int id) {
--- a/chrome/common/extensions/chrome_extensions_client.cc
+++ b/chrome/common/extensions/chrome_extensions_client.cc
@@ -58,9 +58,9 @@ namespace {
@@ -58,9 +58,9 @@
// TODO(battre): Delete the HTTP URL once the blacklist is downloaded via HTTPS.
const char kExtensionBlocklistUrlPrefix[] =
@@ -368,7 +360,7 @@ by default.
--- a/chrome/common/extensions/extension_constants.cc
+++ b/chrome/common/extensions/extension_constants.cc
@@ -11,7 +11,7 @@ namespace extension_urls {
@@ -11,7 +11,7 @@
namespace {
const char kGalleryUpdateHttpsUrl[] =
@@ -379,7 +371,7 @@ by default.
--- a/chrome/common/url_constants.cc
+++ b/chrome/common/url_constants.cc
@@ -23,7 +23,7 @@ const char kCupsPrintLearnMoreURL[] =
@@ -23,7 +23,7 @@
const char kEULAPathFormat[] = "/usr/share/chromeos-assets/eula/%s/eula.html";
const char kOemEulaURLPath[] = "oem";
const char kOnlineEulaURLPath[] =
@@ -388,7 +380,7 @@ by default.
const char kChromeOSCreditsPath[] =
"/opt/google/chrome/resources/about_os_credits.html";
@@ -35,7 +35,7 @@ const char kChromeOSAssetPath[] = "/usr/
@@ -35,7 +35,7 @@
const char kExtensionInvalidRequestURL[] = "chrome-extension://invalid/";
const char kSyncGoogleDashboardURL[] =
@@ -397,7 +389,7 @@ by default.
const char kGoogleAccountActivityControlsURL[] =
"https://myaccount.google.com/activitycontrols/search";
@@ -237,7 +237,7 @@ const char kCloudPrintLearnMoreURL[] =
@@ -240,7 +240,7 @@
#endif
const char kCloudPrintNoDestinationsLearnMoreURL[] =
@@ -408,7 +400,7 @@ by default.
"https://support.google.com/chrome_webstore/?p=cws_app_launcher";
--- a/chrome/installer/util/google_chrome_distribution.cc
+++ b/chrome/installer/util/google_chrome_distribution.cc
@@ -48,7 +48,7 @@ base::string16 LocalizeUrl(const wchar_t
@@ -48,7 +48,7 @@
}
base::string16 GetUninstallSurveyUrl() {
@@ -419,7 +411,7 @@ by default.
}
--- a/chromecast/browser/service/cast_service_simple.cc
+++ b/chromecast/browser/service/cast_service_simple.cc
@@ -25,7 +25,7 @@ GURL GetStartupURL() {
@@ -24,7 +24,7 @@
const base::CommandLine::StringVector& args = command_line->GetArgs();
if (args.empty())
@@ -430,7 +422,7 @@ by default.
if (url.is_valid() && url.has_scheme())
--- a/chromeos/geolocation/simple_geolocation_provider.cc
+++ b/chromeos/geolocation/simple_geolocation_provider.cc
@@ -20,7 +20,7 @@ namespace chromeos {
@@ -20,7 +20,7 @@
namespace {
const char kDefaultGeolocationProviderUrl[] =
@@ -468,7 +460,7 @@ by default.
--- a/components/crash/content/app/breakpad_linux.cc
+++ b/components/crash/content/app/breakpad_linux.cc
@@ -88,7 +88,7 @@ namespace breakpad {
@@ -87,7 +87,7 @@
namespace {
#if !defined(OS_CHROMEOS)
@@ -479,7 +471,7 @@ by default.
bool g_is_crash_reporter_enabled = false;
--- a/components/drive/service/drive_api_service.cc
+++ b/components/drive/service/drive_api_service.cc
@@ -78,11 +78,11 @@ namespace drive {
@@ -77,11 +77,11 @@
namespace {
// OAuth2 scopes for Drive API.
@@ -497,7 +489,7 @@ by default.
const char kFolderMimeType[] = "application/vnd.google-apps.folder";
--- a/components/feedback/feedback_uploader.cc
+++ b/components/feedback/feedback_uploader.cc
@@ -24,7 +24,7 @@ constexpr base::FilePath::CharType kFeed
@@ -24,7 +24,7 @@
FILE_PATH_LITERAL("Feedback Reports");
constexpr char kFeedbackPostUrl[] =
@@ -508,7 +500,7 @@ by default.
--- a/components/gcm_driver/gcm_account_tracker.cc
+++ b/components/gcm_driver/gcm_account_tracker.cc
@@ -23,9 +23,9 @@ namespace gcm {
@@ -23,9 +23,9 @@
namespace {
// Scopes needed by the OAuth2 access tokens.
@@ -522,7 +514,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 {
const char kHistoryOAuthScope[] =
@@ -541,7 +533,7 @@ by default.
"https://history.google.com/history/api/lookup?client=audio";
--- a/components/invalidation/impl/gcm_network_channel.cc
+++ b/components/invalidation/impl/gcm_network_channel.cc
@@ -39,7 +39,7 @@ namespace syncer {
@@ -39,7 +39,7 @@
namespace {
const char kCacheInvalidationEndpointUrl[] =
@@ -581,7 +573,7 @@ by default.
--- a/components/password_manager/core/browser/password_store.cc
+++ b/components/password_manager/core/browser/password_store.cc
@@ -208,10 +208,10 @@ void PasswordStore::GetLogins(const Form
@@ -210,10 +210,10 @@
// TODO(mdm): actually delete them at some point, say M24 or so.
base::Time ignore_logins_cutoff; // the null time
if (form.scheme == PasswordForm::SCHEME_HTML &&
@@ -598,7 +590,7 @@ by default.
base::Time out_time;
--- a/components/policy/core/common/policy_loader_win.cc
+++ b/components/policy/core/common/policy_loader_win.cc
@@ -60,7 +60,7 @@ const char kKeyThirdParty[] = "3rdparty"
@@ -60,7 +60,7 @@
// The web store url that is the only trusted source for extensions.
const char kExpectedWebStoreUrl[] =
@@ -618,7 +610,7 @@ by default.
'id': 34,
'caption': '''Configure the list of force-installed apps and extensions''',
'tags': ['full-admin-access'],
@@ -5906,7 +5906,7 @@
@@ -5904,7 +5904,7 @@
'features': {
'dynamic_refresh': True,
},
@@ -629,18 +621,18 @@ by default.
'tags': [],
--- a/components/rappor/rappor_service_impl.cc
+++ b/components/rappor/rappor_service_impl.cc
@@ -37,7 +37,7 @@ const char kRapporRolloutFieldTrialName[
const char kRapporRolloutServerUrlParam[] = "ServerUrl";
@@ -30,7 +30,7 @@
const char kRapporDailyEventHistogram[] = "Rappor.DailyEvent.IntervalType";
// The rappor server's URL.
-const char kDefaultServerUrl[] = "https://clients4.google.com/rappor";
+const char kDefaultServerUrl[] = "trk:266:https://clients4.google.com/rappor";
GURL GetServerUrl() {
std::string server_url = variations::GetVariationParamValue(
} // namespace
--- a/components/search_engines/prepopulated_engines.json
+++ b/components/search_engines/prepopulated_engines.json
@@ -124,7 +124,7 @@
@@ -128,7 +128,7 @@
"google": {
"name": "Google",
"keyword": "google.com",
@@ -651,7 +643,7 @@ by default.
"image_url": "{google:baseURL}searchbyimage/upload",
--- a/components/translate/core/browser/translate_url_fetcher.cc
+++ b/components/translate/core/browser/translate_url_fetcher.cc
@@ -112,6 +112,7 @@ bool TranslateURLFetcher::Request(
@@ -106,6 +106,7 @@
if (!extra_request_header_.empty())
fetcher_->SetExtraRequestHeaders(extra_request_header_);
@@ -661,8 +653,8 @@ by default.
return true;
--- a/components/translate/core/common/translate_util.cc
+++ b/components/translate/core/common/translate_util.cc
@@ -76,7 +76,7 @@ const LanguageCodePair kLanguageCodeChin
{"zh-CN", "zh"},
@@ -75,7 +75,7 @@
{"zh-CN", "zh-SG"},
};
-const char kSecurityOrigin[] = "https://translate.googleapis.com/";
@@ -672,17 +664,18 @@ by default.
for (size_t i = 0; i < arraysize(kLanguageCodeSimilitudes); ++i) {
--- a/components/variations/variations_url_constants.cc
+++ b/components/variations/variations_url_constants.cc
@@ -8,6 +8,6 @@ namespace variations {
@@ -8,7 +8,7 @@
// Default server of Variations seed info.
const char kDefaultServerUrl[] =
- "https://clientservices.googleapis.com/chrome-variations/seed";
+ "trk:142:https://clientservices.googleapis.com/chrome-variations/seed";
} // namespace variations
const char kDefaultInsecureServerUrl[] =
"http://clientservices.googleapis.com/chrome-variations/seed";
--- a/content/browser/speech/speech_recognition_engine.cc
+++ b/content/browser/speech/speech_recognition_engine.cc
@@ -34,7 +34,7 @@ namespace content {
@@ -34,7 +34,7 @@
namespace {
const char kWebServiceBaseUrl[] =
@@ -693,7 +686,7 @@ by default.
--- a/content/shell/browser/shell_browser_main_parts.cc
+++ b/content/shell/browser/shell_browser_main_parts.cc
@@ -73,7 +73,7 @@ GURL GetStartupURL() {
@@ -74,7 +74,7 @@
#endif
if (args.empty())
@@ -704,7 +697,7 @@ by default.
if (url.is_valid() && url.has_scheme())
--- a/google_apis/gaia/gaia_constants.cc
+++ b/google_apis/gaia/gaia_constants.cc
@@ -24,31 +24,31 @@ const char kSyncService[] = "chromiumsyn
@@ -24,31 +24,31 @@
const char kRemotingService[] = "chromoting";
// OAuth scopes.
@@ -747,7 +740,7 @@ by default.
const char kGaiaSid[] = "sid";
--- a/google_apis/gaia/google_service_auth_error.cc
+++ b/google_apis/gaia/google_service_auth_error.cc
@@ -253,7 +253,7 @@ std::string GoogleServiceAuthError::ToSt
@@ -253,7 +253,7 @@
case WEB_LOGIN_REQUIRED:
return "Less secure apps may not authenticate with this account. "
"Please visit: "
@@ -758,7 +751,7 @@ by default.
return std::string();
--- a/google_apis/gcm/engine/gservices_settings.cc
+++ b/google_apis/gcm/engine/gservices_settings.cc
@@ -29,18 +29,18 @@ const char kRegistrationURLKey[] = "gcm_
@@ -29,18 +29,18 @@
const int64_t kDefaultCheckinInterval = 2 * 24 * 60 * 60; // seconds = 2 days.
const int64_t kMinimumCheckinInterval = 12 * 60 * 60; // seconds = 12 hours.
@@ -782,7 +775,7 @@ by default.
std::string MakeMCSEndpoint(const std::string& mcs_hostname, int port) {
--- a/jingle/notifier/base/gaia_token_pre_xmpp_auth.cc
+++ b/jingle/notifier/base/gaia_token_pre_xmpp_auth.cc
@@ -32,7 +32,7 @@ class GaiaCookieMechanism : public buzz:
@@ -32,7 +32,7 @@
// These attributes are necessary for working with non-gmail gaia
// accounts.
const std::string NS_GOOGLE_AUTH_PROTOCOL(
@@ -793,7 +786,7 @@ by default.
const buzz::QName QN_GOOGLE_AUTH_CLIENT_USES_FULL_BIND_RESULT(
--- a/remoting/base/breakpad_mac.mm
+++ b/remoting/base/breakpad_mac.mm
@@ -56,7 +56,7 @@ void InitializeCrashReporting() {
@@ -56,7 +56,7 @@
forKey:@BREAKPAD_REPORT_INTERVAL];
}
if (![breakpad_config objectForKey:@BREAKPAD_URL]) {
@@ -804,7 +797,7 @@ by default.
--- a/remoting/protocol/jingle_messages.cc
+++ b/remoting/protocol/jingle_messages.cc
@@ -25,7 +25,7 @@ const char kJabberNamespace[] = "jabber:
@@ -25,7 +25,7 @@
const char kJingleNamespace[] = "urn:xmpp:jingle:1";
// Namespace for transport messages when using standard ICE.
@@ -815,7 +808,7 @@ by default.
--- a/remoting/webapp/base/js/xmpp_login_handler.js
+++ b/remoting/webapp/base/js/xmpp_login_handler.js
@@ -295,7 +295,7 @@ remoting.XmppLoginHandler.prototype.star
@@ -295,7 +295,7 @@
'auth:allow-generated-jid="true" ' +
'auth:client-uses-full-bind-result="true" ' +
'auth:allow-non-google-login="true" ' +
@@ -837,7 +830,7 @@ by default.
"https://www.googleapis.com/auth/googletalk",
--- a/ui/app_list/demo/app_list_demo_views.cc
+++ b/ui/app_list/demo/app_list_demo_views.cc
@@ -93,7 +93,7 @@ views::View* DemoAppListViewDelegate::Cr
@@ -93,7 +93,7 @@
const gfx::Size& size) {
web_contents_.reset(content::WebContents::Create(
content::WebContents::CreateParams(browser_context_)));
@@ -848,8 +841,8 @@ by default.
std::string());
--- a/ui/views/examples/webview_example.cc
+++ b/ui/views/examples/webview_example.cc
@@ -27,7 +27,7 @@ void WebViewExample::CreateExampleView(V
container->SetLayoutManager(new FillLayout);
@@ -27,7 +27,7 @@
container->SetLayoutManager(std::make_unique<FillLayout>());
container->AddChildView(webview_);
- webview_->LoadInitialURL(GURL("http://www.google.com/"));
@@ -859,7 +852,7 @@ by default.
--- a/extensions/browser/updater/safe_manifest_parser.cc
+++ b/extensions/browser/updater/safe_manifest_parser.cc
@@ -26,7 +26,7 @@ namespace {
@@ -26,7 +26,7 @@
constexpr char kExpectedGupdateProtocol[] = "2.0";
constexpr char kExpectedGupdateXmlns[] =
@@ -868,3 +861,14 @@ by default.
void ReportError(ParseUpdateManifestCallback callback,
const std::string& error) {
--- a/chrome/browser/media/webrtc/webrtc_log_uploader.cc
+++ b/chrome/browser/media/webrtc/webrtc_log_uploader.cc
@@ -471,7 +471,7 @@
"Not implemented, it would be good to do so."
})");
- constexpr char kUploadURL[] = "https://clients2.google.com/cr/report";
+ constexpr char kUploadURL[] = "trk:108:https://clients2.google.com/cr/report";
std::unique_ptr<net::URLFetcher> url_fetcher(net::URLFetcher::Create(
GURL(kUploadURL), net::URLFetcher::POST, this, traffic_annotation));
url_fetcher->SetUploadData(content_type, *post_data);
@@ -9,7 +9,7 @@ Subject: [PATCH 56/66] browser: disable profile auto-import on first run
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -1624,8 +1624,6 @@ int ChromeBrowserMainParts::PreMainMessa
@@ -1657,8 +1657,6 @@
// and preferences have been registered since some of the import code depends
// on preferences.
if (first_run::IsChromeFirstRun()) {
@@ -58,7 +58,7 @@ stripped and processing continues with the inner URL.
--- a/chrome/BUILD.gn
+++ b/chrome/BUILD.gn
@@ -246,6 +246,7 @@ if (!is_android && !is_mac) {
@@ -246,6 +246,7 @@
deps += [
# On Linux, link the dependencies (libraries) that make up actual
# Chromium functionality directly into the executable.
@@ -66,7 +66,7 @@ stripped and processing continues with the inner URL.
":browser_dependencies",
":child_dependencies",
@@ -492,6 +493,7 @@ if (is_win) {
@@ -495,6 +496,7 @@
"//content/public/app:child",
"//content/public/common:service_names",
"//headless:headless_shell_child_lib",
@@ -87,7 +87,7 @@ stripped and processing continues with the inner URL.
#if BUILDFLAG(ENABLE_MUS)
#include "services/service_manager/runner/common/client_util.h"
@@ -49,6 +53,19 @@ int ChromeMain(int argc, const char** ar
@@ -49,6 +53,19 @@
}
#endif
@@ -107,8 +107,8 @@ stripped and processing continues with the inner URL.
#if defined(OS_WIN)
DLLEXPORT int __cdecl ChromeMain(HINSTANCE instance,
sandbox::SandboxInterfaceInfo* sandbox_info,
@@ -127,6 +144,9 @@ int ChromeMain(int argc, const char** ar
}
@@ -126,6 +143,9 @@
#endif // defined(OS_CHROMEOS)
#endif // BUILDFLAG(ENABLE_MUS)
+#if !defined(CHROME_MULTIPLE_DLL_CHILD)
@@ -119,7 +119,7 @@ stripped and processing continues with the inner URL.
return rv;
--- a/chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.cc
+++ b/chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.cc
@@ -25,6 +25,7 @@ ChromeAutocompleteSchemeClassifier::GetI
@@ -25,6 +25,7 @@
if (base::IsStringASCII(scheme) &&
(ProfileIOData::IsHandledProtocol(scheme) ||
base::LowerCaseEqualsASCII(scheme, content::kViewSourceScheme) ||
@@ -129,7 +129,7 @@ stripped and processing continues with the inner URL.
return metrics::OmniboxInputType::URL;
--- a/chrome/browser/history/history_utils.cc
+++ b/chrome/browser/history/history_utils.cc
@@ -21,6 +21,7 @@ bool CanAddURLToHistory(const GURL& url)
@@ -21,6 +21,7 @@
url.SchemeIs(content::kChromeDevToolsScheme) ||
url.SchemeIs(content::kChromeUIScheme) ||
url.SchemeIs(content::kViewSourceScheme) ||
@@ -139,7 +139,7 @@ stripped and processing continues with the inner URL.
url.SchemeIs(dom_distiller::kDomDistillerScheme))
--- a/chrome/browser/ui/browser_navigator.cc
+++ b/chrome/browser/ui/browser_navigator.cc
@@ -658,6 +658,14 @@ bool IsURLAllowedInIncognito(const GURL&
@@ -695,6 +695,14 @@
return stripped_url.is_valid() &&
IsURLAllowedInIncognito(stripped_url, browser_context);
}
@@ -156,7 +156,7 @@ stripped and processing continues with the inner URL.
// chrome://settings.
--- a/chrome/browser/ui/singleton_tabs.cc
+++ b/chrome/browser/ui/singleton_tabs.cc
@@ -99,7 +99,8 @@ int GetIndexOfSingletonTab(NavigateParam
@@ -101,7 +101,8 @@
// Skip view-source tabs. This is needed because RewriteURLIfNecessary
// removes the "view-source:" scheme which leads to incorrect matching.
@@ -168,7 +168,7 @@ stripped and processing continues with the inner URL.
GURL rewritten_tab_url = tab_url;
--- a/components/infobars/core/infobar_delegate.h
+++ b/components/infobars/core/infobar_delegate.h
@@ -147,6 +147,7 @@ class InfoBarDelegate {
@@ -148,6 +148,7 @@
FRAMEBUST_BLOCK_INFOBAR_ANDROID = 77,
SURVEY_INFOBAR_ANDROID = 78,
NEAR_OOM_INFOBAR_ANDROID = 79,
@@ -178,7 +178,7 @@ stripped and processing continues with the inner URL.
// Describes navigation events, used to decide whether infobars should be
--- a/components/omnibox/browser/autocomplete_input.cc
+++ b/components/omnibox/browser/autocomplete_input.cc
@@ -474,7 +474,8 @@ void AutocompleteInput::ParseForEmphasiz
@@ -486,7 +486,8 @@
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.
@@ -188,7 +188,7 @@ stripped and processing continues with the inner URL.
(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));
@@ -543,9 +544,10 @@ int AutocompleteInput::NumNonHostCompone
@@ -555,9 +556,10 @@
bool AutocompleteInput::HasHTTPScheme(const base::string16& input) {
std::string utf8_input(base::UTF16ToUTF8(input));
url::Component scheme;
@@ -232,7 +232,7 @@ stripped and processing continues with the inner URL.
// Handles rewriting view-source URLs for what we'll actually load.
static bool HandleViewSource(GURL* url, BrowserContext* browser_context) {
if (url->SchemeIs(kViewSourceScheme)) {
@@ -100,6 +119,7 @@ BrowserURLHandlerImpl::BrowserURLHandler
@@ -100,6 +119,7 @@
AddHandlerPair(&HandleViewSource, &ReverseViewSource);
GetContentClient()->browser()->BrowserURLHandlerCreated(this);
@@ -242,7 +242,7 @@ stripped and processing continues with the inner URL.
BrowserURLHandlerImpl::~BrowserURLHandlerImpl() {
--- a/content/browser/child_process_security_policy_impl.cc
+++ b/content/browser/child_process_security_policy_impl.cc
@@ -355,6 +355,7 @@ ChildProcessSecurityPolicyImpl::ChildPro
@@ -350,6 +350,7 @@
RegisterPseudoScheme(kViewSourceScheme);
RegisterPseudoScheme(url::kHttpSuboriginScheme);
RegisterPseudoScheme(url::kHttpsSuboriginScheme);
@@ -433,7 +433,7 @@ stripped and processing continues with the inner URL.
+#endif /* IRIDIUM_TRKNOTIFY_H */
--- a/net/url_request/url_request.cc
+++ b/net/url_request/url_request.cc
@@ -52,6 +52,8 @@ using std::string;
@@ -53,6 +53,8 @@
namespace net {
@@ -442,20 +442,21 @@ stripped and processing continues with the inner URL.
namespace {
// TODO(battre): Delete this, see http://crbug.com/89321:
@@ -578,6 +580,10 @@ URLRequest::URLRequest(const GURL& url,
@@ -581,6 +583,11 @@
// Sanity check out environment.
DCHECK(base::ThreadTaskRunnerHandle::IsSet());
+ if (trace_urlreq_cb != NULL)
+ (*trace_urlreq_cb)("URLRequest", url);
+ if (url.scheme() == url::kTraceScheme)
+ url_chain_[0] = url.strip_trk();
context->InsertURLRequest(this);
+ if (trace_urlreq_cb != NULL)
+ (*trace_urlreq_cb)("URLRequest", url);
+ if (url.scheme() == url::kTraceScheme)
+ url_chain_[0] = url.strip_trk();
+
context->url_requests()->insert(this);
net_log_.BeginEvent(
NetLogEventType::REQUEST_ALIVE,
--- a/net/url_request/url_request.h
+++ b/net/url_request/url_request.h
@@ -901,6 +901,8 @@ class NET_EXPORT URLRequest : public bas
@@ -913,6 +913,8 @@
DISALLOW_COPY_AND_ASSIGN(URLRequest);
};
@@ -466,7 +467,7 @@ stripped and processing continues with the inner URL.
#endif // NET_URL_REQUEST_URL_REQUEST_H_
--- a/tools/metrics/histograms/enums.xml
+++ b/tools/metrics/histograms/enums.xml
@@ -21873,6 +21873,7 @@ Called by update_gpu_driver_bug_workarou
@@ -22508,6 +22508,7 @@
<int value="77" label="FRAMEBUST_BLOCK_INFOBAR_ANDROID"/>
<int value="78" label="SURVEY_INFOBAR_ANDROID"/>
<int value="79" label="NEAR_OOM_INFOBAR_ANDROID"/>
@@ -476,7 +477,7 @@ stripped and processing continues with the inner URL.
<enum name="InfoBarResponse">
--- a/url/gurl.cc
+++ b/url/gurl.cc
@@ -470,6 +470,41 @@ size_t GURL::EstimateMemoryUsage() const
@@ -470,6 +470,41 @@
(parsed_.inner_parsed() ? sizeof(url::Parsed) : 0);
}
@@ -520,7 +521,7 @@ stripped and processing continues with the inner URL.
}
--- a/url/gurl.h
+++ b/url/gurl.h
@@ -433,6 +433,9 @@ class URL_EXPORT GURL {
@@ -432,6 +432,9 @@
// See base/trace_event/memory_usage_estimator.h for more info.
size_t EstimateMemoryUsage() const;
@@ -530,7 +531,7 @@ stripped and processing continues with the inner URL.
private:
// Variant of the string parsing constructor that allows the caller to elect
// retain trailing whitespace, if any, on the passed URL spec, but only if
@@ -477,6 +480,8 @@ class URL_EXPORT GURL {
@@ -476,6 +479,8 @@
// Stream operator so GURL can be used in assertion statements.
URL_EXPORT std::ostream& operator<<(std::ostream& out, const GURL& url);
@@ -541,7 +542,7 @@ stripped and processing continues with the inner URL.
URL_EXPORT bool operator!=(const GURL& x, const GURL& y);
--- a/url/url_constants.cc
+++ b/url/url_constants.cc
@@ -24,6 +24,7 @@ const char kHttpScheme[] = "http";
@@ -24,6 +24,7 @@
const char kHttpsScheme[] = "https";
const char kJavaScriptScheme[] = "javascript";
const char kMailToScheme[] = "mailto";
@@ -551,7 +552,7 @@ stripped and processing continues with the inner URL.
--- a/url/url_constants.h
+++ b/url/url_constants.h
@@ -30,6 +30,7 @@ URL_EXPORT extern const char kHttpScheme
@@ -30,6 +30,7 @@
URL_EXPORT extern const char kHttpsScheme[];
URL_EXPORT extern const char kJavaScriptScheme[];
URL_EXPORT extern const char kMailToScheme[];
@@ -12,7 +12,7 @@ it as hidden as it was before?
--- a/net/cert/x509_util.cc
+++ b/net/cert/x509_util.cc
@@ -216,7 +216,7 @@ bool GetTLSServerEndPointChannelBinding(
@@ -188,7 +188,7 @@
}
// RSA keys created by CreateKeyAndSelfSignedCert will be of this length.
@@ -16,7 +16,7 @@ the URL so we get notified if this happens again in the future).
--- a/chrome/browser/safe_browsing/incident_reporting/incident_report_uploader_impl.cc
+++ b/chrome/browser/safe_browsing/incident_reporting/incident_report_uploader_impl.cc
@@ -21,7 +21,7 @@ namespace safe_browsing {
@@ -21,7 +21,7 @@
namespace {
const char kSbIncidentReportUrl[] =
@@ -27,7 +27,7 @@ the URL so we get notified if this happens again in the future).
net::DefineNetworkTrafficAnnotation("safe_browsing_incident", R"(
--- a/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc
+++ b/chrome/browser/safe_browsing/incident_reporting/incident_reporting_service.cc
@@ -309,11 +309,14 @@ IncidentReportingService::UploadContext:
@@ -309,11 +309,14 @@
// static
bool IncidentReportingService::IsEnabledForProfile(Profile* profile) {
@@ -44,7 +44,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
@@ -62,8 +62,7 @@ class SafeBrowsingBlockingPageFactoryImp
@@ -65,8 +65,7 @@
PrefService* prefs =
Profile::FromBrowserContext(web_contents->GetBrowserContext())
->GetPrefs();
@@ -56,7 +56,7 @@ the URL so we get notified if this happens again in the future).
--- a/chrome/browser/safe_browsing/safe_browsing_service.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_service.cc
@@ -316,7 +316,7 @@ SafeBrowsingDatabaseManager* SafeBrowsin
@@ -315,7 +315,7 @@
}
void SafeBrowsingService::RegisterAllDelayedAnalysis() {
@@ -67,7 +67,7 @@ the URL so we get notified if this happens again in the future).
}
--- a/components/security_interstitials/core/safe_browsing_loud_error_ui.cc
+++ b/components/security_interstitials/core/safe_browsing_loud_error_ui.cc
@@ -22,6 +22,7 @@ namespace {
@@ -22,6 +22,7 @@
// For malware interstitial pages, we link the problematic URL to Google's
// diagnostic page.
+5 -5
View File
@@ -2,7 +2,7 @@ Description: Fixes builds with GCC version 6
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -465,6 +465,7 @@ config("compiler") {
@@ -509,6 +509,7 @@
# TODO(thakis): Eventually switch this to c++11 instead,
# http://crbug.com/427584
cflags_c += [ "-std=gnu11" ]
@@ -12,7 +12,7 @@ Description: Fixes builds with GCC version 6
cflags_cc += [ "-std=gnu++11" ]
--- a/chrome/browser/safe_browsing/BUILD.gn
+++ b/chrome/browser/safe_browsing/BUILD.gn
@@ -54,6 +54,8 @@ static_library("safe_browsing") {
@@ -56,6 +56,8 @@
"//chrome/app:generated_resources",
"//components/chrome_cleaner/public/interfaces",
"//components/safe_browsing/common:interfaces",
@@ -23,7 +23,7 @@ Description: Fixes builds with GCC version 6
if (enable_extensions) {
--- a/chrome/browser/devtools/devtools_file_system_indexer.cc
+++ b/chrome/browser/devtools/devtools_file_system_indexer.cc
@@ -39,8 +39,6 @@ using std::vector;
@@ -39,8 +39,6 @@
namespace {
@@ -32,7 +32,7 @@ Description: Fixes builds with GCC version 6
base::SequencedTaskRunner* impl_task_runner() {
constexpr base::TaskTraits kBlockingTraits = {base::MayBlock(),
base::TaskPriority::BACKGROUND};
@@ -192,7 +190,7 @@ vector<FilePath> Index::Search(const str
@@ -192,7 +190,7 @@
if (trigram != kUndefinedTrigram)
trigrams.push_back(trigram);
}
@@ -41,7 +41,7 @@ Description: Fixes builds with GCC version 6
bool first = true;
vector<Trigram>::const_iterator it = trigrams.begin();
for (; it != trigrams.end(); ++it) {
@@ -204,7 +202,7 @@ vector<FilePath> Index::Search(const str
@@ -204,7 +202,7 @@
first = false;
continue;
}
@@ -2,7 +2,7 @@
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -1234,6 +1234,10 @@
@@ -1244,6 +1244,10 @@
"Enable stacking in tab strip",
"Forces tabs to be stacked in the tab strip. Otherwise, they follow default behavior.",
kOsAll, SINGLE_VALUE_TYPE("enable-stacked-tab-strip")},
@@ -15,7 +15,7 @@
"Record histograms and user actions.",
--- a/chrome/renderer/chrome_render_frame_observer.cc
+++ b/chrome/renderer/chrome_render_frame_observer.cc
@@ -138,9 +138,10 @@
@@ -139,9 +139,10 @@
if (!render_frame->IsMainFrame())
return;
@@ -27,7 +27,7 @@
if (!command_line.HasSwitch(switches::kDisableClientSidePhishingDetection))
SetClientSidePhishingDetection(true);
#endif
@@ -326,14 +327,16 @@
@@ -327,14 +328,16 @@
if (frame->Parent())
return;
@@ -54,7 +54,7 @@
--- a/chrome/renderer/chrome_render_frame_observer.h
+++ b/chrome/renderer/chrome_render_frame_observer.h
@@ -93,6 +93,7 @@
@@ -96,6 +96,7 @@
// Have the same lifetime as us.
translate::TranslateHelper* translate_helper_;
safe_browsing::PhishingClassifierDelegate* phishing_classifier_;
@@ -64,7 +64,7 @@
#if !defined(OS_ANDROID)
--- a/components/search_engines/template_url_service.cc
+++ b/components/search_engines/template_url_service.cc
@@ -194,6 +194,12 @@
@@ -193,6 +193,12 @@
template_url->type() == TemplateURL::OMNIBOX_API_EXTENSION;
}
@@ -77,7 +77,7 @@
} // namespace
// TemplateURLService::LessWithPrefix -----------------------------------------
@@ -233,6 +239,7 @@
@@ -232,6 +238,7 @@
rappor::RapporServiceImpl* rappor_service,
const base::Closure& dsp_change_callback)
: prefs_(prefs),
@@ -85,7 +85,7 @@
search_terms_data_(std::move(search_terms_data)),
web_data_service_(web_data_service),
client_(std::move(client)),
@@ -261,6 +268,7 @@
@@ -260,6 +267,7 @@
TemplateURLService::TemplateURLService(const Initializer* initializers,
const int count)
: prefs_(nullptr),
@@ -93,7 +93,7 @@
search_terms_data_(new SearchTermsData),
web_data_service_(nullptr),
google_url_tracker_(nullptr),
@@ -315,7 +323,7 @@
@@ -314,7 +322,7 @@
if (existing_url) {
// We already have a TemplateURL for this keyword. Only allow it to be
// replaced if the TemplateURL can be replaced.
@@ -102,7 +102,7 @@
}
// We don't have a TemplateURL with keyword. We still may not allow this
@@ -324,8 +332,8 @@
@@ -323,8 +331,8 @@
// that may interfere with search queries). An easy heuristic for this is
// whether the user has a TemplateURL that has been manually modified (e.g.,
// renamed) connected to the same host.
@@ -113,7 +113,7 @@
}
bool TemplateURLService::IsPrepopulatedOrCreatedByPolicy(
@@ -1286,6 +1294,8 @@
@@ -1285,6 +1293,8 @@
void TemplateURLService::Init(const Initializer* initializers,
int num_initializers) {
@@ -122,7 +122,7 @@
if (client_)
client_->SetOwner(this);
@@ -1517,16 +1527,17 @@
@@ -1516,16 +1526,17 @@
const std::string& host) const {
const TemplateURLSet* urls = provider_map_->GetURLsForHost(host);
if (!urls)
@@ -3,7 +3,7 @@
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -179,6 +179,16 @@ const unsigned kOsDesktop = kOsMac | kOs
@@ -175,6 +175,16 @@
const unsigned kOsAura = kOsWin | kOsLinux | kOsCrOS;
#endif // USE_AURA
@@ -20,7 +20,7 @@
const FeatureEntry::Choice kTouchEventFeatureDetectionChoices[] = {
{flags_ui::kGenericExperimentChoiceAutomatic, "", ""},
{flags_ui::kGenericExperimentChoiceEnabled,
@@ -1216,6 +1226,10 @@ const FeatureEntry kFeatureEntries[] = {
@@ -1226,6 +1236,10 @@
flag_descriptions::kDisableTrkbarDescription, kOsDesktop,
SINGLE_VALUE_TYPE("disable-trkbar")},
#endif
@@ -41,7 +41,7 @@
#include "chrome/browser/chrome_notification_types.h"
#include "chrome/browser/extensions/crx_installer.h"
#include "chrome/browser/extensions/extension_install_prompt.h"
@@ -116,6 +117,14 @@ scoped_refptr<extensions::CrxInstaller>
@@ -116,6 +117,14 @@
return installer;
}
@@ -56,7 +56,7 @@
bool IsExtensionDownload(const DownloadItem& download_item) {
if (download_item.GetTargetDisposition() ==
DownloadItem::TARGET_DISPOSITION_PROMPT)
@@ -124,7 +133,7 @@ bool IsExtensionDownload(const DownloadI
@@ -124,7 +133,7 @@
if (download_item.GetMimeType() == extensions::Extension::kMimeType ||
extensions::UserScript::IsURLUserScript(download_item.GetURL(),
download_item.GetMimeType())) {
@@ -73,9 +73,9 @@
#include "base/bind_helpers.h"
+#include "base/command_line.h"
#include "base/logging.h"
#include "base/memory/ptr_util.h"
#include "base/metrics/histogram_macros.h"
@@ -142,6 +143,13 @@ bool ExtensionManagement::IsInstallation
#include "base/stl_util.h"
@@ -141,6 +142,13 @@
bool ExtensionManagement::IsOffstoreInstallAllowed(
const GURL& url,
const GURL& referrer_url) const {
@@ -91,7 +91,7 @@
return false;
--- a/chrome/browser/download/download_crx_util.h
+++ b/chrome/browser/download/download_crx_util.h
@@ -43,6 +43,10 @@ scoped_refptr<extensions::CrxInstaller>
@@ -43,6 +43,10 @@
Profile* profile,
const content::DownloadItem& download_item);
@@ -104,7 +104,7 @@
bool IsExtensionDownload(const content::DownloadItem& download_item);
--- a/chrome/browser/download/download_target_determiner.cc
+++ b/chrome/browser/download/download_target_determiner.cc
@@ -900,10 +900,12 @@ DownloadConfirmationReason DownloadTarge
@@ -900,10 +900,12 @@
return DownloadConfirmationReason::SAVE_AS;
#if BUILDFLAG(ENABLE_EXTENSIONS)
@@ -12,7 +12,7 @@
#if BUILDFLAG(ENABLE_MUS)
#include "services/service_manager/runner/common/client_util.h"
@@ -54,20 +49,6 @@ int ChromeMain(int argc, const char** ar
@@ -54,20 +49,6 @@
}
#endif
@@ -33,8 +33,8 @@
#if defined(OS_WIN)
DLLEXPORT int __cdecl ChromeMain(HINSTANCE instance,
sandbox::SandboxInterfaceInfo* sandbox_info,
@@ -146,9 +127,6 @@ int ChromeMain(int argc, const char** ar
}
@@ -145,9 +126,6 @@
#endif // defined(OS_CHROMEOS)
#endif // BUILDFLAG(ENABLE_MUS)
-#if !defined(CHROME_MULTIPLE_DLL_CHILD)
@@ -45,7 +45,7 @@
return rv;
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -1211,6 +1211,11 @@ const FeatureEntry::FeatureVariation kSp
@@ -1221,6 +1221,11 @@
//
// When adding a new choice, add it to the end of the list.
const FeatureEntry kFeatureEntries[] = {
@@ -59,9 +59,9 @@
"Record histograms and user actions.",
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -293,8 +293,27 @@
#include "ui/aura/env.h"
@@ -302,8 +302,27 @@
#endif
#include "services/service_manager/public/cpp/connector.h"
+#if !defined(CHROME_MULTIPLE_DLL_CHILD)
+# include "iridium/trknotify.h"
@@ -87,7 +87,7 @@
namespace {
// This function provides some ways to test crash and assertion handling
@@ -981,6 +1000,13 @@ int ChromeBrowserMainParts::PreCreateThr
@@ -1007,6 +1026,13 @@
about_flags::ConvertFlagsToSwitches(&flags_storage,
base::CommandLine::ForCurrentProcess(),
flags_ui::kAddSentinels);
@@ -103,7 +103,7 @@
// The MaterialDesignController needs to look at command line flags, which
--- a/chrome/browser/flag_descriptions.cc
+++ b/chrome/browser/flag_descriptions.cc
@@ -751,6 +751,12 @@ const char kIconNtpName[] = "Large icons
@@ -781,6 +781,12 @@
const char kIconNtpDescription[] =
"Enable the experimental New Tab page using large icons.";
@@ -118,7 +118,7 @@
"Overrides the built-in software rendering list and enables "
--- a/chrome/browser/flag_descriptions.h
+++ b/chrome/browser/flag_descriptions.h
@@ -475,6 +475,9 @@ extern const char kHtmlBasedUsernameDete
@@ -490,6 +490,9 @@
extern const char kIconNtpName[];
extern const char kIconNtpDescription[];
@@ -1,6 +1,6 @@
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -2073,11 +2073,11 @@
@@ -2075,11 +2075,11 @@
{"enable-wifi-credential-sync", flag_descriptions::kWifiCredentialSyncName,
flag_descriptions::kWifiCredentialSyncDescription, kOsCrOS,
SINGLE_VALUE_TYPE(switches::kEnableWifiCredentialSync)},
@@ -10,6 +10,6 @@
flag_descriptions::kExperimentalSecurityFeaturesDescription, kOsAll,
SINGLE_VALUE_TYPE(switches::kEnablePotentiallyAnnoyingSecurityFeatures)},
-#endif // OS_CHROMEOS
{"mark-non-secure-as", flag_descriptions::kMarkHttpAsName,
flag_descriptions::kMarkHttpAsDescription, kOsAll,
MULTI_VALUE_TYPE(kMarkHttpAsChoices)},
{"enable-http-form-warning", flag_descriptions::kEnableHttpFormWarningName,
flag_descriptions::kEnableHttpFormWarningDescription, kOsAll,
FEATURE_VALUE_TYPE(security_state::kHttpFormWarningFeature)},
@@ -10,7 +10,7 @@
#include "base/macros.h"
#include "base/metrics/user_metrics.h"
#include "base/task_scheduler/post_task.h"
@@ -66,13 +67,13 @@ using content::WebContents;
@@ -66,13 +67,13 @@
namespace {
bool DetermineTabStripLayoutStacked(PrefService* prefs, bool* adjust_layout) {
@@ -29,7 +29,7 @@
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -1216,6 +1216,10 @@ const FeatureEntry kFeatureEntries[] = {
@@ -1226,6 +1226,10 @@
flag_descriptions::kDisableTrkbarDescription, kOsDesktop,
SINGLE_VALUE_TYPE("disable-trkbar")},
#endif
@@ -11,7 +11,7 @@
#include "base/compiler_specific.h"
#include "base/containers/circular_deque.h"
#include "base/debug/debugger.h"
@@ -108,11 +109,6 @@ const unsigned kMinimumTTLSeconds = kCac
@@ -108,11 +109,6 @@
// cached.
const int kIPv6ProbePeriodMs = 1000;
@@ -23,7 +23,7 @@
// We use a separate histogram name for each platform to facilitate the
// display of error codes by their symbolic name (since each platform has
// different mappings).
@@ -2352,7 +2348,7 @@ bool HostResolverImpl::IsIPv6Reachable(c
@@ -2357,7 +2353,7 @@
if ((base::TimeTicks::Now() - last_ipv6_probe_time_).InMilliseconds() >
kIPv6ProbePeriodMs) {
last_ipv6_probe_result_ =
@@ -2,7 +2,7 @@
--- a/chrome/app/chrome_command_ids.h
+++ b/chrome/app/chrome_command_ids.h
@@ -149,6 +149,7 @@
@@ -148,6 +148,7 @@
#define IDC_DEV_TOOLS_INSPECT 40023
#define IDC_UPGRADE_DIALOG 40024
#define IDC_VIEW_INCOMPATIBILITIES 40025
@@ -34,7 +34,7 @@
</message>
--- a/chrome/browser/ui/toolbar/app_menu_model.cc
+++ b/chrome/browser/ui/toolbar/app_menu_model.cc
@@ -195,6 +195,7 @@
@@ -215,6 +215,7 @@
AddSeparator(ui::NORMAL_SEPARATOR);
AddItemWithStringId(IDC_CLEAR_BROWSING_DATA, IDS_CLEAR_BROWSING_DATA);
@@ -42,7 +42,7 @@
AddItemWithStringId(IDC_MANAGE_EXTENSIONS, IDS_SHOW_EXTENSIONS);
if (chrome::CanOpenTaskManager())
AddItemWithStringId(IDC_TASK_MANAGER, IDS_TASK_MANAGER);
@@ -452,6 +453,13 @@
@@ -475,6 +476,13 @@
}
LogMenuAction(MENU_ACTION_CLEAR_BROWSING_DATA);
break;
@@ -58,11 +58,11 @@
UMA_HISTOGRAM_MEDIUM_TIMES("WrenchMenu.TimeToAction.ViewSource", delta);
--- a/chrome/browser/ui/toolbar/app_menu_model.h
+++ b/chrome/browser/ui/toolbar/app_menu_model.h
@@ -72,6 +72,7 @@
MENU_ACTION_UPGRADE_DIALOG = 44,
MENU_ACTION_CAST = 45,
MENU_ACTION_BETA_FORUM = 46,
+ MENU_ACTION_CLEAR_HTTP_AUTH_CACHE = 47,
@@ -76,6 +76,7 @@
MENU_ACTION_OPEN_IN_CHROME = 48,
MENU_ACTION_SITE_SETTINGS = 49,
MENU_ACTION_APP_INFO = 50,
+ MENU_ACTION_CLEAR_HTTP_AUTH_CACHE = 51,
LIMIT_MENU_ACTION
};
@@ -78,9 +78,9 @@
--- a/chrome/browser/ui/browser_command_controller.cc
+++ b/chrome/browser/ui/browser_command_controller.cc
@@ -59,6 +59,9 @@
@@ -58,6 +58,9 @@
#include "extensions/browser/extension_system.h"
#include "printing/features/features.h"
#include "services/service_manager/public/cpp/connector.h"
#include "ui/events/keycodes/keyboard_codes.h"
+#include "net/url_request/url_request_context.h"
+#include "net/url_request/url_request_context_getter.h"
@@ -88,7 +88,7 @@
#if defined(OS_MACOSX)
#include "chrome/browser/ui/browser_commands_mac.h"
@@ -640,6 +643,9 @@
@@ -625,6 +628,9 @@
case IDC_CLEAR_BROWSING_DATA:
ShowClearBrowsingDataDialog(browser_);
break;
@@ -98,20 +98,20 @@
case IDC_IMPORT_SETTINGS:
ShowImportDialog(browser_);
break;
@@ -891,6 +897,7 @@
@@ -867,6 +873,7 @@
!profile()->IsOffTheRecord());
command_updater_.UpdateCommandEnabled(IDC_CLEAR_BROWSING_DATA,
!guest_session);
+ command_updater_.UpdateCommandEnabled(IDC_CLEAR_HTTP_AUTH_CACHE, true);
#if defined(OS_CHROMEOS)
command_updater_.UpdateCommandEnabled(IDC_TAKE_SCREENSHOT, true);
command_updater_.UpdateCommandEnabled(IDC_TOUCH_HUD_PROJECTION_TOGGLE, true);
#else
--- a/tools/metrics/histograms/histograms.xml
+++ b/tools/metrics/histograms/histograms.xml
@@ -109741,6 +109741,7 @@
</suffix>
<suffix name="Cast"/>
<suffix name="BetaForum"/>
@@ -112583,6 +112583,7 @@
<suffix name="OpenInChrome"/>
<suffix name="SiteSettings"/>
<suffix name="AppInfo"/>
+ <suffix name="ClearHttpAuthCache"/>
<affected-histogram name="WrenchMenu.TimeToAction"/>
</histogram_suffixes>
@@ -140,13 +140,3 @@
// Clears cache entries created within |duration| of base::TimeTicks::Now().
void ClearEntriesAddedWithin(base::TimeDelta duration);
--- a/tools/metrics/histograms/enums.xml
+++ b/tools/metrics/histograms/enums.xml
@@ -44909,6 +44909,7 @@
<int value="43" label="Exit"/>
<int value="44" label="Upgrade browser"/>
<int value="45" label="Cast"/>
+ <int value="47" label="Clear HTTP auth cache"/>
</enum>
<enum name="XFrameOptions">
@@ -51,7 +51,7 @@
--- a/content/common/BUILD.gn
+++ b/content/common/BUILD.gn
@@ -259,11 +259,6 @@
@@ -249,11 +249,6 @@
"presentation/presentation_struct_traits.cc",
"presentation/presentation_struct_traits.h",
"process_type.cc",
@@ -82,7 +82,7 @@
-#endif // !WIN && !MAC && !LINUX
--- a/content/public/common/BUILD.gn
+++ b/content/public/common/BUILD.gn
@@ -195,7 +195,6 @@
@@ -196,7 +196,6 @@
"process_type.h",
"push_event_payload.h",
"push_subscription_options.h",
@@ -92,7 +92,7 @@
"renderer_preferences.cc",
--- a/content/browser/download/base_file.cc
+++ b/content/browser/download/base_file.cc
@@ -21,7 +21,6 @@
@@ -22,7 +22,6 @@
#include "content/browser/download/download_stats.h"
#include "content/public/browser/content_browser_client.h"
#include "content/public/browser/download_item.h"
@@ -100,7 +100,7 @@
#include "crypto/secure_hash.h"
#include "net/base/net_errors.h"
@@ -437,7 +436,7 @@
@@ -438,7 +437,7 @@
return reason;
}
@@ -109,7 +109,7 @@
namespace {
@@ -521,7 +520,7 @@
@@ -522,7 +521,7 @@
}
return DOWNLOAD_INTERRUPT_REASON_FILE_FAILED;
}
@@ -2,7 +2,7 @@
--- a/components/url_formatter/url_formatter.cc
+++ b/components/url_formatter/url_formatter.cc
@@ -401,13 +401,13 @@ bool IDNToUnicodeOneComponent(const base
@@ -401,13 +401,13 @@
} // namespace
@@ -12,14 +12,14 @@
-const FormatUrlType kFormatUrlOmitTrailingSlashOnBareHostname = 1 << 2;
-const FormatUrlType kFormatUrlOmitHTTPS = 1 << 3;
-const FormatUrlType kFormatUrlExperimentalElideAfterHost = 1 << 4;
-const FormatUrlType kFormatUrlExperimentalOmitTrivialSubdomains = 1 << 5;
-const FormatUrlType kFormatUrlOmitTrivialSubdomains = 1 << 5;
+const FormatUrlType kFormatUrlOmitNothing = 1;
+const FormatUrlType kFormatUrlOmitUsernamePassword = 0 << 0;
+const FormatUrlType kFormatUrlOmitHTTP = 0 << 1;
+const FormatUrlType kFormatUrlOmitTrailingSlashOnBareHostname = 0 << 2;
+const FormatUrlType kFormatUrlOmitHTTPS = 0 << 3;
+const FormatUrlType kFormatUrlExperimentalElideAfterHost = 0 << 4;
+const FormatUrlType kFormatUrlExperimentalOmitTrivialSubdomains = 0 << 5;
+const FormatUrlType kFormatUrlOmitTrivialSubdomains = 0 << 5;
const FormatUrlType kFormatUrlOmitDefaults =
kFormatUrlOmitUsernamePassword | kFormatUrlOmitHTTP |
@@ -3,7 +3,7 @@
--- a/google_apis/gaia/gaia_auth_fetcher.cc
+++ b/google_apis/gaia/gaia_auth_fetcher.cc
@@ -219,35 +219,6 @@ void GaiaAuthFetcher::CreateAndStartGaia
@@ -219,35 +219,6 @@
int load_flags,
const net::NetworkTrafficAnnotationTag& traffic_annotation) {
DCHECK(!fetch_pending_) << "Tried to fetch two things at once!";
@@ -52,7 +52,7 @@
<include name="IDR_HANGOUT_SERVICES_BACKGROUND_HTML" file="hangout_services/background.html" type="BINDATA" />
--- a/chrome/browser/extensions/signin/gaia_auth_extension_loader.cc
+++ b/chrome/browser/extensions/signin/gaia_auth_extension_loader.cc
@@ -42,18 +42,11 @@ extensions::ComponentLoader* GetComponen
@@ -42,18 +42,11 @@
void LoadGaiaAuthExtension(BrowserContext* context) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
@@ -73,7 +73,7 @@
void UnloadGaiaAuthExtension(BrowserContext* context) {
--- a/chrome/browser/extensions/component_extensions_whitelist/whitelist.cc
+++ b/chrome/browser/extensions/component_extensions_whitelist/whitelist.cc
@@ -67,7 +67,6 @@ bool IsComponentExtensionWhitelisted(int
@@ -67,7 +67,6 @@
#endif
case IDR_CRYPTOTOKEN_MANIFEST:
case IDR_FEEDBACK_MANIFEST:
@@ -83,7 +83,7 @@
#endif
--- a/chrome/browser/ui/webui/signin/inline_login_ui.cc
+++ b/chrome/browser/ui/webui/signin/inline_login_ui.cc
@@ -43,7 +43,6 @@ content::WebUIDataSource* CreateWebUIDat
@@ -44,7 +44,6 @@
source->AddResourcePath("inline_login.css", IDR_INLINE_LOGIN_CSS);
source->AddResourcePath("inline_login.js", IDR_INLINE_LOGIN_JS);
@@ -93,7 +93,7 @@
source->AddLocalizedString(
--- a/chrome/browser/browser_resources.grd
+++ b/chrome/browser/browser_resources.grd
@@ -306,7 +306,6 @@
@@ -307,7 +307,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" />
@@ -101,11 +101,11 @@
<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" />
@@ -441,7 +440,6 @@
@@ -445,7 +444,6 @@
</if>
<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" />
- <include name="IDR_GAIA_AUTH_MANIFEST" file="resources\gaia_auth\manifest.json" type="BINDATA" />
<if expr="chromeos">
<include name="IDR_BLUETOOTH_PAIRING_DIALOG_HTML" file="resources\chromeos\bluetooth_pairing_dialog.html" flattenhtml="true" allowexternalscript="true" type="chrome_html" />
<include name="IDR_BLUETOOTH_PAIRING_DIALOG_JS" file="resources\chromeos\bluetooth_pairing_dialog.js" type="chrome_html" />
<if expr="optimize_webui">
<then>
@@ -2,7 +2,7 @@
--- a/net/base/url_util.cc
+++ b/net/base/url_util.cc
@@ -393,28 +393,6 @@ void GetIdentityFromURL(const GURL& url,
@@ -397,28 +397,6 @@
}
bool HasGoogleHost(const GURL& url) {
@@ -33,7 +33,7 @@
--- a/components/variations/net/variations_http_headers.cc
+++ b/components/variations/net/variations_http_headers.cc
@@ -18,28 +18,6 @@ namespace variations {
@@ -19,27 +19,6 @@
namespace {
@@ -56,13 +56,12 @@
- "googleweblight.com",
-};
-
-const char kChromeUMAEnabled[] = "X-Chrome-UMA-Enabled";
-const char kClientData[] = "X-Client-Data";
-
// 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.
@@ -56,28 +34,6 @@ enum URLValidationResult {
@@ -56,28 +35,6 @@
// Checks whether headers should be appended to the |url|, based on the domain
// of |url|. |url| is assumed to be valid, and to have an http/https scheme.
bool IsGoogleDomain(const GURL& url) {
@@ -91,9 +90,9 @@
return false;
}
@@ -93,35 +49,10 @@ void AppendVariationHeaders(const GURL&
bool uma_enabled,
bool is_signed_in,
@@ -92,30 +49,10 @@
InIncognito incognito,
SignedIn signed_in,
net::HttpRequestHeaders* headers) {
- // Note the criteria for attaching client experiment headers:
- // 1. We only transmit to Google owned domains which can evaluate experiments.
@@ -102,18 +101,14 @@
- // exactly www.googleadservices.com or
- // international TLD domains *.google.<TLD> or *.youtube.<TLD>.
- // 2. Only transmit for non-Incognito profiles.
- // 3. For the X-Chrome-UMA-Enabled bit, only set it if UMA is in fact enabled
- // for this install of Chrome.
- // 4. For the X-Client-Data header, only include non-empty variation IDs.
- if (incognito || !internal::ShouldAppendVariationHeaders(url))
- // 3. For the X-Client-Data header, only include non-empty variation IDs.
- if ((incognito == InIncognito::kYes) ||
- !internal::ShouldAppendVariationHeaders(url))
- return;
-
- if (uma_enabled)
- headers->SetHeaderIfMissing(kChromeUMAEnabled, "1");
-
- const std::string variation_ids_header =
- VariationsHttpHeaderProvider::GetInstance()->GetClientDataHeader(
- is_signed_in);
- signed_in == SignedIn::kYes);
- if (!variation_ids_header.empty()) {
- // Note that prior to M33 this header was named X-Chrome-Variations.
- headers->SetHeaderIfMissing(kClientData, variation_ids_header);
@@ -122,14 +117,13 @@
std::set<std::string> GetVariationHeaderNames() {
std::set<std::string> headers;
- headers.insert(kChromeUMAEnabled);
- headers.insert(kClientData);
return headers;
}
--- a/chrome/browser/page_load_metrics/page_load_metrics_util.cc
+++ b/chrome/browser/page_load_metrics/page_load_metrics_util.cc
@@ -164,9 +164,7 @@ bool DidObserveLoadingBehaviorInAnyFrame
@@ -164,9 +164,7 @@
}
bool IsGoogleSearchHostname(const GURL& url) {
@@ -142,7 +136,7 @@
bool IsGoogleSearchResultUrl(const GURL& url) {
--- a/components/search_engines/template_url.cc
+++ b/components/search_engines/template_url.cc
@@ -455,11 +455,6 @@ base::string16 TemplateURLRef::SearchTer
@@ -455,11 +455,6 @@
bool TemplateURLRef::HasGoogleBaseURLs(
const SearchTermsData& search_terms_data) const {
ParseIfNecessary(search_terms_data);
@@ -156,7 +150,7 @@
--- a/components/google/core/browser/google_util.cc
+++ b/components/google/core/browser/google_util.cc
@@ -41,118 +41,16 @@ namespace {
@@ -41,118 +41,16 @@
bool gUseMockLinkDoctorBaseURLForTesting = false;
@@ -276,7 +270,7 @@
}
void SetMockLinkDoctorBaseURLForTesting() {
@@ -166,119 +64,50 @@ std::string GetGoogleLocale(const std::s
@@ -166,119 +64,50 @@
GURL AppendGoogleLocaleParam(const GURL& url,
const std::string& application_locale) {
@@ -2,7 +2,7 @@
--- a/chrome/browser/profiles/profile_avatar_downloader.cc
+++ b/chrome/browser/profiles/profile_avatar_downloader.cc
@@ -26,8 +26,7 @@ ProfileAvatarDownloader::ProfileAvatarDo
@@ -27,8 +27,7 @@
: icon_index_(icon_index),
callback_(callback) {
DCHECK(!callback_.is_null());
@@ -2,7 +2,7 @@
--- a/components/signin/core/browser/signin_manager_base.cc
+++ b/components/signin/core/browser/signin_manager_base.cc
@@ -162,7 +162,7 @@ void SigninManagerBase::Initialize(PrefS
@@ -158,7 +158,7 @@
bool SigninManagerBase::IsInitialized() const { return initialized_; }
bool SigninManagerBase::IsSigninAllowed() const {
@@ -13,7 +13,7 @@
AccountInfo SigninManagerBase::GetAuthenticatedAccountInfo() const {
--- a/chrome/browser/ui/chrome_pages.cc
+++ b/chrome/browser/ui/chrome_pages.cc
@@ -74,12 +74,6 @@ void OpenBookmarkManagerForNode(Browser*
@@ -76,12 +76,6 @@
ShowSingletonTabOverwritingNTP(browser, params);
}
@@ -26,7 +26,7 @@
// Shows either the help app or the appropriate help page for |source|. If
// |browser| is NULL and the help page is used (vs the app), the help page is
// shown in the last active browser. If there is no such browser, a new browser
@@ -384,6 +378,7 @@ void ShowSearchEngineSettings(Browser* b
@@ -386,6 +380,7 @@
#if !defined(OS_ANDROID)
void ShowBrowserSignin(Browser* browser,
signin_metrics::AccessPoint access_point) {
@@ -34,7 +34,7 @@
Profile* original_profile = browser->profile()->GetOriginalProfile();
SigninManagerBase* manager =
SigninManagerFactory::GetForProfile(original_profile);
@@ -424,6 +419,7 @@ void ShowBrowserSignin(Browser* browser,
@@ -426,6 +421,7 @@
false));
DCHECK_GT(browser->tab_strip_model()->count(), 0);
}
@@ -2,7 +2,7 @@
--- a/chrome/browser/plugins/plugins_resource_service.cc
+++ b/chrome/browser/plugins/plugins_resource_service.cc
@@ -51,9 +51,6 @@ const int kStartResourceFetchDelayMs = 6
@@ -51,9 +51,6 @@
// Delay between calls to update the cache 1 day and 2 minutes in testing mode.
const int kCacheUpdateDelayMs = 24 * 60 * 60 * 1000;
@@ -12,7 +12,7 @@
GURL GetPluginsServerURL() {
std::string filename;
#if defined(OS_WIN)
@@ -68,7 +65,7 @@ GURL GetPluginsServerURL() {
@@ -68,7 +65,7 @@
#error Unknown platform
#endif
@@ -23,7 +23,7 @@
} // namespace
--- a/chrome/browser/safe_browsing/client_side_model_loader.cc
+++ b/chrome/browser/safe_browsing/client_side_model_loader.cc
@@ -34,8 +34,6 @@ namespace safe_browsing {
@@ -34,8 +34,6 @@
// Model Loader strings
const size_t ModelLoader::kMaxModelSizeBytes = 150 * 1024;
const int ModelLoader::kClientModelFetchIntervalMs = 3600 * 1000;
@@ -32,7 +32,7 @@
const char ModelLoader::kClientModelNamePattern[] =
"client_model_v5%s_variation_%d.pb";
const char ModelLoader::kClientModelFinchExperiment[] =
@@ -88,7 +86,7 @@ ModelLoader::ModelLoader(base::Closure u
@@ -88,7 +86,7 @@
net::URLRequestContextGetter* request_context_getter,
bool is_extended_reporting)
: name_(FillInModelName(is_extended_reporting, GetModelNumber())),
@@ -41,7 +41,7 @@
update_renderers_callback_(update_renderers_callback),
request_context_getter_(request_context_getter),
weak_factory_(this) {
@@ -99,7 +97,7 @@ ModelLoader::ModelLoader(base::Closure u
@@ -99,7 +97,7 @@
ModelLoader::ModelLoader(base::Closure update_renderers_callback,
const std::string& model_name)
: name_(model_name),
@@ -52,7 +52,7 @@
weak_factory_(this) {
--- a/chrome/browser/safe_browsing/client_side_model_loader.h
+++ b/chrome/browser/safe_browsing/client_side_model_loader.h
@@ -43,7 +43,6 @@ class ModelLoader : public net::URLFetch
@@ -43,7 +43,6 @@
static const int kClientModelFetchIntervalMs;
static const char kClientModelFinchExperiment[];
static const char kClientModelFinchParam[];
@@ -62,17 +62,17 @@
// Constructs a model loader to fetch a model using |request_context_getter|.
--- a/rlz/lib/lib_values.cc
+++ b/rlz/lib/lib_values.cc
@@ -41,7 +41,6 @@ const char kSetDccResponseVariable[] = "
@@ -41,7 +41,6 @@
//
const char kFinancialPingPath[] = "/tools/pso/ping";
-const char kFinancialServer[] = "clients1.google.com";
const int kFinancialPort = 80;
const int kFinancialPort = 443;
// Ping times in 100-nanosecond intervals.
--- a/rlz/lib/lib_values.h
+++ b/rlz/lib/lib_values.h
@@ -72,7 +72,6 @@ extern const char kSetDccResponseVariabl
@@ -72,7 +72,6 @@
//
extern const char kFinancialPingPath[];
@@ -82,7 +82,7 @@
--- a/rlz/lib/financial_ping.cc
+++ b/rlz/lib/financial_ping.cc
@@ -366,7 +366,7 @@ bool FinancialPing::PingServer(const cha
@@ -366,7 +366,7 @@
// Open network connection.
InternetHandle connection_handle = InternetConnectA(inet_handle,
@@ -91,12 +91,12 @@
INTERNET_FLAG_NO_CACHE_WRITE, 0);
if (!connection_handle)
return false;
@@ -408,7 +408,7 @@ bool FinancialPing::PingServer(const cha
@@ -410,7 +410,7 @@
return true;
#else
std::string url = base::StringPrintf("http://%s:%d%s",
- kFinancialServer, kFinancialPort,
+ "about:blank", kFinancialPort,
request);
std::string url =
- base::StringPrintf("https://%s%s", kFinancialServer, request);
+ base::StringPrintf("https://%s%s", "about:blank", request);
// Use a waitable event to cause this function to block, to match the
// wininet implementation.
@@ -2,7 +2,7 @@
--- a/chrome/browser/media/webrtc/webrtc_log_uploader.cc
+++ b/chrome/browser/media/webrtc/webrtc_log_uploader.cc
@@ -117,30 +117,11 @@ void WebRtcLogUploader::LoggingStoppedDo
@@ -115,30 +115,11 @@
DCHECK(meta_data.get());
DCHECK(!upload_done_data.log_path.empty());
@@ -34,7 +34,7 @@
}
void WebRtcLogUploader::PrepareMultipartPostData(
@@ -151,29 +132,7 @@ void WebRtcLogUploader::PrepareMultipart
@@ -149,29 +130,7 @@
DCHECK(!compressed_log.empty());
DCHECK(meta_data.get());
@@ -52,7 +52,7 @@
- // implemented according to the test plan. http://crbug.com/257329.
- if (post_data_) {
- *post_data_ = *post_data;
- NotifyUploadDone(kHttpResponseOk, "", upload_done_data);
- NotifyUploadDone(net::HTTP_OK, "", upload_done_data);
- return;
- }
-
@@ -65,7 +65,7 @@
}
void WebRtcLogUploader::UploadStoredLog(
@@ -239,43 +198,6 @@ void WebRtcLogUploader::LoggingStoppedDo
@@ -237,43 +196,6 @@
WebRtcLogUtil::DeleteOldWebRtcLogFiles(log_paths.log_path);
@@ -2,7 +2,7 @@
--- a/chrome/browser/extensions/chrome_content_verifier_delegate.cc
+++ b/chrome/browser/extensions/chrome_content_verifier_delegate.cc
@@ -135,13 +135,7 @@ ContentVerifierDelegate::Mode ChromeCont
@@ -134,13 +134,7 @@
// between which extensions are considered in-store.
// See https://crbug.com/766806 for details.
if (!InstallVerifier::IsFromStore(extension)) {
@@ -19,7 +19,7 @@
return default_mode_;
--- a/extensions/common/extension_urls.cc
+++ b/extensions/common/extension_urls.cc
@@ -30,9 +30,9 @@ bool IsSourceFromAnExtension(const base:
@@ -30,9 +30,9 @@
namespace extension_urls {
@@ -33,7 +33,7 @@
extensions::ExtensionsClient* client = extensions::ExtensionsClient::Get();
--- a/extensions/browser/updater/extension_downloader.cc
+++ b/extensions/browser/updater/extension_downloader.cc
@@ -88,27 +88,18 @@ const char kNotFromWebstoreInstallSource
@@ -89,27 +89,18 @@
const char kDefaultInstallSource[] = "";
const char kReinstallInstallSource[] = "reinstall";
@@ -63,7 +63,7 @@
bool ShouldRetryRequest(const net::URLRequestStatus& status,
int response_code) {
@@ -288,17 +279,6 @@ void ExtensionDownloader::StartBlacklist
@@ -289,17 +280,6 @@
const std::string& version,
const ManifestFetchData::PingData& ping_data,
int request_id) {
@@ -81,7 +81,7 @@
}
void ExtensionDownloader::SetWebstoreIdentityProvider(
@@ -328,23 +308,16 @@ bool ExtensionDownloader::AddExtensionDa
@@ -329,23 +309,16 @@
return false;
}
@@ -107,7 +107,7 @@
} else {
url_stats_.other_url_count++;
}
@@ -656,23 +629,6 @@ void ExtensionDownloader::HandleManifest
@@ -657,23 +630,6 @@
FetchUpdatedExtension(std::move(fetch));
}
@@ -131,7 +131,7 @@
NotifyExtensionsDownloadFailed(
not_updated, fetch_data->request_ids(),
ExtensionDownloaderDelegate::NO_UPDATE_AVAILABLE);
@@ -982,11 +938,7 @@ bool ExtensionDownloader::IterateFetchCr
@@ -983,11 +939,7 @@
// fetch.
switch (fetch->credentials) {
case ExtensionFetch::CREDENTIALS_NONE:
@@ -146,7 +146,7 @@
fetch->oauth2_attempt_count++;
--- a/chrome/browser/extensions/extension_migrator.cc
+++ b/chrome/browser/extensions/extension_migrator.cc
@@ -18,7 +18,9 @@ namespace extensions {
@@ -18,7 +18,9 @@
ExtensionMigrator::ExtensionMigrator(Profile* profile,
const std::string& old_id,
const std::string& new_id)
@@ -157,7 +157,7 @@
ExtensionMigrator::~ExtensionMigrator() {
}
@@ -31,7 +33,7 @@ void ExtensionMigrator::StartLoading() {
@@ -31,7 +33,7 @@
if (should_have_extension) {
std::unique_ptr<base::DictionaryValue> entry(new base::DictionaryValue);
entry->SetKey(ExternalProviderImpl::kExternalUpdateUrl,
@@ -176,7 +176,7 @@
class Profile;
@@ -37,6 +38,7 @@ class ExtensionMigrator : public Externa
@@ -37,6 +38,7 @@
Profile* profile_;
const std::string old_id_;
const std::string new_id_;
@@ -2,7 +2,7 @@
--- a/content/public/common/url_utils.cc
+++ b/content/public/common/url_utils.cc
@@ -18,11 +18,7 @@ bool HasWebUIScheme(const GURL& url) {
@@ -19,11 +19,7 @@
}
bool IsSavableURL(const GURL& url) {
@@ -17,7 +17,7 @@
// PlzNavigate
--- a/chrome/browser/ui/browser_commands.cc
+++ b/chrome/browser/ui/browser_commands.cc
@@ -347,12 +347,6 @@ int GetContentRestrictions(const Browser
@@ -347,12 +347,6 @@
CoreTabHelper* core_tab_helper =
CoreTabHelper::FromWebContents(current_tab);
content_restrictions = core_tab_helper->content_restrictions();
@@ -30,7 +30,7 @@
if (current_tab->ShowingInterstitialPage())
content_restrictions |= CONTENT_RESTRICTION_PRINT;
}
@@ -891,8 +885,7 @@ bool CanSavePage(const Browser* browser)
@@ -895,8 +889,7 @@
prefs::kAllowFileSelectionDialogs)) {
return false;
}
@@ -42,7 +42,7 @@
void ShowFindBar(Browser* browser) {
--- a/components/offline_pages/core/offline_page_model.cc
+++ b/components/offline_pages/core/offline_page_model.cc
@@ -33,7 +33,7 @@ OfflinePageModel::DeletedPageInfo::Delet
@@ -33,7 +33,7 @@
// static
bool OfflinePageModel::CanSaveURL(const GURL& url) {
@@ -53,7 +53,7 @@
OfflinePageModel::OfflinePageModel() = default;
--- a/content/common/url_schemes.cc
+++ b/content/common/url_schemes.cc
@@ -25,6 +25,10 @@ std::vector<GURL>* secure_origins = null
@@ -26,6 +26,10 @@
std::vector<std::string>* service_worker_schemes = nullptr;
const char* const kDefaultSavableSchemes[] = {
@@ -64,7 +64,7 @@
url::kHttpScheme,
url::kHttpsScheme,
url::kFileScheme,
@@ -32,7 +36,13 @@ const char* const kDefaultSavableSchemes
@@ -33,7 +37,13 @@
url::kFtpScheme,
kChromeDevToolsScheme,
kChromeUIScheme,
@@ -2,7 +2,7 @@
--- a/chrome/browser/ui/sync/one_click_signin_sync_starter.cc
+++ b/chrome/browser/ui/sync/one_click_signin_sync_starter.cc
@@ -420,6 +420,7 @@ void OneClickSigninSyncStarter::CancelSi
@@ -392,6 +392,7 @@
}
void OneClickSigninSyncStarter::ConfirmAndSignin() {
@@ -10,7 +10,7 @@
SigninManager* signin = SigninManagerFactory::GetForProfile(profile_);
if (confirmation_required_ == CONFIRM_UNTRUSTED_SIGNIN) {
browser_ = EnsureBrowser(browser_, profile_);
@@ -434,6 +435,7 @@ void OneClickSigninSyncStarter::ConfirmA
@@ -406,6 +407,7 @@
// No confirmation required - just sign in the user.
signin->CompletePendingSignin();
}
@@ -20,15 +20,15 @@
void OneClickSigninSyncStarter::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,13 +17,7 @@ OneClickSigninLinksDelegateImpl::OneClic
@@ -17,13 +17,7 @@
OneClickSigninLinksDelegateImpl::~OneClickSigninLinksDelegateImpl() {}
void OneClickSigninLinksDelegateImpl::OnLearnMoreLinkClicked(bool is_dialog) {
- chrome::NavigateParams params(browser_, GURL(chrome::kChromeSyncLearnMoreURL),
- ui::PAGE_TRANSITION_LINK);
- NavigateParams params(browser_, GURL(chrome::kChromeSyncLearnMoreURL),
- ui::PAGE_TRANSITION_LINK);
- params.disposition = is_dialog ? WindowOpenDisposition::NEW_WINDOW
- : WindowOpenDisposition::NEW_FOREGROUND_TAB;
- chrome::Navigate(&params);
- Navigate(&params);
}
void OneClickSigninLinksDelegateImpl::OnAdvancedLinkClicked() {
@@ -36,7 +36,7 @@
}
--- a/chrome/browser/ui/BUILD.gn
+++ b/chrome/browser/ui/BUILD.gn
@@ -2253,10 +2253,6 @@ split_static_library("ui") {
@@ -2275,10 +2275,6 @@
"cocoa/omnibox/omnibox_view_mac.mm",
"cocoa/omnibox_decoration_bubble_controller.h",
"cocoa/omnibox_decoration_bubble_controller.mm",
@@ -47,7 +47,7 @@
"cocoa/page_info/page_info_bubble_controller.h",
"cocoa/page_info/page_info_bubble_controller.mm",
"cocoa/page_info/page_info_utils_cocoa.h",
@@ -3141,8 +3137,6 @@ split_static_library("ui") {
@@ -3168,8 +3164,6 @@
"views/profiles/signin_view_controller_delegate_views.cc",
"views/profiles/signin_view_controller_delegate_views.h",
"views/screen_capture_notification_ui_views.cc",
@@ -2,7 +2,7 @@
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -308,7 +308,7 @@ WindowOpenDisposition RenderViewImpl::Na
@@ -306,7 +306,7 @@
case blink::kWebNavigationPolicyNewWindow:
return WindowOpenDisposition::NEW_WINDOW;
case blink::kWebNavigationPolicyNewPopup:
@@ -13,7 +13,7 @@
return WindowOpenDisposition::IGNORE_ACTION;
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -1442,7 +1442,7 @@ void BrowserView::CutCopyPaste(int comma
@@ -1399,7 +1399,7 @@
WindowOpenDisposition BrowserView::GetDispositionForPopupBounds(
const gfx::Rect& bounds) {
@@ -2,7 +2,7 @@
--- a/url/gurl.cc
+++ b/url/gurl.cc
@@ -472,15 +472,7 @@ size_t GURL::EstimateMemoryUsage() const
@@ -472,15 +472,7 @@
std::string &gurl_strip_trk(std::string &s)
{
@@ -21,7 +21,7 @@
bool gurl_is_trq(const std::string &s)
--- a/chrome/browser/ui/browser_navigator.cc
+++ b/chrome/browser/ui/browser_navigator.cc
@@ -660,10 +660,7 @@ bool IsURLAllowedInIncognito(const GURL&
@@ -697,10 +697,7 @@
}
if (url.SchemeIs(url::kTraceScheme)) {
@@ -35,7 +35,7 @@
// Most URLs are allowed in incognito; the following are exceptions.
--- a/components/url_formatter/url_fixer.cc
+++ b/components/url_formatter/url_fixer.cc
@@ -539,6 +539,10 @@ GURL FixupURL(const std::string& text, c
@@ -539,6 +539,10 @@
}
}
@@ -2,7 +2,7 @@
--- a/chrome/browser/ui/startup/bad_flags_prompt.cc
+++ b/chrome/browser/ui/startup/bad_flags_prompt.cc
@@ -89,7 +89,7 @@ void ShowBadFlagsPrompt(Browser* browser
@@ -69,7 +69,7 @@
// These flags disable sandbox-related security.
service_manager::switches::kDisableGpuSandbox,
service_manager::switches::kDisableSeccompFilterSandbox,
@@ -1,6 +1,6 @@
--- a/components/search_engines/prepopulated_engines.json
+++ b/components/search_engines/prepopulated_engines.json
@@ -122,22 +122,11 @@
@@ -126,22 +126,11 @@
},
"google": {
@@ -5,7 +5,7 @@
--- a/third_party/WebKit/Source/devtools/BUILD.gn
+++ b/third_party/WebKit/Source/devtools/BUILD.gn
@@ -981,12 +981,6 @@ generated_non_autostart_non_remote_modul
@@ -979,12 +979,6 @@
"$resources_out_dir/timeline_model/timeline_model_module.js",
"$resources_out_dir/timeline/timeline_module.js",
"$resources_out_dir/workspace_diff/workspace_diff_module.js",
@@ -18,7 +18,7 @@
"$resources_out_dir/accessibility/accessibility_module.js",
"$resources_out_dir/audits2_worker/audits2_worker_module.js",
"$resources_out_dir/cm_modes/cm_modes_module.js",
@@ -995,6 +989,12 @@ generated_remote_modules = [
@@ -993,6 +987,12 @@
"$resources_out_dir/screencast/screencast_module.js",
]
@@ -33,7 +33,7 @@
"toolbox",
--- a/third_party/WebKit/Source/devtools/front_end/inspector.json
+++ b/third_party/WebKit/Source/devtools/front_end/inspector.json
@@ -22,10 +22,10 @@
@@ -22,7 +22,7 @@
{ "name": "timeline", "condition": "!v8only" },
{ "name": "timeline_model", "condition": "!v8only" },
{ "name": "product_registry", "type": "autostart" },
@@ -41,12 +41,8 @@
+ { "name": "product_registry_impl", "condition": "!v8only" },
{ "name": "profiler" },
{ "name": "resources", "condition": "!v8only" },
- { "name": "audits", "condition": "!v8only", "type": "remote" },
+ { "name": "audits", "condition": "!v8only" },
{ "name": "audits2", "condition": "!v8only" },
{ "name": "devices" },
{ "name": "security", "condition": "!v8only" },
@@ -33,18 +33,18 @@
@@ -32,18 +32,18 @@
{ "name": "source_frame" },
{ "name": "text_editor" },
{ "name": "cm" },