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

Issue 1876983002: Use Chromium BUILD to approximate Blimp protocol version, and check it. (Closed)

Created:
4 years, 8 months ago by Wez
Modified:
4 years, 6 months ago
Reviewers:
Lei Zhang, Sriram, Kevin M
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, maniscalco, Sriram
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use Chromium BUILD to approximate Blimp protocol version, and check it. * Move protocol_version.h to version_info.h, to hold general version information for the protocol, client, engine, etc. * Replace the protocol-version and engine-version constants with global functions to return the relevant values. * Have the EngineAuthenticationHandler check the Client version before verifying the token, disconnecting it on mismatch. BUG=599711 Committed: https://crrev.com/541e9a1b831aacedbeb139910312fab68d2c89da Cr-Commit-Position: refs/heads/master@{#396585}

Patch Set 1 #

Patch Set 2 : Add protocol-mismatch unit test #

Patch Set 3 : Add disconnection message and unit-tests #

Total comments: 5

Patch Set 4 : Use real protocol version in AssignmentSource #

Patch Set 5 : Rebase #

Patch Set 6 : Route EndConnection to OnConnectionError notifications #

Total comments: 10

Patch Set 7 : Address review comments #

Patch Set 8 : Add unit tests #

Patch Set 9 : Fix component build linkage #

Patch Set 10 : Rebase #

Patch Set 11 : Simplify to just protocol_version.h, since we already use components/version_info #

Patch Set 12 : Move protocol_version to be a public_dep #

Patch Set 13 : Fix Android to use GetVersionNumber() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+285 lines, -80 lines) Patch
M blimp/client/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M blimp/client/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M blimp/client/app/android/blimp_client_session_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -2 lines 0 comments Download
M blimp/client/session/assignment_source.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M blimp/client/session/assignment_source_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 15 chunks +19 lines, -17 lines 0 comments Download
M blimp/common/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +10 lines, -1 line 0 comments Download
M blimp/common/create_blimp_message.h View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -1 line 0 comments Download
M blimp/common/create_blimp_message.cc View 1 2 3 4 5 6 7 8 9 3 chunks +12 lines, -3 lines 0 comments Download
M blimp/common/create_blimp_message_unittest.cc View 1 2 3 4 5 6 7 8 9 9 chunks +22 lines, -8 lines 0 comments Download
M blimp/common/proto/protocol_control.proto View 1 2 3 4 5 1 chunk +12 lines, -1 line 0 comments Download
D blimp/common/protocol_version.h View 1 chunk +0 lines, -19 lines 0 comments Download
A + blimp/common/protocol_version.h.version View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -6 lines 0 comments Download
M blimp/net/blimp_connection.h View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -0 lines 0 comments Download
M blimp/net/blimp_connection.cc View 1 2 3 4 5 6 7 8 9 2 chunks +50 lines, -2 lines 0 comments Download
M blimp/net/blimp_connection_unittest.cc View 1 2 3 4 5 6 7 8 9 5 chunks +71 lines, -2 lines 0 comments Download
M blimp/net/connection_error_observer.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M blimp/net/engine_authentication_handler.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +33 lines, -14 lines 0 comments Download
M blimp/net/engine_authentication_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +35 lines, -3 lines 0 comments Download

Messages

Total messages: 33 (13 generated)
Wez
maniscalco: FYI kmarshall: PTAL - will follow-up with the a patch containing the remaining client-side ...
4 years, 8 months ago (2016-04-22 16:37:03 UTC) #2
maniscalco
+sriramsr as I'm about to go OOO.
4 years, 8 months ago (2016-04-22 16:47:47 UTC) #3
Sriram
LGTM except for: https://codereview.chromium.org/1876983002/diff/40001/blimp/common/proto/protocol_control.proto File blimp/common/proto/protocol_control.proto (right): https://codereview.chromium.org/1876983002/diff/40001/blimp/common/proto/protocol_control.proto#newcode43 blimp/common/proto/protocol_control.proto:43: END_CONNECTION = 201; Shouldn't this be ...
4 years, 8 months ago (2016-04-22 21:07:34 UTC) #5
Kevin M
You might want to consider routing these error events out to the UI via NetworkEventObserver, ...
4 years, 8 months ago (2016-04-22 21:12:55 UTC) #6
Wez
Kevin, PTAL at this approach to adding the client-side EndConnection handler to route through to ...
4 years, 7 months ago (2016-05-25 00:48:36 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1876983002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1876983002/100001
4 years, 7 months ago (2016-05-25 20:01:26 UTC) #9
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/71776) android_clang_dbg_recipe on ...
4 years, 7 months ago (2016-05-25 20:06:22 UTC) #11
Kevin M
https://codereview.chromium.org/1876983002/diff/100001/blimp/common/BUILD.gn File blimp/common/BUILD.gn (right): https://codereview.chromium.org/1876983002/diff/100001/blimp/common/BUILD.gn#newcode6 blimp/common/BUILD.gn:6: import("//chrome/version.gni") alphabetic sort https://codereview.chromium.org/1876983002/diff/100001/blimp/common/version_info.h File blimp/common/version_info.h (right): https://codereview.chromium.org/1876983002/diff/100001/blimp/common/version_info.h#newcode18 blimp/common/version_info.h:18: ...
4 years, 7 months ago (2016-05-25 21:19:19 UTC) #12
Wez
FYI; will ping once I've added tests. https://codereview.chromium.org/1876983002/diff/100001/blimp/common/BUILD.gn File blimp/common/BUILD.gn (right): https://codereview.chromium.org/1876983002/diff/100001/blimp/common/BUILD.gn#newcode6 blimp/common/BUILD.gn:6: import("//chrome/version.gni") On ...
4 years, 7 months ago (2016-05-25 23:11:37 UTC) #13
Wez
PTAL!
4 years, 6 months ago (2016-05-27 02:17:50 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1876983002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1876983002/160001
4 years, 6 months ago (2016-05-27 02:18:00 UTC) #16
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios-device-gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-gn/builds/12531) ios-simulator on ...
4 years, 6 months ago (2016-05-27 02:20:29 UTC) #18
Kevin M
lgtm
4 years, 6 months ago (2016-05-27 17:15:51 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1876983002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1876983002/220001
4 years, 6 months ago (2016-05-27 20:02:30 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/78117)
4 years, 6 months ago (2016-05-27 20:24:03 UTC) #24
Wez
+thestig@ for DEPS change to allow Android client code to depend on components/version_info
4 years, 6 months ago (2016-05-27 21:14:38 UTC) #26
Lei Zhang
On 2016/05/27 21:14:38, Wez wrote: > +thestig@ for DEPS change to allow Android client code ...
4 years, 6 months ago (2016-05-27 21:20:20 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1876983002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1876983002/240001
4 years, 6 months ago (2016-05-27 21:28:21 UTC) #30
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 6 months ago (2016-05-27 22:28:38 UTC) #31
commit-bot: I haz the power
4 years, 6 months ago (2016-05-27 22:29:50 UTC) #33
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/541e9a1b831aacedbeb139910312fab68d2c89da
Cr-Commit-Position: refs/heads/master@{#396585}

Powered by Google App Engine
This is Rietveld 408576698