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

Unified Diff: blimp/net/browser_connection_handler.cc

Issue 1933053003: Used oneof in blimp_message.proto (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits Created 4 years, 7 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
« no previous file with comments | « blimp/net/browser_connection_handler.h ('k') | blimp/net/browser_connection_handler_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/net/browser_connection_handler.cc
diff --git a/blimp/net/browser_connection_handler.cc b/blimp/net/browser_connection_handler.cc
index 1b4ea1dd8a65977cd77d2026e87d45275628e3a7..37519f7b9db40ca747886ab306e11324ba40367b 100644
--- a/blimp/net/browser_connection_handler.cc
+++ b/blimp/net/browser_connection_handler.cc
@@ -35,10 +35,10 @@ BrowserConnectionHandler::~BrowserConnectionHandler() {}
std::unique_ptr<BlimpMessageProcessor>
BrowserConnectionHandler::RegisterFeature(
- BlimpMessage::Type type,
+ BlimpMessage::FeatureCase feature_case,
BlimpMessageProcessor* incoming_processor) {
- demultiplexer_->AddProcessor(type, incoming_processor);
- return multiplexer_->CreateSenderForType(type);
+ demultiplexer_->AddProcessor(feature_case, incoming_processor);
+ return multiplexer_->CreateSender(feature_case);
}
void BrowserConnectionHandler::HandleConnection(
« no previous file with comments | « blimp/net/browser_connection_handler.h ('k') | blimp/net/browser_connection_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698