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

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

Issue 1540663002: Prettier "last synced" times on the recent tabs page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: happened just now Created 5 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/RecentTabsRowAdapter.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ntp/RecentTabsRowAdapter.java b/chrome/android/java/src/org/chromium/chrome/browser/ntp/RecentTabsRowAdapter.java
index 79dba74656a3b33300be4cf4608c266ccf6fe198..6040b591a0e3715c543b5b1e9fdf254f3a7d42d0 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ntp/RecentTabsRowAdapter.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ntp/RecentTabsRowAdapter.java
@@ -32,7 +32,6 @@ import org.chromium.ui.base.DeviceFormFactor;
import java.util.ArrayList;
import java.util.List;
-import java.util.concurrent.TimeUnit;
/**
* Row adapter for presenting recently closed tabs, synced tabs from other devices, the sync or
@@ -56,7 +55,6 @@ public class RecentTabsRowAdapter extends BaseExpandableListAdapter {
private final RecentlyClosedTabsGroup mRecentlyClosedTabsGroup = new RecentlyClosedTabsGroup();
private final SeparatorGroup mVisibleSeparatorGroup = new SeparatorGroup(true);
private final SeparatorGroup mInvisibleSeparatorGroup = new SeparatorGroup(false);
- private final long mInitializationTimestamp; // Seconds since Unix epoch.
private final FaviconCache mFaviconCache;
private final int mFaviconSize;
@@ -138,7 +136,6 @@ public class RecentTabsRowAdapter extends BaseExpandableListAdapter {
if (groupView == null) {
groupView = (RecentTabsGroupView) LayoutInflater.from(mActivity).inflate(
R.layout.recent_tabs_group_item, parent, false);
- groupView.initialize(mInitializationTimestamp);
}
configureGroupView(groupView, isExpanded);
return groupView;
@@ -662,8 +659,6 @@ public class RecentTabsRowAdapter extends BaseExpandableListAdapter {
mActivity = activity;
mRecentTabsManager = recentTabsManager;
mGroups = new ArrayList<Group>();
- mInitializationTimestamp =
- TimeUnit.SECONDS.convert(System.currentTimeMillis(), TimeUnit.MILLISECONDS);
mFaviconCache = buildFaviconCache(MAX_NUM_FAVICONS_TO_CACHE);
Resources resources = activity.getResources();

Powered by Google App Engine
This is Rietveld 408576698