Skip to content

Commit

Permalink
FIXME: disable non-compiling LOGFONT IPC message
Browse files Browse the repository at this point in the history
  • Loading branch information
nornagon committed Oct 5, 2018
1 parent 987320b commit b1dff19
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chromium_src/chrome/browser/printing/pdf_to_emf_converter.cc
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions chromium_src/chrome/common/chrome_utility_printing_messages.h
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions chromium_src/chrome/utility/printing_handler_win.cc
Expand Up @@ -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
Expand Down

0 comments on commit b1dff19

Please sign in to comment.