diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-09 11:36:16 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-09 11:36:16 +0000 |
commit | 8cb5d5b5406f5b3c18b7882c27c87938a81b584b (patch) | |
tree | dbdc64a8ea9b1855d65b1ab228bc6fb59112f337 /chrome/browser/tab_contents/test_tab_contents.cc | |
parent | 8db8746942a16ce493f8c4eb3aeebf2c36e38946 (diff) | |
download | chromium_src-8cb5d5b5406f5b3c18b7882c27c87938a81b584b.zip chromium_src-8cb5d5b5406f5b3c18b7882c27c87938a81b584b.tar.gz chromium_src-8cb5d5b5406f5b3c18b7882c27c87938a81b584b.tar.bz2 |
[GTTF] Reduce header dependencies in chrome.
BUG=none
TEST=If it compiles it is perfect.
Review URL: http://codereview.chromium.org/585008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38463 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents/test_tab_contents.cc')
-rw-r--r-- | chrome/browser/tab_contents/test_tab_contents.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/tab_contents/test_tab_contents.cc b/chrome/browser/tab_contents/test_tab_contents.cc index 3724b8c..bd5eac4 100644 --- a/chrome/browser/tab_contents/test_tab_contents.cc +++ b/chrome/browser/tab_contents/test_tab_contents.cc @@ -4,6 +4,7 @@ #include "chrome/browser/tab_contents/test_tab_contents.h" +#include "chrome/browser/renderer_host/render_view_host.h" #include "chrome/browser/renderer_host/test/test_render_view_host.h" TestTabContents::TestTabContents(Profile* profile, SiteInstance* instance) @@ -16,6 +17,13 @@ TestRenderViewHost* TestTabContents::pending_rvh() { render_manager_.pending_render_view_host_); } +bool TestTabContents::CreateRenderViewForRenderManager( + RenderViewHost* render_view_host) { + // This will go to a TestRenderViewHost. + render_view_host->CreateRenderView(profile()->GetRequestContext()); + return true; +} + TabContents* TestTabContents::Clone() { TabContents* tc = new TestTabContents( profile(), SiteInstance::CreateSiteInstance(profile())); |