Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3743)

Unified Diff: chrome/browser/ui/views/avatar_menu_button.h

Issue 9500003: Add a button to exit managed mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.

Powered by Google App Engine
This is Rietveld 408576698