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 490623003: Add JS bindings validation logic for non-nullable types (Closed)

Created:
6 years, 4 months ago by hansmuller
Modified:
6 years, 4 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Project:
chromium
Visibility:
Public.

Description

Add JS bindings validation logic for non-nullable types Added codec types: NullableString, NullableHandle, NullableArrayOf, NullablePointerTo and removed the unit test code that disabled the null validation tests. BUG=405072 R=mpcomplete@chromium.org, yzshen@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=290960

Patch Set 1 : #

Total comments: 19

Patch Set 2 : Updates per Yuzhu's review #

Patch Set 3 : Sync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -51 lines) Patch
M mojo/public/js/bindings/codec.js View 5 chunks +33 lines, -0 lines 0 comments Download
M mojo/public/js/bindings/validation_unittests.js View 1 chunk +0 lines, -7 lines 0 comments Download
M mojo/public/js/bindings/validator.js View 1 7 chunks +54 lines, -21 lines 0 comments Download
M mojo/public/tools/bindings/generators/js_templates/struct_definition.tmpl View 2 chunks +2 lines, -2 lines 0 comments Download
M mojo/public/tools/bindings/generators/mojom_js_generator.py View 1 2 4 chunks +47 lines, -21 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
hansmuller
Added support for validating "nullable" pointers and handles.
6 years, 4 months ago (2014-08-19 21:13:22 UTC) #1
Matt Perry
lgtm
6 years, 4 months ago (2014-08-20 01:23:48 UTC) #2
yzshen1
https://codereview.chromium.org/490623003/diff/40001/mojo/public/js/bindings/validator.js File mojo/public/js/bindings/validator.js (right): https://codereview.chromium.org/490623003/diff/40001/mojo/public/js/bindings/validator.js#newcode7 mojo/public/js/bindings/validator.js:7: ], function(codec) { I think the indent is a ...
6 years, 4 months ago (2014-08-20 17:04:21 UTC) #3
hansmuller
Addressed Yuzhu's feedback. https://codereview.chromium.org/490623003/diff/40001/mojo/public/js/bindings/validator.js File mojo/public/js/bindings/validator.js (right): https://codereview.chromium.org/490623003/diff/40001/mojo/public/js/bindings/validator.js#newcode7 mojo/public/js/bindings/validator.js:7: ], function(codec) { On 2014/08/20 17:04:20, ...
6 years, 4 months ago (2014-08-20 17:46:31 UTC) #4
yzshen1
LGTM https://codereview.chromium.org/490623003/diff/40001/mojo/public/js/bindings/validator.js File mojo/public/js/bindings/validator.js (right): https://codereview.chromium.org/490623003/diff/40001/mojo/public/js/bindings/validator.js#newcode92 mojo/public/js/bindings/validator.js:92: Validator.prototype.validateHandle = function(offset, nullable) { On 2014/08/20 17:46:31, ...
6 years, 4 months ago (2014-08-20 17:54:08 UTC) #5
hansmuller
The CQ bit was checked by hansmuller@chromium.org
6 years, 4 months ago (2014-08-20 22:05:49 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hansmuller@chromium.org/490623003/80001
6 years, 4 months ago (2014-08-20 22:07:09 UTC) #7
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-08-20 23:25:25 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-20 23:27:37 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu/builds/55260)
6 years, 4 months ago (2014-08-20 23:27:38 UTC) #10
hansmuller
The CQ bit was checked by hansmuller@chromium.org
6 years, 4 months ago (2014-08-20 23:57:40 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hansmuller@chromium.org/490623003/80001
6 years, 4 months ago (2014-08-21 00:00:21 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-08-21 00:05:45 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-21 00:11:11 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu/builds/55315) android_clang_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg/builds/8071)
6 years, 4 months ago (2014-08-21 00:11:12 UTC) #15
hansmuller
6 years, 4 months ago (2014-08-21 00:37:25 UTC) #16
Message was sent while issue was closed.
Committed patchset #3 manually as 290960 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698