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

Issue 2770893003: Add logic for fetching the Reading List entries (Closed)

Created:
3 years, 9 months ago by gambard
Modified:
3 years, 8 months ago
CC:
chromium-reviews, ios-reviews_chromium.org, droger+watchlist_chromium.org, blundell+watchlist_chromium.org, sdefresne+watchlist_chromium.org, noyau+watch_chromium.org, ntp-dev+reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add logic for fetching the Reading List entries This CL adds the logic in the ReadingListProvider, allowing it to fetch the entries to be displayed. BUG=702241 Review-Url: https://codereview.chromium.org/2770893003 Cr-Commit-Position: refs/heads/master@{#460697} Committed: https://chromium.googlesource.com/chromium/src/+/250e9409aec179c1a8427adf454309e1d2f6482f

Patch Set 1 #

Patch Set 2 : Add tests #

Patch Set 3 : Rebase #

Patch Set 4 : Rebase #

Total comments: 4

Patch Set 5 : Address comments #

Total comments: 28

Patch Set 6 : Address comments #

Patch Set 7 : Cleanup #

Total comments: 8

Patch Set 8 : Address comments #

Patch Set 9 : Change publisher #

Patch Set 10 : Add title logic #

Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -13 lines) Patch
M components/ntp_snippets/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/ntp_snippets/DEPS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/ntp_snippets/reading_list/reading_list_suggestions_provider.h View 1 2 3 4 5 2 chunks +7 lines, -0 lines 0 comments Download
M components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc View 1 2 3 4 5 6 7 8 9 3 chunks +74 lines, -9 lines 0 comments Download
M components/ntp_snippets/reading_list/reading_list_suggestions_provider_unittest.cc View 1 2 3 4 5 6 7 2 chunks +79 lines, -4 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 34 (14 generated)
gambard
PTAL.
3 years, 8 months ago (2017-03-28 08:45:05 UTC) #2
Olivier
https://codereview.chromium.org/2770893003/diff/60001/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/2770893003/diff/60001/components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc#newcode112 components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc:112: ReadingListModelBeingDeleted() { reading_list_model_->RemoveObserver(this); reading_list_model_ = nullptr; } https://codereview.chromium.org/2770893003/diff/60001/components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc#newcode140 components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc:140: ...
3 years, 8 months ago (2017-03-28 12:33:51 UTC) #3
gambard
Thanks, PTAL. +treib@: PTAL +brettw@ for DEPS include of components/url_formatter. https://codereview.chromium.org/2770893003/diff/60001/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/2770893003/diff/60001/components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc#newcode112 ...
3 years, 8 months ago (2017-03-28 12:55:59 UTC) #5
Olivier
lgtm
3 years, 8 months ago (2017-03-28 13:03:29 UTC) #6
Marc Treib
https://codereview.chromium.org/2770893003/diff/80001/components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc File components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc (left): https://codereview.chromium.org/2770893003/diff/80001/components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc#oldcode29 components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc:29: if (reading_list_model_->loaded()) { Is this not needed anymore? https://codereview.chromium.org/2770893003/diff/80001/components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc ...
3 years, 8 months ago (2017-03-28 13:25:16 UTC) #7
gambard
Thanks, PTAL. https://codereview.chromium.org/2770893003/diff/80001/components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc File components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc (left): https://codereview.chromium.org/2770893003/diff/80001/components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc#oldcode29 components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc:29: if (reading_list_model_->loaded()) { On 2017/03/28 13:25:15, Marc ...
3 years, 8 months ago (2017-03-28 15:10:11 UTC) #8
Marc Treib
Thanks! LGTM with some more nits/suggestions. https://codereview.chromium.org/2770893003/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/2770893003/diff/80001/components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc#newcode158 components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc:158: url_formatter::FormatUrl(entry->URL().GetOrigin())); On 2017/03/28 ...
3 years, 8 months ago (2017-03-28 15:31:30 UTC) #9
gambard
Thanks! https://codereview.chromium.org/2770893003/diff/120001/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/2770893003/diff/120001/components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc#newcode141 components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc:141: if (entries.size() > kMaxEntries) { On 2017/03/28 15:31:29, ...
3 years, 8 months ago (2017-03-28 15:40:10 UTC) #10
gambard
https://codereview.chromium.org/2770893003/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/2770893003/diff/80001/components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc#newcode158 components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc:158: url_formatter::FormatUrl(entry->URL().GetOrigin())); On 2017/03/28 15:31:29, Marc Treib wrote: > On ...
3 years, 8 months ago (2017-03-28 15:42:49 UTC) #11
Marc Treib
https://codereview.chromium.org/2770893003/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/2770893003/diff/80001/components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc#newcode158 components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc:158: url_formatter::FormatUrl(entry->URL().GetOrigin())); On 2017/03/28 15:42:49, gambard wrote: > On 2017/03/28 ...
3 years, 8 months ago (2017-03-28 15:51:45 UTC) #12
gambard
https://codereview.chromium.org/2770893003/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/2770893003/diff/80001/components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc#newcode158 components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc:158: url_formatter::FormatUrl(entry->URL().GetOrigin())); On 2017/03/28 15:51:45, Marc Treib wrote: > On ...
3 years, 8 months ago (2017-03-29 07:23:24 UTC) #13
Marc Treib
Thanks! Unqualified lgtm now :)
3 years, 8 months ago (2017-03-29 08:26:26 UTC) #14
gambard
+pkasting@ for DEPS include
3 years, 8 months ago (2017-03-29 14:42:37 UTC) #16
brettw
DEPS lgtm
3 years, 8 months ago (2017-03-29 14:48:42 UTC) #19
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/2770893003/180001
3 years, 8 months ago (2017-03-29 14:49:34 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/260296)
3 years, 8 months ago (2017-03-29 16:21:46 UTC) #25
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/2770893003/180001
3 years, 8 months ago (2017-03-29 16:28:37 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/182610)
3 years, 8 months ago (2017-03-29 20:22:39 UTC) #29
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/2770893003/180001
3 years, 8 months ago (2017-03-30 06:54:52 UTC) #31
commit-bot: I haz the power
3 years, 8 months ago (2017-03-30 08:36:26 UTC) #34
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/250e9409aec179c1a8427adf4543...

Powered by Google App Engine
This is Rietveld 408576698