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

Issue 2595883002: [NTP::SectionOrder] Add a flag to choose category ranker. (Closed)

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

Description

[NTP::SectionOrder] Add a flag to choose category ranker. This CL adds a flag to choose a category ranker. The default is ConstantCategoryRanker. I had to add FEATURE_WITH_VARIATIONS_VALUE_TYPE (but not MULTI_VALUE_TYPE), because the latter presumably cannot be controled via variations service. BUG=675946 Committed: https://crrev.com/a64fb41f45ac025608887c192ecdddf1be477846 Cr-Commit-Position: refs/heads/master@{#441332}

Patch Set 1 #

Total comments: 1

Patch Set 2 : rebase. #

Total comments: 10

Patch Set 3 : histograms.xml + jkrcal@ & tschumann comments. #

Total comments: 2

Patch Set 4 : jkrcal@ nit. #

Total comments: 6

Patch Set 5 : noyau@ comments (except iOS flag). #

Patch Set 6 : rebase. #

Patch Set 7 : renamed with "ContentSuggestions" prefix. #

Patch Set 8 : histograms.xml. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -7 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 3 chunks +34 lines, -2 lines 0 comments Download
M chrome/browser/ntp_snippets/content_suggestions_service_factory.cc View 1 2 3 4 5 6 3 chunks +4 lines, -3 lines 0 comments Download
M components/ntp_snippets/features.h View 1 2 3 4 2 chunks +24 lines, -0 lines 0 comments Download
M components/ntp_snippets/features.cc View 1 2 3 4 5 6 2 chunks +45 lines, -0 lines 0 comments Download
M ios/chrome/browser/ntp_snippets/ios_chrome_content_suggestions_service_factory.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 72 (46 generated)
vitaliii
Hi jkrcal@, PTAL. https://codereview.chromium.org/2595883002/diff/20001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (left): https://codereview.chromium.org/2595883002/diff/20001/chrome/app/generated_resources.grd#oldcode13952 chrome/app/generated_resources.grd:13952: - </message> Trailing whitespaces were automatically ...
3 years, 12 months ago (2016-12-22 08:28:57 UTC) #10
jkrcal
Generally, I am not happy about having the param and value names as literals on ...
3 years, 12 months ago (2016-12-22 10:06:01 UTC) #13
tschumann
https://codereview.chromium.org/2595883002/diff/60001/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc File chrome/browser/ntp_snippets/content_suggestions_service_factory.cc (right): https://codereview.chromium.org/2595883002/diff/60001/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc#newcode215 chrome/browser/ntp_snippets/content_suggestions_service_factory.cc:215: if (category_ranker_parameter == "constant") { On 2016/12/22 10:06:01, jkrcal ...
3 years, 12 months ago (2016-12-22 10:31:26 UTC) #15
vitaliii
I addressed your comments, please have a look. https://codereview.chromium.org/2595883002/diff/60001/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc File chrome/browser/ntp_snippets/content_suggestions_service_factory.cc (right): https://codereview.chromium.org/2595883002/diff/60001/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc#newcode5 chrome/browser/ntp_snippets/content_suggestions_service_factory.cc:5: #include ...
3 years, 12 months ago (2016-12-22 13:11:37 UTC) #18
vitaliii
I addressed your comments, please have a look. https://codereview.chromium.org/2595883002/diff/60001/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc File chrome/browser/ntp_snippets/content_suggestions_service_factory.cc (right): https://codereview.chromium.org/2595883002/diff/60001/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc#newcode5 chrome/browser/ntp_snippets/content_suggestions_service_factory.cc:5: #include ...
3 years, 12 months ago (2016-12-22 13:11:37 UTC) #19
jkrcal
lgtm with a nit https://codereview.chromium.org/2595883002/diff/60001/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc File chrome/browser/ntp_snippets/content_suggestions_service_factory.cc (right): https://codereview.chromium.org/2595883002/diff/60001/chrome/browser/ntp_snippets/content_suggestions_service_factory.cc#newcode5 chrome/browser/ntp_snippets/content_suggestions_service_factory.cc:5: #include "chrome/browser/ntp_snippets/content_suggestions_service_factory.h" On 2016/12/22 13:11:37, ...
3 years, 12 months ago (2016-12-22 13:39:16 UTC) #20
vitaliii
I addressed your nit, no need to look. https://codereview.chromium.org/2595883002/diff/80001/components/ntp_snippets/features.h File components/ntp_snippets/features.h (right): https://codereview.chromium.org/2595883002/diff/80001/components/ntp_snippets/features.h#newcode47 components/ntp_snippets/features.h:47: const ...
3 years, 12 months ago (2016-12-22 13:47:11 UTC) #21
vitaliii
Hi noyau@, Could you have a look at my changes of ios_chrome_content_suggestions_service_factory.cc?
3 years, 12 months ago (2016-12-22 13:49:11 UTC) #25
vitaliii
Hi jwd@, could you have a look at my histograms.xml change? I added a new ...
3 years, 12 months ago (2016-12-22 13:53:36 UTC) #27
noyau (Ping after 24h)
The flags should be declared on ios as well, to be possibly changed via finch ...
3 years, 12 months ago (2016-12-22 14:06:52 UTC) #28
noyau (Ping after 24h)
On 2016/12/22 14:06:52, noyau wrote: > [...] > https://codereview.chromium.org/2595883002/diff/100001/ios/chrome/browser/ntp_snippets/ios_chrome_content_suggestions_service_factory.cc > File > ios/chrome/browser/ntp_snippets/ios_chrome_content_suggestions_service_factory.cc > (right): ...
3 years, 12 months ago (2016-12-22 14:09:51 UTC) #29
vitaliii
Hi noyau@, I addressed your comments (except iOS flag, which is going to be done ...
3 years, 12 months ago (2016-12-23 13:12:51 UTC) #44
noyau (Ping after 24h)
https://codereview.chromium.org/2595883002/diff/100001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/2595883002/diff/100001/chrome/app/generated_resources.grd#newcode15138 chrome/app/generated_resources.grd:15138: + NTP category ranker. On 2016/12/23 13:12:51, vitaliii wrote: ...
3 years, 12 months ago (2016-12-23 13:26:17 UTC) #45
tschumann
On 2016/12/23 13:12:51, vitaliii wrote: > Hi noyau@, > > I addressed your comments > ...
3 years, 12 months ago (2016-12-23 13:27:02 UTC) #46
tschumann
https://codereview.chromium.org/2595883002/diff/100001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/2595883002/diff/100001/chrome/app/generated_resources.grd#newcode15138 chrome/app/generated_resources.grd:15138: + NTP category ranker. On 2016/12/23 13:26:17, noyau wrote: ...
3 years, 12 months ago (2016-12-23 13:46:20 UTC) #47
vitaliii
Hi jkrcal@, what do you think about "IDS_FLAGS_SUGGESTIONS_CATEGORY_RANKER"?
3 years, 11 months ago (2017-01-02 08:08:49 UTC) #50
jkrcal
On 2017/01/02 08:08:49, vitaliii wrote: > Hi jkrcal@, > > what do you think about ...
3 years, 11 months ago (2017-01-02 09:01:37 UTC) #51
vitaliii
Hello noyau@, I renamed the flag with "ContentSuggestions" prefix. Could you have a look?
3 years, 11 months ago (2017-01-02 12:44:04 UTC) #52
noyau (Ping after 24h)
lgtm
3 years, 11 months ago (2017-01-02 12:57:05 UTC) #53
vitaliii
Hi jwd@, please have a look at my histograms.xml change.
3 years, 11 months ago (2017-01-02 13:41:06 UTC) #56
vitaliii
Hi rkaplow@, Unfortunately, I cannot reach jwd@, could you please take a look at my ...
3 years, 11 months ago (2017-01-03 07:28:53 UTC) #60
jwd
histograms LGTM
3 years, 11 months ago (2017-01-03 20:59:33 UTC) #61
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/2595883002/220001
3 years, 11 months ago (2017-01-04 06:38:48 UTC) #65
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/2595883002/220001
3 years, 11 months ago (2017-01-04 06:42:40 UTC) #67
commit-bot: I haz the power
Committed patchset #8 (id:220001)
3 years, 11 months ago (2017-01-04 07:41:07 UTC) #70
commit-bot: I haz the power
3 years, 11 months ago (2017-01-04 07:45:17 UTC) #72
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/a64fb41f45ac025608887c192ecdddf1be477846
Cr-Commit-Position: refs/heads/master@{#441332}

Powered by Google App Engine
This is Rietveld 408576698