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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetArticle.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 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/SnippetArticle.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetArticle.java b/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetArticle.java
index c105529cbff3a10d2bc2972fd6cbc83dcf692b26..ebd32b4b40d812e06344546f0853f5486ad53f1a 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetArticle.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetArticle.java
@@ -20,7 +20,6 @@ public class SnippetArticle 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;
@@ -40,21 +39,19 @@ public class SnippetArticle implements NewTabPageListItem {
* @param publisher the canonical publisher name (e.g., New York Times)
* @param previewText the snippet preview text
* @param url the URL of the article
- * @param mAmpUrl the AMP url for the article (possible for this to be empty)
- * @param thumbnailUrl the URL of the thumbnail
+ * @param ampUrl the AMP url for the article (possible for this to be empty)
* @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 SnippetArticle(String id, String title, String publisher, String previewText, String url,
- String ampUrl, String thumbnailUrl, long timestamp, float score, int position) {
+ 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