• Sylvain Defresne's avatar
    [ios] Fix compilation when widgets and extensions are disabled · 9c107085
    Sylvain Defresne authored
    Applications build for the macOS "catalyst" environment do not support
    the extensions or widgets that ships with Chrome on iOS. Fix the build
    when the variables used to enabled them are set to false.
    
    Add assertion to ensure that the BUILD.gn defining the extensions and
    widgets are not included when the variables are set to false, in order
    to prevent from accidental inclusion.
    
    Add a gn variable to control whether screen_time is enabled or not.
    It will allow disabling it when environment is macOS "catalyst".
    
    Bug: 1138425
    Change-Id: If2cf9734c0595098cb2f60247702f73cf5da7d63
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2498593
    Commit-Queue: Sylvain Defresne <sdefresne@chromium.org>
    Reviewed-by: default avatarRohit Rao <rohitrao@chromium.org>
    Auto-Submit: Sylvain Defresne <sdefresne@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#821287}
    9c107085
BUILD.gn 15.8 KB