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

Issue 2392943002: 📰 Use the separate button style for the NoArticles status (Closed)

Created:
4 years, 2 months ago by dgn
Modified:
4 years, 2 months ago
Reviewers:
Bernhard Bauer
CC:
chromium-reviews, ntp-dev+reviews_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[NTP Client] Use the separate button style for the NoArticles status Makes the articles and bookmarks sections use the same style of status card when they have no snippets. the hasMoreButton property of categories now only determines whether the action item will be shown when there are suggestions to display. This patch also lets the SuggestionsCategoryInfo be aware of the current category it is describing, and moves various category specific behaviours into the SuggestionsCategoryInfo class. Preview: https://goo.gl/photos/VhceT6cjvME6QS8m7 BUG=649670 Committed: https://crrev.com/ffa8e3905fed0b1df0d56ab6e4b17791b31cd171 Cr-Commit-Position: refs/heads/master@{#423517}

Patch Set 1 #

Total comments: 8

Patch Set 2 : #

Patch Set 3 : remove signin promo related changes #

Patch Set 4 : #

Total comments: 5

Patch Set 5 : rebase and fix presublit #

Patch Set 6 : address nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+206 lines, -312 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/ActionItem.java View 1 2 4 chunks +10 lines, -23 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/NewTabPageAdapter.java View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/StatusItem.java View 1 2 1 chunk +9 lines, -94 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/SuggestionsCategoryInfo.java View 1 2 3 4 5 4 chunks +68 lines, -3 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/SuggestionsSection.java View 1 2 3 4 5 6 chunks +17 lines, -37 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsBridge.java View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/ntp/snippets/ArticleSnippetsTest.java View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/ContentSuggestionsTestUtils.java View 1 2 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/NewTabPageAdapterTest.java View 1 2 3 4 24 chunks +69 lines, -111 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/SuggestionsSectionTest.java View 1 2 3 4 4 chunks +18 lines, -30 lines 0 comments Download
M chrome/browser/android/ntp/ntp_snippets_bridge.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M components/ntp_snippets_strings.grdp View 1 chunk +1 line, -4 lines 0 comments Download

Messages

Total messages: 39 (29 generated)
dgn
PTAL
4 years, 2 months ago (2016-10-04 15:31:40 UTC) #5
Bernhard Bauer
https://codereview.chromium.org/2392943002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/SigninPromoItem.java File chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/SigninPromoItem.java (right): https://codereview.chromium.org/2392943002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/SigninPromoItem.java#newcode109 chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/SigninPromoItem.java:109: private int mSeparationSpaceSize; This can be final. https://codereview.chromium.org/2392943002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/SuggestionsCategoryInfo.java File ...
4 years, 2 months ago (2016-10-04 15:40:28 UTC) #10
dgn
PTAL. I removed the signin promo related thing out of this CL, as I ran ...
4 years, 2 months ago (2016-10-05 14:55:24 UTC) #22
dgn
👈 Ping :)
4 years, 2 months ago (2016-10-06 12:24:34 UTC) #29
Bernhard Bauer
Sorry, forgot to publish drafts. 👍 LGTM with nits: https://codereview.chromium.org/2392943002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/SuggestionsCategoryInfo.java File chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/SuggestionsCategoryInfo.java (right): https://codereview.chromium.org/2392943002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/SuggestionsCategoryInfo.java#newcode65 chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/SuggestionsCategoryInfo.java:65: ...
4 years, 2 months ago (2016-10-06 12:29:10 UTC) #30
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/2392943002/100001
4 years, 2 months ago (2016-10-06 13:05:32 UTC) #33
dgn
Thanks! https://codereview.chromium.org/2392943002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/SuggestionsCategoryInfo.java File chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/SuggestionsCategoryInfo.java (right): https://codereview.chromium.org/2392943002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/SuggestionsCategoryInfo.java#newcode65 chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/SuggestionsCategoryInfo.java:65: public int getCategory() { On 2016/10/06 12:29:10, Bernhard ...
4 years, 2 months ago (2016-10-06 13:05:49 UTC) #34
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 2 months ago (2016-10-06 14:13:42 UTC) #36
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/ffa8e3905fed0b1df0d56ab6e4b17791b31cd171 Cr-Commit-Position: refs/heads/master@{#423517}
4 years, 2 months ago (2016-10-06 14:15:47 UTC) #38
Theresa
4 years, 2 months ago (2016-10-06 17:33:41 UTC) #39
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:100001) has been created in
https://codereview.chromium.org/2398463005/ by twellington@chromium.org.

The reason for reverting is: Breaking tests on Android bots, see bug comment..

Powered by Google App Engine
This is Rietveld 408576698