| Index: content/browser/renderer_host/test_render_view_host.cc
|
| diff --git a/content/browser/renderer_host/test_render_view_host.cc b/content/browser/renderer_host/test_render_view_host.cc
|
| index b7842cfedf946233e0ef71ed0b03d3d3187d981e..06e884c733777935bf9633e4208e3adfbdc255ce 100644
|
| --- a/content/browser/renderer_host/test_render_view_host.cc
|
| +++ b/content/browser/renderer_host/test_render_view_host.cc
|
| @@ -312,7 +312,11 @@ MockRenderProcessHost* RenderViewHostTestHarness::process() {
|
| }
|
|
|
| void RenderViewHostTestHarness::DeleteContents() {
|
| - contents_.reset();
|
| + SetContents(NULL);
|
| +}
|
| +
|
| +void RenderViewHostTestHarness::SetContents(TestTabContents* contents) {
|
| + contents_.reset(contents);
|
| }
|
|
|
| TestTabContents* RenderViewHostTestHarness::CreateTestTabContents() {
|
| @@ -338,11 +342,11 @@ void RenderViewHostTestHarness::Reload() {
|
| }
|
|
|
| void RenderViewHostTestHarness::SetUp() {
|
| - contents_.reset(CreateTestTabContents());
|
| + SetContents(CreateTestTabContents());
|
| }
|
|
|
| void RenderViewHostTestHarness::TearDown() {
|
| - contents_.reset();
|
| + SetContents(NULL);
|
|
|
| // Make sure that we flush any messages related to TabContents destruction
|
| // before we destroy the profile.
|
|
|