Index: chrome/browser/permissions/permission_util.cc |
diff --git a/chrome/browser/permissions/permission_util.cc b/chrome/browser/permissions/permission_util.cc |
index 036a156d3d8ff0b11b6e3573450a3172bebc3f73..6ce2f79fc6b9b09f8890160af6ebd6393cbfc3e0 100644 |
--- a/chrome/browser/permissions/permission_util.cc |
+++ b/chrome/browser/permissions/permission_util.cc |
@@ -4,9 +4,11 @@ |
#include "chrome/browser/permissions/permission_util.h" |
+#include "base/feature_list.h" |
#include "base/logging.h" |
#include "chrome/browser/content_settings/host_content_settings_map_factory.h" |
#include "chrome/browser/permissions/permission_uma_util.h" |
+#include "chrome/common/chrome_features.h" |
#include "components/content_settings/core/browser/host_content_settings_map.h" |
#include "content/public/browser/permission_type.h" |
@@ -76,6 +78,11 @@ bool PermissionUtil::GetPermissionType(ContentSettingsType type, |
return true; |
} |
+bool PermissionUtil::ShouldShowPersistenceToggle() { |
+ return base::FeatureList::IsEnabled( |
+ features::kDisplayPersistenceToggleInPermissionPrompts); |
+} |
+ |
PermissionUtil::ScopedRevocationReporter::ScopedRevocationReporter( |
Profile* profile, |
const GURL& primary_url, |