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

Issue 1929573002: Changed location of LibsecretLoader (Closed)

Created:
4 years, 7 months ago by cfroussios
Modified:
4 years, 7 months ago
CC:
chromium-reviews, gcasto+watchlist_chromium.org, vabr+watchlistpasswordmanager_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

Changed location of Libsecret utils Moved classes LibsecretLoader and LibsecretAttributeBuilder from password_manager to os_crypt. In the future, password_manager will not interact with libsecret directly, while os_crypt will. Responsibility is therefore transfered. For now, password_manager continues to use those utilites. Currently, Password Manager stores passwords one by one in libsecret. With this and future CL(s), we will only store an encryption key with libsecret and use said key to protect a local database, managed by the Password Manager. BUG=602624 TBR=caitkp@chromium.org for components/os_crypt.gypi Committed: https://crrev.com/df99cec1248d89188156bf53aba322c3a9e0f0bb Cr-Commit-Position: refs/heads/master@{#390706}

Patch Set 1 #

Patch Set 2 : password_manager explicitly includes libsecret.h #

Total comments: 19

Patch Set 3 : Fixed gyp for os_crypt #

Patch Set 4 : Applied refactoring recommendations #

Patch Set 5 : Added omitted reference to open bug #

Patch Set 6 : Fixed compilation error #

Total comments: 8

Patch Set 7 : Moved omitted implementation and also moved LibsecretAttributesBuilder #

Total comments: 8

Patch Set 8 : LibsecretLoader no longer inherited from + linting #

Total comments: 16

Patch Set 9 : Documentation, renaming to libsecret_utils_posix, introduced EnsureLibsecretLoaded method #

Patch Set 10 : Documentation reflects change #

Total comments: 10

Patch Set 11 : Nits #

Patch Set 12 : Caught required attribute in dummy schema #

Patch Set 13 : Fixed memory errors #

Total comments: 1

Patch Set 14 : Added TODO and reference to bug #

Unified diffs Side-by-side diffs Delta from patch set Stats (+269 lines, -184 lines) Patch
M chrome/browser/password_manager/native_backend_libsecret.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -30 lines 0 comments Download
M chrome/browser/password_manager/native_backend_libsecret.cc View 1 2 3 4 5 6 7 8 11 chunks +28 lines, -153 lines 0 comments Download
M chrome/browser/password_manager/native_backend_libsecret_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M components/os_crypt.gypi View 1 2 3 4 5 6 7 8 1 chunk +12 lines, -0 lines 0 comments Download
M components/os_crypt/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +9 lines, -0 lines 0 comments Download
A components/os_crypt/libsecret_util_posix.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +83 lines, -0 lines 0 comments Download
A components/os_crypt/libsecret_util_posix.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +134 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (12 generated)
cfroussios
4 years, 7 months ago (2016-04-27 17:28:08 UTC) #3
vabr (Chromium)
Thanks, this looks mostly good, I only had a couple of comments to improve the ...
4 years, 7 months ago (2016-04-28 07:53:21 UTC) #4
vabr (Chromium)
Also, before you loop in the os_crypt OWNER, thestig@, it might be a good idea ...
4 years, 7 months ago (2016-04-28 07:56:15 UTC) #5
cfroussios
https://codereview.chromium.org/1929573002/diff/20001/components/os_crypt/libsecret_loader.cc File components/os_crypt/libsecret_loader.cc (right): https://codereview.chromium.org/1929573002/diff/20001/components/os_crypt/libsecret_loader.cc#newcode1 components/os_crypt/libsecret_loader.cc:1: // Copyright (c) 2016 The Chromium Authors. All rights ...
4 years, 7 months ago (2016-04-28 12:18:11 UTC) #7
vabr (Chromium)
Thanks! Some more comments below. Cheers, Vaclav https://codereview.chromium.org/1929573002/diff/20001/components/os_crypt/libsecret_loader.h File components/os_crypt/libsecret_loader.h (right): https://codereview.chromium.org/1929573002/diff/20001/components/os_crypt/libsecret_loader.h#newcode38 components/os_crypt/libsecret_loader.h:38: }; On ...
4 years, 7 months ago (2016-04-28 12:44:26 UTC) #8
cfroussios
I have addressed your comments. I also moved an additional utility, LibsecretAttributeBuilder, which was used ...
4 years, 7 months ago (2016-04-28 14:33:43 UTC) #9
vabr (Chromium)
Thanks, Christos. Please see the comments below (+one ping of an older comment which got ...
4 years, 7 months ago (2016-04-28 14:42:13 UTC) #11
cfroussios
https://codereview.chromium.org/1929573002/diff/20001/components/os_crypt/libsecret_loader.h File components/os_crypt/libsecret_loader.h (right): https://codereview.chromium.org/1929573002/diff/20001/components/os_crypt/libsecret_loader.h#newcode38 components/os_crypt/libsecret_loader.h:38: }; On 2016/04/28 12:44:25, vabr (Chromium) wrote: > On ...
4 years, 7 months ago (2016-04-28 16:26:57 UTC) #12
cfroussios
thestig@chromium.org: Please review changes in components/os_crypt/os_crypt_posix_util_libsecret.{cc,h} and corresponding build. Thanks!
4 years, 7 months ago (2016-04-28 16:39:17 UTC) #14
Lei Zhang
Can you keep the text in the CL description to 72 chars / line to ...
4 years, 7 months ago (2016-04-28 21:49:09 UTC) #15
vabr (Chromium)
Still LGTM, some comments for cfroussios@, some answers to Lei. Cheers, Vaclav https://codereview.chromium.org/1929573002/diff/20001/components/os_crypt/libsecret_loader.h File components/os_crypt/libsecret_loader.h ...
4 years, 7 months ago (2016-04-29 07:36:45 UTC) #16
cfroussios
Hi all, I've updated the description as requested and addressed your comments. One thing pending ...
4 years, 7 months ago (2016-04-29 12:14:06 UTC) #19
vabr (Chromium)
Thanks, still LGTM, mostly nits below. Cheers, Vaclav https://codereview.chromium.org/1929573002/diff/180001/components/os_crypt/libsecret_util_posix.h File components/os_crypt/libsecret_util_posix.h (right): https://codereview.chromium.org/1929573002/diff/180001/components/os_crypt/libsecret_util_posix.h#newcode27 components/os_crypt/libsecret_util_posix.h:27: // ...
4 years, 7 months ago (2016-04-29 13:16:07 UTC) #20
cfroussios
https://codereview.chromium.org/1929573002/diff/180001/components/os_crypt/libsecret_util_posix.h File components/os_crypt/libsecret_util_posix.h (right): https://codereview.chromium.org/1929573002/diff/180001/components/os_crypt/libsecret_util_posix.h#newcode27 components/os_crypt/libsecret_util_posix.h:27: // Loads the libsecret binaries and checks that it ...
4 years, 7 months ago (2016-04-29 14:00:52 UTC) #21
vabr (Chromium)
lgtm
4 years, 7 months ago (2016-04-29 14:02:38 UTC) #22
Lei Zhang
lgtm https://codereview.chromium.org/1929573002/diff/140001/components/os_crypt.gypi File components/os_crypt.gypi (right): https://codereview.chromium.org/1929573002/diff/140001/components/os_crypt.gypi#newcode61 components/os_crypt.gypi:61: 'include_dirs' : [ On 2016/04/29 07:36:45, vabr (Chromium) ...
4 years, 7 months ago (2016-04-29 16:37:26 UTC) #23
cfroussios
https://codereview.chromium.org/1929573002/diff/140001/components/os_crypt/os_crypt_posix_util_libsecret.h File components/os_crypt/os_crypt_posix_util_libsecret.h (right): https://codereview.chromium.org/1929573002/diff/140001/components/os_crypt/os_crypt_posix_util_libsecret.h#newcode59 components/os_crypt/os_crypt_posix_util_libsecret.h:59: std::list<std::string> name_values_; On 2016/04/28 21:49:09, Lei Zhang wrote: > ...
4 years, 7 months ago (2016-04-29 16:39:37 UTC) #24
vabr (Chromium)
On 2016/04/29 16:39:37, cfroussios wrote: > https://codereview.chromium.org/1929573002/diff/140001/components/os_crypt/os_crypt_posix_util_libsecret.h > File components/os_crypt/os_crypt_posix_util_libsecret.h (right): > > https://codereview.chromium.org/1929573002/diff/140001/components/os_crypt/os_crypt_posix_util_libsecret.h#newcode59 > ...
4 years, 7 months ago (2016-04-29 16:48:30 UTC) #25
vabr (Chromium)
Just for the record, I encouraged cfroussios@ to use TBR for components/OWNERS for components/os_crypt.gypi, given ...
4 years, 7 months ago (2016-04-29 17:33:53 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1929573002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1929573002/260001
4 years, 7 months ago (2016-04-29 17:39:34 UTC) #30
commit-bot: I haz the power
Committed patchset #14 (id:260001)
4 years, 7 months ago (2016-04-29 18:43:04 UTC) #32
commit-bot: I haz the power
4 years, 7 months ago (2016-04-30 17:27:35 UTC) #33
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/df99cec1248d89188156bf53aba322c3a9e0f0bb
Cr-Commit-Position: refs/heads/master@{#390706}

Powered by Google App Engine
This is Rietveld 408576698