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

Issue 825773003: PasswordStore: Use ScopedVector to express ownership of forms (Closed)

Created:
5 years, 11 months ago by vabr (Chromium)
Modified:
5 years, 10 months ago
Reviewers:
vasilii
CC:
chromium-reviews, gcasto+watchlist_chromium.org, mkwst+watchlist-passwords_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PasswordStore: Use ScopedVector to express ownership of forms This is a clean-up, getting rid of many manual deletes and comments about who owns forms passed around in vectors. BUG=451018 Committed: https://crrev.com/155761f5775bf744f1600ce7a518767d24853117 Cr-Commit-Position: refs/heads/master@{#313539}

Patch Set 1 #

Patch Set 2 : Leaks fixed + VABR->vabr #

Total comments: 54

Patch Set 3 : Comments addressed #

Patch Set 4 : Fix Win & Mac compilation #

Patch Set 5 : Fix one more use-after-free #

Total comments: 5

Patch Set 6 : Use assignment instead of construction #

Unified diffs Side-by-side diffs Delta from patch set Stats (+596 lines, -650 lines) Patch
M chrome/browser/password_manager/native_backend_gnome_x.h View 3 chunks +9 lines, -6 lines 0 comments Download
M chrome/browser/password_manager/native_backend_gnome_x.cc View 14 chunks +42 lines, -38 lines 0 comments Download
M chrome/browser/password_manager/native_backend_gnome_x_unittest.cc View 13 chunks +7 lines, -13 lines 0 comments Download
M chrome/browser/password_manager/native_backend_kwallet_x.h View 6 chunks +21 lines, -15 lines 0 comments Download
M chrome/browser/password_manager/native_backend_kwallet_x.cc View 1 2 9 chunks +67 lines, -65 lines 0 comments Download
M chrome/browser/password_manager/native_backend_kwallet_x_unittest.cc View 14 chunks +12 lines, -18 lines 0 comments Download
M chrome/browser/password_manager/native_backend_libsecret.h View 5 chunks +13 lines, -11 lines 0 comments Download
M chrome/browser/password_manager/native_backend_libsecret.cc View 8 chunks +30 lines, -26 lines 0 comments Download
M chrome/browser/password_manager/native_backend_libsecret_unittest.cc View 8 chunks +11 lines, -12 lines 0 comments Download
M chrome/browser/password_manager/password_store_mac.h View 3 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/password_manager/password_store_mac.cc View 1 2 3 4 5 15 chunks +139 lines, -148 lines 0 comments Download
M chrome/browser/password_manager/password_store_mac_internal.h View 1 2 3 6 chunks +22 lines, -25 lines 0 comments Download
M chrome/browser/password_manager/password_store_mac_unittest.cc View 1 2 3 4 5 18 chunks +36 lines, -55 lines 0 comments Download
M chrome/browser/password_manager/password_store_win.h View 1 2 3 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/password_manager/password_store_win.cc View 1 2 5 chunks +11 lines, -15 lines 0 comments Download
M chrome/browser/password_manager/password_store_x.h View 4 chunks +9 lines, -8 lines 0 comments Download
M chrome/browser/password_manager/password_store_x.cc View 1 2 9 chunks +16 lines, -12 lines 0 comments Download
M chrome/browser/password_manager/password_store_x_unittest.cc View 1 2 3 4 9 chunks +40 lines, -40 lines 0 comments Download
M components/password_manager/core/browser/login_database.h View 3 chunks +13 lines, -12 lines 0 comments Download
M components/password_manager/core/browser/login_database.cc View 4 chunks +8 lines, -7 lines 0 comments Download
M components/password_manager/core/browser/login_database_unittest.cc View 41 chunks +29 lines, -71 lines 0 comments Download
M components/password_manager/core/browser/mock_password_store.h View 1 chunk +2 lines, -2 lines 0 comments Download
M components/password_manager/core/browser/password_store.h View 1 2 4 chunks +6 lines, -5 lines 0 comments Download
M components/password_manager/core/browser/password_store.cc View 1 2 2 chunks +6 lines, -5 lines 0 comments Download
M components/password_manager/core/browser/password_store_default.h View 1 chunk +2 lines, -2 lines 0 comments Download
M components/password_manager/core/browser/password_store_default.cc View 1 2 2 chunks +22 lines, -16 lines 0 comments Download
M components/password_manager/core/browser/password_store_sync.h View 2 chunks +3 lines, -4 lines 0 comments Download
M components/password_manager/core/browser/password_syncable_service.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M components/password_manager/core/browser/test_password_store.h View 1 chunk +2 lines, -2 lines 0 comments Download
M components/password_manager/core/browser/test_password_store.cc View 1 2 2 chunks +6 lines, -7 lines 0 comments Download

Messages

Total messages: 30 (17 generated)
vabr (Chromium)
Hi Vasilii, Please have a look. One change which is still pending is removing std::vector ...
5 years, 11 months ago (2015-01-27 14:28:14 UTC) #17
vabr (Chromium)
I'm fixing the ASAN failures now, will update this CL shortly. The GetLoginsRequest changes will ...
5 years, 11 months ago (2015-01-27 16:02:56 UTC) #18
vabr (Chromium)
Hi Vasilii, The CL is not ready for review again. This is how I propose ...
5 years, 11 months ago (2015-01-27 16:07:43 UTC) #19
vasilii
On 2015/01/27 16:07:43, vabr (Chromium) wrote: > Hi Vasilii, > > The CL is not ...
5 years, 11 months ago (2015-01-27 20:45:31 UTC) #20
vasilii
https://codereview.chromium.org/825773003/diff/310001/chrome/browser/password_manager/native_backend_kwallet_x.cc File chrome/browser/password_manager/native_backend_kwallet_x.cc (right): https://codereview.chromium.org/825773003/diff/310001/chrome/browser/password_manager/native_backend_kwallet_x.cc#newcode713 chrome/browser/password_manager/native_backend_kwallet_x.cc:713: for (const auto& form : forms) { autofill::PasswordForm* form ...
5 years, 11 months ago (2015-01-27 20:45:52 UTC) #21
vabr (Chromium)
Thanks a lot, Vasilii, your review has been very fast and helpful. Please have another ...
5 years, 10 months ago (2015-01-28 13:27:37 UTC) #22
vasilii
lgtm https://codereview.chromium.org/825773003/diff/310001/chrome/browser/password_manager/password_store_mac.cc File chrome/browser/password_manager/password_store_mac.cc (right): https://codereview.chromium.org/825773003/diff/310001/chrome/browser/password_manager/password_store_mac.cc#newcode430 chrome/browser/password_manager/password_store_mac.cc:430: form = nullptr; On 2015/01/28 13:27:36, vabr (Chromium) ...
5 years, 10 months ago (2015-01-28 15:09:03 UTC) #23
vabr (Chromium)
Thanks, Vasilii! Comments addressed below. I'll wait for the trybots and repetition of the benchmark ...
5 years, 10 months ago (2015-01-28 16:36:27 UTC) #24
vasilii
https://codereview.chromium.org/825773003/diff/370001/chrome/browser/password_manager/password_store_mac.cc File chrome/browser/password_manager/password_store_mac.cc (right): https://codereview.chromium.org/825773003/diff/370001/chrome/browser/password_manager/password_store_mac.cc#newcode526 chrome/browser/password_manager/password_store_mac.cc:526: ScopedVector<autofill::PasswordForm> keychain_matches( On 2015/01/28 16:36:27, vabr (Chromium) wrote: > ...
5 years, 10 months ago (2015-01-28 17:27:23 UTC) #25
vabr (Chromium)
The benchmark on Mac is still compiling. I will land this now, and if the ...
5 years, 10 months ago (2015-01-28 17:28:09 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/825773003/390001
5 years, 10 months ago (2015-01-28 17:30:20 UTC) #28
commit-bot: I haz the power
Committed patchset #6 (id:390001)
5 years, 10 months ago (2015-01-28 17:44:06 UTC) #29
commit-bot: I haz the power
5 years, 10 months ago (2015-01-28 17:45:00 UTC) #30
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/155761f5775bf744f1600ce7a518767d24853117
Cr-Commit-Position: refs/heads/master@{#313539}

Powered by Google App Engine
This is Rietveld 408576698