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

Issue 118663003: Set target platform on root node earlier. (Closed)

Created:
6 years, 12 months ago by Jói
Modified:
6 years, 10 months ago
Reviewers:
Nico
CC:
grit-developer_googlegroups.com
Visibility:
Public.

Description

Set target platform on root node earlier. Fix to grd_reader.py proposed by thakis@chromium.org and used verbatim from his proposal. I added the regression test to surface the problem (prior to this fix) in a unit test on all platforms where one of the is_xyz shortcuts in .grd expressions is true. BUG=https://code.google.com/p/grit-i18n/issues/detail?id=23 Committed: https://code.google.com/p/grit-i18n/source/detail?r=141

Patch Set 1 #

Patch Set 2 : Long line. #

Patch Set 3 : Remove code duplication. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -12 lines) Patch
M grit/grd_reader.py View 5 chunks +8 lines, -4 lines 0 comments Download
M grit/grd_reader_unittest.py View 1 2 2 chunks +32 lines, -0 lines 0 comments Download
M grit/node/base.py View 1 2 2 chunks +26 lines, -8 lines 3 comments Download

Messages

Total messages: 5 (0 generated)
Jói
Will land TBR so I can test this on the Chromium trybots. Cheers, Jói
6 years, 12 months ago (2013-12-27 14:32:43 UTC) #1
Jói
Committed patchset #3 manually as r141 (presubmit successful).
6 years, 12 months ago (2013-12-27 14:33:35 UTC) #2
Nico
lgtm, thank you! https://codereview.chromium.org/118663003/diff/50001/grit/node/base.py File grit/node/base.py (right): https://codereview.chromium.org/118663003/diff/50001/grit/node/base.py#newcode480 grit/node/base.py:480: 'is_ios': platform_assertion == 'is_ios', nit (optional, ...
6 years, 12 months ago (2013-12-27 16:55:24 UTC) #3
Nico
https://codereview.chromium.org/118663003/diff/50001/grit/node/base.py File grit/node/base.py (right): https://codereview.chromium.org/118663003/diff/50001/grit/node/base.py#newcode483 grit/node/base.py:483: or 'bsd' in sys.platform), Hey, it looks like you ...
6 years, 10 months ago (2014-01-28 20:48:35 UTC) #4
Jói
6 years, 10 months ago (2014-01-29 13:41:39 UTC) #5
Message was sent while issue was closed.
https://codereview.chromium.org/118663003/diff/50001/grit/node/base.py
File grit/node/base.py (right):

https://codereview.chromium.org/118663003/diff/50001/grit/node/base.py#newcod...
grit/node/base.py:483: or 'bsd' in sys.platform),
On 2014/01/28 20:48:35, Nico wrote:
> Hey, it looks like you dropped 'ios' and 'android' from is_posix in this
change.
> I guess that wasn't intentional?

Whoops, that looks like a bad merge maybe. Not intentional, will fix.

Powered by Google App Engine
This is Rietveld 408576698