summaryrefslogtreecommitdiffstats
path: root/content/plugin/webplugin_delegate_stub.cc
diff options
context:
space:
mode:
authorvandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-22 06:36:58 +0000
committervandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-22 06:36:58 +0000
commit481edc5493d2a5bd85ee882b3cf1a21f487a2a94 (patch)
treeb35c073123e217e8306d0d96467a7297bc7e6991 /content/plugin/webplugin_delegate_stub.cc
parent12b251a3514d18fc598766a1277bb3ca36bc9448 (diff)
downloadchromium_src-481edc5493d2a5bd85ee882b3cf1a21f487a2a94.zip
chromium_src-481edc5493d2a5bd85ee882b3cf1a21f487a2a94.tar.gz
chromium_src-481edc5493d2a5bd85ee882b3cf1a21f487a2a94.tar.bz2
Cleanup NativeMetafile (win) interface and EMF class.
- Rename CreateDc to Init() and remove unused argument (all non-test calls were CreateDc(NULL, NULL). [This matches cross platform interface.] - Remove CreateFileBackedDc from the NativeMetafile interface and make InitToFile() in the EMF class. - Remove CreateFromFile from the NativeMetafile interface and make it InitFromFile() in the EMF class. - Move the CloseEmf method into the destructor, making the Emf class a use once class (matches actual use). BUG=NONE TEST=NONE Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=78666 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=78669 Review URL: http://codereview.chromium.org/6695013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78969 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/plugin/webplugin_delegate_stub.cc')
-rw-r--r--content/plugin/webplugin_delegate_stub.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/plugin/webplugin_delegate_stub.cc b/content/plugin/webplugin_delegate_stub.cc
index 2de6e42..76b4c23 100644
--- a/content/plugin/webplugin_delegate_stub.cc
+++ b/content/plugin/webplugin_delegate_stub.cc
@@ -273,7 +273,7 @@ void WebPluginDelegateStub::OnPrint(base::SharedMemoryHandle* shared_memory,
#if defined(OS_WIN)
scoped_ptr<printing::NativeMetafile> metafile(
printing::NativeMetafileFactory::Create());
- if (!metafile->CreateDc(NULL, NULL)) {
+ if (!metafile->Init()) {
NOTREACHED();
return;
}