| Index: components/dom_distiller/content/distiller_page_web_contents_browsertest.cc
|
| diff --git a/components/dom_distiller/content/distiller_page_web_contents_browsertest.cc b/components/dom_distiller/content/distiller_page_web_contents_browsertest.cc
|
| index 93978e214208a699d9a97c4dbb47a39bf7a5c15b..d7f00f4e4a57383a0850cdda8df1e3d41406f806 100644
|
| --- a/components/dom_distiller/content/distiller_page_web_contents_browsertest.cc
|
| +++ b/components/dom_distiller/content/distiller_page_web_contents_browsertest.cc
|
| @@ -164,7 +164,8 @@ class TestDistillerPageWebContents : public DistillerPageWebContents {
|
| // DistillerPageWebContents::CreateNewWebContents resets the scoped_ptr to
|
| // the WebContents, so intentionally leak WebContents here, since it is
|
| // owned by the shell.
|
| - content::WebContents* web_contents = web_contents_.release();
|
| + content::WebContents* web_contents =
|
| + web_contents_handle_.release()->GetWebContents();
|
| web_contents->GetLastCommittedURL();
|
| DistillerPageWebContents::CreateNewWebContents(url);
|
| }
|
| @@ -172,7 +173,8 @@ class TestDistillerPageWebContents : public DistillerPageWebContents {
|
| ~TestDistillerPageWebContents() override {
|
| if (!expect_new_web_contents_) {
|
| // Intentionally leaking WebContents, since it is owned by the shell.
|
| - content::WebContents* web_contents = web_contents_.release();
|
| + content::WebContents* web_contents =
|
| + web_contents_handle_.release()->GetWebContents();
|
| web_contents->GetLastCommittedURL();
|
| }
|
| }
|
|
|