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

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

Issue 10837192: Speculative revert to see if this change introduced a performance regression on Mac intl perf bots. (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 150796)
+++ chrome/browser/automation/automation_provider.cc (working copy)
@@ -469,10 +469,11 @@
Browser* AutomationProvider::FindAndActivateTab(
NavigationController* controller) {
- content::WebContentsDelegate* d = controller->GetWebContents()->GetDelegate();
- if (d)
- d->ActivateContents(controller->GetWebContents());
- return browser::FindBrowserWithWebContents(controller->GetWebContents());
+ int tab_index;
+ Browser* browser = browser::FindBrowserForController(controller, &tab_index);
+ if (browser)
+ chrome::ActivateTabAt(browser, tab_index, true);
+ return browser;
}
void AutomationProvider::HandleFindRequest(

Powered by Google App Engine
This is Rietveld 408576698