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

Unified Diff: chrome/browser/devtools/global_confirm_info_bar.cc

Issue 1520543004: Add method for identifying different InfoBars (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missed a spot. 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/devtools/global_confirm_info_bar.cc
diff --git a/chrome/browser/devtools/global_confirm_info_bar.cc b/chrome/browser/devtools/global_confirm_info_bar.cc
index 1a88612b17337d43cf6cdce75c20b02f568afefb..5139147cae855edd6a854d0341f909f06be17376 100644
--- a/chrome/browser/devtools/global_confirm_info_bar.cc
+++ b/chrome/browser/devtools/global_confirm_info_bar.cc
@@ -25,6 +25,7 @@ class GlobalConfirmInfoBar::DelegateProxy : public ConfirmInfoBarDelegate {
friend class GlobalConfirmInfoBar;
// ConfirmInfoBarDelegate overrides
+ infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override;
base::string16 GetMessageText() const override;
int GetButtons() const override;
base::string16 GetButtonLabel(InfoBarButton button) const override;
@@ -51,6 +52,12 @@ GlobalConfirmInfoBar::DelegateProxy::DelegateProxy(
GlobalConfirmInfoBar::DelegateProxy::~DelegateProxy() {
}
+infobars::InfoBarDelegate::InfoBarIdentifier
+GlobalConfirmInfoBar::DelegateProxy::GetIdentifier() const {
+ return global_info_bar_ ? global_info_bar_->delegate_->GetIdentifier()
+ : INVALID_ID;
Peter Kasting 2015/12/30 01:52:57 Uggghhhh. This really shouldn't be needed; I don'
gone 2015/12/30 07:29:03 Yeah, when I hit this I was a bit confused about w
+}
+
base::string16 GlobalConfirmInfoBar::DelegateProxy::GetMessageText() const {
return global_info_bar_ ? global_info_bar_->delegate_->GetMessageText()
: base::string16();

Powered by Google App Engine
This is Rietveld 408576698