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

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

Issue 1097043002: Request char* return type explicitly from rtc::Buffer::data() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 91602d77eace0d6137120013d87d73faff79f4fa..09a57a733b19a21749b6567c67158856cd120b21 100644
--- a/content/renderer/media/rtc_data_channel_handler.cc
+++ b/content/renderer/media/rtc_data_channel_handler.cc
@@ -292,11 +292,11 @@ void RtcDataChannelHandler::OnMessage(scoped_ptr<webrtc::DataBuffer> buffer) {
}
if (buffer->binary) {
- webkit_client_->didReceiveRawData(buffer->data.data(),
+ webkit_client_->didReceiveRawData(buffer->data.data<char>(),
buffer->data.size());
} else {
base::string16 utf16;
- if (!base::UTF8ToUTF16(buffer->data.data(), buffer->data.size(),
+ if (!base::UTF8ToUTF16(buffer->data.data<char>(), 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