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. |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 # resources.pak. It is still possible to load JS files from disk by passing | 42 # resources.pak. It is still possible to load JS files from disk by passing |
43 # --debug-devtools cmdline switch. | 43 # --debug-devtools cmdline switch. |
44 debug_devtools = false | 44 debug_devtools = false |
45 | 45 |
46 # Enables WebRTC. | 46 # Enables WebRTC. |
47 # TODO(GYP) make mac and android work. | 47 # TODO(GYP) make mac and android work. |
48 enable_webrtc = !is_ios && !is_mac && !is_android | 48 enable_webrtc = !is_ios && !is_mac && !is_android |
49 | 49 |
50 # Enables proprietary codecs and demuxers; e.g. H264, MOV, AAC, and MP3. | 50 # Enables proprietary codecs and demuxers; e.g. H264, MOV, AAC, and MP3. |
51 proprietary_codecs = false | 51 proprietary_codecs = false |
| 52 |
| 53 enable_configuration_policy = true |
| 54 |
| 55 # Enables support for background apps. |
| 56 enable_background = !is_ios && !is_android |
| 57 |
| 58 enable_captive_portal_detection = !is_android && !is_ios |
| 59 |
| 60 # Enables use of the session service, which is enabled by default. |
| 61 # Android stores them separately on the Java side. |
| 62 enable_session_service = !is_android && !is_ios |
| 63 |
| 64 enable_plugin_installation = is_win || is_mac |
| 65 |
| 66 enable_app_list = !is_ios && !is_android |
| 67 |
| 68 enable_supervised_users = !is_ios |
| 69 |
| 70 enable_autofill_dialog = !is_ios && !(is_android && is_android_webview_build) |
| 71 |
| 72 enable_google_now = !is_ios && !is_android |
| 73 |
| 74 enable_one_click_signin = is_win || is_mac || (is_linux && !is_chromeos) |
52 } | 75 } |
53 | 76 |
54 # Additional dependent variables ----------------------------------------------- | 77 # Additional dependent variables ----------------------------------------------- |
55 | 78 |
56 # Set the version of CLD. | 79 # Set the version of CLD. |
57 # 0: Don't specify the version. This option is for the Finch testing. | 80 # 0: Don't specify the version. This option is for the Finch testing. |
58 # 1: Use only CLD1. | 81 # 1: Use only CLD1. |
59 # 2: Use only CLD2. | 82 # 2: Use only CLD2. |
60 if (is_android) { | 83 if (is_android) { |
61 cld_version = 1 | 84 cld_version = 1 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 # without enabling phishing and malware detection. This is useful to integrate | 129 # without enabling phishing and malware detection. This is useful to integrate |
107 # a third party phishing/malware detection to existing safe browsing logic. | 130 # a third party phishing/malware detection to existing safe browsing logic. |
108 if (is_android) { | 131 if (is_android) { |
109 safe_browsing_mode = 2 | 132 safe_browsing_mode = 2 |
110 } else if (is_ios) { | 133 } else if (is_ios) { |
111 safe_browsing_mode = 0 | 134 safe_browsing_mode = 0 |
112 } else { | 135 } else { |
113 safe_browsing_mode = 1 | 136 safe_browsing_mode = 1 |
114 } | 137 } |
115 | 138 |
116 enable_configuration_policy = true | |
117 | |
118 # Enables support for background apps. | |
119 enable_background = !is_ios && !is_android | |
120 | |
121 enable_task_manager = !is_ios && !is_android | 139 enable_task_manager = !is_ios && !is_android |
122 | 140 |
123 use_cups = is_desktop_linux || is_mac | 141 use_cups = is_desktop_linux || is_mac |
124 | 142 |
125 enable_themes = !is_android && !is_ios | 143 enable_themes = !is_android && !is_ios |
126 | 144 |
127 # TODO(scottmg) remove this when we've fixed printing. | 145 # TODO(scottmg) remove this when we've fixed printing. |
128 win_pdf_metafile_for_printing = true | 146 win_pdf_metafile_for_printing = true |
129 | 147 |
130 enable_captive_portal_detection = !is_android && !is_ios | |
131 | |
132 # Enables use of the session service, which is enabled by default. | |
133 # Android stores them separately on the Java side. | |
134 enable_session_service = !is_android && !is_ios | |
135 | |
136 # Whether we are using the rlz library or not. Platforms like Android send | 148 # Whether we are using the rlz library or not. Platforms like Android send |
137 # rlz codes for searches but do not use the library. | 149 # rlz codes for searches but do not use the library. |
138 enable_rlz = is_chrome_branded && (is_win || is_mac || is_ios || is_chromeos) | 150 enable_rlz = is_chrome_branded && (is_win || is_mac || is_ios || is_chromeos) |
139 | 151 |
140 enable_plugin_installation = is_win || is_mac | |
141 | |
142 enable_app_list = !is_ios && !is_android | |
143 enable_settings_app = enable_app_list && !is_chromeos | 152 enable_settings_app = enable_app_list && !is_chromeos |
144 | 153 |
145 enable_supervised_users = !is_ios | |
146 | |
147 enable_service_discovery = enable_mdns || is_mac | 154 enable_service_discovery = enable_mdns || is_mac |
148 | 155 |
149 enable_autofill_dialog = !is_ios && !(is_android && is_android_webview_build) | |
150 | |
151 enable_wifi_bootstrapping = is_win || is_mac | 156 enable_wifi_bootstrapping = is_win || is_mac |
152 | 157 |
153 # Image loader extension is enabled on ChromeOS only. | 158 # Image loader extension is enabled on ChromeOS only. |
154 enable_image_loader_extension = is_chromeos | 159 enable_image_loader_extension = is_chromeos |
155 | 160 |
156 enable_remoting = !is_ios && !is_android | 161 enable_remoting = !is_ios && !is_android |
157 | 162 |
158 enable_google_now = !is_ios && !is_android | |
159 | |
160 enable_one_click_signin = is_win || is_mac || (is_linux && !is_chromeos) | |
161 | |
162 # Chrome OS: whether to also build the upcoming version of | 163 # Chrome OS: whether to also build the upcoming version of |
163 # ChromeVox, which can then be enabled via a command-line switch. | 164 # ChromeVox, which can then be enabled via a command-line switch. |
164 enable_chromevox_next = false | 165 enable_chromevox_next = false |
165 | 166 |
166 # Use brlapi from brltty for braille display support. | 167 # Use brlapi from brltty for braille display support. |
167 use_brlapi = is_chromeos | 168 use_brlapi = is_chromeos |
168 | 169 |
169 enable_media_router = !is_ios && !is_android | 170 enable_media_router = !is_ios && !is_android |
170 | 171 |
171 # Option controlling the use of GConf (the classic GNOME configuration | 172 # Option controlling the use of GConf (the classic GNOME configuration |
172 # system). | 173 # system). |
173 # TODO(GYP) also require !embedded to enable. | 174 # TODO(GYP) also require !embedded to enable. |
174 use_gconf = is_linux && !is_chromeos | 175 use_gconf = is_linux && !is_chromeos |
175 | 176 |
176 # Hangout services is an extension that adds extra features to Hangouts. | 177 # Hangout services is an extension that adds extra features to Hangouts. |
177 # For official GYP builds, this flag is set, it will likely need to be | 178 # For official GYP builds, this flag is set, it will likely need to be |
178 # parameterized in the future for a similar use. | 179 # parameterized in the future for a similar use. |
179 enable_hangout_services_extension = false | 180 enable_hangout_services_extension = false |
OLD | NEW |