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

Issue 8839003: WebSocket Pepper API: validate redundant protocols in Connect() (Closed)

Created:
9 years ago by Takashi Toyoshima
Modified:
9 years ago
CC:
chromium-reviews, darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

WebSocket Pepper API: validate redundant protocols in Connect() Given protocols argument is not allowed to have any duplicated protocol name in Connect(). This CL contains constant number replacement in test_websocket.cc like s/0/0U/g, and detailed comments on protocols argument check. BUG=87310 TEST=ui_tests --gtest_filter='PPAPITest.WebSocket_Protocols' Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=113760

Patch Set 1 #

Total comments: 2

Patch Set 2 : use set<string> instead of dictionary #

Patch Set 3 : rebase for dcommit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -11 lines) Patch
M chrome/test/ui/ppapi_uitest.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/tests/test_websocket.h View 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/tests/test_websocket.cc View 1 2 8 chunks +38 lines, -10 lines 0 comments Download
M webkit/plugins/ppapi/ppb_websocket_impl.cc View 1 2 3 chunks +12 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
Takashi Toyoshima
Small CL to remove a TODO.
9 years ago (2011-12-07 07:11:10 UTC) #1
dmichael (off chromium)
http://codereview.chromium.org/8839003/diff/1/webkit/plugins/ppapi/ppb_websocket_impl.cc File webkit/plugins/ppapi/ppb_websocket_impl.cc (right): http://codereview.chromium.org/8839003/diff/1/webkit/plugins/ppapi/ppb_websocket_impl.cc#newcode151 webkit/plugins/ppapi/ppb_websocket_impl.cc:151: base::DictionaryValue protocol_set; Why not just use std::set? This seems ...
9 years ago (2011-12-07 20:21:13 UTC) #2
Takashi Toyoshima
Thank you for good advice. I replace DictionaryValue with set<string>. Thanks! http://codereview.chromium.org/8839003/diff/1/webkit/plugins/ppapi/ppb_websocket_impl.cc File webkit/plugins/ppapi/ppb_websocket_impl.cc (right): ...
9 years ago (2011-12-08 05:12:46 UTC) #3
dmichael (off chromium)
lgtm
9 years ago (2011-12-08 18:43:49 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/toyoshim@chromium.org/8839003/5001
9 years ago (2011-12-09 04:05:18 UTC) #5
commit-bot: I haz the power
Presubmit check for 8839003-5001 failed and returned exit status 1. Running presubmit commit checks ...
9 years ago (2011-12-09 04:05:22 UTC) #6
piman
9 years ago (2011-12-09 08:06:40 UTC) #7
lgtm

Powered by Google App Engine
This is Rietveld 408576698