DescriptionRemove Error cards for content suggestions, error case refine behavior
A ContentSuggestionsProvider can report error statuses for its
Categories, three of which are relevant for the UI. The reaction of the
UI is different depending on whether an NTP showing the respective
section is already open or not.
Already opened NTPs will keep displaying if the status changes to
NOT_PROVIDED. Dismissing/fetching images and other things don't work in
that scenario, but the section stays on the UI. For LOADING_ERROR
and CATEGORY_EXPLICITLY_DISABLED, the corresponding section immediately
disappears from the UI. For newly opened NTPs, we don't show any
section in all those three cases.
Remove the ErrorListItem, because we now never display error messages
on the NTP (for hard, unfixable errors; other errors like the user not
being signed in are still displayed as regular status cards).
BUG=629817
Committed: https://crrev.com/29d9c568816f149ab93ca015971f0696ee0d4386
Cr-Commit-Position: refs/heads/master@{#411659}
Patch Set 1 #Patch Set 2 : Improve NewTabPageAdapterTest #Patch Set 3 : Rebase #Patch Set 4 : Remove unnecessary if from assertItemsFor() #Patch Set 5 : Rebase (should be no change) #
Depends on Patchset: Messages
Total messages: 12 (4 generated)
|