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

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: Rebasing 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 86e836882179e8e34c6565149d8c614c7186e6d6..8f13e0a51beabab0735e209f38a4c1589b84b021 100644
--- a/chrome/browser/chrome_quota_permission_context.cc
+++ b/chrome/browser/chrome_quota_permission_context.cc
@@ -168,6 +168,7 @@ class RequestQuotaInfoBarDelegate : public ConfirmInfoBarDelegate {
~RequestQuotaInfoBarDelegate() override;
// ConfirmInfoBarDelegate:
+ std::string GetIdentifier() const override;
base::string16 GetMessageText() const override;
bool Accept() override;
bool Cancel() override;
@@ -216,6 +217,10 @@ RequestQuotaInfoBarDelegate::~RequestQuotaInfoBarDelegate() {
}
}
+std::string RequestQuotaInfoBarDelegate::GetIdentifier() const {
+ return "RequestQuotaInfoBarDelegate";
+}
+
base::string16 RequestQuotaInfoBarDelegate::GetMessageText() const {
// If the site requested larger quota than this threshold, show a different
// message to the user.

Powered by Google App Engine
This is Rietveld 408576698