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

Unified Diff: chrome/browser/download/chrome_download_manager_delegate.cc

Issue 580043002: [Android] Prompt with infobar on filename conflict (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed ted's comments Created 6 years, 2 months 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/chrome_download_manager_delegate.cc
diff --git a/chrome/browser/download/chrome_download_manager_delegate.cc b/chrome/browser/download/chrome_download_manager_delegate.cc
index 67bf169c9a22414225b88cba616c557718677710..946da1ad82184f6179a35fdc5cd2a94eee59b097 100644
--- a/chrome/browser/download/chrome_download_manager_delegate.cc
+++ b/chrome/browser/download/chrome_download_manager_delegate.cc
@@ -50,6 +50,10 @@
#include "net/base/filename_util.h"
#include "net/base/mime_util.h"
+#if defined(OS_ANDROID)
+#include "chrome/browser/android/download_overwrite_infobar_delegate.h"
+#endif
+
#if defined(OS_CHROMEOS)
#include "chrome/browser/chromeos/drive/download_handler.h"
#include "chrome/browser/chromeos/drive/file_system_util.h"
@@ -565,7 +569,12 @@ void ChromeDownloadManagerDelegate::PromptUserForDownloadPath(
const base::FilePath& suggested_path,
const DownloadTargetDeterminerDelegate::FileSelectedCallback& callback) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+#if defined(OS_ANDROID)
+ chrome::android::DownloadOverwriteInfoBarDelegate::Create(
+ download, suggested_path, callback);
+#else
DownloadFilePicker::ShowFilePicker(download, suggested_path, callback);
+#endif
}
void ChromeDownloadManagerDelegate::DetermineLocalPath(

Powered by Google App Engine
This is Rietveld 408576698