| 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 Chrome-feature-related build flags (see ui.gni for | 5 # This file contains Chrome-feature-related build flags (see ui.gni for |
| 6 # UI-related ones). These should theoretically be moved to the build files of | 6 # UI-related ones). These should theoretically be moved to the build files of |
| 7 # the features themselves. | 7 # the features themselves. |
| 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 to match the GYP configuration. Also, | 10 # e.g. base, so they need to be global to match the GYP configuration. Also, |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 enable_hangout_services_extension = false | 100 enable_hangout_services_extension = false |
| 101 | 101 |
| 102 # Enables the use of CDMs in pepper plugins. Chromecast requires that this | 102 # Enables the use of CDMs in pepper plugins. Chromecast requires that this |
| 103 # can be explicitly disabled in gn args. | 103 # can be explicitly disabled in gn args. |
| 104 enable_pepper_cdms = enable_plugins && (is_linux || is_mac || is_win) | 104 enable_pepper_cdms = enable_plugins && (is_linux || is_mac || is_win) |
| 105 | 105 |
| 106 # Variable safe_browsing is used to control the build time configuration | 106 # Variable safe_browsing is used to control the build time configuration |
| 107 # for safe browsing feature. Safe browsing can be compiled in 4 different | 107 # for safe browsing feature. Safe browsing can be compiled in 4 different |
| 108 # levels: 0 disables it, 1 enables it fully, and 2 enables only UI and | 108 # levels: 0 disables it, 1 enables it fully, and 2 enables only UI and |
| 109 # reporting features for use with Data Saver on Mobile, and 3 enables | 109 # reporting features for use with Data Saver on Mobile, and 3 enables |
| 110 # extended mobile protection via an external API. When 3 is fully deployed, | 110 # extended mobile protection via an external API. |
| 111 # it will replace 2. | |
| 112 if (is_android) { | 111 if (is_android) { |
| 113 safe_browsing_mode = 2 | 112 safe_browsing_mode = 3 |
| 114 } else if (is_ios) { | 113 } else if (is_ios) { |
| 115 safe_browsing_mode = 0 | 114 safe_browsing_mode = 0 |
| 116 } else { | 115 } else { |
| 117 safe_browsing_mode = 1 | 116 safe_browsing_mode = 1 |
| 118 } | 117 } |
| 119 | 118 |
| 120 # Set to true make a build that disables activation of field trial tests | 119 # Set to true make a build that disables activation of field trial tests |
| 121 # specified in testing/variations/fieldtrial_testing_config_*.json. | 120 # specified in testing/variations/fieldtrial_testing_config_*.json. |
| 122 # Note: this setting is ignored if is_chrome_branded. | 121 # Note: this setting is ignored if is_chrome_branded. |
| 123 fieldtrial_testing_like_official_build = is_chrome_branded | 122 fieldtrial_testing_like_official_build = is_chrome_branded |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 # system). | 205 # system). |
| 207 # TODO(GYP) also require !embedded to enable. | 206 # TODO(GYP) also require !embedded to enable. |
| 208 use_gconf = is_linux && !is_chromeos | 207 use_gconf = is_linux && !is_chromeos |
| 209 | 208 |
| 210 # Whether to back up data before sync. | 209 # Whether to back up data before sync. |
| 211 enable_pre_sync_backup = is_win || is_mac || (is_linux && !is_chromeos) | 210 enable_pre_sync_backup = is_win || is_mac || (is_linux && !is_chromeos) |
| 212 | 211 |
| 213 # Enable WebVR support by default on Android | 212 # Enable WebVR support by default on Android |
| 214 # Still requires command line flag to access API | 213 # Still requires command line flag to access API |
| 215 enable_webvr = is_android | 214 enable_webvr = is_android |
| OLD | NEW |