Index: content/renderer/webplugin_delegate_proxy.cc |
diff --git a/content/renderer/webplugin_delegate_proxy.cc b/content/renderer/webplugin_delegate_proxy.cc |
index 617928d5b2f4287a44604598a0a4248b8b38fb67..01ed6515bb07f3bf4567dbf646e32bc14e4dbfaa 100644 |
--- a/content/renderer/webplugin_delegate_proxy.cc |
+++ b/content/renderer/webplugin_delegate_proxy.cc |
@@ -54,8 +54,7 @@ |
#endif |
#if defined(OS_WIN) |
-#include "printing/native_metafile_factory.h" |
-#include "printing/native_metafile.h" |
+#include "printing/metafile_impl.h" |
#endif |
using WebKit::WebBindings; |
@@ -923,14 +922,13 @@ void WebPluginDelegateProxy::Print(gfx::NativeDrawingContext context) { |
} |
#if defined(OS_WIN) |
- scoped_ptr<printing::NativeMetafile> metafile( |
- printing::NativeMetafileFactory::Create()); |
- if (!metafile->InitFromData(memory.memory(), size)) { |
+ printing::NativeMetafile metafile; |
+ if (!metafile.InitFromData(memory.memory(), size)) { |
NOTREACHED(); |
return; |
} |
// Playback the buffer. |
- metafile->Playback(context, NULL); |
+ metafile.Playback(context, NULL); |
#else |
// TODO(port): plugin printing. |
NOTIMPLEMENTED(); |