Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Unified Diff: components/printing/test/print_mock_render_thread.h

Issue 2458833005: Move printing defines to buildflag system. (Closed)
Patch Set: Merge Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
« no previous file with comments | « components/printing/renderer/print_web_view_helper_pdf_win.cc ('k') | components/printing/test/print_mock_render_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698