summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/browser_tab_restore_service_delegate.cc
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-03 05:53:20 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-03 05:53:20 +0000
commit4ca153033f022dc6e11d6094daed41b1ed0a995f (patch)
treef4720517b10953166f84707ca3ec8b82de860884 /chrome/browser/ui/browser_tab_restore_service_delegate.cc
parent08bd3d71d969061b1588e6a4210f6d74b0ec0c6d (diff)
downloadchromium_src-4ca153033f022dc6e11d6094daed41b1ed0a995f.zip
chromium_src-4ca153033f022dc6e11d6094daed41b1ed0a995f.tar.gz
chromium_src-4ca153033f022dc6e11d6094daed41b1ed0a995f.tar.bz2
Replace most of Browser::GetSelectedTabContents calls into Browser::GetSelectedWebContents. I've converted the easy ones, I'll do the ones with more dependencies in a separate change to keep things trivial to review.
I considered taking out GetSelectedTabContents altogether and having people just use GetSelectedTabContentsWrapper()->web_contents() per the existing comment in browser.h, but there are a lot of callers and it seemed too long to type. BUG=98716 TBR=joi Review URL: http://codereview.chromium.org/9015022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116122 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/browser_tab_restore_service_delegate.cc')
-rw-r--r--chrome/browser/ui/browser_tab_restore_service_delegate.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/ui/browser_tab_restore_service_delegate.cc b/chrome/browser/ui/browser_tab_restore_service_delegate.cc
index 5644175..2a64ba5 100644
--- a/chrome/browser/ui/browser_tab_restore_service_delegate.cc
+++ b/chrome/browser/ui/browser_tab_restore_service_delegate.cc
@@ -9,6 +9,8 @@
#include "chrome/browser/ui/browser_window.h"
#include "content/browser/tab_contents/navigation_controller.h"
+using content::WebContents;
+
void BrowserTabRestoreServiceDelegate::ShowBrowserWindow() {
browser_->window()->Show();
}
@@ -30,8 +32,8 @@ TabContents* BrowserTabRestoreServiceDelegate::GetTabContentsAt(
return browser_->GetTabContentsAt(index);
}
-TabContents* BrowserTabRestoreServiceDelegate::GetSelectedTabContents() const {
- return browser_->GetSelectedTabContents();
+WebContents* BrowserTabRestoreServiceDelegate::GetSelectedWebContents() const {
+ return browser_->GetSelectedWebContents();
}
bool BrowserTabRestoreServiceDelegate::IsTabPinned(int index) const {