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

Unified Diff: tools/grit/grit/node/empty.py

Issue 3155033: Add support for if nodes in outputs nodes of grd files (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: nits Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/grit/grit/node/misc.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/grit/grit/node/empty.py
diff --git a/tools/grit/grit/node/empty.py b/tools/grit/grit/node/empty.py
index cfff7a46d5477eb4e278e7191fed6a8932cfd462..51d3e5863298570c5ab0ba936117d4585129cad7 100644
--- a/tools/grit/grit/node/empty.py
+++ b/tools/grit/grit/node/empty.py
@@ -62,7 +62,7 @@ class TranslationsNode(base.Node):
class OutputsNode(base.Node):
'''The <outputs> element.'''
def _IsValidChild(self, child):
- return isinstance(child, io.OutputNode)
+ return isinstance(child, (io.OutputNode, misc.IfNode))
class IdentifiersNode(GroupingNode):
« no previous file with comments | « no previous file | tools/grit/grit/node/misc.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698