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

Issue 1668523002: [Password Manager] Switch password manager code to use the Feature framework. (Closed)

Created:
4 years, 10 months ago by Pritam Nikam
Modified:
4 years, 9 months ago
CC:
chromium-reviews, tim+watch_chromium.org, vabr+watchlistpasswordmanager_chromium.org, zea+watch_chromium.org, maxbogue+watch_chromium.org, plaree+watch_chromium.org, asvitkine+watch_chromium.org, 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

[Password Manager] Switch password manager code to use the Feature framework. The FeatureList APIs replace the current practice for enabling/disabling switches and offer expressing the default state of a feature in a structured manner. This CL does the refactoring for the password manager command-line switches to use the FeatureList APIs. BUG=561322 Committed: https://crrev.com/3b43e5a81c83605870ba5406143fcc5bb885890b Cr-Commit-Position: refs/heads/master@{#380611}

Patch Set 1 #

Patch Set 2 : Added 'affiliation-based-matching' features. #

Patch Set 3 : Added 'drop-sync-credential' feature. #

Patch Set 4 : Added 'manager-for-sync-signin' to feature list. #

Patch Set 5 : #

Total comments: 2

Patch Set 6 : Addresses Vaclav's inputs. #

Patch Set 7 : Fixes mac bot breakages. #

Total comments: 6

Patch Set 8 : Just a code rebase. #

Patch Set 9 : Modification for 3 binary (enabled/disabled) flags. #

Patch Set 10 : Addresses the review inputs. #

Total comments: 15

Patch Set 11 : Just a rebase. #

Patch Set 12 : Addresses review inputs. #

Patch Set 13 : #

Patch Set 14 : #

Total comments: 9

Patch Set 15 : Changes to fieldtrial_testing_config_*.json #

Total comments: 22

Patch Set 16 : Addresses Vaclav's inputs. #

Total comments: 2

Patch Set 17 : Addresses a nit. #

Total comments: 6

Patch Set 18 : Addresses Alexei's inputs. #

Total comments: 2

Patch Set 19 : Addresses Bernhard's review inputs. #

Patch Set 20 : Code rebase. #

Patch Set 21 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+151 lines, -321 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +8 lines, -2 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 10 chunks +20 lines, -38 lines 0 comments Download
M chrome/browser/android/password_ui_view_android.cc View 1 2 3 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/password_manager/chrome_password_manager_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/password_manager/chrome_password_manager_client_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/password_manager/password_manager_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/password_manager/password_manager_test_base.cc View 1 2 3 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/password_manager_internals/password_manager_internals_ui_browsertest.cc View 1 2 3 2 chunks +0 lines, -2 lines 0 comments Download
M components/password_manager.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +0 lines, -2 lines 0 comments Download
M components/password_manager/core/browser/affiliation_utils.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +0 lines, -14 lines 0 comments Download
M components/password_manager/core/browser/affiliation_utils.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +0 lines, -35 lines 0 comments Download
M components/password_manager/core/browser/affiliation_utils_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +0 lines, -85 lines 0 comments Download
M components/password_manager/core/browser/password_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +2 lines, -18 lines 0 comments Download
M components/password_manager/core/browser/password_manager_test_utils.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +8 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/password_manager_test_utils.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +27 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/password_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +0 lines, -2 lines 0 comments Download
M components/password_manager/core/browser/password_store_factory_util.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +4 lines, -8 lines 0 comments Download
M components/password_manager/core/browser/psl_matching_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +0 lines, -2 lines 0 comments Download
M components/password_manager/core/common/BUILD.gn View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M components/password_manager/core/common/password_manager_features.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +4 lines, -0 lines 0 comments Download
M components/password_manager/core/common/password_manager_features.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +19 lines, -0 lines 0 comments Download
D components/password_manager/core/common/password_manager_switches.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +0 lines, -27 lines 0 comments Download
D components/password_manager/core/common/password_manager_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +0 lines, -43 lines 0 comments Download
M components/password_manager/sync/browser/sync_credentials_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +25 lines, -17 lines 0 comments Download
M components/password_manager/sync/browser/sync_credentials_filter_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +27 lines, -10 lines 0 comments Download

Messages

Total messages: 79 (25 generated)
Pritam Nikam
Hi Vaclav, This one is a long standing follow-up, PTAL. Thanks!
4 years, 10 months ago (2016-02-08 13:47:36 UTC) #5
vabr (Chromium)
Very nice, LGTM! Thanks for the clean-up and modernisation. Cheers, Vaclav https://codereview.chromium.org/1668523002/diff/80001/components/password_manager/sync/browser/sync_credentials_filter_unittest.cc File components/password_manager/sync/browser/sync_credentials_filter_unittest.cc (right): ...
4 years, 10 months ago (2016-02-08 14:16:49 UTC) #6
Pritam Nikam
Thanks Vaclav! New patch-set addresses the review inputs. PTAL. Thanks! https://codereview.chromium.org/1668523002/diff/80001/components/password_manager/sync/browser/sync_credentials_filter_unittest.cc File components/password_manager/sync/browser/sync_credentials_filter_unittest.cc (right): https://codereview.chromium.org/1668523002/diff/80001/components/password_manager/sync/browser/sync_credentials_filter_unittest.cc#newcode50 ...
4 years, 10 months ago (2016-02-08 15:27:19 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1668523002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1668523002/100001
4 years, 10 months ago (2016-02-08 15:28:01 UTC) #9
vabr (Chromium)
lgtm
4 years, 10 months ago (2016-02-08 15:29:59 UTC) #10
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/176658)
4 years, 10 months ago (2016-02-08 15:45:27 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1668523002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1668523002/120001
4 years, 10 months ago (2016-02-09 06:55:24 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/144109)
4 years, 10 months ago (2016-02-09 07:05:34 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1668523002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1668523002/120001
4 years, 10 months ago (2016-02-09 07:08:18 UTC) #19
Pritam Nikam
Hi bauerb@chromium.org: Please review changes in chrome/browser/android/password_ui_view_android.cc, chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc Thanks!
4 years, 10 months ago (2016-02-09 07:24:24 UTC) #21
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-09 08:53:55 UTC) #23
Bernhard Bauer
Not LGTM -- this is not how features are supposed to be used. Features already ...
4 years, 10 months ago (2016-02-09 15:10:33 UTC) #25
Pritam Nikam
Thanks Bernhard for review. I was sceptical about adding below flags. I guess we can ...
4 years, 10 months ago (2016-02-09 16:05:54 UTC) #26
Bernhard Bauer
On 2016/02/09 16:05:54, Pritam Nikam wrote: > Thanks Bernhard for review. > > I was ...
4 years, 10 months ago (2016-02-09 16:13:31 UTC) #27
Alexei Svitkine (slow)
https://codereview.chromium.org/1668523002/diff/120001/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (right): https://codereview.chromium.org/1668523002/diff/120001/chrome/browser/about_flags.cc#newcode1061 chrome/browser/about_flags.cc:1061: password_manager::features::kDisableAffiliationBasedMatching.name)}, Yeah, this doesn't make sense. First, there should ...
4 years, 10 months ago (2016-02-09 16:30:33 UTC) #28
vabr (Chromium)
Thanks Alexei and Berhard for chiming in, I should have checked properly what Features are ...
4 years, 10 months ago (2016-02-10 10:52:17 UTC) #29
Bernhard Bauer
On 2016/02/10 10:52:17, vabr (Chromium) wrote: > Thanks Alexei and Berhard for chiming in, I ...
4 years, 10 months ago (2016-02-10 10:58:01 UTC) #30
vabr (Chromium)
On 2016/02/10 10:58:01, Bernhard Bauer wrote: > On 2016/02/10 10:52:17, vabr (Chromium) wrote: > > ...
4 years, 10 months ago (2016-02-10 11:55:06 UTC) #31
Pritam Nikam
Thanks all for review. New patch set incorporates the review inputs, PTAL. Thanks! On 2016/02/10 ...
4 years, 10 months ago (2016-02-11 10:51:58 UTC) #32
Bernhard Bauer
https://codereview.chromium.org/1668523002/diff/180001/chrome/browser/password_manager/chrome_password_manager_client.cc File chrome/browser/password_manager/chrome_password_manager_client.cc (right): https://codereview.chromium.org/1668523002/diff/180001/chrome/browser/password_manager/chrome_password_manager_client.cc#newcode575 chrome/browser/password_manager/chrome_password_manager_client.cc:575: password_manager::features::kManagerForSyncSignin)) { I don't think this is necessary; FeatureList ...
4 years, 10 months ago (2016-02-11 11:12:41 UTC) #33
vabr (Chromium)
Hi Priam Nikam, I've taken a deeper look at the features. We should try to ...
4 years, 10 months ago (2016-02-11 12:30:21 UTC) #34
vabr (Chromium)
On 2016/02/11 12:30:21, vabr (Chromium) wrote: > Hi Priam Nikam, > > I've taken a ...
4 years, 10 months ago (2016-02-11 12:33:40 UTC) #35
Bernhard Bauer
On 2016/02/11 12:30:21, vabr (Chromium) wrote: > Hi Priam Nikam, > > I've taken a ...
4 years, 10 months ago (2016-02-11 12:33:49 UTC) #36
Bernhard Bauer
On 2016/02/11 12:33:49, Bernhard Bauer wrote: > On 2016/02/11 12:30:21, vabr (Chromium) wrote: > > ...
4 years, 10 months ago (2016-02-11 12:34:56 UTC) #37
Pritam Nikam
On 2016/02/11 12:34:56, Bernhard Bauer wrote: > On 2016/02/11 12:33:49, Bernhard Bauer wrote: > > ...
4 years, 10 months ago (2016-02-11 14:56:04 UTC) #38
Pritam Nikam
Hi Vaclav & Bernhard, Sorry for the delayed update, I was away for some time. ...
4 years, 10 months ago (2016-02-25 14:16:07 UTC) #39
Pritam Nikam
https://codereview.chromium.org/1668523002/diff/260001/components/password_manager/core/browser/password_manager_util.cc File components/password_manager/core/browser/password_manager_util.cc (right): https://codereview.chromium.org/1668523002/diff/260001/components/password_manager/core/browser/password_manager_util.cc#newcode132 components/password_manager/core/browser/password_manager_util.cc:132: void RegisterFieldTrials(base::FeatureList* feature_list) { I guess I've to move ...
4 years, 10 months ago (2016-02-25 16:39:26 UTC) #40
Pritam Nikam
https://codereview.chromium.org/1668523002/diff/260001/components/password_manager/core/browser/password_manager_util.cc File components/password_manager/core/browser/password_manager_util.cc (right): https://codereview.chromium.org/1668523002/diff/260001/components/password_manager/core/browser/password_manager_util.cc#newcode132 components/password_manager/core/browser/password_manager_util.cc:132: void RegisterFieldTrials(base::FeatureList* feature_list) { "fieldtrial_testing_config_{port}.json" eg. https://code.google.com/p/chromium/codesearch#chromium/src/testing/variations/fieldtrial_testing_config_linux.json
4 years, 10 months ago (2016-02-25 16:49:12 UTC) #41
vabr (Chromium)
Thanks, Pritam Nikam, for your changes! I would really like to see http://crbug.com/586107 addressed separately ...
4 years, 10 months ago (2016-02-26 09:43:41 UTC) #42
vabr (Chromium)
Oops, I missed an important part -- I believ patch set 14 was the right ...
4 years, 10 months ago (2016-02-26 09:52:22 UTC) #43
Pritam Nikam
Thanks Vaclav for review. Ptal at new patch set. Thanks! https://codereview.chromium.org/1668523002/diff/260001/components/password_manager/core/browser/password_manager_util.cc File components/password_manager/core/browser/password_manager_util.cc (right): https://codereview.chromium.org/1668523002/diff/260001/components/password_manager/core/browser/password_manager_util.cc#newcode44 ...
4 years, 10 months ago (2016-02-26 12:42:23 UTC) #44
vabr (Chromium)
Thanks! So far LGTM, but I have two more comments. Cheers, Vaclav https://codereview.chromium.org/1668523002/diff/280001/components/password_manager/core/common/password_manager_features.h File components/password_manager/core/common/password_manager_features.h ...
4 years, 10 months ago (2016-02-26 12:54:42 UTC) #45
Pritam Nikam
Hi Vaclav, Thanks for review! New patch set addresses nit, ptal. Thanks! https://codereview.chromium.org/1668523002/diff/280001/components/password_manager/core/common/password_manager_features.h File components/password_manager/core/common/password_manager_features.h ...
4 years, 10 months ago (2016-02-26 14:10:29 UTC) #47
Bernhard Bauer
Could you please update the description to reflect the contents of the CL?
4 years, 10 months ago (2016-02-26 14:22:01 UTC) #48
vabr (Chromium)
Thanks, LGTM. Vaclav
4 years, 9 months ago (2016-02-26 14:55:05 UTC) #50
Alexei Svitkine (slow)
https://codereview.chromium.org/1668523002/diff/320001/components/password_manager/core/browser/affiliation_utils_unittest.cc File components/password_manager/core/browser/affiliation_utils_unittest.cc (right): https://codereview.chromium.org/1668523002/diff/320001/components/password_manager/core/browser/affiliation_utils_unittest.cc#newcode28 components/password_manager/core/browser/affiliation_utils_unittest.cc:28: const base::Feature kDummyFeature = {"FooBar", Nit: No = https://codereview.chromium.org/1668523002/diff/320001/components/password_manager/core/browser/password_manager_util.cc ...
4 years, 9 months ago (2016-02-26 21:57:25 UTC) #51
Pritam Nikam
Thanks Alexei for inputs. I've reverted field trials related changes, ptal. Thanks! https://codereview.chromium.org/1668523002/diff/320001/components/password_manager/core/browser/affiliation_utils_unittest.cc File components/password_manager/core/browser/affiliation_utils_unittest.cc ...
4 years, 9 months ago (2016-02-29 08:00:15 UTC) #52
Bernhard Bauer
https://codereview.chromium.org/1668523002/diff/340001/components/password_manager/core/browser/affiliation_utils_unittest.cc File components/password_manager/core/browser/affiliation_utils_unittest.cc (right): https://codereview.chromium.org/1668523002/diff/340001/components/password_manager/core/browser/affiliation_utils_unittest.cc#newcode28 components/password_manager/core/browser/affiliation_utils_unittest.cc:28: const base::Feature No = {"FooBar", base::FEATURE_DISABLED_BY_DEFAULT}; If this is ...
4 years, 9 months ago (2016-02-29 11:34:16 UTC) #53
Pritam Nikam
Thanks Bernhard for review. I've removed those tests, ptal. Thanks! https://codereview.chromium.org/1668523002/diff/340001/components/password_manager/core/browser/affiliation_utils_unittest.cc File components/password_manager/core/browser/affiliation_utils_unittest.cc (right): https://codereview.chromium.org/1668523002/diff/340001/components/password_manager/core/browser/affiliation_utils_unittest.cc#newcode28 ...
4 years, 9 months ago (2016-02-29 12:54:50 UTC) #54
Bernhard Bauer
LGTM, thanks!
4 years, 9 months ago (2016-02-29 13:03:07 UTC) #55
Pritam Nikam
https://codereview.chromium.org/1668523002/diff/320001/components/password_manager/core/browser/password_manager_util.cc File components/password_manager/core/browser/password_manager_util.cc (right): https://codereview.chromium.org/1668523002/diff/320001/components/password_manager/core/browser/password_manager_util.cc#newcode116 components/password_manager/core/browser/password_manager_util.cc:116: void RegisterFieldTrials(base::FeatureList* feature_list) { On 2016/02/29 08:00:15, Pritam Nikam ...
4 years, 9 months ago (2016-02-29 13:41:26 UTC) #56
Alexei Svitkine (slow)
https://codereview.chromium.org/1668523002/diff/320001/components/password_manager/core/browser/password_manager_util.cc File components/password_manager/core/browser/password_manager_util.cc (right): https://codereview.chromium.org/1668523002/diff/320001/components/password_manager/core/browser/password_manager_util.cc#newcode116 components/password_manager/core/browser/password_manager_util.cc:116: void RegisterFieldTrials(base::FeatureList* feature_list) { On 2016/02/29 13:41:25, Pritam Nikam ...
4 years, 9 months ago (2016-02-29 16:30:48 UTC) #57
vabr (Chromium)
On 2016/02/29 16:30:48, Alexei Svitkine (slow) wrote: > https://codereview.chromium.org/1668523002/diff/320001/components/password_manager/core/browser/password_manager_util.cc > File components/password_manager/core/browser/password_manager_util.cc (right): > > ...
4 years, 9 months ago (2016-03-07 13:03:29 UTC) #58
Alexei Svitkine (slow)
lgtm I'll let vabr confirm that this is safe - but looking closer it seems ...
4 years, 9 months ago (2016-03-10 16:00:22 UTC) #59
vabr (Chromium)
On 2016/03/10 16:00:22, Alexei Svitkine (very slow) wrote: > lgtm > > I'll let vabr ...
4 years, 9 months ago (2016-03-10 18:22:10 UTC) #60
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1668523002/360001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1668523002/360001
4 years, 9 months ago (2016-03-11 02:33:17 UTC) #62
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_chromium_gn_compile_dbg/builds/34773) cast_shell_android on ...
4 years, 9 months ago (2016-03-11 02:36:37 UTC) #64
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1668523002/380001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1668523002/380001
4 years, 9 months ago (2016-03-11 09:32:06 UTC) #66
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_rel/builds/79451)
4 years, 9 months ago (2016-03-11 09:39:58 UTC) #68
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1668523002/400001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1668523002/400001
4 years, 9 months ago (2016-03-11 11:29:33 UTC) #70
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-11 12:36:17 UTC) #72
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1668523002/400001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1668523002/400001
4 years, 9 months ago (2016-03-11 12:37:07 UTC) #75
commit-bot: I haz the power
Committed patchset #21 (id:400001)
4 years, 9 months ago (2016-03-11 12:42:58 UTC) #77
commit-bot: I haz the power
4 years, 9 months ago (2016-03-11 12:44:28 UTC) #79
Message was sent while issue was closed.
Patchset 21 (id:??) landed as
https://crrev.com/3b43e5a81c83605870ba5406143fcc5bb885890b
Cr-Commit-Position: refs/heads/master@{#380611}

Powered by Google App Engine
This is Rietveld 408576698