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

Unified Diff: components/pairing/proto_decoder.cc

Issue 1428353002: Network Setup from Shark to Remora. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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: 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;
« chrome/browser/chromeos/login/wizard_controller.cc ('K') | « components/pairing/proto_decoder.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698