Index: content/browser/renderer_host/render_view_host_unittest.cc |
diff --git a/content/browser/renderer_host/render_view_host_unittest.cc b/content/browser/renderer_host/render_view_host_unittest.cc |
index ae214affcec76579461b677a7bf181769e34190e..4057da25a32e85eca761b779133e4765e9259aca 100644 |
--- a/content/browser/renderer_host/render_view_host_unittest.cc |
+++ b/content/browser/renderer_host/render_view_host_unittest.cc |
@@ -72,7 +72,7 @@ TEST_F(RenderViewHostTest, ResetUnloadOnReload) { |
TEST_F(RenderViewHostTest, DontGrantBindingsToSharedProcess) { |
// Create another view in the same process. |
scoped_ptr<TestWebContents> new_web_contents( |
- new TestWebContents(browser_context(), rvh()->GetSiteInstance())); |
+ TestWebContents::Create(browser_context(), rvh()->GetSiteInstance())); |
rvh()->AllowBindings(content::BINDINGS_POLICY_WEB_UI); |
EXPECT_FALSE(rvh()->GetEnabledBindings() & content::BINDINGS_POLICY_WEB_UI); |