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

Issue 1741783002: Add disabled origin trial feature list (Closed)

Created:
4 years, 10 months ago by iclelland
Modified:
4 years, 6 months ago
CC:
chasej+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, jam, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, Sorin Jianu
Base URL:
https://chromium.googlesource.com/chromium/src.git@ef-finch
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add disabled origin trial feature list Adds both a command line option, "--origin-trial-disabled-features", and a corresponding component manifest key, to exclude features from origin trials. Disabling features in this manner will not stop them from being enabled via the command line, or chrome://flags, but will stop them from being enabled by remote origins through origin trials. The manifest data from the component will be persisted in browser local state, as a list of strings under the key "origin_trials.disabled_features". BUG=589830, 614454 Committed: https://crrev.com/79237e966353560115a92eb802aa7da459cdaf9f Cr-Commit-Position: refs/heads/master@{#401583}

Patch Set 1 #

Patch Set 2 : Rebase; style fixes #

Total comments: 4

Patch Set 3 : Rebase #

Patch Set 4 : Rebase, addressing comments #

Patch Set 5 : Rebase #

Patch Set 6 : Add disabled features to origin trials component manifest #

Patch Set 7 : Rebase; fix after crrev.com/cb60e703 landed #

Total comments: 3

Patch Set 8 : Store policy configuration in local preferences #

Patch Set 9 : Remove old code from chrome_main_delegate #

Patch Set 10 : Separate the introduction of preference-persistence into a different CL #

Total comments: 22

Patch Set 11 : Rebase against changes in parent CL #

Patch Set 12 : Const correctness; clear disabled features #

Total comments: 8

Patch Set 13 : Addressing comments from PS#12 #

Patch Set 14 : Rebase #

Patch Set 15 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+156 lines, -7 lines) Patch
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +19 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/component_updater/origin_trials_component_installer.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/prefs/origin_trial_prefs.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/origin_trials/chrome_origin_trial_policy.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/common/origin_trials/chrome_origin_trial_policy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +28 lines, -3 lines 0 comments Download
M chrome/common/origin_trials/chrome_origin_trial_policy_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +39 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -0 lines 0 comments Download
M content/common/origin_trials/trial_token_validator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -0 lines 0 comments Download
M content/common/origin_trials/trial_token_validator_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +29 lines, -0 lines 0 comments Download
M content/public/common/origin_trial_policy.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M content/shell/common/shell_origin_trial_policy.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M content/shell/common/shell_origin_trial_policy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/origin_trials/OriginTrialContext.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +5 lines, -2 lines 0 comments Download
M third_party/WebKit/public/platform/WebOriginTrialTokenStatus.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 46 (16 generated)
iclelland
+r chasej, PTAL, thanks
4 years, 10 months ago (2016-02-26 15:34:13 UTC) #3
chasej
A few minor comments. https://codereview.chromium.org/1741783002/diff/20001/content/public/renderer/content_renderer_client.h File content/public/renderer/content_renderer_client.h (right): https://codereview.chromium.org/1741783002/diff/20001/content/public/renderer/content_renderer_client.h#newcode336 content/public/renderer/content_renderer_client.h:336: // origin trials are not ...
4 years, 9 months ago (2016-02-29 19:23:26 UTC) #4
iclelland
https://codereview.chromium.org/1741783002/diff/20001/content/public/renderer/content_renderer_client.h File content/public/renderer/content_renderer_client.h (right): https://codereview.chromium.org/1741783002/diff/20001/content/public/renderer/content_renderer_client.h#newcode336 content/public/renderer/content_renderer_client.h:336: // origin trials are not enabled in this context. ...
4 years, 7 months ago (2016-05-24 19:38:43 UTC) #6
iclelland
+r waffles for component updater integration
4 years, 6 months ago (2016-05-27 14:30:50 UTC) #9
waffles
https://codereview.chromium.org/1741783002/diff/120001/chrome/browser/component_updater/origin_trials_component_installer.cc File chrome/browser/component_updater/origin_trials_component_installer.cc (right): https://codereview.chromium.org/1741783002/diff/120001/chrome/browser/component_updater/origin_trials_component_installer.cc#newcode91 chrome/browser/component_updater/origin_trials_component_installer.cc:91: override_disabled_features); Hm, are you sure this will run in ...
4 years, 6 months ago (2016-05-27 17:10:07 UTC) #10
iclelland
https://codereview.chromium.org/1741783002/diff/120001/chrome/browser/component_updater/origin_trials_component_installer.cc File chrome/browser/component_updater/origin_trials_component_installer.cc (right): https://codereview.chromium.org/1741783002/diff/120001/chrome/browser/component_updater/origin_trials_component_installer.cc#newcode91 chrome/browser/component_updater/origin_trials_component_installer.cc:91: override_disabled_features); On 2016/05/27 17:10:06, waffles wrote: > Hm, are ...
4 years, 6 months ago (2016-05-30 18:54:06 UTC) #11
iclelland
https://codereview.chromium.org/1741783002/diff/120001/chrome/browser/component_updater/origin_trials_component_installer.cc File chrome/browser/component_updater/origin_trials_component_installer.cc (right): https://codereview.chromium.org/1741783002/diff/120001/chrome/browser/component_updater/origin_trials_component_installer.cc#newcode91 chrome/browser/component_updater/origin_trials_component_installer.cc:91: override_disabled_features); On 2016/05/30 18:54:06, iclelland wrote: > On 2016/05/27 ...
4 years, 6 months ago (2016-05-31 14:50:13 UTC) #12
iclelland
After much back-and-forth on email, it was determined that -- Yes, the race is real ...
4 years, 6 months ago (2016-06-07 13:52:02 UTC) #14
chasej
https://codereview.chromium.org/1741783002/diff/180001/chrome/browser/component_updater/origin_trials_component_installer.cc File chrome/browser/component_updater/origin_trials_component_installer.cc (right): https://codereview.chromium.org/1741783002/diff/180001/chrome/browser/component_updater/origin_trials_component_installer.cc#newcode83 chrome/browser/component_updater/origin_trials_component_installer.cc:83: ListPrefUpdate update(local_state, "origin-trials.disabled-features"); Use prefs::kOriginTrialDisabledFeatures constant? https://codereview.chromium.org/1741783002/diff/180001/chrome/common/origin_trials/origin_trial_key_manager.cc File chrome/common/origin_trials/origin_trial_key_manager.cc ...
4 years, 6 months ago (2016-06-07 15:51:31 UTC) #16
Sorin Jianu
Thank you Ian. A bunch of const-correctness nits and suggestions. https://codereview.chromium.org/1741783002/diff/180001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/1741783002/diff/180001/chrome/browser/chrome_browser_main.cc#newcode833 ...
4 years, 6 months ago (2016-06-07 17:20:25 UTC) #18
iclelland
https://codereview.chromium.org/1741783002/diff/180001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/1741783002/diff/180001/chrome/browser/chrome_browser_main.cc#newcode833 chrome/browser/chrome_browser_main.cc:833: std::string override_disabled_features = On 2016/06/07 17:20:24, Sorin Jianu wrote: ...
4 years, 6 months ago (2016-06-08 13:37:56 UTC) #19
iclelland
https://codereview.chromium.org/1741783002/diff/180001/chrome/common/origin_trials/origin_trial_key_manager.h File chrome/common/origin_trials/origin_trial_key_manager.h (right): https://codereview.chromium.org/1741783002/diff/180001/chrome/common/origin_trials/origin_trial_key_manager.h#newcode18 chrome/common/origin_trials/origin_trial_key_manager.h:18: class OriginTrialKeyManager { On 2016/06/07 15:51:31, chasej wrote: > ...
4 years, 6 months ago (2016-06-08 15:38:52 UTC) #20
chasej
Some additional comments that I probably should have found before (apologies for the extra round). ...
4 years, 6 months ago (2016-06-08 16:14:25 UTC) #21
iclelland
https://codereview.chromium.org/1741783002/diff/220001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/1741783002/diff/220001/chrome/browser/chrome_browser_main.cc#newcode825 chrome/browser/chrome_browser_main.cc:825: std::vector<std::string> disabled_features; On 2016/06/08 16:14:24, chasej wrote: > Nit: ...
4 years, 6 months ago (2016-06-08 17:43:45 UTC) #22
chasej
lgtm
4 years, 6 months ago (2016-06-08 19:43:20 UTC) #23
waffles
lgtm
4 years, 6 months ago (2016-06-09 15:17:29 UTC) #24
iclelland
Thanks! jochen, can you PTAL? Thanks!
4 years, 6 months ago (2016-06-09 16:21:59 UTC) #26
jochen (gone - plz use gerrit)
can you rebase that on top of the origin trial policy CL?
4 years, 6 months ago (2016-06-13 15:28:12 UTC) #27
iclelland
The dependency is in the other direction right now; if I pull out the disabled-feature-list ...
4 years, 6 months ago (2016-06-15 07:50:11 UTC) #28
iclelland
Rebased this on top of https://codereview.chromium.org/2047683002/, which now depends on the OriginTrialPolicy CL (https://codereview.chromium.org/2049783002/) This ...
4 years, 6 months ago (2016-06-15 09:48:34 UTC) #29
iclelland
On 2016/06/15 09:48:34, iclelland wrote: > Rebased this on top of https://codereview.chromium.org/2047683002/, which now > ...
4 years, 6 months ago (2016-06-22 15:48:17 UTC) #30
jochen (gone - plz use gerrit)
lgtm
4 years, 6 months ago (2016-06-22 15:53:23 UTC) #31
Sorin Jianu
lgtm Thank you!
4 years, 6 months ago (2016-06-22 16:30:58 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1741783002/280001
4 years, 6 months ago (2016-06-22 16:55:56 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/205122)
4 years, 6 months ago (2016-06-22 17:07:22 UTC) #37
iclelland
+r rkaplow -- Can you PTAL at histograms.xml? (The corresponding enum is in public/platform/WebOriginTrialTokenStatus.h) Thanks!
4 years, 6 months ago (2016-06-22 17:16:11 UTC) #39
rkaplow
lgtm
4 years, 6 months ago (2016-06-23 04:15:36 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1741783002/280001
4 years, 6 months ago (2016-06-23 12:00:08 UTC) #42
commit-bot: I haz the power
Committed patchset #15 (id:280001)
4 years, 6 months ago (2016-06-23 12:04:14 UTC) #44
commit-bot: I haz the power
4 years, 6 months ago (2016-06-23 12:05:29 UTC) #46
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/79237e966353560115a92eb802aa7da459cdaf9f
Cr-Commit-Position: refs/heads/master@{#401583}

Powered by Google App Engine
This is Rietveld 408576698