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

Unified Diff: chrome/browser/printing/print_view_manager.cc

Issue 6544028: Create a Factory for NativeMetafile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed NativeMetafileFactory class comments Created 9 years, 10 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/browser/printing/print_view_manager.cc
diff --git a/chrome/browser/printing/print_view_manager.cc b/chrome/browser/printing/print_view_manager.cc
index 15cef0a3bea5a163e717c6d856dee9feff8ae291..58a70a975423bd1160e0f6cd20503a43e7cc2984 100644
--- a/chrome/browser/printing/print_view_manager.cc
+++ b/chrome/browser/printing/print_view_manager.cc
@@ -18,7 +18,7 @@
#include "chrome/common/render_messages.h"
#include "chrome/common/render_messages_params.h"
#include "grit/generated_resources.h"
-#include "printing/native_metafile.h"
vandebo (ex-Chrome) 2011/02/23 02:01:41 Still use this.
dpapad 2011/02/24 20:56:59 Done.
+#include "printing/native_metafile_factory.h"
#include "printing/printed_document.h"
#include "ui/base/l10n/l10n_util.h"
@@ -124,7 +124,7 @@ void PrintViewManager::OnDidPrintPage(
#if defined(OS_POSIX) && !defined(OS_MACOSX)
NOTIMPLEMENTED() << " this printing code doesn't quite work yet.";
#else
- scoped_ptr<NativeMetafile> metafile(new NativeMetafile());
+ scoped_ptr<NativeMetafile> metafile(NativeMetafileFactory::CreateMetafile());
if (!metafile->Init(shared_buf.memory(), params.data_size)) {
NOTREACHED() << "Invalid metafile header";
tab_contents()->Stop();
« no previous file with comments | « no previous file | chrome/browser/renderer_host/render_view_host.cc » ('j') | chrome/renderer/print_web_view_helper_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698