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

Issue 2669533002: [NTP::PhysicalWeb] In OnLost invalidate by |resolved_url|. (Closed)

Created:
3 years, 10 months ago by vitaliii
Modified:
3 years, 10 months ago
Reviewers:
Marc Treib
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] In OnLost invalidate by |resolved_url|. The OnLost notification is treated differently after this CL. Previously, the obtained url (|scanned_url|) was propagated further, which was not correct, because the |resolved_url| is used an an ID. In this CL a mapping from |scanned_url| to |resolved_url| is stored for all suggestions from the last update. This mapping is then used to obtain |resolved_url|, which is then propagated further. In addition to this, a case of multiple beacons for the same URL is considered. The suggestion is invalidated, only when its last beacon has been lost. BUG=685245 Review-Url: https://codereview.chromium.org/2669533002 Cr-Commit-Position: refs/heads/master@{#447253} Committed: https://chromium.googlesource.com/chromium/src/+/8666d444ab37fde30061683937c842156a08156b

Patch Set 1 : #

Total comments: 30

Patch Set 2 : treib@ comments. #

Patch Set 3 : treib@ comments. #

Total comments: 2

Patch Set 4 : treib@ comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -22 lines) Patch
M components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.h View 1 2 chunks +5 lines, -0 lines 0 comments Download
M components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc View 1 2 3 5 chunks +58 lines, -11 lines 0 comments Download
M components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider_unittest.cc View 1 2 3 2 chunks +71 lines, -11 lines 0 comments Download

Messages

Total messages: 27 (17 generated)
Marc Treib
https://codereview.chromium.org/2669533002/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/2669533002/diff/20001/components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc#newcode292 components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc:292: const auto& it = shown_scanned_urls_.find(url); nit: just "auto it", ...
3 years, 10 months ago (2017-01-31 11:02:41 UTC) #5
vitaliii
Hi treib@, I addressed your comments, could you have a look? https://codereview.chromium.org/2669533002/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): ...
3 years, 10 months ago (2017-01-31 12:33:49 UTC) #10
Marc Treib
https://codereview.chromium.org/2669533002/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/2669533002/diff/20001/components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc#newcode295 components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc:295: // TODO(vitaliii): Use |resolved_url| here when it is available. ...
3 years, 10 months ago (2017-01-31 13:31:04 UTC) #11
vitaliii
Hi Marc, I replied to your comments, please have a look. https://codereview.chromium.org/2669533002/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): ...
3 years, 10 months ago (2017-01-31 13:57:03 UTC) #14
Marc Treib
https://codereview.chromium.org/2669533002/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/2669533002/diff/20001/components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc#newcode295 components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc:295: // TODO(vitaliii): Use |resolved_url| here when it is available. ...
3 years, 10 months ago (2017-01-31 14:25:58 UTC) #15
vitaliii
Hi treib@, I replied to your comments, please have a look. https://codereview.chromium.org/2669533002/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): ...
3 years, 10 months ago (2017-01-31 15:10:57 UTC) #16
Marc Treib
Thanks! LGTM with some last comments. Sorry for the many rounds of back-and-forth. But this ...
3 years, 10 months ago (2017-01-31 15:38:31 UTC) #17
vitaliii
Hi treib@, I addressed your comments, no need to look. Sorry for not explaining earlier ...
3 years, 10 months ago (2017-01-31 16:15:03 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/2669533002/80001
3 years, 10 months ago (2017-01-31 16:41:38 UTC) #24
commit-bot: I haz the power
3 years, 10 months ago (2017-01-31 17:18:18 UTC) #27
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/8666d444ab37fde30061683937c8...

Powered by Google App Engine
This is Rietveld 408576698