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

Issue 2919313003: Reset counters for all language when reset translate settings (Closed)

Created:
3 years, 6 months ago by Marti Wong
Modified:
3 years, 5 months ago
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Reset counters for all language when reset translate settings. When I reset translate settings, (menu -> Settings -> Site settings -> Translate -> Reset) The accepted/denied/ignored counters of all languages should be reset to 0. However, currently, only the counters of the languages in accept_languages_pref_ will be reset. Accepted languages means "languages the user understands or does not want translated". But Denied, Ignored, Accepted counters are for those languages user might not understand. That's why some counters are not reset in that For-loop. BUG=728930 Review-Url: https://codereview.chromium.org/2919313003 Cr-Commit-Position: refs/heads/master@{#482168} Committed: https://chromium.googlesource.com/chromium/src/+/c09df0ce5984176ea0590a779ab15c6ce54e4731

Patch Set 1 #

Total comments: 4

Patch Set 2 : sync and merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -9 lines) Patch
M components/translate/core/browser/translate_prefs.cc View 1 1 chunk +3 lines, -9 lines 0 comments Download

Messages

Total messages: 41 (25 generated)
Marti Wong
Hi Rachel, PTAL. thanks!
3 years, 6 months ago (2017-06-05 03:26:51 UTC) #3
Leo
A little concern about the removing, because it breaks the original logic. https://codereview.chromium.org/2919313003/diff/1/components/translate/core/browser/translate_prefs.cc File components/translate/core/browser/translate_prefs.cc ...
3 years, 6 months ago (2017-06-07 00:21:23 UTC) #6
Leo
+ napper
3 years, 6 months ago (2017-06-07 00:24:02 UTC) #8
Marti Wong
https://codereview.chromium.org/2919313003/diff/1/components/translate/core/browser/translate_prefs.cc File components/translate/core/browser/translate_prefs.cc (right): https://codereview.chromium.org/2919313003/diff/1/components/translate/core/browser/translate_prefs.cc#newcode183 components/translate/core/browser/translate_prefs.cc:183: prefs_->ClearPref(kPrefTranslateDeniedCount); On 2017/06/07 00:21:23, Leo wrote: > I think ...
3 years, 6 months ago (2017-06-07 01:06:42 UTC) #9
groby-ooo-7-16
https://codereview.chromium.org/2919313003/diff/1/components/translate/core/browser/translate_prefs.cc File components/translate/core/browser/translate_prefs.cc (right): https://codereview.chromium.org/2919313003/diff/1/components/translate/core/browser/translate_prefs.cc#newcode183 components/translate/core/browser/translate_prefs.cc:183: prefs_->ClearPref(kPrefTranslateDeniedCount); On 2017/06/07 01:06:42, Marti Wong wrote: > On ...
3 years, 6 months ago (2017-06-07 16:43:49 UTC) #10
Marti Wong
On 2017/06/07 16:43:49, groby wrote: > https://codereview.chromium.org/2919313003/diff/1/components/translate/core/browser/translate_prefs.cc > File components/translate/core/browser/translate_prefs.cc (right): > > https://codereview.chromium.org/2919313003/diff/1/components/translate/core/browser/translate_prefs.cc#newcode183 > ...
3 years, 6 months ago (2017-06-08 01:48:19 UTC) #11
Marti Wong
Hi Miguel, This is Marti from the Chrome Sydney team. I am working on crrev.com/2919313003/ ...
3 years, 6 months ago (2017-06-08 03:30:50 UTC) #14
groby-ooo-7-16
On 2017/06/08 03:30:50, Marti Wong wrote: > Hi Miguel, > > This is Marti from ...
3 years, 6 months ago (2017-06-13 00:30:12 UTC) #15
Marti Wong
On 2017/06/13 00:30:12, groby wrote: > On 2017/06/08 03:30:50, Marti Wong wrote: > > Hi ...
3 years, 6 months ago (2017-06-13 09:15:37 UTC) #16
groby-ooo-7-16
On 2017/06/13 09:15:37, Marti Wong wrote: > On 2017/06/13 00:30:12, groby wrote: > > On ...
3 years, 6 months ago (2017-06-20 21:15:15 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/2919313003/1
3 years, 6 months ago (2017-06-23 04:14:44 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/238095) ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 6 months ago (2017-06-23 04:16:43 UTC) #21
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/2919313003/20001
3 years, 6 months ago (2017-06-23 07:07:08 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/295211)
3 years, 6 months ago (2017-06-23 07:22:08 UTC) #26
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/2919313003/40001
3 years, 5 months ago (2017-06-25 06:27:41 UTC) #38
commit-bot: I haz the power
3 years, 5 months ago (2017-06-25 06:30:45 UTC) #41
Message was sent while issue was closed.
Committed patchset #2 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/c09df0ce5984176ea0590a779ab1...

Powered by Google App Engine
This is Rietveld 408576698