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

Unified Diff: components/nacl/browser/nacl_process_host.cc

Issue 1407443002: Remove old C++03 move emulation code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 2 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/nacl/browser/nacl_process_host.cc
diff --git a/components/nacl/browser/nacl_process_host.cc b/components/nacl/browser/nacl_process_host.cc
index e5a507ffea418a7b7c579ef1a3915bb5c84b3ddd..2a38e333b3aed1716d49258de1b7c06a6d8e00a5 100644
--- a/components/nacl/browser/nacl_process_host.cc
+++ b/components/nacl/browser/nacl_process_host.cc
@@ -211,7 +211,8 @@ unsigned NaClProcessHost::keepalive_throttle_interval_milliseconds_ =
// that this only takes a transferred IPC::ChannelHandle or one to be
// transferred via IPC.
class NaClProcessHost::ScopedChannelHandle {
- MOVE_ONLY_TYPE_FOR_CPP_03(ScopedChannelHandle, RValue);
+ MOVE_ONLY_TYPE_FOR_CPP_03(ScopedChannelHandle);
+
dcheng 2015/10/13 21:03:09 clang-format really wants this line.
public:
ScopedChannelHandle() {
}
@@ -219,8 +220,8 @@ class NaClProcessHost::ScopedChannelHandle {
: handle_(handle) {
DCHECK(IsSupportedHandle(handle_));
}
- ScopedChannelHandle(RValue other) : handle_(other.object->handle_) {
- other.object->handle_ = IPC::ChannelHandle();
+ ScopedChannelHandle(ScopedChannelHandle&& other) : handle_(other.handle_) {
+ other.handle_ = IPC::ChannelHandle();
DCHECK(IsSupportedHandle(handle_));
}
~ScopedChannelHandle() {

Powered by Google App Engine
This is Rietveld 408576698