blob: b479afb30bed16f47404c660d3fad5a313162daf [file] [log] [blame]
Avi Drissman8ba1bad2022-09-13 19:22:361# Copyright 2019 The Chromium Authors
Nico Weberbc5b06f2019-07-26 14:00:132# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
mark a. foltze185ab2fa2023-11-06 21:21:205import("//build/config/cast.gni")
Nico Weberbc5b06f2019-07-26 14:00:136if (is_android) {
7 import("//build/config/android/config.gni")
8}
9
10declare_args() {
11 # Variable safe_browsing is used to control the build time configuration for
12 # safe browsing feature. Safe browsing can be compiled in 3 different levels:
Michael Thiessendb4bfdbd2019-10-07 23:22:3213 # 0 disables it, 1 enables it fully, and 2 enables mobile protection via an
14 # external API.
Daniel Rubery8b05263b2024-06-27 17:38:4115 if (is_ios || is_castos || is_cast_android || is_fuchsia) {
Nico Weberbc5b06f2019-07-26 14:00:1316 safe_browsing_mode = 0
17 } else if (is_android) {
Michael Thiessendb4bfdbd2019-10-07 23:22:3218 safe_browsing_mode = 2
Nico Weberbc5b06f2019-07-26 14:00:13