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

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

Issue 2607063002: Remove mojo::Array. (Closed)
Patch Set: rebase Created 3 years, 11 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/mojo/type_converters.h
diff --git a/content/child/mojo/type_converters.h b/content/child/mojo/type_converters.h
deleted file mode 100644
index 180cadb6f5476750a44f2564908cadc0a2598df0..0000000000000000000000000000000000000000
--- a/content/child/mojo/type_converters.h
+++ /dev/null
@@ -1,23 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// 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"
-
-namespace mojo {
-
-template <typename T, typename U>
-struct TypeConverter<Array<T>, blink::WebVector<U>> {
- static Array<T> Convert(const blink::WebVector<U>& vector) {
- Array<T> array(vector.size());
- for (size_t i = 0; i < vector.size(); ++i)
- array[i] = TypeConverter<T, U>::Convert(vector[i]);
- return std::move(array);
- }
-};
-
-} // namespace mojo

Powered by Google App Engine
This is Rietveld 408576698