Chromium Code Reviews| Index: third_party/WebKit/Source/bindings/scripts/v8_utilities.py |
| diff --git a/third_party/WebKit/Source/bindings/scripts/v8_utilities.py b/third_party/WebKit/Source/bindings/scripts/v8_utilities.py |
| index a48586d949a4556c7422676e7edf2c697e74a3f6..a13aaa53a3c360c2469eef58619a786a1c31896b 100644 |
| --- a/third_party/WebKit/Source/bindings/scripts/v8_utilities.py |
| +++ b/third_party/WebKit/Source/bindings/scripts/v8_utilities.py |
| @@ -123,6 +123,13 @@ def unique_by(dict_list, key): |
| return filtered_list |
| +def for_feature(items, feature_name): |
|
chasej
2016/06/10 20:09:30
Should this have more specific name like 'for_orig
iclelland
2016/06/10 20:24:01
The intention was to eventually also include runti
|
| + """Filters the list of attributes or constants, and returns those defined for the named origin trial feature.""" |
| + return [item for item in items if |
| + item['origin_trial_feature_name'] == feature_name and |
| + not item.get('exposed_test')] |
| + |
| + |
| ################################################################################ |
| # C++ |
| ################################################################################ |