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

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

Issue 396503003: DomDistiller: fix 0 document width (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: components/dom_distiller/webui/dom_distiller_ui.cc
diff --git a/components/dom_distiller/webui/dom_distiller_ui.cc b/components/dom_distiller/webui/dom_distiller_ui.cc
index 436e6574c57581daee3edffa78d4462286f41057..9d82b0139f74f888ab619f06aec17df6214068fc 100644
--- a/components/dom_distiller/webui/dom_distiller_ui.cc
+++ b/components/dom_distiller/webui/dom_distiller_ui.cc
@@ -52,7 +52,8 @@ DomDistillerUi::DomDistillerUi(content::WebUI* web_ui,
source->SetJsonPath("strings.js");
// Add message handler.
- web_ui->AddMessageHandler(new DomDistillerHandler(service, scheme));
+ web_ui->AddMessageHandler(new DomDistillerHandler(service, scheme,
+ web_ui->GetWebContents()->GetContainerBounds().size()));
nyquist 2014/07/15 17:13:03 What would happen if the user resizes the browser
Yaron 2014/07/16 17:46:28 Agreed. I thought these handlers were actually lon
nyquist 2014/07/16 19:20:49 I think they're created through |WebContentsImpl::
kuan 2014/07/17 09:57:26 Done.
}
DomDistillerUi::~DomDistillerUi() {}

Powered by Google App Engine
This is Rietveld 408576698