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

Unified Diff: blimp/client/core/session/assignment_source.cc

Issue 2439403003: Refactor BlimpConnection to TCPConnection (Closed)
Patch Set: Added missing Engine Transport Created 4 years, 2 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: blimp/client/core/session/assignment_source.cc
diff --git a/blimp/client/core/session/assignment_source.cc b/blimp/client/core/session/assignment_source.cc
index bc43889aaa78dde96310987318eecf94d2d50714..7f335f6bd4270acb14002d91bc676ce658c42fab 100644
--- a/blimp/client/core/session/assignment_source.cc
+++ b/blimp/client/core/session/assignment_source.cc
@@ -51,6 +51,7 @@ const char kPortKey[] = "port";
const char kCertificateKey[] = "certificate";
// Possible arguments for the "--engine-transport" command line parameter.
+const char kGrpcTransportValue[] = "grpc";
const char kSSLTransportValue[] = "ssl";
const char kTCPTransportValue[] = "tcp";
@@ -138,6 +139,8 @@ Assignment GetAssignmentFromCommandLine() {
assignment.transport_protocol = Assignment::TransportProtocol::SSL;
} else if (transport_str == kTCPTransportValue) {
assignment.transport_protocol = Assignment::TransportProtocol::TCP;
+ } else if (transport_str == kGrpcTransportValue) {
+ assignment.transport_protocol = Assignment::TransportProtocol::GRPC;
} else {
DLOG(FATAL) << "Invalid engine transport " << transport_str;
return Assignment();

Powered by Google App Engine
This is Rietveld 408576698