DescriptionMojo 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 #
Messages
Total messages: 13 (5 generated)
|