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

Unified Diff: components/printing/test/mock_printer.h

Issue 1884743002: Convert a few components from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lint 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
Index: components/printing/test/mock_printer.h
diff --git a/components/printing/test/mock_printer.h b/components/printing/test/mock_printer.h
index 37cae6c813b57348f7ebca067be46eb1a052b394..5eaba45b01f8c9e40a6b2c318c450c4f2cb204fd 100644
--- a/components/printing/test/mock_printer.h
+++ b/components/printing/test/mock_printer.h
@@ -7,12 +7,12 @@
#include <stdint.h>
+#include <memory>
#include <string>
#include <vector>
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "base/strings/string16.h"
#include "printing/image.h"
#include "third_party/WebKit/public/web/WebPrintScalingOption.h"
@@ -44,7 +44,7 @@ class MockPrinterPage : public base::RefCounted<MockPrinterPage> {
virtual ~MockPrinterPage();
uint32_t source_size_;
- scoped_ptr<uint8_t[]> source_data_;
+ std::unique_ptr<uint8_t[]> source_data_;
printing::Image image_;
DISALLOW_COPY_AND_ASSIGN(MockPrinterPage);
« no previous file with comments | « components/printing/renderer/print_web_view_helper_mac.mm ('k') | components/printing/test/print_mock_render_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698