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

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

Issue 2094193004: Strip comments and whitespace from Javascript resources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Respond to comments, plus rebases. Created 4 years, 5 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
Index: tools/grit/grit/node/include.py
diff --git a/tools/grit/grit/node/include.py b/tools/grit/grit/node/include.py
index 4bad78594727e45b7f25705336108cfec16866c2..c4662084a2e23cd6690b321f06c1483f4ff5c65f 100755
--- a/tools/grit/grit/node/include.py
+++ b/tools/grit/grit/node/include.py
@@ -39,7 +39,8 @@ class IncludeNode(base.Node):
if not self._flattened_data:
filename = self.ToRealPath(self.GetInputPath())
self._flattened_data = (
- grit.format.html_inline.InlineToString(filename, self,
+ grit.format.html_inline.InlineToString(filename,
+ self.EvaluateCondition,
preprocess_only=False,
allow_external_script=allow_external_script))
return self._flattened_data

Powered by Google App Engine
This is Rietveld 408576698