commit | 1af9e1935b86d8fba0c751d1ba89810d76d05acc | [log] [tgz] |
---|---|---|
author | Moe Ahmadi <mahmadi@chromium.org> | Mon Jan 21 21:08:09 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Mon Jan 21 21:08:09 2019 |
tree | 10d087e78a2fe7d13d884b8e1c64e49d27cfec25 | |
parent | 47cfc8ebe2eb4e984392345d23a82dac81e81452 [diff] |
[iOS][Translate] Do nothing on revertTranslation if script isn't injected Changes the DCHECK in [JsTranslateManager revertTranslation] to an early return if the script hasn't been injected. Since there is no API in iOS to check whether the page has been translated, there is no way to stop the user from attempting to revert the translation by tapping the source language button in the new translate infobar. Bug: 910994 Change-Id: Ie6accd783db2039acdfd95acb968bf8fb52da98b Reviewed-on: https://chromium-review.googlesource.com/c/1425958 Commit-Queue: Moe Ahmadi <mahmadi@chromium.org> Commit-Queue: anthonyvd <anthonyvd@chromium.org> Auto-Submit: Moe Ahmadi <mahmadi@chromium.org> Reviewed-by: anthonyvd <anthonyvd@chromium.org> Cr-Commit-Position: refs/heads/master@{#624674}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .