Consolidate URL scheme translate logic into TranslateService::IsTranslatableURL
TranslateUtils.canTranslateCurrentTab performs URL checks that overlap with TranslateService::IsTranslatableURL. Consolidate the logic in these two places. Some of these checks are Android-specific. However, it is still preferable to move them to a single, shared location. This is also important for supporting logging of manual translate availability from menus, which is added in this change https://chromium-review.googlesource.com/c/chromium/src/+/2468796 Bug: 1127094 Change-Id: Ifd626f2f9c7d6c7c929e36d07c420f87314d8bd1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2444549 Commit-Queue: Anthony Cui <cuianthony@chromium.org> Reviewed-by:Peter Conn <peconn@chromium.org> Reviewed-by:
Scott Little <sclittle@chromium.org> Reviewed-by:
Megan Jablonski <megjablon@chromium.org> Cr-Commit-Position: refs/heads/master@{#819015}
Showing
Please register or sign in to comment