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

Issue 2560783002: [NTP::PhysicalWeb] Implement suggestion dismissal. (Closed)

Created:
4 years ago by vitaliii
Modified:
4 years ago
Reviewers:
Bernhard Bauer, jkrcal
CC:
chromium-reviews, ntp-dev+reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[NTP::PhysicalWeb] Implement suggestion dismissal. After this CL Physical Web suggestions on the NTP can be dismissed. The list is stored in prefs. It is pruned on fetches and when URL is lost. BUG=667766 Committed: https://crrev.com/2600e8e00ef42b3399872fe8fec5ba829793e337 Cr-Commit-Position: refs/heads/master@{#437573}

Patch Set 1 #

Total comments: 15

Patch Set 2 : jkrcal@ comments. #

Patch Set 3 : rebase and jkrcal@ comment. #

Total comments: 2

Patch Set 4 : bauerb@ comment. #

Total comments: 2

Patch Set 5 : rebase and bauerb@ nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+280 lines, -36 lines) Patch
M chrome/browser/android/preferences/browser_prefs_android.cc View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ntp_snippets/content_suggestions_service_factory.cc View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 2 chunks +10 lines, -0 lines 0 comments Download
M components/ntp_snippets/content_suggestions_provider.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M components/ntp_snippets/content_suggestions_service.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M components/ntp_snippets/content_suggestions_service.cc View 1 2 1 chunk +4 lines, -5 lines 0 comments Download
M components/ntp_snippets/offline_pages/recent_tab_suggestions_provider.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.h View 5 chunks +23 lines, -3 lines 0 comments Download
M components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc View 1 9 chunks +84 lines, -10 lines 0 comments Download
M components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider_unittest.cc View 1 6 chunks +140 lines, -2 lines 0 comments Download
M components/ntp_snippets/pref_names.h View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M components/ntp_snippets/pref_names.cc View 1 2 3 4 1 chunk +7 lines, -4 lines 0 comments Download

Messages

Total messages: 36 (22 generated)
vitaliii
Hi jkrcal@, could you have a look?
4 years ago (2016-12-07 12:43:50 UTC) #4
jkrcal
lgtm with nits (assuming you removed the DCHECK by mistake) https://codereview.chromium.org/2560783002/diff/1/components/ntp_snippets/content_suggestions_service.cc File components/ntp_snippets/content_suggestions_service.cc (right): https://codereview.chromium.org/2560783002/diff/1/components/ntp_snippets/content_suggestions_service.cc#newcode171 ...
4 years ago (2016-12-07 14:20:01 UTC) #7
vitaliii
Hi jkrcal@, I addressed your comments. PTAL. DCHECK removal was intended, see the comment. https://codereview.chromium.org/2560783002/diff/1/components/ntp_snippets/content_suggestions_service.cc ...
4 years ago (2016-12-08 07:13:42 UTC) #11
vitaliii
Hi jkrcal@, I addressed your comments. PTAL. DCHECK removal was intended, see the comment.
4 years ago (2016-12-08 07:13:42 UTC) #12
jkrcal
Still lgtm, thanks! https://codereview.chromium.org/2560783002/diff/1/components/ntp_snippets/content_suggestions_service.cc File components/ntp_snippets/content_suggestions_service.cc (right): https://codereview.chromium.org/2560783002/diff/1/components/ntp_snippets/content_suggestions_service.cc#newcode171 components/ntp_snippets/content_suggestions_service.cc:171: RemoveSuggestionByID(suggestion_id); On 2016/12/08 07:13:41, vitaliii wrote: ...
4 years ago (2016-12-08 09:55:42 UTC) #15
vitaliii
Hi bauerb@, could you have a look at browser_prefs_android.cc change? https://codereview.chromium.org/2560783002/diff/1/components/ntp_snippets/content_suggestions_service.cc File components/ntp_snippets/content_suggestions_service.cc (right): https://codereview.chromium.org/2560783002/diff/1/components/ntp_snippets/content_suggestions_service.cc#newcode171 ...
4 years ago (2016-12-08 11:05:29 UTC) #17
LeonardWalton143
The ayurvedic treatments in Kerala were famous among people. Through their best treatments people will ...
4 years ago (2016-12-08 11:25:03 UTC) #18
Bernhard Bauer
https://codereview.chromium.org/2560783002/diff/60001/chrome/browser/android/preferences/browser_prefs_android.cc File chrome/browser/android/preferences/browser_prefs_android.cc (right): https://codereview.chromium.org/2560783002/diff/60001/chrome/browser/android/preferences/browser_prefs_android.cc#newcode24 chrome/browser/android/preferences/browser_prefs_android.cc:24: ntp_snippets::RecentTabSuggestionsProvider::RegisterProfilePrefs(registry); In retrospect, it would probably make more sense ...
4 years ago (2016-12-08 15:09:39 UTC) #21
vitaliii
Hi bauerb@, PTAL. https://codereview.chromium.org/2560783002/diff/60001/chrome/browser/android/preferences/browser_prefs_android.cc File chrome/browser/android/preferences/browser_prefs_android.cc (right): https://codereview.chromium.org/2560783002/diff/60001/chrome/browser/android/preferences/browser_prefs_android.cc#newcode24 chrome/browser/android/preferences/browser_prefs_android.cc:24: ntp_snippets::RecentTabSuggestionsProvider::RegisterProfilePrefs(registry); On 2016/12/08 15:09:39, Bernhard Bauer ...
4 years ago (2016-12-09 09:20:31 UTC) #24
Bernhard Bauer
LGTM with one final nit :) https://codereview.chromium.org/2560783002/diff/80001/chrome/browser/prefs/browser_prefs.cc File chrome/browser/prefs/browser_prefs.cc (right): https://codereview.chromium.org/2560783002/diff/80001/chrome/browser/prefs/browser_prefs.cc#newcode554 chrome/browser/prefs/browser_prefs.cc:554: #if defined(OS_ANDROID) Can ...
4 years ago (2016-12-09 14:33:07 UTC) #27
vitaliii
Addressed bauerb@ nit, no need to look. https://codereview.chromium.org/2560783002/diff/80001/chrome/browser/prefs/browser_prefs.cc File chrome/browser/prefs/browser_prefs.cc (right): https://codereview.chromium.org/2560783002/diff/80001/chrome/browser/prefs/browser_prefs.cc#newcode554 chrome/browser/prefs/browser_prefs.cc:554: #if defined(OS_ANDROID) ...
4 years ago (2016-12-09 16:13:48 UTC) #28
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/2560783002/100001
4 years ago (2016-12-09 16:14:14 UTC) #31
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years ago (2016-12-09 17:24:14 UTC) #34
commit-bot: I haz the power
4 years ago (2016-12-12 14:35:45 UTC) #36
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/2600e8e00ef42b3399872fe8fec5ba829793e337
Cr-Commit-Position: refs/heads/master@{#437573}

Powered by Google App Engine
This is Rietveld 408576698