| Index: chrome/renderer/print_web_view_helper_win.cc
|
| diff --git a/chrome/renderer/print_web_view_helper_win.cc b/chrome/renderer/print_web_view_helper_win.cc
|
| index 941aac7abd88e93a9f83a3a3bdfb9e480e47c6af..ff374855f1fc9883f31cc08e13232e3fd48a29b1 100644
|
| --- a/chrome/renderer/print_web_view_helper_win.cc
|
| +++ b/chrome/renderer/print_web_view_helper_win.cc
|
| @@ -74,7 +74,6 @@ void PrintWebViewHelper::PrintPage(const ViewMsg_PrintPage_Params& params,
|
| // Each metafile contains a single page.
|
| scoped_ptr<printing::NativeMetafile> metafile(
|
| printing::NativeMetafileFactory::Create());
|
| - metafile->Init();
|
| DCHECK(metafile->context());
|
| skia::PlatformDevice::InitializeDC(metafile->context());
|
|
|
| @@ -141,7 +140,6 @@ void PrintWebViewHelper::CreatePreviewDocument(
|
| // http://code.google.com/p/chromium/issues/detail?id=62889
|
| scoped_ptr<printing::NativeMetafile> metafile(
|
| printing::NativeMetafileFactory::Create());
|
| - metafile->Init();
|
| DCHECK(metafile->context());
|
| skia::PlatformDevice::InitializeDC(metafile->context());
|
|
|
| @@ -261,7 +259,6 @@ void PrintWebViewHelper::RenderPage(
|
| HBRUSH whiteBrush = static_cast<HBRUSH>(GetStockObject(WHITE_BRUSH));
|
| FillRect(bitmap_dc, &rect, whiteBrush);
|
|
|
| - metafile2->Init();
|
| HDC hdc = metafile2->context();
|
| DCHECK(hdc);
|
| skia::PlatformDevice::InitializeDC(hdc);
|
|
|