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

Issue 2640773002: [NTP::PhysicalWeb] Filter our pages with same group_id. (Closed)

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

Description

[NTP::PhysicalWeb] Filter our pages with same group_id. 1) If there are pages with the same non-empty group_id, only the closest one is left. 2) Absence of distance estimate (represented with a negative value) is handled as infinite distance. The reason: suggestions for pages with the same group_id appear the same in the UI. BUG=681981 Review-Url: https://codereview.chromium.org/2640773002 Cr-Commit-Position: refs/heads/master@{#444353} Committed: https://chromium.googlesource.com/chromium/src/+/34b12e40418272d36ae5c94c58e50d97bd240697

Patch Set 1 : #

Total comments: 24

Patch Set 2 : treib@ comments. #

Total comments: 4

Patch Set 3 : treib@ nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -14 lines) Patch
M components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc View 1 2 3 chunks +67 lines, -12 lines 0 comments Download
M components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider_unittest.cc View 1 1 chunk +64 lines, -0 lines 0 comments Download
M components/physical_web/data_source/fake_physical_web_data_source.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/physical_web/data_source/fake_physical_web_data_source.cc View 3 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 26 (17 generated)
vitaliii
Hi treib@, could you have a look?
3 years, 11 months ago (2017-01-18 10:49:12 UTC) #5
vitaliii
Hi olivierrobin@, Could you have a look at my fake_physical_web_data_source.* change? We started using group_id, ...
3 years, 11 months ago (2017-01-18 11:23:53 UTC) #7
Marc Treib
One high-level comment: What does a group_id represent? Is it always okay to only show ...
3 years, 11 months ago (2017-01-18 11:24:01 UTC) #9
vitaliii
Hi treib@, Could you have a look? https://codereview.chromium.org/2640773002/diff/20001/components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc File components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc (right): https://codereview.chromium.org/2640773002/diff/20001/components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc#newcode40 components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc:40: std::string GetPageId(const ...
3 years, 11 months ago (2017-01-18 11:48:16 UTC) #14
Marc Treib
lgtm https://codereview.chromium.org/2640773002/diff/20001/components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc File components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc (right): https://codereview.chromium.org/2640773002/diff/20001/components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc#newcode62 components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc:62: // manually. On 2017/01/18 11:48:16, vitaliii (OOO until ...
3 years, 11 months ago (2017-01-18 11:54:48 UTC) #15
Olivier
fake_physical_web_data_source.* LGTM
3 years, 11 months ago (2017-01-18 11:55:57 UTC) #17
vitaliii
hi treib@ I addressed your nits, no need to look. https://codereview.chromium.org/2640773002/diff/20001/components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc File components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc (right): https://codereview.chromium.org/2640773002/diff/20001/components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc#newcode62 ...
3 years, 11 months ago (2017-01-18 14:02:27 UTC) #20
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/2640773002/60001
3 years, 11 months ago (2017-01-18 14:03:20 UTC) #23
commit-bot: I haz the power
3 years, 11 months ago (2017-01-18 14:50:24 UTC) #26
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/34b12e40418272d36ae5c94c58e5...

Powered by Google App Engine
This is Rietveld 408576698