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

Issue 1903593002: Allows to manually change the stored permanent country in Variations from the translate-internals d… (Closed)

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

Description

Allows to manually change the stored permanent country in Variations from the translate-internals dashboard. R=asvitkine@chromium.org,toyoshim@chromium.org BUG=599325 Committed: https://crrev.com/2d297251935984323c30d2faf501aa13fd5d479a Cr-Commit-Position: refs/heads/master@{#389501}

Patch Set 1 #

Patch Set 2 : Finished unittest #

Patch Set 3 : nits #

Patch Set 4 : UI polishing #

Total comments: 27

Patch Set 5 : #

Total comments: 14

Patch Set 6 : #

Patch Set 7 : #

Total comments: 6

Patch Set 8 : #

Patch Set 9 : #

Total comments: 11

Patch Set 10 : #

Total comments: 4

Patch Set 11 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+199 lines, -4 lines) Patch
M chrome/browser/resources/translate_internals/prefs.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/resources/translate_internals/translate_internals.js View 1 2 3 4 5 6 7 8 9 10 2 chunks +53 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/translate_internals/translate_internals_handler.h View 1 2 3 4 5 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/translate_internals/translate_internals_handler.cc View 1 2 3 4 5 6 7 5 chunks +34 lines, -0 lines 0 comments Download
M components/variations/service/variations_service.h View 1 2 3 4 5 6 7 8 9 3 chunks +11 lines, -0 lines 0 comments Download
M components/variations/service/variations_service.cc View 1 2 3 4 5 6 7 8 9 3 chunks +29 lines, -3 lines 0 comments Download
M components/variations/service/variations_service_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +60 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (8 generated)
hamelphi
4 years, 8 months ago (2016-04-20 19:56:44 UTC) #1
Alexei Svitkine (slow)
Generally looks good. Can you post a screenshot of how the UI looks like as ...
4 years, 8 months ago (2016-04-20 20:30:24 UTC) #2
Alexei Svitkine (slow)
https://codereview.chromium.org/1903593002/diff/60001/chrome/browser/ui/webui/translate_internals/translate_internals_handler.cc File chrome/browser/ui/webui/translate_internals/translate_internals_handler.cc (right): https://codereview.chromium.org/1903593002/diff/60001/chrome/browser/ui/webui/translate_internals/translate_internals_handler.cc#newcode255 chrome/browser/ui/webui/translate_internals/translate_internals_handler.cc:255: std::string country = translate_prefs->GetCountry(); I actually don't quite follow ...
4 years, 8 months ago (2016-04-20 20:43:54 UTC) #3
hamelphi
https://codereview.chromium.org/1903593002/diff/60001/chrome/browser/resources/translate_internals/translate_internals.js File chrome/browser/resources/translate_internals/translate_internals.js (right): https://codereview.chromium.org/1903593002/diff/60001/chrome/browser/resources/translate_internals/translate_internals.js#newcode255 chrome/browser/resources/translate_internals/translate_internals.js:255: On 2016/04/20 20:30:23, Alexei Svitkine wrote: > Nit: Remove ...
4 years, 8 months ago (2016-04-20 21:39:47 UTC) #4
Alexei Svitkine (slow)
https://codereview.chromium.org/1903593002/diff/60001/components/variations/service/variations_service.cc File components/variations/service/variations_service.cc (right): https://codereview.chromium.org/1903593002/diff/60001/components/variations/service/variations_service.cc#newcode885 components/variations/service/variations_service.cc:885: return false; On 2016/04/20 21:39:47, hamelphi wrote: > On ...
4 years, 8 months ago (2016-04-20 21:46:45 UTC) #5
Alexei Svitkine (slow)
https://codereview.chromium.org/1903593002/diff/80001/chrome/browser/resources/translate_internals/translate_internals.js File chrome/browser/resources/translate_internals/translate_internals.js (right): https://codereview.chromium.org/1903593002/diff/80001/chrome/browser/resources/translate_internals/translate_internals.js#newcode270 chrome/browser/resources/translate_internals/translate_internals.js:270: var input = document.createElement('textarea'); Instead of a textarea, use ...
4 years, 8 months ago (2016-04-20 21:48:42 UTC) #6
hamelphi
https://codereview.chromium.org/1903593002/diff/80001/chrome/browser/resources/translate_internals/translate_internals.js File chrome/browser/resources/translate_internals/translate_internals.js (right): https://codereview.chromium.org/1903593002/diff/80001/chrome/browser/resources/translate_internals/translate_internals.js#newcode270 chrome/browser/resources/translate_internals/translate_internals.js:270: var input = document.createElement('textarea'); On 2016/04/20 21:48:41, Alexei Svitkine ...
4 years, 8 months ago (2016-04-21 14:25:10 UTC) #7
Alexei Svitkine (slow)
code lgtm % remaining comments You will need someone from chrome/browser/ui/webui/translate_internals/OWNERS to also approve the ...
4 years, 8 months ago (2016-04-21 15:21:21 UTC) #9
hamelphi
https://codereview.chromium.org/1903593002/diff/120001/chrome/browser/resources/translate_internals/translate_internals.js File chrome/browser/resources/translate_internals/translate_internals.js (right): https://codereview.chromium.org/1903593002/diff/120001/chrome/browser/resources/translate_internals/translate_internals.js#newcode276 chrome/browser/resources/translate_internals/translate_internals.js:276: button.classList.add('override_country'); On 2016/04/21 15:21:21, Alexei Svitkine wrote: > Are ...
4 years, 8 months ago (2016-04-21 21:14:44 UTC) #11
Takashi Toyoshima
Code looks good, but there are minor question and suggestion. https://codereview.chromium.org/1903593002/diff/160001/chrome/browser/resources/translate_internals/translate_internals.js File chrome/browser/resources/translate_internals/translate_internals.js (right): https://codereview.chromium.org/1903593002/diff/160001/chrome/browser/resources/translate_internals/translate_internals.js#newcode271 ...
4 years, 8 months ago (2016-04-22 07:10:08 UTC) #14
hajimehoshi
https://codereview.chromium.org/1903593002/diff/160001/components/variations/service/variations_service.cc File components/variations/service/variations_service.cc (right): https://codereview.chromium.org/1903593002/diff/160001/components/variations/service/variations_service.cc#newcode886 components/variations/service/variations_service.cc:886: if (!needs_update) I'd write it without a variable like: ...
4 years, 8 months ago (2016-04-22 07:22:58 UTC) #16
Alexei Svitkine (slow)
https://codereview.chromium.org/1903593002/diff/160001/chrome/browser/resources/translate_internals/translate_internals.js File chrome/browser/resources/translate_internals/translate_internals.js (right): https://codereview.chromium.org/1903593002/diff/160001/chrome/browser/resources/translate_internals/translate_internals.js#newcode271 chrome/browser/resources/translate_internals/translate_internals.js:271: input.type = 'text'; On 2016/04/22 07:10:08, toyoshim wrote: > ...
4 years, 8 months ago (2016-04-22 14:50:13 UTC) #17
hamelphi
https://codereview.chromium.org/1903593002/diff/160001/chrome/browser/resources/translate_internals/translate_internals.js File chrome/browser/resources/translate_internals/translate_internals.js (right): https://codereview.chromium.org/1903593002/diff/160001/chrome/browser/resources/translate_internals/translate_internals.js#newcode283 chrome/browser/resources/translate_internals/translate_internals.js:283: if ('update' in details && details['update']) { On 2016/04/22 ...
4 years, 8 months ago (2016-04-22 17:20:05 UTC) #18
Alexei Svitkine (slow)
https://codereview.chromium.org/1903593002/diff/180001/chrome/browser/resources/translate_internals/translate_internals.js File chrome/browser/resources/translate_internals/translate_internals.js (right): https://codereview.chromium.org/1903593002/diff/180001/chrome/browser/resources/translate_internals/translate_internals.js#newcode270 chrome/browser/resources/translate_internals/translate_internals.js:270: var tooltip = document.createElement('div'); Nit: a tooltip is usually ...
4 years, 8 months ago (2016-04-22 17:24:59 UTC) #19
hamelphi
https://codereview.chromium.org/1903593002/diff/180001/chrome/browser/resources/translate_internals/translate_internals.js File chrome/browser/resources/translate_internals/translate_internals.js (right): https://codereview.chromium.org/1903593002/diff/180001/chrome/browser/resources/translate_internals/translate_internals.js#newcode270 chrome/browser/resources/translate_internals/translate_internals.js:270: var tooltip = document.createElement('div'); On 2016/04/22 17:24:59, Alexei Svitkine ...
4 years, 8 months ago (2016-04-22 17:39:44 UTC) #20
Alexei Svitkine (slow)
lgtm
4 years, 8 months ago (2016-04-22 17:41:58 UTC) #21
Takashi Toyoshima
LGTM. By the way, may I ask a question about variation configurations, if you know? ...
4 years, 8 months ago (2016-04-25 04:49:39 UTC) #22
Alexei Svitkine (slow)
On 2016/04/25 04:49:39, toyoshim wrote: > LGTM. > > By the way, may I ask ...
4 years, 8 months ago (2016-04-25 14:53:20 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1903593002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1903593002/200001
4 years, 8 months ago (2016-04-25 15:59:31 UTC) #25
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 8 months ago (2016-04-25 16:48:49 UTC) #27
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/2d297251935984323c30d2faf501aa13fd5d479a Cr-Commit-Position: refs/heads/master@{#389501}
4 years, 8 months ago (2016-04-25 16:51:14 UTC) #29
Takashi Toyoshima
4 years, 8 months ago (2016-04-26 05:43:21 UTC) #30
Message was sent while issue was closed.
Alexel, thank you for explanation.

Powered by Google App Engine
This is Rietveld 408576698