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

Issue 2041783002: Preset variation parameters for NTPSnippets feature. (Closed)

Created:
4 years, 6 months ago by jkrcal
Modified:
4 years, 6 months ago
Reviewers:
Marc Treib
CC:
chromium-reviews, dzhioev+watch_chromium.org, achuith+watch_chromium.org, davemoore+watch_chromium.org, asvitkine+watch_chromium.org, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@about-flags-parameters
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Preset variation parameters for NTPSnippets feature. The CL uses the new FeatureEntry::FEATURE_WITH_VARIATIONS_VALUE type. It gives users more options for the NTPSnippets feature to choose from in chrome://flags. BUG=606320 Committed: https://crrev.com/b050f1526d5016e5e70d72682f4bb64b5ec2d50f Cr-Commit-Position: refs/heads/master@{#401020}

Patch Set 1 #

Patch Set 2 : Minor polish #

Patch Set 3 : Minor polish #2 #

Patch Set 4 : Changing the presets #

Patch Set 5 : Rebase #

Total comments: 4

Patch Set 6 : After code review #

Total comments: 5

Patch Set 7 : After code review #2 #

Patch Set 8 : After code review #3 #

Patch Set 9 : Rebase #2 #

Patch Set 10 : Minor polish #3 #

Patch Set 11 : Minor polish #4 #

Patch Set 12 : Removing unittests that test non-default behaviour #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -55 lines) Patch
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +36 lines, -1 line 0 comments Download
M components/ntp_snippets/ntp_snippets_fetcher.cc View 1 2 3 4 5 6 1 chunk +4 lines, -4 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_fetcher_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -50 lines 0 comments Download

Messages

Total messages: 35 (15 generated)
jkrcal
PTAL
4 years, 6 months ago (2016-06-17 12:10:19 UTC) #3
Marc Treib
https://codereview.chromium.org/2041783002/diff/80001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/2041783002/diff/80001/chrome/browser/about_flags.cc#newcode524 chrome/browser/about_flags.cc:524: const FeatureEntry::FeatureParam kNTPSnippetsFeatureVariationOnlyTopSites[] = { I find "TopSites" misleading ...
4 years, 6 months ago (2016-06-17 12:34:13 UTC) #4
jkrcal
Thanks! PTAL, again. https://codereview.chromium.org/2041783002/diff/80001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/2041783002/diff/80001/chrome/browser/about_flags.cc#newcode524 chrome/browser/about_flags.cc:524: const FeatureEntry::FeatureParam kNTPSnippetsFeatureVariationOnlyTopSites[] = { On ...
4 years, 6 months ago (2016-06-17 13:18:52 UTC) #5
Marc Treib
https://codereview.chromium.org/2041783002/diff/100001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/2041783002/diff/100001/chrome/browser/about_flags.cc#newcode518 chrome/browser/about_flags.cc:518: {"fetching_host_restrict", "off"}, Hm, the "Default" variant should probably not ...
4 years, 6 months ago (2016-06-17 13:43:54 UTC) #6
jkrcal
PTAL, again. https://codereview.chromium.org/2041783002/diff/100001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/2041783002/diff/100001/chrome/browser/about_flags.cc#newcode518 chrome/browser/about_flags.cc:518: {"fetching_host_restrict", "off"}, On 2016/06/17 13:43:54, Marc Treib ...
4 years, 6 months ago (2016-06-17 14:13:43 UTC) #7
Marc Treib
LGTM, thanks! https://codereview.chromium.org/2041783002/diff/100001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/2041783002/diff/100001/chrome/browser/about_flags.cc#newcode536 chrome/browser/about_flags.cc:536: {"", kNTPSnippetsFeatureVariationDefault, 2}, On 2016/06/17 14:13:43, jkrcal ...
4 years, 6 months ago (2016-06-17 15:14:50 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2041783002/140001
4 years, 6 months ago (2016-06-17 23:19:02 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/22927) ios-device-gn on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 6 months ago (2016-06-17 23:21:07 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2041783002/180001
4 years, 6 months ago (2016-06-18 07:09:18 UTC) #15
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/89909)
4 years, 6 months ago (2016-06-18 07:21:05 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2041783002/200001
4 years, 6 months ago (2016-06-20 14:42:20 UTC) #19
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios-simulator-gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator-gn/builds/23565)
4 years, 6 months ago (2016-06-20 15:01:58 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2041783002/220001
4 years, 6 months ago (2016-06-21 15:56:59 UTC) #23
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-21 16:37:01 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2041783002/220001
4 years, 6 months ago (2016-06-21 17:07:48 UTC) #28
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years, 6 months ago (2016-06-21 17:12:30 UTC) #30
commit-bot: I haz the power
Patchset 12 (id:??) landed as https://crrev.com/b050f1526d5016e5e70d72682f4bb64b5ec2d50f Cr-Commit-Position: refs/heads/master@{#401020}
4 years, 6 months ago (2016-06-21 17:15:15 UTC) #32
jkrcal
Marc, FYI I changed it to the arraysize macro. I also removed two unittests for ...
4 years, 6 months ago (2016-06-21 17:25:56 UTC) #33
Marc Treib
On 2016/06/21 17:25:56, jkrcal wrote: > Marc, FYI I changed it to the arraysize macro. ...
4 years, 6 months ago (2016-06-21 18:59:35 UTC) #34
jkrcal
4 years, 6 months ago (2016-06-23 08:23:17 UTC) #35
Message was sent while issue was closed.
On 2016/06/21 18:59:35, Marc Treib wrote:
> On 2016/06/21 17:25:56, jkrcal wrote:
> > Marc, FYI I changed it to the arraysize macro.
> > I also removed two unittests for the fetcher that relied on host_restriction
> > being "on". I will put the unittests back once we have code to set the
> > parameters values in unittests.
> 
> From Chris' reply on the mail thread, it seems there is already some way to
> force variation params in tests?

I wanted to wait until the CL of Chris lands.
I'll put the unittests back early next week.

Powered by Google App Engine
This is Rietveld 408576698