[omnibox] Fix translate pedal to use simplest most direct techinque
This CL fixes the translate Pedal behavior by relying on the translate manager to determine appropriate page translation, languages, etc., instead of driving the UI directly with info from client and language state. The new behavior is described in the translate manager comment: Initiate a manually triggered translation process for the current page. Collect source and target languages, and show translation UI. If |auto_translate| is true the page gets translated to the target language Bug: 1117542 Change-Id: I270d29f966646bbf4508c4e041383bcb47e5ed26 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2363907 Commit-Queue: Orin Jaworski <orinj@chromium.org> Commit-Queue: Tommy Li <tommycli@chromium.org> Commit-Queue: Moe Ahmadi <mahmadi@chromium.org> Auto-Submit: Orin Jaworski <orinj@chromium.org> Reviewed-by:Tommy Li <tommycli@chromium.org> Reviewed-by:
Moe Ahmadi <mahmadi@chromium.org> Cr-Commit-Position: refs/heads/master@{#799380}
Showing
Please register or sign in to comment