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

Issue 2233123003: Fix many memory leaks in chrome/browser/ui/cocoa/omnibox. (Closed)

Created:
4 years, 4 months ago by erikchen
Modified:
4 years, 4 months ago
Reviewers:
Robert Sesek
CC:
chromium-reviews, James Su
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix many memory leaks in chrome/browser/ui/cocoa/omnibox. Each time I type or delete a character from the omnibox, UpdatePopupApperance is called at least 3 times. Each call to OmniboxPopupViewMac::UpdatePopupApperance was leaking an NSViewController*, as well as all omnibox results. BUG=636632 Committed: https://crrev.com/b87e1820a06ac5dd1d9881be5342286fac920e43 Cr-Commit-Position: refs/heads/master@{#411637}

Patch Set 1 #

Patch Set 2 : Fix more leaks. #

Patch Set 3 : Compile errors. #

Patch Set 4 : Compile errors. #

Patch Set 5 : Fix a double release. #

Total comments: 4

Patch Set 6 : Comments from rsesek. #

Total comments: 2

Patch Set 7 : Comments from rsesek. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -38 lines) Patch
M chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.h View 1 2 3 4 5 1 chunk +17 lines, -30 lines 0 comments Download
M chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm View 1 2 3 4 5 6 3 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/ui/cocoa/omnibox/omnibox_popup_matrix.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.mm View 1 2 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 27 (18 generated)
erikchen
rsesek: Please review.
4 years, 4 months ago (2016-08-10 23:26:19 UTC) #3
Robert Sesek
Yikes! I'm wondering if were possible for ASan to have detected this. Do we have ...
4 years, 4 months ago (2016-08-11 15:17:03 UTC) #12
erikchen
The code is not tested by browser_tests. I filed https://bugs.chromium.org/p/chromium/issues/detail?id=637005 https://codereview.chromium.org/2233123003/diff/80001/chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.h File chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.h (right): https://codereview.chromium.org/2233123003/diff/80001/chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.h#newcode18 ...
4 years, 4 months ago (2016-08-11 17:47:52 UTC) #15
Robert Sesek
LGTM https://codereview.chromium.org/2233123003/diff/100001/chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm File chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm (right): https://codereview.chromium.org/2233123003/diff/100001/chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm#newcode400 chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm:400: @private @private not necessary here, but harmless
4 years, 4 months ago (2016-08-11 19:05:35 UTC) #16
erikchen
https://codereview.chromium.org/2233123003/diff/100001/chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm File chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm (right): https://codereview.chromium.org/2233123003/diff/100001/chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm#newcode400 chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm:400: @private On 2016/08/11 19:05:35, Robert Sesek wrote: > @private ...
4 years, 4 months ago (2016-08-11 19:17:12 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2233123003/120001
4 years, 4 months ago (2016-08-11 19:18:00 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/276334)
4 years, 4 months ago (2016-08-11 21:39:36 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2233123003/120001
4 years, 4 months ago (2016-08-12 13:30:17 UTC) #24
commit-bot: I haz the power
4 years, 4 months ago (2016-08-12 14:03:06 UTC) #27
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/b87e1820a06ac5dd1d9881be5342286fac920e43
Cr-Commit-Position: refs/heads/master@{#411637}

Powered by Google App Engine
This is Rietveld 408576698