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

Unified Diff: printing/printed_document.h

Issue 1863223002: Convert //printing to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « printing/pdf_metafile_skia.cc ('k') | printing/printed_document.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/printed_document.h
diff --git a/printing/printed_document.h b/printing/printed_document.h
index 2231e9ad589b843f251cd78618c904ae6486e28f..6231d2ee4f8c88f60a5bf7d0db43d8482a556c41 100644
--- a/printing/printed_document.h
+++ b/printing/printed_document.h
@@ -6,11 +6,11 @@
#define PRINTING_PRINTED_DOCUMENT_H_
#include <map>
+#include <memory>
#include "base/files/file_path.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "base/strings/string16.h"
#include "base/synchronization/lock.h"
#include "printing/print_settings.h"
@@ -47,7 +47,7 @@ class PRINTING_EXPORT PrintedDocument
// Sets a page's data. 0-based. Takes metafile ownership.
// Note: locks for a short amount of time.
void SetPage(int page_number,
- scoped_ptr<MetafilePlayer> metafile,
+ std::unique_ptr<MetafilePlayer> metafile,
#if defined(OS_WIN)
float shrink,
#endif // OS_WIN
« no previous file with comments | « printing/pdf_metafile_skia.cc ('k') | printing/printed_document.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698