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

Unified Diff: third_party/WebKit/Source/bindings/scripts/v8_interface.py

Issue 2141083002: Fix use of itertools.groupby when collecting origin trial members (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/bindings/scripts/v8_interface.py
diff --git a/third_party/WebKit/Source/bindings/scripts/v8_interface.py b/third_party/WebKit/Source/bindings/scripts/v8_interface.py
index f2b579de884c0231840db9f0a5db30e29fe19174..848ef266c6d927760bd1cf7c707eedc4ac602890 100644
--- a/third_party/WebKit/Source/bindings/scripts/v8_interface.py
+++ b/third_party/WebKit/Source/bindings/scripts/v8_interface.py
@@ -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,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698