Commit b0556882 authored by iclelland's avatar iclelland Committed by Commit bot

Fix use of itertools.groupby when collecting origin trial members

BUG=626435
R=yukishiino@chromium.org, mek@chromium.org

Review-Url: https://codereview.chromium.org/2141083002
Cr-Commit-Position: refs/heads/master@{#405151}
parent 9b526a95
......@@ -116,7 +116,9 @@ def origin_trial_features(interface, constants, attributes, methods):
method['origin_trial_feature_name'])]
)
# Group members by origin_trial_feature_name
members_by_name = itertools.groupby(origin_trial_members, itemgetter('origin_trial_feature_name'))
members_by_name = itertools.groupby(sorted(origin_trial_members,
key=itemgetter('origin_trial_feature_name')),
itemgetter('origin_trial_feature_name'))
# Construct the list of dictionaries. 'needs_instance' will be true if any
# member for the feature has 'on_instance' defined as true.
features = [{'name': name,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment