| Index: chrome/android/java/src/org/chromium/chrome/browser/ntp/MostVisitedItem.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ntp/MostVisitedItem.java b/chrome/android/java/src/org/chromium/chrome/browser/ntp/MostVisitedItem.java
|
| index 3e83b9e264149fb990bfd8a9dcc46afb3ca03d35..ceb0e62af41493bd6df9317eb03cf24c0f113713 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/ntp/MostVisitedItem.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/ntp/MostVisitedItem.java
|
| @@ -49,25 +49,29 @@ public class MostVisitedItem implements OnCreateContextMenuListener,
|
| private MostVisitedItemManager mManager;
|
| private String mTitle;
|
| private String mUrl;
|
| + private String mLargeIconPath;
|
| private boolean mOfflineAvailable;
|
| private int mIndex;
|
| private int mTileType;
|
| private View mView;
|
|
|
| /**
|
| - * Constructs a MostVisitedItem with the given manager, title, URL, index, and view.
|
| + * Constructs a MostVisitedItem with the given manager, title, URL, large icon path, index, and
|
| + * view.
|
| *
|
| * @param manager The NewTabPageManager used to handle clicks and context menu events.
|
| * @param title The title of the page.
|
| * @param url The URL of the page.
|
| + * @param largeIconPath The path of the icon associated with the URL that is stored locally.
|
| * @param offlineAvailable Whether there is an offline copy of the URL available.
|
| * @param index The index of this item in the list of most visited items.
|
| */
|
| public MostVisitedItem(MostVisitedItemManager manager, String title, String url,
|
| - boolean offlineAvailable, int index) {
|
| + String largeIconPath, boolean offlineAvailable, int index) {
|
| mManager = manager;
|
| mTitle = title;
|
| mUrl = url;
|
| + mLargeIconPath = largeIconPath;
|
| mOfflineAvailable = offlineAvailable;
|
| mIndex = index;
|
| mTileType = MostVisitedTileType.NONE;
|
| @@ -99,6 +103,13 @@ public class MostVisitedItem implements OnCreateContextMenuListener,
|
| }
|
|
|
| /**
|
| + * @return The path of the icon associated with the URL that is stored locally.
|
| + */
|
| + public String getLargeIconPath() {
|
| + return mLargeIconPath;
|
| + }
|
| +
|
| + /**
|
| * @return The title of this most visited item.
|
| */
|
| public String getTitle() {
|
|
|