diff options
Diffstat (limited to 'chrome/browser/automation/testing_automation_provider.cc')
| -rw-r--r-- | chrome/browser/automation/testing_automation_provider.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc index 6781126..9d093f2 100644 --- a/chrome/browser/automation/testing_automation_provider.cc +++ b/chrome/browser/automation/testing_automation_provider.cc @@ -6668,9 +6668,8 @@ void TestingAutomationProvider::OnRemoveProvider() { void TestingAutomationProvider::EnsureTabSelected(Browser* browser, WebContents* tab) { - if (browser->GetActiveWebContents() != tab || - browser != BrowserList::GetLastActive()) { - browser->ActivateTabAt(browser->GetIndexOfController(&tab->GetController()), - true /* user_gesture */); + if (browser->GetActiveWebContents() != tab) { + browser->ActivateTabAt(browser->GetIndexOfController( + &tab->GetController()), true); } } |
