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

Issue 1810253002: Mojo C++ bindings: fix sanity check of wtf string serialization. (Closed)

Created:
4 years, 9 months ago by yzshen1
Modified:
4 years, 9 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_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: fix sanity check of wtf string serialization. Previously the code had a check that we use exactly the same WTF::String object for GetSerializedSize_ and Serialize_ call. However, because WTF::String is ref-counted, we may end up using different WTF::String objects referring to the same contents. That may happen, e.g., when moving WTF::String to a different container. This CL changes the sanity check to verify that the size of WTF::String remains unchanged. BUG=595791 Committed: https://crrev.com/ff43dcf4c622fb46b062abca1024a89fb01b54c7 Cr-Commit-Position: refs/heads/master@{#381880}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -11 lines) Patch
M mojo/public/cpp/bindings/lib/wtf_string_serialization.cc View 4 chunks +10 lines, -11 lines 0 comments Download

Messages

Total messages: 13 (5 generated)
yzshen1
Hi, Ken. Would you please take a look? Thanks!
4 years, 9 months ago (2016-03-18 02:19:03 UTC) #3
yzshen1
Hi, Ken. Would you please take a look? Thanks!
4 years, 9 months ago (2016-03-18 02:19:03 UTC) #4
Ken Rockot(use gerrit already)
I don't fully understand this - how can it happen that a WTF::String moves to ...
4 years, 9 months ago (2016-03-18 02:40:19 UTC) #5
yzshen1
On 2016/03/18 02:40:19, Ken Rockot wrote: > I don't fully understand this - how can ...
4 years, 9 months ago (2016-03-18 02:46:22 UTC) #6
Ken Rockot(use gerrit already)
I see! Subtle. LGTM
4 years, 9 months ago (2016-03-18 02:47:53 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1810253002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1810253002/1
4 years, 9 months ago (2016-03-18 02:49:29 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 9 months ago (2016-03-18 03:19:58 UTC) #11
commit-bot: I haz the power
4 years, 9 months ago (2016-03-18 03:21:46 UTC) #13
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/ff43dcf4c622fb46b062abca1024a89fb01b54c7
Cr-Commit-Position: refs/heads/master@{#381880}

Powered by Google App Engine
This is Rietveld 408576698