![]() Switches are declared separately in native and in Java, though both base::CommandLine in native are CommandLine in Java return the same state. ![]() Check FeatureList.isInitialized() before calling ChromeFeatureList.isEnabled(), and handle the case where native is not initialized.Ī switch is just a string, unlike feature flags, which are a base::Feature objects.To register your flag, create a CachedFlag object in ChromeFeatureList and add it to ChromeCachedFlags.cacheNativeFlags() This caching is only done for a subset of the flags. Use a cached value of the flag from the previous run by calling (). ![]() If native might not be initialized when the check is run, there are two ways of proceeding: Note that this call requires native to be initialized. Then, from the Java code, check the value of the flag by calling ChromeFeatureList.isEnabled(ChromeFeatureList.MY_FEATURE).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |