• Xiaohan Wang's avatar
    Respect kLogJsConsoleMessages on all platforms · 1da7c754
    Xiaohan Wang authored
    kLogJsConsoleMessages feature is used to control whether to log JS
    console messages, which provides developers a quick way to control
    whether to log JS messages. For example, some JS code uses a lot of log
    messages which can be noisy.
    
    Currently this feature only take effect on Android where it's disabled
    by default. This CL change the logic to check this feature on all
    platforms. On non-Android platforms the feature is enabled by default,
    which matches the existing behavior.
    
    To disable JS console messages in terminal, use
      --disable-features=LogJsConsoleMessages
    
    Change-Id: I0f42e71d63f55369d1d6721c2a1c5eb3b3ef4bda
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2208352Reviewed-by: default avatarHazem Ashmawy <hazems@chromium.org>
    Reviewed-by: default avatarJohn Abd-El-Malek <jam@chromium.org>
    Commit-Queue: Xiaohan Wang <xhwang@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#771261}
    1da7c754
log_console_message.cc 2.22 KB