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

Issue 2691323002: Fixed memory leak in Password Manager UI. (Closed)

Created:
3 years, 10 months ago by dvadym
Modified:
3 years, 10 months ago
Reviewers:
Mathieu, vasilii
CC:
chromium-reviews, tfarina, gcasto+watchlist_chromium.org, vabr+watchlistpasswordmanager_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixed memory leak in Password Manager UI. view::Combobox is not owner of a model, previously the model was not deleted in CredentialsSelectionView. BUG=692464 Review-Url: https://codereview.chromium.org/2691323002 Cr-Commit-Position: refs/heads/master@{#450670} Committed: https://chromium.googlesource.com/chromium/src/+/3f04263b4bf4d2d0cc447e0b162a837d60b2ba73

Patch Set 1 #

Patch Set 2 : Comment updated #

Total comments: 2

Patch Set 3 : Addressing reviewer's comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -11 lines) Patch
M chrome/browser/ui/views/passwords/credentials_selection_view.h View 1 2 3 chunks +8 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/passwords/credentials_selection_view.cc View 1 2 4 chunks +11 lines, -8 lines 2 comments Download

Messages

Total messages: 19 (12 generated)
dvadym
Hi Vasilii, could you please review this CL? Regards, Vadym
3 years, 10 months ago (2017-02-14 16:01:06 UTC) #4
vasilii
lgtm https://codereview.chromium.org/2691323002/diff/20001/chrome/browser/ui/views/passwords/credentials_selection_view.cc File chrome/browser/ui/views/passwords/credentials_selection_view.cc (right): https://codereview.chromium.org/2691323002/diff/20001/chrome/browser/ui/views/passwords/credentials_selection_view.cc#newcode84 chrome/browser/ui/views/passwords/credentials_selection_view.cc:84: views::Combobox* CredentialsSelectionView::GenerateUsernameCombobox( I'd drop the return value.
3 years, 10 months ago (2017-02-14 16:07:18 UTC) #5
dvadym
Thanks Vasilii for review! https://codereview.chromium.org/2691323002/diff/20001/chrome/browser/ui/views/passwords/credentials_selection_view.cc File chrome/browser/ui/views/passwords/credentials_selection_view.cc (right): https://codereview.chromium.org/2691323002/diff/20001/chrome/browser/ui/views/passwords/credentials_selection_view.cc#newcode84 chrome/browser/ui/views/passwords/credentials_selection_view.cc:84: views::Combobox* CredentialsSelectionView::GenerateUsernameCombobox( On 2017/02/14 16:07:18, ...
3 years, 10 months ago (2017-02-15 10:55:23 UTC) #7
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/2691323002/40001
3 years, 10 months ago (2017-02-15 11:00:27 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/3f04263b4bf4d2d0cc447e0b162a837d60b2ba73
3 years, 10 months ago (2017-02-15 11:43:04 UTC) #16
Mathieu
https://codereview.chromium.org/2691323002/diff/40001/chrome/browser/ui/views/passwords/credentials_selection_view.cc File chrome/browser/ui/views/passwords/credentials_selection_view.cc (right): https://codereview.chromium.org/2691323002/diff/40001/chrome/browser/ui/views/passwords/credentials_selection_view.cc#newcode73 chrome/browser/ui/views/passwords/credentials_selection_view.cc:73: combobox_.reset(); you could also have combobox_model_ be above combobox_ ...
3 years, 10 months ago (2017-02-15 13:46:57 UTC) #18
dvadym
3 years, 10 months ago (2017-02-15 13:57:13 UTC) #19
Message was sent while issue was closed.
https://codereview.chromium.org/2691323002/diff/40001/chrome/browser/ui/views...
File chrome/browser/ui/views/passwords/credentials_selection_view.cc (right):

https://codereview.chromium.org/2691323002/diff/40001/chrome/browser/ui/views...
chrome/browser/ui/views/passwords/credentials_selection_view.cc:73:
combobox_.reset();
On 2017/02/15 13:46:57, Mathieu Perreault wrote:
> you could also have combobox_model_ be above combobox_ in the member list. C++
> destroys members in reverse order of their instantiation

Yeah, sure. In other places it was done this way. But I like more explicit way,
probably just matter of preferences.

Powered by Google App Engine
This is Rietveld 408576698