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

Issue 317073005: Mojom: Add 'default' keyword for initializing structs to non-null value. (Closed)

Created:
6 years, 6 months ago by Matt Perry
Modified:
6 years, 6 months ago
Reviewers:
viettrungluu
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
Visibility:
Public.

Description

Mojom: Add 'default' keyword for initializing structs to non-null value. Also simplify the code generation for initializing default values. BUG=320082 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=275366

Patch Set 1 #

Total comments: 4

Patch Set 2 : trung #

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -113 lines) Patch
M mojo/apps/js/bindings/sample_service_unittests.js View 1 chunk +3 lines, -1 line 0 comments Download
M mojo/public/cpp/bindings/tests/sample_service_unittest.cc View 1 1 chunk +4 lines, -2 lines 0 comments Download
M mojo/public/interfaces/bindings/tests/sample_service.mojom View 2 chunks +2 lines, -2 lines 0 comments Download
M mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_definition.tmpl View 2 chunks +1 line, -7 lines 0 comments Download
M mojo/public/tools/bindings/generators/js_templates/struct_definition.tmpl View 2 chunks +0 lines, -49 lines 0 comments Download
M mojo/public/tools/bindings/generators/mojom_cpp_generator.py View 3 chunks +8 lines, -2 lines 0 comments Download
M mojo/public/tools/bindings/generators/mojom_java_generator.py View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M mojo/public/tools/bindings/generators/mojom_js_generator.py View 2 chunks +4 lines, -5 lines 0 comments Download
M mojo/public/tools/bindings/pylib/mojom/generate/generator.py View 1 chunk +0 lines, -12 lines 0 comments Download
M mojo/public/tools/bindings/pylib/mojom/parse/lexer.py View 1 chunk +1 line, -0 lines 0 comments Download
M mojo/public/tools/bindings/pylib/mojom/parse/parser.py View 1 chunk +1 line, -0 lines 0 comments Download
M mojo/public/tools/bindings/pylib/mojom_tests/parse/lexer_unittest.py View 1 1 chunk +8 lines, -0 lines 0 comments Download
M mojo/public/tools/bindings/pylib/mojom_tests/parse/parser_unittest.py View 1 2 chunks +24 lines, -32 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Matt Perry
6 years, 6 months ago (2014-06-05 00:08:55 UTC) #1
viettrungluu
https://codereview.chromium.org/317073005/diff/1/mojo/public/cpp/bindings/tests/sample_service_unittest.cc File mojo/public/cpp/bindings/tests/sample_service_unittest.cc (right): https://codereview.chromium.org/317073005/diff/1/mojo/public/cpp/bindings/tests/sample_service_unittest.cc#newcode364 mojo/public/cpp/bindings/tests/sample_service_unittest.cc:364: EXPECT_FALSE(defaults->a22.is_null()); Probably this should be "ASSERT_FALSE". <shrug> https://codereview.chromium.org/317073005/diff/1/mojo/public/tools/bindings/pylib/mojom/parse/lexer.py File ...
6 years, 6 months ago (2014-06-05 03:32:03 UTC) #2
viettrungluu
(Also, since I'm too lazy to check right now, is there a java test that ...
6 years, 6 months ago (2014-06-05 03:32:30 UTC) #3
qsr
On 2014/06/05 03:32:30, viettrungluu wrote: > (Also, since I'm too lazy to check right now, ...
6 years, 6 months ago (2014-06-05 08:04:35 UTC) #4
Matt Perry
https://codereview.chromium.org/317073005/diff/1/mojo/public/cpp/bindings/tests/sample_service_unittest.cc File mojo/public/cpp/bindings/tests/sample_service_unittest.cc (right): https://codereview.chromium.org/317073005/diff/1/mojo/public/cpp/bindings/tests/sample_service_unittest.cc#newcode364 mojo/public/cpp/bindings/tests/sample_service_unittest.cc:364: EXPECT_FALSE(defaults->a22.is_null()); On 2014/06/05 03:32:03, viettrungluu wrote: > Probably this ...
6 years, 6 months ago (2014-06-05 19:36:56 UTC) #5
Matt Perry
The CQ bit was checked by mpcomplete@chromium.org
6 years, 6 months ago (2014-06-05 21:17:34 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpcomplete@chromium.org/317073005/40001
6 years, 6 months ago (2014-06-05 21:18:52 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-05 21:18:53 UTC) #8
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
6 years, 6 months ago (2014-06-05 21:18:54 UTC) #9
viettrungluu
lgtm
6 years, 6 months ago (2014-06-05 21:27:55 UTC) #10
Matt Perry
The CQ bit was checked by mpcomplete@chromium.org
6 years, 6 months ago (2014-06-05 21:34:28 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpcomplete@chromium.org/317073005/40001
6 years, 6 months ago (2014-06-05 21:36:47 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_chromium_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-06 02:25:04 UTC) #13
commit-bot: I haz the power
6 years, 6 months ago (2014-06-06 10:07:56 UTC) #14
Message was sent while issue was closed.
Change committed as 275366

Powered by Google App Engine
This is Rietveld 408576698