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

Unified Diff: extensions/browser/api/cast_channel/cast_message_util.cc

Issue 2841623003: Remove base::Value::Get{Buffer,Size} (Closed)
Patch Set: std::vector::assign instead of std::vector::operator= Created 3 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
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
« no previous file with comments | « content/common/android/gin_java_bridge_value.cc ('k') | extensions/browser/api/declarative/declarative_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698