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

Unified Diff: chrome/browser/android/ntp/ntp_snippets_bridge.cc

Issue 2751093003: Unifies the additional actions for Categories (Closed)
Patch Set: Address comments Created 3 years, 9 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/browser/android/ntp/ntp_snippets_bridge.cc
diff --git a/chrome/browser/android/ntp/ntp_snippets_bridge.cc b/chrome/browser/android/ntp/ntp_snippets_bridge.cc
index e8e554cfd08dda415f0eba16973dfb4ec89d6a6c..928aaf08e45d460d14fff063195a882bd396d054 100644
--- a/chrome/browser/android/ntp/ntp_snippets_bridge.cc
+++ b/chrome/browser/android/ntp/ntp_snippets_bridge.cc
@@ -203,8 +203,8 @@ base::android::ScopedJavaLocalRef<jobject> NTPSnippetsBridge::GetCategoryInfo(
}
return Java_SnippetsBridge_createSuggestionsCategoryInfo(
env, j_category_id, ConvertUTF16ToJavaString(env, info->title()),
- static_cast<int>(info->card_layout()), info->has_fetch_action(),
- info->has_view_all_action(), info->show_if_empty(),
+ static_cast<int>(info->card_layout()),
+ static_cast<int>(info->additional_action()), info->show_if_empty(),
ConvertUTF16ToJavaString(env, info->no_suggestions_message()));
}

Powered by Google App Engine
This is Rietveld 408576698