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

Unified Diff: components/translate/core/browser/translate_infobar_delegate.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: components/translate/core/browser/translate_infobar_delegate.cc
diff --git a/components/translate/core/browser/translate_infobar_delegate.cc b/components/translate/core/browser/translate_infobar_delegate.cc
index c8fd02d34b94063f44df0ef9bda90a7576d654b2..9f428a73b7cc8e121009562432e7b8ebcf2a10b1 100644
--- a/components/translate/core/browser/translate_infobar_delegate.cc
+++ b/components/translate/core/browser/translate_infobar_delegate.cc
@@ -51,6 +51,11 @@ const size_t TranslateInfoBarDelegate::kNoIndex = TranslateUIDelegate::kNoIndex;
TranslateInfoBarDelegate::~TranslateInfoBarDelegate() {
}
+infobars::InfoBarDelegate::InfoBarIdentifier
+TranslateInfoBarDelegate::GetIdentifier() const {
+ return TRANSLATE_INFOBAR_DELEGATE;
+}
+
// static
void TranslateInfoBarDelegate::Create(
bool replace_existing_infobar,

Powered by Google App Engine
This is Rietveld 408576698