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

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: 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/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 704ff3ce1157290763cfc5667d5289eb0acfb8f3..3d49eb161ed5da2e27057c79de3d04e0afe96302 100644
--- a/chrome/browser/ui/extensions/extension_install_ui_default.cc
+++ b/chrome/browser/ui/extensions/extension_install_ui_default.cc
@@ -86,6 +86,7 @@ class ErrorInfoBarDelegate : public ConfirmInfoBarDelegate {
~ErrorInfoBarDelegate() override;
// ConfirmInfoBarDelegate:
+ infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override;
base::string16 GetMessageText() const override;
int GetButtons() const override;
base::string16 GetLinkText() const override;
@@ -111,6 +112,11 @@ ErrorInfoBarDelegate::ErrorInfoBarDelegate(
ErrorInfoBarDelegate::~ErrorInfoBarDelegate() {
}
+infobars::InfoBarDelegate::InfoBarIdentifier
+ErrorInfoBarDelegate::GetIdentifier() const {
+ return INSTALLATION_ERROR_INFOBAR_DELEGATE_ID;
+}
+
base::string16 ErrorInfoBarDelegate::GetMessageText() const {
return error_.message();
}

Powered by Google App Engine
This is Rietveld 408576698