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

Unified Diff: third_party/mojo/src/mojo/public/cpp/bindings/lib/message_builder.cc

Issue 954643002: Update mojo sdk to rev 3d23dae011859a2aae49f1d1adde705c8e85d819 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use run_renderer_in_process() Created 5 years, 10 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: third_party/mojo/src/mojo/public/cpp/bindings/lib/message_builder.cc
diff --git a/third_party/mojo/src/mojo/public/cpp/bindings/lib/message_builder.cc b/third_party/mojo/src/mojo/public/cpp/bindings/lib/message_builder.cc
index cc914e8194a2634ab0231114348b9e61ae3e8ab8..837ac81c8513db38c72741bc3b415aa85419da1d 100644
--- a/third_party/mojo/src/mojo/public/cpp/bindings/lib/message_builder.cc
+++ b/third_party/mojo/src/mojo/public/cpp/bindings/lib/message_builder.cc
@@ -19,7 +19,9 @@ MessageBuilder::MessageBuilder(uint32_t name, size_t payload_size)
: buf_(sizeof(MessageHeader) + payload_size) {
MessageHeader* header;
Allocate(&buf_, &header);
- header->num_fields = 2;
+ // TODO(yzshen): In order to work with other bindings which still interprets
+ // the |version| field as |num_fields|, set it to version 2 for now.
+ header->version = 2;
header->name = name;
}
@@ -41,7 +43,9 @@ MessageWithRequestIDBuilder::MessageWithRequestIDBuilder(uint32_t name,
: MessageBuilder(sizeof(MessageHeaderWithRequestID) + payload_size) {
MessageHeaderWithRequestID* header;
Allocate(&buf_, &header);
- header->num_fields = 3;
+ // TODO(yzshen): In order to work with other bindings which still interprets
+ // the |version| field as |num_fields|, set it to version 3 for now.
+ header->version = 3;
header->name = name;
header->flags = flags;
header->request_id = request_id;

Powered by Google App Engine
This is Rietveld 408576698