| Index: chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarManager.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarManager.java b/chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarManager.java
|
| index 518fb20427ecd0f5db353ffae75ec57c4a0fba62..c2213a3df29a378a9cd0da7139d40436ee939614 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarManager.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarManager.java
|
| @@ -620,14 +620,15 @@ public class ToolbarManager implements ToolbarTabController, UrlFocusChangeListe
|
| }
|
|
|
| /**
|
| - * Adds a custom action button to the {@link Toolbar} if it is supported.
|
| - * @param drawable The {@link Drawable} to use as the background for the button.
|
| - * @param description The content description for the custom action button.
|
| - * @param listener The {@link OnClickListener} to use for clicks to the button.
|
| + * Sets/adds a custom action button to the {@link Toolbar} if it is supported. If there is
|
| + * already an action button, update the button instead.
|
| + * @param drawable The {@link Drawable} to use as the background for the button.
|
| + * @param description The content description for the custom action button.
|
| + * @param listener The {@link OnClickListener} to use for clicks to the button.
|
| */
|
| - public void addCustomActionButton(Drawable drawable, String description,
|
| + public void setCustomActionButton(Drawable drawable, String description,
|
| OnClickListener listener) {
|
| - mToolbar.addCustomActionButton(drawable, description, listener);
|
| + mToolbar.setCustomActionButton(drawable, description, listener);
|
| }
|
|
|
| /**
|
|
|