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

Unified Diff: printing/image.cc

Issue 6696076: Adding CreateFromData to NativeMetafileFactory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebasing Created 9 years, 9 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: 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);
}

Powered by Google App Engine
This is Rietveld 408576698