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

Unified Diff: chrome/browser/download/download_request_infobar_delegate_android.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/download/download_request_infobar_delegate_android.cc
diff --git a/chrome/browser/download/download_request_infobar_delegate_android.cc b/chrome/browser/download/download_request_infobar_delegate_android.cc
index 8f6e557032fc80485aee1876899e1e5e9075568d..dc8265ed20716c33627c4643fbbc1811b7ecd6df 100644
--- a/chrome/browser/download/download_request_infobar_delegate_android.cc
+++ b/chrome/browser/download/download_request_infobar_delegate_android.cc
@@ -54,6 +54,11 @@ DownloadRequestInfoBarDelegateAndroid::DownloadRequestInfoBarDelegateAndroid(
base::WeakPtr<DownloadRequestLimiter::TabDownloadState> host)
: ConfirmInfoBarDelegate(), responded_(false), host_(host) {}
+infobars::InfoBarDelegate::InfoBarIdentifier
+DownloadRequestInfoBarDelegateAndroid::GetIdentifier() const {
+ return DOWNLOAD_REQUEST_INFOBAR_DELEGATE_ANDROID;
+}
+
int DownloadRequestInfoBarDelegateAndroid::GetIconId() const {
return IDR_INFOBAR_MULTIPLE_DOWNLOADS;
}

Powered by Google App Engine
This is Rietveld 408576698