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

Issue 2833193002: Trigger Password Protection ping on username/password field on focus (Closed)

Created:
3 years, 8 months ago by Jialiu Lin
Modified:
3 years, 7 months ago
Reviewers:
Mathieu, dvadym, estark
CC:
Aaron Boodman, abarth-chromium, browser-components-watch_chromium.org, chromium-reviews, darin-cc_chromium.org, estade+watch_chromium.org, gcasto+watchlist_chromium.org, grt+watch_chromium.org, jam, mathp+autofillwatch_chromium.org, mlamouri+watch-content_chromium.org, Nathan Parker, qsr+mojo_chromium.org, rogerm+autofillwatch_chromium.org, rouslan+autofill_chromium.org, sebsg+autofillwatch_chromium.org, timvolodine, vabr+watchlistautofill_chromium.org, vabr+watchlistpasswordmanager_chromium.org, vakh+watch_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Trigger Password Protection ping on username/password field on focus. Add CheckSafeBrowsingReputation() function to autofill_driver.mojom. ContentPasswordDriver overrides this function to kick in PasswordProtectionService. BUG=698899 Review-Url: https://codereview.chromium.org/2833193002 Cr-Commit-Position: refs/heads/master@{#468716} Committed: https://chromium.googlesource.com/chromium/src/+/1a0fcb3039c48ad810531e785637cbb9fe59d6c7

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : revert unnecessary change #

Patch Set 4 : nit #

Total comments: 6

Patch Set 5 : Add tests #

Total comments: 2

Patch Set 6 : use gmock in test #

Patch Set 7 : fix build #

Total comments: 16

Patch Set 8 : Address comments from mathp #

Total comments: 2

Patch Set 9 : nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+272 lines, -74 lines) Patch
M chrome/browser/password_manager/chrome_password_manager_client.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/password_manager/chrome_password_manager_client.cc View 1 2 3 4 5 6 7 8 2 chunks +12 lines, -1 line 0 comments Download
M chrome/browser/password_manager/chrome_password_manager_client_unittest.cc View 1 2 3 4 5 6 4 chunks +65 lines, -0 lines 0 comments Download
M chrome/renderer/autofill/fake_content_password_manager_driver.h View 1 2 3 4 3 chunks +10 lines, -0 lines 0 comments Download
M chrome/renderer/autofill/fake_content_password_manager_driver.cc View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/renderer/autofill/password_autofill_agent_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +28 lines, -0 lines 0 comments Download
M components/autofill/content/common/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/autofill/content/common/autofill_driver.mojom View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M components/autofill/content/renderer/password_autofill_agent.h View 1 2 3 4 5 6 7 2 chunks +9 lines, -2 lines 0 comments Download
M components/autofill/content/renderer/password_autofill_agent.cc View 1 2 3 4 5 5 chunks +30 lines, -9 lines 0 comments Download
M components/autofill/content/renderer/renderer_save_password_progress_logger_unittest.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M components/password_manager/content/browser/content_password_manager_driver.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M components/password_manager/content/browser/content_password_manager_driver.cc View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M components/password_manager/content/browser/content_password_manager_driver_unittest.cc View 1 2 3 4 2 chunks +13 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/password_manager_client.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/stub_password_manager_client.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M components/password_manager/core/browser/stub_password_manager_client.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M components/safe_browsing/password_protection/password_protection_request.h View 1 2 3 4 2 chunks +13 lines, -10 lines 0 comments Download
M components/safe_browsing/password_protection/password_protection_request.cc View 1 2 3 4 2 chunks +20 lines, -7 lines 0 comments Download
M components/safe_browsing/password_protection/password_protection_service.h View 1 2 3 4 2 chunks +7 lines, -25 lines 0 comments Download
M components/safe_browsing/password_protection/password_protection_service.cc View 1 2 3 4 4 chunks +9 lines, -10 lines 0 comments Download
M components/safe_browsing/password_protection/password_protection_service_unittest.cc View 1 2 3 4 6 chunks +17 lines, -10 lines 0 comments Download

Messages

Total messages: 66 (51 generated)
Jialiu Lin
Hi dvadym@, This is the CL to trigger Password Protection Ping when username/password field is ...
3 years, 7 months ago (2017-04-27 00:00:48 UTC) #34
dvadym
In general it looks good, I left some comments. Tests: 1.password_autofill_agent_browsertest.cc here you can checked ...
3 years, 7 months ago (2017-04-27 10:46:30 UTC) #36
Jialiu Lin
Thanks dvadym@! I have added three tests based on your suggestion. https://codereview.chromium.org/2833193002/diff/180001/components/autofill/content/renderer/password_autofill_agent.cc File components/autofill/content/renderer/password_autofill_agent.cc (right): ...
3 years, 7 months ago (2017-04-28 00:09:09 UTC) #37
dvadym
Password Manager LGTM % nit https://codereview.chromium.org/2833193002/diff/200001/chrome/browser/password_manager/chrome_password_manager_client_unittest.cc File chrome/browser/password_manager/chrome_password_manager_client_unittest.cc (right): https://codereview.chromium.org/2833193002/diff/200001/chrome/browser/password_manager/chrome_password_manager_client_unittest.cc#newcode87 chrome/browser/password_manager/chrome_password_manager_client_unittest.cc:87: void MaybeStartLowReputationRequest( Nit: Would ...
3 years, 7 months ago (2017-04-28 12:14:40 UTC) #38
Jialiu Lin
Thanks dvadym! I have addressed your comment. https://codereview.chromium.org/2833193002/diff/200001/chrome/browser/password_manager/chrome_password_manager_client_unittest.cc File chrome/browser/password_manager/chrome_password_manager_client_unittest.cc (right): https://codereview.chromium.org/2833193002/diff/200001/chrome/browser/password_manager/chrome_password_manager_client_unittest.cc#newcode87 chrome/browser/password_manager/chrome_password_manager_client_unittest.cc:87: void MaybeStartLowReputationRequest( ...
3 years, 7 months ago (2017-04-28 18:38:46 UTC) #39
Jialiu Lin
+mathp@chromium.org for owner review of changes in chrome/renderer/autofill/* and components/autofill/* Thanks!
3 years, 7 months ago (2017-04-28 18:44:35 UTC) #43
Mathieu
Just nits, lgtm https://codereview.chromium.org/2833193002/diff/240001/chrome/renderer/autofill/password_autofill_agent_browsertest.cc File chrome/renderer/autofill/password_autofill_agent_browsertest.cc (right): https://codereview.chromium.org/2833193002/diff/240001/chrome/renderer/autofill/password_autofill_agent_browsertest.cc#newcode602 chrome/renderer/autofill/password_autofill_agent_browsertest.cc:602: WebInputElement dummy_element_; Could you comment why ...
3 years, 7 months ago (2017-05-01 13:40:00 UTC) #50
Jialiu Lin
Thank you mathp@! All your comments have been addressed. https://codereview.chromium.org/2833193002/diff/240001/chrome/renderer/autofill/password_autofill_agent_browsertest.cc File chrome/renderer/autofill/password_autofill_agent_browsertest.cc (right): https://codereview.chromium.org/2833193002/diff/240001/chrome/renderer/autofill/password_autofill_agent_browsertest.cc#newcode602 chrome/renderer/autofill/password_autofill_agent_browsertest.cc:602: ...
3 years, 7 months ago (2017-05-01 18:59:10 UTC) #51
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/2833193002/260001
3 years, 7 months ago (2017-05-01 20:00:04 UTC) #54
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/424589)
3 years, 7 months ago (2017-05-01 20:22:06 UTC) #56
Jialiu Lin
+estark@ estark@, could you take a look at components/autofill/content/common/autofill_driver.mojom (because you're in ipc/SECURITY_OWNERS)? Thanks!
3 years, 7 months ago (2017-05-01 20:35:12 UTC) #58
estark
mojom lgtm https://codereview.chromium.org/2833193002/diff/260001/chrome/browser/password_manager/chrome_password_manager_client.cc File chrome/browser/password_manager/chrome_password_manager_client.cc (right): https://codereview.chromium.org/2833193002/diff/260001/chrome/browser/password_manager/chrome_password_manager_client.cc#newcode420 chrome/browser/password_manager/chrome_password_manager_client.cc:420: pps->MaybeStartLowReputationRequest(GetMainFrameURL(), form_action, optional nit: I usually see ...
3 years, 7 months ago (2017-05-02 14:09:38 UTC) #59
Jialiu Lin
Thanks estark@! https://codereview.chromium.org/2833193002/diff/260001/chrome/browser/password_manager/chrome_password_manager_client.cc File chrome/browser/password_manager/chrome_password_manager_client.cc (right): https://codereview.chromium.org/2833193002/diff/260001/chrome/browser/password_manager/chrome_password_manager_client.cc#newcode420 chrome/browser/password_manager/chrome_password_manager_client.cc:420: pps->MaybeStartLowReputationRequest(GetMainFrameURL(), form_action, On 2017/05/02 at 14:09:38, estark ...
3 years, 7 months ago (2017-05-02 17:36:00 UTC) #60
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/2833193002/280001
3 years, 7 months ago (2017-05-02 17:36:25 UTC) #63
commit-bot: I haz the power
3 years, 7 months ago (2017-05-02 18:47:00 UTC) #66
Message was sent while issue was closed.
Committed patchset #9 (id:280001) as
https://chromium.googlesource.com/chromium/src/+/1a0fcb3039c48ad810531e785637...

Powered by Google App Engine
This is Rietveld 408576698