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

Issue 2236303002: Make OfflinePage ContentSuggestions dismissable (Closed)

Created:
4 years, 4 months ago by Philipp Keck
Modified:
4 years, 4 months ago
CC:
chromium-reviews, ntp-dev+reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make OfflinePage ContentSuggestions dismissable Make MakeUniqueID and friends const methods. Add a new pref to store the IDs of all dismissed offline pages. Add methods in OfflinePageSuggestionsProvider to store and load these IDs. Modify OnOfflinePagesLoaded to only forward non-dismissed items. Implement ClearDismissedSuggestionsForDebugging and a temporary version for GetDismissedSuggestionsForDebugging (the Snippets Internals will need refactoring for this to work properly). BUG=628198 Committed: https://crrev.com/c7c00479f3e57375b15c430b4057a51f8c2ce3e5 Cr-Commit-Position: refs/heads/master@{#411579}

Patch Set 1 #

Total comments: 18

Patch Set 2 : Rename the preference to recent_tabs to avoid renaming it later #

Patch Set 3 : Marc's comments #

Patch Set 4 : (ignore this, I accidentally cherry-picked this to the wrong branch) #

Patch Set 5 : Roll back to patch set 3 #

Patch Set 6 : base::Value --> std::unique_ptr<base::Value> #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -30 lines) Patch
M chrome/browser/ntp_snippets/content_suggestions_service_factory.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M components/ntp_snippets/content_suggestions_provider.h View 1 chunk +4 lines, -3 lines 0 comments Download
M components/ntp_snippets/content_suggestions_provider.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M components/ntp_snippets/offline_pages/offline_page_suggestions_provider.h View 4 chunks +22 lines, -1 line 0 comments Download
M components/ntp_snippets/offline_pages/offline_page_suggestions_provider.cc View 1 2 3 4 5 7 chunks +74 lines, -22 lines 0 comments Download
M components/ntp_snippets/pref_names.h View 1 chunk +2 lines, -0 lines 0 comments Download
M components/ntp_snippets/pref_names.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 17 (5 generated)
Philipp Keck
PTAL
4 years, 4 months ago (2016-08-11 10:02:37 UTC) #2
Marc Treib
One thing still missing is cleaning up the dismissed ids list when an offline page ...
4 years, 4 months ago (2016-08-11 10:28:12 UTC) #3
Marc Treib
On 2016/08/11 10:28:12, Marc Treib wrote: > One thing still missing is cleaning up the ...
4 years, 4 months ago (2016-08-11 10:28:37 UTC) #4
Marc Treib
4 years, 4 months ago (2016-08-11 10:28:42 UTC) #5
Philipp Keck
On 2016/08/11 10:28:12, Marc Treib wrote: > One thing still missing is cleaning up the ...
4 years, 4 months ago (2016-08-11 12:53:20 UTC) #6
Marc Treib
lgtm https://codereview.chromium.org/2236303002/diff/1/components/ntp_snippets/offline_pages/offline_page_suggestions_provider.cc File components/ntp_snippets/offline_pages/offline_page_suggestions_provider.cc (right): https://codereview.chromium.org/2236303002/diff/1/components/ntp_snippets/offline_pages/offline_page_suggestions_provider.cc#newcode200 components/ntp_snippets/offline_pages/offline_page_suggestions_provider.cc:200: dismissed_ids_.insert(dismissed_id); On 2016/08/11 12:53:19, Philipp Keck wrote: > ...
4 years, 4 months ago (2016-08-11 13:13:23 UTC) #7
Philipp Keck
bauerb@chromium.org: Please review changes in chrome/browser/prefs/browser_prefs.cc https://codereview.chromium.org/2236303002/diff/1/components/ntp_snippets/offline_pages/offline_page_suggestions_provider.cc File components/ntp_snippets/offline_pages/offline_page_suggestions_provider.cc (right): https://codereview.chromium.org/2236303002/diff/1/components/ntp_snippets/offline_pages/offline_page_suggestions_provider.cc#newcode200 components/ntp_snippets/offline_pages/offline_page_suggestions_provider.cc:200: dismissed_ids_.insert(dismissed_id); On 2016/08/11 ...
4 years, 4 months ago (2016-08-11 13:34:04 UTC) #9
Marc Treib
https://codereview.chromium.org/2236303002/diff/1/components/ntp_snippets/offline_pages/offline_page_suggestions_provider.cc File components/ntp_snippets/offline_pages/offline_page_suggestions_provider.cc (right): https://codereview.chromium.org/2236303002/diff/1/components/ntp_snippets/offline_pages/offline_page_suggestions_provider.cc#newcode200 components/ntp_snippets/offline_pages/offline_page_suggestions_provider.cc:200: dismissed_ids_.insert(dismissed_id); On 2016/08/11 13:34:04, Philipp Keck wrote: > On ...
4 years, 4 months ago (2016-08-11 13:41:56 UTC) #10
Bernhard Bauer
lgtm
4 years, 4 months ago (2016-08-11 16:37:08 UTC) #11
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/2236303002/100001
4 years, 4 months ago (2016-08-12 07:36:30 UTC) #14
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 4 months ago (2016-08-12 08:24:28 UTC) #15
commit-bot: I haz the power
4 years, 4 months ago (2016-08-12 08:25:56 UTC) #17
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/c7c00479f3e57375b15c430b4057a51f8c2ce3e5
Cr-Commit-Position: refs/heads/master@{#411579}

Powered by Google App Engine
This is Rietveld 408576698