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

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

Issue 8956050: Rename TabContents::controller() to GetController and put it into the WebContents interface. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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/browser/debugger/devtools_window.cc ('k') | chrome/browser/errorpage_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() %
« no previous file with comments | « chrome/browser/debugger/devtools_window.cc ('k') | chrome/browser/errorpage_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698