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

Unified Diff: tools/json_schema_compiler/compiler.py

Issue 1695563002: Media Galleries Partial Deprecation: Remove scan functionality. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add idl apitest Created 4 years, 10 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/json_schema_compiler/compiler.py
diff --git a/tools/json_schema_compiler/compiler.py b/tools/json_schema_compiler/compiler.py
index feb354dedfd5a79d7b8cfa6478527d789adb86b9..c626f2f96c20570980c9b2637dcdae96c5128271 100755
--- a/tools/json_schema_compiler/compiler.py
+++ b/tools/json_schema_compiler/compiler.py
@@ -59,6 +59,10 @@ def GenerateSchema(generator_name,
# If compiling the C++ model code, delete 'nocompile' nodes.
if generator_name == 'cpp':
api_def = json_schema.DeleteNodes(api_def, 'nocompile')
+
+ # Delete all 'nodefine' nodes. They are only for documentation.
+ api_def = json_schema.DeleteNodes(api_def, 'nodefine')
+
api_defs.extend(api_def)
api_model = Model(allow_inline_enums=False)

Powered by Google App Engine
This is Rietveld 408576698