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

Issue 2377663002: [NTP Snippets] Introduce ContentSuggestion::ID (Closed)

Created:
4 years, 2 months ago by Marc Treib
Modified:
4 years, 2 months ago
Reviewers:
Bernhard Bauer
CC:
chromium-reviews, arv+watch_chromium.org, ntp-dev+reviews_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[NTP Snippets] Introduce ContentSuggestion::ID Use this new type of ID instead of the previous "unique ID" strings, which have been causing no end of confusion. BUG=649048 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/4bbc5492ff92a6e7e1c71a14cc9c36296a67eee5 Cr-Commit-Position: refs/heads/master@{#421555}

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : . #

Total comments: 2

Patch Set 4 : id_within_category #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+316 lines, -349 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/NewTabPageAdapter.java View 1 2 3 4 2 chunks +4 lines, -7 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/NewTabPageRecyclerView.java View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/SuggestionsSection.java View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/FakeSuggestionsSource.java View 1 2 3 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetArticle.java View 1 2 3 3 chunks +7 lines, -6 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsBridge.java View 1 2 3 3 chunks +10 lines, -7 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SuggestionsSource.java View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/NewTabPageAdapterTest.java View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/android/ntp/ntp_snippets_bridge.h View 1 2 3 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/android/ntp/ntp_snippets_bridge.cc View 1 2 3 4 chunks +13 lines, -9 lines 0 comments Download
M chrome/browser/resources/snippets_internals.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/snippets_internals_message_handler.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/snippets_internals_message_handler.cc View 1 2 3 2 chunks +2 lines, -3 lines 0 comments Download
M components/ntp_snippets/bookmarks/bookmark_suggestions_provider.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M components/ntp_snippets/bookmarks/bookmark_suggestions_provider.cc View 1 2 3 2 chunks +5 lines, -6 lines 0 comments Download
M components/ntp_snippets/category_factory.h View 1 chunk +0 lines, -17 lines 0 comments Download
M components/ntp_snippets/category_factory.cc View 1 2 chunks +0 lines, -33 lines 0 comments Download
M components/ntp_snippets/content_suggestion.h View 1 2 3 5 chunks +29 lines, -5 lines 0 comments Download
M components/ntp_snippets/content_suggestion.cc View 1 2 3 1 chunk +20 lines, -1 line 0 comments Download
M components/ntp_snippets/content_suggestions_provider.h View 1 2 3 4 3 chunks +7 lines, -19 lines 0 comments Download
M components/ntp_snippets/content_suggestions_provider.cc View 1 1 chunk +0 lines, -16 lines 0 comments Download
M components/ntp_snippets/content_suggestions_service.h View 1 2 3 4 4 chunks +9 lines, -10 lines 0 comments Download
M components/ntp_snippets/content_suggestions_service.cc View 1 5 chunks +17 lines, -20 lines 0 comments Download
M components/ntp_snippets/content_suggestions_service_unittest.cc View 1 2 3 10 chunks +22 lines, -25 lines 0 comments Download
M components/ntp_snippets/mock_content_suggestions_provider_observer.h View 1 chunk +2 lines, -3 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_service.h View 1 2 3 4 4 chunks +20 lines, -14 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_service.cc View 1 2 3 10 chunks +70 lines, -63 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_service_unittest.cc View 1 2 3 14 chunks +20 lines, -25 lines 0 comments Download
M components/ntp_snippets/offline_pages/offline_page_suggestions_provider.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M components/ntp_snippets/offline_pages/offline_page_suggestions_provider.cc View 1 2 3 4 3 chunks +11 lines, -12 lines 0 comments Download
M components/ntp_snippets/offline_pages/offline_page_suggestions_provider_unittest.cc View 1 2 chunks +5 lines, -6 lines 0 comments Download
M components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc View 1 2 chunks +5 lines, -5 lines 0 comments Download
M components/ntp_snippets/sessions/foreign_sessions_suggestions_provider.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M components/ntp_snippets/sessions/foreign_sessions_suggestions_provider.cc View 1 2 3 4 chunks +9 lines, -10 lines 0 comments Download
M components/ntp_snippets/sessions/foreign_sessions_suggestions_provider_unittest.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (13 generated)
Marc Treib
This is a big one, but most of the changes are fairly trivial. PTAL!
4 years, 2 months ago (2016-09-28 09:32:34 UTC) #4
Bernhard Bauer
Looks mostly good, but TBH I'm not a huge fan of the expression "within-category-ID" (I ...
4 years, 2 months ago (2016-09-28 09:45:33 UTC) #5
Marc Treib
Thanks! I wasn't a fan of "within-category-ID" either. id_within_category is at least a bit better, ...
4 years, 2 months ago (2016-09-28 11:14:09 UTC) #6
Bernhard Bauer
LGTM!
4 years, 2 months ago (2016-09-28 14:02:01 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/2377663002/60001
4 years, 2 months ago (2016-09-28 14:22:51 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/268559)
4 years, 2 months ago (2016-09-28 14:27:06 UTC) #15
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/2377663002/80001
4 years, 2 months ago (2016-09-28 16:22:36 UTC) #18
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 2 months ago (2016-09-28 17:27:11 UTC) #20
commit-bot: I haz the power
4 years, 2 months ago (2016-09-28 17:31:37 UTC) #22
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/4bbc5492ff92a6e7e1c71a14cc9c36296a67eee5
Cr-Commit-Position: refs/heads/master@{#421555}

Powered by Google App Engine
This is Rietveld 408576698