Index: chrome/browser/automation/testing_automation_provider.cc |
diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc |
index 5e3f044a82e3f711ef4c57afe6f8032cd8297e28..d532d72b86658dab9e34a0e778e911dda2073ef2 100644 |
--- a/chrome/browser/automation/testing_automation_provider.cc |
+++ b/chrome/browser/automation/testing_automation_provider.cc |
@@ -455,8 +455,8 @@ void TestingAutomationProvider::ActivateTab(int handle, |
*status = -1; |
if (browser_tracker_->ContainsHandle(handle) && at_index > -1) { |
Browser* browser = browser_tracker_->GetResource(handle); |
- if (at_index >= 0 && at_index < browser->tab_count()) { |
- chrome::ActivateTabAt(browser, at_index, true); |
+ if (at_index >= 0 && at_index < browser->tab_strip_model()->count()) { |
+ browser->tab_strip_model()->ActivateTabAt(at_index, true); |
*status = 0; |
} |
} |