Prototype language detection JS API.
This is an early version but I want to land this so that it's available behind a flag.
Known problems:
- still based on the old API
- the model only becomes available when Chrome's translate UI's code
has initialized it - the test only passes with
--additional-driver-flag=--no-sandbox --additional-driver-flag=--enable-features=LanguageDetectionModelForTesting
Change-Id: I41b522cf6a5246d0e5e3cda47c4bf5dcf4e2c3ae
Bug: 349927087
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5676788
Reviewed-by: Kent Tamura tkent@chromium.org
Commit-Queue: Fergal Daly fergal@chromium.org
Reviewed-by: Mingyu Lei leimy@chromium.org
Auto-Submit: Fergal Daly fergal@chromium.org
Cr-Commit-Position: refs/heads/main@{#1336615}