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

Unified Diff: chrome/browser/ui/browser_list.cc

Issue 9003014: Replace WebUI::tab_contents() with web_contents() and switch all users to use web_contents.h inst... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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/ui/browser_list.h ('k') | chrome/browser/ui/browser_window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_list.cc
===================================================================
--- chrome/browser/ui/browser_list.cc (revision 116011)
+++ chrome/browser/ui/browser_list.cc (working copy)
@@ -44,6 +44,8 @@
#endif
#endif
+using content::WebContents;
+
namespace {
// This object is instantiated when the first Browser object is added to the
@@ -753,10 +755,10 @@
}
// static
-Browser* BrowserList::FindBrowserWithTabContents(TabContents* tab_contents) {
- DCHECK(tab_contents);
+Browser* BrowserList::FindBrowserWithWebContents(WebContents* web_contents) {
+ DCHECK(web_contents);
for (TabContentsIterator it; !it.done(); ++it) {
- if (it->tab_contents() == tab_contents)
+ if (it->web_contents() == web_contents)
return it.browser();
}
return NULL;
« no previous file with comments | « chrome/browser/ui/browser_list.h ('k') | chrome/browser/ui/browser_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698