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

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

Issue 1843063002: Don't show scheme in permission prompts if it is HTTPS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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 d39d3c7e13fe0ea4bcc444fd9d5679d85e5a30e9..1daeccdb60e9d9728fcd6e704c3f2ed4b383a9da 100644
--- a/chrome/browser/permissions/permission_infobar_delegate.h
+++ b/chrome/browser/permissions/permission_infobar_delegate.h
@@ -31,12 +31,15 @@ class PermissionInfobarDelegate : public ConfirmInfoBarDelegate {
const PermissionSetCallback& callback);
~PermissionInfobarDelegate() override;
+ virtual int GetMessageResourceId() const = 0;
+
private:
// ConfirmInfoBarDelegate:
Type GetInfoBarType() const override;
void InfoBarDismissed() override;
PermissionInfobarDelegate* AsPermissionInfobarDelegate() override;
base::string16 GetButtonLabel(InfoBarButton button) const override;
+ base::string16 GetMessageText() const override;
bool Accept() override;
bool Cancel() override;

Powered by Google App Engine
This is Rietveld 408576698