| Index: chrome/browser/extensions/extension_tabs_module.cc
|
| diff --git a/chrome/browser/extensions/extension_tabs_module.cc b/chrome/browser/extensions/extension_tabs_module.cc
|
| index 1c185e2776f77e0149b4d271a82b9f4cfa2bdbfb..8ef378d26f92a6c21daa997516044c64ff3d6bba 100644
|
| --- a/chrome/browser/extensions/extension_tabs_module.cc
|
| +++ b/chrome/browser/extensions/extension_tabs_module.cc
|
| @@ -685,7 +685,7 @@ bool GetSelectedTabFunction::RunImpl() {
|
| return false;
|
|
|
| TabStripModel* tab_strip = browser->tabstrip_model();
|
| - TabContentsWrapper* contents = tab_strip->GetSelectedTabContents();
|
| + TabContentsWrapper* contents = tab_strip->GetActiveTabContents();
|
| if (!contents) {
|
| error_ = keys::kNoSelectedTabError;
|
| return false;
|
| @@ -936,7 +936,7 @@ bool UpdateTabFunction::RunImpl() {
|
| if (selected) {
|
| if (tab_strip->active_index() != tab_index) {
|
| tab_strip->ActivateTabAt(tab_index, false);
|
| - DCHECK_EQ(contents, tab_strip->GetSelectedTabContents());
|
| + DCHECK_EQ(contents, tab_strip->GetActiveTabContents());
|
| }
|
| contents->tab_contents()->Focus();
|
| }
|
| @@ -1304,7 +1304,7 @@ bool DetectTabLanguageFunction::RunImpl() {
|
| browser = GetCurrentBrowser();
|
| if (!browser)
|
| return false;
|
| - contents = browser->tabstrip_model()->GetSelectedTabContents();
|
| + contents = browser->tabstrip_model()->GetActiveTabContents();
|
| if (!contents)
|
| return false;
|
| }
|
|
|