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

Unified Diff: chrome/browser/android/download/android_download_manager_overwrite_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: chrome/browser/android/download/android_download_manager_overwrite_infobar_delegate.cc
diff --git a/chrome/browser/android/download/android_download_manager_overwrite_infobar_delegate.cc b/chrome/browser/android/download/android_download_manager_overwrite_infobar_delegate.cc
index 5bb6bf1e09e13a36055bafe9cfeea9e39709793b..090306ccb87168279a41f2edd49eb4e7e73a699e 100644
--- a/chrome/browser/android/download/android_download_manager_overwrite_infobar_delegate.cc
+++ b/chrome/browser/android/download/android_download_manager_overwrite_infobar_delegate.cc
@@ -53,6 +53,11 @@ AndroidDownloadManagerOverwriteInfoBarDelegate::
download_info_.Reset(env, download_info);
}
+infobars::InfoBarDelegate::InfoBarIdentifier
+AndroidDownloadManagerOverwriteInfoBarDelegate::GetIdentifier() const {
+ return ANDROID_DOWNLOAD_MANAGER_OVERWRITE_INFOBAR_DELEGATE;
+}
+
bool AndroidDownloadManagerOverwriteInfoBarDelegate::OverwriteExistingFile() {
bool tab_closed = ChromeDownloadDelegate::EnqueueDownloadManagerRequest(
chrome_download_delegate_.obj(), true, download_info_.obj());

Powered by Google App Engine
This is Rietveld 408576698