blob: 611d6184e49f2a1c1a2b48c4fae3411c02f2e35b [file] [log] [blame]
# Copyright 2019 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/cast.gni")
if (is_android) {
import("//build/config/android/config.gni")
}
import("//build/config/chrome_build.gni")
declare_args() {
# Variable safe_browsing is used to control the build time configuration for
# safe browsing feature. Safe browsing can be compiled in 3 different levels:
# 0 disables it, 1 enables it fully, and 2 enables mobile protection via an
# external API.
if (is_ios || is_castos || is_cast_android || is_fuchsia) {
safe_browsing_mode = 0
} else if (is_android) {
safe_browsing_mode = 2
} else {
safe_browsing_mode = 1
}
# Allows building without //third_party/unrar included, for license reasons
safe_browsing_use_unrar = true
# Variable used to control whether to use the internal notifications global cache for gating notification protections.
safe_browsing_use_internal_notifications_global_cache_origins =
is_internal_chrome_branded
}