They should instead be passed as a single array of some new 'Action' object, and the types of the actions (button/text) should be encoded as an enum not strings.
use GENERATED_JAVA_ENUM_PACKAGE as suggested in https://codereview.chromium.org/2337963003/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationPlatformBridge.java#newcode529 for the enum
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/8e0c4af8157b210323a4622ff9f614216b58f6af commit 8e0c4af8157b210323a4622ff9f614216b58f6af Author: awdf <awdf@chromium.org> Date: Thu Oct 20 18:21:19 2016 Combine action parameters sent to Android displayNotification - Combine the 4 notification action arrays sent through JNI into a single array of ActionInfo java objects - Pass action type as a java-exported enum/int BUG= 650302 Review-Url: https://chromiumcodereview.appspot.com/2440483002 Cr-Commit-Position: refs/heads/master@{#426535} [modify] https://crrev.com/8e0c4af8157b210323a4622ff9f614216b58f6af/chrome/android/BUILD.gn [add] https://crrev.com/8e0c4af8157b210323a4622ff9f614216b58f6af/chrome/android/java/src/org/chromium/chrome/browser/notifications/ActionInfo.java [modify] https://crrev.com/8e0c4af8157b210323a4622ff9f614216b58f6af/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationPlatformBridge.java [modify] https://crrev.com/8e0c4af8157b210323a4622ff9f614216b58f6af/chrome/android/java_sources.gni [modify] https://crrev.com/8e0c4af8157b210323a4622ff9f614216b58f6af/chrome/browser/BUILD.gn [modify] https://crrev.com/8e0c4af8157b210323a4622ff9f614216b58f6af/chrome/browser/notifications/notification_platform_bridge_android.cc
Comment 1 by awdf@chromium.org
, Sep 27 2016