Currently, the BUILDFLAG check for OnDeviceTranslation functionality is
implemented using win|macOS|Linux and !Android.
However, OnDeviceTranslation only works on Windows, macOS, and Linux, so
the !Android check is incorrect.
To clean up this BUILDFLAG check, this CL introduces a new build flag
called ENABLE_ON_DEVICE_TRANSLATION. This flag is equivalent to
win|macOS|Linux.
This CL includes the following behavioral changes:
On OSes other than Win/Mac/Linux, even if EnableTranslationAPI feature
is enabled, the TranslationManager interface will no longer be bound in
the browser process, and OnDeviceTranslationService will no longer be
bound on the service process.
Change-Id: Ibd913e2f931ba7f4890d2b4c625883cb02e6d470
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5925293
Reviewed-by: Lei Zhang <thestig@chromium.org>
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Reviewed-by: Giovanni Ortuno Urquidi <ortuno@chromium.org>
Reviewed-by: Ming-Ying Chung <mych@chromium.org>
Commit-Queue: Tsuyoshi Horo <horo@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1369343}