summaryrefslogtreecommitdiffstats
path: root/ui/views/controls/button/button_dropdown.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui/views/controls/button/button_dropdown.h')
-rw-r--r--ui/views/controls/button/button_dropdown.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/views/controls/button/button_dropdown.h b/ui/views/controls/button/button_dropdown.h
index d58e640..8e57222 100644
--- a/ui/views/controls/button/button_dropdown.h
+++ b/ui/views/controls/button/button_dropdown.h
@@ -29,6 +29,7 @@ class VIEWS_EXPORT ButtonDropDown : public ImageButton {
// The button's class name.
static const char kViewClassName[];
+ // Takes ownership of the |model|.
ButtonDropDown(ButtonListener* listener, ui::MenuModel* model);
virtual ~ButtonDropDown();
@@ -67,7 +68,7 @@ class VIEWS_EXPORT ButtonDropDown : public ImageButton {
private:
// The model that populates the attached menu.
- ui::MenuModel* model_;
+ scoped_ptr<ui::MenuModel> model_;
// Indicates if menu is currently showing.
bool menu_showing_;