Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(233)

Unified Diff: components/dom_distiller/content/distiller_page_web_contents_browsertest.cc

Issue 1125343004: Add a "Simplify Page" option to the print preview dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update AUTHORS file to reflect the correct HP name used in the CLA Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
}
}

Powered by Google App Engine
This is Rietveld 408576698