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

Issue 2273723002: Migrate Libsecret for OSCrypt to a new schema (Closed)

Created:
4 years, 4 months ago by cfroussios
Modified:
4 years, 3 months ago
Reviewers:
Lei Zhang
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Migrate Libsecret for OSCrypt to a new schema Schemas for gnome-keyring and libsecret are not 100% interchangeable. To support gnome-keyring, we need to use equivalent schemas in both libraries. This will allow a user to upgrade their machine from gnome-keyring to libsecret, without chrome losing access to OSCrypt's encryption key. We correct the unfortunate initial choice for a schema by copying entries to the new schema. As a bonus, this will correct the mislabeling of some entries (see crbug/640603) BUG=639298 Committed: https://crrev.com/02da78d1d5cb36b3e40afd72e40c0c0cc6883c41 Cr-Commit-Position: refs/heads/master@{#415254}

Patch Set 1 #

Patch Set 2 : Clear deletes passwords #

Patch Set 3 : Migrate only if password is not found #

Patch Set 4 : nit #

Patch Set 5 : search by attrs #

Patch Set 6 : fixed generated password's attributes #

Total comments: 12

Patch Set 7 : feedback #

Patch Set 8 : Branded application attribute #

Total comments: 2

Patch Set 9 : feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -11 lines) Patch
M components/os_crypt/key_storage_libsecret.h View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M components/os_crypt/key_storage_libsecret.cc View 1 2 3 4 5 6 7 8 2 chunks +58 lines, -8 lines 0 comments Download
M components/os_crypt/os_crypt_util_linux_unittest.cc View 1 2 3 4 5 6 9 chunks +69 lines, -3 lines 0 comments Download

Messages

Total messages: 48 (39 generated)
cfroussios
4 years, 3 months ago (2016-08-26 11:10:56 UTC) #15
Lei Zhang
lgtm Comments are all nits. https://codereview.chromium.org/2273723002/diff/100001/components/os_crypt/key_storage_libsecret.cc File components/os_crypt/key_storage_libsecret.cc (right): https://codereview.chromium.org/2273723002/diff/100001/components/os_crypt/key_storage_libsecret.cc#newcode14 components/os_crypt/key_storage_libsecret.cc:14: const SecretSchema kDeprecatedSchema = ...
4 years, 3 months ago (2016-08-26 21:33:57 UTC) #25
cfroussios
https://codereview.chromium.org/2273723002/diff/100001/components/os_crypt/key_storage_libsecret.cc File components/os_crypt/key_storage_libsecret.cc (right): https://codereview.chromium.org/2273723002/diff/100001/components/os_crypt/key_storage_libsecret.cc#newcode14 components/os_crypt/key_storage_libsecret.cc:14: const SecretSchema kDeprecatedSchema = { On 2016/08/26 21:33:56, Lei ...
4 years, 3 months ago (2016-08-29 09:58:43 UTC) #30
cfroussios
I made one additional change. The attribute now is "chrome" or "chromium" depending on build. ...
4 years, 3 months ago (2016-08-29 14:06:05 UTC) #33
Lei Zhang
lgtm, with one more nit: https://codereview.chromium.org/2273723002/diff/140001/components/os_crypt/key_storage_libsecret.cc File components/os_crypt/key_storage_libsecret.cc (right): https://codereview.chromium.org/2273723002/diff/140001/components/os_crypt/key_storage_libsecret.cc#newcode15 components/os_crypt/key_storage_libsecret.cc:15: const char* kApplicationName = ...
4 years, 3 months ago (2016-08-29 17:42:35 UTC) #36
cfroussios
Thanks! https://codereview.chromium.org/2273723002/diff/140001/components/os_crypt/key_storage_libsecret.cc File components/os_crypt/key_storage_libsecret.cc (right): https://codereview.chromium.org/2273723002/diff/140001/components/os_crypt/key_storage_libsecret.cc#newcode15 components/os_crypt/key_storage_libsecret.cc:15: const char* kApplicationName = "chrome"; On 2016/08/29 17:42:35, ...
4 years, 3 months ago (2016-08-30 09:08:27 UTC) #39
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/2273723002/160001
4 years, 3 months ago (2016-08-30 09:23:48 UTC) #44
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 3 months ago (2016-08-30 09:27:25 UTC) #46
commit-bot: I haz the power
4 years, 3 months ago (2016-08-30 09:28:50 UTC) #48
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/02da78d1d5cb36b3e40afd72e40c0c0cc6883c41
Cr-Commit-Position: refs/heads/master@{#415254}

Powered by Google App Engine
This is Rietveld 408576698