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

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

Issue 2069343002: Pass profile to PermissionUmaUtil::PermissionIgnored (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@add-hooks-to-permission-layer
Patch Set: merge Created 4 years, 5 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/permission_infobar_delegate.h
diff --git a/chrome/browser/permissions/permission_infobar_delegate.h b/chrome/browser/permissions/permission_infobar_delegate.h
index 1daeccdb60e9d9728fcd6e704c3f2ed4b383a9da..086cde7a7575eeb73fcfb33e01caa6e4911620d8 100644
--- a/chrome/browser/permissions/permission_infobar_delegate.h
+++ b/chrome/browser/permissions/permission_infobar_delegate.h
@@ -13,6 +13,7 @@
#include "content/public/browser/web_contents.h"
class NavigationDetails;
+class Profile;
// Base class for permission infobars, it implements the default behavior
// so that the accept/deny buttons grant/deny the relevant permission.
@@ -28,6 +29,7 @@ class PermissionInfobarDelegate : public ConfirmInfoBarDelegate {
PermissionInfobarDelegate(const GURL& requesting_origin,
content::PermissionType permission_type,
ContentSettingsType content_settings_type,
+ Profile* profile,
const PermissionSetCallback& callback);
~PermissionInfobarDelegate() override;
@@ -49,6 +51,7 @@ class PermissionInfobarDelegate : public ConfirmInfoBarDelegate {
bool action_taken_;
content::PermissionType permission_type_;
ContentSettingsType content_settings_type_;
+ Profile* const profile_;
const PermissionSetCallback callback_;
DISALLOW_COPY_AND_ASSIGN(PermissionInfobarDelegate);
« no previous file with comments | « chrome/browser/permissions/permission_context_base.cc ('k') | chrome/browser/permissions/permission_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698