Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(279)

Issue 2845013002: Fix UI when "always translate" is enabled. (Closed)

Created:
3 years, 7 months ago by Leo
Modified:
3 years, 7 months ago
Reviewers:
gone
CC:
chromium-reviews, agrieve+watch_chromium.org, dfalcantara+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix UI when "always translate" is enabled. This fix will set translate infobar with a translating status in the beginning, then highlighted the targeted language tab after translated. Tested on my device BUG=703887 Review-Url: https://codereview.chromium.org/2845013002 Cr-Commit-Position: refs/heads/master@{#468297} Committed: https://chromium.googlesource.com/chromium/src/+/67ed5fd8781049a3566ce37426bceae03bca942d

Patch Set 1 #

Patch Set 2 : show spinner when auto translating #

Total comments: 2

Patch Set 3 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -11 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/infobar/TranslateCompactInfoBar.java View 1 2 3 chunks +20 lines, -8 lines 0 comments Download
M chrome/browser/ui/android/infobars/translate_compact_infobar.cc View 1 chunk +4 lines, -3 lines 0 comments Download

Messages

Total messages: 18 (10 generated)
Leo
Hey Dan, This CL will pass the translate step to compact translate infobar to decide ...
3 years, 7 months ago (2017-05-01 04:14:43 UTC) #3
gone
lgtm https://codereview.chromium.org/2845013002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/infobar/TranslateCompactInfoBar.java File chrome/android/java/src/org/chromium/chrome/browser/infobar/TranslateCompactInfoBar.java (right): https://codereview.chromium.org/2845013002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/infobar/TranslateCompactInfoBar.java#newcode69 chrome/android/java/src/org/chromium/chrome/browser/infobar/TranslateCompactInfoBar.java:69: // Set translating status in the beginning End ...
3 years, 7 months ago (2017-05-01 05:34:20 UTC) #8
gone
You guys should really consider starting to add tests, here.
3 years, 7 months ago (2017-05-01 05:34:58 UTC) #9
Leo
On 2017/05/01 05:34:58, slow (dfalcantara) wrote: > You guys should really consider starting to add ...
3 years, 7 months ago (2017-05-01 05:50:13 UTC) #10
Leo
Thanks https://codereview.chromium.org/2845013002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/infobar/TranslateCompactInfoBar.java File chrome/android/java/src/org/chromium/chrome/browser/infobar/TranslateCompactInfoBar.java (right): https://codereview.chromium.org/2845013002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/infobar/TranslateCompactInfoBar.java#newcode69 chrome/android/java/src/org/chromium/chrome/browser/infobar/TranslateCompactInfoBar.java:69: // Set translating status in the beginning On ...
3 years, 7 months ago (2017-05-01 05:51:15 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2845013002/40001
3 years, 7 months ago (2017-05-01 05:53:15 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/67ed5fd8781049a3566ce37426bceae03bca942d
3 years, 7 months ago (2017-05-01 06:46:20 UTC) #17
gone
3 years, 7 months ago (2017-05-01 15:23:46 UTC) #18
Message was sent while issue was closed.
I'd just make a new suite.  You need to start at least testing logic so that
this situation doesn't happen again.  If parts of the UI are stable enough, you
should also start adding tests for those.

Powered by Google App Engine
This is Rietveld 408576698