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

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: 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/client/feature/tab_control_feature_unittest.cc ('k') | blimp/common/create_blimp_message.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 760842abc72bb5cd32e63d9b1f4782aa071cb4d0..636fbf358ab6dd107be646d61356bb1be22503bf 100644
--- a/blimp/client/session/blimp_client_session.cc
+++ b/blimp/client/session/blimp_client_session.cc
@@ -222,33 +222,33 @@ 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(
- switches::kDownloadWholeDocument))
- settings_feature_->SetRecordWholeDocument(true);
-
// 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()));
+
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kDownloadWholeDocument))
+ settings_feature_->SetRecordWholeDocument(true);
}
void BlimpClientSession::OnConnected() {}
« no previous file with comments | « blimp/client/feature/tab_control_feature_unittest.cc ('k') | blimp/common/create_blimp_message.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698