Index: components/printing/test/print_mock_render_thread.h |
diff --git a/components/printing/test/print_mock_render_thread.h b/components/printing/test/print_mock_render_thread.h |
index 2eb6632c178fe2db13ec9b9d628a01eac9efb6a7..0f9ec058d736c6051aa7fca4a4c4ed7cbdbc86f0 100644 |
--- a/components/printing/test/print_mock_render_thread.h |
+++ b/components/printing/test/print_mock_render_thread.h |
@@ -79,12 +79,14 @@ class PrintMockRenderThread : public content::MockRenderThread { |
void OnDidGetPrintedPagesCount(int cookie, int number_pages); |
void OnDidPrintPage(const PrintHostMsg_DidPrintPage_Params& params); |
+#if defined(ENABLE_PRINT_PREVIEW) |
void OnDidGetPreviewPageCount( |
const PrintHostMsg_DidGetPreviewPageCount_Params& params); |
void OnDidPreviewPage(const PrintHostMsg_DidPreviewPage_Params& params); |
void OnCheckForCancel(int32_t preview_ui_id, |
int preview_request_id, |
bool* cancel); |
+#endif |
// For print preview, PrintWebViewHelper will update settings. |
void OnUpdatePrintSettings(int document_cookie, |