OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # This file contains UI-related build flags. It should theoretically be in the | 5 # This file contains UI-related build flags. It should theoretically be in the |
6 # src/ui directory and only things that depend on the ui module should get the | 6 # src/ui directory and only things that depend on the ui module should get the |
7 # definitions. | 7 # definitions. |
8 # | 8 # |
9 # However, today we have many "bad" dependencies on some of these flags from, | 9 # However, today we have many "bad" dependencies on some of these flags from, |
10 # e.g. base, so they need to be global. | 10 # e.g. base, so they need to be global. |
11 # | 11 # |
12 # See also build/config/ui.gni | 12 # See also build/config/ui.gni |
13 | 13 |
14 declare_args() { | 14 declare_args() { |
15 # Multicast DNS. | 15 # Multicast DNS. |
16 enable_mdns = is_win || is_linux | 16 enable_mdns = is_win || is_linux |
17 | 17 |
18 enable_plugins = !is_android || !is_ios | 18 enable_plugins = !is_android || !is_ios |
| 19 |
| 20 # Enables Native Client support. |
| 21 enable_nacl = (!is_ios && !is_android) |
19 } | 22 } |
20 | 23 |
21 # Additional dependent variables ----------------------------------------------- | 24 # Additional dependent variables ----------------------------------------------- |
22 | 25 |
23 # Set the version of CLD. | 26 # Set the version of CLD. |
24 # 0: Don't specify the version. This option is for the Finch testing. | 27 # 0: Don't specify the version. This option is for the Finch testing. |
25 # 1: Use only CLD1. | 28 # 1: Use only CLD1. |
26 # 2: Use only CLD2. | 29 # 2: Use only CLD2. |
27 if (is_android || is_ios) { | 30 if (is_android || is_ios) { |
28 cld_version = 1 | 31 cld_version = 1 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 disable_ftp_support = is_ios | 68 disable_ftp_support = is_ios |
66 | 69 |
67 # Speech input is compiled in by default. Set to 0 to disable. | 70 # Speech input is compiled in by default. Set to 0 to disable. |
68 # TODO(tommyw): Speech Input doesn't exist anymore. Clarify the scope | 71 # TODO(tommyw): Speech Input doesn't exist anymore. Clarify the scope |
69 # of this flag (and probably rename it). | 72 # of this flag (and probably rename it). |
70 enable_speech_input = true | 73 enable_speech_input = true |
71 | 74 |
72 use_dbus = is_linux | 75 use_dbus = is_linux |
73 | 76 |
74 enable_extensions = (!is_android && !is_ios) | 77 enable_extensions = (!is_android && !is_ios) |
| 78 |
| 79 # Variable safe_browsing is used to control the build time configuration for |
| 80 # safe browsing feature. Safe browsing can be compiled in 3 different levels: 0 |
| 81 # disables it, 1 enables it fully, and 2 enables only UI and reporting features |
| 82 # without enabling phishing and malware detection. This is useful to integrate |
| 83 # a third party phishing/malware detection to existing safe browsing logic. |
| 84 if (is_android) { |
| 85 safe_browsing_mode = 2 |
| 86 } else if (is_ios) { |
| 87 safe_browsing_mode = 0 |
| 88 } else { |
| 89 safe_browsing_mode = 1 |
| 90 } |
OLD | NEW |