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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/Leaf.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/Leaf.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/Leaf.java b/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/Leaf.java
index a2282a050c143b86803ca35793c5e8eafb154a85..ade8c74612e2d688ae4b362dd80a5f92ab8a3170 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/Leaf.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/Leaf.java
@@ -11,7 +11,7 @@
* If the leaf is not to be a permanent member of the tree, see {@link OptionalLeaf} for an
* implementation that will take care of hiding or showing the item.
*/
-public abstract class Leaf implements TreeNode {
+public abstract class Leaf extends ChildNode {
@Override
public int getItemCount() {
return 1;
@@ -42,9 +42,6 @@ public int getDismissSiblingPosDelta(int position) {
return 0;
}
- @Override
- public void init() {}
-
/**
* Display the data for this item.
* @param holder The view holder that should be updated.

Powered by Google App Engine
This is Rietveld 408576698