summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser.cc
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-15 03:25:11 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-15 03:25:11 +0000
commit7f0005ab19ca4e374029180753c32e4c9813303a (patch)
treef36e756a90ff4324530789c89aef6a2e2f3573b5 /chrome/browser/browser.cc
parentb237407befc41c3a19c7519523b102808213b49b (diff)
downloadchromium_src-7f0005ab19ca4e374029180753c32e4c9813303a.zip
chromium_src-7f0005ab19ca4e374029180753c32e4c9813303a.tar.gz
chromium_src-7f0005ab19ca4e374029180753c32e4c9813303a.tar.bz2
Remove TabContentsType from the NavigationController external interface and in
some related areas. I removed all uses of this in the previous patch. Review URL: http://codereview.chromium.org/73057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13730 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser.cc')
-rw-r--r--chrome/browser/browser.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc
index bb3a4ea..9609a0b 100644
--- a/chrome/browser/browser.cc
+++ b/chrome/browser/browser.cc
@@ -540,7 +540,7 @@ TabContents* Browser::AddTabWithURL(
TabContents* Browser::AddTabWithNavigationController(
NavigationController* ctrl, PageTransition::Type type) {
- TabContents* tc = ctrl->active_contents();
+ TabContents* tc = ctrl->tab_contents();
tabstrip_model_.AddTabContents(tc, -1, type, true);
return tc;
}
@@ -555,7 +555,7 @@ NavigationController* Browser::AddRestoredTab(
tabstrip_model_.InsertTabContentsAt(
tab_index,
- restored_controller->active_contents(),
+ restored_controller->tab_contents(),
select, false);
if (profile_->HasSessionService()) {
SessionService* session_service = profile_->GetSessionService();
@@ -618,7 +618,7 @@ void Browser::GoBack(WindowOpenDisposition disposition) {
if (disposition == NEW_FOREGROUND_TAB || disposition == NEW_BACKGROUND_TAB){
controller = GetSelectedTabContents()->controller()->Clone();
tabstrip_model_.AddTabContents(
- controller->active_contents(), -1,
+ controller->tab_contents(), -1,
PageTransition::LINK, disposition == NEW_FOREGROUND_TAB);
} else {
// Default disposition is CURRENT_TAB.
@@ -635,7 +635,7 @@ void Browser::GoForward(WindowOpenDisposition disp) {
if (disp == NEW_FOREGROUND_TAB || disp == NEW_BACKGROUND_TAB) {
controller = GetSelectedTabContents()->controller()->Clone();
tabstrip_model_.AddTabContents(
- controller->active_contents(), -1,
+ controller->tab_contents(), -1,
PageTransition::LINK, disp == NEW_FOREGROUND_TAB);
} else {
// Default disposition is CURRENT_TAB.
@@ -1408,7 +1408,7 @@ bool Browser::CanDuplicateContentsAt(int index) {
DCHECK(contents);
NavigationController* nc = contents->controller();
- return nc ? (nc->active_contents() && nc->GetLastCommittedEntry()) : false;
+ return nc ? (nc->tab_contents() && nc->GetLastCommittedEntry()) : false;
}
void Browser::DuplicateContentsAt(int index) {
@@ -1419,7 +1419,7 @@ void Browser::DuplicateContentsAt(int index) {
if (type_ == TYPE_NORMAL) {
// If this is a tabbed browser, just create a duplicate tab inside the same
// window next to the tab being duplicated.
- new_contents = contents->controller()->Clone()->active_contents();
+ new_contents = contents->controller()->Clone()->tab_contents();
// If you duplicate a tab that is not selected, we need to make sure to
// select the tab being duplicated so that DetermineInsertionIndex returns
// the right index (if tab 5 is selected and we right-click tab 1 we want
@@ -1714,7 +1714,7 @@ void Browser::OpenURLFromTab(TabContents* source,
controller->LoadURL(url, referrer, transition);
// If the TabContents type has been swapped, we need to point to the current
// active type otherwise there will be weirdness.
- new_contents = controller->active_contents();
+ new_contents = controller->tab_contents();
if (GetStatusBubble())
GetStatusBubble()->Hide();