From d2d3237eb18fb22c0160171af44df69910cf3fa9 Mon Sep 17 00:00:00 2001 From: Eloston Date: Wed, 22 Feb 2017 00:53:58 -0800 Subject: [PATCH] Update Debian patches to 56.0.2924.76-4 --- resources/configs/common/patch_order | 20 ++++--- resources/configs/common_debian/patch_order | 2 - resources/configs/linux_dynamic/patch_order | 1 - .../disable/default-browser-warning.patch | 13 ---- .../debian/disable/extension-updater.patch | 14 ----- .../debian/disable/external-components.patch | 2 +- .../debian/disable/google-api-warning.patch | 2 +- resources/patches/debian/disable/pings.patch | 13 ---- .../debian/disable/third-party-cookies.patch | 14 +++++ .../debian/fixes/arm64-seccomp-memfd.patch | 60 +++++++++++++++++++ .../fixes}/chromedriver-revision.patch | 0 .../debian/{ => fixes}/glibc2.24.patch | 0 .../debian/{ => fixes}/gpu-timeout.patch | 0 .../patches/debian/fixes/opus-no-neon.patch | 58 ++++++++++++++++++ .../patches/debian/{ => fixes}/ps-print.patch | 8 +-- .../debian/fixes/widevine-revision.patch | 13 ++++ .../gn/arm64-toolchain.patch} | 8 +-- .../arm64-gn.patch => debian/gn/arm64.patch} | 14 ++--- .../buildflags.patch} | 0 .../debian/{gn.patch => gn/parallel.patch} | 0 .../patches/linux_dynamic/gtk3theme.patch | 30 ---------- resources/patches/linux_dynamic/manpage.patch | 8 ++- .../patches/linux_dynamic/system/event.patch | 6 +- .../patches/linux_dynamic/system/ffmpeg.patch | 2 +- .../patches/linux_dynamic/system/nspr.patch | 8 +-- .../patches/linux_dynamic/system/vpx.patch | 43 +++++++------ 26 files changed, 212 insertions(+), 127 deletions(-) delete mode 100644 resources/configs/common_debian/patch_order delete mode 100644 resources/patches/debian/disable/default-browser-warning.patch delete mode 100644 resources/patches/debian/disable/extension-updater.patch delete mode 100644 resources/patches/debian/disable/pings.patch create mode 100644 resources/patches/debian/disable/third-party-cookies.patch create mode 100644 resources/patches/debian/fixes/arm64-seccomp-memfd.patch rename resources/patches/{linux_dynamic => debian/fixes}/chromedriver-revision.patch (100%) rename resources/patches/debian/{ => fixes}/glibc2.24.patch (100%) rename resources/patches/debian/{ => fixes}/gpu-timeout.patch (100%) create mode 100644 resources/patches/debian/fixes/opus-no-neon.patch rename resources/patches/debian/{ => fixes}/ps-print.patch (64%) create mode 100644 resources/patches/debian/fixes/widevine-revision.patch rename resources/patches/{common_debian/arm64-gcc-toolchain.patch => debian/gn/arm64-toolchain.patch} (69%) rename resources/patches/{common_debian/arm64-gn.patch => debian/gn/arm64.patch} (67%) rename resources/patches/debian/{build-flags.patch => gn/buildflags.patch} (100%) rename resources/patches/debian/{gn.patch => gn/parallel.patch} (100%) delete mode 100644 resources/patches/linux_dynamic/gtk3theme.patch diff --git a/resources/configs/common/patch_order b/resources/configs/common/patch_order index 7dff44e2..c50cdb43 100644 --- a/resources/configs/common/patch_order +++ b/resources/configs/common/patch_order @@ -1,14 +1,18 @@ -debian/disable/pings.patch +debian/gn/parallel.patch +debian/gn/buildflags.patch +debian/gn/arm64.patch +debian/gn/arm64-toolchain.patch debian/disable/promo.patch -debian/disable/extension-updater.patch debian/disable/google-api-warning.patch +debian/disable/third-party-cookies.patch debian/disable/external-components.patch -debian/disable/default-browser-warning.patch -debian/glibc2.24.patch -debian/gn.patch -debian/ps-print.patch -debian/build-flags.patch -debian/gpu-timeout.patch +debian/fixes/ps-print.patch +debian/fixes/glibc2.24.patch +debian/fixes/gpu-timeout.patch +debian/fixes/widevine-revision.patch +debian/fixes/chromedriver-revision.patch +debian/fixes/opus-no-neon.patch +debian/fixes/arm64-seccomp-memfd.patch inox-patchset/chromium-icu58.patch inox-patchset/fix-building-without-safebrowsing.patch diff --git a/resources/configs/common_debian/patch_order b/resources/configs/common_debian/patch_order deleted file mode 100644 index f1e2deec..00000000 --- a/resources/configs/common_debian/patch_order +++ /dev/null @@ -1,2 +0,0 @@ -common_debian/arm64-gcc-toolchain.patch -common_debian/arm64-gn.patch diff --git a/resources/configs/linux_dynamic/patch_order b/resources/configs/linux_dynamic/patch_order index 23ba423c..16555369 100644 --- a/resources/configs/linux_dynamic/patch_order +++ b/resources/configs/linux_dynamic/patch_order @@ -1,7 +1,6 @@ linux_dynamic/manpage.patch linux_dynamic/master-preferences.patch -linux_dynamic/chromedriver-revision.patch linux_dynamic/system/icu.patch linux_dynamic/system/vpx.patch diff --git a/resources/patches/debian/disable/default-browser-warning.patch b/resources/patches/debian/disable/default-browser-warning.patch deleted file mode 100644 index da7a1e0a..00000000 --- a/resources/patches/debian/disable/default-browser-warning.patch +++ /dev/null @@ -1,13 +0,0 @@ -description: never show the default browser question - ---- a/chrome/browser/ui/startup/startup_browser_creator_impl.cc -+++ b/chrome/browser/ui/startup/startup_browser_creator_impl.cc -@@ -809,7 +809,7 @@ void StartupBrowserCreatorImpl::AddInfoB - browser->tab_strip_model()->GetActiveWebContents())); - - #if !defined(OS_CHROMEOS) -- if (!command_line_.HasSwitch(switches::kNoDefaultBrowserCheck)) { -+ if (false) { - // Generally, the default browser prompt should not be shown on first - // run. However, when the set-as-default dialog has been suppressed, we - // need to allow it. diff --git a/resources/patches/debian/disable/extension-updater.patch b/resources/patches/debian/disable/extension-updater.patch deleted file mode 100644 index f9e0018c..00000000 --- a/resources/patches/debian/disable/extension-updater.patch +++ /dev/null @@ -1,14 +0,0 @@ -description: disable automatic extension updating - ---- a/chrome/browser/extensions/extension_system_impl.cc -+++ b/chrome/browser/extensions/extension_system_impl.cc -@@ -186,8 +186,7 @@ void ExtensionSystemImpl::Shared::Init(b - // ExtensionService depends on RuntimeData. - runtime_data_.reset(new RuntimeData(ExtensionRegistry::Get(profile_))); - -- bool autoupdate_enabled = !profile_->IsGuestSession() && -- !profile_->IsSystemProfile(); -+ bool autoupdate_enabled = false; - #if defined(OS_CHROMEOS) - if (!extensions_enabled) - autoupdate_enabled = false; diff --git a/resources/patches/debian/disable/external-components.patch b/resources/patches/debian/disable/external-components.patch index e1ca029f..0f1d9660 100644 --- a/resources/patches/debian/disable/external-components.patch +++ b/resources/patches/debian/disable/external-components.patch @@ -2,7 +2,7 @@ description: disable loading external components --- a/chrome/browser/extensions/external_component_loader.cc +++ b/chrome/browser/extensions/external_component_loader.cc -@@ -39,6 +39,9 @@ ExternalComponentLoader::~ExternalCompon +@@ -41,6 +41,9 @@ ExternalComponentLoader::~ExternalCompon void ExternalComponentLoader::StartLoading() { prefs_.reset(new base::DictionaryValue()); diff --git a/resources/patches/debian/disable/google-api-warning.patch b/resources/patches/debian/disable/google-api-warning.patch index 88a15d70..309ebd3a 100644 --- a/resources/patches/debian/disable/google-api-warning.patch +++ b/resources/patches/debian/disable/google-api-warning.patch @@ -2,7 +2,7 @@ description: disable the google api key warning when those aren't found --- a/chrome/browser/ui/startup/startup_browser_creator_impl.cc +++ b/chrome/browser/ui/startup/startup_browser_creator_impl.cc -@@ -805,8 +805,6 @@ void StartupBrowserCreatorImpl::AddInfoB +@@ -804,8 +804,6 @@ void StartupBrowserCreatorImpl::AddInfoB if (is_process_startup == chrome::startup::IS_PROCESS_STARTUP && !command_line_.HasSwitch(switches::kTestType)) { chrome::ShowBadFlagsPrompt(browser); diff --git a/resources/patches/debian/disable/pings.patch b/resources/patches/debian/disable/pings.patch deleted file mode 100644 index 3b631ace..00000000 --- a/resources/patches/debian/disable/pings.patch +++ /dev/null @@ -1,13 +0,0 @@ -description: disable pinging - ---- a/components/component_updater/configurator_impl.cc -+++ b/components/component_updater/configurator_impl.cc -@@ -98,7 +98,7 @@ ConfiguratorImpl::ConfiguratorImpl( - cmdline->GetSwitchValueASCII(switches::kComponentUpdater), ",", - base::KEEP_WHITESPACE, base::SPLIT_WANT_NONEMPTY); - fast_update_ = HasSwitchValue(switch_values, kSwitchFastUpdate); -- pings_enabled_ = !HasSwitchValue(switch_values, kSwitchDisablePings); -+ pings_enabled_ = false; - deltas_enabled_ = !HasSwitchValue(switch_values, kSwitchDisableDeltaUpdates); - - #if defined(OS_WIN) diff --git a/resources/patches/debian/disable/third-party-cookies.patch b/resources/patches/debian/disable/third-party-cookies.patch new file mode 100644 index 00000000..70c5ce20 --- /dev/null +++ b/resources/patches/debian/disable/third-party-cookies.patch @@ -0,0 +1,14 @@ +description: disable third-party cookies by default +author: Chad Miller + +--- a/components/content_settings/core/browser/cookie_settings.cc ++++ b/components/content_settings/core/browser/cookie_settings.cc +@@ -83,7 +83,7 @@ void CookieSettings::GetCookieSettings( + void CookieSettings::RegisterProfilePrefs( + user_prefs::PrefRegistrySyncable* registry) { + registry->RegisterBooleanPref( +- prefs::kBlockThirdPartyCookies, false, ++ prefs::kBlockThirdPartyCookies, true, + user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); + } + diff --git a/resources/patches/debian/fixes/arm64-seccomp-memfd.patch b/resources/patches/debian/fixes/arm64-seccomp-memfd.patch new file mode 100644 index 00000000..6df2eb9b --- /dev/null +++ b/resources/patches/debian/fixes/arm64-seccomp-memfd.patch @@ -0,0 +1,60 @@ +From: Riku Voipio +Subject: seccomp-bpf: whitelist memfd_create on all architectures +Origin: upstream, https://chromium.googlesource.com/chromium/src/+/2cd89ce477eb1e5ec041612369f29d75e651919e + +diff --git a/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc b/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc +index b30b3e6acef6..1d9f95cd6444 100644 +--- a/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc ++++ b/sandbox/linux/seccomp-bpf-helpers/syscall_sets.cc +@@ -120,9 +120,7 @@ bool SyscallSets::IsFileSystem(int sysno) { + #if defined(__i386__) || defined(__arm__) || defined(__mips__) + case __NR_lstat64: + #endif +-#if defined(__i386__) || defined(__arm__) || defined(__x86_64__) + case __NR_memfd_create: +-#endif + case __NR_mkdirat: + case __NR_mknodat: + #if defined(__i386__) +diff --git a/sandbox/linux/system_headers/arm64_linux_syscalls.h b/sandbox/linux/system_headers/arm64_linux_syscalls.h +index 8acb2d100037..59d0eab8ecdc 100644 +--- a/sandbox/linux/system_headers/arm64_linux_syscalls.h ++++ b/sandbox/linux/system_headers/arm64_linux_syscalls.h +@@ -1059,4 +1059,8 @@ + #define __NR_getrandom 278 + #endif + ++#if !defined(__NR_memfd_create) ++#define __NR_memfd_create 279 ++#endif ++ + #endif // SANDBOX_LINUX_SYSTEM_HEADERS_ARM64_LINUX_SYSCALLS_H_ +diff --git a/sandbox/linux/system_headers/mips64_linux_syscalls.h b/sandbox/linux/system_headers/mips64_linux_syscalls.h +index 5a179b073572..90f3d1bea8bf 100644 +--- a/sandbox/linux/system_headers/mips64_linux_syscalls.h ++++ b/sandbox/linux/system_headers/mips64_linux_syscalls.h +@@ -1267,4 +1267,8 @@ + #define __NR_getrandom (__NR_Linux + 313) + #endif + ++#if !defined(__NR_memfd_create) ++#define __NR_memfd_create (__NR_Linux + 314) ++#endif ++ + #endif // SANDBOX_LINUX_SYSTEM_HEADERS_MIPS64_LINUX_SYSCALLS_H_ +diff --git a/sandbox/linux/system_headers/mips_linux_syscalls.h b/sandbox/linux/system_headers/mips_linux_syscalls.h +index 819f9eb38b57..784d6b8ae085 100644 +--- a/sandbox/linux/system_headers/mips_linux_syscalls.h ++++ b/sandbox/linux/system_headers/mips_linux_syscalls.h +@@ -1429,4 +1429,8 @@ + #define __NR_getrandom (__NR_Linux + 353) + #endif + ++#if !defined(__NR_memfd_create) ++#define __NR_memfd_create (__NR_Linux + 354) ++#endif ++ + #endif // SANDBOX_LINUX_SYSTEM_HEADERS_MIPS_LINUX_SYSCALLS_H_ +-- +2.11.0 + diff --git a/resources/patches/linux_dynamic/chromedriver-revision.patch b/resources/patches/debian/fixes/chromedriver-revision.patch similarity index 100% rename from resources/patches/linux_dynamic/chromedriver-revision.patch rename to resources/patches/debian/fixes/chromedriver-revision.patch diff --git a/resources/patches/debian/glibc2.24.patch b/resources/patches/debian/fixes/glibc2.24.patch similarity index 100% rename from resources/patches/debian/glibc2.24.patch rename to resources/patches/debian/fixes/glibc2.24.patch diff --git a/resources/patches/debian/gpu-timeout.patch b/resources/patches/debian/fixes/gpu-timeout.patch similarity index 100% rename from resources/patches/debian/gpu-timeout.patch rename to resources/patches/debian/fixes/gpu-timeout.patch diff --git a/resources/patches/debian/fixes/opus-no-neon.patch b/resources/patches/debian/fixes/opus-no-neon.patch new file mode 100644 index 00000000..b8f33c71 --- /dev/null +++ b/resources/patches/debian/fixes/opus-no-neon.patch @@ -0,0 +1,58 @@ +Description: [Opus] Only include NEON sources and macros when arm_use_neon==true +Origin: upstream, https://chromium.googlesource.com/chromium/src/+/22d06b0c916aa422a57e58d634cb73c2909b320d + +arm_neon.h throws an error when included in a non-neon build. Only +include neon-related sources when use_arm_neon is true. + +--- + third_party/opus/BUILD.gn | 18 +++++++++++++----- + 1 file changed, 13 insertions(+), 5 deletions(-) + +diff --git a/third_party/opus/BUILD.gn b/third_party/opus/BUILD.gn +index 3bb5e0df499e..6211449f8a8a 100644 +--- a/third_party/opus/BUILD.gn ++++ b/third_party/opus/BUILD.gn +@@ -371,12 +371,9 @@ static_library("opus") { + "src/celt/arm/arm_celt_map.c", + "src/celt/arm/armcpu.c", + "src/celt/arm/armcpu.h", +- "src/celt/arm/celt_neon_intr.c", + "src/celt/arm/fft_arm.h", + "src/celt/arm/mdct_arm.h", + "src/celt/arm/pitch_arm.h", +- "src/silk/arm/NSQ_neon.c", +- "src/silk/arm/NSQ_neon.h", + "src/silk/arm/arm_silk_map.c", + ] + +@@ -385,14 +382,25 @@ static_library("opus") { + defines += [ + "OPUS_ARM_MAY_HAVE_EDSP", + "OPUS_ARM_MAY_HAVE_MEDIA", +- "OPUS_ARM_MAY_HAVE_NEON", +- "OPUS_ARM_MAY_HAVE_NEON_INTR", + "OPUS_HAVE_RTCD", + ] + + deps = [ + ":convert_rtcd_assembler", + ] ++ ++ if (arm_use_neon) { ++ sources += [ ++ "src/celt/arm/celt_neon_intr.c", ++ "src/silk/arm/NSQ_neon.c", ++ "src/silk/arm/NSQ_neon.h", ++ ] ++ ++ defines += [ ++ "OPUS_ARM_MAY_HAVE_NEON", ++ "OPUS_ARM_MAY_HAVE_NEON_INTR", ++ ] ++ } + } + } + } +-- +2.11.0 + diff --git a/resources/patches/debian/ps-print.patch b/resources/patches/debian/fixes/ps-print.patch similarity index 64% rename from resources/patches/debian/ps-print.patch rename to resources/patches/debian/fixes/ps-print.patch index d0e99b46..8f57f16c 100644 --- a/resources/patches/debian/ps-print.patch +++ b/resources/patches/debian/fixes/ps-print.patch @@ -1,9 +1,9 @@ -description: add ps printing capability +description: add postscript (ps) printing capability author: Salvatore Bonaccorso ---- a/chrome/browser/ui/libgtk2ui/print_dialog_gtk2.cc -+++ b/chrome/browser/ui/libgtk2ui/print_dialog_gtk2.cc -@@ -346,6 +346,7 @@ void PrintDialogGtk2::ShowDialog( +--- a/chrome/browser/ui/libgtkui/print_dialog_gtk.cc ++++ b/chrome/browser/ui/libgtkui/print_dialog_gtk.cc +@@ -348,6 +348,7 @@ void PrintDialogGtk2::ShowDialog( // Since we only generate PDF, only show printers that support PDF. // TODO(thestig) Add more capabilities to support? GtkPrintCapabilities cap = static_cast( diff --git a/resources/patches/debian/fixes/widevine-revision.patch b/resources/patches/debian/fixes/widevine-revision.patch new file mode 100644 index 00000000..eb598c85 --- /dev/null +++ b/resources/patches/debian/fixes/widevine-revision.patch @@ -0,0 +1,13 @@ +description: set widevine version as undefined +author: Michael Gilbert + +--- a/third_party/widevine/cdm/stub/widevine_cdm_version.h ++++ b/third_party/widevine/cdm/stub/widevine_cdm_version.h +@@ -10,6 +10,7 @@ + + #include "third_party/widevine/cdm/widevine_cdm_common.h" + ++#define WIDEVINE_CDM_VERSION_STRING "undefined" + #define WIDEVINE_CDM_AVAILABLE + + #endif // WIDEVINE_CDM_VERSION_H_ diff --git a/resources/patches/common_debian/arm64-gcc-toolchain.patch b/resources/patches/debian/gn/arm64-toolchain.patch similarity index 69% rename from resources/patches/common_debian/arm64-gcc-toolchain.patch rename to resources/patches/debian/gn/arm64-toolchain.patch index e9c1ff2e..45c198e8 100644 --- a/resources/patches/common_debian/arm64-gcc-toolchain.patch +++ b/resources/patches/debian/gn/arm64-toolchain.patch @@ -4,11 +4,9 @@ Subject: Add gcc toolchain for arm64/linux how arm, x86 and x86_64 also have both clang and gcc toolchains available. Origin: upstream, https://chromium.googlesource.com/chromium/src.git/+/b9a43ab09791a1dcfd185141f71627c3b8d437db -Index: chromium-browser-54.0.2840.101/build/toolchain/linux/BUILD.gn -=================================================================== ---- chromium-browser-54.0.2840.101.orig/build/toolchain/linux/BUILD.gn -+++ chromium-browser-54.0.2840.101/build/toolchain/linux/BUILD.gn -@@ -21,6 +21,24 @@ clang_toolchain("clang_arm64") { +--- a/build/toolchain/linux/BUILD.gn ++++ b/build/toolchain/linux/BUILD.gn +@@ -27,6 +27,24 @@ clang_toolchain("clang_arm64") { } } diff --git a/resources/patches/common_debian/arm64-gn.patch b/resources/patches/debian/gn/arm64.patch similarity index 67% rename from resources/patches/common_debian/arm64-gn.patch rename to resources/patches/debian/gn/arm64.patch index a1637d6f..e2b8c343 100644 --- a/resources/patches/common_debian/arm64-gn.patch +++ b/resources/patches/debian/gn/arm64.patch @@ -3,18 +3,16 @@ Subject: GN: Add Arm64 Linux support Add Arm64 linux support be able to build GN binary for native arm64 builds. Origin: upstream, https://chromium.googlesource.com/chromium/src.git/+/b9a43ab09791a1dcfd185141f71627c3b8d437db -Index: chromium-browser-54.0.2840.101/tools/gn/args.cc -=================================================================== ---- chromium-browser-54.0.2840.101.orig/tools/gn/args.cc -+++ chromium-browser-54.0.2840.101/tools/gn/args.cc -@@ -268,6 +268,7 @@ void Args::SetSystemVarsLocked(Scope* de +--- a/tools/gn/args.cc ++++ b/tools/gn/args.cc +@@ -266,6 +266,7 @@ void Args::SetSystemVarsLocked(Scope* de static const char kX86[] = "x86"; static const char kX64[] = "x64"; static const char kArm[] = "arm"; + static const char kArm64[] = "arm64"; static const char kMips[] = "mipsel"; - const char* arch = nullptr; - + static const char kS390X[] = "s390x"; + static const char kPPC64[] = "ppc64"; @@ -280,6 +281,8 @@ void Args::SetSystemVarsLocked(Scope* de arch = kX64; else if (os_arch.substr(0, 3) == "arm") @@ -23,4 +21,4 @@ Index: chromium-browser-54.0.2840.101/tools/gn/args.cc + arch = kArm64; else if (os_arch == "mips") arch = kMips; - else + else if (os_arch == "s390x") diff --git a/resources/patches/debian/build-flags.patch b/resources/patches/debian/gn/buildflags.patch similarity index 100% rename from resources/patches/debian/build-flags.patch rename to resources/patches/debian/gn/buildflags.patch diff --git a/resources/patches/debian/gn.patch b/resources/patches/debian/gn/parallel.patch similarity index 100% rename from resources/patches/debian/gn.patch rename to resources/patches/debian/gn/parallel.patch diff --git a/resources/patches/linux_dynamic/gtk3theme.patch b/resources/patches/linux_dynamic/gtk3theme.patch deleted file mode 100644 index b2112096..00000000 --- a/resources/patches/linux_dynamic/gtk3theme.patch +++ /dev/null @@ -1,30 +0,0 @@ -description: better integration with gtk3 themes -origin: https://bugs.archlinux.org/task/47682 - ---- a/chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc -+++ b/chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc -@@ -138,6 +138,11 @@ SkColor GetBGColor(GtkWidget* widget, Wi - gtk_widget_get_style_context(widget), stateMap[state], &color); - G_GNUC_END_IGNORE_DEPRECATIONS - -+ if (color.alpha == 0.0) -+ gtk_style_context_get_background_color( -+ gtk_widget_get_style_context(gtk_widget_get_toplevel(widget)), -+ stateMap[state], &color); -+ - // Hack for default color - if (color.alpha == 0.0) - color = {1, 1, 1, 1}; -@@ -507,8 +512,11 @@ GtkWidget* NativeThemeGtk2::GetEntry() c - GtkWidget* NativeThemeGtk2::GetLabel() const { - static GtkWidget* fake_label = NULL; - -- if (!fake_label) -+ if (!fake_label) { - fake_label = gtk_label_new(""); -+ gtk_style_context_add_class( -+ gtk_widget_get_style_context(fake_label), "gtkstyle-fallback"); -+ } - - return fake_label; - } diff --git a/resources/patches/linux_dynamic/manpage.patch b/resources/patches/linux_dynamic/manpage.patch index f8d38232..46f6b2e3 100644 --- a/resources/patches/linux_dynamic/manpage.patch +++ b/resources/patches/linux_dynamic/manpage.patch @@ -12,7 +12,7 @@ Author: Daniel Echeverry .TH @@FILENAME@@ 1 "" "" "USER COMMANDS" .SH NAME -@@ -20,6 +20,19 @@ This manpage only describes invocation, +@@ -20,6 +20,23 @@ This manpage only describes invocation, @@NAME@@ has hundreds of undocumented command-line flags that are added and removed at the whim of the developers. Here, we document relatively stable flags. @@ -28,11 +28,15 @@ Author: Daniel Echeverry +.TP +\fB\-\-temp-profile\fR +Use a throw-away/temporary profile for this session. ++ ++.TP ++\fB\-\-enable-remote-extensions\fR ++Allow installation and updates of remote extensions. + .TP \fB\-\-user\-data\-dir\fR=\fIDIR\fR Specifies the directory that user data (your "profile") is kept in. -@@ -110,6 +123,7 @@ as +@@ -110,6 +127,7 @@ as See the GTK documentation for more: .IP diff --git a/resources/patches/linux_dynamic/system/event.patch b/resources/patches/linux_dynamic/system/event.patch index 2ec05244..2d0e243e 100644 --- a/resources/patches/linux_dynamic/system/event.patch +++ b/resources/patches/linux_dynamic/system/event.patch @@ -14,7 +14,7 @@ author: Michael Gilbert #include "webrtc/base/task_queue_posix.h" --- a/tools/gn/bootstrap/bootstrap.py +++ b/tools/gn/bootstrap/bootstrap.py -@@ -544,29 +544,9 @@ def write_gn_ninja(path, root_gen_dir, o +@@ -543,29 +543,9 @@ def write_gn_ninja(path, root_gen_dir, o 'base/time/time_posix.cc', 'base/trace_event/heap_profiler_allocation_register_posix.cc', ]) @@ -45,7 +45,7 @@ author: Michael Gilbert ldflags.extend(['-pthread']) static_libraries['xdg_user_dirs'] = { -@@ -590,13 +570,6 @@ def write_gn_ninja(path, root_gen_dir, o +@@ -589,13 +569,6 @@ def write_gn_ninja(path, root_gen_dir, o 'base/threading/platform_thread_linux.cc', 'base/trace_event/malloc_dump_provider.cc', ]) @@ -59,7 +59,7 @@ author: Michael Gilbert if is_mac: static_libraries['base']['sources'].extend([ -@@ -625,12 +598,6 @@ def write_gn_ninja(path, root_gen_dir, o +@@ -624,12 +597,6 @@ def write_gn_ninja(path, root_gen_dir, o 'base/threading/platform_thread_mac.mm', 'base/trace_event/malloc_dump_provider.cc', ]) diff --git a/resources/patches/linux_dynamic/system/ffmpeg.patch b/resources/patches/linux_dynamic/system/ffmpeg.patch index cec3d165..731f0cc5 100644 --- a/resources/patches/linux_dynamic/system/ffmpeg.patch +++ b/resources/patches/linux_dynamic/system/ffmpeg.patch @@ -21,7 +21,7 @@ author: Andreas Cadhalpun #include --- a/media/filters/ffmpeg_demuxer.cc +++ b/media/filters/ffmpeg_demuxer.cc -@@ -1186,24 +1186,6 @@ void FFmpegDemuxer::OnFindStreamInfoDone +@@ -1198,24 +1198,6 @@ void FFmpegDemuxer::OnFindStreamInfoDone // If no estimate is found, the stream entry will be kInfiniteDuration. std::vector start_time_estimates(format_context->nb_streams, kInfiniteDuration); diff --git a/resources/patches/linux_dynamic/system/nspr.patch b/resources/patches/linux_dynamic/system/nspr.patch index df35681e..37b570f8 100644 --- a/resources/patches/linux_dynamic/system/nspr.patch +++ b/resources/patches/linux_dynamic/system/nspr.patch @@ -25,7 +25,7 @@ author: Michael Gilbert namespace base { --- a/tools/gn/bootstrap/bootstrap.py +++ b/tools/gn/bootstrap/bootstrap.py -@@ -467,7 +467,6 @@ def write_gn_ninja(path, root_gen_dir, o +@@ -466,7 +466,6 @@ def write_gn_ninja(path, root_gen_dir, o 'base/third_party/dmg_fp/dtoa_wrapper.cc', 'base/third_party/dmg_fp/g_fmt.cc', 'base/third_party/icu/icu_utf.cc', @@ -33,7 +33,7 @@ author: Michael Gilbert 'base/threading/non_thread_safe_impl.cc', 'base/threading/post_task_and_reply_impl.cc', 'base/threading/sequenced_task_runner_handle.cc', -@@ -567,7 +566,7 @@ def write_gn_ninja(path, root_gen_dir, o +@@ -566,7 +565,7 @@ def write_gn_ninja(path, root_gen_dir, o } if is_linux: @@ -44,7 +44,7 @@ author: Michael Gilbert static_libraries['xdg_user_dirs'] = { --- a/base/BUILD.gn +++ b/base/BUILD.gn -@@ -52,6 +52,9 @@ config("base_flags") { +@@ -49,6 +49,9 @@ config("base_flags") { "-Wno-char-subscripts", ] } @@ -54,7 +54,7 @@ author: Michael Gilbert } config("base_implementation") { -@@ -823,8 +826,6 @@ component("base") { +@@ -833,8 +836,6 @@ component("base") { "third_party/dmg_fp/g_fmt.cc", "third_party/icu/icu_utf.cc", "third_party/icu/icu_utf.h", diff --git a/resources/patches/linux_dynamic/system/vpx.patch b/resources/patches/linux_dynamic/system/vpx.patch index 75474f01..dce2b7d3 100644 --- a/resources/patches/linux_dynamic/system/vpx.patch +++ b/resources/patches/linux_dynamic/system/vpx.patch @@ -3,7 +3,7 @@ author: Michael Gilbert --- a/third_party/webrtc/modules/video_coding/BUILD.gn +++ b/third_party/webrtc/modules/video_coding/BUILD.gn -@@ -88,7 +88,6 @@ rtc_static_library("video_coding") { +@@ -89,7 +89,6 @@ rtc_static_library("video_coding") { ":webrtc_h264", ":webrtc_i420", ":webrtc_vp8", @@ -13,32 +13,27 @@ author: Michael Gilbert "../../system_wrappers", --- a/third_party/webrtc/video/video_encoder.cc +++ b/third_party/webrtc/video/video_encoder.cc -@@ -24,9 +24,6 @@ VideoEncoder* VideoEncoder::Create(Video +@@ -24,8 +24,6 @@ VideoEncoder* VideoEncoder::Create(Video return H264Encoder::Create(); case kVp8: return VP8Encoder::Create(); - case kVp9: -- RTC_DCHECK(VP9Encoder::IsSupported()); - return VP9Encoder::Create(); case kUnsupportedCodec: RTC_NOTREACHED(); return nullptr; ---- a/third_party/webrtc/media/engine/webrtcvideoengine2.cc -+++ b/third_party/webrtc/media/engine/webrtcvideoengine2.cc -@@ -161,10 +161,6 @@ bool CodecIsInternallySupported(const st - if (CodecNamesEq(codec_name, kVp8CodecName)) { - return true; - } -- if (CodecNamesEq(codec_name, kVp9CodecName)) { -- return webrtc::VP9Encoder::IsSupported() && -- webrtc::VP9Decoder::IsSupported(); -- } - if (CodecNamesEq(codec_name, kH264CodecName)) { - return webrtc::H264Encoder::IsSupported() && - webrtc::H264Decoder::IsSupported(); +@@ -40,8 +38,6 @@ bool VideoEncoder::IsSupportedSoftware(E + return H264Encoder::IsSupported(); + case kVp8: + return true; +- case kVp9: +- return VP9Encoder::IsSupported(); + case kUnsupportedCodec: + RTC_NOTREACHED(); + return false; --- a/third_party/webrtc/modules/video_coding/codec_database.cc +++ b/third_party/webrtc/modules/video_coding/codec_database.cc -@@ -576,8 +576,6 @@ VCMGenericDecoder* VCMCodecDataBase::Cre +@@ -573,8 +573,6 @@ VCMGenericDecoder* VCMCodecDataBase::Cre switch (type) { case kVideoCodecVP8: return new VCMGenericDecoder(VP8Decoder::Create()); @@ -59,3 +54,17 @@ author: Michael Gilbert case kUnsupportedCodec: LOG(LS_ERROR) << "Creating NullVideoDecoder for unsupported codec."; return new NullVideoDecoder(); +--- a/third_party/webrtc/media/engine/webrtcvideoengine2.cc ++++ b/third_party/webrtc/media/engine/webrtcvideoengine2.cc +@@ -433,11 +433,6 @@ std::vector DefaultVideoCode + AddCodecAndMaybeRtxCodec( + MakeVideoCodecWithDefaultFeedbackParams(kDefaultVp8PlType, kVp8CodecName), + &codecs); +- if (webrtc::VP9Encoder::IsSupported() && webrtc::VP9Decoder::IsSupported()) { +- AddCodecAndMaybeRtxCodec(MakeVideoCodecWithDefaultFeedbackParams( +- kDefaultVp9PlType, kVp9CodecName), +- &codecs); +- } + if (webrtc::H264Encoder::IsSupported() && + webrtc::H264Decoder::IsSupported()) { + VideoCodec codec = MakeVideoCodecWithDefaultFeedbackParams(