| // This file is autogenerated by | |
| // base/android/java_flag_generator/java_flag_generator.py | |
| // From | |
| // //chrome/flags/test_feature_list.cc | |
| // DO NOT EDIT. | |
| package org.chromium.foo; | |
| import org.chromium.base.BaseFeatureMap; | |
| import org.chromium.build.annotations.NullMarked; | |
| /** Typed accessors for the features in kFeaturesExposedToJava. */ | |
| @NullMarked | |
| public final class SampleFeatures { | |
| // Package-private (not private) to avoid D8 nest-access synthetic accessor. | |
| static boolean isFeatureEnabled(String featureName) { | |
| return BaseFeatureMap.getInstance().isEnabledInNative(featureName); | |
| } | |
| /** {@code foo::kFooFeature} */ | |
| public static final class FooFeature { | |
| public static final String NAME = "FooFeature"; | |
| public static boolean isEnabled() { | |
| return isFeatureEnabled(NAME); | |
| } | |
| } | |
| } |