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

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

Issue 2377663002: [NTP Snippets] Introduce ContentSuggestion::ID (Closed)
Patch Set: rebase 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..2b29f57d92dc5b291808a86bbb12c06c4f2c3b4e 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 idWithinCategory) {
for (SnippetArticle suggestion : mSuggestions) {
- if (suggestion.mId.equals(suggestionId)) {
+ if (suggestion.mIdWithinCategory.equals(idWithinCategory)) {
removeSuggestion(suggestion);
return;
}

Powered by Google App Engine
This is Rietveld 408576698