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

Unified Diff: components/dom_distiller/webui/dom_distiller_handler.cc

Issue 396503003: DomDistiller: fix 0 document width (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: resolve patch conflicts Created 6 years, 5 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
« no previous file with comments | « components/dom_distiller/standalone/content_extractor.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/dom_distiller/webui/dom_distiller_handler.cc
diff --git a/components/dom_distiller/webui/dom_distiller_handler.cc b/components/dom_distiller/webui/dom_distiller_handler.cc
index 2d91dac66d7e3999b89a93843eae901ec26060f6..0c3516732d72902a3d9029a14f7c10b101ff251f 100644
--- a/components/dom_distiller/webui/dom_distiller_handler.cc
+++ b/components/dom_distiller/webui/dom_distiller_handler.cc
@@ -65,7 +65,8 @@ void DomDistillerHandler::HandleAddArticle(const base::ListValue* args) {
if (gurl.is_valid()) {
service_->AddToList(
gurl,
- service_->CreateDefaultDistillerPage(),
+ service_->CreateDefaultDistillerPage(
+ web_ui()->GetWebContents()->GetContainerBounds().size()),
base::Bind(base::Bind(&DomDistillerHandler::OnArticleAdded,
base::Unretained(this))));
} else {
« no previous file with comments | « components/dom_distiller/standalone/content_extractor.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698