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

Issue 2783773002: Link PasswordProtectionService to Profile and SB Service (Closed)

Created:
3 years, 8 months ago by Jialiu Lin
Modified:
3 years, 8 months ago
CC:
asvitkine+watch_chromium.org, chromium-reviews, gcasto+watchlist_chromium.org, grt+watch_chromium.org, markusheintz_, msramek+watch_chromium.org, raymes+watch_chromium.org, timvolodine, vabr+watchlistpasswordmanager_chromium.org, vakh+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Link PasswordProtectionService to Profile and SB Service 1. Refactor PasswordProtectionService to be a per Profile class. 2. Create ChromePasswordProtectionService subclass in c/b/safe_browsing/ to to link Profile instances to password protection. 3. Make SafeBrowsingService observe the creation and destruction of profiles, and create/remove ChromePasswordProtection instances accordingly. BUG=698899 Review-Url: https://codereview.chromium.org/2783773002 Cr-Commit-Position: refs/heads/master@{#462233} Committed: https://chromium.googlesource.com/chromium/src/+/4522d139cf6832a2f3393d374dd9b025902935dc

Patch Set 1 #

Patch Set 2 : fix build #

Patch Set 3 : Make HistoryServiceObserver scopedobserver #

Patch Set 4 : fix broken browser tests #

Patch Set 5 : revert website_settings_registry #

Patch Set 6 : nit #

Total comments: 31

Patch Set 7 : RemovePasswordProtectionService(..) #

Total comments: 3

Patch Set 8 : Gate whitelist checking by SAFE_BROWSING_DB_LOCAL only #

Total comments: 2

Patch Set 9 : rebase #

Total comments: 14

Patch Set 10 : add a UMA metric to track the number of cached verdict before shutdown #

Total comments: 6

Patch Set 11 : address comments from nparker #

Patch Set 12 : refine histogram description #

Unified diffs Side-by-side diffs Delta from patch set Stats (+422 lines, -227 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/password_manager/chrome_password_manager_client.h View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -6 lines 0 comments Download
M chrome/browser/password_manager/chrome_password_manager_client.cc View 1 2 3 4 5 6 7 8 3 chunks +11 lines, -18 lines 0 comments Download
A chrome/browser/safe_browsing/chrome_password_protection_service.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +50 lines, -0 lines 0 comments Download
A chrome/browser/safe_browsing/chrome_password_protection_service.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +79 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service.h View 1 2 3 4 5 6 7 8 9 10 5 chunks +14 lines, -5 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service.cc View 1 2 3 4 5 6 8 chunks +36 lines, -32 lines 0 comments Download
M components/password_manager/core/browser/password_manager_client.h View 1 2 3 4 5 6 7 8 2 chunks +12 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/password_reuse_detection_manager.h View 1 2 3 4 5 6 3 chunks +0 lines, -14 lines 0 comments Download
M components/password_manager/core/browser/password_reuse_detection_manager.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -10 lines 0 comments Download
M components/password_manager/core/browser/stub_password_manager_client.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/stub_password_manager_client.cc View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -0 lines 0 comments Download
M components/safe_browsing/password_protection/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
M components/safe_browsing/password_protection/password_protection_request.h View 2 chunks +5 lines, -0 lines 0 comments Download
M components/safe_browsing/password_protection/password_protection_request.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +16 lines, -8 lines 0 comments Download
M components/safe_browsing/password_protection/password_protection_service.h View 1 2 3 4 5 6 7 8 9 10 8 chunks +48 lines, -28 lines 0 comments Download
M components/safe_browsing/password_protection/password_protection_service.cc View 1 2 3 4 5 6 11 chunks +61 lines, -54 lines 0 comments Download
M components/safe_browsing/password_protection/password_protection_service_unittest.cc View 1 2 3 4 5 6 17 chunks +53 lines, -52 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 100 (80 generated)
Jialiu Lin
3 years, 8 months ago (2017-03-29 23:50:58 UTC) #25
Nathan Parker
https://codereview.chromium.org/2783773002/diff/150001/chrome/browser/password_manager/chrome_password_manager_client.cc File chrome/browser/password_manager/chrome_password_manager_client.cc (right): https://codereview.chromium.org/2783773002/diff/150001/chrome/browser/password_manager/chrome_password_manager_client.cc#newcode654 chrome/browser/password_manager/chrome_password_manager_client.cc:654: ->GetPasswordProtectionService(profile_); When would this be null but safe_browsing_service() not ...
3 years, 8 months ago (2017-03-30 21:38:13 UTC) #28
Jialiu Lin
Thanks! https://codereview.chromium.org/2783773002/diff/150001/chrome/browser/password_manager/chrome_password_manager_client.cc File chrome/browser/password_manager/chrome_password_manager_client.cc (right): https://codereview.chromium.org/2783773002/diff/150001/chrome/browser/password_manager/chrome_password_manager_client.cc#newcode654 chrome/browser/password_manager/chrome_password_manager_client.cc:654: ->GetPasswordProtectionService(profile_); On 2017/03/30 at 21:38:12, Nathan Parker wrote: ...
3 years, 8 months ago (2017-03-30 23:23:15 UTC) #33
Jialiu Lin
It seems ChromePasswordManagerClient is created before each ChromePasswordProtectionService. I'm working on it. I'll send it ...
3 years, 8 months ago (2017-03-31 01:11:48 UTC) #36
Nathan Parker
[I'll wait for your later update for final review] https://codereview.chromium.org/2783773002/diff/150001/components/safe_browsing/password_protection/password_protection_service.cc File components/safe_browsing/password_protection/password_protection_service.cc (right): https://codereview.chromium.org/2783773002/diff/150001/components/safe_browsing/password_protection/password_protection_service.cc#newcode118 components/safe_browsing/password_protection/password_protection_service.cc:118: ...
3 years, 8 months ago (2017-03-31 18:41:15 UTC) #37
Jialiu Lin
There are two major changes in the last patch: (1) During the browser starting up, ...
3 years, 8 months ago (2017-04-02 01:02:23 UTC) #60
Jialiu Lin
+dvadym@ for password_manager side of code. Some explanation: Previously, PasswordProtectionService (PPS) is set in ChromePasswordManagerClient's ...
3 years, 8 months ago (2017-04-03 17:25:15 UTC) #64
Nathan Parker
[Adding one quick comment... I didn't do a full pass again. I'll let Vadym look ...
3 years, 8 months ago (2017-04-03 20:33:34 UTC) #65
Jialiu Lin
Thanks for catching this nparker! I completely forgot there is no csd whitelist on Android. ...
3 years, 8 months ago (2017-04-03 20:45:12 UTC) #68
dvadym
LGTM for a password part of this CL Please note that today I've landed CL ...
3 years, 8 months ago (2017-04-04 13:02:38 UTC) #71
Jialiu Lin
Thanks dvadym@! I have rebased this CL to the latest HEAD. https://codereview.chromium.org/2783773002/diff/350001/components/password_manager/core/browser/password_reuse_detection_manager.cc File components/password_manager/core/browser/password_reuse_detection_manager.cc (right): ...
3 years, 8 months ago (2017-04-04 20:24:10 UTC) #74
Jialiu Lin
On 2017/04/04 at 20:24:10, Jialiu Lin wrote: > Thanks dvadym@! I have rebased this CL ...
3 years, 8 months ago (2017-04-04 21:53:31 UTC) #85
Jialiu Lin
+mpearson@ for owner review of histograms.xml Thanks!
3 years, 8 months ago (2017-04-05 18:04:32 UTC) #89
Nathan Parker
lgtm Mostly nits, otherwise LGTM! https://codereview.chromium.org/2783773002/diff/410001/chrome/browser/safe_browsing/chrome_password_protection_service.cc File chrome/browser/safe_browsing/chrome_password_protection_service.cc (right): https://codereview.chromium.org/2783773002/diff/410001/chrome/browser/safe_browsing/chrome_password_protection_service.cc#newcode25 chrome/browser/safe_browsing/chrome_password_protection_service.cc:25: const base::Feature Nit: Could ...
3 years, 8 months ago (2017-04-05 18:05:23 UTC) #90
Mark P
https://codereview.chromium.org/2783773002/diff/430001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2783773002/diff/430001/tools/metrics/histograms/histograms.xml#newcode48090 tools/metrics/histograms/histograms.xml:48090: +<histogram name="PasswordProtection.NumberOfCachedVerdictBeforeShutdown"> units=? https://codereview.chromium.org/2783773002/diff/430001/tools/metrics/histograms/histograms.xml#newcode48094 tools/metrics/histograms/histograms.xml:48094: + Number of cached ...
3 years, 8 months ago (2017-04-05 18:39:28 UTC) #91
Jialiu Lin
Thank you nparker@! https://codereview.chromium.org/2783773002/diff/410001/chrome/browser/safe_browsing/chrome_password_protection_service.cc File chrome/browser/safe_browsing/chrome_password_protection_service.cc (right): https://codereview.chromium.org/2783773002/diff/410001/chrome/browser/safe_browsing/chrome_password_protection_service.cc#newcode25 chrome/browser/safe_browsing/chrome_password_protection_service.cc:25: const base::Feature On 2017/04/05 at 18:05:22, ...
3 years, 8 months ago (2017-04-05 18:48:25 UTC) #92
Jialiu Lin
Thanks mpearson! https://codereview.chromium.org/2783773002/diff/430001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2783773002/diff/430001/tools/metrics/histograms/histograms.xml#newcode48090 tools/metrics/histograms/histograms.xml:48090: +<histogram name="PasswordProtection.NumberOfCachedVerdictBeforeShutdown"> On 2017/04/05 at 18:39:28, Mark ...
3 years, 8 months ago (2017-04-05 19:00:02 UTC) #93
Mark P
histograms.xml lgtm
3 years, 8 months ago (2017-04-05 19:05:58 UTC) #94
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/2783773002/470001
3 years, 8 months ago (2017-04-05 20:15:27 UTC) #97
commit-bot: I haz the power
3 years, 8 months ago (2017-04-05 21:57:11 UTC) #100
Message was sent while issue was closed.
Committed patchset #12 (id:470001) as
https://chromium.googlesource.com/chromium/src/+/4522d139cf6832a2f3393d374dd9...

Powered by Google App Engine
This is Rietveld 408576698