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

Issue 1585923011: [Template Expressions] changing ${ leader to $i18n{ (Closed)

Created:
4 years, 11 months ago by dschuyler
Modified:
4 years, 6 months ago
Reviewers:
Nico, pinguinad86, Dan Beam
CC:
chromium-reviews, dbeam+watch-ntp_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org, pedrosimonetti+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Template Expressions] changing ${ leader to $i18n{ This CL changes the Template Expressions from using a ${ to identify the start of an expression, to using $i18n{. The intention is to reduce (eliminate) false positives when searching for expressions that need replacement. This CL also prepares for the replacement work to be done in a background thread and used on a broader set of files. BUG=506009 Committed: https://crrev.com/5aa7fd5f14e49c65ebba87e4248424d622b92930 Cr-Commit-Position: refs/heads/master@{#371537} Committed: https://crrev.com/119857aa5b443f81ddbc8929ba510dd178b3ee69 Cr-Commit-Position: refs/heads/master@{#372239}

Patch Set 1 #

Total comments: 10

Patch Set 2 : review changes #

Total comments: 8

Patch Set 3 : review changes #

Total comments: 2

Patch Set 4 : review nit #

Patch Set 5 : Fix for Incognito window #

Patch Set 6 : Changing css_checker_test to use $i18n replacements #

Patch Set 7 : updated comments #

Total comments: 2

Patch Set 8 : fix for $i18n comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -71 lines) Patch
M chrome/browser/resources/ntp4/new_incognito_tab_theme.css View 1 chunk +6 lines, -6 lines 0 comments Download
M chrome/browser/resources/ntp4/new_tab_theme.css View 2 chunks +27 lines, -27 lines 0 comments Download
M chrome/browser/ui/webui/ntp/ntp_resource_cache.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/web_dev_style/css_checker.py View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/web_dev_style/css_checker_test.py View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M ui/base/template_expressions.h View 1 1 chunk +4 lines, -1 line 0 comments Download
M ui/base/template_expressions.cc View 1 2 3 4 5 6 7 1 chunk +15 lines, -8 lines 0 comments Download
M ui/base/template_expressions_unittest.cc View 1 2 1 chunk +10 lines, -11 lines 0 comments Download
M ui/base/webui/web_ui_util.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/webui/resources/css/text_defaults.css View 1 2 3 4 5 6 7 1 chunk +5 lines, -5 lines 0 comments Download
M ui/webui/resources/css/text_defaults_md.css View 1 2 3 4 5 6 7 1 chunk +5 lines, -5 lines 0 comments Download

Messages

Total messages: 42 (13 generated)
dschuyler
4 years, 11 months ago (2016-01-16 00:38:17 UTC) #2
jam
I'm not a good reviewer for this. you should find more specific owners who're familiar ...
4 years, 11 months ago (2016-01-19 19:01:43 UTC) #3
dschuyler
Changing reviewer from jam@ to estade@.
4 years, 11 months ago (2016-01-19 19:18:29 UTC) #5
Evan Stade
why estade and not dbeam? Looking at the bug, dbeam has more context on this ...
4 years, 11 months ago (2016-01-19 22:04:46 UTC) #6
dschuyler
As suggested, moving reviewer from estade@ to dbeam@.
4 years, 11 months ago (2016-01-19 22:10:44 UTC) #8
Dan Beam
https://codereview.chromium.org/1585923011/diff/1/ui/base/template_expressions.cc File ui/base/template_expressions.cc (right): https://codereview.chromium.org/1585923011/diff/1/ui/base/template_expressions.cc#newcode16 ui/base/template_expressions.cc:16: const char* leader = "$i18n{"; const char kLeader[] = ...
4 years, 11 months ago (2016-01-20 22:34:38 UTC) #9
dschuyler
https://codereview.chromium.org/1585923011/diff/1/ui/base/template_expressions.cc File ui/base/template_expressions.cc (right): https://codereview.chromium.org/1585923011/diff/1/ui/base/template_expressions.cc#newcode16 ui/base/template_expressions.cc:16: const char* leader = "$i18n{"; On 2016/01/20 22:34:38, Dan ...
4 years, 11 months ago (2016-01-21 18:43:53 UTC) #10
Dan Beam
https://codereview.chromium.org/1585923011/diff/20001/ui/base/template_expressions.cc File ui/base/template_expressions.cc (right): https://codereview.chromium.org/1585923011/diff/20001/ui/base/template_expressions.cc#newcode17 ui/base/template_expressions.cc:17: const size_t kLeaderSize = arraysize(kLeader) - 1; if these ...
4 years, 11 months ago (2016-01-22 00:51:44 UTC) #11
dschuyler
https://codereview.chromium.org/1585923011/diff/20001/ui/base/template_expressions.cc File ui/base/template_expressions.cc (right): https://codereview.chromium.org/1585923011/diff/20001/ui/base/template_expressions.cc#newcode17 ui/base/template_expressions.cc:17: const size_t kLeaderSize = arraysize(kLeader) - 1; On 2016/01/22 ...
4 years, 11 months ago (2016-01-22 01:58:58 UTC) #12
Dan Beam
lgtm https://codereview.chromium.org/1585923011/diff/40001/ui/base/template_expressions.cc File ui/base/template_expressions.cc (right): https://codereview.chromium.org/1585923011/diff/40001/ui/base/template_expressions.cc#newcode15 ui/base/template_expressions.cc:15: const size_t kTailSize = arraysize(kTail) - 1; nit: ...
4 years, 11 months ago (2016-01-23 03:31:55 UTC) #13
dschuyler
Just the nit change. https://codereview.chromium.org/1585923011/diff/40001/ui/base/template_expressions.cc File ui/base/template_expressions.cc (right): https://codereview.chromium.org/1585923011/diff/40001/ui/base/template_expressions.cc#newcode15 ui/base/template_expressions.cc:15: const size_t kTailSize = arraysize(kTail) ...
4 years, 11 months ago (2016-01-25 22:19:11 UTC) #14
dschuyler
@thakis, May I get owner lgtm on the files in /ui/base /ui/base/template_expressions.cc /ui/base/template_expressions.h /ui/base/template_expressions_unittest.cc
4 years, 11 months ago (2016-01-26 00:32:35 UTC) #16
Nico
yuck, lgtm
4 years, 11 months ago (2016-01-26 01:14:09 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1585923011/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1585923011/60001
4 years, 11 months ago (2016-01-26 18:03:00 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 11 months ago (2016-01-26 18:08:55 UTC) #21
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/5aa7fd5f14e49c65ebba87e4248424d622b92930 Cr-Commit-Position: refs/heads/master@{#371537}
4 years, 11 months ago (2016-01-26 18:10:02 UTC) #23
Dan Beam
A revert of this CL (patchset #4 id:60001) has been created in https://codereview.chromium.org/1647583003/ by dbeam@chromium.org. ...
4 years, 11 months ago (2016-01-27 20:33:29 UTC) #24
Dan Beam
update: this didn't break chrome://apps, but dschuyler found why it broke incognito (a new templated ...
4 years, 11 months ago (2016-01-27 23:43:33 UTC) #26
dschuyler
This patch has the fix for the incognito window. (An additional file needed updating).
4 years, 11 months ago (2016-01-27 23:49:10 UTC) #27
dschuyler
I went looking for what else may have been missed. This patch fixed the css_checker_test.py, ...
4 years, 11 months ago (2016-01-28 01:54:37 UTC) #28
Dan Beam
https://codereview.chromium.org/1585923011/diff/120001/ui/webui/resources/css/text_defaults.css File ui/webui/resources/css/text_defaults.css (right): https://codereview.chromium.org/1585923011/diff/120001/ui/webui/resources/css/text_defaults.css#newcode16 ui/webui/resources/css/text_defaults.css:16: * Otherwise its $i18n{placeholders} won't be expanded. */ fix ...
4 years, 10 months ago (2016-01-28 22:11:02 UTC) #29
dschuyler
https://codereview.chromium.org/1585923011/diff/120001/ui/webui/resources/css/text_defaults.css File ui/webui/resources/css/text_defaults.css (right): https://codereview.chromium.org/1585923011/diff/120001/ui/webui/resources/css/text_defaults.css#newcode16 ui/webui/resources/css/text_defaults.css:16: * Otherwise its $i18n{placeholders} won't be expanded. */ On ...
4 years, 10 months ago (2016-01-28 22:16:15 UTC) #30
Dan Beam
lgtm
4 years, 10 months ago (2016-01-28 23:06:53 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1585923011/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1585923011/140001
4 years, 10 months ago (2016-01-29 01:15:28 UTC) #34
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 10 months ago (2016-01-29 01:22:29 UTC) #36
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/119857aa5b443f81ddbc8929ba510dd178b3ee69 Cr-Commit-Position: refs/heads/master@{#372239}
4 years, 10 months ago (2016-01-29 01:23:19 UTC) #38
pinguinad86
lgtm
4 years, 6 months ago (2016-06-06 15:28:10 UTC) #40
pinguinad86
lgtm
4 years, 6 months ago (2016-06-06 15:28:15 UTC) #41
pinguinad86
4 years, 6 months ago (2016-06-06 15:28:15 UTC) #42
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698