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

Issue 2180723002: Add revocation metrics from OIB and content setting (Closed)

Created:
4 years, 5 months ago by stefanocs
Modified:
4 years, 4 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, msramek+watch_chromium.org, michaelpg+watch-options_chromium.org, raymes+watch_chromium.org, mlamouri+watch-permissions_chromium.org, markusheintz_, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@revocation-reporter
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add revocations from OIB and content setting Revocations from OIB are recorded from chrome/browser/ui/website_settings/website_settings.cc Revocations from content setting are recorded from chrome/browser/ui/webui/options/content_settings_handler.cc. Revocations are only recorded from content setting if the pattern is a valid host string with no wildcards. We also refactored GetContentSettingsMap to GetProfile and GetOTRContentSettingsMap to GetOTRProfile since we need to pass in the profile to ScopedRevocationReporter. BUG=613883, 469221 Committed: https://crrev.com/8b3490ccac018eee6b75c9f64d30700fb1d40d69 Cr-Commit-Position: refs/heads/master@{#408341}

Patch Set 1 #

Patch Set 2 : Fix #

Patch Set 3 : Typo #

Patch Set 4 : Fix test #

Patch Set 5 : Add setter for settings map #

Total comments: 4

Patch Set 6 : Remove set custom host map #

Total comments: 6

Patch Set 7 : Change Get(OTR)ContentSettingsMap to Get(OTR)Profile #

Total comments: 6

Patch Set 8 : Refactor #

Patch Set 9 : Rebase #

Patch Set 10 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -71 lines) Patch
M chrome/browser/permissions/permission_util.h View 1 2 3 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/permissions/permission_util.cc View 1 2 3 4 5 1 chunk +19 lines, -4 lines 0 comments Download
M chrome/browser/permissions/permission_util_unittest.cc View 1 2 3 2 chunks +30 lines, -0 lines 0 comments Download
M chrome/browser/ui/website_settings/website_settings.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -9 lines 0 comments Download
M chrome/browser/ui/webui/options/content_settings_handler.h View 1 2 3 4 5 6 2 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/options/content_settings_handler.cc View 1 2 3 4 5 6 7 11 chunks +68 lines, -53 lines 0 comments Download

Messages

Total messages: 46 (30 generated)
stefanocs
Hi, please review this cl. Thanks!
4 years, 5 months ago (2016-07-25 10:39:57 UTC) #9
raymes
https://codereview.chromium.org/2180723002/diff/80001/chrome/browser/ui/webui/options/content_settings_handler.cc File chrome/browser/ui/webui/options/content_settings_handler.cc (right): https://codereview.chromium.org/2180723002/diff/80001/chrome/browser/ui/webui/options/content_settings_handler.cc#newcode1321 chrome/browser/ui/webui/options/content_settings_handler.cc:1321: scoped_revocation_reporter.SetCustomSettingsMap(settings_map); I think we should just pass the OTR ...
4 years, 5 months ago (2016-07-26 01:18:32 UTC) #12
stefanocs
https://codereview.chromium.org/2180723002/diff/80001/chrome/browser/ui/webui/options/content_settings_handler.cc File chrome/browser/ui/webui/options/content_settings_handler.cc (right): https://codereview.chromium.org/2180723002/diff/80001/chrome/browser/ui/webui/options/content_settings_handler.cc#newcode1321 chrome/browser/ui/webui/options/content_settings_handler.cc:1321: scoped_revocation_reporter.SetCustomSettingsMap(settings_map); On 2016/07/26 01:18:31, raymes wrote: > I think ...
4 years, 5 months ago (2016-07-26 02:16:20 UTC) #13
kcarattini
https://codereview.chromium.org/2180723002/diff/100001/chrome/browser/ui/website_settings/website_settings.cc File chrome/browser/ui/website_settings/website_settings.cc (left): https://codereview.chromium.org/2180723002/diff/100001/chrome/browser/ui/website_settings/website_settings.cc#oldcode292 chrome/browser/ui/website_settings/website_settings.cc:292: // TODO(tsergeant): Integrate this with the revocation recording performed ...
4 years, 5 months ago (2016-07-26 03:54:21 UTC) #16
tsergeant
https://codereview.chromium.org/2180723002/diff/100001/chrome/browser/ui/website_settings/website_settings.cc File chrome/browser/ui/website_settings/website_settings.cc (left): https://codereview.chromium.org/2180723002/diff/100001/chrome/browser/ui/website_settings/website_settings.cc#oldcode292 chrome/browser/ui/website_settings/website_settings.cc:292: // TODO(tsergeant): Integrate this with the revocation recording performed ...
4 years, 5 months ago (2016-07-26 04:09:30 UTC) #17
raymes
https://codereview.chromium.org/2180723002/diff/100001/chrome/browser/permissions/permission_util.h File chrome/browser/permissions/permission_util.h (right): https://codereview.chromium.org/2180723002/diff/100001/chrome/browser/permissions/permission_util.h#newcode46 chrome/browser/permissions/permission_util.h:46: // setter if necessary. This comment is incorrect now ...
4 years, 5 months ago (2016-07-26 07:50:03 UTC) #18
stefanocs
https://codereview.chromium.org/2180723002/diff/100001/chrome/browser/permissions/permission_util.h File chrome/browser/permissions/permission_util.h (right): https://codereview.chromium.org/2180723002/diff/100001/chrome/browser/permissions/permission_util.h#newcode46 chrome/browser/permissions/permission_util.h:46: // setter if necessary. On 2016/07/26 07:50:03, raymes wrote: ...
4 years, 4 months ago (2016-07-26 12:00:05 UTC) #19
raymes
lgtm
4 years, 4 months ago (2016-07-27 01:45:34 UTC) #20
kcarattini
lgtm
4 years, 4 months ago (2016-07-27 03:48:56 UTC) #21
stefanocs
Thanks. stevenjb@chromium.org: Please review changes in chrome/browser/ui/webui/options/
4 years, 4 months ago (2016-07-27 04:19:59 UTC) #24
stevenjb
lgtm w/ nits https://codereview.chromium.org/2180723002/diff/120001/chrome/browser/ui/webui/options/content_settings_handler.cc File chrome/browser/ui/webui/options/content_settings_handler.cc (right): https://codereview.chromium.org/2180723002/diff/120001/chrome/browser/ui/webui/options/content_settings_handler.cc#newcode1314 chrome/browser/ui/webui/options/content_settings_handler.cc:1314: if (profile) { if (!profile) return; ...
4 years, 4 months ago (2016-07-27 16:37:07 UTC) #25
stefanocs
Thanks! ping Tim. https://codereview.chromium.org/2180723002/diff/120001/chrome/browser/ui/webui/options/content_settings_handler.cc File chrome/browser/ui/webui/options/content_settings_handler.cc (right): https://codereview.chromium.org/2180723002/diff/120001/chrome/browser/ui/webui/options/content_settings_handler.cc#newcode1314 chrome/browser/ui/webui/options/content_settings_handler.cc:1314: if (profile) { On 2016/07/27 16:37:07, ...
4 years, 4 months ago (2016-07-28 02:03:30 UTC) #28
tsergeant
oops, lgtm
4 years, 4 months ago (2016-07-28 03:22:39 UTC) #31
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/2180723002/180001
4 years, 4 months ago (2016-07-28 05:29:30 UTC) #42
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 4 months ago (2016-07-28 05:33:07 UTC) #44
commit-bot: I haz the power
4 years, 4 months ago (2016-07-28 05:36:07 UTC) #46
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/8b3490ccac018eee6b75c9f64d30700fb1d40d69
Cr-Commit-Position: refs/heads/master@{#408341}

Powered by Google App Engine
This is Rietveld 408576698