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

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: Review comments 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..6836701914ccc9e0d575c5c94cf7fcaa4e0729d4 100644
--- a/chrome/browser/ui/website_settings/website_settings.cc
+++ b/chrome/browser/ui/website_settings/website_settings.cc
@@ -285,12 +285,6 @@ void WebsiteSettings::OnSitePermissionChanged(ContentSettingsType type,
UMA_HISTOGRAM_ENUMERATION(
"WebsiteSettings.OriginInfo.PermissionChanged.Blocked", histogram_value,
num_values);
- // Trigger Rappor sampling if it is a permission revoke action.
- content::PermissionType permission_type;
- if (PermissionUtil::GetPermissionType(type, &permission_type)) {
- PermissionUmaUtil::PermissionRevoked(permission_type,
- this->site_url_);
- }
}
// This is technically redundant given the histogram above, but putting the

Powered by Google App Engine
This is Rietveld 408576698