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

Unified Diff: chrome/browser/chrome_quota_permission_context.cc

Issue 1520543004: Add method for identifying different InfoBars (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit again Created 5 years 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/chrome_quota_permission_context.cc
diff --git a/chrome/browser/chrome_quota_permission_context.cc b/chrome/browser/chrome_quota_permission_context.cc
index f90279d5eda152f25563cdf5d8b6ec95c9a62798..95b3b0238086e2e391d8f1ec83a2e93919987cd4 100644
--- a/chrome/browser/chrome_quota_permission_context.cc
+++ b/chrome/browser/chrome_quota_permission_context.cc
@@ -172,6 +172,7 @@ class RequestQuotaInfoBarDelegate : public ConfirmInfoBarDelegate {
~RequestQuotaInfoBarDelegate() override;
// ConfirmInfoBarDelegate:
+ infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override;
base::string16 GetMessageText() const override;
bool Accept() override;
bool Cancel() override;
@@ -219,6 +220,11 @@ RequestQuotaInfoBarDelegate::~RequestQuotaInfoBarDelegate() {
}
}
+infobars::InfoBarDelegate::InfoBarIdentifier
+RequestQuotaInfoBarDelegate::GetIdentifier() const {
+ return REQUEST_QUOTA_INFOBAR_DELEGATE;
+}
+
base::string16 RequestQuotaInfoBarDelegate::GetMessageText() const {
// If the site requested larger quota than this threshold, show a different
// message to the user.
« no previous file with comments | « chrome/browser/banners/app_banner_infobar_delegate_desktop.cc ('k') | chrome/browser/devtools/devtools_ui_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698