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

Issue 35443002: Update CastSocket connection flow to check for receiver credentials. (Closed)

Created:
7 years, 2 months ago by Munjal (Google)
Modified:
7 years, 1 month ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

Update CastSocket connection flow to check for receiver credentials. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=230748

Patch Set 1 #

Patch Set 2 : #

Total comments: 18

Patch Set 3 : #

Total comments: 16

Patch Set 4 : #

Total comments: 27

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Total comments: 11

Patch Set 9 : #

Total comments: 9

Patch Set 10 : #

Patch Set 11 : #

Total comments: 10

Patch Set 12 : #

Total comments: 1

Patch Set 13 : #

Total comments: 2

Patch Set 14 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+715 lines, -91 lines) Patch
A chrome/browser/extensions/api/cast_channel/cast_auth_util.h View 1 2 3 1 chunk +26 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/cast_channel/cast_auth_util_nss.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +220 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/cast_channel/cast_channel.proto View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +24 lines, -0 lines 1 comment Download
M chrome/browser/extensions/api/cast_channel/cast_message_util.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/cast_channel/cast_message_util.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +49 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/cast_channel/cast_socket.h View 1 2 3 4 5 6 7 8 9 10 11 8 chunks +34 lines, -7 lines 0 comments Download
M chrome/browser/extensions/api/cast_channel/cast_socket.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 15 chunks +117 lines, -39 lines 0 comments Download
M chrome/browser/extensions/api/cast_channel/cast_socket_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 22 chunks +230 lines, -43 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
Munjal (Google)
Note that I still have to add unit tests but I wanted you to start ...
7 years, 2 months ago (2013-10-22 15:42:50 UTC) #1
mark a. foltz
The SxS diffs were broken again so it was a bit hard to follow. I'm ...
7 years, 2 months ago (2013-10-22 18:27:26 UTC) #2
Ryan Sleevi
Initial pass. Concerned about the loop re-entrancy. Happy to suggest some improvements if it's not ...
7 years, 2 months ago (2013-10-22 20:23:22 UTC) #3
Munjal (Google)
I am unable to reply to Mark's comments inline. But I think I addressed all ...
7 years, 2 months ago (2013-10-22 23:42:43 UTC) #4
mark a. foltz
lgtm https://codereview.chromium.org/35443002/diff/170001/chrome/browser/extensions/api/cast_channel/cast_auth_util.cc File chrome/browser/extensions/api/cast_channel/cast_auth_util.cc (right): https://codereview.chromium.org/35443002/diff/170001/chrome/browser/extensions/api/cast_channel/cast_auth_util.cc#newcode112 chrome/browser/extensions/api/cast_channel/cast_auth_util.cc:112: static bool ParseAuthMessage(const CastMessage& challenge_reply, If these are ...
7 years, 2 months ago (2013-10-23 00:33:40 UTC) #5
Munjal (Google)
https://codereview.chromium.org/35443002/diff/170001/chrome/browser/extensions/api/cast_channel/cast_auth_util.cc File chrome/browser/extensions/api/cast_channel/cast_auth_util.cc (right): https://codereview.chromium.org/35443002/diff/170001/chrome/browser/extensions/api/cast_channel/cast_auth_util.cc#newcode112 chrome/browser/extensions/api/cast_channel/cast_auth_util.cc:112: static bool ParseAuthMessage(const CastMessage& challenge_reply, On 2013/10/23 00:33:41, mark ...
7 years, 2 months ago (2013-10-23 03:22:54 UTC) #6
Munjal (Google)
Ryan, I will commit this but will address any of your remaining comments in a ...
7 years, 2 months ago (2013-10-23 03:23:48 UTC) #7
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
7 years, 2 months ago (2013-10-23 03:24:36 UTC) #8
Munjal (Google)
Ryan, turns out I need your LGTM anyway :). Please take a look as soon ...
7 years, 2 months ago (2013-10-23 03:56:56 UTC) #9
mark a. foltz
https://codereview.chromium.org/35443002/diff/170001/chrome/browser/extensions/api/cast_channel/cast_message_util.cc File chrome/browser/extensions/api/cast_channel/cast_message_util.cc (right): https://codereview.chromium.org/35443002/diff/170001/chrome/browser/extensions/api/cast_channel/cast_message_util.cc#newcode129 chrome/browser/extensions/api/cast_channel/cast_message_util.cc:129: message_proto->set_namespace_(kAuthNamespace); On 2013/10/23 03:22:55, Munjal (Google) wrote: > On ...
7 years, 2 months ago (2013-10-23 05:27:45 UTC) #10
Munjal (Google)
https://codereview.chromium.org/35443002/diff/170001/chrome/browser/extensions/api/cast_channel/cast_message_util.cc File chrome/browser/extensions/api/cast_channel/cast_message_util.cc (right): https://codereview.chromium.org/35443002/diff/170001/chrome/browser/extensions/api/cast_channel/cast_message_util.cc#newcode129 chrome/browser/extensions/api/cast_channel/cast_message_util.cc:129: message_proto->set_namespace_(kAuthNamespace); On 2013/10/23 05:27:45, mark a. foltz wrote: > ...
7 years, 2 months ago (2013-10-23 16:21:41 UTC) #11
Munjal (Google)
https://codereview.chromium.org/35443002/diff/170001/chrome/browser/extensions/api/cast_channel/cast_auth_util.cc File chrome/browser/extensions/api/cast_channel/cast_auth_util.cc (right): https://codereview.chromium.org/35443002/diff/170001/chrome/browser/extensions/api/cast_channel/cast_auth_util.cc#newcode150 chrome/browser/extensions/api/cast_channel/cast_auth_util.cc:150: std::string(certificate).data())); On 2013/10/23 03:22:55, Munjal (Google) wrote: > On ...
7 years, 2 months ago (2013-10-23 18:30:16 UTC) #12
Ryan Sleevi
Not LGTM, still seems to have the same bugs? https://codereview.chromium.org/35443002/diff/60001/chrome/browser/extensions/api/cast_channel/cast_socket.cc File chrome/browser/extensions/api/cast_channel/cast_socket.cc (right): https://codereview.chromium.org/35443002/diff/60001/chrome/browser/extensions/api/cast_channel/cast_socket.cc#newcode20 chrome/browser/extensions/api/cast_channel/cast_socket.cc:20: ...
7 years, 2 months ago (2013-10-23 19:14:04 UTC) #13
Munjal (Google)
https://codereview.chromium.org/35443002/diff/60001/chrome/browser/extensions/api/cast_channel/cast_socket.cc File chrome/browser/extensions/api/cast_channel/cast_socket.cc (right): https://codereview.chromium.org/35443002/diff/60001/chrome/browser/extensions/api/cast_channel/cast_socket.cc#newcode20 chrome/browser/extensions/api/cast_channel/cast_socket.cc:20: #include "crypto/scoped_nss_types.h" On 2013/10/23 19:14:04, Ryan Sleevi wrote: > ...
7 years, 2 months ago (2013-10-23 20:08:55 UTC) #14
Ryan Sleevi
https://codereview.chromium.org/35443002/diff/710001/chrome/browser/extensions/api/cast_channel/cast_auth_util_nss.cc File chrome/browser/extensions/api/cast_channel/cast_auth_util_nss.cc (right): https://codereview.chromium.org/35443002/diff/710001/chrome/browser/extensions/api/cast_channel/cast_auth_util_nss.cc#newcode17 chrome/browser/extensions/api/cast_channel/cast_auth_util_nss.cc:17: #include "net/cert/x509_certificate.h" Why do you need to bring this ...
7 years, 2 months ago (2013-10-23 23:28:51 UTC) #15
Munjal (Google)
https://codereview.chromium.org/35443002/diff/710001/chrome/browser/extensions/api/cast_channel/cast_auth_util_nss.cc File chrome/browser/extensions/api/cast_channel/cast_auth_util_nss.cc (right): https://codereview.chromium.org/35443002/diff/710001/chrome/browser/extensions/api/cast_channel/cast_auth_util_nss.cc#newcode17 chrome/browser/extensions/api/cast_channel/cast_auth_util_nss.cc:17: #include "net/cert/x509_certificate.h" On 2013/10/23 23:28:51, Ryan Sleevi wrote: > ...
7 years, 2 months ago (2013-10-24 00:00:55 UTC) #16
Ryan Sleevi
Munjal, Mark: As noted, I'm still very concerned about this code and its interactions not ...
7 years, 2 months ago (2013-10-24 00:14:48 UTC) #17
mark a. foltz
On 2013/10/24 00:14:48, Ryan Sleevi wrote: > Munjal, Mark: As noted, I'm still very concerned ...
7 years, 2 months ago (2013-10-24 00:37:13 UTC) #18
Ryan Sleevi
Hi Mark, Those are the two issues that come to mind, and make it harder ...
7 years, 2 months ago (2013-10-24 00:54:36 UTC) #19
Ryan Sleevi
Additionally, to make sure it's clear: I think we can and should land this authentication ...
7 years, 2 months ago (2013-10-24 00:55:33 UTC) #20
Munjal (Google)
Ryan, thanks for taking another look before you leave. I will own the code and ...
7 years, 2 months ago (2013-10-24 02:43:44 UTC) #21
Munjal (Google)
https://codereview.chromium.org/35443002/diff/720010/chrome/browser/extensions/api/cast_channel/cast_socket.cc File chrome/browser/extensions/api/cast_channel/cast_socket.cc (right): https://codereview.chromium.org/35443002/diff/720010/chrome/browser/extensions/api/cast_channel/cast_socket.cc#newcode353 chrome/browser/extensions/api/cast_channel/cast_socket.cc:353: if (result != net::ERR_IO_PENDING && result != net::OK) { ...
7 years, 2 months ago (2013-10-24 05:19:02 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/munjal@chromium.org/35443002/790001
7 years, 2 months ago (2013-10-24 05:20:41 UTC) #23
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=92660
7 years, 2 months ago (2013-10-24 13:57:38 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/munjal@chromium.org/35443002/790001
7 years, 2 months ago (2013-10-24 15:18:18 UTC) #25
commit-bot: I haz the power
Change committed as 230748
7 years, 2 months ago (2013-10-24 17:11:17 UTC) #26
akalin (wrong akalin)
7 years, 2 months ago (2013-10-25 01:14:34 UTC) #27
akalin (wrong akalin)
On 2013/10/24 02:43:44, Munjal (Google) wrote: > Ryan, thanks for taking another look before you ...
7 years, 2 months ago (2013-10-25 01:15:04 UTC) #28
akalin (wrong akalin)
On 2013/10/24 02:43:44, Munjal (Google) wrote: > Ryan, thanks for taking another look before you ...
7 years, 2 months ago (2013-10-25 01:17:02 UTC) #29
Ryan Sleevi
On 2013/10/25 01:17:02, akalin1 wrote: > On 2013/10/24 02:43:44, Munjal (Google) wrote: > > Ryan, ...
7 years, 2 months ago (2013-10-25 01:29:05 UTC) #30
akalin
7 years, 1 month ago (2013-10-26 23:33:36 UTC) #31
Message was sent while issue was closed.
https://codereview.chromium.org/35443002/diff/790001/chrome/browser/extension...
File chrome/browser/extensions/api/cast_channel/cast_channel.proto (right):

https://codereview.chromium.org/35443002/diff/790001/chrome/browser/extension...
chrome/browser/extensions/api/cast_channel/cast_channel.proto:61: required bytes
signature = 1;
another problem -- required fields in protobufs are almost always a bad idea

Powered by Google App Engine
This is Rietveld 408576698