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

Unified Diff: chrome/browser/browser.h

Issue 174021: Convert users of the "get last active browser, get selected tab contents, ope... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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
« no previous file with comments | « no previous file | chrome/browser/browser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser.h
===================================================================
--- chrome/browser/browser.h (revision 23676)
+++ chrome/browser/browser.h (working copy)
@@ -403,6 +403,9 @@
static Browser* GetBrowserForController(
const NavigationController* controller, int* index);
+ // Retrieve the last active tabbed browser with a profile matching |profile|.
+ // Creates a new Browser if none are available.
+ static Browser* GetOrCreateTabbedBrowser(Profile* profile);
// Helper function to create a new popup window.
static void BuildPopupWindowHelper(TabContents* source,
@@ -613,10 +616,6 @@
// Assorted utility functions ///////////////////////////////////////////////
- // Retrieve the last active tabbed browser with the same profile as the
- // receiving Browser. Creates a new Browser if none are available.
- Browser* GetOrCreateTabbedBrowser();
-
// The low-level function that other OpenURL...() functions call. This
// determines the appropriate SiteInstance to pass to AddTabWithURL(), focuses
// the newly created tab as needed, and does other miscellaneous housekeeping.
« no previous file with comments | « no previous file | chrome/browser/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698