summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorvandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-10 05:24:10 +0000
committervandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-10 05:24:10 +0000
commitd927a7ede41e9cbea95a0c3750ca981402f358ee (patch)
treed95ca01dc6bf66e15ced7e66c96a26d3e5fb7a59 /chrome
parente6028cf797150c998f42501616266f87e338a9ee (diff)
downloadchromium_src-d927a7ede41e9cbea95a0c3750ca981402f358ee.zip
chromium_src-d927a7ede41e9cbea95a0c3750ca981402f358ee.tar.gz
chromium_src-d927a7ede41e9cbea95a0c3750ca981402f358ee.tar.bz2
Add check to debug issue 96063.
BUG=96063 TEST=NONE Review URL: http://codereview.chromium.org/7868001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100567 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/renderer/print_web_view_helper.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/renderer/print_web_view_helper.cc b/chrome/renderer/print_web_view_helper.cc
index e93407e..7692ec2 100644
--- a/chrome/renderer/print_web_view_helper.cc
+++ b/chrome/renderer/print_web_view_helper.cc
@@ -996,6 +996,8 @@ void PrintWebViewHelper::GetPageSizeAndMarginsInPoints(
// Invalid page size and/or margins. We just use the default setting.
if (page_layout_in_points->content_width < 1.0 ||
page_layout_in_points->content_height < 1.0) {
+ // TODO(vandebo) remove CHECK after debugging crbug.com/96063
+ CHECK(frame != NULL);
GetPageSizeAndMarginsInPoints(NULL, page_index, default_params,
page_layout_in_points);
return;