| 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)
|
|
|