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

Issue 2877513003: ContentSuggestionsDataSource returns CollectionViewItem (Closed)

Created:
3 years, 7 months ago by gambard
Modified:
3 years, 7 months ago
Reviewers:
jif, sdefresne
CC:
chromium-reviews, marq+watch_chromium.org, ios-reviews+chrome_chromium.org, noyau+watch_chromium.org, ios-reviews_chromium.org, pkl (ping after 24h if needed)
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

ContentSuggestionsDataSource returns CollectionViewItem Before this CL, ContentSuggestionsDataSource returned ContentSuggestion. The ContentSuggestion were converted into CollectionViewItem in the ContentSuggestionsCollectionUpdater, then added to the collection. This CL changes the ContentSuggestionsDataSource and makes it return CollectionViewItem directly. ContentSuggestion is removed as it is no longer needed. BUG=720271, 706344 Review-Url: https://codereview.chromium.org/2877513003 Cr-Commit-Position: refs/heads/master@{#471784} Committed: https://chromium.googlesource.com/chromium/src/+/98264ec53c6ff8523e659903bd489483686622a5

Patch Set 1 #

Patch Set 2 : Reviewable #

Total comments: 4

Patch Set 3 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+456 lines, -518 lines) Patch
M ios/chrome/browser/content_suggestions/content_suggestions_mediator.mm View 1 2 15 chunks +92 lines, -101 lines 0 comments Download
M ios/chrome/browser/content_suggestions/mediator_util.h View 3 chunks +12 lines, -20 lines 0 comments Download
M ios/chrome/browser/content_suggestions/mediator_util.mm View 7 chunks +30 lines, -35 lines 0 comments Download
M ios/chrome/browser/ui/content_suggestions/BUILD.gn View 1 2 2 chunks +1 line, -2 lines 0 comments Download
M ios/chrome/browser/ui/content_suggestions/cells/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_item.h View 2 chunks +2 lines, -16 lines 0 comments Download
M ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_item.mm View 4 chunks +2 lines, -3 lines 0 comments Download
M ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_item_unittest.mm View 3 chunks +9 lines, -11 lines 0 comments Download
M ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_most_visited_item.h View 2 chunks +5 lines, -2 lines 0 comments Download
M ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_most_visited_item.mm View 2 chunks +5 lines, -0 lines 0 comments Download
M ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_text_item.h View 1 chunk +2 lines, -3 lines 0 comments Download
M ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_text_item.mm View 2 chunks +4 lines, -0 lines 0 comments Download
A ios/chrome/browser/ui/content_suggestions/cells/suggested_content.h View 1 1 chunk +37 lines, -0 lines 0 comments Download
D ios/chrome/browser/ui/content_suggestions/content_suggestion.h View 1 chunk +0 lines, -50 lines 0 comments Download
D ios/chrome/browser/ui/content_suggestions/content_suggestion.mm View 1 chunk +0 lines, -25 lines 0 comments Download
M ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_updater.h View 1 2 3 chunks +25 lines, -12 lines 0 comments Download
M ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_updater.mm View 1 15 chunks +172 lines, -191 lines 0 comments Download
M ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_updater_unittest.mm View 3 chunks +14 lines, -6 lines 0 comments Download
M ios/chrome/browser/ui/content_suggestions/content_suggestions_data_source.h View 3 chunks +23 lines, -19 lines 0 comments Download
M ios/chrome/browser/ui/content_suggestions/content_suggestions_view_controller.h View 2 chunks +8 lines, -5 lines 0 comments Download
M ios/chrome/browser/ui/content_suggestions/content_suggestions_view_controller.mm View 3 chunks +10 lines, -5 lines 0 comments Download
M ios/chrome/browser/ui/content_suggestions/identifier/content_suggestion_identifier.h View 1 chunk +0 lines, -7 lines 0 comments Download
M ios/chrome/browser/ui/content_suggestions/identifier/content_suggestions_section_information.h View 1 chunk +2 lines, -4 lines 0 comments Download
M ios/chrome/browser/ui/settings/material_cell_catalog_view_controller.mm View 1 chunk +0 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 19 (10 generated)
gambard
PTAL!
3 years, 7 months ago (2017-05-11 15:45:40 UTC) #3
jif
thanks for the description. lgtm with nits https://codereview.chromium.org/2877513003/diff/20001/ios/chrome/browser/content_suggestions/content_suggestions_mediator.mm File ios/chrome/browser/content_suggestions/content_suggestions_mediator.mm (right): https://codereview.chromium.org/2877513003/diff/20001/ios/chrome/browser/content_suggestions/content_suggestions_mediator.mm#newcode382 ios/chrome/browser/content_suggestions/content_suggestions_mediator.mm:382: // them ...
3 years, 7 months ago (2017-05-15 11:14:47 UTC) #5
gambard
Thanks! https://codereview.chromium.org/2877513003/diff/20001/ios/chrome/browser/content_suggestions/content_suggestions_mediator.mm File ios/chrome/browser/content_suggestions/content_suggestions_mediator.mm (right): https://codereview.chromium.org/2877513003/diff/20001/ios/chrome/browser/content_suggestions/content_suggestions_mediator.mm#newcode382 ios/chrome/browser/content_suggestions/content_suggestions_mediator.mm:382: // them to the |contentArray| if the category ...
3 years, 7 months ago (2017-05-15 12:50:03 UTC) #6
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/2877513003/40001
3 years, 7 months ago (2017-05-15 12:50:26 UTC) #9
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/436819)
3 years, 7 months ago (2017-05-15 13:00:25 UTC) #11
gambard
sdefresne: PTAL ios/chrome/browser/ui/settings/material_cell_catalog_view_controller.mm
3 years, 7 months ago (2017-05-15 13:01:22 UTC) #13
sdefresne
ios/chrome/browser/ui/settings/material_cell_catalog_view_controller.mm lgtm
3 years, 7 months ago (2017-05-15 13:17:05 UTC) #14
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/2877513003/40001
3 years, 7 months ago (2017-05-15 13:17:58 UTC) #16
commit-bot: I haz the power
3 years, 7 months ago (2017-05-15 16:26:34 UTC) #19
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/98264ec53c6ff8523e659903bd48...

Powered by Google App Engine
This is Rietveld 408576698