| Index: content/test/test_web_contents.cc
|
| diff --git a/content/test/test_web_contents.cc b/content/test/test_web_contents.cc
|
| index 2f35a8bc2fcdfca723ddc26d53f3a9128b502588..5d31e639b7d57cd09fcdbd60671dacf8356c08f7 100644
|
| --- a/content/test/test_web_contents.cc
|
| +++ b/content/test/test_web_contents.cc
|
| @@ -28,7 +28,7 @@
|
| namespace content {
|
|
|
| TestWebContents::TestWebContents(BrowserContext* browser_context)
|
| - : WebContentsImpl(browser_context, NULL),
|
| + : WebContentsImpl(browser_context),
|
| delegate_view_override_(NULL),
|
| expect_set_history_offset_and_length_(false),
|
| expect_set_history_offset_and_length_history_length_(0) {
|
| @@ -216,10 +216,7 @@ RenderViewHostDelegateView* TestWebContents::GetDelegateView() {
|
| }
|
|
|
| void TestWebContents::SetOpener(TestWebContents* opener) {
|
| - // This is normally only set in the WebContents constructor, which also
|
| - // registers an observer for when the opener gets closed.
|
| - opener_ = opener;
|
| - AddDestructionObserver(opener_);
|
| + frame_tree_.root()->SetOpener(opener->GetFrameTree()->root());
|
| }
|
|
|
| void TestWebContents::AddPendingContents(TestWebContents* contents) {
|
|
|