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

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

Issue 2254763002: Enable the optional permission prompt persistence toggle on grouped infobars (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permission-infobardelegate-clean
Patch Set: DCHECK -> CHECK Created 4 years, 3 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/permissions/grouped_permission_infobar_delegate.h
diff --git a/chrome/browser/permissions/grouped_permission_infobar_delegate.h b/chrome/browser/permissions/grouped_permission_infobar_delegate.h
index f0a22ced3e5f36a28108eeb6af278b9dcfd82d44..70dc48d5dbf3c514d40cca8242c8411a79097512 100644
--- a/chrome/browser/permissions/grouped_permission_infobar_delegate.h
+++ b/chrome/browser/permissions/grouped_permission_infobar_delegate.h
@@ -33,6 +33,10 @@ class GroupedPermissionInfoBarDelegate : public ConfirmInfoBarDelegate {
const std::vector<ContentSettingsType>& types);
~GroupedPermissionInfoBarDelegate() override;
+ bool ShouldShowPersistenceToggle() const;
+ bool persist() const { return persist_; }
+ void set_persist(bool persist) { persist_ = persist; }
+
base::string16 GetMessageText() const override;
int GetPermissionCount() const;
@@ -57,6 +61,7 @@ class GroupedPermissionInfoBarDelegate : public ConfirmInfoBarDelegate {
const GURL requesting_origin_;
const std::vector<ContentSettingsType> types_;
std::vector<bool> accept_states_;
+ bool persist_;
DISALLOW_COPY_AND_ASSIGN(GroupedPermissionInfoBarDelegate);
};

Powered by Google App Engine
This is Rietveld 408576698