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

Unified Diff: chrome/browser/safe_browsing/permission_reporter.h

Issue 2675483002: Replace PermissionType in chrome/ with ContentSettingsType (Closed)
Patch Set: rebase + include content_settings_types.h more Created 3 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/safe_browsing/permission_reporter.h
diff --git a/chrome/browser/safe_browsing/permission_reporter.h b/chrome/browser/safe_browsing/permission_reporter.h
index 7fe213ba64342e15e9e3de1b01461af60a5bfc5f..e6ae69f6af04c0641d40c99392672193d934bae8 100644
--- a/chrome/browser/safe_browsing/permission_reporter.h
+++ b/chrome/browser/safe_browsing/permission_reporter.h
@@ -11,6 +11,7 @@
#include "base/time/time.h"
#include "chrome/browser/permissions/permission_uma_util.h"
+#include "components/content_settings/core/common/content_settings_types.h"
#include "url/gurl.h"
namespace base {
@@ -27,7 +28,7 @@ namespace safe_browsing {
struct PermissionAndOrigin {
bool operator==(const PermissionAndOrigin& other) const;
- content::PermissionType permission;
+ ContentSettingsType permission;
GURL origin;
};
@@ -71,7 +72,7 @@ class PermissionReporter {
// Returns false if the number of reports sent in the last one minute per
// origin per permission is under a threshold, otherwise true.
- bool IsReportThresholdExceeded(content::PermissionType permission,
+ bool IsReportThresholdExceeded(ContentSettingsType permission,
const GURL& origin);
std::unique_ptr<net::ReportSender> permission_report_sender_;
« no previous file with comments | « chrome/browser/push_messaging/push_messaging_service_impl.cc ('k') | chrome/browser/safe_browsing/permission_reporter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698