diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-27 05:25:42 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-27 05:25:42 +0000 |
commit | 45d6f5a0db176c2b562b147618c21e15285d723a (patch) | |
tree | c8a0c1a2b539f51202473bf358978fbf1ca2ce85 /chrome/renderer/print_web_view_helper_mac.mm | |
parent | bb04179fb837602c0d3e494179c15fed0bd75b0e (diff) | |
download | chromium_src-45d6f5a0db176c2b562b147618c21e15285d723a.zip chromium_src-45d6f5a0db176c2b562b147618c21e15285d723a.tar.gz chromium_src-45d6f5a0db176c2b562b147618c21e15285d723a.tar.bz2 |
Print Preview: Prevent a crash and add error logging.
BUG=92268,94448
TEST=none
Review URL: http://codereview.chromium.org/7765010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98550 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/print_web_view_helper_mac.mm')
-rw-r--r-- | chrome/renderer/print_web_view_helper_mac.mm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/renderer/print_web_view_helper_mac.mm b/chrome/renderer/print_web_view_helper_mac.mm index 93509d7..f64a0bf 100644 --- a/chrome/renderer/print_web_view_helper_mac.mm +++ b/chrome/renderer/print_web_view_helper_mac.mm @@ -74,6 +74,7 @@ bool PrintWebViewHelper::RenderPreviewPage(int page_number) { if (print_preview_context_.IsModifiable()) { draft_metafile.reset(new printing::PreviewMetafile); if (!draft_metafile->Init()) { + LOG(ERROR) << "Draft PreviewMetafile Init failed"; return false; } initial_render_metafile = draft_metafile.get(); |