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

Unified Diff: mojo/public/cpp/bindings/map.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
Index: mojo/public/cpp/bindings/map.h
diff --git a/mojo/public/cpp/bindings/map.h b/mojo/public/cpp/bindings/map.h
index 106434bcbdac565763c4a9647ef650b40d0806d1..5771a82aac23357a76b06f780d39f5efe694c663 100644
--- a/mojo/public/cpp/bindings/map.h
+++ b/mojo/public/cpp/bindings/map.h
@@ -10,7 +10,7 @@
#include <utility>
#include "base/logging.h"
-#include "base/macros.h"
+#include "base/move.h"
#include "mojo/public/cpp/bindings/array.h"
#include "mojo/public/cpp/bindings/lib/map_data_internal.h"
#include "mojo/public/cpp/bindings/lib/template_util.h"
@@ -29,6 +29,8 @@
// using the insert() method.
template <typename K, typename V>
class Map {
+ MOVE_ONLY_TYPE_FOR_CPP_03(Map);
+
public:
using Key = K;
using Value = V;
@@ -260,8 +262,6 @@
std::map<Key, Value> map_;
bool is_null_;
-
- DISALLOW_COPY_AND_ASSIGN(Map);
};
// Copies the contents of an std::map to a new Map, optionally changing the
« no previous file with comments | « mojo/public/cpp/bindings/lib/template_util.h ('k') | mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698