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

Unified Diff: ui/views/mus/native_widget_mus.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
« no previous file with comments | « mash/wm/user_window_controller_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/native_widget_mus.cc
diff --git a/ui/views/mus/native_widget_mus.cc b/ui/views/mus/native_widget_mus.cc
index 9b99d6bd4aeda9e11a24d3a5d9dbad17da8be47c..48eb6d045af523aab7e00219b2fb5b10715f98d9 100644
--- a/ui/views/mus/native_widget_mus.cc
+++ b/ui/views/mus/native_widget_mus.cc
@@ -349,25 +349,22 @@ void NativeWidgetMus::ConfigurePropertiesForNewWindow(
std::map<std::string, std::vector<uint8_t>>* properties) {
if (!init_params.bounds.IsEmpty()) {
(*properties)[mus::mojom::WindowManager::kUserSetBounds_Property] =
- mojo::TypeConverter<const std::vector<uint8_t>, gfx::Rect>::Convert(
- init_params.bounds);
+ mojo::ConvertTo<std::vector<uint8_t>>(init_params.bounds);
}
if (!Widget::RequiresNonClientView(init_params.type))
return;
(*properties)[mus::mojom::WindowManager::kWindowType_Property] =
- mojo::TypeConverter<const std::vector<uint8_t>, int32_t>::Convert(
- static_cast<int32_t>(
- mojo::ConvertTo<mus::mojom::WindowType>(init_params.type)));
+ mojo::ConvertTo<std::vector<uint8_t>>(static_cast<int32_t>(
+ mojo::ConvertTo<mus::mojom::WindowType>(init_params.type)));
(*properties)[mus::mojom::WindowManager::kResizeBehavior_Property] =
- mojo::TypeConverter<const std::vector<uint8_t>, int32_t>::Convert(
+ mojo::ConvertTo<std::vector<uint8_t>>(
ResizeBehaviorFromDelegate(init_params.delegate));
SkBitmap app_icon = AppIconFromDelegate(init_params.delegate);
if (!app_icon.isNull()) {
(*properties)[mus::mojom::WindowManager::kWindowAppIcon_Property] =
- mojo::TypeConverter<const std::vector<uint8_t>, SkBitmap>::Convert(
- app_icon);
+ mojo::ConvertTo<std::vector<uint8_t>>(app_icon);
}
}
« no previous file with comments | « mash/wm/user_window_controller_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698