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

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

Issue 2627603002: [NTP::SectionOrder] Propagate category rank from UI through the bridge. (Closed)
Patch Set: 1-based categoryRank -> 0-based categoryIndex. Created 3 years, 11 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/NewTabPageView.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java b/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java
index 78ff652057e3d5222af99540591947c2e8f2ca92..1915b3c58200d6a3ef4594beb53e331ae466a798 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java
@@ -200,8 +200,9 @@ public class NewTabPageView extends FrameLayout
* Opens a content suggestion and records related metrics.
* @param windowOpenDisposition How to open (current tab, new tab, new window etc).
* @param article The content suggestion to open.
+ * @param categoryIndex The index of the category |article| belongs to.
*/
- void openSnippet(int windowOpenDisposition, SnippetArticle article);
+ void openSnippet(int windowOpenDisposition, SnippetArticle article, int categoryIndex);
/**
* Animates the search box up into the omnibox and bring up the keyboard.

Powered by Google App Engine
This is Rietveld 408576698