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

Unified Diff: content/child/scoped_web_callbacks.h

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: content/child/scoped_web_callbacks.h
diff --git a/content/child/scoped_web_callbacks.h b/content/child/scoped_web_callbacks.h
index 7f578dda93f41a2eb9d6f7918694241ad5aa4d7d..0aa36bc4480ffe00cbe6c2ae5921aeae70573670 100644
--- a/content/child/scoped_web_callbacks.h
+++ b/content/child/scoped_web_callbacks.h
@@ -64,7 +64,7 @@
// our desired default behavior before deleting the WebCallbacks.
template <typename CallbacksType>
class ScopedWebCallbacks {
- MOVE_ONLY_TYPE_FOR_CPP_03(ScopedWebCallbacks, RValue);
+ MOVE_ONLY_TYPE_FOR_CPP_03(ScopedWebCallbacks);
public:
using DestructionCallback =
@@ -80,11 +80,11 @@ class ScopedWebCallbacks {
destruction_callback_.Run(callbacks_.Pass());
}
- ScopedWebCallbacks(RValue other) { *this = other; }
+ ScopedWebCallbacks(ScopedWebCallbacks&& other) { *this = other.Pass(); }
- ScopedWebCallbacks& operator=(RValue other) {
- callbacks_ = other.object->callbacks_.Pass();
- destruction_callback_ = other.object->destruction_callback_;
+ ScopedWebCallbacks& operator=(ScopedWebCallbacks&& other) {
+ callbacks_ = other.callbacks_.Pass();
+ destruction_callback_ = other.destruction_callback_;
return *this;
}

Powered by Google App Engine
This is Rietveld 408576698