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

Unified Diff: chrome/browser/permissions/permission_uma_util.h

Issue 2145373002: Revert of Add hooks to permission layer for permission action reporting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permission-reporter-implementation
Patch Set: Created 4 years, 5 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/permissions/permission_uma_util.h
diff --git a/chrome/browser/permissions/permission_uma_util.h b/chrome/browser/permissions/permission_uma_util.h
index 0d7c7714ec3930ae963e8b53a40f0f0751a85bed..f16361737f09855b8c60492354361cddbffb109f 100644
--- a/chrome/browser/permissions/permission_uma_util.h
+++ b/chrome/browser/permissions/permission_uma_util.h
@@ -51,20 +51,15 @@
const GURL& embedding_origin,
Profile* profile);
static void PermissionGranted(content::PermissionType permission,
- const GURL& requesting_origin,
- Profile* profile);
+ const GURL& requesting_origin);
static void PermissionDenied(content::PermissionType permission,
- const GURL& requesting_origin,
- Profile* profile);
+ const GURL& requesting_origin);
static void PermissionDismissed(content::PermissionType permission,
- const GURL& requesting_origin,
- Profile* profile);
+ const GURL& requesting_origin);
static void PermissionIgnored(content::PermissionType permission,
- const GURL& requesting_origin,
- Profile* profile);
+ const GURL& requesting_origin);
static void PermissionRevoked(content::PermissionType permission,
- const GURL& revoked_origin,
- Profile* profile);
+ const GURL& revoked_origin);
// UMA specifically for when permission prompts are shown. This should be
// roughly equivalent to the metrics above, however it is
@@ -91,16 +86,7 @@
const std::vector<PermissionBubbleRequest*>& requests);
private:
- friend class PermissionUmaUtilTest;
-
DISALLOW_IMPLICIT_CONSTRUCTORS(PermissionUmaUtil);
-
- static bool IsOptedIntoPermissionActionReporting(Profile* profile);
-
- static void RecordPermissionAction(content::PermissionType permission,
- PermissionAction action,
- const GURL& requesting_origin,
- Profile* profile);
};
#endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_UMA_UTIL_H_
« no previous file with comments | « chrome/browser/permissions/permission_queue_controller.cc ('k') | chrome/browser/permissions/permission_uma_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698