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

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

Issue 2593573003: Ntp: use AMP urls for content suggestions when available. (Closed)
Patch Set: Created 4 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/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 6bcd4d41dde35693146262ae324eacb0f205da68..ccc5188b4cb1d3289848a5c08abff182ab67bcc0 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
@@ -30,9 +30,6 @@ public class SnippetArticle {
/** The URL of this article. */
public final String mUrl;
- /** the AMP url for this article (possible for this to be empty). */
- public final String mAmpUrl;
-
/** The time when this article was published. */
public final long mPublishTimestampMilliseconds;
@@ -51,7 +48,7 @@ public class SnippetArticle {
/** Stores whether impression of this article has been tracked already. */
private boolean mImpressionTracked;
- /** To be run when the offline status of the article or AMP article changes. */
+ /** To be run when the offline status of the article changes. */
private Runnable mOfflineStatusChangeRunnable;
/** Whether the linked article represents an asset download. */
@@ -73,15 +70,13 @@ public class SnippetArticle {
* Creates a SnippetArticleListItem object that will hold the data.
*/
public SnippetArticle(int category, String idWithinCategory, String title, String publisher,
- String previewText, String url, String ampUrl, long timestamp, float score,
- int position) {
+ String previewText, String url, long timestamp, float score, int position) {
mCategory = category;
mIdWithinCategory = idWithinCategory;
mTitle = title;
mPublisher = publisher;
mPreviewText = previewText;
mUrl = url;
- mAmpUrl = ampUrl;
mPublishTimestampMilliseconds = timestamp;
mScore = score;
mPosition = position;

Powered by Google App Engine
This is Rietveld 408576698