tree: 97d071bfa3d1276215fa709d0bd6e1dd07115b3c [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. system/
  27. tools/
  28. tracing/
  29. ui/
  30. __init__.py
  31. BUILD.gn
  32. chromecast.gni
  33. DEPS
  34. DIR_METADATA
  35. OWNERS
  36. 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
}