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

Issue 2230303003: Remove Error cards for content suggestions, error case refine behavior (Closed)

Created:
4 years, 4 months ago by Philipp Keck
Modified:
4 years, 4 months ago
Reviewers:
Bernhard Bauer
CC:
chromium-reviews, ntp-dev+reviews_chromium.org, Marc Treib, dgn, Michael van Ouwerkerk, PEConn
Base URL:
https://chromium.googlesource.com/chromium/src.git@allowmoreflag
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove 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) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -62 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/NewTabPageAdapter.java View 1 2 2 chunks +22 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/StatusListItem.java View 1 3 chunks +14 lines, -46 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/NewTabPageAdapterTest.java View 1 2 3 3 chunks +61 lines, -14 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 12 (4 generated)
Philipp Keck
PTAL Tested the following cases: Opening a new NTP doesn't show sections with NOT_PROVIDED, CATEGORY_EXPLICITLY_DISABLED ...
4 years, 4 months ago (2016-08-10 17:10:23 UTC) #2
Bernhard Bauer
lgtm
4 years, 4 months ago (2016-08-10 17:21:15 UTC) #3
Philipp Keck
On 2016/08/10 17:21:15, Bernhard Bauer wrote: > lgtm I extended the NewTabPageAdapterTest to test these ...
4 years, 4 months ago (2016-08-10 18:02:18 UTC) #4
Philipp Keck
On 2016/08/10 18:02:18, Philipp Keck wrote: > On 2016/08/10 17:21:15, Bernhard Bauer wrote: > > ...
4 years, 4 months ago (2016-08-12 08:41:45 UTC) #5
Bernhard Bauer
On 2016/08/12 08:41:45, Philipp Keck wrote: > On 2016/08/10 18:02:18, Philipp Keck wrote: > > ...
4 years, 4 months ago (2016-08-12 09:05:15 UTC) #6
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/2230303003/80001
4 years, 4 months ago (2016-08-12 14:36:18 UTC) #9
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 4 months ago (2016-08-12 15:40:07 UTC) #10
commit-bot: I haz the power
4 years, 4 months ago (2016-08-12 15:41:59 UTC) #12
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/29d9c568816f149ab93ca015971f0696ee0d4386
Cr-Commit-Position: refs/heads/master@{#411659}

Powered by Google App Engine
This is Rietveld 408576698