Index: printing/printed_document.cc |
diff --git a/printing/printed_document.cc b/printing/printed_document.cc |
index c231befd87e92cd7d2dc5a2d305dcdf2bfb11647..472ebd5b88582217e6f26a28f7907cfc0334ccf4 100644 |
--- a/printing/printed_document.cc |
+++ b/printing/printed_document.cc |
@@ -7,6 +7,7 @@ |
#include <algorithm> |
#include <set> |
#include <string> |
+#include <utility> |
#include <vector> |
#include "base/bind.h" |
@@ -118,8 +119,8 @@ void PrintedDocument::SetPage(int page_number, |
const gfx::Rect& page_rect) { |
// Notice the page_number + 1, the reason is that this is the value that will |
// be shown. Users dislike 0-based counting. |
- scoped_refptr<PrintedPage> page( |
- new PrintedPage(page_number + 1, metafile.Pass(), paper_size, page_rect)); |
+ scoped_refptr<PrintedPage> page(new PrintedPage( |
+ page_number + 1, std::move(metafile), paper_size, page_rect)); |
#if defined(OS_WIN) |
page->set_shrink_factor(shrink); |
#endif // OS_WIN |