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

Unified Diff: components/mus/public/cpp/tests/window_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_unittest.cc
diff --git a/components/mus/public/cpp/tests/window_unittest.cc b/components/mus/public/cpp/tests/window_unittest.cc
index 005bc575642cdf4dcbffd57cce14625009c3fa2e..dc51663d6647b26e55ccdae0bfb6cfc36f0920f8 100644
--- a/components/mus/public/cpp/tests/window_unittest.cc
+++ b/components/mus/public/cpp/tests/window_unittest.cc
@@ -791,9 +791,7 @@ class SharedPropertyChangeObserver : public WindowObserver {
std::string VectorToString(const std::vector<uint8_t>* data) {
if (!data)
return "NULL";
- gfx::Size size =
- mojo::TypeConverter<gfx::Size, const std::vector<uint8_t>>::Convert(
- *data);
+ gfx::Size size = mojo::ConvertTo<gfx::Size>(*data);
return base::StringPrintf("%d,%d", size.width(), size.height());
}
« no previous file with comments | « components/mus/public/cpp/tests/window_tree_client_impl_unittest.cc ('k') | components/mus/public/cpp/window_property.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698