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

Unified Diff: chrome/browser/permissions/permission_manager.cc

Issue 2697473002: Remove last usage functions from HostContentSettingsMap and clean up prefs (Closed)
Patch Set: fix up unit test 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
« no previous file with comments | « chrome/browser/permissions/permission_manager.h ('k') | chromecast/browser/cast_permission_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/permissions/permission_manager.cc
diff --git a/chrome/browser/permissions/permission_manager.cc b/chrome/browser/permissions/permission_manager.cc
index e890aea26b0a94bb4ec5f78a184249846e77bb7d..145868d29d19fa29401cb62dfe663e0a5116463d 100644
--- a/chrome/browser/permissions/permission_manager.cc
+++ b/chrome/browser/permissions/permission_manager.cc
@@ -425,21 +425,6 @@ PermissionStatus PermissionManager::GetPermissionStatus(
requesting_origin, embedding_origin);
}
-void PermissionManager::RegisterPermissionUsage(PermissionType permission,
- const GURL& requesting_origin,
- const GURL& embedding_origin) {
- DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
- // This is required because constant permissions don't have a
- // ContentSettingsType.
- if (IsConstantPermission(permission))
- return;
-
- HostContentSettingsMapFactory::GetForProfile(profile_)->UpdateLastUsage(
- requesting_origin,
- embedding_origin,
- PermissionTypeToContentSetting(permission));
-}
-
int PermissionManager::SubscribePermissionStatusChange(
PermissionType permission,
const GURL& requesting_origin,
« no previous file with comments | « chrome/browser/permissions/permission_manager.h ('k') | chromecast/browser/cast_permission_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698