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

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: std::move and reflow Created 5 years, 1 month 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 | « chrome/common/media_galleries/picasa_types.cc ('k') | content/child/scoped_web_callbacks.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3dfc1d8c4ac7ad4b1ec5be35ed7774dca2eeb4c5..b1bb710f8da638d26d6548958def42edf81a5643 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);
+
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() {
« no previous file with comments | « chrome/common/media_galleries/picasa_types.cc ('k') | content/child/scoped_web_callbacks.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698