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

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

Issue 2308933002: Plugin Power Saver Tiny: Add RAPPOR metric for new ALLOW exceptions. (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « chrome/browser/ui/content_settings/content_setting_bubble_model.cc ('k') | tools/metrics/rappor/rappor.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 122cb2a67baae541bf7ccda04fcd904ccb6bc891..bb2bede45c053d8b9325cc08aa688ab0be433691 100644
--- a/chrome/browser/ui/website_settings/website_settings.cc
+++ b/chrome/browser/ui/website_settings/website_settings.cc
@@ -322,6 +322,12 @@ void WebsiteSettings::OnSitePermissionChanged(ContentSettingsType type,
UMA_HISTOGRAM_ENUMERATION(
"WebsiteSettings.OriginInfo.PermissionChanged.Allowed", histogram_value,
num_values);
+
+ if (type == CONTENT_SETTINGS_TYPE_PLUGINS) {
+ rappor::SampleDomainAndRegistryFromGURL(
+ g_browser_process->rappor_service(),
+ "ContentSettings.Plugins.AddedAllowException", site_url_);
+ }
} else if (setting == ContentSetting::CONTENT_SETTING_BLOCK) {
UMA_HISTOGRAM_ENUMERATION(
"WebsiteSettings.OriginInfo.PermissionChanged.Blocked", histogram_value,
« no previous file with comments | « chrome/browser/ui/content_settings/content_setting_bubble_model.cc ('k') | tools/metrics/rappor/rappor.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698