Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(604)

Unified Diff: chrome/browser/automation/automation_provider.cc

Issue 10831308: Revert 151036 - Speculative revert to see if this change introduced a performance regression on Mac… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/automation/automation_provider.cc
===================================================================
--- chrome/browser/automation/automation_provider.cc (revision 151481)
+++ chrome/browser/automation/automation_provider.cc (working copy)
@@ -468,11 +468,10 @@
Browser* AutomationProvider::FindAndActivateTab(
NavigationController* controller) {
- int tab_index;
- Browser* browser = browser::FindBrowserForController(controller, &tab_index);
- if (browser)
- chrome::ActivateTabAt(browser, tab_index, true);
- return browser;
+ content::WebContentsDelegate* d = controller->GetWebContents()->GetDelegate();
+ if (d)
+ d->ActivateContents(controller->GetWebContents());
+ return browser::FindBrowserWithWebContents(controller->GetWebContents());
}
void AutomationProvider::HandleFindRequest(

Powered by Google App Engine
This is Rietveld 408576698