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

Issue 2948783002: Create setting that disables password stores (Closed)

Created:
3 years, 6 months ago by cfroussios
Modified:
3 years, 5 months ago
CC:
blundell+watchlist_chromium.org, chromium-reviews, droger+watchlist_chromium.org, sdefresne+watchlist_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Create setting that disables password stores A new setting is implemented, which can be set to prevent OSCrypt/Password Manager from using a backend (i.e. keyring/kwallet). Since Password Manager is expected to deprecate its backends, OSCrypt is given ownership of the setting. OSCrypt needs to be ready for use during profile initialisation, therefore profile preferences cannot be used for this setting. The setting is stored in a file in the chrome's user data directory. It is implemented as a single empty file, whose presence or absence in the filesystem defines whether the setting is set to true or false. Additionally, a new commandline switch is implemented: --enable-encryption-selection. This controls whether the feature above will be used. When the feature is disabled, current behaviour is for Chrome to try and reach the appropriate backend, as determined by the OS environment. The --password-store flag overrules both of the above behaviours. BUG=709096 Review-Url: https://codereview.chromium.org/2948783002 Cr-Commit-Position: refs/heads/master@{#484595} Committed: https://chromium.googlesource.com/chromium/src/+/6b340f81b25adc1e97c50247aa3bf235eabcbf7e

Patch Set 1 #

Patch Set 2 : deps-fix #

Patch Set 3 : custom preference file #

Patch Set 4 : cleanup #

Patch Set 5 : file absence means use backend #

Patch Set 6 : tests #

Patch Set 7 : lint #

Total comments: 17

Patch Set 8 : nits #

Patch Set 9 : nits + tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+250 lines, -7 lines) Patch
M chrome/browser/chrome_browser_main_linux.cc View 1 2 3 4 5 6 7 3 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/password_manager/password_store_factory.cc View 1 2 3 4 5 6 7 2 chunks +11 lines, -1 line 0 comments Download
M chrome/common/chrome_switches.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M components/os_crypt/BUILD.gn View 1 2 3 4 5 6 1 chunk +4 lines, -1 line 0 comments Download
M components/os_crypt/key_storage_linux.h View 1 2 3 4 5 6 7 2 chunks +7 lines, -0 lines 0 comments Download
M components/os_crypt/key_storage_linux.cc View 1 2 3 4 5 6 7 4 chunks +19 lines, -2 lines 0 comments Download
M components/os_crypt/key_storage_util_linux.h View 1 2 3 4 5 6 7 2 chunks +14 lines, -1 line 0 comments Download
M components/os_crypt/key_storage_util_linux.cc View 1 2 3 4 5 6 7 3 chunks +43 lines, -2 lines 0 comments Download
A components/os_crypt/key_storage_util_linux_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +112 lines, -0 lines 0 comments Download
M components/os_crypt/os_crypt.h View 1 2 3 4 5 6 7 2 chunks +11 lines, -0 lines 0 comments Download
M components/os_crypt/os_crypt_linux.cc View 1 2 3 4 5 6 7 1 chunk +16 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 36 (27 generated)
cfroussios
Hi! Can you review this change to OSCrypt? Thanks!
3 years, 5 months ago (2017-07-03 14:57:21 UTC) #16
vabr (Chromium)
Thanks, this LGTM. I like how you simplified the preference file format! :) Cheers, Vaclav ...
3 years, 5 months ago (2017-07-03 19:27:14 UTC) #19
vabr (Chromium)
One more thing: Please repeat the CL title "Create setting that disables password stores" as ...
3 years, 5 months ago (2017-07-03 19:40:59 UTC) #20
cfroussios
https://codereview.chromium.org/2948783002/diff/120001/chrome/browser/password_manager/password_store_factory.cc File chrome/browser/password_manager/password_store_factory.cc (left): https://codereview.chromium.org/2948783002/diff/120001/chrome/browser/password_manager/password_store_factory.cc#oldcode130 chrome/browser/password_manager/password_store_factory.cc:130: // TODO(crbug.com/715987). Remove when PasswordReuseDetector is decoupled On 2017/07/03 ...
3 years, 5 months ago (2017-07-04 09:58:16 UTC) #24
vabr (Chromium)
Still LGTM, thanks for the added tests. Vaclav https://codereview.chromium.org/2948783002/diff/120001/components/os_crypt/key_storage_linux.h File components/os_crypt/key_storage_linux.h (right): https://codereview.chromium.org/2948783002/diff/120001/components/os_crypt/key_storage_linux.h#newcode39 components/os_crypt/key_storage_linux.h:39: static ...
3 years, 5 months ago (2017-07-04 10:11:01 UTC) #25
cfroussios
jochen@chromium.org: Please review changes in chrome/ Thanks!
3 years, 5 months ago (2017-07-04 11:42:44 UTC) #29
jochen (gone - plz use gerrit)
can you please wrap the CL description at 80c? chrome/ lgtm can you please forward ...
3 years, 5 months ago (2017-07-05 07:31:32 UTC) #30
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/2948783002/160001
3 years, 5 months ago (2017-07-06 13:34:23 UTC) #33
commit-bot: I haz the power
3 years, 5 months ago (2017-07-06 15:05:35 UTC) #36
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/6b340f81b25adc1e97c50247aa3b...

Powered by Google App Engine
This is Rietveld 408576698