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

Issue 2911293003: Reland: Cache protected password entry and password on focus ping separately. (Closed)

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

Description

Cache protected password entry and password on focus ping separately. PasswordProtectionService still uses a single content setting type to cache verdict. Since password on focus verdicts (a.k.a UNFAMILIAR_LOGIN_PAGE ping verdict) only used by extended reporting users, we group them under kPasswordOnFocusCacheKey. And protected password entry verdicts (a.k.a PASSSWORD_REUSE_EVENT verdict for all users) remain the same. In this way we don't need extra migration code to handle existing verdicts. BUG=727942 >Review-Url: https://codereview.chromium.org/2911293003 >Cr-Commit-Position: refs/heads/master@{#478482} >Committed: >https://chromium.googlesource.com/chromium/src/+/999a40e458bbcfbfad9bb>4498c0e2799261a9ee3 >Review-Url: https://codereview.chromium.org/2911293003 >Cr-Commit-Position: refs/heads/master@{#479221} >Committed: >https://chromium.googlesource.com/chromium/src/+/dd1e509ada57cbc5e1376>0ed9d9542ccfea3c361 Review-Url: https://codereview.chromium.org/2911293003 Cr-Commit-Position: refs/heads/master@{#480695} Committed: https://chromium.googlesource.com/chromium/src/+/f1b5b08b61b3f3f23d2f6bd82339b20a7141603a

Patch Set 1 #

Patch Set 2 : nits #

Total comments: 2

Patch Set 3 : Use singel content setting type #

Patch Set 4 : nit #

Total comments: 20

Patch Set 5 : address lpz's comments and rebase #

Patch Set 6 : nits #

Patch Set 7 : rebase update #

Total comments: 2

Patch Set 8 : address vakh's comment #

Patch Set 9 : Rebase and wrap base::StringPiece arround const char[] #

Patch Set 10 : Fix Crashes by Using GetDictionaryWithoutPathExpansion #

Unified diffs Side-by-side diffs Delta from patch set Stats (+476 lines, -143 lines) Patch
M chrome/browser/safe_browsing/chrome_password_protection_service.cc View 1 2 3 4 5 6 7 8 1 chunk +9 lines, -2 lines 0 comments Download
M chrome/browser/safe_browsing/chrome_password_protection_service_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M components/content_settings/core/common/content_settings.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M components/safe_browsing/password_protection/password_protection_request.h View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
M components/safe_browsing/password_protection/password_protection_request.cc View 1 2 3 4 5 6 6 chunks +10 lines, -8 lines 0 comments Download
M components/safe_browsing/password_protection/password_protection_service.h View 1 2 3 4 5 6 7 chunks +26 lines, -11 lines 0 comments Download
M components/safe_browsing/password_protection/password_protection_service.cc View 1 2 3 4 5 6 7 8 9 14 chunks +221 lines, -72 lines 0 comments Download
M components/safe_browsing/password_protection/password_protection_service_unittest.cc View 1 2 3 4 5 6 5 chunks +200 lines, -45 lines 0 comments Download
M tools/metrics/histograms/enums.xml View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 113 (83 generated)
Jialiu Lin
+raymes@, could you review all the content_settings related change? Thanks!
3 years, 6 months ago (2017-05-31 18:55:45 UTC) #9
raymes
Thanks Jialiu https://codereview.chromium.org/2911293003/diff/20001/components/content_settings/core/common/content_settings_types.h File components/content_settings/core/common/content_settings_types.h (right): https://codereview.chromium.org/2911293003/diff/20001/components/content_settings/core/common/content_settings_types.h#newcode68 components/content_settings/core/common/content_settings_types.h:68: CONTENT_SETTINGS_TYPE_PROTECTED_PASSWORD_ENTRY, This is a dictionary - would ...
3 years, 6 months ago (2017-05-31 23:16:48 UTC) #12
Jialiu Lin
https://codereview.chromium.org/2911293003/diff/20001/components/content_settings/core/common/content_settings_types.h File components/content_settings/core/common/content_settings_types.h (right): https://codereview.chromium.org/2911293003/diff/20001/components/content_settings/core/common/content_settings_types.h#newcode68 components/content_settings/core/common/content_settings_types.h:68: CONTENT_SETTINGS_TYPE_PROTECTED_PASSWORD_ENTRY, On 2017/05/31 23:16:48, raymes wrote: > This is ...
3 years, 6 months ago (2017-06-02 01:54:42 UTC) #13
raymes
On 2017/06/02 01:54:42, Jialiu Lin wrote: > https://codereview.chromium.org/2911293003/diff/20001/components/content_settings/core/common/content_settings_types.h > File components/content_settings/core/common/content_settings_types.h (right): > > https://codereview.chromium.org/2911293003/diff/20001/components/content_settings/core/common/content_settings_types.h#newcode68 ...
3 years, 6 months ago (2017-06-02 02:02:26 UTC) #14
Jialiu Lin
Hi raymes@, Thanks for your feedback. I have changed my implementation to only using a ...
3 years, 6 months ago (2017-06-06 01:05:45 UTC) #18
raymes
Thanks Jialiu! content_settings lgtm. I haven't looked at any of the code for reading to/writing ...
3 years, 6 months ago (2017-06-06 01:51:40 UTC) #19
Jialiu Lin
On 2017/06/06 01:51:40, raymes wrote: > Thanks Jialiu! > > content_settings lgtm. I haven't looked ...
3 years, 6 months ago (2017-06-06 02:21:23 UTC) #20
Jialiu Lin
+vakh@ and nparker@ for safe_browsing related change +isherman@ for histograms.xml
3 years, 6 months ago (2017-06-06 02:22:42 UTC) #22
Ilya Sherman
Metrics LGTM
3 years, 6 months ago (2017-06-06 05:41:44 UTC) #23
Jialiu Lin
-nparker@ +lpz@ to balance the review load.
3 years, 6 months ago (2017-06-07 21:19:17 UTC) #26
lpz
Looks good aside from some nits and some clarifying questions. Thanks! https://codereview.chromium.org/2911293003/diff/60001/chrome/browser/safe_browsing/chrome_password_protection_service_unittest.cc File chrome/browser/safe_browsing/chrome_password_protection_service_unittest.cc (right): ...
3 years, 6 months ago (2017-06-08 15:18:34 UTC) #27
Jialiu Lin
Thanks lpz! https://codereview.chromium.org/2911293003/diff/60001/chrome/browser/safe_browsing/chrome_password_protection_service_unittest.cc File chrome/browser/safe_browsing/chrome_password_protection_service_unittest.cc (right): https://codereview.chromium.org/2911293003/diff/60001/chrome/browser/safe_browsing/chrome_password_protection_service_unittest.cc#newcode78 chrome/browser/safe_browsing/chrome_password_protection_service_unittest.cc:78: LoginReputationClientRequest::TriggerType type, On 2017/06/08 15:18:33, lpz wrote: ...
3 years, 6 months ago (2017-06-08 20:47:31 UTC) #30
lpz
lgtm
3 years, 6 months ago (2017-06-09 14:43:21 UTC) #42
Jialiu Lin
Thanks lpz! vakh@, could you take a look? Thanks!
3 years, 6 months ago (2017-06-09 16:28:29 UTC) #43
vakh (use Gerrit instead)
lgtm https://codereview.chromium.org/2911293003/diff/160001/components/safe_browsing/password_protection/password_protection_service.cc File components/safe_browsing/password_protection/password_protection_service.cc (right): https://codereview.chromium.org/2911293003/diff/160001/components/safe_browsing/password_protection/password_protection_service.cc#newcode142 components/safe_browsing/password_protection/password_protection_service.cc:142: DCHECK(content_settings_); This DCHECK is not useful since the ...
3 years, 6 months ago (2017-06-09 23:28:09 UTC) #50
Jialiu Lin
Thanks vakh@! https://codereview.chromium.org/2911293003/diff/160001/components/safe_browsing/password_protection/password_protection_service.cc File components/safe_browsing/password_protection/password_protection_service.cc (right): https://codereview.chromium.org/2911293003/diff/160001/components/safe_browsing/password_protection/password_protection_service.cc#newcode142 components/safe_browsing/password_protection/password_protection_service.cc:142: DCHECK(content_settings_); On 2017/06/09 23:28:09, vakh (Varun Khaneja) ...
3 years, 6 months ago (2017-06-09 23:33:41 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/2911293003/180001
3 years, 6 months ago (2017-06-09 23:34:14 UTC) #54
commit-bot: I haz the power
Committed patchset #8 (id:180001) as https://chromium.googlesource.com/chromium/src/+/999a40e458bbcfbfad9bb4498c0e2799261a9ee3
3 years, 6 months ago (2017-06-10 00:54:49 UTC) #57
findit-for-me
Findit (https://goo.gl/kROfz5) identified this CL at revision 478482 as the culprit for failures in the ...
3 years, 6 months ago (2017-06-10 02:00:22 UTC) #58
Jialiu Lin
On 2017/06/10 02:00:22, findit-for-me wrote: > Findit (https://goo.gl/kROfz5) identified this CL at revision 478482 as ...
3 years, 6 months ago (2017-06-10 03:26:37 UTC) #59
Jialiu Lin
Last Saturday after this CL hot committed (with happy try bots) there was a strange ...
3 years, 6 months ago (2017-06-13 21:17:30 UTC) #77
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/2911293003/240001
3 years, 6 months ago (2017-06-13 21:32:52 UTC) #82
commit-bot: I haz the power
Committed patchset #9 (id:240001) as https://chromium.googlesource.com/chromium/src/+/dd1e509ada57cbc5e13760ed9d9542ccfea3c361
3 years, 6 months ago (2017-06-14 00:16:21 UTC) #85
ortuno
I think this just broke browser_side_navigation_components_unittests: https://uberchromegw.corp.google.com/i/chromium.linux/builders/Linux%20Tests/builds/58022
3 years, 6 months ago (2017-06-14 02:32:25 UTC) #87
findit-for-me
Findit (https://goo.gl/kROfz5) identified this CL at revision 479221 as the culprit for failures in the ...
3 years, 6 months ago (2017-06-14 06:21:49 UTC) #88
Jialiu Lin
Finally, I was able to reproduce crashes on official build (is_official_build = true). Though I'm ...
3 years, 6 months ago (2017-06-17 20:34:30 UTC) #94
raymes
Was the problem that you had a DCHECK around: DCHECK(cache_dictionary->GetDictionaryWithoutPathExpansion( kPasswordOnFocusCacheKey, &verdict_dictionary)); ? That will ...
3 years, 6 months ago (2017-06-18 23:21:30 UTC) #105
Jialiu Lin
On 2017/06/18 23:21:30, raymes wrote: > Was the problem that you had a DCHECK around: ...
3 years, 6 months ago (2017-06-19 03:44:12 UTC) #106
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/2911293003/260001
3 years, 6 months ago (2017-06-20 00:38:57 UTC) #109
commit-bot: I haz the power
3 years, 6 months ago (2017-06-20 02:37:17 UTC) #113
Message was sent while issue was closed.
Committed patchset #10 (id:260001) as
https://chromium.googlesource.com/chromium/src/+/f1b5b08b61b3f3f23d2f6bd82339...

Powered by Google App Engine
This is Rietveld 408576698