0

Update Accessing Feature Switches in Java documentation

This change explicitly mentions cases where updating WebView
BUILD files is necessary, when migrating Feature Flags away from
ChromeFeatureList.

The documentation hinted that the step is mandatory, though in many
cases the step would introduce a synthetic, undesired dependency.

Change-Id: I329dabdef0f13775ac1e338657333150345fd3da
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5499095
Reviewed-by: Nate Fischer <ntfschr@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1294042}
This commit is contained in:
Tomasz Wiszkowski
2024-04-29 23:09:05 +00:00
parent cd5864c4a1
commit 2df949752d

@ -98,8 +98,12 @@ This outputs Java String constants which represent the name of the
}
```
3. Add a `deps` entry to `"common_java"` in `"//android_webview/BUILD.gn"` if
creating a new `android_library` in the previous step:
3. If you need to expose your flag in WebView, and you created a new
`android_library` in the previous step, then add a `deps` entry to
`common_java` in `//android_webview/BUILD.gn`.
If you don't need to expose a flag in WebView, then skip this and go to the
next step.
```gn
android_library("common_java") {