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

Issue 10832184: Fixed memory leak. Untangled confusing code with menu initialization and ownership. (Closed)

Created:
8 years, 4 months ago by gene
Modified:
8 years, 4 months ago
CC:
chromium-reviews, tfarina, dcheng
Visibility:
Public.

Description

Fixed memory leak. Untangled confusing code with menu initialization and ownership. BUG=141037 TEST=Make sure memory bots passed. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=150469

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -17 lines) Patch
M chrome/browser/ui/views/button_dropdown_test.cc View 1 3 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/ui/views/toolbar_view.h View 1 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/toolbar_view.cc View 1 2 chunks +3 lines, -6 lines 0 comments Download
M ui/views/controls/button/button_dropdown.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M ui/views/controls/button/button_dropdown.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M ui/views/view_unittest.cc View 1 2 chunks +1 line, -2 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
gene
Hi Peter, Since you did previous CL, could you please take a look at quick ...
8 years, 4 months ago (2012-08-07 19:07:52 UTC) #1
Peter Kasting
This does fix the bug, but I think it would be better to instead change ...
8 years, 4 months ago (2012-08-07 19:43:03 UTC) #2
gene
OK, sounds good. Let me try going this way and have DropDownButton manage menu model ...
8 years, 4 months ago (2012-08-07 20:58:34 UTC) #3
gene
OK, here is a new implementation, please take a look. On 2012/08/07 20:58:34, gene wrote: ...
8 years, 4 months ago (2012-08-07 21:27:15 UTC) #4
Peter Kasting
LGTM https://chromiumcodereview.appspot.com/10832184/diff/7002/ui/views/controls/button/button_dropdown.h File ui/views/controls/button/button_dropdown.h (right): https://chromiumcodereview.appspot.com/10832184/diff/7002/ui/views/controls/button/button_dropdown.h#newcode32 ui/views/controls/button/button_dropdown.h:32: // Constructor takes ownership of the |model| and ...
8 years, 4 months ago (2012-08-07 21:32:26 UTC) #5
gene
ben, sky - could you please take a look as OWNERS of ui/views? https://chromiumcodereview.appspot.com/10832184/diff/7002/ui/views/controls/button/button_dropdown.h File ...
8 years, 4 months ago (2012-08-07 21:42:37 UTC) #6
sky
LGTM
8 years, 4 months ago (2012-08-07 21:46:38 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gene@chromium.org/10832184/4008
8 years, 4 months ago (2012-08-07 22:59:14 UTC) #8
commit-bot: I haz the power
8 years, 4 months ago (2012-08-08 00:33:42 UTC) #9
Change committed as 150469

Powered by Google App Engine
This is Rietveld 408576698