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

Unified Diff: ui/views/controls/button/button_dropdown.h

Issue 10832184: Fixed memory leak. Untangled confusing code with menu initialization and ownership. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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: ui/views/controls/button/button_dropdown.h
===================================================================
--- ui/views/controls/button/button_dropdown.h (revision 150365)
+++ ui/views/controls/button/button_dropdown.h (working copy)
@@ -32,6 +32,8 @@
ButtonDropDown(ButtonListener* listener, ui::MenuModel* model);
virtual ~ButtonDropDown();
+ void set_menu_model(ui::MenuModel* model) { model_ = model; }
+
// If menu is currently pending for long press - stop it.
void ClearPendingMenu();
« chrome/browser/ui/views/reload_button.cc ('K') | « chrome/browser/ui/views/reload_button.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698