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

Unified Diff: printing/printed_page.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/printed_document.cc ('k') | printing/printed_page.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/printed_page.h
diff --git a/printing/printed_page.h b/printing/printed_page.h
index 550d992c8413269d798e4737939c3c1089b0f6af..5ab1c17633c1c554beb4f79d71229de78e613aa0 100644
--- a/printing/printed_page.h
+++ b/printing/printed_page.h
@@ -5,9 +5,10 @@
#ifndef PRINTING_PRINTED_PAGE_H_
#define PRINTING_PRINTED_PAGE_H_
+#include <memory>
+
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "printing/metafile.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/size.h"
@@ -24,7 +25,7 @@ class PRINTING_EXPORT PrintedPage
: public base::RefCountedThreadSafe<PrintedPage> {
public:
PrintedPage(int page_number,
- scoped_ptr<MetafilePlayer> metafile,
+ std::unique_ptr<MetafilePlayer> metafile,
const gfx::Size& page_size,
const gfx::Rect& page_content_rect);
@@ -54,7 +55,7 @@ class PRINTING_EXPORT PrintedPage
const int page_number_;
// Actual paint data.
- const scoped_ptr<MetafilePlayer> metafile_;
+ const std::unique_ptr<MetafilePlayer> metafile_;
#if defined(OS_WIN)
// Shrink done in comparison to desired_dpi.
« no previous file with comments | « printing/printed_document.cc ('k') | printing/printed_page.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698