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

Issue 2846023003: Creating a preference for storing a sync password hash. (Closed)

Created:
3 years, 7 months ago by dvadym
Modified:
3 years, 7 months ago
Reviewers:
vabr (Chromium)
CC:
chromium-reviews, gcasto+watchlist_chromium.org, vabr+watchlistpasswordmanager_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Creating a preference for storing a sync password hash. This CL contains: 1.Adding constants for a new preference name (password_manager_pref_names.*) 2.Registring a new preference in a stotic method of password_manager.cc (it's a place where all password related preferences are registered) 3.Adding |prefs| argument to PasswordStore->Init and passing prefs to PasswordReusedDetector in PasswordStore->Init 4.Saving |prefs| to a member variable in PasswordReusedDetector 5.Saving an empty string to the new preference in PasswordReusedDetector->SaveSyncPasswordHash: an empty string is saving because: we can test that saving to a preference works in PasswordReusedDetector and to avoid unused error. 6.Test in password_reuse_detector_unittest.cc that saving to the preference is working. 7.Changes in all others files are just adding prefs argument to all overrides of Init method and passing nullptr in tests to this parameter. BUG=657041 Review-Url: https://codereview.chromium.org/2846023003 Cr-Commit-Position: refs/heads/master@{#468628} Committed: https://chromium.googlesource.com/chromium/src/+/3e1ee15ee6d944585a2e616e3f5ea286f84ab51d

Patch Set 1 #

Patch Set 2 : Fix compilation errors in tests #

Patch Set 3 : Fix compilation errors #

Patch Set 4 : Complation error fixes #

Patch Set 5 : Fixed mac test compilation #

Patch Set 6 : rebase #

Patch Set 7 : fix incorrect merge #

Patch Set 8 : Fix ios #

Patch Set 9 : Added test, removed debug info #

Total comments: 10

Patch Set 10 : Reviewer's comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -59 lines) Patch
M chrome/browser/password_manager/password_store_factory.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/password_manager/password_store_mac.h View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/password_manager/password_store_mac.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/password_manager/password_store_proxy_mac.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/password_manager/password_store_proxy_mac.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/password_manager/password_store_proxy_mac_unittest.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/password_manager/password_store_win_unittest.cc View 1 2 3 4 5 6 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/password_manager/password_store_x_unittest.cc View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/password_manager/simple_password_store_mac.h View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/password_manager/simple_password_store_mac.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M components/password_manager/core/browser/mock_password_store.h View 1 chunk +4 lines, -1 line 0 comments Download
M components/password_manager/core/browser/password_manager.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/password_manager_test_utils.h View 1 chunk +1 line, -1 line 0 comments Download
M components/password_manager/core/browser/password_manager_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M components/password_manager/core/browser/password_reuse_detection_manager_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M components/password_manager/core/browser/password_reuse_detector.h View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -1 line 0 comments Download
M components/password_manager/core/browser/password_reuse_detector.cc View 1 2 3 4 5 6 7 8 3 chunks +9 lines, -3 lines 0 comments Download
M components/password_manager/core/browser/password_reuse_detector_unittest.cc View 1 2 3 4 5 6 7 8 9 12 chunks +23 lines, -10 lines 0 comments Download
M components/password_manager/core/browser/password_store.h View 1 2 3 4 5 3 chunks +5 lines, -2 lines 0 comments Download
M components/password_manager/core/browser/password_store.cc View 1 2 3 4 5 6 7 8 9 2 chunks +7 lines, -4 lines 0 comments Download
M components/password_manager/core/browser/password_store_default.h View 2 chunks +4 lines, -1 line 0 comments Download
M components/password_manager/core/browser/password_store_default.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M components/password_manager/core/browser/password_store_default_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M components/password_manager/core/browser/password_store_unittest.cc View 1 10 chunks +11 lines, -10 lines 0 comments Download
M components/password_manager/core/common/password_manager_pref_names.h View 1 chunk +3 lines, -0 lines 0 comments Download
M components/password_manager/core/common/password_manager_pref_names.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M ios/chrome/browser/passwords/ios_chrome_password_store_factory.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 28 (22 generated)
dvadym
Hi Vaclav, could you please review this CL? While the number of changed files looked ...
3 years, 7 months ago (2017-05-02 12:49:36 UTC) #17
vabr (Chromium)
Hi Vadym, LGTM with comments. Cheers, Vaclav https://codereview.chromium.org/2846023003/diff/160001/components/password_manager/core/browser/password_manager.cc File components/password_manager/core/browser/password_manager.cc (right): https://codereview.chromium.org/2846023003/diff/160001/components/password_manager/core/browser/password_manager.cc#newcode158 components/password_manager/core/browser/password_manager.cc:158: registry->RegisterStringPref(prefs::kSyncPasswordHash, "", ...
3 years, 7 months ago (2017-05-02 13:26:15 UTC) #18
dvadym
Thanks for review Vaclav! I've addressed all your comments https://codereview.chromium.org/2846023003/diff/160001/components/password_manager/core/browser/password_manager.cc File components/password_manager/core/browser/password_manager.cc (right): https://codereview.chromium.org/2846023003/diff/160001/components/password_manager/core/browser/password_manager.cc#newcode158 components/password_manager/core/browser/password_manager.cc:158: ...
3 years, 7 months ago (2017-05-02 13:37:33 UTC) #21
vabr (Chromium)
LGTM!
3 years, 7 months ago (2017-05-02 13:39:59 UTC) #22
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/2846023003/180001
3 years, 7 months ago (2017-05-02 14:04:03 UTC) #25
commit-bot: I haz the power
3 years, 7 months ago (2017-05-02 14:26:38 UTC) #28
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/3e1ee15ee6d944585a2e616e3f5e...

Powered by Google App Engine
This is Rietveld 408576698