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

Unified Diff: content/browser/web_contents/test_web_contents.cc

Issue 10038026: TabContents -> WebContentsImpl, part 12. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: *web*contents Created 8 years, 8 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/web_contents/test_web_contents.cc
diff --git a/content/browser/web_contents/test_web_contents.cc b/content/browser/web_contents/test_web_contents.cc
index 36292b779ff94f808568f0e58a80c1afd050a184..32f0e711f51ca77bc8d85cd466f0951bd8c628d6 100644
--- a/content/browser/web_contents/test_web_contents.cc
+++ b/content/browser/web_contents/test_web_contents.cc
@@ -21,7 +21,7 @@ namespace content {
TestWebContents::TestWebContents(BrowserContext* browser_context,
SiteInstance* instance)
- : TabContents(browser_context, instance, MSG_ROUTING_NONE, NULL, NULL),
+ : WebContentsImpl(browser_context, instance, MSG_ROUTING_NONE, NULL, NULL),
transition_cross_site(false),
delegate_view_override_(NULL),
expect_set_history_length_and_prune_(false),
@@ -91,11 +91,11 @@ bool TestWebContents::CreateRenderViewForRenderManager(
}
WebContents* TestWebContents::Clone() {
- TabContents* tc = new TestWebContents(
+ WebContentsImpl* contents = new TestWebContents(
GetBrowserContext(),
SiteInstance::Create(GetBrowserContext()));
- tc->GetControllerImpl().CopyStateFrom(controller_);
- return tc;
+ contents->GetControllerImpl().CopyStateFrom(controller_);
+ return contents;
}
void TestWebContents::NavigateAndCommit(const GURL& url) {
@@ -153,7 +153,7 @@ void TestWebContents::ProceedWithCrossSiteNavigation() {
RenderViewHostDelegate::View* TestWebContents::GetViewDelegate() {
if (delegate_view_override_)
return delegate_view_override_;
- return TabContents::GetViewDelegate();
+ return WebContentsImpl::GetViewDelegate();
}
void TestWebContents::ExpectSetHistoryLengthAndPrune(
« no previous file with comments | « content/browser/web_contents/test_web_contents.h ('k') | content/browser/web_contents/web_contents_delegate_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698