| 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 # This is the GN version of //chrome/chrome_features.gypi. | 5 # This is the GN version of //chrome/chrome_features.gypi. |
| 6 # Please keep in sync! | 6 # Please keep in sync! |
| 7 | 7 |
| 8 import("//build/config/chrome_build.gni") | |
| 9 import("//build/config/chromecast_build.gni") | 8 import("//build/config/chromecast_build.gni") |
| 10 | 9 |
| 11 # Please keep features in alphabetical order. | |
| 12 declare_args() { | 10 declare_args() { |
| 11 # Google Now is disabled to prepare for its removal. |
| 12 # http://crbug.com/539674 |
| 13 enable_google_now = false |
| 14 |
| 13 # Whether the Java UI is being used (Java infobars and popups, Java native | 15 # Whether the Java UI is being used (Java infobars and popups, Java native |
| 14 # settings and first run experience, sign-in etc.). | 16 # settings and first run experience, sign-in etc.). |
| 15 # Default to true if compiling for android, but allow this being overriden | 17 # Default to true if compiling for android, but allow this being overriden |
| 16 # through the environment. | 18 # through the environment. |
| 17 android_java_ui = is_android | 19 android_java_ui = is_android |
| 18 | 20 |
| 21 # Use vulcanized HTML/CSS/JS resources to speed up WebUI (chrome://) |
| 22 # pages. https://github.com/polymer/vulcanize |
| 23 use_vulcanize = true |
| 24 |
| 19 # Enables support for background apps. | 25 # Enables support for background apps. |
| 20 enable_background = !is_ios && !is_android && !is_chromecast | 26 enable_background = !is_ios && !is_android && !is_chromecast |
| 21 | 27 |
| 22 enable_one_click_signin = | 28 enable_one_click_signin = |
| 23 is_win || is_mac || (is_linux && !is_chromeos && !is_chromecast) | 29 is_win || is_mac || (is_linux && !is_chromeos && !is_chromecast) |
| 24 | 30 |
| 25 # Google Now is disabled to prepare for its removal. | |
| 26 # http://crbug.com/539674 | |
| 27 enable_google_now = false | |
| 28 | |
| 29 # '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 | |
| 31 # ChromeOS builds have this enabled by default. | |
| 32 enable_hotwording = is_chrome_branded && is_chromeos | |
| 33 | |
| 34 # Set to true to bundle all the mash related mojo services into chrome. | 31 # Set to true to bundle all the mash related mojo services into chrome. |
| 35 # Specify --mash to chrome to have chrome start the mash environment. | 32 # Specify --mash to chrome to have chrome start the mash environment. |
| 36 enable_package_mash_services = is_chromeos | 33 enable_package_mash_services = is_chromeos |
| 37 | 34 |
| 38 # Enables vr shell. | 35 # Enables vr shell. |
| 39 enable_vr_shell = false | 36 enable_vr_shell = false |
| 40 | |
| 41 # Use vulcanized HTML/CSS/JS resources to speed up WebUI (chrome://) | |
| 42 # pages. https://github.com/polymer/vulcanize | |
| 43 use_vulcanize = true | |
| 44 } | 37 } |
| 45 | 38 |
| 46 chrome_grit_defines = [ | 39 chrome_grit_defines = [ |
| 47 "enable_background=$enable_background", | 40 "enable_background=$enable_background", |
| 48 "enable_google_now=$enable_google_now", | 41 "enable_google_now=$enable_google_now", |
| 49 "use_vulcanize=$use_vulcanize", | 42 "use_vulcanize=$use_vulcanize", |
| 50 ] | 43 ] |
| OLD | NEW |