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

Unified Diff: chrome/service/service_utility_process_host.cc

Issue 2812263002: clean up printing::Image and printing::Metafile (Closed)
Patch Set: return 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
Index: chrome/service/service_utility_process_host.cc
diff --git a/chrome/service/service_utility_process_host.cc b/chrome/service/service_utility_process_host.cc
index 7a9edf70f2959693b0c869fe94831dcc426dfdfa..b25a05fd2e8c15b6c6e7dfac01a8bcacc511dc3d 100644
--- a/chrome/service/service_utility_process_host.cc
+++ b/chrome/service/service_utility_process_host.cc
@@ -37,7 +37,6 @@
#include "mojo/edk/embedder/named_platform_channel_pair.h"
#include "mojo/edk/embedder/platform_channel_pair.h"
#include "mojo/edk/embedder/scoped_platform_handle.h"
-#include "printing/emf_win.h"
#include "sandbox/win/src/sandbox_policy.h"
#include "sandbox/win/src/sandbox_types.h"
#include "ui/base/ui_base_switches.h"
@@ -442,11 +441,9 @@ bool ServiceUtilityProcessHost::Client::MetafileAvailable(float scale_factor,
OnRenderPDFPagesToMetafileDone(false);
return false;
}
- printing::Emf emf;
- if (!emf.InitFromData(data.data(), data.size())) {
+ if (!OnRenderPDFPagesToMetafilePageDone(data, scale_factor)) {
OnRenderPDFPagesToMetafileDone(false);
return false;
}
- OnRenderPDFPagesToMetafilePageDone(scale_factor, emf);
return true;
}

Powered by Google App Engine
This is Rietveld 408576698