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

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

Issue 2158883002: Change NTPSnippetsBridge to read from ContentSuggestionsService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@offlinepagesprovider
Patch Set: Marc's comments; Rebase Created 4 years, 5 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
Index: chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetArticleListItem.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetArticleListItem.java b/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetArticleListItem.java
index 9c781904fdc7ad39fe834a7a89c9a3e9bf461fd5..59cb78017004f127782b7b41a036799188b2c646 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetArticleListItem.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetArticleListItem.java
@@ -20,7 +20,6 @@ public class SnippetArticleListItem implements NewTabPageListItem {
public final String mPreviewText;
public final String mUrl;
public final String mAmpUrl;
- public final String mThumbnailUrl;
public final long mPublishTimestampMilliseconds;
public final float mScore;
public final int mPosition;
@@ -41,21 +40,18 @@ public class SnippetArticleListItem implements NewTabPageListItem {
* @param previewText the snippet preview text
* @param url the URL of the article
* @param ampUrl the AMP url for the article (possible for this to be empty)
- * @param thumbnailUrl the URL of the thumbnail
* @param timestamp the time in ms when this article was published
* @param score the score expressing relative quality of the article for the user
* @param position the position of this article in the list of snippets
*/
public SnippetArticleListItem(String id, String title, String publisher, String previewText,
- String url, String ampUrl, String thumbnailUrl, long timestamp, float score,
- int position) {
+ String url, String ampUrl, long timestamp, float score, int position) {
mId = id;
mTitle = title;
mPublisher = publisher;
mPreviewText = previewText;
mUrl = url;
mAmpUrl = ampUrl;
- mThumbnailUrl = thumbnailUrl;
mPublishTimestampMilliseconds = timestamp;
mScore = score;
mPosition = position;

Powered by Google App Engine
This is Rietveld 408576698