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

Issue 2865183003: Use the same design for all suggestions (Closed)

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

Description

Use the same design for all suggestions All the suggestions (Reading List and Suggested Articles) should have the same design. This CL removes the use of the Reading List Cells in ContentSuggestions. BUG=706296 Review-Url: https://codereview.chromium.org/2865183003 Cr-Commit-Position: refs/heads/master@{#470935} Committed: https://chromium.googlesource.com/chromium/src/+/057d7cae6af79ac7fb8c43080d0499a2673e2952

Patch Set 1 #

Patch Set 2 : Reviewable #

Total comments: 14

Patch Set 3 : Rebase #

Patch Set 4 : Address comments #

Total comments: 2

Patch Set 5 : Address comments #

Total comments: 4

Patch Set 6 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+394 lines, -827 lines) Patch
M components/ntp_snippets/BUILD.gn View 1 chunk +0 lines, -2 lines 0 comments Download
M components/ntp_snippets/content_suggestion.h View 1 chunk +1 line, -7 lines 0 comments Download
D components/ntp_snippets/reading_list/reading_list_distillation_state_util.h View 1 chunk +0 lines, -23 lines 0 comments Download
D components/ntp_snippets/reading_list/reading_list_distillation_state_util.cc View 1 chunk +0 lines, -50 lines 0 comments Download
M components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc View 1 2 3 4 5 2 chunks +9 lines, -3 lines 0 comments Download
M components/reading_list/core/reading_list_entry.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/content_suggestions/content_suggestions_coordinator.mm View 5 chunks +6 lines, -6 lines 0 comments Download
M ios/chrome/browser/content_suggestions/content_suggestions_mediator.mm View 2 chunks +2 lines, -8 lines 0 comments Download
M ios/chrome/browser/ui/content_suggestions/BUILD.gn View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download
M ios/chrome/browser/ui/content_suggestions/cells/BUILD.gn View 1 2 3 chunks +3 lines, -6 lines 0 comments Download
D ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_article_item.h View 1 chunk +0 lines, -70 lines 0 comments Download
D ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_article_item.mm View 1 chunk +0 lines, -306 lines 0 comments Download
D ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_article_item_unittest.mm View 1 chunk +0 lines, -89 lines 0 comments Download
A + ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_item.h View 1 2 3 3 chunks +27 lines, -15 lines 0 comments Download
A + ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_item.mm View 1 2 3 10 chunks +139 lines, -50 lines 0 comments Download
A ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_item_unittest.mm View 1 2 3 1 chunk +121 lines, -0 lines 0 comments Download
D ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_reading_list_item.h View 1 chunk +0 lines, -17 lines 0 comments Download
D ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_reading_list_item.mm View 1 chunk +0 lines, -15 lines 0 comments Download
M ios/chrome/browser/ui/content_suggestions/content_suggestion.h View 1 2 2 chunks +2 lines, -5 lines 0 comments Download
M ios/chrome/browser/ui/content_suggestions/content_suggestion.mm View 1 chunk +1 line, -1 line 0 comments Download
D ios/chrome/browser/ui/content_suggestions/content_suggestion_extra_builder.h View 1 1 chunk +0 lines, -23 lines 0 comments Download
D ios/chrome/browser/ui/content_suggestions/content_suggestion_extra_builder.mm View 1 1 chunk +0 lines, -23 lines 0 comments Download
M ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_updater.mm View 1 2 3 4 7 chunks +56 lines, -69 lines 0 comments Download
M ios/chrome/browser/ui/content_suggestions/content_suggestions_commands.h View 2 chunks +2 lines, -2 lines 0 comments Download
M ios/chrome/browser/ui/content_suggestions/content_suggestions_view_controller.mm View 4 chunks +10 lines, -21 lines 0 comments Download
A ios/chrome/browser/ui/content_suggestions/resources/content_suggestions_offline.png View Binary file 0 comments Download
A ios/chrome/browser/ui/content_suggestions/resources/content_suggestions_offline@2x.png View 1 2 3 Binary file 0 comments Download
A ios/chrome/browser/ui/content_suggestions/resources/content_suggestions_offline@3x.png View Binary file 0 comments Download
M ios/chrome/browser/ui/settings/material_cell_catalog_view_controller.mm View 3 chunks +11 lines, -12 lines 0 comments Download

Messages

Total messages: 20 (10 generated)
gambard
PTAL.
3 years, 7 months ago (2017-05-09 15:29:23 UTC) #2
jif
looks good https://codereview.chromium.org/2865183003/diff/20001/components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc File components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc (right): https://codereview.chromium.org/2865183003/diff/20001/components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc#newcode222 components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc:222: entry->DistillationTime() / base::Time::kMicrosecondsPerSecond; Can you change the ...
3 years, 7 months ago (2017-05-10 09:06:19 UTC) #3
gambard
Thanks, PTAL. treib@: PTAL at components/ntp_snippets/ sdefresnes@: PTAL at components/reading_list/ https://codereview.chromium.org/2865183003/diff/20001/components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc File components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc (right): https://codereview.chromium.org/2865183003/diff/20001/components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc#newcode222 ...
3 years, 7 months ago (2017-05-10 09:23:28 UTC) #5
jif
lgtm https://codereview.chromium.org/2865183003/diff/60001/ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_updater.mm File ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_updater.mm (right): https://codereview.chromium.org/2865183003/diff/60001/ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_updater.mm#newcode293 ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_updater.mm:293: strongSelf = weakSelf; strongSelf and strongItem should be ...
3 years, 7 months ago (2017-05-10 09:36:11 UTC) #6
gambard
Thanks! https://codereview.chromium.org/2865183003/diff/60001/ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_updater.mm File ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_updater.mm (right): https://codereview.chromium.org/2865183003/diff/60001/ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_updater.mm#newcode293 ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_updater.mm:293: strongSelf = weakSelf; On 2017/05/10 09:36:11, jif wrote: ...
3 years, 7 months ago (2017-05-10 12:17:13 UTC) #7
sdefresne
components/reading_list/core/reading_list_entry.h lgtm
3 years, 7 months ago (2017-05-10 16:09:14 UTC) #12
Marc Treib
components/ntp_snippets LGTM with optional comments https://codereview.chromium.org/2865183003/diff/80001/components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc File components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc (right): https://codereview.chromium.org/2865183003/diff/80001/components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc#newcode222 components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc:222: entry->DistillationTime() / base::Time::kMicrosecondsPerSecond; Any ...
3 years, 7 months ago (2017-05-11 09:05:05 UTC) #13
gambard
Thanks! https://codereview.chromium.org/2865183003/diff/80001/components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc File components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc (right): https://codereview.chromium.org/2865183003/diff/80001/components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc#newcode222 components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc:222: entry->DistillationTime() / base::Time::kMicrosecondsPerSecond; On 2017/05/11 09:05:05, Marc Treib ...
3 years, 7 months ago (2017-05-11 11:13:37 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/2865183003/100001
3 years, 7 months ago (2017-05-11 11:14:20 UTC) #17
commit-bot: I haz the power
3 years, 7 months ago (2017-05-11 13:05:26 UTC) #20
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/057d7cae6af79ac7fb8c43080d04...

Powered by Google App Engine
This is Rietveld 408576698