From 66018eb0f152a4877b2b52167c2d7cde917b8981 Mon Sep 17 00:00:00 2001 From: Jeremy Apthorp Date: Thu, 4 Oct 2018 18:38:26 -0700 Subject: [PATCH] FIXME: disable non-compiling LOGFONT IPC message https://chromium-review.googlesource.com/c/chromium/src/+/1134100 --- chromium_src/chrome/browser/printing/pdf_to_emf_converter.cc | 2 ++ chromium_src/chrome/common/chrome_utility_printing_messages.h | 2 ++ chromium_src/chrome/utility/printing_handler_win.cc | 2 ++ 3 files changed, 6 insertions(+) diff --git a/chromium_src/chrome/browser/printing/pdf_to_emf_converter.cc b/chromium_src/chrome/browser/printing/pdf_to_emf_converter.cc index a0e3fd6a1e51..5013df48d897 100644 --- a/chromium_src/chrome/browser/printing/pdf_to_emf_converter.cc +++ b/chromium_src/chrome/browser/printing/pdf_to_emf_converter.cc @@ -608,8 +608,10 @@ bool PdfConverterUtilityProcessHostClient::OnMessageReceived( ChromeUtilityHostMsg_RenderPDFPagesToMetafiles_PageCount, OnPageCount) IPC_MESSAGE_HANDLER(ChromeUtilityHostMsg_RenderPDFPagesToMetafiles_PageDone, OnPageDone) +#if 0 IPC_MESSAGE_HANDLER(ChromeUtilityHostMsg_PreCacheFontCharacters, OnPreCacheFontCharacters) +#endif IPC_MESSAGE_UNHANDLED(handled = false) IPC_END_MESSAGE_MAP() return handled; diff --git a/chromium_src/chrome/common/chrome_utility_printing_messages.h b/chromium_src/chrome/common/chrome_utility_printing_messages.h index 0f4fa21ede75..3204d20b5da0 100644 --- a/chromium_src/chrome/common/chrome_utility_printing_messages.h +++ b/chromium_src/chrome/common/chrome_utility_printing_messages.h @@ -89,9 +89,11 @@ IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_RenderPDFPagesToMetafiles_PageDone, // Request that the given font characters be loaded by the browser so it's // cached by the OS. Please see // PdfToEmfUtilityProcessHostClient::OnPreCacheFontCharacters for details. +#if 0 IPC_SYNC_MESSAGE_CONTROL2_0(ChromeUtilityHostMsg_PreCacheFontCharacters, LOGFONT /* font_data */, base::string16 /* characters */) +#endif // Tell the utility process to start rendering the given PDF into a metafile. // Utility process would be alive until diff --git a/chromium_src/chrome/utility/printing_handler_win.cc b/chromium_src/chrome/utility/printing_handler_win.cc index 48ad8993675a..8098272235a4 100644 --- a/chromium_src/chrome/utility/printing_handler_win.cc +++ b/chromium_src/chrome/utility/printing_handler_win.cc @@ -32,8 +32,10 @@ void ReleaseProcessIfNeeded() { void PreCacheFontCharacters(const LOGFONT* logfont, const wchar_t* text, size_t text_length) { +#if 0 Send(new ChromeUtilityHostMsg_PreCacheFontCharacters( *logfont, base::string16(text, text_length))); +#endif } } // namespace