| Index: chrome/browser/ui/browser.cc
|
| diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
|
| index d0422d8185a16d2fc779309d74c415c1f8b021ea..548e7ecf9468e5040efc2a9f7a01daecc91c6d85 100644
|
| --- a/chrome/browser/ui/browser.cc
|
| +++ b/chrome/browser/ui/browser.cc
|
| @@ -3131,7 +3131,7 @@ WebContents* Browser::OpenURLFromTab(WebContents* source,
|
| const OpenURLParams& params) {
|
| browser::NavigateParams nav_params(this, params.url, params.transition);
|
| nav_params.source_contents = GetTabContentsAt(
|
| - tab_strip_model_->GetWrapperIndex(source));
|
| + tab_strip_model_->GetIndexOfWebContents(source));
|
| nav_params.referrer = params.referrer;
|
| nav_params.disposition = params.disposition;
|
| nav_params.tabstrip_add_types = TabStripModel::ADD_NONE;
|
| @@ -3212,7 +3212,7 @@ void Browser::AddNewContents(WebContents* source,
|
|
|
| browser::NavigateParams params(this, new_tab_contents);
|
| params.source_contents = source ?
|
| - GetTabContentsAt(tab_strip_model_->GetWrapperIndex(source)): NULL;
|
| + GetTabContentsAt(tab_strip_model_->GetIndexOfWebContents(source)): NULL;
|
| params.disposition = disposition;
|
| params.window_bounds = initial_pos;
|
| params.window_action = browser::NavigateParams::SHOW_WINDOW;
|
| @@ -3221,7 +3221,7 @@ void Browser::AddNewContents(WebContents* source,
|
| }
|
|
|
| void Browser::ActivateContents(WebContents* contents) {
|
| - ActivateTabAt(tab_strip_model_->GetWrapperIndex(contents), false);
|
| + ActivateTabAt(tab_strip_model_->GetIndexOfWebContents(contents), false);
|
| window_->Activate();
|
| }
|
|
|
| @@ -3268,7 +3268,7 @@ void Browser::CloseContents(WebContents* source) {
|
| return;
|
| }
|
|
|
| - int index = tab_strip_model_->GetWrapperIndex(source);
|
| + int index = tab_strip_model_->GetIndexOfWebContents(source);
|
| if (index == TabStripModel::kNoTab) {
|
| NOTREACHED() << "CloseContents called for tab not in our strip";
|
| return;
|
| @@ -3286,7 +3286,7 @@ void Browser::MoveContents(WebContents* source, const gfx::Rect& pos) {
|
| }
|
|
|
| void Browser::DetachContents(WebContents* source) {
|
| - int index = tab_strip_model_->GetWrapperIndex(source);
|
| + int index = tab_strip_model_->GetIndexOfWebContents(source);
|
| if (index >= 0)
|
| tab_strip_model_->DetachTabContentsAt(index);
|
| }
|
| @@ -3460,7 +3460,7 @@ void Browser::OnStartDownload(WebContents* source,
|
| void Browser::ViewSourceForTab(WebContents* source, const GURL& page_url) {
|
| DCHECK(source);
|
| TabContents* tab_contents = GetTabContentsAt(
|
| - tab_strip_model_->GetWrapperIndex(source));
|
| + tab_strip_model_->GetIndexOfWebContents(source));
|
| ViewSource(tab_contents);
|
| }
|
|
|
| @@ -3469,7 +3469,7 @@ void Browser::ViewSourceForFrame(WebContents* source,
|
| const std::string& frame_content_state) {
|
| DCHECK(source);
|
| TabContents* tab_contents = GetTabContentsAt(
|
| - tab_strip_model_->GetWrapperIndex(source));
|
| + tab_strip_model_->GetIndexOfWebContents(source));
|
| ViewSource(tab_contents, frame_url, frame_content_state);
|
| }
|
|
|
| @@ -4549,7 +4549,7 @@ void Browser::ProcessPendingUIUpdates() {
|
| if (flags &
|
| (content::INVALIDATE_TYPE_TAB | content::INVALIDATE_TYPE_TITLE)) {
|
| tab_strip_model_->UpdateTabContentsStateAt(
|
| - tab_strip_model_->GetWrapperIndex(contents),
|
| + tab_strip_model_->GetIndexOfWebContents(contents),
|
| TabStripModelObserver::ALL);
|
| }
|
|
|
|
|