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

Issue 2090283002: add experimental param to control the triggering threshold to default Always Translate checked (Closed)

Created:
4 years, 6 months ago by ftang
Modified:
4 years, 5 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org, juliecattiau_google.com, zkoch1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

add experimental param to control the triggering threshold to default Always Translate checked BUG=622854 Committed: https://crrev.com/2364a394e98147f92f80ddeb5a1c56abbb547951 Cr-Commit-Position: refs/heads/master@{#403232}

Patch Set 1 #

Patch Set 2 : add entry to histograms.xml to fix AboutFlagsHistogramTest.CheckHistograms #

Patch Set 3 : use variations::GetVariationParams instead #

Patch Set 4 : fix unit test breakage #

Total comments: 10

Patch Set 5 : move the code to translate_ui_delegate per review comment #

Patch Set 6 : use auto #

Total comments: 14

Patch Set 7 : update #

Total comments: 3

Patch Set 8 : address review issues #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -6 lines) Patch
M components/translate/DEPS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/translate/core/browser/BUILD.gn View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M components/translate/core/browser/translate_prefs.h View 1 2 3 4 5 6 2 chunks +8 lines, -0 lines 0 comments Download
M components/translate/core/browser/translate_prefs.cc View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M components/translate/core/browser/translate_ui_delegate.cc View 1 2 3 4 5 6 7 3 chunks +20 lines, -5 lines 0 comments Download
M components/translate/core/browser/translate_ui_delegate_unittest.cc View 1 2 3 4 5 6 7 2 chunks +23 lines, -1 line 0 comments Download

Messages

Total messages: 69 (28 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2090283002/1
4 years, 6 months ago (2016-06-23 01:35:27 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/190240)
4 years, 6 months ago (2016-06-23 02:14:46 UTC) #4
ftang
add entry to histograms.xml to fix AboutFlagsHistogramTest.CheckHistograms
4 years, 6 months ago (2016-06-23 17:20:48 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2090283002/20001
4 years, 6 months ago (2016-06-23 18:01:58 UTC) #7
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-23 19:03:13 UTC) #9
ftang
4 years, 6 months ago (2016-06-23 21:06:16 UTC) #12
groby-ooo-7-16
The right way to handle this seems to me a set of experiments that controls ...
4 years, 6 months ago (2016-06-23 22:28:05 UTC) #13
ftang
Use variations::GetVariationParams instead
4 years, 5 months ago (2016-06-27 19:53:21 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2090283002/40001
4 years, 5 months ago (2016-06-27 19:56:01 UTC) #17
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios-simulator-gn on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator-gn/builds/27564) mac_chromium_compile_dbg_ng on ...
4 years, 5 months ago (2016-06-27 19:59:53 UTC) #19
ftang
fix unit test breakage
4 years, 5 months ago (2016-06-27 20:31:40 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2090283002/60001
4 years, 5 months ago (2016-06-27 20:34:07 UTC) #22
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-06-27 21:59:22 UTC) #24
ftang
PTAL
4 years, 5 months ago (2016-06-27 22:01:11 UTC) #25
groby-ooo-7-16
https://codereview.chromium.org/2090283002/diff/60001/components/translate/core/browser/translate_prefs.cc File components/translate/core/browser/translate_prefs.cc (right): https://codereview.chromium.org/2090283002/diff/60001/components/translate/core/browser/translate_prefs.cc#newcode456 components/translate/core/browser/translate_prefs.cc:456: bool TranslatePrefs::ShouldAlwaysTranslateBeCheckedByDefault( This is moving even more policy decisions ...
4 years, 5 months ago (2016-06-27 23:00:35 UTC) #26
ftang
move the code to translate_ui_delegate per review comment
4 years, 5 months ago (2016-06-28 01:42:46 UTC) #27
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2090283002/80001
4 years, 5 months ago (2016-06-28 01:43:53 UTC) #29
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-06-28 02:46:03 UTC) #31
ftang
Use auto
4 years, 5 months ago (2016-06-28 04:59:45 UTC) #32
ftang
PTAL https://codereview.chromium.org/2090283002/diff/60001/components/translate/core/browser/translate_prefs.cc File components/translate/core/browser/translate_prefs.cc (right): https://codereview.chromium.org/2090283002/diff/60001/components/translate/core/browser/translate_prefs.cc#newcode456 components/translate/core/browser/translate_prefs.cc:456: bool TranslatePrefs::ShouldAlwaysTranslateBeCheckedByDefault( On 2016/06/27 23:00:34, groby wrote: > ...
4 years, 5 months ago (2016-06-28 05:01:46 UTC) #33
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2090283002/100001
4 years, 5 months ago (2016-06-28 05:02:07 UTC) #35
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-06-28 05:56:21 UTC) #37
groby-ooo-7-16
Almost there - this is mostly nits. Thank you for your patience! https://codereview.chromium.org/2090283002/diff/100001/components/translate/core/browser/translate_prefs.cc File components/translate/core/browser/translate_prefs.cc ...
4 years, 5 months ago (2016-06-28 17:35:20 UTC) #38
ftang
update
4 years, 5 months ago (2016-06-28 21:29:43 UTC) #39
ftang
PTAL https://codereview.chromium.org/2090283002/diff/100001/components/translate/core/browser/translate_prefs.cc File components/translate/core/browser/translate_prefs.cc (right): https://codereview.chromium.org/2090283002/diff/100001/components/translate/core/browser/translate_prefs.cc#newcode40 components/translate/core/browser/translate_prefs.cc:40: "always-translate-offer-threshold"; On 2016/06/28 17:35:20, groby wrote: > Our ...
4 years, 5 months ago (2016-06-28 21:51:13 UTC) #40
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2090283002/120001
4 years, 5 months ago (2016-06-28 21:52:16 UTC) #42
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-06-29 00:01:09 UTC) #44
groby-ooo-7-16
lgtm
4 years, 5 months ago (2016-06-29 19:14:57 UTC) #46
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/2090283002/120001
4 years, 5 months ago (2016-06-29 19:15:44 UTC) #47
ftang
rkaplow - need your LGTM since I added +components/variations to components/translate/DEPS
4 years, 5 months ago (2016-06-29 19:22:55 UTC) #49
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/209693)
4 years, 5 months ago (2016-06-29 19:26:49 UTC) #51
ftang
4 years, 5 months ago (2016-06-30 00:28:53 UTC) #53
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/2090283002/diff/120001/components/translate/core/browser/translate_ui_delegate.cc File components/translate/core/browser/translate_ui_delegate.cc (right): https://codereview.chromium.org/2090283002/diff/120001/components/translate/core/browser/translate_ui_delegate.cc#newcode311 components/translate/core/browser/translate_ui_delegate.cc:311: int threshold = 0; Nit: move this above ...
4 years, 5 months ago (2016-06-30 13:51:27 UTC) #55
ftang
address review issues
4 years, 5 months ago (2016-06-30 17:30:34 UTC) #56
ftang
https://codereview.chromium.org/2090283002/diff/120001/components/translate/core/browser/translate_ui_delegate.cc File components/translate/core/browser/translate_ui_delegate.cc (right): https://codereview.chromium.org/2090283002/diff/120001/components/translate/core/browser/translate_ui_delegate.cc#newcode311 components/translate/core/browser/translate_ui_delegate.cc:311: int threshold = 0; On 2016/06/30 13:51:27, Alexei Svitkine ...
4 years, 5 months ago (2016-06-30 17:31:02 UTC) #57
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2090283002/140001
4 years, 5 months ago (2016-06-30 17:32:26 UTC) #59
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-06-30 18:36:10 UTC) #61
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/2090283002/140001
4 years, 5 months ago (2016-06-30 18:37:30 UTC) #64
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 5 months ago (2016-06-30 18:42:11 UTC) #66
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-06-30 18:42:32 UTC) #67
commit-bot: I haz the power
4 years, 5 months ago (2016-06-30 18:43:29 UTC) #69
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/2364a394e98147f92f80ddeb5a1c56abbb547951
Cr-Commit-Position: refs/heads/master@{#403232}

Powered by Google App Engine
This is Rietveld 408576698