Index: mojo/public/cpp/bindings/wtf_array.h |
diff --git a/mojo/public/cpp/bindings/wtf_array.h b/mojo/public/cpp/bindings/wtf_array.h |
index e45d5b012afe36f56373d0b7bc317aa920e60d97..0e157f2ceea1788bcb1e846dcf99b39ee0f8646b 100644 |
--- a/mojo/public/cpp/bindings/wtf_array.h |
+++ b/mojo/public/cpp/bindings/wtf_array.h |
@@ -8,7 +8,7 @@ |
#include <stddef.h> |
#include <utility> |
-#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 @@ |
// - method PassStorage() passes the underlying WTF::Vector. |
template <typename T> |
class WTFArray { |
+ MOVE_ONLY_TYPE_FOR_CPP_03(WTFArray); |
+ |
public: |
using Data_ = internal::Array_Data< |
typename internal::GetDataTypeAsArrayElement<T>::Data>; |
@@ -173,7 +175,6 @@ |
} |
private: |
- // TODO(dcheng): Use an explicit conversion operator. |
typedef WTF::Vector<T> WTFArray::*Testable; |
public: |
@@ -199,8 +200,6 @@ |
WTF::Vector<T> vec_; |
bool is_null_; |
- |
- DISALLOW_COPY_AND_ASSIGN(WTFArray); |
}; |
} // namespace mojo |