This folder is responsible for managing WebView's application resources. Please also consult general UI/localization information for the chromium repository.
<if> clause is generally necessary: it's already implied these are for WebView builds only.
The process is again similar to the general instructions. Use
//android_webview/java/strings/android_webview_strings.grd. A string
IDS_MY_STRING can be accessed in Java with
Resources are added under
//android_webview/java/res/. Similarly, a resource
drawable-xxxhdpi/ic_play_circle_outline_black_48dp.png can be accessed in Java with
WebView can use strings and resources defined in GRD files in other layers (for now, only
//components/). Unlike other Chrome, we trim out all such resources by default. To use these resources, you must add the resource to the appropriate allowlist file:
IDS_* strings or
DCHECK(in release builds, this usually inflates to empty content).