| Index: components/dom_distiller/standalone/content_extractor.cc
|
| diff --git a/components/dom_distiller/standalone/content_extractor.cc b/components/dom_distiller/standalone/content_extractor.cc
|
| index 7f7a216312a7be4160647d9dcd154c397d5f8420..6b99e761f702446b2d92b502beddee21fd981a06 100644
|
| --- a/components/dom_distiller/standalone/content_extractor.cc
|
| +++ b/components/dom_distiller/standalone/content_extractor.cc
|
| @@ -142,10 +142,13 @@ std::string GetReadableArticleString(
|
|
|
| class ContentExtractionRequest : public ViewRequestDelegate {
|
| public:
|
| - void Start(DomDistillerService* service, base::Closure finished_callback) {
|
| + void Start(DomDistillerService* service, const gfx::Size& render_view_size,
|
| + base::Closure finished_callback) {
|
| finished_callback_ = finished_callback;
|
| viewer_handle_ =
|
| - service->ViewUrl(this, service->CreateDefaultDistillerPage(), url_);
|
| + service->ViewUrl(this,
|
| + service->CreateDefaultDistillerPage(render_view_size),
|
| + url_);
|
| }
|
|
|
| DistilledArticleProto GetArticleCopy() {
|
| @@ -243,6 +246,7 @@ class ContentExtractor : public ContentBrowserTest {
|
| while (pending_tasks_ < max_tasks_ && next_request_ < requests_.size()) {
|
| requests_[next_request_]->Start(
|
| service_.get(),
|
| + shell()->web_contents()->GetContainerBounds().size(),
|
| base::Bind(&ContentExtractor::FinishRequest, base::Unretained(this)));
|
| ++next_request_;
|
| ++pending_tasks_;
|
|
|