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

Issue 2806213004: Track if a ReadingListEntry has been dismissed (Closed)

Created:
3 years, 8 months ago by gambard
Modified:
3 years, 8 months ago
Reviewers:
Marc Treib, Olivier
CC:
chromium-reviews, stkhapugin
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Track if a ReadingListEntry has been dismissed This CL adds a field to the ReadingListEntry, saved only on the device, to track if the entry has been dismissed from the NTP. The only way to change the extra information is to use the model, allowing the data to be stored. BUG=707730 Review-Url: https://codereview.chromium.org/2806213004 Cr-Commit-Position: refs/heads/master@{#463615} Committed: https://chromium.googlesource.com/chromium/src/+/0043013229fffab3555daf28c64ee27521209d7b

Patch Set 1 #

Patch Set 2 : Add default value #

Total comments: 8

Patch Set 3 : Address comments #

Patch Set 4 : Address comments #

Total comments: 2

Patch Set 5 : Add setter in model #

Total comments: 2

Patch Set 6 : Address comment #

Total comments: 2

Patch Set 7 : Address comment #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -21 lines) Patch
M components/reading_list/core/proto/reading_list.proto View 1 chunk +6 lines, -0 lines 0 comments Download
M components/reading_list/core/reading_list_entry.h View 1 2 3 4 5 4 chunks +31 lines, -14 lines 1 comment Download
M components/reading_list/core/reading_list_entry.cc View 1 2 3 9 chunks +36 lines, -7 lines 0 comments Download
M components/reading_list/core/reading_list_entry_unittest.cc View 1 2 3 5 chunks +12 lines, -0 lines 0 comments Download
M components/reading_list/core/reading_list_model.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M components/reading_list/core/reading_list_model_impl.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M components/reading_list/core/reading_list_model_impl.cc View 1 2 3 4 5 6 1 chunk +22 lines, -0 lines 0 comments Download
M components/reading_list/core/reading_list_model_unittest.cc View 1 2 3 4 1 chunk +15 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 23 (7 generated)
gambard
PTAL. I am not sure about the names or the declaration in the reading_list namespace.
3 years, 8 months ago (2017-04-10 15:49:48 UTC) #2
Olivier
https://codereview.chromium.org/2806213004/diff/20001/components/reading_list/core/reading_list_entry.cc File components/reading_list/core/reading_list_entry.cc (right): https://codereview.chromium.org/2806213004/diff/20001/components/reading_list/core/reading_list_entry.cc#newcode412 components/reading_list/core/reading_list_entry.cc:412: if (pb_extra.has_dismissed()) { This is true because the only ...
3 years, 8 months ago (2017-04-10 15:58:23 UTC) #3
gambard
Thanks, PTAL. https://codereview.chromium.org/2806213004/diff/20001/components/reading_list/core/reading_list_entry.cc File components/reading_list/core/reading_list_entry.cc (right): https://codereview.chromium.org/2806213004/diff/20001/components/reading_list/core/reading_list_entry.cc#newcode412 components/reading_list/core/reading_list_entry.cc:412: if (pb_extra.has_dismissed()) { On 2017/04/10 15:58:23, Olivier ...
3 years, 8 months ago (2017-04-11 08:11:45 UTC) #4
Olivier
https://codereview.chromium.org/2806213004/diff/20001/components/reading_list/core/reading_list_entry.h File components/reading_list/core/reading_list_entry.h (right): https://codereview.chromium.org/2806213004/diff/20001/components/reading_list/core/reading_list_entry.h#newcode112 components/reading_list/core/reading_list_entry.h:112: reading_list::ContentSuggestionsExtra* content_suggestions_extra() const; On 2017/04/11 08:11:45, gambard wrote: > ...
3 years, 8 months ago (2017-04-11 08:17:19 UTC) #5
gambard
Thanks, PTAL. https://codereview.chromium.org/2806213004/diff/20001/components/reading_list/core/reading_list_entry.h File components/reading_list/core/reading_list_entry.h (right): https://codereview.chromium.org/2806213004/diff/20001/components/reading_list/core/reading_list_entry.h#newcode112 components/reading_list/core/reading_list_entry.h:112: reading_list::ContentSuggestionsExtra* content_suggestions_extra() const; On 2017/04/11 08:17:19, Olivier ...
3 years, 8 months ago (2017-04-11 09:42:56 UTC) #6
Olivier
https://codereview.chromium.org/2806213004/diff/60001/components/reading_list/core/reading_list_entry.cc File components/reading_list/core/reading_list_entry.cc (right): https://codereview.chromium.org/2806213004/diff/60001/components/reading_list/core/reading_list_entry.cc#newcode231 components/reading_list/core/reading_list_entry.cc:231: content_suggestions_extra_ = extra; This will still not persist until ...
3 years, 8 months ago (2017-04-11 12:06:19 UTC) #7
gambard
Thanks, PTAL. https://codereview.chromium.org/2806213004/diff/60001/components/reading_list/core/reading_list_entry.cc File components/reading_list/core/reading_list_entry.cc (right): https://codereview.chromium.org/2806213004/diff/60001/components/reading_list/core/reading_list_entry.cc#newcode231 components/reading_list/core/reading_list_entry.cc:231: content_suggestions_extra_ = extra; On 2017/04/11 12:06:18, Olivier ...
3 years, 8 months ago (2017-04-11 12:14:37 UTC) #8
Olivier
https://codereview.chromium.org/2806213004/diff/80001/components/reading_list/core/reading_list_model_impl.cc File components/reading_list/core/reading_list_model_impl.cc (right): https://codereview.chromium.org/2806213004/diff/80001/components/reading_list/core/reading_list_model_impl.cc#newcode469 components/reading_list/core/reading_list_model_impl.cc:469: auto iterator = entries_->find(url); GetMutableEntryFromURL
3 years, 8 months ago (2017-04-11 12:36:59 UTC) #9
gambard
Thanks, PTAL. https://codereview.chromium.org/2806213004/diff/80001/components/reading_list/core/reading_list_model_impl.cc File components/reading_list/core/reading_list_model_impl.cc (right): https://codereview.chromium.org/2806213004/diff/80001/components/reading_list/core/reading_list_model_impl.cc#newcode469 components/reading_list/core/reading_list_model_impl.cc:469: auto iterator = entries_->find(url); On 2017/04/11 12:36:59, ...
3 years, 8 months ago (2017-04-11 12:52:56 UTC) #10
Olivier
LGTM one comment https://codereview.chromium.org/2806213004/diff/100001/components/reading_list/core/reading_list_model_impl.cc File components/reading_list/core/reading_list_model_impl.cc (right): https://codereview.chromium.org/2806213004/diff/100001/components/reading_list/core/reading_list_model_impl.cc#newcode469 components/reading_list/core/reading_list_model_impl.cc:469: ReadingListEntry* entry = GetMutableEntryFromURL(url); if ! ...
3 years, 8 months ago (2017-04-11 12:57:49 UTC) #11
gambard
Thanks! https://codereview.chromium.org/2806213004/diff/100001/components/reading_list/core/reading_list_model_impl.cc File components/reading_list/core/reading_list_model_impl.cc (right): https://codereview.chromium.org/2806213004/diff/100001/components/reading_list/core/reading_list_model_impl.cc#newcode469 components/reading_list/core/reading_list_model_impl.cc:469: ReadingListEntry* entry = GetMutableEntryFromURL(url); On 2017/04/11 12:57:49, Olivier ...
3 years, 8 months ago (2017-04-11 13:22:28 UTC) #13
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/2806213004/120001
3 years, 8 months ago (2017-04-11 13:22:52 UTC) #16
Marc Treib
Drive-by :) https://codereview.chromium.org/2806213004/diff/120001/components/reading_list/core/reading_list_entry.h File components/reading_list/core/reading_list_entry.h (right): https://codereview.chromium.org/2806213004/diff/120001/components/reading_list/core/reading_list_entry.h#newcode112 components/reading_list/core/reading_list_entry.h:112: const reading_list::ContentSuggestionsExtra* ContentSuggestionsExtra() const; Can this ever ...
3 years, 8 months ago (2017-04-11 13:37:18 UTC) #18
commit-bot: I haz the power
Committed patchset #7 (id:120001) as https://chromium.googlesource.com/chromium/src/+/0043013229fffab3555daf28c64ee27521209d7b
3 years, 8 months ago (2017-04-11 14:06:32 UTC) #21
findit-for-me
A revert of this CL (patchset #7 id:120001) has been created in https://codereview.chromium.org/2811083004/ by findit-for-me@appspot.gserviceaccount.com. ...
3 years, 8 months ago (2017-04-11 14:53:36 UTC) #22
stgao
3 years, 8 months ago (2017-04-11 17:38:27 UTC) #23
Message was sent while issue was closed.
On 2017/04/11 14:53:36, findit-for-me wrote:
> A revert of this CL (patchset #7 id:120001) has been created in
> https://codereview.chromium.org/2811083004/ by
> mailto:findit-for-me@appspot.gserviceaccount.com.
> 
> The reason for reverting is: 
> Findit identified CL at revision 463615 as the culprit for
> failures in the build cycles as shown on:
>
https://findit-for-me.appspot.com/waterfall/culprit?key=ag9zfmZpbmRpdC1mb3Itb....

This is a false positive due to flaky compile. Incorrect config for dependency
on a generated header file net/net_features.h

Powered by Google App Engine
This is Rietveld 408576698