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

Unified Diff: chrome/browser/plugins/plugin_infobar_delegates.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/plugins/plugin_infobar_delegates.cc
diff --git a/chrome/browser/plugins/plugin_infobar_delegates.cc b/chrome/browser/plugins/plugin_infobar_delegates.cc
index 80cb2ebcbf58d20c8d245447e4835f6c353e693a..b26f85fd0573584157f846ab8ee2bfe1735b855c 100644
--- a/chrome/browser/plugins/plugin_infobar_delegates.cc
+++ b/chrome/browser/plugins/plugin_infobar_delegates.cc
@@ -103,6 +103,11 @@ OutdatedPluginInfoBarDelegate::~OutdatedPluginInfoBarDelegate() {
content::RecordAction(UserMetricsAction("OutdatedPluginInfobar.Closed"));
}
+infobars::InfoBarDelegate::InfoBarIdentifier
+OutdatedPluginInfoBarDelegate::GetIdentifier() const {
+ return OUTDATED_PLUGIN_INFOBAR_DELEGATE_ID;
+}
+
void OutdatedPluginInfoBarDelegate::InfoBarDismissed() {
content::RecordAction(UserMetricsAction("OutdatedPluginInfobar.Dismissed"));
}
@@ -234,6 +239,11 @@ PluginMetroModeInfoBarDelegate::PluginMetroModeInfoBarDelegate(
PluginMetroModeInfoBarDelegate::~PluginMetroModeInfoBarDelegate() {
}
+infobars::InfoBarDelegate::InfoBarIdentifier
+PluginMetroModeInfoBarDelegate::GetIdentifier() const {
+ return PLUGIN_METRO_MODE_INFOBAR_DELEGATE_ID;
+}
+
int PluginMetroModeInfoBarDelegate::GetIconId() const {
return IDR_INFOBAR_PLUGIN_INSTALL;
}

Powered by Google App Engine
This is Rietveld 408576698