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

Issue 1306653004: Expand FeatureList to support FieldTrial association. (Closed)

Created:
5 years, 3 months ago by Alexei Svitkine (slow)
Modified:
5 years, 2 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Expand FeatureList to support FieldTrial association. This CL adds the following: - Two new APIs on FeatureList to be used during initialization. One to associate a field trial for reporting purposes when the feature is forced from the command line and the other to override the feature state via a field trial. - Passing the FeatureList instance to VariationsService during browser start up. - Extension of VariationsService (and associated proto changes) to invoke the two above APIs, when processing variations with the new proto fields. - A new API on FieldTrial to get the group name of a field trial without activating it, used by VariationsService when association a field trial. BUG=526169 Committed: https://crrev.com/8423d1721a4cf444a0dc5935b78bbf38ea82d834 Cr-Commit-Position: refs/heads/master@{#351199}

Patch Set 1 : #

Patch Set 2 : Rebase #

Total comments: 18

Patch Set 3 : Rebase. #

Patch Set 4 : Address Rob's comments. #

Total comments: 59

Patch Set 5 : Address some of isherman@'s comments. #

Patch Set 6 : More of isherman@'s comments addressed. #

Total comments: 2

Patch Set 7 : Address latest comments from isherman@. #

Total comments: 12

Patch Set 8 : Rebase. #

Patch Set 9 : Adopt FieldTrialList::IsTrialActive() API. #

Patch Set 10 : overriden -> overridden; at() -> find() #

Total comments: 2

Patch Set 11 : Move <utility> include to .cc. #

Patch Set 12 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+728 lines, -55 lines) Patch
M base/feature_list.h View 1 2 3 4 5 6 7 8 9 10 5 chunks +61 lines, -14 lines 0 comments Download
M base/feature_list.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +63 lines, -6 lines 0 comments Download
M base/feature_list_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +202 lines, -0 lines 0 comments Download
M base/metrics/field_trial.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M base/metrics/field_trial.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M base/metrics/field_trial_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +24 lines, -0 lines 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -2 lines 0 comments Download
M components/variations/proto/study.proto View 1 2 3 4 5 2 chunks +35 lines, -1 line 0 comments Download
M components/variations/service/variations_service.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +7 lines, -4 lines 0 comments Download
M components/variations/service/variations_service.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -2 lines 0 comments Download
M components/variations/variations_seed_processor.h View 3 chunks +8 lines, -2 lines 0 comments Download
M components/variations/variations_seed_processor.cc View 1 2 3 4 5 6 7 chunks +99 lines, -20 lines 0 comments Download
M components/variations/variations_seed_processor_unittest.cc View 1 2 3 4 5 6 7 8 5 chunks +215 lines, -4 lines 0 comments Download

Messages

Total messages: 45 (17 generated)
Alexei Svitkine (slow)
rkaplow & isherman: PTAL
5 years, 3 months ago (2015-09-11 20:27:05 UTC) #10
rkaplow
https://codereview.chromium.org/1306653004/diff/170001/base/feature_list.cc File base/feature_list.cc (right): https://codereview.chromium.org/1306653004/diff/170001/base/feature_list.cc#newcode61 base/feature_list.cc:61: // |for_forced_state|. overriden https://codereview.chromium.org/1306653004/diff/170001/base/feature_list.h File base/feature_list.h (right): https://codereview.chromium.org/1306653004/diff/170001/base/feature_list.h#newcode94 base/feature_list.h:94: ...
5 years, 3 months ago (2015-09-14 21:20:12 UTC) #11
Alexei Svitkine (slow)
Thanks Rob, PTAL! https://codereview.chromium.org/1306653004/diff/170001/base/feature_list.cc File base/feature_list.cc (right): https://codereview.chromium.org/1306653004/diff/170001/base/feature_list.cc#newcode61 base/feature_list.cc:61: // |for_forced_state|. On 2015/09/14 21:20:12, rkaplow ...
5 years, 3 months ago (2015-09-14 22:03:44 UTC) #13
rkaplow
lgtm https://codereview.chromium.org/1306653004/diff/170001/base/feature_list.h File base/feature_list.h (right): https://codereview.chromium.org/1306653004/diff/170001/base/feature_list.h#newcode94 base/feature_list.h:94: // Registers a field trial to override the ...
5 years, 3 months ago (2015-09-15 17:34:08 UTC) #14
Alexei Svitkine (slow)
Thanks - let's see what Ilya thinks about the above. :) On Tue, Sep 15, ...
5 years, 3 months ago (2015-09-15 17:35:39 UTC) #15
Ilya Sherman
Maybe my brain is just foggy from low sleep today, but I'm having a pretty ...
5 years, 3 months ago (2015-09-16 00:50:44 UTC) #16
Ilya Sherman
One thing that I think would help increase clarity would be to reduce the number ...
5 years, 3 months ago (2015-09-16 01:18:43 UTC) #17
Alexei Svitkine (slow)
On 2015/09/16 01:18:43, Ilya Sherman wrote: > One thing that I think would help increase ...
5 years, 3 months ago (2015-09-16 20:30:28 UTC) #18
Alexei Svitkine (slow)
Some replies to your other comments. Haven't made any changes yet (will probably have to ...
5 years, 3 months ago (2015-09-16 20:54:08 UTC) #19
Ilya Sherman
Thanks, Alexei. On 2015/09/16 20:30:28, Alexei Svitkine (slow) wrote: > On 2015/09/16 01:18:43, Ilya Sherman ...
5 years, 3 months ago (2015-09-17 01:02:46 UTC) #20
Alexei Svitkine (slow)
Thanks! I've addressed some of Ilya's comments - but haven't gotten to some of the ...
5 years, 3 months ago (2015-09-22 21:20:00 UTC) #21
Alexei Svitkine (slow)
https://codereview.chromium.org/1306653004/diff/230001/base/metrics/field_trial_unittest.cc File base/metrics/field_trial_unittest.cc (right): https://codereview.chromium.org/1306653004/diff/230001/base/metrics/field_trial_unittest.cc#newcode51 base/metrics/field_trial_unittest.cc:51: } On 2015/09/16 00:50:44, Ilya Sherman wrote: > nit: ...
5 years, 3 months ago (2015-09-23 17:33:32 UTC) #22
Alexei Svitkine (slow)
Addressed some more comments. There is still some stuff from isherman@'s review that I haven't ...
5 years, 3 months ago (2015-09-23 22:01:28 UTC) #23
Ilya Sherman
Thanks, Alexei =) https://codereview.chromium.org/1306653004/diff/230001/base/feature_list.cc File base/feature_list.cc (right): https://codereview.chromium.org/1306653004/diff/230001/base/feature_list.cc#newcode74 base/feature_list.cc:74: FieldTrialList::CreateFieldTrial(field_trial_name, group_name); On 2015/09/22 21:19:59, Alexei ...
5 years, 3 months ago (2015-09-24 01:11:33 UTC) #24
Alexei Svitkine (slow)
Thanks Ilya. PTAL. https://codereview.chromium.org/1306653004/diff/230001/base/feature_list.cc File base/feature_list.cc (right): https://codereview.chromium.org/1306653004/diff/230001/base/feature_list.cc#newcode74 base/feature_list.cc:74: FieldTrialList::CreateFieldTrial(field_trial_name, group_name); On 2015/09/24 01:11:32, Ilya ...
5 years, 3 months ago (2015-09-24 20:49:21 UTC) #26
Ilya Sherman
Thanks! I think the API exposed by the latest revision makes the code much more ...
5 years, 3 months ago (2015-09-25 03:47:22 UTC) #27
Alexei Svitkine (slow)
https://codereview.chromium.org/1306653004/diff/230001/components/variations/proto/study.proto File components/variations/proto/study.proto (right): https://codereview.chromium.org/1306653004/diff/230001/components/variations/proto/study.proto#newcode106 components/variations/proto/study.proto:106: optional string forcing_feature_off = 4; On 2015/09/25 03:47:22, Ilya ...
5 years, 3 months ago (2015-09-25 03:56:52 UTC) #28
Ilya Sherman
https://codereview.chromium.org/1306653004/diff/230001/components/variations/proto/study.proto File components/variations/proto/study.proto (right): https://codereview.chromium.org/1306653004/diff/230001/components/variations/proto/study.proto#newcode106 components/variations/proto/study.proto:106: optional string forcing_feature_off = 4; On 2015/09/25 03:56:51, Alexei ...
5 years, 3 months ago (2015-09-25 04:33:36 UTC) #29
Alexei Svitkine (slow)
PTAL. I still plan to add a few more tests to variations seed processor for ...
5 years, 2 months ago (2015-09-25 15:27:18 UTC) #30
Ilya Sherman
LGTM. Thanks, Alexei.
5 years, 2 months ago (2015-09-26 00:24:16 UTC) #31
Alexei Svitkine (slow)
+brettw, please review changes to chrome/browser/chrome_browser_main.cc
5 years, 2 months ago (2015-09-28 15:02:39 UTC) #33
brettw
chrome_browser_main lgtm https://codereview.chromium.org/1306653004/diff/370001/base/feature_list.h File base/feature_list.h (right): https://codereview.chromium.org/1306653004/diff/370001/base/feature_list.h#newcode10 base/feature_list.h:10: #include <utility> I don't see what this ...
5 years, 2 months ago (2015-09-28 20:40:55 UTC) #34
Alexei Svitkine (slow)
Thanks! https://codereview.chromium.org/1306653004/diff/370001/base/feature_list.h File base/feature_list.h (right): https://codereview.chromium.org/1306653004/diff/370001/base/feature_list.h#newcode10 base/feature_list.h:10: #include <utility> On 2015/09/28 20:40:55, brettw wrote: > ...
5 years, 2 months ago (2015-09-28 20:54:59 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1306653004/390001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1306653004/390001
5 years, 2 months ago (2015-09-28 20:55:28 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/102852) mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 2 months ago (2015-09-28 21:00:41 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1306653004/410001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1306653004/410001
5 years, 2 months ago (2015-09-28 21:43:22 UTC) #43
commit-bot: I haz the power
Committed patchset #12 (id:410001)
5 years, 2 months ago (2015-09-28 23:23:53 UTC) #44
commit-bot: I haz the power
5 years, 2 months ago (2015-09-28 23:25:31 UTC) #45
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/8423d1721a4cf444a0dc5935b78bbf38ea82d834
Cr-Commit-Position: refs/heads/master@{#351199}

Powered by Google App Engine
This is Rietveld 408576698