tree: b4c7b944c7abf2cd3ed7ca3c37770dd734b1966e [path history] [tgz]
  1. activity/
  2. android/
  3. app/
  4. base/
  5. bindings/
  6. browser/
  7. build/
  8. cast_core/
  9. common/
  10. crash/
  11. crypto/
  12. device/
  13. external_mojo/
  14. fuchsia/
  15. gpu/
  16. graphics/
  17. media/
  18. metrics/
  19. mojo/
  20. net/
  21. public/
  22. renderer/
  23. resource_sizes/
  24. service/
  25. shared/
  26. starboard/
  27. system/
  28. tools/
  29. tracing/
  30. ui/
  31. __init__.py
  32. BUILD.gn
  33. chromecast.gni
  34. DEPS
  35. DIR_METADATA
  36. OWNERS
  37. README.md
chromecast/README.md

Cast base

cast_features

This file contains tools for checking the feature state of all of the features which affect Cast products. Cast features build upon the Chrome feature system. Some aspects of Cast require the feature system to work differently, however, so some additional logic has been layered on top. Details are available in comments of the header file. The basics are:

  • If you are adding a new feature, add it to cast_features.cc so it lives alongside existing features
  • Add your new feature to the list of kFeatures in cast_features.cc
BASE_FEATURE(kMyFeature, "my_feature", base::FEATURE_DISABLED_BY_DEFAULT);


const base::Feature* kFeatures[] = {
  // ..other features
  &kMyFeature
}