| Index: chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java b/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java
|
| index 7fd0d7d4ccb9a5344e9fd0290496ddf1dea67af8..3447ca0f6f1cbd119911d21dddaebe834854fca4 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java
|
| @@ -237,6 +237,19 @@ public class CustomTabIntentDataProvider {
|
| }
|
|
|
| /**
|
| + * @return The {@link CustomButtonParams} having the given id. Returns null if no such params
|
| + * can be found.
|
| + */
|
| + public CustomButtonParams getButtonParamsForId(int id) {
|
| + for (CustomButtonParams params : mCustomButtonParams) {
|
| + // A custom button params will always carry an ID. If the client calls updateVisuals()
|
| + // without an id, we will assign the toolbar action button id to it.
|
| + if (id == params.getId()) return params;
|
| + }
|
| + return null;
|
| + }
|
| +
|
| + /**
|
| * @return Titles of menu items that were passed from client app via intent.
|
| */
|
| public List<String> getMenuTitles() {
|
|
|