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

Unified Diff: chrome/browser/plugins/chrome_plugin_service_filter.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/plugins/chrome_plugin_service_filter.cc
diff --git a/chrome/browser/plugins/chrome_plugin_service_filter.cc b/chrome/browser/plugins/chrome_plugin_service_filter.cc
index 6fc88d83df9d295d226dd6b22d74ad6777e39b53..fd1fa5160ec5cfea62a1defd133dded36e84f785 100644
--- a/chrome/browser/plugins/chrome_plugin_service_filter.cc
+++ b/chrome/browser/plugins/chrome_plugin_service_filter.cc
@@ -77,6 +77,7 @@ class NPAPIRemovalInfoBarDelegate : public ConfirmInfoBarDelegate {
~NPAPIRemovalInfoBarDelegate() override;
// ConfirmInfobarDelegate:
+ infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override;
int GetIconId() const override;
base::string16 GetMessageText() const override;
int GetButtons() const override;
@@ -151,6 +152,11 @@ NPAPIRemovalInfoBarDelegate::NPAPIRemovalInfoBarDelegate(
NPAPIRemovalInfoBarDelegate::~NPAPIRemovalInfoBarDelegate() {
}
+infobars::InfoBarDelegate::InfoBarIdentifier
+NPAPIRemovalInfoBarDelegate::GetIdentifier() const {
+ return NPAPI_REMOVAL_INFOBAR_DELEGATE;
+}
+
int NPAPIRemovalInfoBarDelegate::GetIconId() const {
return IDR_INFOBAR_WARNING;
}

Powered by Google App Engine
This is Rietveld 408576698