Use GuestView embedder when determing the print preview dialog dimensions.
commit3f44c4635f98d5b4b8f7df70c0e6a503d01e4920
authorsammc <sammc@chromium.org>
Thu, 22 Jan 2015 02:51:13 +0000 (21 18:51 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 22 Jan 2015 02:52:05 +0000 (22 02:52 +0000)
treeaa46d86353ea2fc24a397e6f5b3a19d7a24b4df8
parentb5e2c68d2572cf5a38a0329e5daaee5fc27f32fe
Use GuestView embedder when determing the print preview dialog dimensions.

The print preview dialog uses the initiator WebContents to determine its
size. For prints from embedded GuestViews, this can cause print preview
dialogs to be smaller than normal. This CL fixes this by changing
PrintPreviewDialogDelegate::GetDialogSize() to follow the chain of
GuestView embedders to find the outermost WebContents and use it to
determine the dialog size.

BUG=450564

Review URL: https://codereview.chromium.org/867493002

Cr-Commit-Position: refs/heads/master@{#312545}
chrome/browser/printing/print_preview_dialog_controller.cc