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

Issue 1933053003: Used oneof in blimp_message.proto (Closed)

Created:
4 years, 7 months ago by shaktisahu
Modified:
4 years, 7 months ago
Reviewers:
nyquist, *Kevin M, Wez
CC:
chromium-reviews, cbentzel+watch_chromium.org, anandc+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, nyquist+watch-blimp_chromium.org, marcinjb+watch-blimp_chromium.org, jessicag+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, dtrainor+watch-blimp_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Used oneof in blimp_message.proto oneof is a way to set zero or at most one field out of a set of optional fields in a proto. Used oneof in blimp_message.proto for the feature specific messages. Removed the enum that specifies which feature is currently in use as this is not required any more. BUG=570371 Committed: https://crrev.com/eb552d3ed748c438f7861ec9b75ec30d404a7ac3 Cr-Commit-Position: refs/heads/master@{#395243}

Patch Set 1 #

Total comments: 32

Patch Set 2 : Compared specific 'case' field into DCHECKs #

Total comments: 4

Patch Set 3 : Addressed Kevin's comments #

Total comments: 18

Patch Set 4 : Added oneof to protocol_control.proto #

Total comments: 40

Patch Set 5 : Added oneof to tab_control.proto and more cleanup #

Total comments: 5

Patch Set 6 : Nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+228 lines, -301 lines) Patch
M blimp/client/feature/ime_feature.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M blimp/client/feature/navigation_feature.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M blimp/client/feature/render_widget_feature.cc View 1 2 3 4 1 chunk +6 lines, -6 lines 0 comments Download
M blimp/client/feature/tab_control_feature.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M blimp/client/feature/tab_control_feature_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M blimp/client/session/blimp_client_session.cc View 1 2 3 4 1 chunk +11 lines, -11 lines 0 comments Download
M blimp/common/create_blimp_message.cc View 1 2 3 4 8 chunks +3 lines, -19 lines 0 comments Download
M blimp/common/create_blimp_message_unittest.cc View 1 2 3 4 2 chunks +5 lines, -4 lines 0 comments Download
M blimp/common/logging.h View 1 2 1 chunk +6 lines, -5 lines 0 comments Download
M blimp/common/logging.cc View 1 2 3 4 5 chunks +21 lines, -21 lines 0 comments Download
M blimp/common/logging_unittest.cc View 1 2 3 4 8 chunks +6 lines, -15 lines 0 comments Download
M blimp/common/proto/blimp_message.proto View 1 2 3 2 chunks +10 lines, -28 lines 0 comments Download
M blimp/common/proto/protocol_control.proto View 1 2 3 1 chunk +4 lines, -13 lines 0 comments Download
M blimp/common/proto/tab_control.proto View 1 2 3 4 1 chunk +7 lines, -14 lines 0 comments Download
M blimp/engine/feature/engine_render_widget_feature.cc View 4 chunks +8 lines, -8 lines 0 comments Download
M blimp/engine/feature/engine_render_widget_feature_unittest.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M blimp/engine/feature/engine_settings_feature.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M blimp/engine/session/blimp_engine_session.cc View 1 2 3 4 3 chunks +15 lines, -15 lines 0 comments Download
M blimp/net/blimp_connection_unittest.cc View 1 2 2 chunks +5 lines, -6 lines 0 comments Download
M blimp/net/blimp_message_checkpointer.cc View 1 2 3 1 chunk +1 line, -3 lines 0 comments Download
M blimp/net/blimp_message_checkpointer_unittest.cc View 1 2 3 5 chunks +6 lines, -18 lines 0 comments Download
M blimp/net/blimp_message_demultiplexer.h View 1 2 3 4 5 2 chunks +5 lines, -4 lines 0 comments Download
M blimp/net/blimp_message_demultiplexer.cc View 1 2 3 4 2 chunks +8 lines, -6 lines 0 comments Download
M blimp/net/blimp_message_demultiplexer_unittest.cc View 1 2 3 3 chunks +7 lines, -5 lines 0 comments Download
M blimp/net/blimp_message_multiplexer.h View 1 2 3 4 5 1 chunk +5 lines, -4 lines 0 comments Download
M blimp/net/blimp_message_multiplexer.cc View 1 2 3 4 5 3 chunks +10 lines, -13 lines 0 comments Download
M blimp/net/blimp_message_multiplexer_unittest.cc View 1 2 3 4 6 chunks +10 lines, -10 lines 0 comments Download
M blimp/net/blimp_message_output_buffer.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M blimp/net/blimp_message_output_buffer_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M blimp/net/blimp_message_pump_unittest.cc View 1 2 3 2 chunks +6 lines, -4 lines 0 comments Download
M blimp/net/browser_connection_handler.h View 1 2 3 4 5 1 chunk +5 lines, -4 lines 0 comments Download
M blimp/net/browser_connection_handler.cc View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M blimp/net/browser_connection_handler_unittest.cc View 1 2 3 4 3 chunks +11 lines, -11 lines 0 comments Download
M blimp/net/engine_authentication_handler.cc View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download
M blimp/net/input_message_unittest.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M blimp/net/thread_pipe_manager.h View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M blimp/net/thread_pipe_manager.cc View 1 2 3 4 5 4 chunks +11 lines, -10 lines 0 comments Download
M blimp/net/thread_pipe_manager_unittest.cc View 1 2 3 4 8 chunks +17 lines, -20 lines 0 comments Download

Messages

Total messages: 23 (9 generated)
shaktisahu
Hi, Please take a look if this is in the right direction. I haven't added ...
4 years, 7 months ago (2016-04-29 18:45:23 UTC) #2
Kevin M
Cool! Adding myself as a mandatory reviewer because this heavily impacts code that the engine ...
4 years, 7 months ago (2016-05-02 17:47:48 UTC) #5
shaktisahu
https://codereview.chromium.org/1933053003/diff/1/blimp/client/feature/ime_feature.cc File blimp/client/feature/ime_feature.cc (right): https://codereview.chromium.org/1933053003/diff/1/blimp/client/feature/ime_feature.cc#newcode38 blimp/client/feature/ime_feature.cc:38: DCHECK(message->has_ime()); On 2016/05/02 17:47:47, Kevin M wrote: > Check ...
4 years, 7 months ago (2016-05-16 20:19:03 UTC) #8
Kevin M
https://codereview.chromium.org/1933053003/diff/20001/blimp/net/blimp_message_multiplexer.cc File blimp/net/blimp_message_multiplexer.cc (right): https://codereview.chromium.org/1933053003/diff/20001/blimp/net/blimp_message_multiplexer.cc#newcode47 blimp/net/blimp_message_multiplexer.cc:47: SetBlimpMessageType(message.get(), type_); We should probably standardize on what message ...
4 years, 7 months ago (2016-05-16 22:58:02 UTC) #9
shaktisahu
PTAL https://codereview.chromium.org/1933053003/diff/20001/blimp/net/blimp_message_multiplexer.cc File blimp/net/blimp_message_multiplexer.cc (right): https://codereview.chromium.org/1933053003/diff/20001/blimp/net/blimp_message_multiplexer.cc#newcode47 blimp/net/blimp_message_multiplexer.cc:47: SetBlimpMessageType(message.get(), type_); On 2016/05/16 22:58:02, Kevin M wrote: ...
4 years, 7 months ago (2016-05-17 01:21:32 UTC) #10
Wez
Why are we not updating tab-control and protocol-control? https://codereview.chromium.org/1933053003/diff/40001/blimp/client/feature/ime_feature.cc File blimp/client/feature/ime_feature.cc (right): https://codereview.chromium.org/1933053003/diff/40001/blimp/client/feature/ime_feature.cc#newcode39 blimp/client/feature/ime_feature.cc:39: DCHECK_EQ(BlimpMessage::kIme, ...
4 years, 7 months ago (2016-05-18 01:53:32 UTC) #11
shaktisahu
PTAL https://codereview.chromium.org/1933053003/diff/40001/blimp/client/feature/ime_feature.cc File blimp/client/feature/ime_feature.cc (right): https://codereview.chromium.org/1933053003/diff/40001/blimp/client/feature/ime_feature.cc#newcode39 blimp/client/feature/ime_feature.cc:39: DCHECK_EQ(BlimpMessage::kIme, message->feature_case()); On 2016/05/18 01:53:31, Wez wrote: > ...
4 years, 7 months ago (2016-05-18 03:55:42 UTC) #12
Kevin M
There are still quite a few obsolete references to "type" and "|type|", especially in parameter ...
4 years, 7 months ago (2016-05-20 18:28:16 UTC) #13
Wez
https://codereview.chromium.org/1933053003/diff/40001/blimp/common/proto/tab_control.proto File blimp/common/proto/tab_control.proto (left): https://codereview.chromium.org/1933053003/diff/40001/blimp/common/proto/tab_control.proto#oldcode38 blimp/common/proto/tab_control.proto:38: // crbug.com/570371. On 2016/05/18 03:55:42, shaktisahu wrote: > On ...
4 years, 7 months ago (2016-05-20 21:10:50 UTC) #14
shaktisahu
PTAL https://codereview.chromium.org/1933053003/diff/40001/blimp/common/proto/tab_control.proto File blimp/common/proto/tab_control.proto (left): https://codereview.chromium.org/1933053003/diff/40001/blimp/common/proto/tab_control.proto#oldcode38 blimp/common/proto/tab_control.proto:38: // crbug.com/570371. On 2016/05/20 21:10:49, Wez wrote: > ...
4 years, 7 months ago (2016-05-20 22:29:42 UTC) #15
Kevin M
lgtm % nits https://codereview.chromium.org/1933053003/diff/60001/blimp/engine/session/blimp_engine_session.cc File blimp/engine/session/blimp_engine_session.cc (right): https://codereview.chromium.org/1933053003/diff/60001/blimp/engine/session/blimp_engine_session.cc#newcode461 blimp/engine/session/blimp_engine_session.cc:461: if (message->has_tab_control()) { On 2016/05/20 22:29:41, ...
4 years, 7 months ago (2016-05-21 00:32:06 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1933053003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1933053003/100001
4 years, 7 months ago (2016-05-21 01:34:43 UTC) #19
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 7 months ago (2016-05-21 03:24:01 UTC) #21
commit-bot: I haz the power
4 years, 7 months ago (2016-05-21 03:26:00 UTC) #23
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/eb552d3ed748c438f7861ec9b75ec30d404a7ac3
Cr-Commit-Position: refs/heads/master@{#395243}

Powered by Google App Engine
This is Rietveld 408576698