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

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

Issue 2377663002: [NTP Snippets] Introduce ContentSuggestion::ID (Closed)
Patch Set: . Created 4 years, 3 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/cards/SuggestionsSection.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/SuggestionsSection.java b/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/SuggestionsSection.java
index 63482506e42039b7365ad72cc92c74231d399186..92efa78fc37fed1e55ee886548d0c9b276a5f6d2 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/SuggestionsSection.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/SuggestionsSection.java
@@ -67,9 +67,9 @@ public class SuggestionsSection implements ItemGroup {
if (mMoreButton != null) mMoreButton.setDismissable(!hasSuggestions());
}
- public void removeSuggestionById(String suggestionId) {
+ public void removeSuggestionById(String withinCategoryId) {
for (SnippetArticle suggestion : mSuggestions) {
- if (suggestion.mId.equals(suggestionId)) {
+ if (suggestion.mWithinCategoryId.equals(withinCategoryId)) {
removeSuggestion(suggestion);
return;
}

Powered by Google App Engine
This is Rietveld 408576698