| Index: chrome/browser/download/download_request_limiter.cc
|
| ===================================================================
|
| --- chrome/browser/download/download_request_limiter.cc (revision 85514)
|
| +++ chrome/browser/download/download_request_limiter.cc (working copy)
|
| @@ -12,8 +12,6 @@
|
| #include "content/browser/tab_contents/navigation_entry.h"
|
| #include "content/browser/tab_contents/tab_contents.h"
|
| #include "content/browser/tab_contents/tab_contents_delegate.h"
|
| -#include "chrome/browser/ui/download/download_tab_helper.h"
|
| -#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
|
| #include "content/common/notification_source.h"
|
|
|
| // TabDownloadState ------------------------------------------------------------
|
| @@ -258,9 +256,7 @@
|
| // FYI: Chrome Frame overrides CanDownload in ExternalTabContainer in order
|
| // to cancel the download operation in chrome and let the host browser
|
| // take care of it.
|
| - TabContentsWrapper* wrapper =
|
| - TabContentsWrapper::GetCurrentWrapperForContents(originating_tab);
|
| - if (!wrapper->download_tab_helper()->CanDownload(request_id)) {
|
| + if (!originating_tab->CanDownload(request_id)) {
|
| ScheduleNotification(callback, false);
|
| return;
|
| }
|
|
|