Nico Weber | bc5b06f | 2019-07-26 14:00:13 | [diff] [blame] | 1 | # Copyright 2019 The Chromium Authors. All rights reserved. |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | import("//build/config/chromecast_build.gni") |
| 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. |
Nico Weber | bc5b06f | 2019-07-26 14:00:13 | [diff] [blame] | 15 | if (is_ios || is_chromecast) { |
| 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] [blame] | 19 | } else { |
| 20 | safe_browsing_mode = 1 |
| 21 | } |
| 22 | } |