Index: printing/image.cc |
diff --git a/printing/image.cc b/printing/image.cc |
index 2f5d7e3e89d50e76c4370fd1f0f4d9153813fbe3..eeed8ecdde2e3dbef846944f1a87be1977912465 100644 |
--- a/printing/image.cc |
+++ b/printing/image.cc |
@@ -147,8 +147,8 @@ bool Image::LoadPng(const std::string& compressed) { |
bool Image::LoadMetafile(const std::string& data) { |
DCHECK(!data.empty()); |
scoped_ptr<NativeMetafile> metafile( |
- printing::NativeMetafileFactory::Create()); |
- metafile->InitFromData(data.data(), data.size()); |
+ printing::NativeMetafileFactory::CreateFromData(data.data(), |
+ data.size())); |
vandebo (ex-Chrome)
2011/03/24 20:11:55
look for null metafile.
dpapad
2011/03/24 21:08:14
Done.
|
return LoadMetafile(*metafile); |
} |