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

Issue 1680823004: [Feature Switch][Media Router] Add required field trials to MR switch. (Closed)

Created:
4 years, 10 months ago by imcheng
Modified:
4 years, 10 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Feature Switch][Media Router] Add required field trials to MR switch. Add a generic required_field_trials to FeatureSwitch that takes the place of a singular field_trial_name. When deciding whether to enable or disable a feature with field trials, all field trials will be queried (though short circuiting can occur): - If user is in "Enabled" group for all field trials, then enable feature. - If user is in "Disabled group for any field trials, then disable feature. - Otherwise, fall back to default value. Change the MR FeatureSwitches to depend on the EAR field trial. Per discussion, we will change the interpretation of MR field trial to be "X% of users that have EAR field trial enabled". BUG=541315 Committed: https://crrev.com/7c91fae3f88773af47a79f4a3bceaccfa1b27ea5 Cr-Commit-Position: refs/heads/master@{#374834}

Patch Set 1 : #

Total comments: 13

Patch Set 2 : Addressed Devlin's comments #

Patch Set 3 : #

Patch Set 4 : update desc #

Patch Set 5 : Changed back to check media_router() #

Total comments: 2

Patch Set 6 : Addressed comment + fix comple #

Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -39 lines) Patch
M chrome/common/extensions/feature_switch_unittest.cc View 1 7 chunks +60 lines, -16 lines 0 comments Download
M extensions/common/feature_switch.h View 1 2 3 4 chunks +11 lines, -4 lines 0 comments Download
M extensions/common/feature_switch.cc View 1 2 3 4 5 5 chunks +66 lines, -19 lines 0 comments Download

Messages

Total messages: 32 (13 generated)
imcheng
Devlin: PTAL. As discussed I added a generic dependent_field_trials to FeatureSwitch. I added one more ...
4 years, 10 months ago (2016-02-09 01:17:50 UTC) #4
Devlin
https://codereview.chromium.org/1680823004/diff/20001/extensions/common/feature_switch.cc File extensions/common/feature_switch.cc (right): https://codereview.chromium.org/1680823004/diff/20001/extensions/common/feature_switch.cc#newcode134 extensions/common/feature_switch.cc:134: kMediaRouterFlag) == "1") This doesn't account for the case ...
4 years, 10 months ago (2016-02-09 18:45:14 UTC) #5
imcheng
PTAL. https://codereview.chromium.org/1680823004/diff/20001/extensions/common/feature_switch.cc File extensions/common/feature_switch.cc (right): https://codereview.chromium.org/1680823004/diff/20001/extensions/common/feature_switch.cc#newcode134 extensions/common/feature_switch.cc:134: kMediaRouterFlag) == "1") On 2016/02/09 18:45:14, Devlin wrote: ...
4 years, 10 months ago (2016-02-09 21:35:40 UTC) #8
Devlin
https://codereview.chromium.org/1680823004/diff/20001/extensions/common/feature_switch.cc File extensions/common/feature_switch.cc (right): https://codereview.chromium.org/1680823004/diff/20001/extensions/common/feature_switch.cc#newcode134 extensions/common/feature_switch.cc:134: kMediaRouterFlag) == "1") On 2016/02/09 21:35:39, imcheng1 wrote: > ...
4 years, 10 months ago (2016-02-10 18:08:33 UTC) #10
imcheng
On 2016/02/10 18:08:33, Devlin wrote: > https://codereview.chromium.org/1680823004/diff/20001/extensions/common/feature_switch.cc > File extensions/common/feature_switch.cc (right): > > https://codereview.chromium.org/1680823004/diff/20001/extensions/common/feature_switch.cc#newcode134 > ...
4 years, 10 months ago (2016-02-10 18:31:28 UTC) #11
Devlin
On 2016/02/10 18:31:28, imcheng1 wrote: > Wouldn't it be an issue for a user without ...
4 years, 10 months ago (2016-02-10 18:45:59 UTC) #12
imcheng
On 2016/02/10 18:45:59, Devlin wrote: > On 2016/02/10 18:31:28, imcheng1 wrote: > > Wouldn't it ...
4 years, 10 months ago (2016-02-10 20:46:30 UTC) #13
imcheng
On 2016/02/10 20:46:30, imcheng1 wrote: > On 2016/02/10 18:45:59, Devlin wrote: > > On 2016/02/10 ...
4 years, 10 months ago (2016-02-10 20:49:39 UTC) #14
Devlin
On 2016/02/10 20:46:30, imcheng1 wrote: > Yeah but the problem is that the logic to ...
4 years, 10 months ago (2016-02-10 20:49:54 UTC) #15
Devlin
On 2016/02/10 20:49:39, imcheng1 wrote: > On 2016/02/10 20:46:30, imcheng1 wrote: > > On 2016/02/10 ...
4 years, 10 months ago (2016-02-10 20:50:38 UTC) #16
imcheng
On 2016/02/10 20:50:38, Devlin wrote: > On 2016/02/10 20:49:39, imcheng1 wrote: > > On 2016/02/10 ...
4 years, 10 months ago (2016-02-10 21:25:39 UTC) #17
imcheng
On 2016/02/10 20:49:54, Devlin wrote: > On 2016/02/10 20:46:30, imcheng1 wrote: > > Yeah but ...
4 years, 10 months ago (2016-02-10 21:34:08 UTC) #18
Devlin
lgtm https://codereview.chromium.org/1680823004/diff/120001/extensions/common/feature_switch.cc File extensions/common/feature_switch.cc (right): https://codereview.chromium.org/1680823004/diff/120001/extensions/common/feature_switch.cc#newcode241 extensions/common/feature_switch.cc:241: if (group_name == "Disabled") { nit: Might as ...
4 years, 10 months ago (2016-02-10 21:52:06 UTC) #20
imcheng
Thanks! https://codereview.chromium.org/1680823004/diff/120001/extensions/common/feature_switch.cc File extensions/common/feature_switch.cc (right): https://codereview.chromium.org/1680823004/diff/120001/extensions/common/feature_switch.cc#newcode241 extensions/common/feature_switch.cc:241: if (group_name == "Disabled") { On 2016/02/10 21:52:06, ...
4 years, 10 months ago (2016-02-10 21:57:42 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1680823004/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1680823004/140001
4 years, 10 months ago (2016-02-10 22:34:56 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/178446)
4 years, 10 months ago (2016-02-10 23:59:32 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1680823004/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1680823004/140001
4 years, 10 months ago (2016-02-11 00:54:26 UTC) #28
commit-bot: I haz the power
Committed patchset #6 (id:140001)
4 years, 10 months ago (2016-02-11 02:07:06 UTC) #30
commit-bot: I haz the power
4 years, 10 months ago (2016-02-16 22:34:00 UTC) #32
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/7c91fae3f88773af47a79f4a3bceaccfa1b27ea5
Cr-Commit-Position: refs/heads/master@{#374834}

Powered by Google App Engine
This is Rietveld 408576698