| Index: components/printing/test/print_mock_render_thread.cc
|
| diff --git a/components/printing/test/print_mock_render_thread.cc b/components/printing/test/print_mock_render_thread.cc
|
| index 749a86458aa6baa9b97698c2c10b7c535ef168ba..8586e9aef780a8f3486a09a8b2f8400783ee5dc6 100644
|
| --- a/components/printing/test/print_mock_render_thread.cc
|
| +++ b/components/printing/test/print_mock_render_thread.cc
|
| @@ -58,10 +58,12 @@ bool PrintMockRenderThread::OnMessageReceived(const IPC::Message& msg) {
|
| IPC_MESSAGE_HANDLER(PrintHostMsg_DidGetPrintedPagesCount,
|
| OnDidGetPrintedPagesCount)
|
| IPC_MESSAGE_HANDLER(PrintHostMsg_DidPrintPage, OnDidPrintPage)
|
| +#if defined(ENABLE_PRINT_PREVIEW)
|
| IPC_MESSAGE_HANDLER(PrintHostMsg_DidGetPreviewPageCount,
|
| OnDidGetPreviewPageCount)
|
| IPC_MESSAGE_HANDLER(PrintHostMsg_DidPreviewPage, OnDidPreviewPage)
|
| IPC_MESSAGE_HANDLER(PrintHostMsg_CheckForCancel, OnCheckForCancel)
|
| +#endif
|
| #if defined(OS_WIN)
|
| IPC_MESSAGE_HANDLER(PrintHostMsg_DuplicateSection, OnDuplicateSection)
|
| #endif
|
| @@ -97,6 +99,7 @@ void PrintMockRenderThread::OnDidPrintPage(
|
| printer_->PrintPage(params);
|
| }
|
|
|
| +#if defined(ENABLE_PRINT_PREVIEW)
|
| void PrintMockRenderThread::OnDidGetPreviewPageCount(
|
| const PrintHostMsg_DidGetPreviewPageCount_Params& params) {
|
| print_preview_pages_remaining_ = params.page_count;
|
| @@ -114,6 +117,7 @@ void PrintMockRenderThread::OnCheckForCancel(int32_t preview_ui_id,
|
| *cancel =
|
| (print_preview_pages_remaining_ == print_preview_cancel_page_number_);
|
| }
|
| +#endif // defined(ENABLE_PRINT_PREVIEW)
|
|
|
| void PrintMockRenderThread::OnUpdatePrintSettings(
|
| int document_cookie,
|
|
|