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

Unified Diff: components/mus/public/cpp/tests/window_tree_client_impl_unittest.cc

Issue 1832133002: mus: Remove unnecessary const from property TypeConverter templates (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: format Created 4 years, 9 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: components/mus/public/cpp/tests/window_tree_client_impl_unittest.cc
diff --git a/components/mus/public/cpp/tests/window_tree_client_impl_unittest.cc b/components/mus/public/cpp/tests/window_tree_client_impl_unittest.cc
index 909c873ae0c8e3c2f6097136c29adcacc31c5683..822354a8329fc3e226a556c9025911eb31c03340 100644
--- a/components/mus/public/cpp/tests/window_tree_client_impl_unittest.cc
+++ b/components/mus/public/cpp/tests/window_tree_client_impl_unittest.cc
@@ -37,7 +37,7 @@ namespace mus {
mojo::Array<uint8_t> Int32ToPropertyTransportValue(int32_t value) {
const std::vector<uint8_t> bytes =
- mojo::TypeConverter<const std::vector<uint8_t>, int32_t>::Convert(value);
+ mojo::ConvertTo<std::vector<uint8_t>>(value);
mojo::Array<uint8_t> transport_value;
transport_value.resize(bytes.size());
memcpy(&transport_value.front(), &(bytes.front()), bytes.size());

Powered by Google App Engine
This is Rietveld 408576698