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

Unified Diff: mojo/message_pump/message_pump_mojo.cc

Issue 2069663002: Some scoped_ptr -> std::unique_ptr conversion, especially under //mojo. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 6 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 | « mojo/message_pump/handle_watcher_unittest.cc ('k') | mojo/message_pump/message_pump_mojo_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/message_pump/message_pump_mojo.cc
diff --git a/mojo/message_pump/message_pump_mojo.cc b/mojo/message_pump/message_pump_mojo.cc
index 471a0ad8332741702f947edc443e12cf78a0e3f0..63373a5a1aff5f1e8a6574bdd7d22be017eff757 100644
--- a/mojo/message_pump/message_pump_mojo.cc
+++ b/mojo/message_pump/message_pump_mojo.cc
@@ -5,6 +5,7 @@
#include "mojo/message_pump/message_pump_mojo.h"
#include <algorithm>
+#include <memory>
#include <vector>
#include "base/debug/alias.h"
@@ -57,8 +58,8 @@ struct MessagePumpMojo::RunState {
ScopedMessagePipeHandle write_handle;
// Cached structures to avoid the heap allocation cost of std::vector<>.
- scoped_ptr<WaitState> wait_state;
- scoped_ptr<HandleToHandlerList> cloned_handlers;
+ std::unique_ptr<WaitState> wait_state;
+ std::unique_ptr<HandleToHandlerList> cloned_handlers;
bool should_quit;
};
« no previous file with comments | « mojo/message_pump/handle_watcher_unittest.cc ('k') | mojo/message_pump/message_pump_mojo_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698