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

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: 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/plugin_infobar_delegates.cc
diff --git a/chrome/browser/plugins/plugin_infobar_delegates.cc b/chrome/browser/plugins/plugin_infobar_delegates.cc
index 92b4640208b4bcb1abe8397e4fef1407d5fab55e..cde762704563026b21c07f06fc7797121e892201 100644
--- a/chrome/browser/plugins/plugin_infobar_delegates.cc
+++ b/chrome/browser/plugins/plugin_infobar_delegates.cc
@@ -102,6 +102,10 @@ OutdatedPluginInfoBarDelegate::~OutdatedPluginInfoBarDelegate() {
content::RecordAction(UserMetricsAction("OutdatedPluginInfobar.Closed"));
}
+std::string OutdatedPluginInfoBarDelegate::GetIdentifier() const {
+ return "OutdatedPluginInfoBarDelegate";
+}
+
void OutdatedPluginInfoBarDelegate::InfoBarDismissed() {
content::RecordAction(UserMetricsAction("OutdatedPluginInfobar.Dismissed"));
}
@@ -233,6 +237,10 @@ PluginMetroModeInfoBarDelegate::PluginMetroModeInfoBarDelegate(
PluginMetroModeInfoBarDelegate::~PluginMetroModeInfoBarDelegate() {
}
+std::string PluginMetroModeInfoBarDelegate::GetIdentifier() const {
+ return "PluginMetroModeInfoBarDelegate";
+}
+
int PluginMetroModeInfoBarDelegate::GetIconId() const {
return IDR_INFOBAR_PLUGIN_INSTALL;
}

Powered by Google App Engine
This is Rietveld 408576698