Index: tools/grit/grit/gather/chrome_html.py |
diff --git a/tools/grit/grit/gather/chrome_html.py b/tools/grit/grit/gather/chrome_html.py |
index a8f8eb8ddbf8943af4c061ffb96b56eab246baaf..066746514c48238b298249d793405f086204a526 100755 |
--- a/tools/grit/grit/gather/chrome_html.py |
+++ b/tools/grit/grit/gather/chrome_html.py |
@@ -347,7 +347,7 @@ class ChromeHtml(interface.GathererBase): |
if self.flatten_html_: |
self.inlined_text_ = html_inline.InlineToString( |
filename, |
- self.grd_node, |
+ self.grd_node.EvaluateCondition if self.grd_node else None, |
allow_external_script = self.allow_external_script_, |
preprocess_only = self.preprocess_only_, |
rewrite_function=lambda fp, t, d: ProcessImageSets( |