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

Issue 1635593004: Rename Experimental Framework classes and concepts (Closed)

Created:
4 years, 11 months ago by iclelland
Modified:
4 years, 10 months ago
CC:
chromium-reviews, jam, dglazkov+blink, darin-cc_chromium.org, blink-reviews, blink-reviews-bindings_chromium.org, kinuko+watch, blink-reviews-api_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Rename Experimental Framework classes and concepts "Experiments" is far too generic a term to use for the trials enabled by the experimental framework, so this patch renames everything to (hopefully) more precise terms. These changes are most prominent: core::ExperimentalFeatures class => OriginTrials core::Experiments class => OriginTrialContext API Key => Trial Token (or "Token" where unambiguous) API => Feature /experiments/ directories => /origin_trials/ api_name (RuntimeEnabledFeatures) => origin_trial_feature_name BUG=575808 Committed: https://crrev.com/5b27fa016f2736e2186984e5f737e805c2836d9c Cr-Commit-Position: refs/heads/master@{#372943}

Patch Set 1 : Rename all the things #

Patch Set 2 : Rename RuntimeEnabledFeatures flag to experimental_feature_name #

Total comments: 46

Patch Set 3 : Addressing feedback, renaming more things #

Patch Set 4 : Rename RuntimeEnabledFeatures flag to origin_trial_feature_name #

Patch Set 5 : Rebase #

Total comments: 5

Patch Set 6 : Simplify TrialTokenValidator::validateToken #

Total comments: 1

Patch Set 7 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+772 lines, -1448 lines) Patch
M content/child/blink_platform_impl.h View 1 2 3 4 5 6 3 chunks +3 lines, -3 lines 0 comments Download
M content/child/blink_platform_impl.cc View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
D content/child/experiments/api_key_validator.h View 1 chunk +0 lines, -33 lines 0 comments Download
D content/child/experiments/api_key_validator.cc View 1 chunk +0 lines, -27 lines 0 comments Download
A content/child/origin_trials/trial_token_validator.h View 1 chunk +33 lines, -0 lines 0 comments Download
A content/child/origin_trials/trial_token_validator.cc View 1 2 3 4 5 1 chunk +24 lines, -0 lines 0 comments Download
D content/common/experiments/api_key.h View 1 chunk +0 lines, -95 lines 0 comments Download
D content/common/experiments/api_key.cc View 1 chunk +0 lines, -144 lines 0 comments Download
D content/common/experiments/api_key_unittest.cc View 1 chunk +0 lines, -191 lines 0 comments Download
A content/common/origin_trials/trial_token.h View 1 2 1 chunk +96 lines, -0 lines 0 comments Download
A + content/common/origin_trials/trial_token.cc View 4 chunks +33 lines, -34 lines 0 comments Download
A content/common/origin_trials/trial_token_unittest.cc View 1 2 1 chunk +192 lines, -0 lines 0 comments Download
M content/content_child.gypi View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 2 chunks +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/scripts/v8_attributes.py View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/scripts/v8_interface.py View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/scripts/v8_methods.py View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/scripts/v8_utilities.py View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface.cpp View 109 chunks +109 lines, -109 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp View 14 chunks +13 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
D third_party/WebKit/Source/build/scripts/make_experimental_features.py View 1 chunk +0 lines, -64 lines 0 comments Download
A + third_party/WebKit/Source/build/scripts/make_origin_trials.py View 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/build/scripts/make_runtime_features.py View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
D third_party/WebKit/Source/build/scripts/templates/ExperimentalFeatures.cpp.tmpl View 1 chunk +0 lines, -37 lines 0 comments Download
D third_party/WebKit/Source/build/scripts/templates/ExperimentalFeatures.h.tmpl View 1 chunk +0 lines, -38 lines 0 comments Download
A third_party/WebKit/Source/build/scripts/templates/OriginTrials.cpp.tmpl View 1 2 3 1 chunk +37 lines, -0 lines 0 comments Download
A + third_party/WebKit/Source/build/scripts/templates/OriginTrials.h.tmpl View 1 2 3 3 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/BUILD.gn View 4 chunks +12 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/core.gypi View 1 2 3 4 5 6 6 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/core_generated.gyp View 1 chunk +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/core_generated.gypi View 1 chunk +3 lines, -3 lines 0 comments Download
D third_party/WebKit/Source/core/experiments/Experiments.h View 1 chunk +0 lines, -58 lines 0 comments Download
D third_party/WebKit/Source/core/experiments/Experiments.cpp View 1 2 3 4 1 chunk +0 lines, -107 lines 0 comments Download
D third_party/WebKit/Source/core/experiments/ExperimentsTest.cpp View 1 2 3 4 1 chunk +0 lines, -234 lines 0 comments Download
D third_party/WebKit/Source/core/experiments/testing/InternalsFrobulate.h View 1 chunk +0 lines, -25 lines 0 comments Download
D third_party/WebKit/Source/core/experiments/testing/InternalsFrobulate.cpp View 1 chunk +0 lines, -30 lines 0 comments Download
D third_party/WebKit/Source/core/experiments/testing/InternalsFrobulate.idl View 1 chunk +0 lines, -9 lines 0 comments Download
A third_party/WebKit/Source/core/origin_trials/OriginTrialContext.h View 1 2 1 chunk +52 lines, -0 lines 0 comments Download
A + third_party/WebKit/Source/core/origin_trials/OriginTrialContext.cpp View 1 2 3 4 7 chunks +19 lines, -25 lines 0 comments Download
A + third_party/WebKit/Source/core/origin_trials/OriginTrialContextTest.cpp View 1 2 3 4 5 chunks +63 lines, -71 lines 0 comments Download
A + third_party/WebKit/Source/core/origin_trials/testing/InternalsFrobulate.h View 0 chunks +-1 lines, --1 lines 0 comments Download
A + third_party/WebKit/Source/core/origin_trials/testing/InternalsFrobulate.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
A + third_party/WebKit/Source/core/origin_trials/testing/InternalsFrobulate.idl View 0 chunks +-1 lines, --1 lines 0 comments Download
M third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in View 1 2 3 4 5 6 2 chunks +5 lines, -6 lines 0 comments Download
M third_party/WebKit/public/platform/Platform.h View 1 2 3 4 5 6 3 chunks +2 lines, -2 lines 0 comments Download
D third_party/WebKit/public/platform/WebApiKeyValidator.h View 1 chunk +0 lines, -34 lines 0 comments Download
A third_party/WebKit/public/platform/WebTrialTokenValidator.h View 1 2 1 chunk +32 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (9 generated)
iclelland
+r chasej -- can you PTAL? Thanks
4 years, 11 months ago (2016-01-26 03:47:43 UTC) #3
chasej
I've raised an issue around naming for "experimental_feature_name" in RuntimeEnabledFeatures.in. Otherwise, most of the comments ...
4 years, 11 months ago (2016-01-26 16:56:53 UTC) #4
iclelland
Thanks for the thorough review! I've addressed most of the issues -- everything except for ...
4 years, 11 months ago (2016-01-26 19:05:49 UTC) #5
iclelland
RuntimeEnabledFeatures flag updated. https://codereview.chromium.org/1635593004/diff/20001/third_party/WebKit/Source/build/scripts/make_runtime_features.py File third_party/WebKit/Source/build/scripts/make_runtime_features.py (right): https://codereview.chromium.org/1635593004/diff/20001/third_party/WebKit/Source/build/scripts/make_runtime_features.py#newcode46 third_party/WebKit/Source/build/scripts/make_runtime_features.py:46: 'experimental_feature_name': None, On 2016/01/26 19:05:48, iclelland ...
4 years, 11 months ago (2016-01-27 18:56:46 UTC) #7
chasej
lgtm
4 years, 11 months ago (2016-01-27 19:31:28 UTC) #8
iclelland
+r rbyers for /third_party/WebKit/, +r davidben for /content/ Sorry it's so long, guys; it's mostly ...
4 years, 11 months ago (2016-01-27 19:33:06 UTC) #10
davidben
content lgtm https://codereview.chromium.org/1635593004/diff/80001/content/child/origin_trials/trial_token_validator.cc File content/child/origin_trials/trial_token_validator.cc (right): https://codereview.chromium.org/1635593004/diff/80001/content/child/origin_trials/trial_token_validator.cc#newcode24 content/child/origin_trials/trial_token_validator.cc:24: return result; Optional nit: I would probably ...
4 years, 11 months ago (2016-01-27 19:38:33 UTC) #11
iclelland
On 2016/01/27 19:38:33, davidben (slow) wrote: > content lgtm > > https://codereview.chromium.org/1635593004/diff/80001/content/child/origin_trials/trial_token_validator.cc > File content/child/origin_trials/trial_token_validator.cc ...
4 years, 11 months ago (2016-01-27 19:47:12 UTC) #12
haraken
https://codereview.chromium.org/1635593004/diff/80001/third_party/WebKit/Source/bindings/scripts/v8_attributes.py File third_party/WebKit/Source/bindings/scripts/v8_attributes.py (right): https://codereview.chromium.org/1635593004/diff/80001/third_party/WebKit/Source/bindings/scripts/v8_attributes.py#newcode97 third_party/WebKit/Source/bindings/scripts/v8_attributes.py:97: if 'APIExperimentEnabled' in extended_attributes: You need to rename [APIExperimentEnabled] ...
4 years, 11 months ago (2016-01-27 23:55:25 UTC) #14
iclelland
On 2016/01/27 23:55:25, haraken wrote: > https://codereview.chromium.org/1635593004/diff/80001/third_party/WebKit/Source/bindings/scripts/v8_attributes.py > File third_party/WebKit/Source/bindings/scripts/v8_attributes.py (right): > > https://codereview.chromium.org/1635593004/diff/80001/third_party/WebKit/Source/bindings/scripts/v8_attributes.py#newcode97 > ...
4 years, 11 months ago (2016-01-28 05:06:44 UTC) #15
haraken
On 2016/01/28 05:06:44, iclelland wrote: > On 2016/01/27 23:55:25, haraken wrote: > > > https://codereview.chromium.org/1635593004/diff/80001/third_party/WebKit/Source/bindings/scripts/v8_attributes.py ...
4 years, 11 months ago (2016-01-28 05:12:55 UTC) #16
iclelland
Thanks, haraken! rbyers -- can you just take a look at WebKit/public/platform? Thanks https://codereview.chromium.org/1635593004/diff/80001/content/child/origin_trials/trial_token_validator.cc File ...
4 years, 10 months ago (2016-01-28 12:18:12 UTC) #17
Rick Byers
Sorry for the delay - I'm travelling and forgot to update my code review name. ...
4 years, 10 months ago (2016-02-02 04:50:12 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1635593004/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1635593004/120001
4 years, 10 months ago (2016-02-02 14:13:29 UTC) #21
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 10 months ago (2016-02-02 15:00:50 UTC) #23
commit-bot: I haz the power
4 years, 10 months ago (2016-02-02 15:02:09 UTC) #25
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/5b27fa016f2736e2186984e5f737e805c2836d9c
Cr-Commit-Position: refs/heads/master@{#372943}

Powered by Google App Engine
This is Rietveld 408576698