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

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: 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 8f475cc52a951d3006b57e9faa9fa4da5cc9d7a2..c55797ccd209e86d018ce2c4ea677ad404c4c814 100644
--- a/components/dom_distiller/content/dom_distiller_viewer_source.cc
+++ b/components/dom_distiller/content/dom_distiller_viewer_source.cc
@@ -263,7 +263,8 @@ void DomDistillerViewerSource::StartDataRequest(
RequestViewerHandle* request_viewer_handle = new RequestViewerHandle(
web_contents, scheme_, path_after_query_separator, callback);
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