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

Issue 2292443003: Support host-based deletion for SSLHostStateDelegate (Closed)

Created:
4 years, 3 months ago by msramek
Modified:
4 years, 3 months ago
Reviewers:
jww, raymes, Torne, nasko, estark
CC:
chromium-reviews, msramek+watch_chromium.org, jam, raymes+watch_chromium.org, darin-cc_chromium.org, markusheintz_, android-webview-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Support host-based deletion for SSLHostStateDelegate This CL has two parts: 1. Since SSLHostStateDelegate stores the certificate decisions as a website setting, we can reuse the pattern-based deletion of website settings that is already implemented. However, it was implemented in BrowsingDataRemover. To reuse it for SSLHostStateDelegate, we need to move the logic to HostContentSettingsMap. Note that this is in line with the general pattern applied throughout Chromium in crbug.com/589586 where each data storage backend implements its own url-/origin-/host-/etc. based deletion. 2. Extend SSLHostStateDelegate::Clear() with a host filter, together with its 3 backends, and update ChromeSSLHostStateDelegateTest. BUG=589586 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/e7da29897c9d0d10adf94330e0982ee059c0b8fc Cr-Commit-Position: refs/heads/master@{#416894}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Addressed comments. #

Patch Set 3 : Android fix. #

Patch Set 4 : Revert changes in ContentSettingPattern, convert pattern directly to URL #

Total comments: 2

Patch Set 5 : Fixed comment. #

Patch Set 6 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+241 lines, -148 lines) Patch
M android_webview/browser/aw_ssl_host_state_delegate.h View 1 chunk +2 lines, -1 line 0 comments Download
M android_webview/browser/aw_ssl_host_state_delegate.cc View 1 2 chunks +17 lines, -2 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover.h View 1 2 3 4 5 2 chunks +0 lines, -13 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover.cc View 1 2 3 4 5 3 chunks +17 lines, -28 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover_unittest.cc View 1 2 3 4 5 2 chunks +0 lines, -91 lines 0 comments Download
M chrome/browser/content_settings/host_content_settings_map_unittest.cc View 1 2 3 4 2 chunks +96 lines, -0 lines 0 comments Download
M chrome/browser/ssl/chrome_ssl_host_state_delegate.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ssl/chrome_ssl_host_state_delegate.cc View 1 2 3 3 chunks +29 lines, -2 lines 0 comments Download
M chrome/browser/ssl/chrome_ssl_host_state_delegate_test.cc View 4 chunks +24 lines, -4 lines 0 comments Download
M components/content_settings/core/browser/host_content_settings_map.h View 1 chunk +8 lines, -0 lines 0 comments Download
M components/content_settings/core/browser/host_content_settings_map.cc View 1 2 3 4 5 1 chunk +22 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigation_controller_android.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M content/public/browser/ssl_host_state_delegate.h View 2 chunks +5 lines, -2 lines 0 comments Download
M content/test/mock_ssl_host_state_delegate.h View 1 chunk +2 lines, -1 line 0 comments Download
M content/test/mock_ssl_host_state_delegate.cc View 2 chunks +15 lines, -2 lines 0 comments Download

Messages

Total messages: 42 (27 generated)
msramek
Hi folks, Please have a look! Raymes: For part #1, since you pushed against having ...
4 years, 3 months ago (2016-08-29 16:23:35 UTC) #2
estark
The SSLHostStateDelegate changes lgtm with a couple questions. jww would be a good person to ...
4 years, 3 months ago (2016-08-30 01:52:16 UTC) #4
msramek
https://codereview.chromium.org/2292443003/diff/1/android_webview/browser/aw_ssl_host_state_delegate.cc File android_webview/browser/aw_ssl_host_state_delegate.cc (right): https://codereview.chromium.org/2292443003/diff/1/android_webview/browser/aw_ssl_host_state_delegate.cc#newcode87 android_webview/browser/aw_ssl_host_state_delegate.cc:87: for (auto it = cert_policy_for_host_.begin(); it != cert_policy_map_.end();) { ...
4 years, 3 months ago (2016-08-30 14:39:41 UTC) #7
raymes
Thanks! https://codereview.chromium.org/2292443003/diff/1/chrome/browser/ssl/chrome_ssl_host_state_delegate.cc File chrome/browser/ssl/chrome_ssl_host_state_delegate.cc (right): https://codereview.chromium.org/2292443003/diff/1/chrome/browser/ssl/chrome_ssl_host_state_delegate.cc#newcode150 chrome/browser/ssl/chrome_ssl_host_state_delegate.cc:150: DCHECK(url.is_valid()); On 2016/08/30 14:39:41, msramek wrote: > On ...
4 years, 3 months ago (2016-08-30 23:32:00 UTC) #15
msramek
https://codereview.chromium.org/2292443003/diff/1/chrome/browser/ssl/chrome_ssl_host_state_delegate.cc File chrome/browser/ssl/chrome_ssl_host_state_delegate.cc (right): https://codereview.chromium.org/2292443003/diff/1/chrome/browser/ssl/chrome_ssl_host_state_delegate.cc#newcode150 chrome/browser/ssl/chrome_ssl_host_state_delegate.cc:150: DCHECK(url.is_valid()); On 2016/08/30 23:32:00, raymes wrote: > On 2016/08/30 ...
4 years, 3 months ago (2016-08-31 13:43:11 UTC) #18
msramek
...and since Emily already reviewed the main implementation, +Torne PTAL at android_webview/ +Nasko PTAL at ...
4 years, 3 months ago (2016-08-31 13:54:03 UTC) #20
Torne
android_webview LGTM
4 years, 3 months ago (2016-08-31 13:59:47 UTC) #21
raymes
content_settings lgtm https://codereview.chromium.org/2292443003/diff/60001/chrome/browser/content_settings/host_content_settings_map_unittest.cc File chrome/browser/content_settings/host_content_settings_map_unittest.cc (right): https://codereview.chromium.org/2292443003/diff/60001/chrome/browser/content_settings/host_content_settings_map_unittest.cc#newcode1706 chrome/browser/content_settings/host_content_settings_map_unittest.cc:1706: // |host_settings| contains block. There is no ...
4 years, 3 months ago (2016-09-01 01:47:05 UTC) #24
msramek
Thanks Raymes! https://codereview.chromium.org/2292443003/diff/60001/chrome/browser/content_settings/host_content_settings_map_unittest.cc File chrome/browser/content_settings/host_content_settings_map_unittest.cc (right): https://codereview.chromium.org/2292443003/diff/60001/chrome/browser/content_settings/host_content_settings_map_unittest.cc#newcode1706 chrome/browser/content_settings/host_content_settings_map_unittest.cc:1706: // |host_settings| contains block. On 2016/09/01 01:47:04, ...
4 years, 3 months ago (2016-09-01 16:34:56 UTC) #31
nasko
content/ LGTM
4 years, 3 months ago (2016-09-01 16:58:15 UTC) #32
jww
On 2016/09/01 16:58:15, nasko (slow) wrote: > content/ LGTM lgtm
4 years, 3 months ago (2016-09-06 22:56:12 UTC) #35
msramek
Thanks!
4 years, 3 months ago (2016-09-07 08:56:06 UTC) #36
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/2292443003/100001
4 years, 3 months ago (2016-09-07 08:56:48 UTC) #39
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 3 months ago (2016-09-07 09:58:25 UTC) #40
commit-bot: I haz the power
4 years, 3 months ago (2016-09-07 09:59:52 UTC) #42
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/e7da29897c9d0d10adf94330e0982ee059c0b8fc
Cr-Commit-Position: refs/heads/master@{#416894}

Powered by Google App Engine
This is Rietveld 408576698