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

Unified Diff: tools/ipc_fuzzer/message_replay/replay_process.h

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/message_replay/replay_process.h
diff --git a/tools/ipc_fuzzer/message_replay/replay_process.h b/tools/ipc_fuzzer/message_replay/replay_process.h
index f60c27095331e48f46b407872387f5caeea77d85..9929b72031eb2c28bd7284462ede0437c5a7415e 100644
--- a/tools/ipc_fuzzer/message_replay/replay_process.h
+++ b/tools/ipc_fuzzer/message_replay/replay_process.h
@@ -7,8 +7,9 @@
#include <stddef.h>
+#include <memory>
+
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_loop.h"
#include "base/synchronization/waitable_event.h"
#include "base/threading/thread.h"
@@ -47,12 +48,12 @@ class ReplayProcess : public IPC::Listener {
private:
void SendNextMessage();
- scoped_ptr<IPC::ScopedIPCSupport> mojo_ipc_support_;
- scoped_ptr<IPC::ChannelProxy> channel_;
+ std::unique_ptr<IPC::ScopedIPCSupport> mojo_ipc_support_;
+ std::unique_ptr<IPC::ChannelProxy> channel_;
base::MessageLoop main_loop_;
base::Thread io_thread_;
base::WaitableEvent shutdown_event_;
- scoped_ptr<base::Timer> timer_;
+ std::unique_ptr<base::Timer> timer_;
MessageVector messages_;
size_t message_index_;

Powered by Google App Engine
This is Rietveld 408576698