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

Unified Diff: blimp/client/session/blimp_client_session.cc

Issue 1933053003: Used oneof in blimp_message.proto (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/session/blimp_client_session.cc
diff --git a/blimp/client/session/blimp_client_session.cc b/blimp/client/session/blimp_client_session.cc
index 711f29442bac5ac7ceb1eb3b7b7975093feafa1e..192eade643b6c5946f591caf748e7adda3c41587 100644
--- a/blimp/client/session/blimp_client_session.cc
+++ b/blimp/client/session/blimp_client_session.cc
@@ -214,19 +214,19 @@ void BlimpClientSession::RegisterFeatures() {
// Register features' message senders and receivers.
tab_control_feature_->set_outgoing_message_processor(
- thread_pipe_manager_->RegisterFeature(BlimpMessage::TAB_CONTROL,
+ thread_pipe_manager_->RegisterFeature(BlimpMessage::kTabControl,
tab_control_feature_.get()));
navigation_feature_->set_outgoing_message_processor(
- thread_pipe_manager_->RegisterFeature(BlimpMessage::NAVIGATION,
+ thread_pipe_manager_->RegisterFeature(BlimpMessage::kNavigation,
navigation_feature_.get()));
render_widget_feature_->set_outgoing_input_message_processor(
- thread_pipe_manager_->RegisterFeature(BlimpMessage::INPUT,
+ thread_pipe_manager_->RegisterFeature(BlimpMessage::kInput,
render_widget_feature_.get()));
render_widget_feature_->set_outgoing_compositor_message_processor(
- thread_pipe_manager_->RegisterFeature(BlimpMessage::COMPOSITOR,
+ thread_pipe_manager_->RegisterFeature(BlimpMessage::kCompositor,
render_widget_feature_.get()));
settings_feature_->set_outgoing_message_processor(
- thread_pipe_manager_->RegisterFeature(BlimpMessage::SETTINGS,
+ thread_pipe_manager_->RegisterFeature(BlimpMessage::kSettings,
settings_feature_.get()));
if (base::CommandLine::ForCurrentProcess()->HasSwitch(
@@ -235,11 +235,11 @@ void BlimpClientSession::RegisterFeatures() {
// Client will not send send any RenderWidget messages, so don't save the
// outgoing BlimpMessageProcessor in the RenderWidgetFeature.
- thread_pipe_manager_->RegisterFeature(BlimpMessage::RENDER_WIDGET,
+ thread_pipe_manager_->RegisterFeature(BlimpMessage::kRenderWidget,
render_widget_feature_.get());
ime_feature_->set_outgoing_message_processor(
- thread_pipe_manager_->RegisterFeature(BlimpMessage::IME,
+ thread_pipe_manager_->RegisterFeature(BlimpMessage::kIme,
ime_feature_.get()));
}

Powered by Google App Engine
This is Rietveld 408576698