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

Unified Diff: mash/wm/property_util.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/screenlock/screenlock.cc ('k') | mash/wm/user_window_controller_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/wm/property_util.cc
diff --git a/mash/wm/property_util.cc b/mash/wm/property_util.cc
index 5fa4931b3b3532424b53fa92072b89428d44b2c6..a7d2797d0e172633bc8d44272e29ce3390766f77 100644
--- a/mash/wm/property_util.cc
+++ b/mash/wm/property_util.cc
@@ -112,8 +112,7 @@ mus::mojom::WindowType GetWindowType(
properties.find(mus::mojom::WindowManager::kWindowType_Property);
if (iter != properties.end()) {
return static_cast<mus::mojom::WindowType>(
- mojo::TypeConverter<int32_t, const std::vector<uint8_t>>::Convert(
- iter->second));
+ mojo::ConvertTo<int32_t>(iter->second));
}
return mus::mojom::WindowType::POPUP;
}
« no previous file with comments | « mash/screenlock/screenlock.cc ('k') | mash/wm/user_window_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698