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

Issue 255443002: Implement argument validation for chrome.cast.channel.{open,send} (Closed)

Created:
6 years, 8 months ago by mark a. foltz
Modified:
6 years, 5 months ago
CC:
Munjal (Google), chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

Implement argument validation for chrome.cast.channel.{open,send} Cleanup namespace usage in cast_channel_api.h. TESTED=Browser test. Manually with Cast extension BUG=331165 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266804 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284200

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fix return value logic. #

Patch Set 3 : Reland #

Patch Set 4 : Remove extraneous code #

Total comments: 2

Patch Set 5 #

Patch Set 6 : Revert cast_channel_api_unittest #

Total comments: 6

Patch Set 7 : Respond to Wez' comments. #

Patch Set 8 : Fix issues with prior patch. More test cases for Send. #

Total comments: 6

Patch Set 9 : #

Patch Set 10 : Fix unit test #

Patch Set 11 : Rebase onto upstream #

Unified diffs Side-by-side diffs Delta from patch set Stats (+186 lines, -47 lines) Patch
M chrome/browser/extensions/api/cast_channel/cast_channel_api.h View 1 2 3 4 5 6 7 4 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/extensions/api/cast_channel/cast_channel_api.cc View 1 2 3 4 5 6 7 8 5 chunks +58 lines, -17 lines 0 comments Download
M chrome/browser/extensions/api/cast_channel/cast_channel_api_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -25 lines 0 comments Download
M chrome/browser/extensions/api/cast_channel/cast_channel_apitest.cc View 1 2 3 4 5 6 7 4 chunks +121 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
mark a. foltz
6 years, 8 months ago (2014-04-23 23:13:22 UTC) #1
imcheng
lgtm https://codereview.chromium.org/255443002/diff/1/chrome/browser/extensions/api/cast_channel/cast_channel_api.cc File chrome/browser/extensions/api/cast_channel/cast_channel_api.cc (right): https://codereview.chromium.org/255443002/diff/1/chrome/browser/extensions/api/cast_channel/cast_channel_api.cc#newcode343 chrome/browser/extensions/api/cast_channel/cast_channel_api.cc:343: return true; super nit: I'd prefer to see ...
6 years, 8 months ago (2014-04-24 22:13:18 UTC) #2
mark a. foltz
On 2014/04/24 22:13:18, imcheng1 wrote: > lgtm > > https://codereview.chromium.org/255443002/diff/1/chrome/browser/extensions/api/cast_channel/cast_channel_api.cc > File chrome/browser/extensions/api/cast_channel/cast_channel_api.cc (right): > ...
6 years, 8 months ago (2014-04-25 17:38:31 UTC) #3
Munjal (Google)
LGTM
6 years, 7 months ago (2014-04-28 17:19:51 UTC) #4
mark a. foltz
The CQ bit was checked by mfoltz@chromium.org
6 years, 7 months ago (2014-04-28 18:38:38 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mfoltz@chromium.org/255443002/20001
6 years, 7 months ago (2014-04-28 18:39:35 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-28 18:53:46 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_clang_dbg
6 years, 7 months ago (2014-04-28 18:53:47 UTC) #8
mark a. foltz
The CQ bit was checked by mfoltz@chromium.org
6 years, 7 months ago (2014-04-28 20:27:52 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mfoltz@chromium.org/255443002/20001
6 years, 7 months ago (2014-04-28 20:29:17 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-28 22:21:42 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on mac_chromium_rel
6 years, 7 months ago (2014-04-28 22:21:42 UTC) #12
mark a. foltz
The CQ bit was checked by mfoltz@chromium.org
6 years, 7 months ago (2014-04-28 23:22:18 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mfoltz@chromium.org/255443002/20001
6 years, 7 months ago (2014-04-28 23:25:19 UTC) #14
mark a. foltz
The CQ bit was unchecked by mfoltz@chromium.org
6 years, 7 months ago (2014-04-29 04:28:01 UTC) #15
mark a. foltz
The CQ bit was checked by mfoltz@chromium.org
6 years, 7 months ago (2014-04-29 04:28:03 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mfoltz@chromium.org/255443002/20001
6 years, 7 months ago (2014-04-29 04:28:35 UTC) #17
commit-bot: I haz the power
Change committed as 266804
6 years, 7 months ago (2014-04-29 09:36:44 UTC) #18
Michael Achenbach
A revert of this CL has been created in https://codereview.chromium.org/256333002/ by machenbach@chromium.org. The reason for ...
6 years, 7 months ago (2014-04-29 10:47:50 UTC) #19
mark a. foltz
Relanding this patch, converted test cases to browser tests as it's difficult to correctly unit ...
6 years, 5 months ago (2014-07-14 21:02:22 UTC) #20
mark a. foltz
6 years, 5 months ago (2014-07-15 20:06:54 UTC) #21
imcheng
lgtm https://codereview.chromium.org/255443002/diff/50001/chrome/browser/extensions/api/cast_channel/cast_channel_api_unittest.cc File chrome/browser/extensions/api/cast_channel/cast_channel_api_unittest.cc (right): https://codereview.chromium.org/255443002/diff/50001/chrome/browser/extensions/api/cast_channel/cast_channel_api_unittest.cc#newcode12 chrome/browser/extensions/api/cast_channel/cast_channel_api_unittest.cc:12: namespace extensions { nit: Can this file be ...
6 years, 5 months ago (2014-07-15 21:26:41 UTC) #22
mark a. foltz
https://codereview.chromium.org/255443002/diff/50001/chrome/browser/extensions/api/cast_channel/cast_channel_api_unittest.cc File chrome/browser/extensions/api/cast_channel/cast_channel_api_unittest.cc (right): https://codereview.chromium.org/255443002/diff/50001/chrome/browser/extensions/api/cast_channel/cast_channel_api_unittest.cc#newcode12 chrome/browser/extensions/api/cast_channel/cast_channel_api_unittest.cc:12: namespace extensions { On 2014/07/15 21:26:41, imcheng1 wrote: > ...
6 years, 5 months ago (2014-07-16 21:43:26 UTC) #23
Wez
https://codereview.chromium.org/255443002/diff/90001/chrome/browser/extensions/api/cast_channel/cast_channel_api.cc File chrome/browser/extensions/api/cast_channel/cast_channel_api.cc (right): https://codereview.chromium.org/255443002/diff/90001/chrome/browser/extensions/api/cast_channel/cast_channel_api.cc#newcode300 chrome/browser/extensions/api/cast_channel/cast_channel_api.cc:300: SetError("Invalid connect_info"); nit: May be helpful to be able ...
6 years, 5 months ago (2014-07-16 22:42:33 UTC) #24
mark a. foltz
https://codereview.chromium.org/255443002/diff/90001/chrome/browser/extensions/api/cast_channel/cast_channel_api.cc File chrome/browser/extensions/api/cast_channel/cast_channel_api.cc (right): https://codereview.chromium.org/255443002/diff/90001/chrome/browser/extensions/api/cast_channel/cast_channel_api.cc#newcode300 chrome/browser/extensions/api/cast_channel/cast_channel_api.cc:300: SetError("Invalid connect_info"); On 2014/07/16 22:42:33, Wez wrote: > nit: ...
6 years, 5 months ago (2014-07-17 19:26:51 UTC) #25
Wez
lgtm https://codereview.chromium.org/255443002/diff/130001/chrome/browser/extensions/api/cast_channel/cast_channel_api.cc File chrome/browser/extensions/api/cast_channel/cast_channel_api.cc (right): https://codereview.chromium.org/255443002/diff/130001/chrome/browser/extensions/api/cast_channel/cast_channel_api.cc#newcode305 chrome/browser/extensions/api/cast_channel/cast_channel_api.cc:305: SetError("Invalid connect_info (unknown type)"); This can just go ...
6 years, 5 months ago (2014-07-17 21:16:48 UTC) #26
mark a. foltz
https://codereview.chromium.org/255443002/diff/130001/chrome/browser/extensions/api/cast_channel/cast_channel_api.cc File chrome/browser/extensions/api/cast_channel/cast_channel_api.cc (right): https://codereview.chromium.org/255443002/diff/130001/chrome/browser/extensions/api/cast_channel/cast_channel_api.cc#newcode305 chrome/browser/extensions/api/cast_channel/cast_channel_api.cc:305: SetError("Invalid connect_info (unknown type)"); On 2014/07/17 21:16:47, Wez wrote: ...
6 years, 5 months ago (2014-07-17 22:23:40 UTC) #27
mark a. foltz
The CQ bit was checked by mfoltz@chromium.org
6 years, 5 months ago (2014-07-18 18:02:23 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mfoltz@chromium.org/255443002/190001
6 years, 5 months ago (2014-07-18 18:04:31 UTC) #29
commit-bot: I haz the power
6 years, 5 months ago (2014-07-18 21:24:52 UTC) #30
Message was sent while issue was closed.
Change committed as 284200

Powered by Google App Engine
This is Rietveld 408576698