Fix for a crasher in PdfToEmfConverter

Fix a crasher that happens in PdfToEmfConverter when failing to
create a temporary file. We would call set_connection_error_handler
on on pdf_to_emf_converter_ which would be null in that case.
Also adding a browser test to validate that case.

Bug: 814613
Change-Id: Ib336347512d09213494083007d0a3bdc99a25b21
Commit-Queue: Jay Civelli <>
Reviewed-by: Lei Zhang <>
Cr-Original-Commit-Position: refs/heads/master@{#538603}(cherry picked from commit 537716a64ef068fc68832e14129e06c0bd4c17be)
Reviewed-by: Jay Civelli <>
Cr-Commit-Position: refs/branch-heads/3325@{#590}
Cr-Branched-From: bc084a8b5afa3744a74927344e304c02ae54189f-refs/heads/master@{#530369}
3 files changed