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

Unified Diff: chrome/browser/ui/extensions/extension_install_ui_default.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/ui/extensions/extension_install_ui_default.cc
diff --git a/chrome/browser/ui/extensions/extension_install_ui_default.cc b/chrome/browser/ui/extensions/extension_install_ui_default.cc
index 93071d4e9ac2206a65e880b0761550b678d50dba..8a470fe1228522e7f133797015eab6e7277c474e 100644
--- a/chrome/browser/ui/extensions/extension_install_ui_default.cc
+++ b/chrome/browser/ui/extensions/extension_install_ui_default.cc
@@ -84,6 +84,7 @@ class ErrorInfoBarDelegate : public ConfirmInfoBarDelegate {
~ErrorInfoBarDelegate() override;
// ConfirmInfoBarDelegate:
+ std::string GetIdentifier() const override;
base::string16 GetMessageText() const override;
int GetButtons() const override;
base::string16 GetLinkText() const override;
@@ -109,6 +110,10 @@ ErrorInfoBarDelegate::ErrorInfoBarDelegate(
ErrorInfoBarDelegate::~ErrorInfoBarDelegate() {
}
+std::string ErrorInfoBarDelegate::GetIdentifier() const {
+ return "ErrorInfoBarDelegate";
+}
+
base::string16 ErrorInfoBarDelegate::GetMessageText() const {
return error_.message();
}

Powered by Google App Engine
This is Rietveld 408576698