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

Issue 23923007: Bug fix: Append a language to the list after blocking it for Translate on Chrome OS (Closed)

Created:
7 years, 3 months ago by hajimehoshi
Modified:
7 years, 3 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, nona+watch_chromium.org, arv+watch_chromium.org, yusukes+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Bug fix: Append a language to the list after blocking it for Translate on Chrome OS Chrome OS and the other platforms are different in terms of the preference for the language list of chrome://settings/languages, so I factored the functions to manipulate the list and have it called when blocking the language for Translate. NOTE: Removed DCHECK(...) in translate_infobar_delegate.cc to check if the language is listed in the blocked language list here because the language might already be listed. For example: 1. After the user add the language, he/she removes the language chrome://settings/languages. In this case, Translate infobar will appear. 2. While the Translate infobar is shown, the user can change if Translate should be offered in the language. In this case, the user can push Never Translate (language)" button while the language is already blocked. BUG=285651 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=223542

Patch Set 1 #

Total comments: 13

Patch Set 2 : nits #

Patch Set 3 : comment #

Total comments: 6

Patch Set 4 : nits #

Total comments: 4

Patch Set 5 : nits #

Patch Set 6 : (rebasing) #

Patch Set 7 : (rebasing) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -61 lines) Patch
M chrome/browser/resources/options/language_list.js View 1 chunk +1 line, -36 lines 0 comments Download
M chrome/browser/translate/translate_infobar_delegate.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/translate/translate_prefs.h View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/translate/translate_prefs.cc View 1 2 3 4 5 6 6 chunks +71 lines, -24 lines 0 comments Download
M chrome/browser/ui/webui/options/language_options_handler_common.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/language_options_handler_common.cc View 3 chunks +26 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
hajimehoshi
estade, can you take a look at language_list.js and language_option_handler_common.*? toyoshim, can you take a ...
7 years, 3 months ago (2013-09-09 10:38:07 UTC) #1
Takashi Toyoshima
https://chromiumcodereview.appspot.com/23923007/diff/1/chrome/browser/resources/options/language_list.js File chrome/browser/resources/options/language_list.js (left): https://chromiumcodereview.appspot.com/23923007/diff/1/chrome/browser/resources/options/language_list.js#oldcode411 chrome/browser/resources/options/language_list.js:411: if (cr.isChromeOS) Originally, preferredLanguagesPref is used by other platforms, ...
7 years, 3 months ago (2013-09-09 12:26:11 UTC) #2
hajimehoshi
Thanks! https://codereview.chromium.org/23923007/diff/1/chrome/browser/resources/options/language_list.js File chrome/browser/resources/options/language_list.js (left): https://codereview.chromium.org/23923007/diff/1/chrome/browser/resources/options/language_list.js#oldcode411 chrome/browser/resources/options/language_list.js:411: if (cr.isChromeOS) On 2013/09/09 12:26:11, Takashi Toyoshima (chromium) ...
7 years, 3 months ago (2013-09-10 03:21:44 UTC) #3
hajimehoshi
https://codereview.chromium.org/23923007/diff/1/chrome/browser/translate/translate_infobar_delegate.cc File chrome/browser/translate/translate_infobar_delegate.cc (right): https://codereview.chromium.org/23923007/diff/1/chrome/browser/translate/translate_infobar_delegate.cc#newcode215 chrome/browser/translate/translate_infobar_delegate.cc:215: // removed from the language list of chrome://settings/languages. On ...
7 years, 3 months ago (2013-09-10 05:23:04 UTC) #4
Takashi Toyoshima
LGTM with nits https://codereview.chromium.org/23923007/diff/10001/chrome/browser/translate/translate_infobar_delegate.cc File chrome/browser/translate/translate_infobar_delegate.cc (right): https://codereview.chromium.org/23923007/diff/10001/chrome/browser/translate/translate_infobar_delegate.cc#newcode215 chrome/browser/translate/translate_infobar_delegate.cc:215: // The language might already be ...
7 years, 3 months ago (2013-09-10 05:51:53 UTC) #5
hajimehoshi
Thanks! https://codereview.chromium.org/23923007/diff/10001/chrome/browser/translate/translate_infobar_delegate.cc File chrome/browser/translate/translate_infobar_delegate.cc (right): https://codereview.chromium.org/23923007/diff/10001/chrome/browser/translate/translate_infobar_delegate.cc#newcode215 chrome/browser/translate/translate_infobar_delegate.cc:215: // The language might already be in the ...
7 years, 3 months ago (2013-09-10 06:11:33 UTC) #6
Evan Stade
lgtm https://codereview.chromium.org/23923007/diff/16001/chrome/browser/translate/translate_infobar_delegate.cc File chrome/browser/translate/translate_infobar_delegate.cc (right): https://codereview.chromium.org/23923007/diff/16001/chrome/browser/translate/translate_infobar_delegate.cc#newcode215 chrome/browser/translate/translate_infobar_delegate.cc:215: // Don't use DCHECK(...) to check if the ...
7 years, 3 months ago (2013-09-12 22:53:41 UTC) #7
hajimehoshi
Thanks! https://chromiumcodereview.appspot.com/23923007/diff/16001/chrome/browser/translate/translate_infobar_delegate.cc File chrome/browser/translate/translate_infobar_delegate.cc (right): https://chromiumcodereview.appspot.com/23923007/diff/16001/chrome/browser/translate/translate_infobar_delegate.cc#newcode215 chrome/browser/translate/translate_infobar_delegate.cc:215: // Don't use DCHECK(...) to check if the ...
7 years, 3 months ago (2013-09-13 01:39:19 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hajimehoshi@chromium.org/23923007/24001
7 years, 3 months ago (2013-09-13 01:42:45 UTC) #9
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 3 months ago (2013-09-13 03:22:47 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hajimehoshi@chromium.org/23923007/24001
7 years, 3 months ago (2013-09-13 03:36:07 UTC) #11
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 3 months ago (2013-09-13 04:33:13 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hajimehoshi@chromium.org/23923007/24001
7 years, 3 months ago (2013-09-13 06:30:46 UTC) #13
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 3 months ago (2013-09-13 10:08:43 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hajimehoshi@chromium.org/23923007/50001
7 years, 3 months ago (2013-09-17 01:13:08 UTC) #15
commit-bot: I haz the power
7 years, 3 months ago (2013-09-17 05:15:30 UTC) #16
Message was sent while issue was closed.
Change committed as 223542

Powered by Google App Engine
This is Rietveld 408576698