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

Unified Diff: printing/emf_win.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/backend/win_helper.cc ('k') | printing/emf_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/emf_win.h
diff --git a/printing/emf_win.h b/printing/emf_win.h
index da14f1c2f16df932630835b325c4bc50c4d78deb..653fe595d9cbae547a20add2399ca1ca70fb5002 100644
--- a/printing/emf_win.h
+++ b/printing/emf_win.h
@@ -5,16 +5,16 @@
#ifndef PRINTING_EMF_WIN_H_
#define PRINTING_EMF_WIN_H_
-#include <windows.h>
#include <stddef.h>
#include <stdint.h>
+#include <windows.h>
+#include <memory>
#include <vector>
#include "base/compiler_specific.h"
#include "base/gtest_prod_util.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "printing/metafile.h"
namespace base {
@@ -88,11 +88,11 @@ class PRINTING_EXPORT Emf : public Metafile {
// Returns new metafile with only bitmap created by playback of the current
// metafile. Returns NULL if fails.
- scoped_ptr<Emf> RasterizeMetafile(int raster_area_in_pixels) const;
+ std::unique_ptr<Emf> RasterizeMetafile(int raster_area_in_pixels) const;
// Returns new metafile where AlphaBlend replaced by bitmaps. Returns NULL
// if fails.
- scoped_ptr<Emf> RasterizeAlphaBlend() const;
+ std::unique_ptr<Emf> RasterizeAlphaBlend() const;
private:
FRIEND_TEST_ALL_PREFIXES(EmfTest, DC);
« no previous file with comments | « printing/backend/win_helper.cc ('k') | printing/emf_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698