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

Issue 2130883002: [OriginTrials] Allow origin trials to be installed without an instance object. (Closed)

Created:
4 years, 5 months ago by iclelland
Modified:
4 years, 5 months ago
Reviewers:
haraken, Yuki
CC:
blink-reviews, blink-reviews-bindings_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[OriginTrials] Allow origin trials to be installed without an instance object. Many origin trial features can be installed on interfaces and prototype objects without requiring an existing interface object. This creates an alternate method signature for installing such features, and simplifies the bindings installation code. BUG=626435 R=yukishiino@chromium.org Committed: https://crrev.com/4d48d54439b76ce3736de03206f6c0699d497ec6 Cr-Commit-Position: refs/heads/master@{#404455}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Generate common code for installing origin trials with or without instance #

Patch Set 3 : Simplify prototype logic #

Patch Set 4 : Rebase #

Total comments: 1

Messages

Total messages: 15 (4 generated)
iclelland
+r Yuki, can you PTAL to make sure this makes sense? I think it should ...
4 years, 5 months ago (2016-07-07 21:30:58 UTC) #1
haraken
LGTM on my side. We need to revisit the issue when someone wants to add ...
4 years, 5 months ago (2016-07-08 01:59:06 UTC) #2
iclelland
On 2016/07/08 01:59:06, haraken wrote: > LGTM on my side. > > We need to ...
4 years, 5 months ago (2016-07-08 03:56:33 UTC) #3
Yuki
Mostly, l-g-t-m. https://codereview.chromium.org/2130883002/diff/1/third_party/WebKit/Source/bindings/templates/interface_base.cpp File third_party/WebKit/Source/bindings/templates/interface_base.cpp (right): https://codereview.chromium.org/2130883002/diff/1/third_party/WebKit/Source/bindings/templates/interface_base.cpp#newcode372 third_party/WebKit/Source/bindings/templates/interface_base.cpp:372: {% if origin_trial_feature.needs_instance %} I'm uneasy with ...
4 years, 5 months ago (2016-07-08 13:08:24 UTC) #4
iclelland
https://codereview.chromium.org/2130883002/diff/1/third_party/WebKit/Source/bindings/templates/interface_base.cpp File third_party/WebKit/Source/bindings/templates/interface_base.cpp (right): https://codereview.chromium.org/2130883002/diff/1/third_party/WebKit/Source/bindings/templates/interface_base.cpp#newcode372 third_party/WebKit/Source/bindings/templates/interface_base.cpp:372: {% if origin_trial_feature.needs_instance %} On 2016/07/08 13:08:24, Yuki wrote: ...
4 years, 5 months ago (2016-07-08 14:20:49 UTC) #5
iclelland
Yuki, I think this addresses your concerns, can you PTAL? After refactoring, I realized that ...
4 years, 5 months ago (2016-07-08 14:48:26 UTC) #6
Yuki
LGTM. Thanks!
4 years, 5 months ago (2016-07-08 16:10:30 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2130883002/60001
4 years, 5 months ago (2016-07-08 17:48:39 UTC) #10
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 5 months ago (2016-07-08 19:13:38 UTC) #11
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/4d48d54439b76ce3736de03206f6c0699d497ec6 Cr-Commit-Position: refs/heads/master@{#404455}
4 years, 5 months ago (2016-07-08 19:15:41 UTC) #13
Marijn Kruisselbrink
4 years, 5 months ago (2016-07-08 19:44:09 UTC) #15
Message was sent while issue was closed.
https://codereview.chromium.org/2130883002/diff/60001/third_party/WebKit/Sour...
File third_party/WebKit/Source/bindings/scripts/v8_interface.py (right):

https://codereview.chromium.org/2130883002/diff/60001/third_party/WebKit/Sour...
third_party/WebKit/Source/bindings/scripts/v8_interface.py:119: members_by_name
= itertools.groupby(origin_trial_members,
itemgetter('origin_trial_feature_name'))
itertools.groupby requires the passed in iterable to be sorted already by the
key you're grouping on. You don't seem to actually sort origin_trial_members,
thus this can result in duplicates ending up in members_by_name (and thus also
in features later on).

Powered by Google App Engine
This is Rietveld 408576698