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

Unified Diff: chrome/browser/content_settings/web_site_settings_uma_util.h

Issue 952463002: Add UMA to track permission changes from the content settings menu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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/content_settings/web_site_settings_uma_util.h
diff --git a/chrome/browser/content_settings/web_site_settings_uma_util.h b/chrome/browser/content_settings/web_site_settings_uma_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..61df09787ce73fc3d94ae8d70ed0769284fa0dc5
--- /dev/null
+++ b/chrome/browser/content_settings/web_site_settings_uma_util.h
@@ -0,0 +1,20 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_CONTENT_SETTINGS_WEB_SITE_SETTINGS_UMA_UTIL_H_
+#define CHROME_BROWSER_CONTENT_SETTINGS_WEB_SITE_SETTINGS_UMA_UTIL_H_
+
+#include "base/logging.h"
+#include "components/content_settings/core/common/content_settings.h"
+
+class WebSiteSettingsUmaUtil {
+ public:
+ static void LogPermissionChange(ContentSettingsType type,
+ ContentSetting setting);
+
+ private:
+ DISALLOW_IMPLICIT_CONSTRUCTORS(WebSiteSettingsUmaUtil);
+};
+
+#endif // CHROME_BROWSER_CONTENT_SETTINGS_WEB_SITE_SETTINGS_UMA_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698