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

Unified Diff: content/browser/tab_contents/test_tab_contents.cc

Issue 9473001: Extract minimal RenderViewHost interface for embedders, leaving (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to LKGR. Created 8 years, 10 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: content/browser/tab_contents/test_tab_contents.cc
diff --git a/content/browser/tab_contents/test_tab_contents.cc b/content/browser/tab_contents/test_tab_contents.cc
index bbced34ab48ca9fd2cdb7c1ff1a325dc4156470c..f788163527867ccee8da0e01172470fe9fecfea5 100644
--- a/content/browser/tab_contents/test_tab_contents.cc
+++ b/content/browser/tab_contents/test_tab_contents.cc
@@ -80,7 +80,8 @@ void TestTabContents::TestDidNavigateWithReferrer(
bool TestTabContents::CreateRenderViewForRenderManager(
RenderViewHost* render_view_host) {
// This will go to a TestRenderViewHost.
- render_view_host->CreateRenderView(string16(), -1);
+ static_cast<RenderViewHostImpl*>(
+ render_view_host)->CreateRenderView(string16(), -1);
return true;
}
@@ -120,14 +121,14 @@ void TestTabContents::CommitPendingNavigation() {
int page_id = entry->GetPageID();
if (page_id == -1) {
// It's a new navigation, assign a never-seen page id to it.
- page_id = GetMaxPageIDForSiteInstance(rvh->site_instance()) + 1;
+ page_id = GetMaxPageIDForSiteInstance(rvh->GetSiteInstance()) + 1;
}
rvh->SendNavigate(page_id, entry->GetURL());
// Simulate the SwapOut_ACK that fires if you commit a cross-site navigation
// without making any network requests.
if (old_rvh != rvh)
- old_rvh->OnSwapOutACK();
+ static_cast<RenderViewHostImpl*>(old_rvh)->OnSwapOutACK();
}
void TestTabContents::ProceedWithCrossSiteNavigation() {
« no previous file with comments | « content/browser/tab_contents/tab_contents_view_win.cc ('k') | content/browser/tab_contents/web_contents_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698