Avi Drissman | 8ba1bad | 2022-09-13 19:22:36 | [diff] [blame] | 1 | # Copyright 2019 The Chromium Authors |
Nico Weber | bc5b06f | 2019-07-26 14:00:13 | [diff] [blame] | 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
mark a. foltz | e185ab2fa | 2023-11-06 21:21:20 | [diff] [blame] | 5 | import("//build/config/cast.gni") |
Nico Weber | bc5b06f | 2019-07-26 14:00:13 | [diff] [blame] | 6 | if (is_android) { |
| 7 | import("//build/config/android/config.gni") |
| 8 | } |
| 9 | |
| 10 | declare_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 Thiessen | db4bfdbd | 2019-10-07 23:22:32 | [diff] [blame] | 13 | # 0 disables it, 1 enables it fully, and 2 enables mobile protection via an |
| 14 | # external API. |
Daniel Rubery | 8b05263b | 2024-06-27 17:38:41 | [diff] [blame] | 15 | if (is_ios || is_castos || is_cast_android || is_fuchsia) { |
Nico Weber | bc5b06f | 2019-07-26 14:00:13 | [diff] [blame] | 16 | safe_browsing_mode = 0 |
| 17 | } else if (is_android) { |
Michael Thiessen | db4bfdbd | 2019-10-07 23:22:32 | [diff] [blame] | 18 | safe_browsing_mode = 2 |
Nico Weber | bc5b06f | 2019-07-26 14:00:13 | [diff] [
|