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

Issue 9802029: Make first_ids_file an optional attribute of the .grd file. (Closed)

Created:
8 years, 8 months ago by Jói
Modified:
8 years, 8 months ago
Reviewers:
tony
CC:
grit-developer_googlegroups.com, markusheintz_
Visibility:
Public.

Description

Make first_ids_file an optional attribute of the .grd file. Remove the default path for resource_ids; the default now is no first IDs file. This is part of unbranching grit, since I believe Chrome is the only project to use a first_ids file. To resolve landing sequence requirements, this change leaves the default path in grit_info.py and allows overriding the path via a flag to grit build, but once a WebKit-side change to WebKit.grd has landed, both of these can be removed and the only way to specify a first_ids file will be via each .grd file. BUG=http://code.google.com/p/grit-i18n/issues/detail?id=4 Committed: https://code.google.com/p/grit-i18n/source/detail?r=19

Patch Set 1 #

Patch Set 2 : #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -76 lines) Patch
M grit/grd_reader.py View 3 chunks +9 lines, -7 lines 0 comments Download
M grit/grd_reader_unittest.py View 3 chunks +20 lines, -18 lines 0 comments Download
M grit/node/misc.py View 1 7 chunks +39 lines, -33 lines 2 comments Download
M grit/tool/build.py View 4 chunks +13 lines, -8 lines 2 comments Download
M grit_info.py View 2 chunks +20 lines, -10 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Jói
See also http://codereview.chromium.org/9875019/ that adjusts usage of grit in Chrome to this new default. I'm ...
8 years, 8 months ago (2012-03-28 14:42:29 UTC) #1
Jói
Switch reviewer: markusheintz@google.com -> tony@chromium.org (Markus, please speak up if you already started; I think ...
8 years, 8 months ago (2012-03-28 15:58:10 UTC) #2
tony
LGTM http://codereview.chromium.org/9802029/diff/7/grit/node/misc.py File grit/node/misc.py (right): http://codereview.chromium.org/9802029/diff/7/grit/node/misc.py#newcode259 grit/node/misc.py:259: else: Nit: Remove the 'else' and unindent the ...
8 years, 8 months ago (2012-03-28 17:31:56 UTC) #3
Jói
Thanks Tony. Committing with the nit fixed. Cheers, Jói http://codereview.chromium.org/9802029/diff/7/grit/node/misc.py File grit/node/misc.py (right): http://codereview.chromium.org/9802029/diff/7/grit/node/misc.py#newcode259 grit/node/misc.py:259: ...
8 years, 8 months ago (2012-03-29 11:36:15 UTC) #4
tony
8 years, 8 months ago (2012-03-29 16:34:48 UTC) #5
On 2012/03/29 11:36:15, Jói wrote:
> On 2012/03/28 17:31:56, tony wrote:
> > I like the command line flag. In Chromium, if someone adds a new grd file, I
> > want it to warn that they need to pick an ID. If grit_action.gypi uses the
-f
> > flag, new .grd files should get this warning automatically.  If we use
> > attributes, it's easier for someone to forget.
> 
> I'd prefer to have just one way to do things, but for now the flag stays and
we
> can talk before I make further changes.
> 
> My plan was to add a presubmit check to Chrome to verify that any .grd file
> being modified has the attribute.  What would you say to that approach?  This
is
> perhaps even more foolproof than the flag, since it would catch somebody
adding
> a new .grd file that gets built by a customized invocation of grit rather than
> using grit_action.gypi.

Ah, a presubmit check would work for me! You're right, that's even better than a
flag.  Ok, let's remove the command line flag!

Powered by Google App Engine
This is Rietveld 408576698