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

Unified Diff: tools/ipc_fuzzer/fuzzer/fuzzer.cc

Issue 1869503004: Convert //tools to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More IWYU fails and revert GN cleanup so the right overload is called 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: tools/ipc_fuzzer/fuzzer/fuzzer.cc
diff --git a/tools/ipc_fuzzer/fuzzer/fuzzer.cc b/tools/ipc_fuzzer/fuzzer/fuzzer.cc
index ba59021231eaa9e41d60e2a808664abcc35b0183..e03bef785e5e4d48a9b6020543f6f6f1f845373a 100644
--- a/tools/ipc_fuzzer/fuzzer/fuzzer.cc
+++ b/tools/ipc_fuzzer/fuzzer/fuzzer.cc
@@ -785,7 +785,7 @@ struct FuzzTraits<cc::RenderPassList> {
size_t count = RandElementCount();
for (size_t i = 0; i < count; ++i) {
- scoped_ptr<cc::RenderPass> render_pass = cc::RenderPass::Create();
+ std::unique_ptr<cc::RenderPass> render_pass = cc::RenderPass::Create();
if (!FuzzParam(render_pass.get(), fuzzer))
return false;
p->push_back(std::move(render_pass));
@@ -928,7 +928,7 @@ struct FuzzTraits<content::SyntheticGesturePacket> {
if (!fuzzer->ShouldGenerate())
return true;
- scoped_ptr<content::SyntheticGestureParams> gesture_params;
+ std::unique_ptr<content::SyntheticGestureParams> gesture_params;
switch (RandInRange(
content::SyntheticGestureParams::SYNTHETIC_GESTURE_TYPE_MAX + 1)) {
case content::SyntheticGestureParams::GestureType::

Powered by Google App Engine
This is Rietveld 408576698