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

Review URL: https://codereview.chromium.org/1810253002

Cr-Commit-Position: refs/heads/master@{#381880}


CrOS-Libchrome-Original-Commit: ff43dcf4c622fb46b062abca1024a89fb01b54c7
1 file changed
tree: 17b9ea0f7273a1aa633ebbaf61d7d0ec536d5fe7
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/