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

Unified Diff: third_party/WebKit/Source/build/scripts/make_origin_trials.py

Issue 2656163005: Convert RuntimeEnabledFeatures.in config file to JSON format. (Closed)
Patch Set: Rebase and add MediaCaptureDepth, MojoJS Created 3 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: third_party/WebKit/Source/build/scripts/make_origin_trials.py
diff --git a/third_party/WebKit/Source/build/scripts/make_origin_trials.py b/third_party/WebKit/Source/build/scripts/make_origin_trials.py
index e94934655311cad5548284b1c6781f42a96d7589..e9fa2f7cb5cd50a5c1a5a6440d456d6182e4a8e2 100755
--- a/third_party/WebKit/Source/build/scripts/make_origin_trials.py
+++ b/third_party/WebKit/Source/build/scripts/make_origin_trials.py
@@ -29,7 +29,7 @@
import sys
-import in_generator
+import json5_generator
import make_runtime_features
import name_utilities
import template_expander
@@ -40,8 +40,8 @@ import template_expander
class OriginTrialsWriter(make_runtime_features.RuntimeFeatureWriter):
class_name = 'OriginTrials'
- def __init__(self, in_file_path):
- super(OriginTrialsWriter, self).__init__(in_file_path)
+ def __init__(self, json5_file_path):
+ super(OriginTrialsWriter, self).__init__(json5_file_path)
self._outputs = {
(self.class_name + '.cpp'): self.generate_implementation,
(self.class_name + '.h'): self.generate_header,
@@ -61,4 +61,4 @@ class OriginTrialsWriter(make_runtime_features.RuntimeFeatureWriter):
if __name__ == '__main__':
- in_generator.Maker(OriginTrialsWriter).main(sys.argv)
+ json5_generator.Maker(OriginTrialsWriter).main()

Powered by Google App Engine
This is Rietveld 408576698