
Bug: 1463980 Change-Id: I821cceb3e456040636b2c518b4d11202cc3cedef Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5107818 Reviewed-by: Mitsuru Oshima <oshima@chromium.org> Reviewed-by: Chris Bookholt <bookholt@chromium.org> Reviewed-by: Kenneth MacKay <kmackay@chromium.org> Commit-Queue: Punith Nayak <npunith125@gmail.com> Reviewed-by: Kyle Charbonneau <kylechar@chromium.org> Reviewed-by: David Dorwin <ddorwin@chromium.org> Reviewed-by: Bo Liu <boliu@chromium.org> Reviewed-by: Ahmed Fakhry <afakhry@chromium.org> Reviewed-by: Peng Huang <penghuang@chromium.org> Cr-Commit-Position: refs/heads/main@{#1237368}
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
incast_features.cc
BASE_FEATURE(kMyFeature, "my_feature", base::FEATURE_DISABLED_BY_DEFAULT);
const base::Feature* kFeatures[] = {
// ..other features
&kMyFeature
}