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

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: 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
« no previous file with comments | « chrome/browser/plugins/plugin_infobar_delegates.h ('k') | chrome/browser/plugins/plugin_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..35fb5ff371df55f5aed2d2c3d29e2496916628b9 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;
+}
+
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;
+}
+
int PluginMetroModeInfoBarDelegate::GetIconId() const {
return IDR_INFOBAR_PLUGIN_INSTALL;
}
« no previous file with comments | « chrome/browser/plugins/plugin_infobar_delegates.h ('k') | chrome/browser/plugins/plugin_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698