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

Unified Diff: chrome/browser/tab_contents/tab_util.cc

Issue 9085006: Replace Browser::GetTabContentsAt with GetWebContentsAt and update all callers. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac yet again 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/tab_contents/tab_util.h ('k') | chrome/browser/tabs/pinned_tab_codec.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/tab_util.cc
===================================================================
--- chrome/browser/tab_contents/tab_util.cc (revision 116244)
+++ chrome/browser/tab_contents/tab_util.cc (working copy)
@@ -9,10 +9,13 @@
#include "chrome/browser/ui/webui/chrome_web_ui_factory.h"
#include "chrome/common/chrome_switches.h"
#include "content/browser/renderer_host/render_view_host.h"
+#include "content/browser/renderer_host/render_view_host_delegate.h"
#include "content/browser/site_instance.h"
-#include "content/browser/tab_contents/tab_contents.h"
+#include "content/public/browser/web_contents.h"
#include "googleurl/src/gurl.h"
+using content::WebContents;
+
namespace tab_util {
TabContents* GetTabContentsByID(int render_process_id, int render_view_id) {
@@ -34,7 +37,7 @@
return render_view_host->delegate()->GetAsWebContents();
}
-SiteInstance* GetSiteInstanceForNewTab(TabContents* source_contents,
+SiteInstance* GetSiteInstanceForNewTab(WebContents* source_contents,
Profile* profile,
const GURL& url) {
// If url is a WebUI or extension, we need to be sure to use the right type
« no previous file with comments | « chrome/browser/tab_contents/tab_util.h ('k') | chrome/browser/tabs/pinned_tab_codec.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698