| Index: printing/pdf_metafile_skia.cc
|
| diff --git a/printing/pdf_metafile_skia.cc b/printing/pdf_metafile_skia.cc
|
| index e68c0cf12266497c44ea96de39577bd956550c3d..04a8c40f1bd39349498fda7eaa3a8b813a6a469d 100644
|
| --- a/printing/pdf_metafile_skia.cc
|
| +++ b/printing/pdf_metafile_skia.cc
|
| @@ -300,10 +300,10 @@ scoped_ptr<PdfMetafileSkia> PdfMetafileSkia::GetMetafileForCurrentPage() {
|
| scoped_ptr<PdfMetafileSkia> metafile(new PdfMetafileSkia);
|
|
|
| if (data_->pages_.size() == 0)
|
| - return metafile.Pass();
|
| + return metafile;
|
|
|
| if (data_->recorder_.getRecordingCanvas()) // page outstanding
|
| - return metafile.Pass();
|
| + return metafile;
|
|
|
| const Page& page = data_->pages_.back();
|
|
|
| @@ -312,7 +312,7 @@ scoped_ptr<PdfMetafileSkia> PdfMetafileSkia::GetMetafileForCurrentPage() {
|
| if (!metafile->FinishDocument()) // Generate PDF.
|
| metafile.reset();
|
|
|
| - return metafile.Pass();
|
| + return metafile;
|
| }
|
|
|
| } // namespace printing
|
|
|