Index: chrome/browser/views/browser_actions_container.h |
diff --git a/chrome/browser/views/browser_actions_container.h b/chrome/browser/views/browser_actions_container.h |
index acd868f9b1a6714e538940a53f112cf44a977772..8b6dca78c07e1a19e5dc5558a1044d90d292fbe7 100644 |
--- a/chrome/browser/views/browser_actions_container.h |
+++ b/chrome/browser/views/browser_actions_container.h |
@@ -397,7 +397,14 @@ class BrowserActionsContainer |
// all the padding that we normally show if there are icons. |
int ContainerMinSize() const; |
- // The vector of browser actions (icons/image buttons for each action). |
+ // Returns true if this extension should be shown in this toolbar. This can |
+ // return false if we are in an incognito window and the extension is disabled |
+ // for incognito. |
+ bool ShouldDisplayBrowserAction(Extension* extension); |
+ |
+ // The vector of browser actions (icons/image buttons for each action). Note |
+ // that not every BrowserAction in the ToolbarModel will necessarily be in |
+ // this collection. Some extensions may be disabled in incognito windows. |
BrowserActionViews browser_action_views_; |
NotificationRegistrar registrar_; |