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

Unified Diff: chrome/common/temp_scaffolding_stubs.cc

Issue 93129: Initial download shelf on OS X.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: fix download_uitest Created 11 years, 6 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
« no previous file with comments | « chrome/common/temp_scaffolding_stubs.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/temp_scaffolding_stubs.cc
===================================================================
--- chrome/common/temp_scaffolding_stubs.cc (revision 18653)
+++ chrome/common/temp_scaffolding_stubs.cc (working copy)
@@ -257,11 +257,23 @@
}
#endif
+// This should prompt the user if she wants to allow more than one concurrent
+// download per tab. Until this is in place, always allow multiple downloads.
+class DownloadRequestDialogDelegateStub
+ : public DownloadRequestDialogDelegate {
+ public:
+ explicit DownloadRequestDialogDelegateStub(
+ DownloadRequestManager::TabDownloadState* host)
+ : DownloadRequestDialogDelegate(host) { DoAccept(); }
+
+ virtual void CloseWindow() {}
+};
+
DownloadRequestDialogDelegate* DownloadRequestDialogDelegate::Create(
TabContents* tab,
DownloadRequestManager::TabDownloadState* host) {
NOTIMPLEMENTED();
- return NULL;
+ return new DownloadRequestDialogDelegateStub(host);
}
#if !defined(TOOLKIT_VIEWS)
« no previous file with comments | « chrome/common/temp_scaffolding_stubs.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698