FIXME: disable non-compiling LOGFONT IPC message

https://chromium-review.googlesource.com/c/chromium/src/+/1134100
This commit is contained in:
Jeremy Apthorp 2018-10-04 18:38:26 -07:00 committed by Jeremy Apthorp
parent 56e26c27f2
commit 66018eb0f1
3 changed files with 6 additions and 0 deletions

View file

@ -608,8 +608,10 @@ bool PdfConverterUtilityProcessHostClient::OnMessageReceived(
ChromeUtilityHostMsg_RenderPDFPagesToMetafiles_PageCount, OnPageCount) ChromeUtilityHostMsg_RenderPDFPagesToMetafiles_PageCount, OnPageCount)
IPC_MESSAGE_HANDLER(ChromeUtilityHostMsg_RenderPDFPagesToMetafiles_PageDone, IPC_MESSAGE_HANDLER(ChromeUtilityHostMsg_RenderPDFPagesToMetafiles_PageDone,
OnPageDone) OnPageDone)
#if 0
IPC_MESSAGE_HANDLER(ChromeUtilityHostMsg_PreCacheFontCharacters, IPC_MESSAGE_HANDLER(ChromeUtilityHostMsg_PreCacheFontCharacters,
OnPreCacheFontCharacters) OnPreCacheFontCharacters)
#endif
IPC_MESSAGE_UNHANDLED(handled = false) IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP() IPC_END_MESSAGE_MAP()
return handled; return handled;

View file

@ -89,9 +89,11 @@ IPC_MESSAGE_CONTROL2(ChromeUtilityHostMsg_RenderPDFPagesToMetafiles_PageDone,
// Request that the given font characters be loaded by the browser so it's // Request that the given font characters be loaded by the browser so it's
// cached by the OS. Please see // cached by the OS. Please see
// PdfToEmfUtilityProcessHostClient::OnPreCacheFontCharacters for details. // PdfToEmfUtilityProcessHostClient::OnPreCacheFontCharacters for details.
#if 0
IPC_SYNC_MESSAGE_CONTROL2_0(ChromeUtilityHostMsg_PreCacheFontCharacters, IPC_SYNC_MESSAGE_CONTROL2_0(ChromeUtilityHostMsg_PreCacheFontCharacters,
LOGFONT /* font_data */, LOGFONT /* font_data */,
base::string16 /* characters */) base::string16 /* characters */)
#endif
// Tell the utility process to start rendering the given PDF into a metafile. // Tell the utility process to start rendering the given PDF into a metafile.
// Utility process would be alive until // Utility process would be alive until

View file

@ -32,8 +32,10 @@ void ReleaseProcessIfNeeded() {
void PreCacheFontCharacters(const LOGFONT* logfont, void PreCacheFontCharacters(const LOGFONT* logfont,
const wchar_t* text, const wchar_t* text,
size_t text_length) { size_t text_length) {
#if 0
Send(new ChromeUtilityHostMsg_PreCacheFontCharacters( Send(new ChromeUtilityHostMsg_PreCacheFontCharacters(
*logfont, base::string16(text, text_length))); *logfont, base::string16(text, text_length)));
#endif
} }
} // namespace } // namespace