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

Unified Diff: content/child/mojo/type_converters.h

Issue 1544293002: Convert Pass()→std::move() in //content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/mojo/type_converters.h
diff --git a/content/child/mojo/type_converters.h b/content/child/mojo/type_converters.h
index 44e1687a88e969694ed5630a9ac43fffaa888621..180cadb6f5476750a44f2564908cadc0a2598df0 100644
--- a/content/child/mojo/type_converters.h
+++ b/content/child/mojo/type_converters.h
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include <stddef.h>
+#include <utility>
#include "mojo/public/cpp/bindings/array.h"
#include "third_party/WebKit/public/platform/WebVector.h"
@@ -15,7 +16,7 @@ struct TypeConverter<Array<T>, blink::WebVector<U>> {
Array<T> array(vector.size());
for (size_t i = 0; i < vector.size(); ++i)
array[i] = TypeConverter<T, U>::Convert(vector[i]);
- return array.Pass();
+ return std::move(array);
}
};
« no previous file with comments | « content/child/mojo/mojo_application.cc ('k') | content/child/navigator_connect/service_port_dispatcher_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698