OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 import("//build/config/chrome_build.gni") | 5 import("//build/config/chrome_build.gni") |
6 import("//build/config/chromecast_build.gni") | 6 import("//build/config/chromecast_build.gni") |
7 import("//build/config/compiler/compiler.gni") | 7 import("//build/config/compiler/compiler.gni") |
8 import("//build/config/features.gni") | 8 import("//build/config/features.gni") |
9 | 9 |
10 # Please keep features in alphabetical order. | 10 # Please keep features in alphabetical order. |
11 declare_args() { | 11 declare_args() { |
12 # Whether the Java UI is being used (Java infobars and popups, Java native | 12 # Whether the Java UI is being used (Java infobars and popups, Java native |
13 # settings and first run experience, sign-in etc.). | 13 # settings and first run experience, sign-in etc.). |
14 # Default to true if compiling for android, but allow this being overriden | 14 # Default to true if compiling for android, but allow this being overriden |
15 # through the environment. | 15 # through the environment. |
16 android_java_ui = is_android | 16 android_java_ui = is_android |
17 | 17 |
18 # Enables support for background apps. | 18 # Enables support for background apps. |
19 enable_background = !is_ios && !is_android && !is_chromecast | 19 enable_background = !is_ios && !is_android && !is_chromecast |
20 | 20 |
21 # Enable the printing system dialog for platforms that support printing | 21 # Enable the printing system dialog for platforms that support printing |
22 # and have a system dialog. | 22 # and have a system dialog. |
23 enable_basic_print_dialog = enable_basic_printing && !is_chromeos | 23 enable_basic_print_dialog = enable_basic_printing && !is_chromeos |
24 | 24 |
| 25 enable_captive_portal_detection = !is_android && !is_ios && !is_chromecast |
| 26 |
25 # Google Now is disabled to prepare for its removal. | 27 # Google Now is disabled to prepare for its removal. |
26 # http://crbug.com/539674 | 28 # http://crbug.com/539674 |
27 enable_google_now = false | 29 enable_google_now = false |
28 | 30 |
| 31 # Hangout services is an extension that adds extra features to Hangouts. |
| 32 # For official Chrome builds, this flag is set on the bots. |
| 33 enable_hangout_services_extension = false |
| 34 |
29 # 'Ok Google' hotwording is disabled by default. Set to true to enable. (This | 35 # 'Ok Google' hotwording is disabled by default. Set to true to enable. (This |
30 # will download a closed-source NaCl module at startup.) Chrome-branded | 36 # will download a closed-source NaCl module at startup.) Chrome-branded |
31 # ChromeOS builds have this enabled by default. | 37 # ChromeOS builds have this enabled by default. |
32 enable_hotwording = is_chrome_branded && is_chromeos | 38 enable_hotwording = is_chrome_branded && is_chromeos |
33 | 39 |
34 enable_one_click_signin = | 40 enable_one_click_signin = |
35 is_win || is_mac || (is_linux && !is_chromeos && !is_chromecast) | 41 is_win || is_mac || (is_linux && !is_chromeos && !is_chromecast) |
36 | 42 |
37 # Set to true to bundle all the mash related mojo services into chrome. | 43 # Set to true to bundle all the mash related mojo services into chrome. |
38 # Specify --mash to chrome to have chrome start the mash environment. | 44 # Specify --mash to chrome to have chrome start the mash environment. |
39 enable_package_mash_services = is_chromeos | 45 enable_package_mash_services = is_chromeos |
40 | 46 |
| 47 enable_plugin_installation = is_win || is_mac |
| 48 |
41 enable_service_discovery = enable_mdns || is_mac | 49 enable_service_discovery = enable_mdns || is_mac |
42 | 50 |
43 # Enables vr shell. | 51 # Enables vr shell. |
44 enable_vr_shell = false | 52 enable_vr_shell = false |
45 | 53 |
46 # Enables vr shell UI development on local or remote page. | 54 # Enables vr shell UI development on local or remote page. |
47 enable_vr_shell_ui_dev = false | 55 enable_vr_shell_ui_dev = false |
48 | 56 |
49 # Enable native notifications via XPC services (mac only). | 57 # Enable native notifications via XPC services (mac only). |
50 enable_xpc_notifications = false | 58 enable_xpc_notifications = false |
51 | 59 |
52 # Indicates if the build is using PGO. | 60 # Indicates if the build is using PGO. |
53 pgo_build = chrome_pgo_phase > 0 | 61 pgo_build = chrome_pgo_phase > 0 |
54 | 62 |
55 # Use vulcanized HTML/CSS/JS resources to speed up WebUI (chrome://) | 63 # Use vulcanized HTML/CSS/JS resources to speed up WebUI (chrome://) |
56 # pages. https://github.com/polymer/vulcanize | 64 # pages. https://github.com/polymer/vulcanize |
57 use_vulcanize = true | 65 use_vulcanize = true |
58 } | 66 } |
59 | 67 |
60 chrome_grit_defines = [ | 68 chrome_grit_defines = [ |
61 "enable_background=$enable_background", | 69 "enable_background=$enable_background", |
62 "enable_google_now=$enable_google_now", | 70 "enable_google_now=$enable_google_now", |
63 "enable_hotwording=$enable_hotwording", | 71 "enable_hotwording=$enable_hotwording", |
64 "enable_service_discovery=$enable_service_discovery", | 72 "enable_service_discovery=$enable_service_discovery", |
65 "enable_vr_shell=$enable_vr_shell", | 73 "enable_vr_shell=$enable_vr_shell", |
66 "safe_browsing_mode=$safe_browsing_mode", | 74 "safe_browsing_mode=$safe_browsing_mode", |
67 "use_vulcanize=$use_vulcanize", | 75 "use_vulcanize=$use_vulcanize", |
68 ] | 76 ] |
OLD | NEW |