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

Issue 1255003003: Make VM service id handling JSON-RPC 2 compliant. (Closed)

Created:
5 years, 5 months ago by nweiz
Modified:
5 years, 4 months ago
Reviewers:
Cutch
CC:
reviews_dartlang.org, turnidge, rmacnak, vm-dev_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Make VM service id handling JSON-RPC 2 compliant. * Numeric ids will not be converted to strings. * String ids will be escaped, so an id of '"' doesn't produce invalid JSON. * List or map ids will be rejected. * Null ids will produce no response. R=johnmccutchan@google.com Committed: https://github.com/dart-lang/sdk/commit/4153313dfd9293c49213798370bae3f75cd0ce0a

Patch Set 1 #

Total comments: 2

Patch Set 2 : cr #

Patch Set 3 : Code review changes #

Total comments: 4

Patch Set 4 : Code review changes #

Patch Set 5 : cr #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -17 lines) Patch
M CHANGELOG.md View 1 1 chunk +7 lines, -0 lines 0 comments Download
M runtime/bin/vmservice/server.dart View 2 chunks +4 lines, -0 lines 0 comments Download
M runtime/vm/json_stream.h View 1 2 3 4 3 chunks +2 lines, -3 lines 0 comments Download
M runtime/vm/json_stream.cc View 1 2 3 3 chunks +19 lines, -5 lines 0 comments Download
M runtime/vm/service.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/service/message.dart View 1 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/service/service.md View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/service_test.cc View 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 11 (1 generated)
nweiz
5 years, 5 months ago (2015-07-24 22:20:18 UTC) #2
Cutch
https://codereview.chromium.org/1255003003/diff/1/runtime/vm/json_stream.h File runtime/vm/json_stream.h (right): https://codereview.chromium.org/1255003003/diff/1/runtime/vm/json_stream.h#newcode174 runtime/vm/json_stream.h:174: RawInstance* seq_; You need to store seq_ as an ...
5 years, 4 months ago (2015-07-27 14:00:51 UTC) #3
nweiz
https://codereview.chromium.org/1255003003/diff/1/runtime/vm/json_stream.h File runtime/vm/json_stream.h (right): https://codereview.chromium.org/1255003003/diff/1/runtime/vm/json_stream.h#newcode174 runtime/vm/json_stream.h:174: RawInstance* seq_; On 2015/07/27 14:00:51, Cutch wrote: > You ...
5 years, 4 months ago (2015-07-27 18:16:02 UTC) #4
Cutch
On 2015/07/27 18:16:02, nweiz wrote: > https://codereview.chromium.org/1255003003/diff/1/runtime/vm/json_stream.h > File runtime/vm/json_stream.h (right): > > https://codereview.chromium.org/1255003003/diff/1/runtime/vm/json_stream.h#newcode174 > ...
5 years, 4 months ago (2015-07-27 18:28:39 UTC) #5
nweiz
Code review changes
5 years, 4 months ago (2015-07-27 21:07:06 UTC) #6
Cutch
One last handle usage change and then LGTM. https://codereview.chromium.org/1255003003/diff/40001/runtime/vm/json_stream.cc File runtime/vm/json_stream.cc (right): https://codereview.chromium.org/1255003003/diff/40001/runtime/vm/json_stream.cc#newcode166 runtime/vm/json_stream.cc:166: Instance& ...
5 years, 4 months ago (2015-07-27 21:10:10 UTC) #7
nweiz
Code review changes
5 years, 4 months ago (2015-07-27 21:17:26 UTC) #8
nweiz
https://codereview.chromium.org/1255003003/diff/40001/runtime/vm/json_stream.cc File runtime/vm/json_stream.cc (right): https://codereview.chromium.org/1255003003/diff/40001/runtime/vm/json_stream.cc#newcode166 runtime/vm/json_stream.cc:166: Instance& id = seq(); On 2015/07/27 21:10:10, Cutch wrote: ...
5 years, 4 months ago (2015-07-27 21:17:35 UTC) #9
Cutch
On 2015/07/27 21:17:35, nweiz wrote: > https://codereview.chromium.org/1255003003/diff/40001/runtime/vm/json_stream.cc > File runtime/vm/json_stream.cc (right): > > https://codereview.chromium.org/1255003003/diff/40001/runtime/vm/json_stream.cc#newcode166 > ...
5 years, 4 months ago (2015-07-27 22:15:30 UTC) #10
nweiz
5 years, 4 months ago (2015-07-27 23:14:37 UTC) #11
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
4153313dfd9293c49213798370bae3f75cd0ce0a (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698