Index: head/www/chromium/Makefile =================================================================== --- head/www/chromium/Makefile +++ head/www/chromium/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= chromium -PORTVERSION= 79.0.3945.130 +PORTVERSION= 80.0.3987.132 CATEGORIES?= www java MASTER_SITES= https://commondatastorage.googleapis.com/chromium-browser-official/ \ LOCAL/cpm/chromium/:fonts @@ -119,7 +119,6 @@ use_bundled_fontconfig=false \ use_custom_libcxx=false \ use_gnome_keyring=false \ - use_jumbo_build=true \ use_lld=true \ use_sysroot=false \ use_system_freetype=true \ @@ -160,10 +159,10 @@ CODECS_VARS= GN_ARGS+=ffmpeg_branding="Chrome" \ GN_ARGS+=proprietary_codecs=true \ - GN_ARGS+=enable_hevc_demuxing=true + GN_ARGS+=enable_platform_hevc=true CODECS_VARS_OFF= GN_ARGS+=ffmpeg_branding="Chromium" \ GN_ARGS+=proprietary_codecs=false \ - GN_ARGS+=enable_hevc_demuxing=false + GN_ARGS+=enable_platform_hevc=false CUPS_LIB_DEPENDS= libcups.so:print/cups CUPS_VARS= GN_ARGS+=use_cups=true @@ -259,7 +258,7 @@ #./build/linux/unbundle/remove_bundled_libraries.py [list of preserved] cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${PYTHON_CMD} \ ./build/linux/unbundle/replace_gn_files.py --system-libraries \ - ffmpeg flac freetype harfbuzz-ng libdrm libusb libwebp libxml libxslt openh264 opus snappy yasm || ${FALSE} + ffmpeg flac fontconfig freetype harfbuzz-ng libdrm libpng libwebp libxml libxslt openh264 opus snappy yasm || ${FALSE} .endif do-configure: @@ -301,7 +300,10 @@ .endfor ${INSTALL_DATA} ${WRKSRC}/out/${BUILDTYPE}/*.png ${STAGEDIR}${DATADIR} ${INSTALL_DATA} ${WRKSRC}/out/${BUILDTYPE}/*.pak ${STAGEDIR}${DATADIR} -.for d in protoc icudtl.dat mksnapshot natives_blob.bin snapshot_blob.bin v8_context_snapshot.bin +.for d in protoc mksnapshot + ${INSTALL_PROGRAM} ${WRKSRC}/out/${BUILDTYPE}/${d} ${STAGEDIR}${DATADIR} +.endfor +.for d in icudtl.dat snapshot_blob.bin v8_context_snapshot.bin ${INSTALL_DATA} ${WRKSRC}/out/${BUILDTYPE}/${d} ${STAGEDIR}${DATADIR} .endfor ${INSTALL_PROGRAM} ${WRKSRC}/out/${BUILDTYPE}/chrome \ Index: head/www/chromium/distinfo =================================================================== --- head/www/chromium/distinfo +++ head/www/chromium/distinfo @@ -1,7 +1,7 @@ -TIMESTAMP = 1579261549 -SHA256 (chromium-79.0.3945.130.tar.xz) = 56193431ab9d1193773b133d86b419bfae8d8b9196eea253660895e0e8f87ba0 -SIZE (chromium-79.0.3945.130.tar.xz) = 778319112 -SHA256 (chromium-79.0.3945.130-testdata.tar.xz) = da0b544e2f9a3022c5120a0dc21b945e4565e7e4b64f086eefd720e2c1e516d8 -SIZE (chromium-79.0.3945.130-testdata.tar.xz) = 252386344 +TIMESTAMP = 1583291717 +SHA256 (chromium-80.0.3987.132.tar.xz) = 2c0012059046a5a7e2bf6e9502f1898f1953226d63b724b82fc18226e285c201 +SIZE (chromium-80.0.3987.132.tar.xz) = 796975056 +SHA256 (chromium-80.0.3987.132-testdata.tar.xz) = 6cbe559778ab75386c90b2de29416bc63b5b6d5b1232876b6a7626359362a91b +SIZE (chromium-80.0.3987.132-testdata.tar.xz) = 251267384 SHA256 (test_fonts.tar.xz) = cf9cbe3b7f1c4c42d426bddc65ec178d333ad7e205a36fe0a606a3c0c545ece1 SIZE (test_fonts.tar.xz) = 200040 Index: head/www/chromium/files/patch-BUILD.gn =================================================================== --- head/www/chromium/files/patch-BUILD.gn +++ head/www/chromium/files/patch-BUILD.gn @@ -1,4 +1,4 @@ ---- BUILD.gn.orig 2019-12-16 21:51:21 UTC +--- BUILD.gn.orig 2020-03-03 18:53:46 UTC +++ BUILD.gn @@ -411,7 +411,7 @@ group("gn_all") { ] @@ -57,7 +57,7 @@ ] if (is_desktop_linux && use_ozone) { deps += [ "//chrome/browser/vr/testapp:vr_testapp" ] -@@ -905,7 +894,6 @@ if (is_chromeos) { +@@ -918,7 +907,6 @@ if (is_chromeos) { "//ppapi/examples/video_decode", "//sandbox/linux:chrome_sandbox", "//sandbox/linux:sandbox_linux_unittests", @@ -65,7 +65,7 @@ # Blocked on https://github.com/catapult-project/catapult/issues/2297 #"//third_party/catapult/telemetry:bitmaptools", -@@ -1076,7 +1064,7 @@ if (!is_ios) { +@@ -1069,7 +1057,7 @@ if (!is_ios) { ] } @@ -74,7 +74,7 @@ data_deps += [ "//third_party/breakpad:minidump_stackwalk($host_toolchain)" ] } -@@ -1085,7 +1073,7 @@ if (!is_ios) { +@@ -1078,7 +1066,7 @@ if (!is_ios) { data_deps += [ "//third_party/breakpad:dump_syms($host_toolchain)" ] } @@ -83,7 +83,7 @@ data_deps += [ "//third_party/breakpad:dump_syms($host_toolchain)" ] } -@@ -1227,9 +1215,6 @@ group("chromium_builder_perf") { +@@ -1220,9 +1208,6 @@ group("chromium_builder_perf") { if (is_win) { data_deps += [ "//chrome/installer/mini_installer:mini_installer" ] Index: head/www/chromium/files/patch-ash_display_mirror__window__controller.cc =================================================================== --- head/www/chromium/files/patch-ash_display_mirror__window__controller.cc +++ head/www/chromium/files/patch-ash_display_mirror__window__controller.cc @@ -1,6 +1,6 @@ ---- ash/display/mirror_window_controller.cc.orig 2019-03-11 22:00:51 UTC +--- ash/display/mirror_window_controller.cc.orig 2020-03-03 18:53:46 UTC +++ ash/display/mirror_window_controller.cc -@@ -274,7 +274,11 @@ void MirrorWindowController::UpdateWindow( +@@ -298,7 +298,11 @@ void MirrorWindowController::UpdateWindow( return info.id() == iter->first; }) == display_info_list.end()) { CloseAndDeleteHost(iter->second, true); Index: head/www/chromium/files/patch-base_BUILD.gn =================================================================== --- head/www/chromium/files/patch-base_BUILD.gn +++ head/www/chromium/files/patch-base_BUILD.gn @@ -1,6 +1,6 @@ ---- base/BUILD.gn.orig 2019-12-16 21:51:21 UTC +--- base/BUILD.gn.orig 2020-03-03 18:53:46 UTC +++ base/BUILD.gn -@@ -1274,7 +1274,7 @@ jumbo_component("base") { +@@ -1302,7 +1302,7 @@ jumbo_component("base") { # Needed for if using newer C++ library than sysroot, except if # building inside the cros_sdk environment - use host_toolchain as a # more robust check for this. @@ -9,7 +9,7 @@ host_toolchain != "//build/toolchain/cros:host") { libs += [ "atomic" ] } -@@ -1300,7 +1300,7 @@ jumbo_component("base") { +@@ -1328,7 +1328,7 @@ jumbo_component("base") { "allocator/allocator_shim_override_glibc_weak_symbols.h", ] deps += [ "//base/allocator:tcmalloc" ] @@ -18,7 +18,7 @@ sources += [ "allocator/allocator_shim_default_dispatch_to_glibc.cc" ] } else if (is_android && use_allocator == "none") { sources += [ -@@ -1903,6 +1903,33 @@ jumbo_component("base") { +@@ -1919,6 +1919,33 @@ jumbo_component("base") { } } @@ -51,10 +51,10 @@ + # iOS if (is_ios) { - set_sources_assignment_filter([]) -@@ -3071,6 +3098,12 @@ test("base_unittests") { - ] - set_sources_assignment_filter(sources_assignment_filter) + sources -= [ +@@ -3069,6 +3096,12 @@ test("base_unittests") { + + manifest = "//build/config/fuchsia/tests.cmx" } + + if (is_bsd) { @@ -63,5 +63,5 @@ + ] + } - if (is_win) { - deps += [ "//base:scoped_handle_test_dll" ] + if (!is_fuchsia && !is_ios) { + sources += [ "files/file_locking_unittest.cc" ] Index: head/www/chromium/files/patch-base_allocator_allocator__shim__default__dispatch__to__glibc.cc =================================================================== --- head/www/chromium/files/patch-base_allocator_allocator__shim__default__dispatch__to__glibc.cc +++ head/www/chromium/files/patch-base_allocator_allocator__shim__default__dispatch__to__glibc.cc @@ -1,7 +1,7 @@ ---- base/allocator/allocator_shim_default_dispatch_to_glibc.cc.orig 2019-07-24 18:58:01 UTC +--- base/allocator/allocator_shim_default_dispatch_to_glibc.cc.orig 2020-03-03 18:52:59 UTC +++ base/allocator/allocator_shim_default_dispatch_to_glibc.cc -@@ -5,18 +5,28 @@ - #include "base/allocator/allocator_shim.h" +@@ -6,18 +6,28 @@ + #include "base/compiler_specific.h" #include -#include @@ -36,7 +36,7 @@ } // extern "C" namespace { -@@ -24,32 +34,32 @@ namespace { +@@ -25,32 +35,32 @@ namespace { using base::allocator::AllocatorDispatch; void* GlibcMalloc(const AllocatorDispatch*, size_t size, void* context) { @@ -73,4 +73,4 @@ + __free(address); } - size_t GlibcGetSizeEstimate(const AllocatorDispatch*, + NO_SANITIZE("cfi-icall") Index: head/www/chromium/files/patch-base_debug_elf__reader.cc =================================================================== --- head/www/chromium/files/patch-base_debug_elf__reader.cc +++ head/www/chromium/files/patch-base_debug_elf__reader.cc @@ -1,18 +1,18 @@ ---- base/debug/elf_reader.cc.orig 2019-06-04 18:55:15 UTC +--- base/debug/elf_reader.cc.orig 2020-03-03 18:52:59 UTC +++ base/debug/elf_reader.cc -@@ -83,6 +83,7 @@ size_t ReadElfBuildId(const void* elf_mapped_base, - reinterpret_cast(elf_base + header.p_vaddr); +@@ -98,6 +98,7 @@ size_t ReadElfBuildId(const void* elf_mapped_base, bool found = false; - while (current_note < section_end) { + while (current_section < section_end) { + current_note = reinterpret_cast(current_section); +#if !defined(OS_BSD) if (current_note->n_type == NT_GNU_BUILD_ID) { - const char* note_name = - reinterpret_cast(current_note) + sizeof(Nhdr); -@@ -92,6 +93,7 @@ size_t ReadElfBuildId(const void* elf_mapped_base, + StringPiece note_name(current_section + sizeof(Nhdr), + current_note->n_namesz); +@@ -107,6 +108,7 @@ size_t ReadElfBuildId(const void* elf_mapped_base, break; } } +#endif - current_note = reinterpret_cast( - reinterpret_cast(current_note) + sizeof(Nhdr) + + size_t section_size = bits::Align(current_note->n_namesz, 4) + + bits::Align(current_note->n_descsz, 4) + Index: head/www/chromium/files/patch-base_files_file__util__posix.cc =================================================================== --- head/www/chromium/files/patch-base_files_file__util__posix.cc +++ head/www/chromium/files/patch-base_files_file__util__posix.cc @@ -1,6 +1,6 @@ ---- base/files/file_util_posix.cc.orig 2019-12-16 21:51:21 UTC +--- base/files/file_util_posix.cc.orig 2020-03-03 18:52:59 UTC +++ base/files/file_util_posix.cc -@@ -435,7 +435,7 @@ bool CreatePipe(ScopedFD* read_fd, ScopedFD* write_fd, +@@ -411,7 +411,7 @@ bool CreatePipe(ScopedFD* read_fd, ScopedFD* write_fd, } bool CreateLocalNonBlockingPipe(int fds[2]) { Index: head/www/chromium/files/patch-base_i18n_icu__util.cc =================================================================== --- head/www/chromium/files/patch-base_i18n_icu__util.cc +++ head/www/chromium/files/patch-base_i18n_icu__util.cc @@ -1,20 +1,20 @@ --- base/i18n/icu_util.cc.orig 2019-12-16 21:51:21 UTC +++ base/i18n/icu_util.cc -@@ -20,7 +20,7 @@ - #include "build/build_config.h" - #include "third_party/icu/source/common/unicode/putil.h" - #include "third_party/icu/source/common/unicode/udata.h" --#if (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_ANDROID) -+#if (defined(OS_LINUX) || defined(OS_BSD) && !defined(OS_CHROMEOS)) || defined(OS_ANDROID) - #include "third_party/icu/source/i18n/unicode/timezone.h" +@@ -43,7 +43,7 @@ #endif -@@ -365,7 +365,7 @@ bool InitializeICU() { - // TODO(jungshik): Some callers do not care about tz at all. If necessary, - // add a boolean argument to this function to init'd the default tz only - // when requested. --#if defined(OS_LINUX) && !defined(OS_CHROMEOS) -+#if (defined(OS_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS) - if (result) - std::unique_ptr zone(icu::TimeZone::createDefault()); + #if defined(OS_ANDROID) || defined(OS_FUCHSIA) || \ +- (defined(OS_LINUX) && !defined(IS_CHROMECAST)) ++ (defined(OS_LINUX) && !defined(IS_CHROMECAST)) || defined(OS_BSD) + #include "third_party/icu/source/i18n/unicode/timezone.h" #endif + +@@ -288,7 +288,7 @@ void InitializeIcuTimeZone() { + fuchsia::IntlProfileWatcher::GetPrimaryTimeZoneIdForIcuInitialization(); + icu::TimeZone::adoptDefault( + icu::TimeZone::createTimeZone(icu::UnicodeString::fromUTF8(zone_id))); +-#elif defined(OS_LINUX) && !defined(IS_CHROMECAST) ++#elif (defined(OS_LINUX) && !defined(IS_CHROMECAST)) || defined(OS_BSD) + // To respond to the timezone change properly, the default timezone + // cache in ICU has to be populated on starting up. + // See TimeZoneMonitorLinux::NotifyClientsFromImpl(). Index: head/www/chromium/files/patch-base_memory_madv__free__discardable__memory__posix.cc =================================================================== --- head/www/chromium/files/patch-base_memory_madv__free__discardable__memory__posix.cc +++ head/www/chromium/files/patch-base_memory_madv__free__discardable__memory__posix.cc @@ -0,0 +1,11 @@ +--- base/memory/madv_free_discardable_memory_posix.cc.orig 2020-03-03 18:53:47 UTC ++++ base/memory/madv_free_discardable_memory_posix.cc +@@ -267,7 +267,7 @@ void MadvFreeDiscardableMemoryPosix::SetKeepMemoryForT + + bool MadvFreeDiscardableMemoryPosix::IsResident() const { + DFAKE_SCOPED_RECURSIVE_LOCK(thread_collision_warner_); +-#ifdef OS_MACOSX ++#if defined(OS_MACOSX) || defined(OS_BSD) + std::vector vec(allocated_pages_); + #else + std::vector vec(allocated_pages_); Index: head/www/chromium/files/patch-base_memory_platform__shared__memory__region.h =================================================================== --- head/www/chromium/files/patch-base_memory_platform__shared__memory__region.h +++ head/www/chromium/files/patch-base_memory_platform__shared__memory__region.h @@ -1,6 +1,6 @@ ---- base/memory/platform_shared_memory_region.h.orig 2019-09-16 12:06:15 UTC +--- base/memory/platform_shared_memory_region.h.orig 2020-03-03 18:52:59 UTC +++ base/memory/platform_shared_memory_region.h -@@ -28,7 +28,7 @@ +@@ -27,7 +27,7 @@ #include "base/files/scoped_file.h" #endif @@ -9,7 +9,7 @@ namespace content { class SandboxIPCHandler; } -@@ -122,7 +122,7 @@ class BASE_EXPORT PlatformSharedMemoryRegion { +@@ -121,7 +121,7 @@ class BASE_EXPORT PlatformSharedMemoryRegion { kMaxValue = GET_SHMEM_TEMP_DIR_FAILURE }; @@ -18,7 +18,7 @@ // Structure to limit access to executable region creation. struct ExecutableRegion { private: -@@ -276,7 +276,7 @@ class BASE_EXPORT PlatformSharedMemoryRegion { +@@ -266,7 +266,7 @@ class BASE_EXPORT PlatformSharedMemoryRegion { CheckPlatformHandlePermissionsCorrespondToMode); static PlatformSharedMemoryRegion Create(Mode mode, size_t size Index: head/www/chromium/files/patch-base_memory_platform__shared__memory__region__posix.cc =================================================================== --- head/www/chromium/files/patch-base_memory_platform__shared__memory__region__posix.cc +++ head/www/chromium/files/patch-base_memory_platform__shared__memory__region__posix.cc @@ -1,6 +1,6 @@ ---- base/memory/platform_shared_memory_region_posix.cc.orig 2019-09-16 12:05:39 UTC +--- base/memory/platform_shared_memory_region_posix.cc.orig 2020-03-03 18:52:59 UTC +++ base/memory/platform_shared_memory_region_posix.cc -@@ -76,7 +76,7 @@ FDPair ScopedFDPair::get() const { +@@ -75,7 +75,7 @@ FDPair ScopedFDPair::get() const { return {fd.get(), readonly_fd.get()}; } @@ -9,7 +9,7 @@ // static ScopedFD PlatformSharedMemoryRegion::ExecutableRegion::CreateFD(size_t size) { PlatformSharedMemoryRegion region = -@@ -85,7 +85,7 @@ ScopedFD PlatformSharedMemoryRegion::ExecutableRegion: +@@ -84,7 +84,7 @@ ScopedFD PlatformSharedMemoryRegion::ExecutableRegion: return region.PassPlatformHandle().fd; return ScopedFD(); } @@ -18,7 +18,7 @@ // static PlatformSharedMemoryRegion PlatformSharedMemoryRegion::Take( -@@ -224,7 +224,7 @@ bool PlatformSharedMemoryRegion::MapAtInternal(off_t o +@@ -209,7 +209,7 @@ bool PlatformSharedMemoryRegion::MapAtInternal(off_t o // static PlatformSharedMemoryRegion PlatformSharedMemoryRegion::Create(Mode mode, size_t size @@ -27,7 +27,7 @@ , bool executable #endif -@@ -255,7 +255,7 @@ PlatformSharedMemoryRegion PlatformSharedMemoryRegion: +@@ -240,7 +240,7 @@ PlatformSharedMemoryRegion PlatformSharedMemoryRegion: // flag. FilePath directory; if (!GetShmemTempDir( Index: head/www/chromium/files/patch-base_process_launch.h =================================================================== --- head/www/chromium/files/patch-base_process_launch.h +++ head/www/chromium/files/patch-base_process_launch.h @@ -1,6 +1,6 @@ ---- base/process/launch.h.orig 2019-06-04 18:55:15 UTC +--- base/process/launch.h.orig 2020-03-03 18:52:59 UTC +++ base/process/launch.h -@@ -181,7 +181,7 @@ struct BASE_EXPORT LaunchOptions { +@@ -180,7 +180,7 @@ struct BASE_EXPORT LaunchOptions { bool clear_environment = false; #endif // OS_WIN || OS_POSIX || OS_FUCHSIA @@ -9,7 +9,7 @@ // If non-zero, start the process using clone(), using flags as provided. // Unlike in clone, clone_flags may not contain a custom termination signal // that is sent to the parent when the child dies. The termination signal will -@@ -194,7 +194,7 @@ struct BASE_EXPORT LaunchOptions { +@@ -193,7 +193,7 @@ struct BASE_EXPORT LaunchOptions { // Sets parent process death signal to SIGKILL. bool kill_on_parent_death = false; Index: head/www/chromium/files/patch-base_profiler_register__context.h =================================================================== --- head/www/chromium/files/patch-base_profiler_register__context.h +++ head/www/chromium/files/patch-base_profiler_register__context.h @@ -0,0 +1,60 @@ +--- base/profiler/register_context.h.orig 2020-03-03 18:53:47 UTC ++++ base/profiler/register_context.h +@@ -17,7 +17,7 @@ + #include + #elif defined(OS_MACOSX) + #include +-#elif defined(OS_ANDROID) || defined(OS_LINUX) ++#elif defined(OS_ANDROID) || defined(OS_LINUX) || defined(OS_BSD) + #include + #endif + +@@ -152,6 +152,48 @@ inline uintptr_t& RegisterContextInstructionPointer(mc + } + + #endif // #if defined(ARCH_CPU_ARM_FAMILY) && defined(ARCH_CPU_32_BITS) ++ ++#elif defined(OS_FREEBSD) ++ ++using RegisterContext = mcontext_t; ++ ++#if defined(ARCH_CPU_X86_64) ++inline uintptr_t& RegisterContextStackPointer(mcontext_t* context) { ++ return AsUintPtr(&context->mc_rsp); ++} ++ ++inline uintptr_t& RegisterContextFramePointer(mcontext_t* context) { ++ return AsUintPtr(&context->mc_rbp); ++} ++ ++inline uintptr_t& RegisterContextInstructionPointer(mcontext_t* context) { ++ return AsUintPtr(&context->mc_rip); ++} ++#elif defined(ARCH_CPU_X86) ++inline uintptr_t& RegisterContextStackPointer(mcontext_t* context) { ++ return AsUintPtr(&context->mc_esp); ++} ++ ++inline uintptr_t& RegisterContextFramePointer(mcontext_t* context) { ++ return AsUintPtr(&context->mc_ebp); ++} ++ ++inline uintptr_t& RegisterContextInstructionPointer(mcontext_t* context) { ++ return AsUintPtr(&context->mc_eip); ++} ++#elif defined(ARCH_CPU_ARM64) ++inline uintptr_t& RegisterContextStackPointer(mcontext_t* context) { ++ return AsUintPtr(&context->mc_gpregs.gp_sp); ++} ++ ++inline uintptr_t& RegisterContextFramePointer(mcontext_t* context) { ++ return AsUintPtr(&context->mc_gpregs.gp_x[29]); ++} ++ ++inline uintptr_t& RegisterContextInstructionPointer(mcontext_t* context) { ++ return AsUintPtr(&context->mc_gpregs.gp_elr); ++} ++#endif + + #else // #if defined(OS_WIN) + Index: head/www/chromium/files/patch-base_profiler_sampling__profiler__thread__token.h =================================================================== --- head/www/chromium/files/patch-base_profiler_sampling__profiler__thread__token.h +++ head/www/chromium/files/patch-base_profiler_sampling__profiler__thread__token.h @@ -0,0 +1,20 @@ +--- base/profiler/sampling_profiler_thread_token.h.orig 2020-03-05 05:52:21 UTC ++++ base/profiler/sampling_profiler_thread_token.h +@@ -9,7 +9,7 @@ + #include "base/threading/platform_thread.h" + #include "build/build_config.h" + +-#if defined(OS_ANDROID) || defined(OS_LINUX) ++#if defined(OS_ANDROID) || defined(OS_LINUX) || defined(OS_BSD) + #include + #endif + +@@ -21,7 +21,7 @@ namespace base { + // functions used to obtain the stack base address. + struct SamplingProfilerThreadToken { + PlatformThreadId id; +-#if defined(OS_ANDROID) || defined(OS_LINUX) ++#if defined(OS_ANDROID) || defined(OS_LINUX) || defined(OS_BSD) + pthread_t pthread_id; + #endif + }; Index: head/www/chromium/files/patch-base_profiler_sampling__profiler__thread__token.cc =================================================================== --- head/www/chromium/files/patch-base_profiler_sampling__profiler__thread__token.cc +++ head/www/chromium/files/patch-base_profiler_sampling__profiler__thread__token.cc @@ -0,0 +1,11 @@ +--- base/profiler/sampling_profiler_thread_token.cc.orig 2020-03-03 18:52:59 UTC ++++ base/profiler/sampling_profiler_thread_token.cc +@@ -7,7 +7,7 @@ + namespace base { + + SamplingProfilerThreadToken GetSamplingProfilerCurrentThreadToken() { +-#if defined(OS_ANDROID) || defined(OS_LINUX) ++#if defined(OS_ANDROID) || defined(OS_LINUX) || defined(OS_BSD) + return {PlatformThread::CurrentId(), pthread_self()}; + #else + return {PlatformThread::CurrentId()}; Index: head/www/chromium/files/patch-base_profiler_stack__copier__signal.cc =================================================================== --- head/www/chromium/files/patch-base_profiler_stack__copier__signal.cc +++ head/www/chromium/files/patch-base_profiler_stack__copier__signal.cc @@ -0,0 +1,65 @@ +--- base/profiler/stack_copier_signal.cc.orig 2020-03-03 18:53:47 UTC ++++ base/profiler/stack_copier_signal.cc +@@ -4,10 +4,16 @@ + + #include "base/profiler/stack_copier_signal.h" + ++#if defined(OS_LINUX) + #include ++#include ++#elif defined(OS_FREEBSD) ++#include ++#include ++#include ++#endif + #include + #include +-#include + + #include + +@@ -35,8 +41,13 @@ class AsyncSafeWaitableEvent { + // for a pthread mutex. So, also check the condition. + while (true) { + int res = ++#if defined(OS_LINUX) + syscall(SYS_futex, futex_int_ptr(), FUTEX_WAIT | FUTEX_PRIVATE_FLAG, + 0, nullptr, nullptr, 0); ++#elif defined(OS_FREEBSD) ++ _umtx_op(futex_int_ptr(), UMTX_OP_WAIT_UINT_PRIVATE, 0, nullptr, ++ nullptr); ++#endif + if (futex_.load(std::memory_order_acquire) != 0) + return true; + if (res != 0) +@@ -46,8 +57,12 @@ class AsyncSafeWaitableEvent { + + void Signal() { + futex_.store(1, std::memory_order_release); ++#if defined(OS_LINUX) + syscall(SYS_futex, futex_int_ptr(), FUTEX_WAKE | FUTEX_PRIVATE_FLAG, 1, + nullptr, nullptr, 0); ++#elif defined(OS_FREEBSD) ++ _umtx_op(futex_int_ptr(), UMTX_OP_WAKE_PRIVATE, 1, nullptr, nullptr); ++#endif + } + + private: +@@ -201,11 +216,17 @@ bool StackCopierSignal::CopyStack(StackBuffer* stack_b + if (!scoped_sigaction.succeeded()) + return false; + ++#if defined(OS_LINUX) + if (syscall(SYS_tgkill, getpid(), thread_delegate_->GetThreadId(), + SIGURG) != 0) { + NOTREACHED(); + return false; + } ++#elif defined(OS_FREEBSD) ++ if (thr_kill2(getpid(), thread_delegate_->GetThreadId(), SIGURG) != 0) { ++ return false; ++ } ++#endif + bool finished_waiting = wait_event.Wait(); + TRACE_EVENT_END0(TRACE_DISABLED_BY_DEFAULT("cpu_profiler.debug"), + "StackCopierSignal copy stack"); Index: head/www/chromium/files/patch-base_profiler_thread__delegate__posix.cc =================================================================== --- head/www/chromium/files/patch-base_profiler_thread__delegate__posix.cc +++ head/www/chromium/files/patch-base_profiler_thread__delegate__posix.cc @@ -0,0 +1,63 @@ +--- base/profiler/thread_delegate_posix.cc.orig 2020-03-03 18:53:47 UTC ++++ base/profiler/thread_delegate_posix.cc +@@ -3,6 +3,9 @@ + // found in the LICENSE file. + + #include ++#if defined(__FreeBSD__) ++#include ++#endif + + #include "base/process/process_handle.h" + #include "base/profiler/thread_delegate_posix.h" +@@ -17,12 +20,20 @@ namespace { + uintptr_t GetThreadStackBaseAddressImpl( + SamplingProfilerThreadToken thread_token) { + pthread_attr_t attr; ++#if defined(OS_FREEBSD) ++ pthread_attr_init(&attr); ++ pthread_attr_get_np(thread_token.pthread_id, &attr); ++#elif defined(OS_LINUX) + pthread_getattr_np(thread_token.pthread_id, &attr); ++#endif + // See crbug.com/617730 for limitations of this approach on Linux. + void* address; + size_t size; + pthread_attr_getstack(&attr, &address, &size); + const uintptr_t base_address = reinterpret_cast(address) + size; ++#if defined(OS_FREEBSD) ++ pthread_attr_destroy(&attr); ++#endif + return base_address; + } + +@@ -88,11 +99,19 @@ std::vector ThreadDelegatePosix::GetRegist + for (size_t i = 19; i <= 29; ++i) + registers.push_back(reinterpret_cast(&thread_context->regs[i])); + return registers; +-#elif defined(ARCH_CPU_X86_64) // #if defined(ARCH_CPU_ARM_FAMILY) && +- // defined(ARCH_CPU_32_BITS) ++#elif defined(ARCH_CPU_X86_64) + return { + // Return the set of callee-save registers per the x86-64 System V ABI + // section 3.2.1, plus the stack pointer. ++#if defined(OS_FREEBSD) ++ reinterpret_cast(&thread_context->mc_rbp), ++ reinterpret_cast(&thread_context->mc_rbx), ++ reinterpret_cast(&thread_context->mc_r12), ++ reinterpret_cast(&thread_context->mc_r13), ++ reinterpret_cast(&thread_context->mc_r14), ++ reinterpret_cast(&thread_context->mc_r15), ++ reinterpret_cast(&thread_context->mc_rsp), ++#else + reinterpret_cast(&thread_context->gregs[REG_RBP]), + reinterpret_cast(&thread_context->gregs[REG_RBX]), + reinterpret_cast(&thread_context->gregs[REG_R12]), +@@ -100,6 +119,7 @@ std::vector ThreadDelegatePosix::GetRegist + reinterpret_cast(&thread_context->gregs[REG_R14]), + reinterpret_cast(&thread_context->gregs[REG_R15]), + reinterpret_cast(&thread_context->gregs[REG_RSP]), ++#endif + }; + #else // #if defined(ARCH_CPU_ARM_FAMILY) && defined(ARCH_CPU_32_BITS) + // Unimplemented for other architectures. Index: head/www/chromium/files/patch-base_test_fontconfig__util__linux.cc =================================================================== --- head/www/chromium/files/patch-base_test_fontconfig__util__linux.cc +++ head/www/chromium/files/patch-base_test_fontconfig__util__linux.cc @@ -1,6 +1,6 @@ --- base/test/fontconfig_util_linux.cc.orig 2019-04-30 22:22:28 UTC +++ base/test/fontconfig_util_linux.cc -@@ -6,24 +6,397 @@ +@@ -6,22 +6,397 @@ #include @@ -386,8 +386,6 @@ + kFontsConfTemplate, {font_cache.value(), test_fonts.value()}, nullptr); - std::unique_ptr env(Environment::Create()); -- // TODO(thomasanderson): This still stat()'s the real /etc/fonts/fonts.conf. -- // Prevent fontconfig from doing this. - CHECK(env->SetVar("FONTCONFIG_SYSROOT", dir_module.value().c_str())); + // Write the data to a different file and then atomically rename it to + // fonts.conf. This avoids the file being in a bad state when different Index: head/www/chromium/files/patch-base_test_test__file__util__posix.cc =================================================================== --- head/www/chromium/files/patch-base_test_test__file__util__posix.cc +++ head/www/chromium/files/patch-base_test_test__file__util__posix.cc @@ -1,6 +1,6 @@ ---- base/test/test_file_util_posix.cc.orig 2019-03-11 22:00:51 UTC +--- base/test/test_file_util_posix.cc.orig 2020-03-03 18:52:59 UTC +++ base/test/test_file_util_posix.cc -@@ -85,7 +85,7 @@ void SyncPageCacheToDisk() { +@@ -84,7 +84,7 @@ void SyncPageCacheToDisk() { sync(); } Index: head/www/chromium/files/patch-base_threading_platform__thread.h =================================================================== --- head/www/chromium/files/patch-base_threading_platform__thread.h +++ head/www/chromium/files/patch-base_threading_platform__thread.h @@ -1,6 +1,15 @@ ---- base/threading/platform_thread.h.orig 2019-10-21 19:06:18 UTC +--- base/threading/platform_thread.h.orig 2020-03-03 18:52:59 UTC +++ base/threading/platform_thread.h -@@ -221,7 +221,7 @@ class BASE_EXPORT PlatformThread { +@@ -36,6 +36,8 @@ typedef DWORD PlatformThreadId; + typedef zx_handle_t PlatformThreadId; + #elif defined(OS_MACOSX) + typedef mach_port_t PlatformThreadId; ++#elif defined(OS_FREEBSD) ++typedef long PlatformThreadId; + #elif defined(OS_POSIX) + typedef pid_t PlatformThreadId; + #endif +@@ -221,7 +223,7 @@ class BASE_EXPORT PlatformThread { static ThreadPriority GetCurrentThreadPriority(); Index: head/www/chromium/files/patch-base_threading_platform__thread__posix.cc =================================================================== --- head/www/chromium/files/patch-base_threading_platform__thread__posix.cc +++ head/www/chromium/files/patch-base_threading_platform__thread__posix.cc @@ -1,6 +1,17 @@ ---- base/threading/platform_thread_posix.cc.orig 2019-03-11 22:00:51 UTC +--- base/threading/platform_thread_posix.cc.orig 2020-03-03 18:53:47 UTC +++ base/threading/platform_thread_posix.cc -@@ -66,7 +66,7 @@ void* ThreadFunc(void* params) { +@@ -32,6 +32,10 @@ + #include + #endif + ++#if defined(OS_FREEBSD) ++#include ++#endif ++ + #if defined(OS_FUCHSIA) + #include + #else +@@ -66,7 +70,7 @@ void* ThreadFunc(void* params) { if (!thread_params->joinable) base::ThreadRestrictions::SetSingletonAllowed(false); @@ -9,3 +20,14 @@ // Threads on linux/android may inherit their priority from the thread // where they were created. This explicitly sets the priority of all new // threads. +@@ -188,6 +192,10 @@ PlatformThreadId PlatformThread::CurrentId() { + return g_thread_id; + #elif defined(OS_ANDROID) + return gettid(); ++#elif defined(OS_FREEBSD) ++ long x; ++ thr_self(&x); ++ return x; + #elif defined(OS_FUCHSIA) + return zx_thread_self(); + #elif defined(OS_SOLARIS) || defined(OS_QNX) Index: head/www/chromium/files/patch-build_config_BUILD.gn =================================================================== --- head/www/chromium/files/patch-build_config_BUILD.gn +++ head/www/chromium/files/patch-build_config_BUILD.gn @@ -1,6 +1,6 @@ ---- build/config/BUILD.gn.orig 2019-10-21 19:06:18 UTC +--- build/config/BUILD.gn.orig 2020-03-03 18:53:47 UTC +++ build/config/BUILD.gn -@@ -149,7 +149,7 @@ config("debug") { +@@ -133,7 +133,7 @@ config("debug") { # builds, and we have to tell it to turn it off. defines += [ "_HAS_ITERATOR_DEBUGGING=0" ] } @@ -9,7 +9,7 @@ # Enable libstdc++ debugging facilities to help catch problems early, see # http://crbug.com/65151 . # TODO(phajdan.jr): Should we enable this for all of POSIX? -@@ -247,9 +247,7 @@ config("default_libs") { +@@ -231,9 +231,7 @@ config("default_libs") { ] } else if (is_linux) { libs = [ @@ -19,7 +19,7 @@ ] } } -@@ -337,7 +335,7 @@ config("executable_config") { +@@ -321,7 +319,7 @@ config("executable_config") { "//build/config/ios:ios_dynamic_flags", "//build/config/ios:ios_executable_flags", ] Index: head/www/chromium/files/patch-build_config_compiler_BUILD.gn =================================================================== --- head/www/chromium/files/patch-build_config_compiler_BUILD.gn +++ head/www/chromium/files/patch-build_config_compiler_BUILD.gn @@ -1,4 +1,4 @@ ---- build/config/compiler/BUILD.gn.orig 2019-12-16 21:51:21 UTC +--- build/config/compiler/BUILD.gn.orig 2020-03-03 18:53:47 UTC +++ build/config/compiler/BUILD.gn @@ -57,7 +57,7 @@ declare_args() { # only two architectures that are currently checked in). Turn this off when @@ -9,7 +9,7 @@ (current_cpu == "x64" || current_cpu == "x86") binutils_path = rebase_path("//third_party/binutils/Linux_x64/Release/bin", root_build_dir) -@@ -303,7 +303,7 @@ config("compiler") { +@@ -308,7 +308,7 @@ config("compiler") { # Linker warnings. if (fatal_linker_warnings && !(is_chromeos && current_cpu == "arm") && @@ -18,7 +18,7 @@ # TODO(jochen): Enable this on chromeos on arm. http://crbug.com/356580 ldflags += [ "-Wl,--fatal-warnings" ] } -@@ -398,7 +398,7 @@ config("compiler") { +@@ -403,7 +403,7 @@ config("compiler") { # Compiler instrumentation can introduce dependencies in DSOs to symbols in # the executable they are loaded into, so they are unresolved at link-time. @@ -27,7 +27,7 @@ ldflags += [ "-Wl,-z,defs", "-Wl,--as-needed", -@@ -498,7 +498,7 @@ config("compiler") { +@@ -503,7 +503,7 @@ config("compiler") { } } @@ -36,7 +36,7 @@ cflags += [ "-fcrash-diagnostics-dir=" + rebase_path("//tools/clang/crashreports", root_build_dir) ] -@@ -768,7 +768,7 @@ config("compiler_cpu_abi") { +@@ -773,7 +773,7 @@ config("compiler_cpu_abi") { cflags += [ "-mtune=$arm_tune" ] } } else if (current_cpu == "arm64") { @@ -45,7 +45,7 @@ cflags += [ "--target=aarch64-linux-gnu" ] ldflags += [ "--target=aarch64-linux-gnu" ] } -@@ -1119,7 +1119,7 @@ config("compiler_deterministic") { +@@ -1124,7 +1124,7 @@ config("compiler_deterministic") { "-Xclang", ".", ] @@ -54,7 +54,7 @@ # We don't use clang -cc1as on Windows (yet? https://crbug.com/762167) asmflags = [ "-Wa,-fdebug-compilation-dir,." ] } -@@ -1508,7 +1508,7 @@ config("default_warnings") { +@@ -1513,7 +1513,7 @@ config("default_warnings") { cflags += [ "-Wno-nonportable-include-path" ] } @@ -63,7 +63,7 @@ # Flags NaCl (Clang 3.7) and Xcode 9.2 (Clang clang-900.0.39.2) do not # recognize. cflags += [ -@@ -1738,7 +1738,7 @@ config("thin_archive") { +@@ -1761,7 +1761,7 @@ config("thin_archive") { # Mac and iOS use the mac-specific "libtool" command, not ar, which doesn't # have a "thin archive" mode (it does accept -T, but it means truncating # archive names to 16 characters, which is not what we want). @@ -72,7 +72,7 @@ arflags = [ "-T" ] } else if (is_win && use_lld) { arflags = [ "/llvmlibthin" ] -@@ -2328,7 +2328,7 @@ config("symbols") { +@@ -2351,7 +2351,7 @@ config("symbols") { # flag, so we can use use -g1 for pnacl and nacl-clang compiles. # gcc nacl is is_nacl && !is_clang, pnacl and nacl-clang are && is_clang. if (!is_nacl || is_clang) { @@ -81,7 +81,7 @@ } if (use_debug_fission && !is_nacl && !is_android) { -@@ -2349,7 +2349,7 @@ config("symbols") { +@@ -2372,7 +2372,7 @@ config("symbols") { # DWARF info may be corrupt; offsets in a range list entry are in different # sections" there. Maybe just a bug in nacl_switch_32.S. if (!is_mac && !is_ios && !is_nacl && current_cpu != "x86" && Index: head/www/chromium/files/patch-build_config_compiler_compiler.gni =================================================================== --- head/www/chromium/files/patch-build_config_compiler_compiler.gni +++ head/www/chromium/files/patch-build_config_compiler_compiler.gni @@ -1,6 +1,6 @@ ---- build/config/compiler/compiler.gni.orig 2019-12-16 21:51:21 UTC +--- build/config/compiler/compiler.gni.orig 2020-03-03 18:53:47 UTC +++ build/config/compiler/compiler.gni -@@ -192,7 +192,7 @@ declare_args() { +@@ -187,7 +187,7 @@ declare_args() { declare_args() { # Whether to use the gold linker from binutils instead of lld or bfd. use_gold = Index: head/www/chromium/files/patch-build_linux_unbundle_libxml.gn =================================================================== --- head/www/chromium/files/patch-build_linux_unbundle_libxml.gn +++ head/www/chromium/files/patch-build_linux_unbundle_libxml.gn @@ -0,0 +1,53 @@ +--- build/linux/unbundle/libxml.gn.orig 2020-03-03 18:53:47 UTC ++++ build/linux/unbundle/libxml.gn +@@ -8,11 +8,48 @@ pkg_config("system_libxml") { + packages = [ "libxml-2.0" ] + } + +-static_library("libxml") { ++source_set("libxml") { ++ public_configs = [ ":system_libxml" ] ++} ++ ++static_library("libxml_utils") { ++ # Do not expand this visibility list without first consulting with the ++ # Security Team. ++ visibility = [ ++ ":xml_reader", ++ ":xml_writer", ++ "//base/test:test_support", ++ "//services/data_decoder:xml_parser_fuzzer", ++ ] + sources = [ + "chromium/libxml_utils.cc", + "chromium/libxml_utils.h", + ] +- + public_configs = [ ":system_libxml" ] ++} ++ ++static_library("xml_reader") { ++ # Do not expand this visibility list without first consulting with the ++ # Security Team. ++ visibility = [ ++ "//base/test:test_support", ++ "//components/policy/core/common:unit_tests", ++ "//services/data_decoder:*", ++ "//tools/traffic_annotation/auditor:auditor_sources", ++ ] ++ sources = [ ++ "chromium/xml_reader.cc", ++ "chromium/xml_reader.h", ++ ] ++ deps = [ ":libxml_utils" ] ++} ++ ++static_library("xml_writer") { ++ # The XmlWriter is considered safe to use from any target. ++ visibility = [ "*" ] ++ sources = [ ++ "chromium/xml_writer.cc", ++ "chromium/xml_writer.h", ++ ] ++ deps = [ ":libxml_utils" ] + } Index: head/www/chromium/files/patch-cc_BUILD.gn =================================================================== --- head/www/chromium/files/patch-cc_BUILD.gn +++ head/www/chromium/files/patch-cc_BUILD.gn @@ -1,6 +1,6 @@ ---- cc/BUILD.gn.orig 2019-12-16 21:51:21 UTC +--- cc/BUILD.gn.orig 2020-03-03 18:53:47 UTC +++ cc/BUILD.gn -@@ -576,7 +576,7 @@ cc_test_static_library("test_support") { +@@ -578,7 +578,7 @@ cc_test_static_library("test_support") { if (enable_vulkan) { deps += [ "//gpu/vulkan/init" ] } @@ -9,7 +9,7 @@ data_deps = [ "//third_party/mesa_headers", ] -@@ -780,9 +780,6 @@ cc_test("cc_unittests") { +@@ -783,9 +783,6 @@ cc_test("cc_unittests") { "//ui/gfx/geometry", "//ui/gl", "//ui/gl:test_support", Index: head/www/chromium/files/patch-cc_trees_property__tree.cc =================================================================== --- head/www/chromium/files/patch-cc_trees_property__tree.cc +++ head/www/chromium/files/patch-cc_trees_property__tree.cc @@ -1,6 +1,6 @@ ---- cc/trees/property_tree.cc.orig 2019-12-16 21:51:22 UTC +--- cc/trees/property_tree.cc.orig 2020-03-03 18:53:47 UTC +++ cc/trees/property_tree.cc -@@ -1229,13 +1229,13 @@ gfx::ScrollOffset ScrollTree::MaxScrollOffset(int scro +@@ -1234,13 +1234,13 @@ gfx::ScrollOffset ScrollTree::MaxScrollOffset(int scro gfx::Size clip_layer_bounds = container_bounds(scroll_node->id); Index: head/www/chromium/files/patch-chrome_app_chrome__command__ids.h =================================================================== --- head/www/chromium/files/patch-chrome_app_chrome__command__ids.h +++ head/www/chromium/files/patch-chrome_app_chrome__command__ids.h @@ -1,6 +1,6 @@ ---- chrome/app/chrome_command_ids.h.orig 2019-03-11 22:00:52 UTC +--- chrome/app/chrome_command_ids.h.orig 2020-03-03 18:53:48 UTC +++ chrome/app/chrome_command_ids.h -@@ -63,7 +63,7 @@ +@@ -62,7 +62,7 @@ #define IDC_VISIT_DESKTOP_OF_LRU_USER_2 34049 #define IDC_VISIT_DESKTOP_OF_LRU_USER_3 34050 Index: head/www/chromium/files/patch-chrome_app_chrome__content__browser__overlay__manifest.cc =================================================================== --- head/www/chromium/files/patch-chrome_app_chrome__content__browser__overlay__manifest.cc +++ head/www/chromium/files/patch-chrome_app_chrome__content__browser__overlay__manifest.cc @@ -1,6 +1,6 @@ ---- chrome/app/chrome_content_browser_overlay_manifest.cc.orig 2019-12-16 21:51:22 UTC +--- chrome/app/chrome_content_browser_overlay_manifest.cc.orig 2020-03-03 18:53:48 UTC +++ chrome/app/chrome_content_browser_overlay_manifest.cc -@@ -70,7 +70,7 @@ +@@ -60,7 +60,7 @@ #include "chrome/browser/ui/webui/app_management/app_management.mojom.h" #endif @@ -9,7 +9,7 @@ defined(OS_CHROMEOS) #include "chrome/browser/ui/webui/discards/discards.mojom.h" #endif -@@ -189,7 +189,7 @@ const service_manager::Manifest& GetChromeContentBrows +@@ -145,7 +145,7 @@ const service_manager::Manifest& GetChromeContentBrows #else app_management::mojom::PageHandlerFactory, #endif Index: head/www/chromium/files/patch-chrome_app_chrome__main__delegate.cc =================================================================== --- head/www/chromium/files/patch-chrome_app_chrome__main__delegate.cc +++ head/www/chromium/files/patch-chrome_app_chrome__main__delegate.cc @@ -1,4 +1,4 @@ ---- chrome/app/chrome_main_delegate.cc.orig 2019-12-16 21:51:22 UTC +--- chrome/app/chrome_main_delegate.cc.orig 2020-03-03 18:53:48 UTC +++ chrome/app/chrome_main_delegate.cc @@ -100,7 +100,7 @@ #include "chrome/app/shutdown_signal_handlers_posix.h" @@ -9,7 +9,7 @@ #include "components/nacl/common/nacl_paths.h" #include "components/nacl/zygote/nacl_fork_delegate_linux.h" #endif -@@ -139,7 +139,7 @@ +@@ -142,7 +142,7 @@ #include "v8/include/v8.h" #endif @@ -18,7 +18,7 @@ #include "base/environment.h" #endif -@@ -243,7 +243,7 @@ bool UseHooks() { +@@ -246,7 +246,7 @@ bool UseHooks() { #endif // defined(OS_WIN) @@ -27,7 +27,7 @@ void AdjustLinuxOOMScore(const std::string& process_type) { // Browsers and zygotes should still be killable, but killed last. const int kZygoteScore = 0; -@@ -302,13 +302,13 @@ void AdjustLinuxOOMScore(const std::string& process_ty +@@ -305,13 +305,13 @@ void AdjustLinuxOOMScore(const std::string& process_ty if (score > -1) base::AdjustOOMScore(base::GetCurrentProcId(), score); } @@ -43,7 +43,7 @@ // The zygote process opens the resources for the renderers. process_type == service_manager::switches::kZygoteProcess || #endif -@@ -347,7 +347,7 @@ bool HandleVersionSwitches(const base::CommandLine& co +@@ -350,7 +350,7 @@ bool HandleVersionSwitches(const base::CommandLine& co return false; } @@ -52,7 +52,7 @@ // Show the man page if --help or -h is on the command line. void HandleHelpSwitches(const base::CommandLine& command_line) { if (command_line.HasSwitch(switches::kHelp) || -@@ -357,7 +357,7 @@ void HandleHelpSwitches(const base::CommandLine& comma +@@ -360,7 +360,7 @@ void HandleHelpSwitches(const base::CommandLine& comma PLOG(FATAL) << "execlp failed"; } } @@ -61,7 +61,7 @@ #if !defined(OS_MACOSX) && !defined(OS_ANDROID) void SIGTERMProfilingShutdown(int signal) { -@@ -411,7 +411,7 @@ void InitializeUserDataDir(base::CommandLine* command_ +@@ -414,7 +414,7 @@ void InitializeUserDataDir(base::CommandLine* command_ std::string process_type = command_line->GetSwitchValueASCII(switches::kProcessType); @@ -70,7 +70,7 @@ // On Linux, Chrome does not support running multiple copies under different // DISPLAYs, so the profile directory can be specified in the environment to // support the virtual desktop use-case. -@@ -423,7 +423,7 @@ void InitializeUserDataDir(base::CommandLine* command_ +@@ -426,7 +426,7 @@ void InitializeUserDataDir(base::CommandLine* command_ user_data_dir = base::FilePath::FromUTF8Unsafe(user_data_dir_string); } } @@ -79,7 +79,7 @@ #if defined(OS_MACOSX) policy::path_parser::CheckUserDataDirPolicy(&user_data_dir); #endif // OS_MAC -@@ -480,7 +480,7 @@ void InitLogging(const std::string& process_type) { +@@ -483,7 +483,7 @@ void InitLogging(const std::string& process_type) { void RecordMainStartupMetrics(base::TimeTicks exe_entry_point_ticks) { if (!exe_entry_point_ticks.is_null()) startup_metric_utils::RecordExeMainEntryPointTicks(exe_entry_point_ticks); @@ -88,7 +88,7 @@ // Record the startup process creation time on supported platforms. startup_metric_utils::RecordStartupProcessCreationTime( base::Process::Current().CreationTime()); -@@ -665,7 +665,7 @@ bool ChromeMainDelegate::BasicStartupComplete(int* exi +@@ -684,7 +684,7 @@ bool ChromeMainDelegate::BasicStartupComplete(int* exi *exit_code = 0; return true; // Got a --version switch; exit with a success error code. } @@ -97,7 +97,7 @@ // This will directly exit if the user asked for help. HandleHelpSwitches(command_line); #endif -@@ -689,7 +689,7 @@ bool ChromeMainDelegate::BasicStartupComplete(int* exi +@@ -708,7 +708,7 @@ bool ChromeMainDelegate::BasicStartupComplete(int* exi #if defined(OS_CHROMEOS) chromeos::RegisterPathProvider(); #endif @@ -106,7 +106,7 @@ nacl::RegisterPathProvider(); #endif -@@ -883,7 +883,7 @@ void ChromeMainDelegate::PreSandboxStartup() { +@@ -902,7 +902,7 @@ void ChromeMainDelegate::PreSandboxStartup() { #if defined(OS_WIN) child_process_logging::Init(); #endif @@ -115,7 +115,7 @@ // Create an instance of the CPU class to parse /proc/cpuinfo and cache // cpu_brand info. base::CPU cpu_info; -@@ -1007,7 +1007,7 @@ void ChromeMainDelegate::PreSandboxStartup() { +@@ -1026,7 +1026,7 @@ void ChromeMainDelegate::PreSandboxStartup() { InitializePDF(); #endif @@ -124,7 +124,7 @@ // Zygote needs to call InitCrashReporter() in RunZygote(). if (process_type != service_manager::switches::kZygoteProcess) { #if defined(OS_ANDROID) -@@ -1028,7 +1028,7 @@ void ChromeMainDelegate::PreSandboxStartup() { +@@ -1047,7 +1047,7 @@ void ChromeMainDelegate::PreSandboxStartup() { } #endif // defined(OS_ANDROID) } @@ -133,7 +133,7 @@ // After all the platform Breakpads have been initialized, store the command // line for crash reporting. -@@ -1038,7 +1038,7 @@ void ChromeMainDelegate::PreSandboxStartup() { +@@ -1057,7 +1057,7 @@ void ChromeMainDelegate::PreSandboxStartup() { void ChromeMainDelegate::SandboxInitialized(const std::string& process_type) { // Note: If you are adding a new process type below, be sure to adjust the // AdjustLinuxOOMScore function too. Index: head/www/chromium/files/patch-chrome_app_chromium__strings.grd =================================================================== --- head/www/chromium/files/patch-chrome_app_chromium__strings.grd +++ head/www/chromium/files/patch-chrome_app_chromium__strings.grd @@ -1,6 +1,6 @@ ---- chrome/app/chromium_strings.grd.orig 2019-12-16 21:51:22 UTC +--- chrome/app/chromium_strings.grd.orig 2020-03-03 18:53:48 UTC +++ chrome/app/chromium_strings.grd -@@ -602,7 +602,7 @@ Chromium is unable to recover your settings. +@@ -623,7 +623,7 @@ Chromium is unable to recover your settings. @@ -9,7 +9,7 @@ Your system administrator has configured Chromium to open an alternative browser to access $1example.com. -@@ -713,7 +713,7 @@ Chromium is unable to recover your settings. +@@ -727,7 +727,7 @@ Chromium is unable to recover your settings. @@ -18,7 +18,7 @@ The profile appears to be in use by another Chromium process ($112345) on another computer ($2example.com). Chromium has locked the profile so that it doesn't get corrupted. If you are sure no other processes are using this profile, you can unlock the profile and relaunch Chromium. -@@ -946,7 +946,7 @@ Chromium is unable to recover your settings. +@@ -960,7 +960,7 @@ Chromium is unable to recover your settings. Index: head/www/chromium/files/patch-chrome_app_generated__resources.grd =================================================================== --- head/www/chromium/files/patch-chrome_app_generated__resources.grd +++ head/www/chromium/files/patch-chrome_app_generated__resources.grd @@ -1,6 +1,6 @@ ---- chrome/app/generated_resources.grd.orig 2019-12-16 21:51:22 UTC +--- chrome/app/generated_resources.grd.orig 2020-03-03 18:53:48 UTC +++ chrome/app/generated_resources.grd -@@ -4922,7 +4922,7 @@ Keep your key file in a safe place. You will need it t +@@ -5008,7 +5008,7 @@ Keep your key file in a safe place. You will need it t @@ -9,7 +9,7 @@ Legacy Browser Support -@@ -6571,7 +6571,7 @@ the Bookmarks menu."> +@@ -6712,7 +6712,7 @@ the Bookmarks menu."> Google Pay @@ -18,7 +18,7 @@ Use system title bar and borders -@@ -7521,7 +7521,7 @@ Please help our engineers fix this problem. Tell us wh +@@ -7669,7 +7669,7 @@ Please help our engineers fix this problem. Tell us wh Set as default Index: head/www/chromium/files/patch-chrome_app_google__chrome__strings.grd =================================================================== --- head/www/chromium/files/patch-chrome_app_google__chrome__strings.grd +++ head/www/chromium/files/patch-chrome_app_google__chrome__strings.grd @@ -1,6 +1,6 @@ ---- chrome/app/google_chrome_strings.grd.orig 2019-12-16 21:51:22 UTC +--- chrome/app/google_chrome_strings.grd.orig 2020-03-03 18:53:48 UTC +++ chrome/app/google_chrome_strings.grd -@@ -614,7 +614,7 @@ Google Chrome is unable to recover your settings. +@@ -635,7 +635,7 @@ Google Chrome is unable to recover your settings. @@ -9,7 +9,7 @@ Your system administrator has configured Google Chrome to open an alternative browser to access $1example.com. -@@ -725,7 +725,7 @@ Google Chrome is unable to recover your settings. +@@ -739,7 +739,7 @@ Google Chrome is unable to recover your settings. @@ -18,7 +18,7 @@ The profile appears to be in use by another Google Chrome process ($112345) on another computer ($2example.com). Chrome has locked the profile so that it doesn't get corrupted. If you are sure no other processes are using this profile, you can unlock the profile and relaunch Chrome. -@@ -965,7 +965,7 @@ Google Chrome is unable to recover your settings. +@@ -979,7 +979,7 @@ Google Chrome is unable to recover your settings. Index: head/www/chromium/files/patch-chrome_app_settings__strings.grdp =================================================================== --- head/www/chromium/files/patch-chrome_app_settings__strings.grdp +++ head/www/chromium/files/patch-chrome_app_settings__strings.grdp @@ -1,6 +1,6 @@ ---- chrome/app/settings_strings.grdp.orig 2019-12-16 21:51:23 UTC +--- chrome/app/settings_strings.grdp.orig 2020-03-03 18:53:51 UTC +++ chrome/app/settings_strings.grdp -@@ -760,7 +760,7 @@ +@@ -784,7 +784,7 @@ Themes @@ -9,7 +9,7 @@ GTK+ -@@ -774,7 +774,7 @@ +@@ -798,7 +798,7 @@ Use Classic Index: head/www/chromium/files/patch-chrome_app_theme_chrome__unscaled__resources.grd =================================================================== --- head/www/chromium/files/patch-chrome_app_theme_chrome__unscaled__resources.grd +++ head/www/chromium/files/patch-chrome_app_theme_chrome__unscaled__resources.grd @@ -9,12 +9,3 @@ -@@ -109,7 +109,7 @@ - - - -- -+ - - - Index: head/www/chromium/files/patch-chrome_browser_about__flags.cc =================================================================== --- head/www/chromium/files/patch-chrome_browser_about__flags.cc +++ head/www/chromium/files/patch-chrome_browser_about__flags.cc @@ -1,6 +1,6 @@ ---- chrome/browser/about_flags.cc.orig 2019-12-16 21:51:23 UTC +--- chrome/browser/about_flags.cc.orig 2020-03-03 18:53:51 UTC +++ chrome/browser/about_flags.cc -@@ -164,7 +164,7 @@ +@@ -166,7 +166,7 @@ #include "ui/gl/gl_switches.h" #include "ui/native_theme/native_theme_features.h" @@ -9,25 +9,7 @@ #include "base/allocator/buildflags.h" #endif -@@ -715,7 +715,7 @@ const FeatureEntry::FeatureVariation - nullptr}}; - #endif // OS_ANDROID - --#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) -+#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) - const FeatureEntry::FeatureParam - kAutofillSaveCreditCardUsesImprovedMessagingStoreCard[] = { - {autofill::features:: -@@ -762,7 +762,7 @@ const FeatureEntry::FeatureVariation - kAutofillSaveCreditCardUsesImprovedMessagingConfirmAndSaveCard), - nullptr}, - }; --#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) -+#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) - - const FeatureEntry::Choice kMemlogModeChoices[] = { - {flags_ui::kGenericExperimentChoiceDisabled, "", ""}, -@@ -815,7 +815,7 @@ const FeatureEntry::Choice kMemlogSamplingRateChoices[ +@@ -804,7 +804,7 @@ const FeatureEntry::Choice kMemlogSamplingRateChoices[ heap_profiling::kMemlogSamplingRate5MB}, }; @@ -36,34 +18,16 @@ const FeatureEntry::FeatureParam kOmniboxDocumentProviderServerScoring[] = { {"DocumentUseServerScore", "true"}, {"DocumentUseClientScore", "false"}, -@@ -853,7 +853,7 @@ const FeatureEntry::FeatureVariation kOmniboxDocumentP - base::size(kOmniboxDocumentProviderClientScoring), nullptr}, - {"server and client scores", kOmniboxDocumentProviderServerAndClientScoring, - base::size(kOmniboxDocumentProviderServerAndClientScoring), nullptr}}; --#endif // defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_WIN) -+#endif // defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_BSD) - - #ifdef OS_ANDROID - const FeatureEntry::FeatureParam kOmniboxNTPZPSLocal[] = { -@@ -967,7 +967,7 @@ const FeatureEntry::FeatureVariation kOmniboxMaxURLMat +@@ -956,7 +956,7 @@ const FeatureEntry::FeatureVariation kOmniboxMaxURLMat {"6 matches", kOmniboxMaxURLMatches6, base::size(kOmniboxMaxURLMatches6), nullptr}}; -#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_WIN) || \ +#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_BSD) || \ defined(OS_CHROMEOS) - const FeatureEntry::FeatureParam kTranslateBubbleUIButton[] = { - {language::kTranslateUIBubbleKey, language::kTranslateUIBubbleButtonValue}}; -@@ -983,7 +983,7 @@ const FeatureEntry::FeatureVariation kTranslateBubbleU - {"Tab", kTranslateBubbleUITab, base::size(kTranslateBubbleUITab), nullptr}, - {"Button_GM2", kTranslateBubbleUIButtonGM2, - base::size(kTranslateBubbleUIButton), nullptr}}; --#endif // OS_LINUX || OS_MACOSX || OS_WIN || OS_CHROMEOS -+#endif // OS_LINUX || OS_MACOSX || OS_WIN || OS_BSD || OS_CHROMEOS - - const FeatureEntry::FeatureParam kMarkHttpAsDangerous[] = { - {security_state::features::kMarkHttpAsFeatureParameterName, -@@ -1913,13 +1913,13 @@ const FeatureEntry kFeatureEntries[] = { + const FeatureEntry::FeatureParam kTranslateBubbleUITab[] = { + {language::kTranslateUIBubbleKey, language::kTranslateUIBubbleTabValue}}; +@@ -1981,13 +1981,13 @@ const FeatureEntry kFeatureEntries[] = { flag_descriptions::kCloudPrintXpsDescription, kOsWin, SINGLE_VALUE_TYPE(switches::kEnableCloudPrintXps)}, #endif // OS_WIN @@ -79,7 +43,7 @@ {"enable-webgl-draft-extensions", flag_descriptions::kWebglDraftExtensionsName, flag_descriptions::kWebglDraftExtensionsDescription, kOsAll, -@@ -1971,14 +1971,14 @@ const FeatureEntry kFeatureEntries[] = { +@@ -2031,14 +2031,14 @@ const FeatureEntry kFeatureEntries[] = { "OverrideTranslateTriggerInIndia")}, #endif // OS_ANDROID @@ -96,16 +60,7 @@ #if BUILDFLAG(ENABLE_NATIVE_NOTIFICATIONS) && !defined(OS_CHROMEOS) {"enable-native-notifications", -@@ -2044,7 +2044,7 @@ const FeatureEntry kFeatureEntries[] = { - flag_descriptions::kCrostiniBackupDescription, kOsCrOS, - FEATURE_VALUE_TYPE(chromeos::features::kCrostiniBackup)}, - #endif // OS_CHROMEOS --#if defined(OS_CHROMEOS) || defined(OS_LINUX) -+#if defined(OS_CHROMEOS) || defined(OS_LINUX) || defined(OS_BSD) - {"terminal-system-app", flag_descriptions::kTerminalSystemAppName, - flag_descriptions::kTerminalSystemAppDescription, kOsCrOS | kOsLinux, - FEATURE_VALUE_TYPE(features::kTerminalSystemApp)}, -@@ -2053,7 +2053,7 @@ const FeatureEntry kFeatureEntries[] = { +@@ -2119,7 +2119,7 @@ const FeatureEntry kFeatureEntries[] = { flag_descriptions::kDynamicTcmallocDescription, kOsCrOS | kOsLinux, FEATURE_VALUE_TYPE(performance_manager::features::kDynamicTcmallocTuning)}, #endif // BUILDFLAG(USE_TCMALLOC) @@ -114,7 +69,7 @@ #if defined(OS_ANDROID) {"enable-credit-card-assist", flag_descriptions::kCreditCardAssistName, flag_descriptions::kCreditCardAssistDescription, kOsAndroid, -@@ -2131,7 +2131,7 @@ const FeatureEntry kFeatureEntries[] = { +@@ -2197,7 +2197,7 @@ const FeatureEntry kFeatureEntries[] = { flag_descriptions::kEnableLitePageServerPreviewsDescription, kOsAndroid, FEATURE_VALUE_TYPE(previews::features::kLitePageServerPreviews)}, #endif // OS_ANDROID @@ -123,16 +78,16 @@ {"enable-save-data", flag_descriptions::kEnableSaveDataName, flag_descriptions::kEnableSaveDataDescription, kOsCrOS, SINGLE_VALUE_TYPE( -@@ -2810,7 +2810,7 @@ const FeatureEntry kFeatureEntries[] = { - flag_descriptions::kOmniboxLocalEntitySuggestionsDescription, kOsDesktop, - FEATURE_VALUE_TYPE(omnibox::kOmniboxLocalEntitySuggestions)}, +@@ -2858,7 +2858,7 @@ const FeatureEntry kFeatureEntries[] = { + flag_descriptions::kOmniboxExperimentalSuggestScoringDescription, kOsAll, + FEATURE_VALUE_TYPE(omnibox::kOmniboxExperimentalSuggestScoring)}, -#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_WIN) +#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_BSD) {"omnibox-experimental-keyword-mode", flag_descriptions::kOmniboxExperimentalKeywordModeName, flag_descriptions::kOmniboxExperimentalKeywordModeDescription, kOsDesktop, -@@ -2850,7 +2850,7 @@ const FeatureEntry kFeatureEntries[] = { +@@ -2903,7 +2903,7 @@ const FeatureEntry kFeatureEntries[] = { flag_descriptions::kOmniboxAutocompleteTitlesName, flag_descriptions::kOmniboxAutocompleteTitlesDescription, kOsDesktop, FEATURE_VALUE_TYPE(omnibox::kAutocompleteTitles)}, @@ -141,7 +96,7 @@ {"enable-speculative-service-worker-start-on-query-input", flag_descriptions::kSpeculativeServiceWorkerStartOnQueryInputName, -@@ -3084,13 +3084,13 @@ const FeatureEntry kFeatureEntries[] = { +@@ -3136,13 +3136,13 @@ const FeatureEntry kFeatureEntries[] = { flag_descriptions::kClickToOpenPDFDescription, kOsAll, FEATURE_VALUE_TYPE(features::kClickToOpenPDFPlaceholder)}, @@ -157,7 +112,7 @@ #if !defined(OS_ANDROID) {"chrome-colors", flag_descriptions::kChromeColorsName, -@@ -3889,13 +3889,13 @@ const FeatureEntry kFeatureEntries[] = { +@@ -3965,13 +3965,13 @@ const FeatureEntry kFeatureEntries[] = { FEATURE_VALUE_TYPE(printing::features::kEnableCustomMacPaperSizes)}, #endif @@ -173,25 +128,7 @@ // defined(OS_CHROMEOS) {"enable-audio-focus-enforcement", -@@ -4269,7 +4269,7 @@ const FeatureEntry kFeatureEntries[] = { - flag_descriptions::kAudioWorkletRealtimeThreadDescription, kOsAll, - FEATURE_VALUE_TYPE(blink::features::kAudioWorkletRealtimeThread)}, - --#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) -+#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) - {"enable-autofill-save-credit-card-uses-improved-messaging", - flag_descriptions::kEnableAutofillSaveCreditCardUsesImprovedMessagingName, - flag_descriptions:: -@@ -4279,7 +4279,7 @@ const FeatureEntry kFeatureEntries[] = { - autofill::features::kAutofillSaveCreditCardUsesImprovedMessaging, - kAutofillSaveCreditCardUsesImprovedMessagingVariations, - "AutofillSaveCreditCardUsesImprovedMessaging")}, --#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) -+#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) - - #if defined(OS_CHROMEOS) - {"release-notes", flag_descriptions::kReleaseNotesName, -@@ -4367,12 +4367,12 @@ const FeatureEntry kFeatureEntries[] = { +@@ -4425,12 +4425,12 @@ const FeatureEntry kFeatureEntries[] = { flag_descriptions::kEnableSyncUSSNigoriDescription, kOsAll, FEATURE_VALUE_TYPE(switches::kSyncUSSNigori)}, @@ -206,7 +143,7 @@ #if BUILDFLAG(ENABLE_SPELLCHECK) && defined(OS_WIN) {"win-use-native-spellchecker", -@@ -4385,12 +4385,12 @@ const FeatureEntry kFeatureEntries[] = { +@@ -4450,12 +4450,12 @@ const FeatureEntry kFeatureEntries[] = { flag_descriptions::kSafetyTipDescription, kOsAll, FEATURE_VALUE_TYPE(security_state::features::kSafetyTipUI)}, @@ -221,7 +158,7 @@ #if defined(OS_CHROMEOS) {"crostini-webui-installer", flag_descriptions::kCrostiniWebUIInstallerName, -@@ -4526,12 +4526,12 @@ const FeatureEntry kFeatureEntries[] = { +@@ -4587,12 +4587,12 @@ const FeatureEntry kFeatureEntries[] = { chrome::android::kDarkenWebsitesCheckboxInThemesSetting)}, #endif // defined(OS_ANDROID) @@ -236,17 +173,3 @@ {"password-leak-detection", flag_descriptions::kPasswordLeakDetectionName, flag_descriptions::kPasswordLeakDetectionDescription, kOsAll, -@@ -4605,11 +4605,11 @@ const FeatureEntry kFeatureEntries[] = { - content_settings::kImprovedCookieControlsForThirdPartyCookieBlocking)}, - #endif // !defined(OS_ANDROID) - --#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) -+#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) - {"sync-clipboard-service", flag_descriptions::kSyncClipboardServiceName, - flag_descriptions::kSyncClipboardServiceDescription, kOsDesktop, - FEATURE_VALUE_TYPE(features::kSyncClipboardServiceFeature)}, --#endif // OS_WIN || OS_MACOSX || OS_LINUX -+#endif // OS_WIN || OS_MACOSX || OS_LINUX || defined(OS_BSD) - - #if !defined(OS_ANDROID) - {"accessibility-internals-page-improvements", Index: head/www/chromium/files/patch-chrome_browser_background_background__mode__manager.cc =================================================================== --- head/www/chromium/files/patch-chrome_browser_background_background__mode__manager.cc +++ head/www/chromium/files/patch-chrome_browser_background_background__mode__manager.cc @@ -1,6 +1,6 @@ ---- chrome/browser/background/background_mode_manager.cc.orig 2019-12-16 21:51:23 UTC +--- chrome/browser/background/background_mode_manager.cc.orig 2020-03-03 18:53:01 UTC +++ chrome/browser/background/background_mode_manager.cc -@@ -770,7 +770,7 @@ gfx::ImageSkia GetStatusTrayIcon() { +@@ -797,7 +797,7 @@ gfx::ImageSkia GetStatusTrayIcon() { return gfx::ImageSkia(); return family->CreateExact(size).AsImageSkia(); Index: head/www/chromium/files/patch-chrome_browser_browser__resources.grd =================================================================== --- head/www/chromium/files/patch-chrome_browser_browser__resources.grd +++ head/www/chromium/files/patch-chrome_browser_browser__resources.grd @@ -1,7 +1,7 @@ ---- chrome/browser/browser_resources.grd.orig 2019-12-16 21:51:23 UTC +--- chrome/browser/browser_resources.grd.orig 2020-03-03 18:53:51 UTC +++ chrome/browser/browser_resources.grd -@@ -108,7 +108,7 @@ - +@@ -54,7 +54,7 @@ + - @@ -9,7 +9,7 @@ -@@ -550,7 +550,7 @@ +@@ -457,7 +457,7 @@ Index: head/www/chromium/files/patch-chrome_browser_chrome__browser__main.cc =================================================================== --- head/www/chromium/files/patch-chrome_browser_chrome__browser__main.cc +++ head/www/chromium/files/patch-chrome_browser_chrome__browser__main.cc @@ -1,6 +1,6 @@ ---- chrome/browser/chrome_browser_main.cc.orig 2019-12-16 21:51:23 UTC +--- chrome/browser/chrome_browser_main.cc.orig 2020-03-03 18:53:51 UTC +++ chrome/browser/chrome_browser_main.cc -@@ -220,9 +220,9 @@ +@@ -223,9 +223,9 @@ #include "components/arc/metrics/stability_metrics_manager.h" #endif // defined(OS_CHROMEOS) @@ -12,7 +12,7 @@ #if defined(OS_LINUX) #include "components/crash/content/app/breakpad_linux.h" -@@ -260,7 +260,7 @@ +@@ -264,7 +264,7 @@ #endif // defined(OS_WIN) #if defined(OS_WIN) || defined(OS_MACOSX) || \ @@ -21,7 +21,7 @@ #include "chrome/browser/metrics/desktop_session_duration/desktop_session_duration_tracker.h" #include "chrome/browser/profiles/profile_activity_metrics_recorder.h" #endif -@@ -1071,7 +1071,7 @@ int ChromeBrowserMainParts::PreCreateThreadsImpl() { +@@ -1073,7 +1073,7 @@ int ChromeBrowserMainParts::PreCreateThreadsImpl() { AddFirstRunNewTabs(browser_creator_.get(), master_prefs_->new_tabs); } @@ -30,7 +30,7 @@ // Create directory for user-level Native Messaging manifest files. This // makes it less likely that the directory will be created by third-party // software with incorrect owner or permission. See crbug.com/725513 . -@@ -1080,7 +1080,7 @@ int ChromeBrowserMainParts::PreCreateThreadsImpl() { +@@ -1082,7 +1082,7 @@ int ChromeBrowserMainParts::PreCreateThreadsImpl() { &user_native_messaging_dir)); if (!base::PathExists(user_native_messaging_dir)) base::CreateDirectory(user_native_messaging_dir); @@ -39,7 +39,7 @@ } #endif // !defined(OS_ANDROID) && !defined(OS_CHROMEOS) -@@ -1119,7 +1119,7 @@ int ChromeBrowserMainParts::PreCreateThreadsImpl() { +@@ -1121,7 +1121,7 @@ int ChromeBrowserMainParts::PreCreateThreadsImpl() { } #if defined(OS_WIN) || defined(OS_MACOSX) || \ Index: head/www/chromium/files/patch-chrome_browser_chrome__content__browser__client.h =================================================================== --- head/www/chromium/files/patch-chrome_browser_chrome__content__browser__client.h +++ head/www/chromium/files/patch-chrome_browser_chrome__content__browser__client.h @@ -1,6 +1,6 @@ ---- chrome/browser/chrome_content_browser_client.h.orig 2019-12-16 21:51:23 UTC +--- chrome/browser/chrome_content_browser_client.h.orig 2020-03-03 18:53:51 UTC +++ chrome/browser/chrome_content_browser_client.h -@@ -367,12 +367,12 @@ class ChromeContentBrowserClient : public content::Con +@@ -371,12 +371,12 @@ class ChromeContentBrowserClient : public content::Con void OverridePageVisibilityState( content::RenderFrameHost* render_frame_host, content::PageVisibilityState* visibility_state) override; Index: head/www/chromium/files/patch-chrome_browser_chrome__content__browser__client.cc =================================================================== --- head/www/chromium/files/patch-chrome_browser_chrome__content__browser__client.cc +++ head/www/chromium/files/patch-chrome_browser_chrome__content__browser__client.cc @@ -1,6 +1,6 @@ ---- chrome/browser/chrome_content_browser_client.cc.orig 2019-12-16 21:51:23 UTC +--- chrome/browser/chrome_content_browser_client.cc.orig 2020-03-03 18:53:51 UTC +++ chrome/browser/chrome_content_browser_client.cc -@@ -388,7 +388,7 @@ +@@ -382,7 +382,7 @@ #include "components/user_manager/user.h" #include "components/user_manager/user_manager.h" #include "services/service_manager/public/mojom/interface_provider_spec.mojom.h" @@ -9,7 +9,7 @@ #include "chrome/browser/chrome_browser_main_linux.h" #elif defined(OS_ANDROID) #include "base/android/application_status_listener.h" -@@ -442,7 +442,7 @@ +@@ -435,12 +435,12 @@ #endif // !defined(OS_ANDROID) #if defined(OS_WIN) || defined(OS_MACOSX) || \ @@ -18,7 +18,13 @@ #include "chrome/browser/browser_switcher/browser_switcher_navigation_throttle.h" #include "services/service_manager/sandbox/features.h" #endif -@@ -475,7 +475,7 @@ + +-#if defined(OS_LINUX) ++#if defined(OS_LINUX) || defined(OS_BSD) + #include "components/crash/content/app/crash_switches.h" + #include "components/crash/content/app/crashpad.h" + #endif +@@ -468,7 +468,7 @@ #include "chrome/browser/ui/views/chrome_browser_main_extra_parts_views.h" #endif @@ -27,7 +33,7 @@ #if defined(USE_X11) #include "chrome/browser/ui/views/chrome_browser_main_extra_parts_views_linux_x11.h" #else -@@ -1193,7 +1193,7 @@ ChromeContentBrowserClient::CreateBrowserMainParts( +@@ -1222,7 +1222,7 @@ ChromeContentBrowserClient::CreateBrowserMainParts( #elif defined(OS_CHROMEOS) main_parts = std::make_unique( parameters, startup_data_); @@ -36,7 +42,7 @@ main_parts = std::make_unique(parameters, startup_data_); #elif defined(OS_ANDROID) -@@ -1219,7 +1219,7 @@ ChromeContentBrowserClient::CreateBrowserMainParts( +@@ -1248,7 +1248,7 @@ ChromeContentBrowserClient::CreateBrowserMainParts( // Construct additional browser parts. Stages are called in the order in // which they are added. #if defined(TOOLKIT_VIEWS) @@ -45,7 +51,7 @@ #if defined(USE_X11) main_parts->AddParts(new ChromeBrowserMainExtraPartsViewsLinuxX11()); #else -@@ -1955,7 +1955,7 @@ void ChromeContentBrowserClient::AppendExtraCommandLin +@@ -1987,7 +1987,7 @@ void ChromeContentBrowserClient::AppendExtraCommandLin command_line->AppendSwitchASCII(switches::kMetricsClientID, client_info->client_id); } @@ -54,7 +60,7 @@ #if defined(OS_ANDROID) bool enable_crash_reporter = true; #else -@@ -2212,7 +2212,7 @@ void ChromeContentBrowserClient::AppendExtraCommandLin +@@ -2252,7 +2252,7 @@ void ChromeContentBrowserClient::AppendExtraCommandLin StackSamplingConfiguration::Get()->AppendCommandLineSwitchForChildProcess( process_type, command_line); @@ -63,7 +69,7 @@ // Processes may only query perf_event_open with the BPF sandbox disabled. if (browser_command_line.HasSwitch(switches::kEnableThreadInstructionCount) && command_line->HasSwitch(service_manager::switches::kNoSandbox)) { -@@ -3526,7 +3526,7 @@ void ChromeContentBrowserClient::GetAdditionalFileSyst +@@ -3553,7 +3553,7 @@ void ChromeContentBrowserClient::GetAdditionalFileSyst } } @@ -72,7 +78,7 @@ void ChromeContentBrowserClient::GetAdditionalMappedFilesForChildProcess( const base::CommandLine& command_line, int child_process_id, -@@ -3666,7 +3666,7 @@ void ChromeContentBrowserClient::BindCredentialManager +@@ -3683,7 +3683,7 @@ void ChromeContentBrowserClient::BindCredentialManager } #if defined(OS_WIN) || defined(OS_MACOSX) || \ @@ -81,7 +87,7 @@ bool ShouldEnableAudioSandbox(const policy::PolicyMap& policies) { const base::Value* audio_sandbox_enabled_policy_value = policies.GetValue(policy::key::kAudioSandboxEnabled); -@@ -3684,7 +3684,7 @@ bool ShouldEnableAudioSandbox(const policy::PolicyMap& +@@ -3701,7 +3701,7 @@ bool ShouldEnableAudioSandbox(const policy::PolicyMap& void ChromeContentBrowserClient::WillStartServiceManager() { #if defined(OS_WIN) || defined(OS_MACOSX) || \ @@ -90,7 +96,7 @@ if (startup_data_) { auto* chrome_feature_list_creator = startup_data_->chrome_feature_list_creator(); -@@ -3977,7 +3977,7 @@ ChromeContentBrowserClient::CreateThrottlesForNavigati +@@ -3988,7 +3988,7 @@ ChromeContentBrowserClient::CreateThrottlesForNavigati } #if defined(OS_WIN) || defined(OS_MACOSX) || \ Index: head/www/chromium/files/patch-chrome_browser_custom__handlers_protocol__handler__registry.cc =================================================================== --- head/www/chromium/files/patch-chrome_browser_custom__handlers_protocol__handler__registry.cc +++ head/www/chromium/files/patch-chrome_browser_custom__handlers_protocol__handler__registry.cc @@ -1,6 +1,6 @@ ---- chrome/browser/custom_handlers/protocol_handler_registry.cc.orig 2019-10-21 19:06:21 UTC +--- chrome/browser/custom_handlers/protocol_handler_registry.cc.orig 2020-03-03 18:53:01 UTC +++ chrome/browser/custom_handlers/protocol_handler_registry.cc -@@ -43,7 +43,7 @@ const ProtocolHandler& LookupHandler( +@@ -42,7 +42,7 @@ const ProtocolHandler& LookupHandler( // If true default protocol handlers will be removed if the OS level // registration for a protocol is no longer Chrome. bool ShouldRemoveHandlersNotInOS() { Index: head/www/chromium/files/patch-chrome_browser_devtools_devtools__eye__dropper.cc =================================================================== --- head/www/chromium/files/patch-chrome_browser_devtools_devtools__eye__dropper.cc +++ head/www/chromium/files/patch-chrome_browser_devtools_devtools__eye__dropper.cc @@ -1,6 +1,6 @@ ---- chrome/browser/devtools/devtools_eye_dropper.cc.orig 2019-09-09 21:55:09 UTC +--- chrome/browser/devtools/devtools_eye_dropper.cc.orig 2020-03-03 18:53:51 UTC +++ chrome/browser/devtools/devtools_eye_dropper.cc -@@ -163,7 +163,7 @@ void DevToolsEyeDropper::UpdateCursor() { +@@ -164,7 +164,7 @@ void DevToolsEyeDropper::UpdateCursor() { // magnified projection only with centered hotspot. // Mac Retina requires cursor to be > 120px in order to render smoothly. Index: head/www/chromium/files/patch-chrome_browser_download_download__prefs.cc =================================================================== --- head/www/chromium/files/patch-chrome_browser_download_download__prefs.cc +++ head/www/chromium/files/patch-chrome_browser_download_download__prefs.cc @@ -1,4 +1,4 @@ ---- chrome/browser/download/download_prefs.cc.orig 2019-12-16 21:51:23 UTC +--- chrome/browser/download/download_prefs.cc.orig 2020-03-03 18:53:51 UTC +++ chrome/browser/download/download_prefs.cc @@ -63,7 +63,7 @@ namespace { // Consider downloads 'dangerous' if they go to the home directory on Linux and @@ -27,7 +27,7 @@ registry->RegisterBooleanPref(prefs::kOpenPdfDownloadInSystemReader, false); #endif #if defined(OS_ANDROID) -@@ -358,7 +358,7 @@ bool DownloadPrefs::IsDownloadPathManaged() const { +@@ -360,7 +360,7 @@ bool DownloadPrefs::IsDownloadPathManaged() const { } bool DownloadPrefs::IsAutoOpenUsed() const { @@ -36,7 +36,7 @@ if (ShouldOpenPdfInSystemReader()) return true; #endif -@@ -372,7 +372,7 @@ bool DownloadPrefs::IsAutoOpenEnabledBasedOnExtension( +@@ -374,7 +374,7 @@ bool DownloadPrefs::IsAutoOpenEnabledBasedOnExtension( return false; DCHECK(extension[0] == base::FilePath::kExtensionSeparator); extension.erase(0, 1); @@ -45,7 +45,7 @@ if (base::FilePath::CompareEqualIgnoreCase(extension, FILE_PATH_LITERAL("pdf")) && ShouldOpenPdfInSystemReader()) -@@ -409,7 +409,7 @@ void DownloadPrefs::DisableAutoOpenBasedOnExtension( +@@ -411,7 +411,7 @@ void DownloadPrefs::DisableAutoOpenBasedOnExtension( SaveAutoOpenState(); } @@ -54,7 +54,7 @@ void DownloadPrefs::SetShouldOpenPdfInSystemReader(bool should_open) { if (should_open_pdf_in_system_reader_ == should_open) return; -@@ -430,7 +430,7 @@ bool DownloadPrefs::ShouldOpenPdfInSystemReader() cons +@@ -432,7 +432,7 @@ bool DownloadPrefs::ShouldOpenPdfInSystemReader() cons #endif void DownloadPrefs::ResetAutoOpen() { Index: head/www/chromium/files/patch-chrome_browser_download_download__shelf__context__menu.cc =================================================================== --- head/www/chromium/files/patch-chrome_browser_download_download__shelf__context__menu.cc +++ head/www/chromium/files/patch-chrome_browser_download_download__shelf__context__menu.cc @@ -1,6 +1,6 @@ ---- chrome/browser/download/download_shelf_context_menu.cc.orig 2019-12-16 21:51:23 UTC +--- chrome/browser/download/download_shelf_context_menu.cc.orig 2020-03-03 18:53:51 UTC +++ chrome/browser/download/download_shelf_context_menu.cc -@@ -135,7 +135,7 @@ base::string16 DownloadShelfContextMenu::GetLabelForCo +@@ -137,7 +137,7 @@ base::string16 DownloadShelfContextMenu::GetLabelForCo : IDS_DOWNLOAD_MENU_PLATFORM_OPEN_ALWAYS; break; } Index: head/www/chromium/files/patch-chrome_browser_extensions_BUILD.gn =================================================================== --- head/www/chromium/files/patch-chrome_browser_extensions_BUILD.gn +++ head/www/chromium/files/patch-chrome_browser_extensions_BUILD.gn @@ -1,6 +1,6 @@ ---- chrome/browser/extensions/BUILD.gn.orig 2019-12-16 21:51:23 UTC +--- chrome/browser/extensions/BUILD.gn.orig 2020-03-03 18:53:51 UTC +++ chrome/browser/extensions/BUILD.gn -@@ -1135,6 +1135,12 @@ jumbo_static_library("extensions") { +@@ -1154,6 +1154,12 @@ jumbo_static_library("extensions") { deps += [ "//chrome/common:service_process_mojom" ] } Index: head/www/chromium/files/patch-chrome_browser_extensions_api_settings__private_prefs__util.cc =================================================================== --- head/www/chromium/files/patch-chrome_browser_extensions_api_settings__private_prefs__util.cc +++ head/www/chromium/files/patch-chrome_browser_extensions_api_settings__private_prefs__util.cc @@ -1,6 +1,6 @@ ---- chrome/browser/extensions/api/settings_private/prefs_util.cc.orig 2019-12-16 21:51:23 UTC +--- chrome/browser/extensions/api/settings_private/prefs_util.cc.orig 2020-03-03 18:53:51 UTC +++ chrome/browser/extensions/api/settings_private/prefs_util.cc -@@ -159,7 +159,7 @@ const PrefsUtil::TypedPrefMap& PrefsUtil::GetWhitelist +@@ -158,7 +158,7 @@ const PrefsUtil::TypedPrefMap& PrefsUtil::GetWhitelist (*s_whitelist)[bookmarks::prefs::kShowBookmarkBar] = settings_api::PrefType::PREF_TYPE_BOOLEAN; @@ -9,7 +9,7 @@ (*s_whitelist)[::prefs::kUseCustomChromeFrame] = settings_api::PrefType::PREF_TYPE_BOOLEAN; #endif -@@ -169,7 +169,7 @@ const PrefsUtil::TypedPrefMap& PrefsUtil::GetWhitelist +@@ -168,7 +168,7 @@ const PrefsUtil::TypedPrefMap& PrefsUtil::GetWhitelist // Appearance settings. (*s_whitelist)[::prefs::kCurrentThemeID] = settings_api::PrefType::PREF_TYPE_STRING; Index: head/www/chromium/files/patch-chrome_browser_extensions_browser__context__keyed__service__factories.cc =================================================================== --- head/www/chromium/files/patch-chrome_browser_extensions_browser__context__keyed__service__factories.cc +++ head/www/chromium/files/patch-chrome_browser_extensions_browser__context__keyed__service__factories.cc @@ -1,20 +1,20 @@ --- chrome/browser/extensions/browser_context_keyed_service_factories.cc.orig 2019-09-09 21:55:09 UTC +++ chrome/browser/extensions/browser_context_keyed_service_factories.cc -@@ -55,7 +55,7 @@ - #include "chrome/browser/chromeos/extensions/input_method_api.h" - #include "chrome/browser/chromeos/extensions/media_player_api.h" +@@ -52,7 +52,7 @@ + #include "extensions/browser/api/networking_private/networking_private_delegate_factory.h" + #include "ppapi/buildflags/buildflags.h" + +-#if defined(OS_CHROMEOS) || defined(OS_LINUX) || defined(OS_WIN) ++#if defined(OS_CHROMEOS) || defined(OS_LINUX) || defined(OS_WIN) || defined(OS_BSD) #include "chrome/browser/extensions/api/input_ime/input_ime_api.h" --#elif defined(OS_LINUX) || defined(OS_WIN) -+#elif defined(OS_LINUX) || defined(OS_WIN) || defined(OS_BSD) - #include "chrome/browser/extensions/api/input_ime/input_ime_api.h" #endif -@@ -94,7 +94,7 @@ void EnsureBrowserContextKeyedServiceFactoriesBuilt() - #if defined(OS_CHROMEOS) - extensions::InputImeAPI::GetFactoryInstance(); - extensions::InputMethodAPI::GetFactoryInstance(); --#elif defined(OS_LINUX) || defined(OS_WIN) -+#elif defined(OS_LINUX) || defined(OS_WIN) || defined(OS_BSD) +@@ -88,7 +88,7 @@ void EnsureBrowserContextKeyedServiceFactoriesBuilt() + extensions::IdentityAPI::GetFactoryInstance(); + extensions::InstallTrackerFactory::GetInstance(); + extensions::InstallVerifierFactory::GetInstance(); +-#if defined(OS_CHROMEOS) || defined(OS_LINUX) || defined(OS_WIN) ++#if defined(OS_CHROMEOS) || defined(OS_LINUX) || defined(OS_WIN) || defined(OS_BSD) extensions::InputImeAPI::GetFactoryInstance(); #endif extensions::LanguageSettingsPrivateDelegateFactory::GetInstance(); Index: head/www/chromium/files/patch-chrome_browser_flag__descriptions.h =================================================================== --- head/www/chromium/files/patch-chrome_browser_flag__descriptions.h +++ head/www/chromium/files/patch-chrome_browser_flag__descriptions.h @@ -1,4 +1,4 @@ ---- chrome/browser/flag_descriptions.h.orig 2019-12-16 21:51:23 UTC +--- chrome/browser/flag_descriptions.h.orig 2020-03-03 18:53:51 UTC +++ chrome/browser/flag_descriptions.h @@ -20,9 +20,9 @@ #include "ui/android/buildflags.h" @@ -12,16 +12,7 @@ // This file declares strings used in chrome://flags. These messages are not // translated, because instead of end-users they target Chromium developers and -@@ -2233,7 +2233,7 @@ extern const char kZeroStateFilesDescription[]; - - #endif // #if defined(OS_CHROMEOS) - --#if defined(OS_CHROMEOS) || defined(OS_LINUX) -+#if defined(OS_CHROMEOS) || defined(OS_LINUX) || defined(OS_BSD) - extern const char kTerminalSystemAppName[]; - extern const char kTerminalSystemAppDescription[]; - -@@ -2242,7 +2242,7 @@ extern const char kDynamicTcmallocName[]; +@@ -2299,7 +2299,7 @@ extern const char kDynamicTcmallocName[]; extern const char kDynamicTcmallocDescription[]; #endif // BUILDFLAG(USE_TCMALLOC) @@ -30,7 +21,7 @@ // All views-based platforms -------------------------------------------------- -@@ -2261,12 +2261,12 @@ extern const char kReopenTabInProductHelpDescription[] +@@ -2318,12 +2318,12 @@ extern const char kReopenTabInProductHelpDescription[] // Random platform combinations ----------------------------------------------- @@ -45,21 +36,12 @@ #if BUILDFLAG(ENABLE_CLICK_TO_CALL) -@@ -2278,7 +2278,7 @@ extern const char kClickToCallUIDescription[]; +@@ -2344,7 +2344,7 @@ extern const char kRemoteCopyReceiverDescription[]; + #endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || + // defined(OS_CHROMEOS) - #endif // BUILDFLAG(ENABLE_CLICK_TO_CALL) - -#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) +#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) extern const char kDirectManipulationStylusName[]; extern const char kDirectManipulationStylusDescription[]; -@@ -2292,7 +2292,7 @@ extern const char kProfileMenuRevampDescription[]; - extern const char kSyncClipboardServiceName[]; - extern const char kSyncClipboardServiceDescription[]; - --#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) -+#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) - - #if defined(OS_MACOSX) || defined(OS_CHROMEOS) - Index: head/www/chromium/files/patch-chrome_browser_flag__descriptions.cc =================================================================== --- head/www/chromium/files/patch-chrome_browser_flag__descriptions.cc +++ head/www/chromium/files/patch-chrome_browser_flag__descriptions.cc @@ -1,15 +1,6 @@ ---- chrome/browser/flag_descriptions.cc.orig 2019-12-16 21:51:23 UTC +--- chrome/browser/flag_descriptions.cc.orig 2020-03-03 18:53:51 UTC +++ chrome/browser/flag_descriptions.cc -@@ -3744,7 +3744,7 @@ const char kZeroStateFilesDescription[] = - - #endif // defined(OS_CHROMEOS) - --#if defined(OS_CHROMEOS) || defined(OS_LINUX) -+#if defined(OS_CHROMEOS) || defined(OS_LINUX) || defined(OS_BSD) - const char kTerminalSystemAppName[] = "Terminal System App"; - const char kTerminalSystemAppDescription[] = - "Enables the Terminal System App at chrome://terminal which is used for " -@@ -3757,7 +3757,7 @@ const char kDynamicTcmallocDescription[] = +@@ -3861,7 +3861,7 @@ const char kDynamicTcmallocDescription[] = "utilization."; #endif // BUILDFLAG(USE_TCMALLOC) @@ -18,7 +9,7 @@ // All views-based platforms -------------------------------------------------- -@@ -3782,13 +3782,13 @@ const char kReopenTabInProductHelpDescription[] = +@@ -3886,13 +3886,13 @@ const char kReopenTabInProductHelpDescription[] = // Random platform combinations ----------------------------------------------- @@ -34,21 +25,12 @@ #if BUILDFLAG(ENABLE_CLICK_TO_CALL) -@@ -3806,7 +3806,7 @@ const char kClickToCallUIDescription[] = +@@ -3921,7 +3921,7 @@ const char kRemoteCopyReceiverDescription[] = + #endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || + // defined(OS_CHROMEOS) - #endif // BUILDFLAG(ENABLE_CLICK_TO_CALL) - -#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) +#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) const char kDirectManipulationStylusName[] = "Direct Manipulation Stylus"; const char kDirectManipulationStylusDescription[] = -@@ -3825,7 +3825,7 @@ const char kSyncClipboardServiceName[] = "Sync Clipboa - const char kSyncClipboardServiceDescription[] = - "Enables clipboard syncing via Chrome Sync."; - --#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) -+#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) - - #if defined(OS_MACOSX) || defined(OS_CHROMEOS) - Index: head/www/chromium/files/patch-chrome_browser_media_webrtc_webrtc__event__log__uploader.cc =================================================================== --- head/www/chromium/files/patch-chrome_browser_media_webrtc_webrtc__event__log__uploader.cc +++ head/www/chromium/files/patch-chrome_browser_media_webrtc_webrtc__event__log__uploader.cc @@ -1,6 +1,6 @@ ---- chrome/browser/media/webrtc/webrtc_event_log_uploader.cc.orig 2019-12-16 21:51:23 UTC +--- chrome/browser/media/webrtc/webrtc_event_log_uploader.cc.orig 2020-03-03 18:53:01 UTC +++ chrome/browser/media/webrtc/webrtc_event_log_uploader.cc -@@ -37,7 +37,7 @@ constexpr size_t kExpectedMimeOverheadBytes = 1000; / +@@ -38,7 +38,7 @@ constexpr size_t kExpectedMimeOverheadBytes = 1000; / const char kProduct[] = "Chrome"; #elif defined(OS_MACOSX) const char kProduct[] = "Chrome_Mac"; Index: head/www/chromium/files/patch-chrome_browser_media_webrtc_webrtc__logging__controller.cc =================================================================== --- head/www/chromium/files/patch-chrome_browser_media_webrtc_webrtc__logging__controller.cc +++ head/www/chromium/files/patch-chrome_browser_media_webrtc_webrtc__logging__controller.cc @@ -7,7 +7,7 @@ -#if defined(OS_LINUX) || defined(OS_CHROMEOS) +#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD) #include "content/public/browser/child_process_security_policy.h" - #include "storage/browser/fileapi/isolated_context.h" + #include "storage/browser/file_system/isolated_context.h" -#endif // defined(OS_LINUX) || defined(OS_CHROMEOS) +#endif // defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD) Index: head/www/chromium/files/patch-chrome_browser_metrics_chrome__metrics__service__client.cc =================================================================== --- head/www/chromium/files/patch-chrome_browser_metrics_chrome__metrics__service__client.cc +++ head/www/chromium/files/patch-chrome_browser_metrics_chrome__metrics__service__client.cc @@ -1,6 +1,6 @@ ---- chrome/browser/metrics/chrome_metrics_service_client.cc.orig 2019-12-16 21:51:23 UTC +--- chrome/browser/metrics/chrome_metrics_service_client.cc.orig 2020-03-03 18:53:51 UTC +++ chrome/browser/metrics/chrome_metrics_service_client.cc -@@ -704,11 +704,11 @@ void ChromeMetricsServiceClient::RegisterMetricsServic +@@ -708,11 +708,11 @@ void ChromeMetricsServiceClient::RegisterMetricsServic #endif // defined(OS_WIN) #if defined(OS_WIN) || defined(OS_MACOSX) || \ @@ -14,7 +14,7 @@ #if BUILDFLAG(ENABLE_PLUGINS) plugin_metrics_provider_ = new PluginMetricsProvider(local_state); -@@ -947,7 +947,7 @@ bool ChromeMetricsServiceClient::RegisterForProfileEve +@@ -955,7 +955,7 @@ bool ChromeMetricsServiceClient::RegisterForProfileEve } #endif #if defined(OS_WIN) || defined(OS_MACOSX) || \ Index: head/www/chromium/files/patch-chrome_browser_metrics_process__memory__metrics__emitter.cc =================================================================== --- head/www/chromium/files/patch-chrome_browser_metrics_process__memory__metrics__emitter.cc +++ head/www/chromium/files/patch-chrome_browser_metrics_process__memory__metrics__emitter.cc @@ -1,6 +1,6 @@ ---- chrome/browser/metrics/process_memory_metrics_emitter.cc.orig 2019-12-16 21:51:23 UTC +--- chrome/browser/metrics/process_memory_metrics_emitter.cc.orig 2020-03-03 18:53:51 UTC +++ chrome/browser/metrics/process_memory_metrics_emitter.cc -@@ -375,7 +375,7 @@ void EmitProcessUmaAndUkm(const GlobalMemoryDump::Proc +@@ -425,7 +425,7 @@ void EmitProcessUmaAndUkm(const GlobalMemoryDump::Proc builder->SetPrivateMemoryFootprint(pmd.os_dump().private_footprint_kb / 1024); builder->SetSharedMemoryFootprint(pmd.os_dump().shared_footprint_kb / 1024); @@ -9,7 +9,7 @@ builder->SetPrivateSwapFootprint(pmd.os_dump().private_footprint_swap_kb / 1024); #endif -@@ -398,7 +398,7 @@ void EmitProcessUmaAndUkm(const GlobalMemoryDump::Proc +@@ -448,7 +448,7 @@ void EmitProcessUmaAndUkm(const GlobalMemoryDump::Proc MEMORY_METRICS_HISTOGRAM_MB(std::string(kMemoryHistogramPrefix) + process_name + ".SharedMemoryFootprint", pmd.os_dump().shared_footprint_kb / 1024); Index: head/www/chromium/files/patch-chrome_browser_net_system__network__context__manager.cc =================================================================== --- head/www/chromium/files/patch-chrome_browser_net_system__network__context__manager.cc +++ head/www/chromium/files/patch-chrome_browser_net_system__network__context__manager.cc @@ -1,6 +1,6 @@ ---- chrome/browser/net/system_network_context_manager.cc.orig 2019-12-16 21:51:23 UTC +--- chrome/browser/net/system_network_context_manager.cc.orig 2020-03-03 18:53:51 UTC +++ chrome/browser/net/system_network_context_manager.cc -@@ -81,11 +81,11 @@ +@@ -79,11 +79,11 @@ #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" #endif // defined(OS_CHROMEOS) @@ -12,9 +12,9 @@ -#endif // defined(OS_LINUX) && !defined(OS_CHROMEOS) +#endif // (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) - #if BUILDFLAG(ENABLE_EXTENSIONS) - #include "extensions/common/constants.h" -@@ -209,10 +209,10 @@ network::mojom::HttpAuthDynamicParamsPtr CreateHttpAut + #if defined(OS_WIN) || defined(OS_MACOSX) + #include "content/public/common/network_service_util.h" +@@ -211,10 +211,10 @@ network::mojom::HttpAuthDynamicParamsPtr CreateHttpAut auth_dynamic_params->enable_negotiate_port = local_state->GetBoolean(prefs::kEnableAuthNegotiatePort); @@ -27,7 +27,7 @@ #if defined(OS_POSIX) auth_dynamic_params->ntlm_v2_enabled = -@@ -476,10 +476,10 @@ SystemNetworkContextManager::SystemNetworkContextManag +@@ -480,10 +480,10 @@ SystemNetworkContextManager::SystemNetworkContextManag pref_change_registrar_.Add(prefs::kEnableAuthNegotiatePort, auth_pref_callback); @@ -40,7 +40,7 @@ #if defined(OS_POSIX) pref_change_registrar_.Add(prefs::kNtlmV2Enabled, auth_pref_callback); -@@ -531,10 +531,10 @@ void SystemNetworkContextManager::RegisterPrefs(PrefRe +@@ -535,10 +535,10 @@ void SystemNetworkContextManager::RegisterPrefs(PrefRe registry->RegisterStringPref(prefs::kAuthServerWhitelist, std::string()); registry->RegisterStringPref(prefs::kAuthNegotiateDelegateWhitelist, std::string()); @@ -53,7 +53,7 @@ #if defined(OS_POSIX) registry->RegisterBooleanPref( -@@ -645,7 +645,7 @@ void SystemNetworkContextManager::OnNetworkServiceCrea +@@ -643,7 +643,7 @@ void SystemNetworkContextManager::OnNetworkServiceCrea insecure_stub_resolver_enabled, secure_dns_mode, std::move(dns_over_https_servers)); Index: head/www/chromium/files/patch-chrome_browser_notifications_notification__display__service__impl.cc =================================================================== --- head/www/chromium/files/patch-chrome_browser_notifications_notification__display__service__impl.cc +++ head/www/chromium/files/patch-chrome_browser_notifications_notification__display__service__impl.cc @@ -1,6 +1,6 @@ ---- chrome/browser/notifications/notification_display_service_impl.cc.orig 2019-10-21 19:06:22 UTC +--- chrome/browser/notifications/notification_display_service_impl.cc.orig 2020-03-03 18:53:51 UTC +++ chrome/browser/notifications/notification_display_service_impl.cc -@@ -33,7 +33,7 @@ +@@ -34,7 +34,7 @@ #include "chrome/browser/notifications/notification_platform_bridge_message_center.h" #endif @@ -9,7 +9,7 @@ #include "chrome/browser/send_tab_to_self/desktop_notification_handler.h" #endif -@@ -122,7 +122,7 @@ NotificationDisplayServiceImpl::NotificationDisplaySer +@@ -123,7 +123,7 @@ NotificationDisplayServiceImpl::NotificationDisplaySer AddNotificationHandler(NotificationHandler::Type::WEB_PERSISTENT, std::make_unique()); Index: head/www/chromium/files/patch-chrome_browser_password__manager_chrome__password__manager__client.cc =================================================================== --- head/www/chromium/files/patch-chrome_browser_password__manager_chrome__password__manager__client.cc +++ head/www/chromium/files/patch-chrome_browser_password__manager_chrome__password__manager__client.cc @@ -1,6 +1,6 @@ ---- chrome/browser/password_manager/chrome_password_manager_client.cc.orig 2019-12-16 21:51:23 UTC +--- chrome/browser/password_manager/chrome_password_manager_client.cc.orig 2020-03-03 18:53:51 UTC +++ chrome/browser/password_manager/chrome_password_manager_client.cc -@@ -85,7 +85,11 @@ +@@ -87,7 +87,11 @@ #include "net/base/url_util.h" #include "net/cert/cert_status_flags.h" #include "services/metrics/public/cpp/ukm_recorder.h" Index: head/www/chromium/files/patch-chrome_browser_plugins_plugin__info__host__impl.cc =================================================================== --- head/www/chromium/files/patch-chrome_browser_plugins_plugin__info__host__impl.cc +++ head/www/chromium/files/patch-chrome_browser_plugins_plugin__info__host__impl.cc @@ -1,6 +1,6 @@ ---- chrome/browser/plugins/plugin_info_host_impl.cc.orig 2019-10-21 19:06:22 UTC +--- chrome/browser/plugins/plugin_info_host_impl.cc.orig 2020-03-03 18:53:01 UTC +++ chrome/browser/plugins/plugin_info_host_impl.cc -@@ -383,7 +383,7 @@ void PluginInfoHostImpl::ComponentPluginLookupDone( +@@ -382,7 +382,7 @@ void PluginInfoHostImpl::ComponentPluginLookupDone( std::unique_ptr cus_plugin_info) { if (cus_plugin_info) { output->status = chrome::mojom::PluginStatus::kComponentUpdateRequired; Index: head/www/chromium/files/patch-chrome_browser_plugins_plugins__resource__service.cc =================================================================== --- head/www/chromium/files/patch-chrome_browser_plugins_plugins__resource__service.cc +++ head/www/chromium/files/patch-chrome_browser_plugins_plugins__resource__service.cc @@ -1,6 +1,6 @@ ---- chrome/browser/plugins/plugins_resource_service.cc.orig 2019-03-11 22:00:53 UTC +--- chrome/browser/plugins/plugins_resource_service.cc.orig 2020-03-03 18:53:01 UTC +++ chrome/browser/plugins/plugins_resource_service.cc -@@ -63,7 +63,7 @@ GURL GetPluginsServerURL() { +@@ -62,7 +62,7 @@ GURL GetPluginsServerURL() { filename = "plugins_win.json"; #elif defined(OS_CHROMEOS) filename = "plugins_chromeos.json"; Index: head/www/chromium/files/patch-chrome_browser_policy_configuration__policy__handler__list__factory.cc =================================================================== --- head/www/chromium/files/patch-chrome_browser_policy_configuration__policy__handler__list__factory.cc +++ head/www/chromium/files/patch-chrome_browser_policy_configuration__policy__handler__list__factory.cc @@ -1,6 +1,6 @@ ---- chrome/browser/policy/configuration_policy_handler_list_factory.cc.orig 2019-12-16 21:51:23 UTC +--- chrome/browser/policy/configuration_policy_handler_list_factory.cc.orig 2020-03-03 18:53:51 UTC +++ chrome/browser/policy/configuration_policy_handler_list_factory.cc -@@ -113,7 +113,7 @@ +@@ -117,7 +117,7 @@ #endif #if defined(OS_WIN) || defined(OS_MACOSX) || \ @@ -9,10 +9,10 @@ #include "chrome/browser/browser_switcher/browser_switcher_prefs.h" #endif -@@ -352,11 +352,11 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = - prefs::kSafeBrowsingSendFilesForMalwareCheck, - base::Value::Type::INTEGER - }, +@@ -357,11 +357,11 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = + { key::kWebComponentsV0Enabled, + prefs::kWebComponentsV0Enabled, + base::Value::Type::BOOLEAN }, -#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_CHROMEOS) +#if defined(OS_LINUX) || defined(OS_MACOSX) || defined(OS_CHROMEOS) || defined(OS_BSD) { key::kAuthNegotiateDelegateByKdcPolicy, @@ -23,16 +23,16 @@ #if defined(OS_POSIX) { key::kNtlmV2Enabled, prefs::kNtlmV2Enabled, -@@ -1141,7 +1141,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = +@@ -1147,7 +1147,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = + prefs::kExternalProtocolDialogShowAlwaysOpenCheckbox, base::Value::Type::BOOLEAN }, - #if defined(OS_WIN) || defined(OS_MACOSX) || \ - (defined(OS_LINUX) && !defined(OS_CHROMEOS)) + (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) { key::kAlternativeBrowserPath, browser_switcher::prefs::kAlternativeBrowserPath, base::Value::Type::STRING }, -@@ -1205,7 +1205,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = +@@ -1208,7 +1208,7 @@ const PolicyToPreferenceMapEntry kSimplePolicyMap[] = browser_switcher::prefs::kChromeParameters, base::Value::Type::LIST }, #endif Index: head/www/chromium/files/patch-chrome_browser_policy_policy__prefs__browsertest.cc =================================================================== --- head/www/chromium/files/patch-chrome_browser_policy_policy__prefs__browsertest.cc +++ head/www/chromium/files/patch-chrome_browser_policy_policy__prefs__browsertest.cc @@ -1,6 +1,6 @@ ---- chrome/browser/policy/policy_prefs_browsertest.cc.orig 2019-10-21 19:06:22 UTC +--- chrome/browser/policy/policy_prefs_browsertest.cc.orig 2020-03-03 18:53:01 UTC +++ chrome/browser/policy/policy_prefs_browsertest.cc -@@ -184,6 +184,8 @@ class PolicyTestCase { +@@ -250,6 +250,8 @@ class PolicyTestCase { const std::string os("chromeos"); #elif defined(OS_LINUX) const std::string os("linux"); Index: head/www/chromium/files/patch-chrome_browser_prefs_browser__prefs.cc =================================================================== --- head/www/chromium/files/patch-chrome_browser_prefs_browser__prefs.cc +++ head/www/chromium/files/patch-chrome_browser_prefs_browser__prefs.cc @@ -1,6 +1,6 @@ ---- chrome/browser/prefs/browser_prefs.cc.orig 2019-12-16 21:51:23 UTC +--- chrome/browser/prefs/browser_prefs.cc.orig 2020-03-03 18:53:51 UTC +++ chrome/browser/prefs/browser_prefs.cc -@@ -346,7 +346,7 @@ +@@ -352,7 +352,7 @@ #endif #if defined(OS_WIN) || defined(OS_MACOSX) || \ @@ -9,7 +9,7 @@ #include "chrome/browser/browser_switcher/browser_switcher_prefs.h" #endif -@@ -978,7 +978,7 @@ void RegisterProfilePrefs(user_prefs::PrefRegistrySync +@@ -1005,7 +1005,7 @@ void RegisterProfilePrefs(user_prefs::PrefRegistrySync #endif #if defined(OS_WIN) || defined(OS_MACOSX) || \ Index: head/www/chromium/files/patch-chrome_browser_profiles_chrome__browser__main__extra__parts__profiles.cc =================================================================== --- head/www/chromium/files/patch-chrome_browser_profiles_chrome__browser__main__extra__parts__profiles.cc +++ head/www/chromium/files/patch-chrome_browser_profiles_chrome__browser__main__extra__parts__profiles.cc @@ -1,29 +1,11 @@ ---- chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc.orig 2019-12-16 21:51:23 UTC +--- chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc.orig 2020-03-03 18:53:51 UTC +++ chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc -@@ -186,7 +186,7 @@ - #include "chrome/browser/safe_browsing/advanced_protection_status_manager_factory.h" - #endif - --#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) -+#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) - #include "chrome/browser/sync/sync_clipboard_service_factory.h" - #endif - -@@ -352,7 +352,7 @@ void ChromeBrowserMainExtraPartsProfiles:: - MediaGalleriesPreferencesFactory::GetInstance(); - #endif +@@ -292,7 +292,7 @@ void ChromeBrowserMainExtraPartsProfiles:: + if (base::FeatureList::IsEnabled(media::kUseMediaHistoryStore)) + media_history::MediaHistoryKeyedServiceFactory::GetInstance(); #if defined(OS_WIN) || defined(OS_MACOSX) || \ - (defined(OS_LINUX) && !defined(OS_CHROMEOS)) + (defined(OS_LINUX) && !defined(OS_CHROMEOS)) || defined(OS_BSD) metrics::DesktopProfileSessionDurationsServiceFactory::GetInstance(); #endif ModelTypeStoreServiceFactory::GetInstance(); -@@ -415,7 +415,7 @@ void ChromeBrowserMainExtraPartsProfiles:: - StorageNotificationServiceFactory::GetInstance(); - #endif - suggestions::SuggestionsServiceFactory::GetInstance(); --#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) -+#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || defined(OS_BSD) - SyncClipboardServiceFactory::GetInstance(); - #endif - TabRestoreServiceFactory::GetInstance(); Index: head/www/chromium/files/patch-chrome_browser_profiles_profile__attributes__entry.cc =================================================================== --- head/www/chromium/files/patch-chrome_browser_profiles_profile__attributes__entry.cc +++ head/www/chromium/files/patch-chrome_browser_profiles_profile__attributes__entry.cc @@ -1,6 +1,6 @@ ---- chrome/browser/profiles/profile_attributes_entry.cc.orig 2019-12-16 21:51:23 UTC +--- chrome/browser/profiles/profile_attributes_entry.cc.orig 2020-03-03 18:53:51 UTC +++ chrome/browser/profiles/profile_attributes_entry.cc -@@ -102,7 +102,7 @@ void ProfileAttributesEntry::Initialize(ProfileInfoCac +@@ -115,7 +115,7 @@ void ProfileAttributesEntry::Initialize(ProfileInfoCac if (is_force_signin_enabled_) { if (!IsAuthenticated()) is_force_signin_profile_locked_ = true; Index: head/www/chromium/files/patch-chrome_browser_renderer__context__menu_render__view__context__menu.cc =================================================================== --- head/www/chromium/files/patch-chrome_browser_renderer__context__menu_render__view__context__menu.cc +++ head/www/chromium/files/patch-chrome_browser_renderer__context__menu_render__view__context__menu.cc @@ -1,6 +1,6 @@ ---- chrome/browser/renderer_context_menu/render_view_context_menu.cc.orig 2019-12-16 21:51:23 UTC +--- chrome/browser/renderer_context_menu/render_view_context_menu.cc.orig 2020-03-03 18:53:51 UTC +++ chrome/browser/renderer_context_menu/render_view_context_menu.cc -@@ -1710,7 +1710,7 @@ void RenderViewContextMenu::AppendEditableItems() { +@@ -1701,7 +1701,7 @@ void RenderViewContextMenu::AppendEditableItems() { // 'Undo' and 'Redo' for text input with no suggestions and no text selected. // We make an exception for OS X as context clicking will select the closest // word. In this case both items are always shown. @@ -9,7 +9,7 @@ menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_UNDO, IDS_CONTENT_CONTEXT_UNDO); menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_REDO, -@@ -1752,7 +1752,7 @@ void RenderViewContextMenu::AppendLanguageSettings() { +@@ -1743,7 +1743,7 @@ void RenderViewContextMenu::AppendLanguageSettings() { if (!use_spelling) return; @@ -18,7 +18,7 @@ menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_LANGUAGE_SETTINGS, IDS_CONTENT_CONTEXT_LANGUAGE_SETTINGS); #else -@@ -2057,7 +2057,7 @@ bool RenderViewContextMenu::IsCommandIdEnabled(int id) +@@ -2082,7 +2082,7 @@ bool RenderViewContextMenu::IsCommandIdEnabled(int id) case IDC_CHECK_SPELLING_WHILE_TYPING: return prefs->GetBoolean(spellcheck::prefs::kSpellCheckEnable); Index: head/www/chromium/files/patch-chrome_browser_resources_settings_appearance__page_appearance__page.html =================================================================== --- head/www/chromium/files/patch-chrome_browser_resources_settings_appearance__page_appearance__page.html +++ head/www/chromium/files/patch-chrome_browser_resources_settings_appearance__page_appearance__page.html @@ -1,6 +1,6 @@ ---- chrome/browser/resources/settings/appearance_page/appearance_page.html.orig 2019-10-21 19:06:23 UTC +--- chrome/browser/resources/settings/appearance_page/appearance_page.html.orig 2020-03-03 18:53:52 UTC +++ chrome/browser/resources/settings/appearance_page/appearance_page.html -@@ -67,7 +67,7 @@ +@@ -66,7 +66,7 @@ @@ -9,7 +9,7 @@ @@ -18,7 +18,7 @@