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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/StatusItem.java

Issue 2573173002: 📰 Split TreeNode#init into SetParent and SetChildren (Closed)
Patch Set: revert getChildren() change Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/StatusItem.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/StatusItem.java b/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/StatusItem.java
index 1c684de87cb65c57e9c9b7b0f14ca6c971080b89..c68445aa2662edf5604e7c147a5945ff9e40eaeb 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/StatusItem.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/StatusItem.java
@@ -14,20 +14,14 @@
* configuration that affects the NTP suggestions.
*/
public abstract class StatusItem extends OptionalLeaf implements StatusCardViewHolder.DataSource {
-
- protected StatusItem(NodeParent parent) {
- super(parent);
- }
-
- public static StatusItem createNoSuggestionsItem(SuggestionsSection parentSection) {
- return new NoSuggestionsItem(parentSection);
+ public static StatusItem createNoSuggestionsItem(SuggestionsCategoryInfo categoryInfo) {
+ return new NoSuggestionsItem(categoryInfo);
}
private static class NoSuggestionsItem extends StatusItem {
private final String mDescription;
- public NoSuggestionsItem(SuggestionsSection parentSection) {
- super(parentSection);
- mDescription = parentSection.getCategoryInfo().getNoSuggestionsMessage();
+ public NoSuggestionsItem(SuggestionsCategoryInfo categoryInfo) {
+ mDescription = categoryInfo.getNoSuggestionsMessage();
}
@Override

Powered by Google App Engine
This is Rietveld 408576698