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

Unified Diff: components/dom_distiller/content/dom_distiller_viewer_source.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
Index: components/dom_distiller/content/dom_distiller_viewer_source.cc
diff --git a/components/dom_distiller/content/dom_distiller_viewer_source.cc b/components/dom_distiller/content/dom_distiller_viewer_source.cc
index 72e2db2f132d13f1e1a614410970f0dda88ec2db..964794e7e40da536a2869a2cb3cba6a95d7cdfb9 100644
--- a/components/dom_distiller/content/dom_distiller_viewer_source.cc
+++ b/components/dom_distiller/content/dom_distiller_viewer_source.cc
@@ -285,7 +285,8 @@ void DomDistillerViewerSource::StartDataRequest(
web_contents, scheme_, path_after_query_separator, callback,
dom_distiller_service_->GetDistilledPagePrefs());
scoped_ptr<ViewerHandle> viewer_handle = viewer::CreateViewRequest(
- dom_distiller_service_, path, request_viewer_handle);
+ dom_distiller_service_, path, request_viewer_handle,
+ web_contents->GetContainerBounds().size());
if (viewer_handle) {
// The service returned a |ViewerHandle| and guarantees it will call

Powered by Google App Engine
This is Rietveld 408576698