Index: chrome/browser/download/download_request_limiter.cc |
=================================================================== |
--- chrome/browser/download/download_request_limiter.cc (revision 115228) |
+++ chrome/browser/download/download_request_limiter.cc (working copy) |
@@ -195,7 +195,7 @@ |
DownloadRequestLimiter::DownloadStatus |
DownloadRequestLimiter::GetDownloadStatus(TabContents* tab) { |
- TabDownloadState* state = GetDownloadState(&tab->controller(), NULL, false); |
+ TabDownloadState* state = GetDownloadState(&tab->GetController(), NULL, false); |
return state ? state->download_status() : ALLOW_ONE_DOWNLOAD; |
} |
@@ -213,7 +213,8 @@ |
} |
void DownloadRequestLimiter::OnUserGesture(TabContents* tab) { |
- TabDownloadState* state = GetDownloadState(&tab->controller(), NULL, false); |
+ TabDownloadState* state = |
+ GetDownloadState(&tab->GetController(), NULL, false); |
if (!state) |
return; |
@@ -286,8 +287,8 @@ |
} |
TabDownloadState* state = GetDownloadState( |
- &effective_wrapper->tab_contents()->controller(), |
- &originating_tab->tab_contents()->controller(), true); |
+ &effective_wrapper->tab_contents()->GetController(), |
+ &originating_tab->tab_contents()->GetController(), true); |
switch (state->download_status()) { |
case ALLOW_ALL_DOWNLOADS: |
if (state->download_count() && !(state->download_count() % |