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

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

Issue 2415863002: Use PermissionType instead of ContentSettingsType in Android permission infobars (Closed)
Patch Set: Merge branch 'master' into use_permission_type_for_infobar Created 4 years, 2 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_android.h
diff --git a/chrome/browser/permissions/grouped_permission_infobar_delegate_android.h b/chrome/browser/permissions/grouped_permission_infobar_delegate_android.h
index 7e48c6c77705da0f942c444cf509f64c377a01eb..53ae6b5bba1f20346694fda9ba9d36a6b5183789 100644
--- a/chrome/browser/permissions/grouped_permission_infobar_delegate_android.h
+++ b/chrome/browser/permissions/grouped_permission_infobar_delegate_android.h
@@ -14,6 +14,10 @@
class GURL;
class InfoBarService;
+namespace content {
+enum class PermissionType;
+} // namespace content
+
// An InfoBar that displays a group of permission requests, each of which can be
// allowed or blocked independently.
// TODO(tsergeant): Expand this class so it can be used without subclassing.
@@ -35,7 +39,7 @@ class GroupedPermissionInfoBarDelegate : public ConfirmInfoBarDelegate {
// opt-out of persisting their accept/deny decision.
bool ShouldShowPersistenceToggle() const;
- ContentSettingsType GetContentSettingType(size_t position) const;
+ content::PermissionType GetPermissionType(size_t position) const;
int GetIconIdForPermission(size_t position) const;
// Message text to display for an individual permission at |position|.

Powered by Google App Engine
This is Rietveld 408576698