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

Unified Diff: chrome/browser/ui/browser_finder.h

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/ui/browser_finder.h
===================================================================
--- chrome/browser/ui/browser_finder.h (revision 150796)
+++ chrome/browser/ui/browser_finder.h (working copy)
@@ -52,6 +52,14 @@
// |web_contents| must not be NULL.
Browser* FindBrowserWithWebContents(const content::WebContents* web_contents);
+// Returns the Browser which contains the tab with the given
+// NavigationController, also filling in |index| (if valid) with the tab's index
+// in the tab strip. Returns NULL if not found. This call is O(N) in the
+// number of tabs.
+Browser* FindBrowserForController(
+ const content::NavigationController* controller,
+ int* index);
+
// Identical in behavior to BrowserList::GetLastActive(), except that the most
// recently open browser owned by |profile| is returned. If none exist, returns
// NULL. WARNING: see warnings in BrowserList::GetLastActive().
« no previous file with comments | « chrome/browser/ui/android/tab_restore_service_delegate_android.cc ('k') | chrome/browser/ui/browser_finder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698