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

Unified Diff: components/mus/public/cpp/window_property.h

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 | « components/mus/public/cpp/tests/window_unittest.cc ('k') | mash/login/login.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/public/cpp/window_property.h
diff --git a/components/mus/public/cpp/window_property.h b/components/mus/public/cpp/window_property.h
index d89a7b7e13541310b10d4fb02b203384e2b3812d..fafe416d9ec1b58da052d56f2d37238cc7f25d8c 100644
--- a/components/mus/public/cpp/window_property.h
+++ b/components/mus/public/cpp/window_property.h
@@ -47,7 +47,7 @@ namespace mus {
template <typename T>
void Window::SetSharedProperty(const std::string& name, const T& data) {
const std::vector<uint8_t> bytes =
- mojo::TypeConverter<const std::vector<uint8_t>, T>::Convert(data);
+ mojo::TypeConverter<std::vector<uint8_t>, T>::Convert(data);
SetSharedPropertyInternal(name, &bytes);
}
@@ -55,8 +55,7 @@ template <typename T>
T Window::GetSharedProperty(const std::string& name) const {
DCHECK(HasSharedProperty(name));
auto it = properties_.find(name);
- return mojo::TypeConverter<T, const std::vector<uint8_t>>::Convert(
- it->second);
+ return mojo::TypeConverter<T, std::vector<uint8_t>>::Convert(it->second);
}
namespace {
« no previous file with comments | « components/mus/public/cpp/tests/window_unittest.cc ('k') | mash/login/login.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698