blob: 48e74db6c1830bccda60ad5aad7bc4fcb2988ed2 [file] [log] [blame]
Nico Weberbc5b06f2019-07-26 14:00:131# 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
5import("//build/config/chromecast_build.gni")
6if (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.
Nico Weberbc5b06f2019-07-26 14:00:1315 if (is_ios || is_chromecast) {
16 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:1319 } else {
20 safe_browsing_mode = 1
21 }
22}