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

Unified Diff: chrome/browser/tabs/tab_finder.cc

Issue 9015022: Replace most of Browser::GetSelectedTabContents calls into Browser::GetSelectedWebContents. I've ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 12 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 | « chrome/browser/tabs/tab_finder.h ('k') | chrome/browser/task_manager/task_manager_resource_providers.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tabs/tab_finder.cc
===================================================================
--- chrome/browser/tabs/tab_finder.cc (revision 116109)
+++ chrome/browser/tabs/tab_finder.cc (working copy)
@@ -81,7 +81,7 @@
switches::kFocusExistingTabOnOpen);
}
-TabContents* TabFinder::FindTab(Browser* browser,
+WebContents* TabFinder::FindTab(Browser* browser,
const GURL& url,
Browser** existing_browser) {
if (browser->profile()->IsOffTheRecord())
@@ -89,12 +89,12 @@
// If the current tab matches the url, ignore it and let the user reload the
// existing tab.
- TabContents* selected_tab = browser->GetSelectedTabContents();
+ WebContents* selected_tab = browser->GetSelectedWebContents();
if (TabMatchesURL(selected_tab, url))
return NULL;
// See if the current browser has a tab matching the specified url.
- TabContents* tab_in_browser = FindTabInBrowser(browser, url);
+ WebContents* tab_in_browser = FindTabInBrowser(browser, url);
if (tab_in_browser) {
*existing_browser = browser;
return tab_in_browser;
@@ -159,7 +159,7 @@
return i != web_contents_to_url_.end() && i->second == url;
}
-TabContents* TabFinder::FindTabInBrowser(Browser* browser, const GURL& url) {
+WebContents* TabFinder::FindTabInBrowser(Browser* browser, const GURL& url) {
if (!browser->is_type_tabbed())
return NULL;
« no previous file with comments | « chrome/browser/tabs/tab_finder.h ('k') | chrome/browser/task_manager/task_manager_resource_providers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698