mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
chrome: Support CefSettings logging config (see #3685)
Also enables logging by default for Release builds (previously required the `--enable-logging` flag). Logging can still be disabled by passing the `--disable-logging` flag.
This commit is contained in:
35
patch/patches/chrome_common_logging.patch
Normal file
35
patch/patches/chrome_common_logging.patch
Normal file
@ -0,0 +1,35 @@
|
||||
diff --git chrome/common/features.gni chrome/common/features.gni
|
||||
index 01367ff6efd6c..975ea8e446dce 100644
|
||||
--- chrome/common/features.gni
|
||||
+++ chrome/common/features.gni
|
||||
@@ -7,6 +7,7 @@ import("//build/config/chromeos/ui_mode.gni")
|
||||
import("//build/config/compiler/compiler.gni")
|
||||
import("//build/config/dcheck_always_on.gni")
|
||||
import("//build/config/features.gni")
|
||||
+import("//cef/libcef/features/features.gni")
|
||||
import("//components/compose/features.gni")
|
||||
import("//components/feed/features.gni")
|
||||
import("//components/nacl/features.gni")
|
||||
@@ -31,7 +32,7 @@ assert(use_blink, "Chromium without blink shouldn't use anything in //chrome")
|
||||
declare_args() {
|
||||
# Enables the build to have logging enabled by default.
|
||||
# This is intended for use only in developer builds.
|
||||
- chrome_enable_logging_by_default = is_debug
|
||||
+ chrome_enable_logging_by_default = is_debug || enable_cef
|
||||
|
||||
# Platforms where Chrome x509 server certificate enterprise policies are
|
||||
# supported. This must must match the supported_on/future_on list of the
|
||||
@@ -90,11 +91,13 @@ declare_args() {
|
||||
# optimize_webui was moved to ui/base/ui_features.gni
|
||||
}
|
||||
|
||||
+if (!enable_cef) {
|
||||
# Logging must be disabled by default in all official builds (including special
|
||||
# DCHECK-enabled builds). Logging is enabled by default for debug builds, and
|
||||
# may be selectively enabled by default for release builds.
|
||||
assert(!chrome_enable_logging_by_default || !is_official_build,
|
||||
"Logging must be disabled by default in Official builds")
|
||||
+}
|
||||
|
||||
# Use brlapi from brltty for braille display support.
|
||||
use_brlapi = is_chromeos_ash
|
Reference in New Issue
Block a user