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

Unified Diff: mojo/edk/system/endpoint_relayer.cc

Issue 1355673003: EDK: Add a MakeUnique and use it somewhere. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 3 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: mojo/edk/system/endpoint_relayer.cc
diff --git a/mojo/edk/system/endpoint_relayer.cc b/mojo/edk/system/endpoint_relayer.cc
index 9655f9cfb9f769de2499e9d2a82fc5f3ffa5b7e9..901765151dccf462f3ceed182888ce0ead5fe395 100644
--- a/mojo/edk/system/endpoint_relayer.cc
+++ b/mojo/edk/system/endpoint_relayer.cc
@@ -4,6 +4,8 @@
#include "mojo/edk/system/endpoint_relayer.h"
+#include <utility>
+
#include "base/logging.h"
#include "mojo/edk/system/channel_endpoint.h"
#include "mojo/edk/system/message_in_transit.h"
@@ -30,9 +32,9 @@ void EndpointRelayer::Init(ChannelEndpoint* endpoint0,
endpoints_[1] = endpoint1;
}
-void EndpointRelayer::SetFilter(scoped_ptr<Filter> filter) {
+void EndpointRelayer::SetFilter(std::unique_ptr<Filter> filter) {
MutexLocker locker(&mutex_);
- filter_ = filter.Pass();
+ filter_ = std::move(filter);
}
bool EndpointRelayer::OnReadMessage(unsigned port, MessageInTransit* message) {

Powered by Google App Engine
This is Rietveld 408576698