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

Issue 1832133002: mus: Remove unnecessary const from property TypeConverter templates (Closed)

Created:
4 years, 9 months ago by James Cook
Modified:
4 years, 9 months ago
CC:
chromium-reviews, kalyank, rjkroege, sadrul, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mus: Remove unnecessary const from property TypeConverter templates This allows them to be used with the idiomatic mojo::ConvertTo<Foo>() template. (In particular, ConvertTo<Foo>(my_vector) matches my_vector to "const U&" to determine which TypeConverter to call. If my_vector is either a "std::vector" or a "const std::vector" it ends up looking for TypeConverter<Foo, std::vector>. Since the second TypeConverter template parameter isn't const, the compiler can't find our existing TypeConverter<Foo, const std::vector> functions. These functions don't need their template parameter to be const std::vector, as they use "const std::vector&" for their inputs regardless.) BUG=none TEST=compiles Committed: https://crrev.com/da88c32858fdbc6040b07d51019d9f564e37416e Cr-Commit-Position: refs/heads/master@{#383366}

Patch Set 1 #

Patch Set 2 : rebase and fixed some test files #

Patch Set 3 : format #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -75 lines) Patch
M ash/mus/shelf_delegate_mus.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M ash/mus/sysui_application.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M components/mus/public/cpp/lib/property_type_converters.cc View 1 2 6 chunks +16 lines, -26 lines 0 comments Download
M components/mus/public/cpp/property_type_converters.h View 1 1 chunk +18 lines, -18 lines 0 comments Download
M components/mus/public/cpp/tests/property_type_converters_unittest.cc View 1 5 chunks +6 lines, -6 lines 0 comments Download
M components/mus/public/cpp/tests/window_tree_client_impl_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M components/mus/public/cpp/tests/window_unittest.cc View 1 1 chunk +1 line, -3 lines 0 comments Download
M components/mus/public/cpp/window_property.h View 2 chunks +2 lines, -3 lines 0 comments Download
M mash/login/login.cc View 1 chunk +1 line, -1 line 0 comments Download
M mash/screenlock/screenlock.cc View 1 chunk +1 line, -1 line 0 comments Download
M mash/wm/property_util.cc View 1 chunk +1 line, -2 lines 0 comments Download
M mash/wm/user_window_controller_impl.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/views/mus/native_widget_mus.cc View 1 1 chunk +5 lines, -8 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
James Cook
Ken, please take a look. Can you also make sure my CL description is correct?
4 years, 9 months ago (2016-03-25 18:14:26 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1832133002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1832133002/1
4 years, 9 months ago (2016-03-25 18:14:46 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/177610) ios_dbg_simulator_gn on ...
4 years, 9 months ago (2016-03-25 18:18:02 UTC) #6
Ken Rockot(use gerrit already)
woot, lgtm % rebase
4 years, 9 months ago (2016-03-25 19:24:09 UTC) #7
James Cook
Ken, can you take another look? I missed a couple files the first time.
4 years, 9 months ago (2016-03-25 20:27:44 UTC) #8
Ken Rockot(use gerrit already)
still lgtm
4 years, 9 months ago (2016-03-25 20:30:11 UTC) #9
James Cook
Scott, can I get OWNERS?
4 years, 9 months ago (2016-03-25 20:32:25 UTC) #11
sky
LGTM
4 years, 9 months ago (2016-03-25 20:39:34 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1832133002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1832133002/40001
4 years, 9 months ago (2016-03-25 20:45:32 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 9 months ago (2016-03-25 21:29:18 UTC) #15
commit-bot: I haz the power
4 years, 9 months ago (2016-03-25 21:30:09 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/da88c32858fdbc6040b07d51019d9f564e37416e
Cr-Commit-Position: refs/heads/master@{#383366}

Powered by Google App Engine
This is Rietveld 408576698