summaryrefslogtreecommitdiff
path: root/libs/binder/PermissionCache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/binder/PermissionCache.cpp')
-rw-r--r--libs/binder/PermissionCache.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/binder/PermissionCache.cpp b/libs/binder/PermissionCache.cpp
index 75a6d22969..670fd55da3 100644
--- a/libs/binder/PermissionCache.cpp
+++ b/libs/binder/PermissionCache.cpp
@@ -27,7 +27,7 @@ namespace android {
// ----------------------------------------------------------------------------
-ANDROID_SINGLETON_STATIC_INSTANCE(PermissionCache) ;
+ANDROID_SINGLETON_STATIC_INSTANCE(PermissionCache)
// ----------------------------------------------------------------------------
@@ -109,5 +109,10 @@ bool PermissionCache::checkPermission(
return granted;
}
+void PermissionCache::purgeCache() {
+ PermissionCache& pc(PermissionCache::getInstance());
+ pc.purge();
+}
+
// ---------------------------------------------------------------------------
} // namespace android