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

Unified Diff: chrome/browser/ui/website_settings/website_settings.cc

Issue 1803973002: Content Settings: Add RevocationObserver to measure when permissions are revoked (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rewrite patch in permissions layer Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/website_settings/website_settings.cc
diff --git a/chrome/browser/ui/website_settings/website_settings.cc b/chrome/browser/ui/website_settings/website_settings.cc
index 9996abb1bd02d3c7a724eed37bce73aed2921872..4246c2da3c4bc06a26d19d931ca60ac8860f70ff 100644
--- a/chrome/browser/ui/website_settings/website_settings.cc
+++ b/chrome/browser/ui/website_settings/website_settings.cc
@@ -286,6 +286,8 @@ void WebsiteSettings::OnSitePermissionChanged(ContentSettingsType type,
"WebsiteSettings.OriginInfo.PermissionChanged.Blocked", histogram_value,
num_values);
// Trigger Rappor sampling if it is a permission revoke action.
+ // TODO(tsergeant): Integrate this with the revocation recording performed
+ // in the permissions layer. See crbug.com/469221.
content::PermissionType permission_type;
if (PermissionUtil::GetPermissionType(type, &permission_type)) {
PermissionUmaUtil::PermissionRevoked(permission_type,

Powered by Google App Engine
This is Rietveld 408576698