blob: fba0e03cd9247eaf81aa37f74fa8ba32aa7cce9d [file]
# Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/chromecast_build.gni")
if (is_android) {
import("//build/config/android/config.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, 2 enables mobile protection via an
# external API, and 3 enables mobile protection via internal API.
if (is_ios || is_chromecast) {
safe_browsing_mode = 0
} else if (is_android) {
if (notouch_build) {
safe_browsing_mode = 3
} else {
safe_browsing_mode = 2
}
} else {
safe_browsing_mode = 1
}
}