Commit 8c4e8a9b authored by kwiberg's avatar kwiberg Committed by Commit bot

Use rtc::Buffer::size() instead of rtc::Buffer::length()

The latter is just a backwards-compatibility redirect to the former,
and I'm hoping to get rid of it.

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

Cr-Commit-Position: refs/heads/master@{#322473}
parent 1e8ac18c
...@@ -293,10 +293,10 @@ void RtcDataChannelHandler::OnMessage(scoped_ptr<webrtc::DataBuffer> buffer) { ...@@ -293,10 +293,10 @@ void RtcDataChannelHandler::OnMessage(scoped_ptr<webrtc::DataBuffer> buffer) {
if (buffer->binary) { if (buffer->binary) {
webkit_client_->didReceiveRawData(buffer->data.data(), webkit_client_->didReceiveRawData(buffer->data.data(),
buffer->data.length()); buffer->data.size());
} else { } else {
base::string16 utf16; base::string16 utf16;
if (!base::UTF8ToUTF16(buffer->data.data(), buffer->data.length(), if (!base::UTF8ToUTF16(buffer->data.data(), buffer->data.size(),
&utf16)) { &utf16)) {
LOG(ERROR) << "Failed convert received data to UTF16"; LOG(ERROR) << "Failed convert received data to UTF16";
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment