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

Unified Diff: mojo/public/cpp/bindings/array.h

Issue 2047633002: Revert of Remove base/move.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.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/edk/embedder/scoped_platform_handle.h ('k') | mojo/public/cpp/bindings/associated_interface_ptr.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/bindings/array.h
diff --git a/mojo/public/cpp/bindings/array.h b/mojo/public/cpp/bindings/array.h
index f1d4e5ccb3653f02819997f2913111e4cb0d554d..e87e5dc6b263706da1b8637c6db131c6bcfea6ae 100644
--- a/mojo/public/cpp/bindings/array.h
+++ b/mojo/public/cpp/bindings/array.h
@@ -13,7 +13,7 @@
#include <utility>
#include <vector>
-#include "base/macros.h"
+#include "base/move.h"
#include "mojo/public/cpp/bindings/lib/array_internal.h"
#include "mojo/public/cpp/bindings/lib/bindings_internal.h"
#include "mojo/public/cpp/bindings/lib/template_util.h"
@@ -25,6 +25,8 @@
// meaning that no value has been assigned to it. Null is distinct from empty.
template <typename T>
class Array {
+ MOVE_ONLY_TYPE_FOR_CPP_03(Array);
+
public:
using ConstRefType = typename std::vector<T>::const_reference;
using RefType = typename std::vector<T>::reference;
@@ -213,8 +215,6 @@
std::vector<T> vec_;
bool is_null_;
-
- DISALLOW_COPY_AND_ASSIGN(Array);
};
// A |TypeConverter| that will create an |Array<T>| containing a copy of the
« no previous file with comments | « mojo/edk/embedder/scoped_platform_handle.h ('k') | mojo/public/cpp/bindings/associated_interface_ptr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698