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

Issue 2321273003: Extend VariationParamsManager to support feature associations. (Closed)

Created:
4 years, 3 months ago by jkrcal
Modified:
4 years ago
CC:
chromium-reviews, asvitkine+watch_chromium.org, ntp-dev+reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Extend VariationParamsManager to support feature associations. Previously, feature associations for variation parameters were not easy to register in unit-tests. This CL extends VariationParamsManager to do it automatically. BUG=645447 Committed: https://crrev.com/ce21e97f5e7a87e3cef9459dd578279e24f553d8 Cr-Commit-Position: refs/heads/master@{#436433}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Alexei's comments #

Total comments: 8

Patch Set 3 : Rebase #

Patch Set 4 : Rebase #

Patch Set 5 : Alexei's comments #2 #

Patch Set 6 : Rebase #

Patch Set 7 : Fix a merge error #

Patch Set 8 : Move to test_support lib #

Patch Set 9 : Move to test_support lib #2 #

Patch Set 10 : Move to test_support lib #3 #

Patch Set 11 : Fix a compile error #

Patch Set 12 : Fix new uses of VarationParamsManager #

Patch Set 13 : Further simplify the usage (and the CL) #

Patch Set 14 : Fixing windows build? #

Total comments: 10

Patch Set 15 : Alexei's comments + more refactoring in hats #

Patch Set 16 : Rebase #

Patch Set 17 : Rebase #

Total comments: 2

Patch Set 18 : Last comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+301 lines, -80 lines) Patch
M chrome/browser/chromeos/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/hats/hats_finch_helper_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +8 lines, -13 lines 0 comments Download
M chrome/browser/component_updater/sw_reporter_installer_win_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +7 lines, -13 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M components/ntp_snippets/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -1 line 0 comments Download
M components/ntp_snippets/remote/ntp_snippets_fetcher_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
A components/ntp_snippets/remote/ntp_snippets_status_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +82 lines, -0 lines 0 comments Download
M components/ntp_snippets/remote/remote_suggestions_provider_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M components/variations/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +16 lines, -0 lines 0 comments Download
M components/variations/variations_associated_data.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +7 lines, -29 lines 0 comments Download
M components/variations/variations_associated_data.cc View 1 2 3 4 5 6 3 chunks +1 line, -22 lines 0 comments Download
A components/variations/variations_params_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +83 lines, -0 lines 0 comments Download
A components/variations/variations_params_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +92 lines, -0 lines 0 comments Download

Messages

Total messages: 57 (38 generated)
jkrcal
Alexei, PTAL at variations_associated_data.* Marc, PTAL at the ntp_snippets stuff. This is just a preparation ...
4 years, 3 months ago (2016-09-09 13:03:52 UTC) #2
Alexei Svitkine (slow)
https://codereview.chromium.org/2321273003/diff/1/components/variations/variations_associated_data.cc File components/variations/variations_associated_data.cc (right): https://codereview.chromium.org/2321273003/diff/1/components/variations/variations_associated_data.cc#newcode301 components/variations/variations_associated_data.cc:301: base::FeatureList::ClearInstanceForTesting(); Clearing the instance is a surprising effect, ideally ...
4 years, 3 months ago (2016-09-09 18:33:02 UTC) #3
Marc Treib
ntp_snippets lgtm
4 years, 3 months ago (2016-09-12 09:27:57 UTC) #4
jkrcal
Alexei, thanks for the comment. PTAL, again! https://codereview.chromium.org/2321273003/diff/1/components/variations/variations_associated_data.cc File components/variations/variations_associated_data.cc (right): https://codereview.chromium.org/2321273003/diff/1/components/variations/variations_associated_data.cc#newcode301 components/variations/variations_associated_data.cc:301: base::FeatureList::ClearInstanceForTesting(); On ...
4 years, 3 months ago (2016-09-12 15:39:18 UTC) #5
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/2321273003/diff/20001/components/variations/variations_params_manager.cc File components/variations/variations_params_manager.cc (right): https://codereview.chromium.org/2321273003/diff/20001/components/variations/variations_params_manager.cc#newcode15 components/variations/variations_params_manager.cc:15: Nit: Remove empty line https://codereview.chromium.org/2321273003/diff/20001/components/variations/variations_params_manager.cc#newcode72 components/variations/variations_params_manager.cc:72: Nit: Remove ...
4 years, 3 months ago (2016-09-12 16:54:14 UTC) #6
jkrcal
Thanks, Alexei! Sorry for the delay, I had more pressing stuff to deal with. https://codereview.chromium.org/2321273003/diff/20001/components/variations/variations_params_manager.cc ...
4 years, 2 months ago (2016-09-23 13:40:10 UTC) #9
jkrcal
Alexei, I am sorry for the delay. I've been sick for very very long. Now ...
4 years ago (2016-11-23 18:06:44 UTC) #22
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/2321273003/diff/250001/chrome/browser/component_updater/sw_reporter_installer_win_unittest.cc File chrome/browser/component_updater/sw_reporter_installer_win_unittest.cc (right): https://codereview.chromium.org/2321273003/diff/250001/chrome/browser/component_updater/sw_reporter_installer_win_unittest.cc#newcode140 chrome/browser/component_updater/sw_reporter_installer_win_unittest.cc:140: constexpr char kFeatureName[] = "ExperimentalSwReporterEngine"; Nit: Rename to ...
4 years ago (2016-11-24 19:29:41 UTC) #29
jkrcal
Thanks, Alexei! https://codereview.chromium.org/2321273003/diff/250001/chrome/browser/component_updater/sw_reporter_installer_win_unittest.cc File chrome/browser/component_updater/sw_reporter_installer_win_unittest.cc (right): https://codereview.chromium.org/2321273003/diff/250001/chrome/browser/component_updater/sw_reporter_installer_win_unittest.cc#newcode140 chrome/browser/component_updater/sw_reporter_installer_win_unittest.cc:140: constexpr char kFeatureName[] = "ExperimentalSwReporterEngine"; On 2016/11/24 ...
4 years ago (2016-11-25 13:23:37 UTC) #32
jkrcal
I've touched more components: xiyuan, could you PTAL at hats_finch_helper_unittest.cc? (also adding malaykeshav who is ...
4 years ago (2016-11-25 14:43:40 UTC) #40
Joe Mason
On 2016/11/25 14:43:40, jkrcal wrote: > sorin, could you PTAL at sw_reporter_installer_win_unittest.cc? > (also adding ...
4 years ago (2016-11-25 16:17:54 UTC) #41
xiyuan
hats_finch_helper_unittest.cc lgtm
4 years ago (2016-11-28 23:29:31 UTC) #42
jkrcal
On 2016/11/25 16:17:54, Joe Mason wrote: > On 2016/11/25 14:43:40, jkrcal wrote: > > sorin, ...
4 years ago (2016-12-05 14:40:49 UTC) #43
Sorin Jianu
lgtm Thank you! Component updater lgtm https://codereview.chromium.org/2321273003/diff/310001/chrome/browser/component_updater/sw_reporter_installer_win_unittest.cc File chrome/browser/component_updater/sw_reporter_installer_win_unittest.cc (right): https://codereview.chromium.org/2321273003/diff/310001/chrome/browser/component_updater/sw_reporter_installer_win_unittest.cc#newcode150 chrome/browser/component_updater/sw_reporter_installer_win_unittest.cc:150: kFeatureAndTrialName /*trial_name*/, params_with_group, ...
4 years ago (2016-12-05 17:39:34 UTC) #44
jkrcal
Thanks, everybody! https://codereview.chromium.org/2321273003/diff/310001/chrome/browser/component_updater/sw_reporter_installer_win_unittest.cc File chrome/browser/component_updater/sw_reporter_installer_win_unittest.cc (right): https://codereview.chromium.org/2321273003/diff/310001/chrome/browser/component_updater/sw_reporter_installer_win_unittest.cc#newcode150 chrome/browser/component_updater/sw_reporter_installer_win_unittest.cc:150: kFeatureAndTrialName /*trial_name*/, params_with_group, On 2016/12/05 17:39:34, Sorin ...
4 years ago (2016-12-05 21:47:15 UTC) #51
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/2321273003/330001
4 years ago (2016-12-05 21:47:51 UTC) #52
Sorin Jianu
On 2016/12/05 21:47:15, jkrcal wrote: > Thanks, everybody! > > https://codereview.chromium.org/2321273003/diff/310001/chrome/browser/component_updater/sw_reporter_installer_win_unittest.cc > File chrome/browser/component_updater/sw_reporter_installer_win_unittest.cc > ...
4 years ago (2016-12-05 21:55:54 UTC) #53
commit-bot: I haz the power
Committed patchset #18 (id:330001)
4 years ago (2016-12-05 22:37:23 UTC) #55
commit-bot: I haz the power
4 years ago (2016-12-05 22:40:36 UTC) #57
Message was sent while issue was closed.
Patchset 18 (id:??) landed as
https://crrev.com/ce21e97f5e7a87e3cef9459dd578279e24f553d8
Cr-Commit-Position: refs/heads/master@{#436433}

Powered by Google App Engine
This is Rietveld 408576698