[Extensions Bindings] Consolidate i18n hooks methods

Move the i18n_hooks_util code directly into i18n_hooks_delegate. When we
had JS and native bindings, we needed to share this code; now that we
only have native bindings, the I18nHooksDelegate is the only consumer.

Bug: 938998

Change-Id: Ib659a02605fc65a61d8292fdf9d25f228820dd6d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1533093
Reviewed-by: Karan Bhatia <karandeepb@chromium.org>
Commit-Queue: Devlin <rdevlin.cronin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#643550}
4 files changed