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

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

Issue 2463133002: 📰 Make the MORE button more configurable (Closed)
Patch Set: rebase Created 4 years, 1 month 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/SnippetsBridge.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsBridge.java b/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsBridge.java
index 6b1a6d096d388fefcb08b9b18babc887a7785047..e99fe869e7993d399aab3dcf330a9c8f74781dee 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsBridge.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsBridge.java
@@ -203,10 +203,10 @@ private static void addSuggestion(List<SnippetArticle> suggestions, int category
@CalledByNative
private static SuggestionsCategoryInfo createSuggestionsCategoryInfo(int category, String title,
- int cardLayout, boolean hasMoreButton, boolean showIfEmpty,
- String noSuggestionsMessage) {
- return new SuggestionsCategoryInfo(
- category, title, cardLayout, hasMoreButton, showIfEmpty, noSuggestionsMessage);
+ int cardLayout, boolean hasMoreAction, boolean hasReloadAction,
+ boolean hasViewAllAction, boolean showIfEmpty, String noSuggestionsMessage) {
+ return new SuggestionsCategoryInfo(category, title, cardLayout, hasMoreAction,
+ hasReloadAction, hasViewAllAction, showIfEmpty, noSuggestionsMessage);
}
@CalledByNative
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/SuggestionsSection.java ('k') | chrome/android/java_sources.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698