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

Unified Diff: chrome/browser/ui/hung_plugin_tab_helper.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/ui/hung_plugin_tab_helper.cc
diff --git a/chrome/browser/ui/hung_plugin_tab_helper.cc b/chrome/browser/ui/hung_plugin_tab_helper.cc
index 3da82e5846a04575d94b8b2754cdad4b54a24143..50d43242dd9e5e0115480ab345ec509891d11244 100644
--- a/chrome/browser/ui/hung_plugin_tab_helper.cc
+++ b/chrome/browser/ui/hung_plugin_tab_helper.cc
@@ -147,6 +147,7 @@ class HungPluginInfoBarDelegate : public ConfirmInfoBarDelegate {
~HungPluginInfoBarDelegate() override;
// ConfirmInfoBarDelegate:
+ infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override;
int GetIconId() const override;
base::string16 GetMessageText() const override;
int GetButtons() const override;
@@ -187,6 +188,11 @@ HungPluginInfoBarDelegate::HungPluginInfoBarDelegate(
HungPluginInfoBarDelegate::~HungPluginInfoBarDelegate() {
}
+infobars::InfoBarDelegate::InfoBarIdentifier
+HungPluginInfoBarDelegate::GetIdentifier() const {
+ return HUNG_PLUGIN_INFOBAR_DELEGATE;
+}
+
int HungPluginInfoBarDelegate::GetIconId() const {
return IDR_INFOBAR_PLUGIN_CRASHED;
}

Powered by Google App Engine
This is Rietveld 408576698