Chromium Code Reviews| Index: components/pairing/proto_decoder.cc |
| diff --git a/components/pairing/proto_decoder.cc b/components/pairing/proto_decoder.cc |
| index f8e42a4bd4d14861c16d90b2cac7c7a1059597ed..4dd181bb5396e89237bfe8caa79fc93b1d8c70c2 100644 |
| --- a/components/pairing/proto_decoder.cc |
| +++ b/components/pairing/proto_decoder.cc |
| @@ -135,6 +135,17 @@ ProtoDecoder::IOBufferRefPtr ProtoDecoder::SendHostStatus( |
| return SendMessage(MESSAGE_HOST_STATUS, serialized_proto, size); |
| } |
| +ProtoDecoder::IOBufferRefPtr ProtoDecoder::SendHostNetwork( |
| + const pairing_api::AddNetwork& message, |
| + int* size) { |
| + std::string serialized_proto; |
| + if (!message.SerializeToString(&serialized_proto)) { |
|
achuithb
2015/11/05 23:26:12
Don't need {}
xdai1
2015/11/06 23:23:02
Done.
|
| + NOTREACHED(); |
| + } |
| + |
| + return SendMessage(MESSAGE_ADD_NETWORK, serialized_proto, size); |
| +} |
| + |
| ProtoDecoder::IOBufferRefPtr ProtoDecoder::SendConfigureHost( |
| const pairing_api::ConfigureHost& message, int* size) { |
| std::string serialized_proto; |