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

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

Issue 2655003: Make ChromeOS's options dialog wider for it and da. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: remove un-informative comment per tony Created 10 years, 6 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 | « chrome/app/resources/locale_settings_it.xtb ('k') | 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/io.py
diff --git a/tools/grit/grit/node/io.py b/tools/grit/grit/node/io.py
index 00943af853f145032647cc1e0882e9a7cd486bde..17e5a6f06cc540cc8d5b1b420f55197eecb0b824 100644
--- a/tools/grit/grit/node/io.py
+++ b/tools/grit/grit/node/io.py
@@ -40,11 +40,17 @@ class FileNode(base.Node):
if not self.should_load_:
return
+ root = self.GetRoot()
+ defs = {}
+ if hasattr(root, 'defines'):
+ defs = root.defines
+
xtb_file = file(self.GetFilePath())
try:
lang = xtb_reader.Parse(xtb_file,
self.UberClique().GenerateXtbParserCallback(
- self.attrs['lang'], debug=debug))
+ self.attrs['lang'], debug=debug),
+ defs=defs)
except:
print "Exception during parsing of %s" % self.GetFilePath()
raise
« no previous file with comments | « chrome/app/resources/locale_settings_it.xtb ('k') | tools/grit/grit/node/misc.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698