Index: extensions/browser/api/cast_channel/cast_message_util.cc |
diff --git a/extensions/browser/api/cast_channel/cast_message_util.cc b/extensions/browser/api/cast_channel/cast_message_util.cc |
index 95ba5d4beb1e1c4f8d6704f61b7bd87f73af81f8..3b646610642902fc7ba7822bda2b45e6ed72bd87 100644 |
--- a/extensions/browser/api/cast_channel/cast_message_util.cc |
+++ b/extensions/browser/api/cast_channel/cast_message_util.cc |
@@ -49,8 +49,8 @@ bool MessageInfoToCastMessage(const MessageInfo& message, |
// JS ArrayBuffer |
case base::Value::Type::BINARY: |
message_proto->set_payload_type(CastMessage_PayloadType_BINARY); |
- message_proto->set_payload_binary(message.data->GetBuffer(), |
- message.data->GetSize()); |
+ message_proto->set_payload_binary(message.data->GetBlob().data(), |
+ message.data->GetBlob().size()); |
break; |
default: |
// Unknown value type. message_proto will remain uninitialized because |