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

Unified Diff: content/renderer/media/rtc_data_channel_handler.cc

Issue 1036653004: Use rtc::Buffer::size() instead of rtc::Buffer::length() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/rtc_data_channel_handler.cc
diff --git a/content/renderer/media/rtc_data_channel_handler.cc b/content/renderer/media/rtc_data_channel_handler.cc
index 5a21184dcc717ab7afb1b3836416a7387707f856..91602d77eace0d6137120013d87d73faff79f4fa 100644
--- a/content/renderer/media/rtc_data_channel_handler.cc
+++ b/content/renderer/media/rtc_data_channel_handler.cc
@@ -293,10 +293,10 @@ void RtcDataChannelHandler::OnMessage(scoped_ptr<webrtc::DataBuffer> buffer) {
if (buffer->binary) {
webkit_client_->didReceiveRawData(buffer->data.data(),
- buffer->data.length());
+ buffer->data.size());
} else {
base::string16 utf16;
- if (!base::UTF8ToUTF16(buffer->data.data(), buffer->data.length(),
+ if (!base::UTF8ToUTF16(buffer->data.data(), buffer->data.size(),
&utf16)) {
LOG(ERROR) << "Failed convert received data to UTF16";
return;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698