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

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: 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/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 34070015a4c2185381c07278f10f9294e3c81b5f..ada2124e556bb91ca40e0776f4c004452be892b0 100644
--- a/chrome/browser/plugins/chrome_plugin_service_filter.cc
+++ b/chrome/browser/plugins/chrome_plugin_service_filter.cc
@@ -76,6 +76,7 @@ class NPAPIRemovalInfoBarDelegate : public ConfirmInfoBarDelegate {
~NPAPIRemovalInfoBarDelegate() override;
// ConfirmInfobarDelegate:
+ std::string GetIdentifier() const override;
int GetIconId() const override;
base::string16 GetMessageText() const override;
int GetButtons() const override;
@@ -150,6 +151,10 @@ NPAPIRemovalInfoBarDelegate::NPAPIRemovalInfoBarDelegate(
NPAPIRemovalInfoBarDelegate::~NPAPIRemovalInfoBarDelegate() {
}
+std::string NPAPIRemovalInfoBarDelegate::GetIdentifier() const {
+ return "NPAPIRemovalInfoBarDelegate";
+}
+
int NPAPIRemovalInfoBarDelegate::GetIconId() const {
return IDR_INFOBAR_WARNING;
}

Powered by Google App Engine
This is Rietveld 408576698