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

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

Issue 2726853007: Views/Permissions: Update desktop UI to display BLOCK for embargoed permissions. (Closed)
Patch Set: 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 | « no previous file | chrome/browser/permissions/permission_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/permissions/permission_util.h
diff --git a/chrome/browser/permissions/permission_util.h b/chrome/browser/permissions/permission_util.h
index b965ceb2169cca2bdf48b1eaa916f64d6fb2d141..e133b35ebf742d322ae0006aa64c5ca22cd9be53 100644
--- a/chrome/browser/permissions/permission_util.h
+++ b/chrome/browser/permissions/permission_util.h
@@ -61,6 +61,9 @@ class PermissionUtil {
static bool GetPermissionType(ContentSettingsType type,
content::PermissionType* out);
+ // Checks whether the given ContentSettingsType is a permission.
+ static bool IsPermission(ContentSettingsType type);
dominickn 2017/03/03 03:31:36 Perhaps move this method to the anonymous namespac
Patti Lor 2017/03/03 05:16:32 I used this in website_settings.cc as well D: Wha
+
static bool ShouldShowPersistenceToggle();
// A scoped class that will check the current resolved content setting on
« no previous file with comments | « no previous file | chrome/browser/permissions/permission_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698