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

Issue 2794853004: Update provider on Reading List model update (Closed)

Created:
3 years, 8 months ago by gambard
Modified:
3 years, 8 months ago
Reviewers:
Marc Treib, Olivier
CC:
chromium-reviews, noyau+watch_chromium.org, ntp-dev+reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Update provider on Reading List model update When the Reading List model is updated, the provider notifies the service. BUG=702241 Review-Url: https://codereview.chromium.org/2794853004 Cr-Commit-Position: refs/heads/master@{#462013} Committed: https://chromium.googlesource.com/chromium/src/+/fea421c12c5499a4f6b04291a97705662cf41d1c

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address comments #

Total comments: 4

Patch Set 3 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -1 line) Patch
M components/ntp_snippets/reading_list/reading_list_suggestions_provider.h View 1 chunk +3 lines, -0 lines 0 comments Download
M components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc View 1 2 1 chunk +16 lines, -1 line 0 comments Download

Messages

Total messages: 15 (6 generated)
gambard
PTAL.
3 years, 8 months ago (2017-04-03 10:50:22 UTC) #2
Olivier
https://codereview.chromium.org/2794853004/diff/1/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/2794853004/diff/1/components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc#newcode119 components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc:119: DCHECK(model == reading_list_model_); if (model->IsPerformingBatchUpdates()) return; or add it ...
3 years, 8 months ago (2017-04-03 11:18:07 UTC) #3
gambard
Thanks, PTAL. treib@: the provider might notify the service OnNewSuggestions with the same suggestions. I ...
3 years, 8 months ago (2017-04-03 11:25:07 UTC) #5
Olivier
lgtm https://codereview.chromium.org/2794853004/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/2794853004/diff/20001/components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc#newcode148 components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc:148: if (reading_list_model_->IsPerformingBatchUpdates()) super nit: group with the if ...
3 years, 8 months ago (2017-04-03 13:13:53 UTC) #6
gambard
treib@: ping!
3 years, 8 months ago (2017-04-04 16:15:08 UTC) #7
Marc Treib
Sorry, I missed this one. LGTM! https://codereview.chromium.org/2794853004/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/2794853004/diff/20001/components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc#newcode148 components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc:148: if (reading_list_model_->IsPerformingBatchUpdates()) nit: ...
3 years, 8 months ago (2017-04-04 16:57:49 UTC) #8
gambard
Thanks! https://codereview.chromium.org/2794853004/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/2794853004/diff/20001/components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc#newcode148 components/ntp_snippets/reading_list/reading_list_suggestions_provider.cc:148: if (reading_list_model_->IsPerformingBatchUpdates()) On 2017/04/04 16:57:49, Marc Treib wrote: ...
3 years, 8 months ago (2017-04-05 08:08:55 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/2794853004/40001
3 years, 8 months ago (2017-04-05 08:08:59 UTC) #12
commit-bot: I haz the power
3 years, 8 months ago (2017-04-05 08:58:10 UTC) #15
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/fea421c12c5499a4f6b04291a977...

Powered by Google App Engine
This is Rietveld 408576698