Index: chrome/browser/ui/views/avatar_menu_button.h |
diff --git a/chrome/browser/ui/views/avatar_menu_button.h b/chrome/browser/ui/views/avatar_menu_button.h |
index 6edc79a607192b0c1ae861bd39f3c999359f19c4..dbd8ffe42cb35f267ebb4334e6574f7e8e083013 100644 |
--- a/chrome/browser/ui/views/avatar_menu_button.h |
+++ b/chrome/browser/ui/views/avatar_menu_button.h |
@@ -32,9 +32,9 @@ void DrawTaskBarDecoration(gfx::NativeWindow window, const gfx::Image* image); |
class AvatarMenuButton : public views::MenuButton, |
public views::MenuButtonListener { |
public: |
- // Creates a new button. If |has_menu| is true then clicking on the button |
- // will cause the profile menu to be displayed. |
- AvatarMenuButton(Browser* browser, bool has_menu); |
+ // Creates a new button. If |incognito| is true and we're not in managed mode, |
+ // clicking on the button will cause the profile menu to be displayed. |
+ AvatarMenuButton(Browser* browser, bool incognito); |
virtual ~AvatarMenuButton(); |
@@ -52,8 +52,10 @@ class AvatarMenuButton : public views::MenuButton, |
virtual void OnMenuButtonClicked(views::View* source, |
const gfx::Point& point) OVERRIDE; |
+ void ButtonClicked(); |
+ |
Browser* browser_; |
- bool has_menu_; |
+ bool incognito_; |
scoped_ptr<ui::MenuModel> menu_model_; |
// Use a scoped ptr because gfx::Image doesn't have a default constructor. |