| 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 a483fa153b388a3a793a8a3849b31ae17c7abc1d..1ce0b030cd46bd05894296451843e2e8f0b059dd 100644
|
| --- a/components/printing/test/print_mock_render_thread.h
|
| +++ b/components/printing/test/print_mock_render_thread.h
|
| @@ -15,6 +15,7 @@
|
| #include "base/single_thread_task_runner.h"
|
| #include "build/build_config.h"
|
| #include "content/public/test/mock_render_thread.h"
|
| +#include "printing/features/features.h"
|
|
|
| namespace base {
|
| class DictionaryValue;
|
| @@ -43,7 +44,7 @@ class PrintMockRenderThread : public content::MockRenderThread {
|
| void set_io_task_runner(
|
| const scoped_refptr<base::SingleThreadTaskRunner>& task_runner);
|
|
|
| -#if defined(ENABLE_PRINTING)
|
| +#if BUILDFLAG(ENABLE_PRINTING)
|
| // Returns the pseudo-printer instance.
|
| MockPrinter* printer();
|
|
|
| @@ -62,7 +63,7 @@ class PrintMockRenderThread : public content::MockRenderThread {
|
| // Overrides base class implementation to add custom handling for print
|
| bool OnMessageReceived(const IPC::Message& msg) override;
|
|
|
| -#if defined(ENABLE_PRINTING)
|
| +#if BUILDFLAG(ENABLE_PRINTING)
|
| #if defined(OS_CHROMEOS) || defined(OS_ANDROID)
|
| void OnAllocateTempFileForPrinting(int render_view_id,
|
| base::FileDescriptor* renderer_fd,
|
| @@ -79,7 +80,7 @@ class PrintMockRenderThread : public content::MockRenderThread {
|
|
|
| void OnDidGetPrintedPagesCount(int cookie, int number_pages);
|
| void OnDidPrintPage(const PrintHostMsg_DidPrintPage_Params& params);
|
| -#if defined(ENABLE_PRINT_PREVIEW)
|
| +#if BUILDFLAG(ENABLE_PRINT_PREVIEW)
|
| void OnDidGetPreviewPageCount(
|
| const PrintHostMsg_DidGetPreviewPageCount_Params& params);
|
| void OnDidPreviewPage(const PrintHostMsg_DidPreviewPage_Params& params);
|
|
|