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

Unified Diff: printing/backend/printing_info_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/print_backend_win.cc ('k') | printing/backend/printing_info_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/backend/printing_info_win.h
diff --git a/printing/backend/printing_info_win.h b/printing/backend/printing_info_win.h
index 896ed12a763be49d43e5cee6baa25431ed0a0c8d..0fd1160efc5935065986ce71d5b9cbaabcb7ed5a 100644
--- a/printing/backend/printing_info_win.h
+++ b/printing/backend/printing_info_win.h
@@ -9,7 +9,8 @@
#include <stdint.h>
#include <winspool.h>
-#include "base/memory/scoped_ptr.h"
+#include <memory>
+
#include "printing/printing_export.h"
namespace printing {
@@ -34,7 +35,7 @@ class PrinterInfo {
}
private:
- scoped_ptr<uint8_t[]> buffer_;
+ std::unique_ptr<uint8_t[]> buffer_;
};
// This class is designed to work with DRIVER_INFO_X structures
@@ -52,7 +53,7 @@ class DriverInfo {
}
private:
- scoped_ptr<uint8_t[]> buffer_;
+ std::unique_ptr<uint8_t[]> buffer_;
};
} // namespace internal
« no previous file with comments | « printing/backend/print_backend_win.cc ('k') | printing/backend/printing_info_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698