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

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

Issue 2616953002: RecentTabsPage code cleanup. (Closed)
Patch Set: Rebase. Created 3 years, 11 months 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
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/ntp/RecentTabsRowAdapter.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/ntp/RecentTabsPage.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ntp/RecentTabsPage.java b/chrome/android/java/src/org/chromium/chrome/browser/ntp/RecentTabsPage.java
index 8b16c18b0537567e74a368c5964f980f19065f76..34cb521b96655ac7c0605b2b01679c7f5a7890ac 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ntp/RecentTabsPage.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ntp/RecentTabsPage.java
@@ -89,7 +89,7 @@ public class RecentTabsPage
LayoutInflater inflater = LayoutInflater.from(activity);
mView = (ViewGroup) inflater.inflate(R.layout.recent_tabs_page, null);
mListView = (ExpandableListView) mView.findViewById(R.id.odp_listview);
- mAdapter = buildAdapter(activity, recentTabsManager);
+ mAdapter = new RecentTabsRowAdapter(activity, recentTabsManager);
mListView.setAdapter(mAdapter);
mListView.setOnChildClickListener(this);
mListView.setGroupIndicator(null);
@@ -104,11 +104,6 @@ public class RecentTabsPage
onUpdated();
}
- private static RecentTabsRowAdapter buildAdapter(Activity activity,
- RecentTabsManager recentTabsManager) {
- return new RecentTabsRowAdapter(activity, recentTabsManager);
- }
-
/**
* Updates whether the page is in the foreground based on whether the application is in the
* foreground and whether {@link #mView} is attached to the application window. If the page is
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/ntp/RecentTabsRowAdapter.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698