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

Unified Diff: components/printing/test/mock_printer.cc

Issue 2802093006: printing::Metafile: Simplify OS_MACOSX-specific code path (Closed)
Patch Set: Created 3 years, 8 months 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
« no previous file with comments | « no previous file | printing/image_mac.cc » ('j') | printing/pdf_metafile_cg_mac.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/printing/test/mock_printer.cc
diff --git a/components/printing/test/mock_printer.cc b/components/printing/test/mock_printer.cc
index 1a38b7a08aa8033e1ae3bd0a71d87c07e8cb3d4e..38f5cf87a46046f3f368298f1df76d9be83d3e63 100644
--- a/components/printing/test/mock_printer.cc
+++ b/components/printing/test/mock_printer.cc
@@ -212,11 +212,7 @@ void MockPrinter::PrintPage(const PrintHostMsg_DidPrintPage_Params& params) {
EXPECT_GT(params.data_size, 0U);
base::SharedMemory metafile_data(params.metafile_data_handle, true);
metafile_data.Map(params.data_size);
-#if defined(OS_MACOSX)
- printing::PdfMetafileCg metafile;
-#else
printing::PdfMetafileSkia metafile(printing::PDF_SKIA_DOCUMENT_TYPE);
-#endif
metafile.InitFromData(metafile_data.memory(), params.data_size);
printing::Image image(metafile);
MockPrinterPage* page_data =
« no previous file with comments | « no previous file | printing/image_mac.cc » ('j') | printing/pdf_metafile_cg_mac.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698