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

Issue 2871783003: Automatically trigger Always-Translate in new translation infobar (Closed)

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

Description

Automatically trigger Always-Translate In the new translation infobar, when the number consecutive translations reaches a threshold, it will trigger Always-Translate automatically. This CL is trying to implement this feature without altering the behavior of the existing infobars. BUG=703887 Review-Url: https://codereview.chromium.org/2871783003 Cr-Commit-Position: refs/heads/master@{#471196} Committed: https://chromium.googlesource.com/chromium/src/+/8628a9e95249d1900319f645beb2bbe3b055ff75

Patch Set 1 #

Total comments: 1

Patch Set 2 : move logic to infobarDelegate #

Patch Set 3 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -7 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/infobar/TranslateCompactInfoBar.java View 1 5 chunks +21 lines, -3 lines 0 comments Download
M chrome/browser/ui/android/infobars/translate_compact_infobar.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/android/infobars/translate_compact_infobar.cc View 1 2 chunks +17 lines, -3 lines 0 comments Download
M components/translate/core/browser/translate_infobar_delegate.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M components/translate/core/browser/translate_infobar_delegate.cc View 1 3 chunks +12 lines, -1 line 0 comments Download

Messages

Total messages: 23 (9 generated)
Marti Wong
PTAL. thanks!
3 years, 7 months ago (2017-05-09 04:17:48 UTC) #2
Marti Wong
PTAL. thanks~! https://codereview.chromium.org/2871783003/diff/1/components/translate/core/browser/translate_infobar_delegate.cc File components/translate/core/browser/translate_infobar_delegate.cc (right): https://codereview.chromium.org/2871783003/diff/1/components/translate/core/browser/translate_infobar_delegate.cc#newcode385 components/translate/core/browser/translate_infobar_delegate.cc:385: if (IsCompactUIEnabled()) In Compact UI, the declined ...
3 years, 7 months ago (2017-05-09 06:53:08 UTC) #4
Marti Wong
Hi Matthew, PTAL. thank you again~!
3 years, 7 months ago (2017-05-10 08:26:49 UTC) #5
Marti Wong
Hi Matthew, PTAL. thank you again~!
3 years, 7 months ago (2017-05-10 08:27:13 UTC) #7
groby-ooo-7-16
On 2017/05/10 08:27:13, Marti Wong wrote: > Hi Matthew, > PTAL. > thank you again~! ...
3 years, 7 months ago (2017-05-10 14:24:11 UTC) #8
mdjones
lgtm
3 years, 7 months ago (2017-05-10 17:19:25 UTC) #9
Marti Wong
On 2017/05/10 14:24:11, groby wrote: > On 2017/05/10 08:27:13, Marti Wong wrote: > > Hi ...
3 years, 7 months ago (2017-05-11 00:35:41 UTC) #10
Marti Wong
Hi Rachel, I moved the logic to TranslateInfoBarDelegate. At least it centralizes the logic for ...
3 years, 7 months ago (2017-05-11 04:48:51 UTC) #13
groby1
On 2017/05/11 04:48:51, Marti Wong wrote: > Hi Rachel, > > I moved the logic ...
3 years, 7 months ago (2017-05-11 14:39:48 UTC) #14
Marti Wong
On 2017/05/11 14:39:48, groby1 wrote: > On 2017/05/11 04:48:51, Marti Wong wrote: > > Hi ...
3 years, 7 months ago (2017-05-12 00:57:02 UTC) #15
groby-ooo-7-16
On 2017/05/12 00:57:02, Marti Wong wrote: > On 2017/05/11 14:39:48, groby1 wrote: > > On ...
3 years, 7 months ago (2017-05-12 01:01:58 UTC) #16
Marti Wong
On 2017/05/12 01:01:58, groby wrote: > On 2017/05/12 00:57:02, Marti Wong wrote: > > On ...
3 years, 7 months ago (2017-05-12 01:14:56 UTC) #17
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/2871783003/40001
3 years, 7 months ago (2017-05-12 01:18:29 UTC) #20
commit-bot: I haz the power
3 years, 7 months ago (2017-05-12 02:51:28 UTC) #23
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/8628a9e95249d1900319f645beb2...

Powered by Google App Engine
This is Rietveld 408576698