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

Issue 2747313002: PasswordProtectionService verdict cache management (Closed)

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

Description

PasswordProtectionService verdict cache management Add functionalities to PasswordProtectionService to: (1) cache pps verdict based on origin and cache expression in HostContentSettingsMap (2) Get cached verdict from HostContentSettingsMap (3) Remove cached verdict upon URLs deleted from history service. BUG=698899 Review-Url: https://codereview.chromium.org/2747313002 Cr-Commit-Position: refs/heads/master@{#458565} Committed: https://chromium.googlesource.com/chromium/src/+/64fc03ab5fd993cc6573fa24266d177aaf8b1679

Patch Set 1 #

Patch Set 2 : fix build #

Total comments: 8

Patch Set 3 : Address lpz's comments #

Total comments: 4

Patch Set 4 : partially address raymes's comments #

Patch Set 5 : remove extra deps #

Total comments: 40

Patch Set 6 : comments addressed partially #

Total comments: 4

Patch Set 7 : address all comments #

Patch Set 8 : nit #

Total comments: 2

Patch Set 9 : refine comment in csd.proto #

Total comments: 16

Patch Set 10 : address vakh's comments #

Patch Set 11 : Cache verdict based on hostname #

Unified diffs Side-by-side diffs Delta from patch set Stats (+700 lines, -3 lines) Patch
M components/content_settings/core/browser/website_settings_registry.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M components/content_settings/core/common/content_settings_types.h View 1 chunk +4 lines, -0 lines 0 comments Download
M components/safe_browsing/csd.proto View 1 2 3 4 5 6 7 8 9 1 chunk +14 lines, -0 lines 0 comments Download
M components/safe_browsing/password_protection/BUILD.gn View 2 chunks +4 lines, -0 lines 0 comments Download
M components/safe_browsing/password_protection/DEPS View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M components/safe_browsing/password_protection/password_protection_service.h View 1 2 3 4 5 6 3 chunks +80 lines, -3 lines 0 comments Download
M components/safe_browsing/password_protection/password_protection_service.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +278 lines, -0 lines 0 comments Download
M components/safe_browsing/password_protection/password_protection_service_unittest.cc View 1 2 3 4 5 6 4 chunks +311 lines, -0 lines 0 comments Download

Messages

Total messages: 57 (35 generated)
Jialiu Lin
nparker@, PTAL. lpz@, If you're interested in Phishguard project, I'll send you more CLs to ...
3 years, 9 months ago (2017-03-15 02:16:33 UTC) #13
lpz
lgtm Thanks Jialiu - yes, please send more CLs my way. Maybe I'll eventually have ...
3 years, 9 months ago (2017-03-15 15:14:58 UTC) #16
Jialiu Lin
Thanks lpz@! https://codereview.chromium.org/2747313002/diff/40001/components/safe_browsing/password_protection/password_protection_service.cc File components/safe_browsing/password_protection/password_protection_service.cc (right): https://codereview.chromium.org/2747313002/diff/40001/components/safe_browsing/password_protection/password_protection_service.cc#newcode109 components/safe_browsing/password_protection/password_protection_service.cc:109: it.key(), &verdict_entry)); On 2017/03/15 15:14:58, lpz wrote: ...
3 years, 9 months ago (2017-03-15 17:47:31 UTC) #17
Jialiu Lin
+raymes@, could you take a look at my changes in components/content_settings? Let me know if ...
3 years, 9 months ago (2017-03-15 17:49:32 UTC) #19
raymes
lgtm but please update components/content_settings/core/common/content_settings.cc or it will break histograms. Thanks! https://codereview.chromium.org/2747313002/diff/60001/components/content_settings/core/browser/website_settings_registry.cc File components/content_settings/core/browser/website_settings_registry.cc (right): ...
3 years, 9 months ago (2017-03-16 00:38:37 UTC) #20
Jialiu Lin
Thanks raymes! I'll fix content_settings.cc after https://codereview.chromium.org/2728303002/ lands. +sdefresne@ for adding components/history into DEPS +battre@ ...
3 years, 9 months ago (2017-03-16 17:48:19 UTC) #24
Nathan Parker
lgtm I have mostly nits and some brainstorming comments. Code looks good! https://codereview.chromium.org/2747313002/diff/100001/components/content_settings/core/browser/website_settings_registry.cc File components/content_settings/core/browser/website_settings_registry.cc ...
3 years, 9 months ago (2017-03-16 21:27:11 UTC) #27
vakh (use Gerrit instead)
https://codereview.chromium.org/2747313002/diff/100001/components/safe_browsing/password_protection/password_protection_service.cc File components/safe_browsing/password_protection/password_protection_service.cc (right): https://codereview.chromium.org/2747313002/diff/100001/components/safe_browsing/password_protection/password_protection_service.cc#newcode39 components/safe_browsing/password_protection/password_protection_service.cc:39: LoginReputationClientResponse* verdict, this can be const https://codereview.chromium.org/2747313002/diff/100001/components/safe_browsing/password_protection/password_protection_service.cc#newcode81 components/safe_browsing/password_protection/password_protection_service.cc:81: PasswordProtectionService::GetCachedVerdict(HostContentSettingsMap* ...
3 years, 9 months ago (2017-03-16 22:04:30 UTC) #29
raymes
https://codereview.chromium.org/2747313002/diff/120001/components/content_settings/core/common/content_settings.cc File components/content_settings/core/common/content_settings.cc (right): https://codereview.chromium.org/2747313002/diff/120001/components/content_settings/core/common/content_settings.cc#newcode58 components/content_settings/core/common/content_settings.cc:58: CONTENT_SETTINGS_TYPE_PASSWORD_PROTECTION, Sorry https://codereview.chromium.org/2728303002/ has been held up a bit ...
3 years, 9 months ago (2017-03-17 07:49:07 UTC) #30
battre
LGTM for adding //components/sync_preferences:test_support to DEPS https://codereview.chromium.org/2747313002/diff/120001/components/safe_browsing/password_protection/DEPS File components/safe_browsing/password_protection/DEPS (right): https://codereview.chromium.org/2747313002/diff/120001/components/safe_browsing/password_protection/DEPS#newcode7 components/safe_browsing/password_protection/DEPS:7: "+components/sync_preferences", Is this ...
3 years, 9 months ago (2017-03-17 09:32:43 UTC) #31
Jialiu Lin
Thanks for all your comments! Weining and I agreed to introduce a boolean field in ...
3 years, 9 months ago (2017-03-18 23:46:32 UTC) #36
Nathan Parker
https://codereview.chromium.org/2747313002/diff/100001/components/content_settings/core/browser/website_settings_registry.cc File components/content_settings/core/browser/website_settings_registry.cc (right): https://codereview.chromium.org/2747313002/diff/100001/components/content_settings/core/browser/website_settings_registry.cc#newcode166 components/content_settings/core/browser/website_settings_registry.cc:166: WebsiteSettingsInfo::REQUESTING_ORIGIN_ONLY_SCOPE, On 2017/03/18 23:46:31, Jialiu Lin wrote: > On ...
3 years, 9 months ago (2017-03-20 15:55:35 UTC) #37
Jialiu Lin
https://codereview.chromium.org/2747313002/diff/100001/components/content_settings/core/browser/website_settings_registry.cc File components/content_settings/core/browser/website_settings_registry.cc (right): https://codereview.chromium.org/2747313002/diff/100001/components/content_settings/core/browser/website_settings_registry.cc#newcode166 components/content_settings/core/browser/website_settings_registry.cc:166: WebsiteSettingsInfo::REQUESTING_ORIGIN_ONLY_SCOPE, On 2017/03/20 15:55:35, Nathan Parker wrote: > On ...
3 years, 9 months ago (2017-03-20 18:02:39 UTC) #39
Jialiu Lin
sdefresne@, need your owner approval for adding "components/history/core/browser" to components/safe_browsing/password_protection/DEPS Could you take a look? ...
3 years, 9 months ago (2017-03-20 18:06:21 UTC) #41
vakh (use Gerrit instead)
https://codereview.chromium.org/2747313002/diff/180001/components/safe_browsing/csd.proto File components/safe_browsing/csd.proto (right): https://codereview.chromium.org/2747313002/diff/180001/components/safe_browsing/csd.proto#newcode261 components/safe_browsing/csd.proto:261: // "foo.com/bar/abc/edf.cgi" Can you also make it explicit that ...
3 years, 9 months ago (2017-03-20 18:36:00 UTC) #42
Jialiu Lin
Thanks vakh@! https://codereview.chromium.org/2747313002/diff/180001/components/safe_browsing/csd.proto File components/safe_browsing/csd.proto (right): https://codereview.chromium.org/2747313002/diff/180001/components/safe_browsing/csd.proto#newcode261 components/safe_browsing/csd.proto:261: // "foo.com/bar/abc/edf.cgi" On 2017/03/20 18:36:00, vakh (Varun ...
3 years, 9 months ago (2017-03-20 19:05:54 UTC) #43
vakh (use Gerrit instead)
lgtm Thanks! On Mar 20, 2017 12:05, <jialiul@chromium.org> wrote: > Thanks vakh@! > > > ...
3 years, 9 months ago (2017-03-20 19:31:29 UTC) #44
vakh (use Gerrit instead)
lgtm
3 years, 9 months ago (2017-03-20 20:13:56 UTC) #45
sdefresne
DEPS on components/history/core lgtm
3 years, 9 months ago (2017-03-21 09:06:46 UTC) #46
Jialiu Lin
Based on our discussion this morning, keep the password protection content settings at the REQUESTING_ORIGIN_ONLY_SCOPE. ...
3 years, 9 months ago (2017-03-21 19:05:19 UTC) #47
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/2747313002/220001
3 years, 9 months ago (2017-03-21 21:06:40 UTC) #54
commit-bot: I haz the power
3 years, 9 months ago (2017-03-21 21:50:43 UTC) #57
Message was sent while issue was closed.
Committed patchset #11 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/64fc03ab5fd993cc6573fa24266d...

Powered by Google App Engine
This is Rietveld 408576698