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

Issue 1683863002: Mojo C++ bindings: make mojo::Map<K,V> more friendly with std::map<K,V>. (Closed)

Created:
4 years, 10 months ago by yzshen1
Modified:
4 years, 10 months ago
Reviewers:
Elliot Glaysher, sky
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, dcheng, abarth-chromium, Aaron Boodman, yzshen+watch_chromium.org, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mojo C++ bindings: make mojo::Map<K,V> more friendly with std::map<K,V>. This CL: - removes a hack that handles move-only elements before C++11 support. With this change the underlying storage of mojo::Map<K,V> is always std::map<K,V>. - adds "Map(std::map<K,V>&&)". - adds "const std::map<K,V>& storage() const". - adds "std::map<K,V> PassStorage()". - removes the home-made ConstMapIterator; uses std::map<K,V>::const_iterator instead. BUG=583738 Committed: https://crrev.com/eb03d056f6f1535b78a9efce05898c4398d9d51c Cr-Commit-Position: refs/heads/master@{#374559}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -268 lines) Patch
M components/clipboard/clipboard_standalone_impl.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M mojo/public/cpp/bindings/lib/map_internal.h View 2 chunks +5 lines, -181 lines 0 comments Download
M mojo/public/cpp/bindings/lib/map_serialization.h View 1 chunk +2 lines, -3 lines 0 comments Download
M mojo/public/cpp/bindings/map.h View 1 12 chunks +63 lines, -78 lines 0 comments Download
M mojo/public/cpp/bindings/tests/map_unittest.cc View 3 chunks +39 lines, -4 lines 0 comments Download

Messages

Total messages: 18 (9 generated)
yzshen1
Hi, Scott. Would you please take a look? Thanks!
4 years, 10 months ago (2016-02-09 21:23:17 UTC) #2
sky
LGTM
4 years, 10 months ago (2016-02-09 21:52:17 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1683863002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1683863002/40001
4 years, 10 months ago (2016-02-09 23:42:07 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/144489)
4 years, 10 months ago (2016-02-09 23:53:56 UTC) #8
yzshen1
On 2016/02/09 23:53:56, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 10 months ago (2016-02-09 23:56:18 UTC) #11
Elliot Glaysher
lgtm
4 years, 10 months ago (2016-02-09 23:56:45 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1683863002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1683863002/40001
4 years, 10 months ago (2016-02-09 23:59:37 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 10 months ago (2016-02-10 01:08:39 UTC) #16
commit-bot: I haz the power
4 years, 10 months ago (2016-02-10 01:09:27 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/eb03d056f6f1535b78a9efce05898c4398d9d51c
Cr-Commit-Position: refs/heads/master@{#374559}

Powered by Google App Engine
This is Rietveld 408576698